client/vendor/ace/source/lifted-0026.c (551070B)
1 #define RECOMP_GENERATED_CODE 2 #include "recomp_types.h" 3 4 void sub_47034C60(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(0x47034C60u); 13 14 L_47034C60: 15 PUSH32(esp, ecx); /* 0x47034C60: push ecx */ 16 PUSH32(esp, ebx); /* 0x47034C61: push ebx */ 17 ebx = MEM32(0x470AC150); /* 0x47034C62: mov ebx, dword ptr [0x470ac150] */ 18 PUSH32(esp, ebp); /* 0x47034C68: push ebp */ 19 PUSH32(esp, esi); /* 0x47034C69: push esi */ 20 PUSH32(esp, edi); /* 0x47034C6A: push edi */ 21 edi = ecx; /* 0x47034C6B: mov edi, ecx */ 22 RECOMP_ICALL(ebx); /* 0x47034C6D: call ebx */ 23 RECOMP_FLAGS_IN(); 24 ebp = MEM32(0x470AC3C8); /* 0x47034C6F: mov ebp, dword ptr [0x470ac3c8] */ 25 esi = eax; /* 0x47034C75: mov esi, eax */ 26 RECOMP_ICALL(ebp); /* 0x47034C77: call ebp */ 27 RECOMP_FLAGS_IN(); 28 eax = MEM32(eax); /* 0x47034C79: mov eax, dword ptr [eax] */ 29 /* test eax, eax */ /* 0x47034C7B: test eax, eax */ 30 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 31 _cf = 0; 32 _flag_k = FK_TEST; 33 MEM32(esp + 0x10) = esi; /* 0x47034C7D: mov dword ptr [esp + 0x10], esi */ 34 if (TEST_Z(_flag_a, _flag_b)) goto L_47034C87; /* 0x47034C81: je 0x47034c87 */ 35 L_47034C83: 36 MEM32(esp + 0x10) = eax; /* 0x47034C83: mov dword ptr [esp + 0x10], eax */ 37 L_47034C87: 38 RECOMP_ICALL(0x47039020u); /* 0x47034C87: call 0x47039020 */ /* not lifted */ 39 RECOMP_FLAGS_IN(); 40 esi = eax; /* 0x47034C8C: mov esi, eax */ 41 ecx = esi; /* 0x47034C8E: mov ecx, esi */ 42 RECOMP_ICALL(0x4703B210u); /* 0x47034C90: call 0x4703b210 */ /* not lifted */ 43 RECOMP_FLAGS_IN(); 44 PUSH32(esp, eax); /* 0x47034C95: push eax */ 45 ecx = esi; /* 0x47034C96: mov ecx, esi */ 46 RECOMP_ICALL(0x4703B240u); /* 0x47034C98: call 0x4703b240 */ /* not lifted */ 47 RECOMP_FLAGS_IN(); 48 PUSH32(esp, eax); /* 0x47034C9D: push eax */ 49 ecx = esi; /* 0x47034C9E: mov ecx, esi */ 50 RECOMP_ICALL(0x4703B080u); /* 0x47034CA0: call 0x4703b080 */ /* not lifted */ 51 RECOMP_FLAGS_IN(); 52 PUSH32(esp, eax); /* 0x47034CA5: push eax */ 53 eax = MEM32(esp + 0x1C); /* 0x47034CA6: mov eax, dword ptr [esp + 0x1c] */ 54 PUSH32(esp, eax); /* 0x47034CAA: push eax */ 55 PUSH32(esp, 0); /* 0x47034CAB: push 0 */ 56 PUSH32(esp, 0x39u); /* 0x47034CAD: push 0x39 */ 57 PUSH32(esp, 0x47106DE4u); /* 0x47034CAF: push 0x47106de4 */ 58 ecx = esi; /* 0x47034CB4: mov ecx, esi */ 59 RECOMP_ICALL(0x4703A340u); /* 0x47034CB6: call 0x4703a340 */ /* not lifted */ 60 RECOMP_FLAGS_IN(); 61 PUSH32(esp, edi); /* 0x47034CBB: push edi */ 62 PUSH32(esp, 0x471052CCu); /* 0x47034CBC: push 0x471052cc */ 63 PUSH32(esp, 4); /* 0x47034CC1: push 4 */ 64 PUSH32(esp, esi); /* 0x47034CC3: push esi */ 65 RECOMP_ICALL(0x47039830u); /* 0x47034CC4: call 0x47039830 */ /* not lifted */ 66 RECOMP_FLAGS_IN(); 67 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 68 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 69 esp = esp + 0x10u; /* 0x47034CC9: add esp, 0x10 */ 70 _flag_k = FK_ADD; 71 RECOMP_ICALL(ebx); /* 0x47034CCC: call ebx */ 72 RECOMP_FLAGS_IN(); 73 esi = eax; /* 0x47034CCE: mov esi, eax */ 74 RECOMP_ICALL(ebp); /* 0x47034CD0: call ebp */ 75 RECOMP_FLAGS_IN(); 76 eax = MEM32(eax); /* 0x47034CD2: mov eax, dword ptr [eax] */ 77 /* test eax, eax */ /* 0x47034CD4: test eax, eax */ 78 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 79 _cf = 0; 80 _flag_k = FK_TEST; 81 MEM32(esp + 0x10) = esi; /* 0x47034CD6: mov dword ptr [esp + 0x10], esi */ 82 if (TEST_Z(_flag_a, _flag_b)) goto L_47034CE0; /* 0x47034CDA: je 0x47034ce0 */ 83 L_47034CDC: 84 MEM32(esp + 0x10) = eax; /* 0x47034CDC: mov dword ptr [esp + 0x10], eax */ 85 L_47034CE0: 86 RECOMP_ICALL(0x47039020u); /* 0x47034CE0: call 0x47039020 */ /* not lifted */ 87 RECOMP_FLAGS_IN(); 88 esi = eax; /* 0x47034CE5: mov esi, eax */ 89 ecx = esi; /* 0x47034CE7: mov ecx, esi */ 90 RECOMP_ICALL(0x4703B210u); /* 0x47034CE9: call 0x4703b210 */ /* not lifted */ 91 RECOMP_FLAGS_IN(); 92 PUSH32(esp, eax); /* 0x47034CEE: push eax */ 93 ecx = esi; /* 0x47034CEF: mov ecx, esi */ 94 RECOMP_ICALL(0x4703B240u); /* 0x47034CF1: call 0x4703b240 */ /* not lifted */ 95 RECOMP_FLAGS_IN(); 96 PUSH32(esp, eax); /* 0x47034CF6: push eax */ 97 ecx = esi; /* 0x47034CF7: mov ecx, esi */ 98 RECOMP_ICALL(0x4703B080u); /* 0x47034CF9: call 0x4703b080 */ /* not lifted */ 99 RECOMP_FLAGS_IN(); 100 ecx = MEM32(esp + 0x18); /* 0x47034CFE: mov ecx, dword ptr [esp + 0x18] */ 101 PUSH32(esp, eax); /* 0x47034D02: push eax */ 102 PUSH32(esp, ecx); /* 0x47034D03: push ecx */ 103 PUSH32(esp, 0); /* 0x47034D04: push 0 */ 104 PUSH32(esp, 0x3Fu); /* 0x47034D06: push 0x3f */ 105 PUSH32(esp, 0x47106DE4u); /* 0x47034D08: push 0x47106de4 */ 106 ecx = esi; /* 0x47034D0D: mov ecx, esi */ 107 RECOMP_ICALL(0x4703A340u); /* 0x47034D0F: call 0x4703a340 */ /* not lifted */ 108 RECOMP_FLAGS_IN(); 109 eax = MEM32(edi + 0x58); /* 0x47034D14: mov eax, dword ptr [edi + 0x58] */ 110 edx = edi + 0x60; /* 0x47034D17: lea edx, [edi + 0x60] */ 111 PUSH32(esp, edx); /* 0x47034D1A: push edx */ 112 PUSH32(esp, eax); /* 0x47034D1B: push eax */ 113 PUSH32(esp, 0x47106E44u); /* 0x47034D1C: push 0x47106e44 */ 114 PUSH32(esp, 4); /* 0x47034D21: push 4 */ 115 PUSH32(esp, esi); /* 0x47034D23: push esi */ 116 RECOMP_ICALL(0x47039830u); /* 0x47034D24: call 0x47039830 */ /* not lifted */ 117 RECOMP_FLAGS_IN(); 118 eax = MEM32(edi + 0x4C); /* 0x47034D29: mov eax, dword ptr [edi + 0x4c] */ 119 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 120 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 121 esp = esp + 0x14u; /* 0x47034D2C: add esp, 0x14 */ 122 _flag_k = FK_ADD; 123 /* test eax, eax */ /* 0x47034D2F: test eax, eax */ 124 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 125 _cf = 0; 126 _flag_k = FK_TEST; 127 if (TEST_Z(_flag_a, _flag_b)) goto L_47034D93; /* 0x47034D31: je 0x47034d93 */ 128 L_47034D33: 129 RECOMP_ICALL(ebx); /* 0x47034D33: call ebx */ 130 RECOMP_FLAGS_IN(); 131 esi = eax; /* 0x47034D35: mov esi, eax */ 132 RECOMP_ICALL(ebp); /* 0x47034D37: call ebp */ 133 RECOMP_FLAGS_IN(); 134 eax = MEM32(eax); /* 0x47034D39: mov eax, dword ptr [eax] */ 135 /* test eax, eax */ /* 0x47034D3B: test eax, eax */ 136 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 137 _cf = 0; 138 _flag_k = FK_TEST; 139 MEM32(esp + 0x10) = esi; /* 0x47034D3D: mov dword ptr [esp + 0x10], esi */ 140 if (TEST_Z(_flag_a, _flag_b)) goto L_47034D47; /* 0x47034D41: je 0x47034d47 */ 141 L_47034D43: 142 MEM32(esp + 0x10) = eax; /* 0x47034D43: mov dword ptr [esp + 0x10], eax */ 143 L_47034D47: 144 RECOMP_ICALL(0x47039020u); /* 0x47034D47: call 0x47039020 */ /* not lifted */ 145 RECOMP_FLAGS_IN(); 146 esi = eax; /* 0x47034D4C: mov esi, eax */ 147 ecx = esi; /* 0x47034D4E: mov ecx, esi */ 148 RECOMP_ICALL(0x4703B210u); /* 0x47034D50: call 0x4703b210 */ /* not lifted */ 149 RECOMP_FLAGS_IN(); 150 PUSH32(esp, eax); /* 0x47034D55: push eax */ 151 ecx = esi; /* 0x47034D56: mov ecx, esi */ 152 RECOMP_ICALL(0x4703B240u); /* 0x47034D58: call 0x4703b240 */ /* not lifted */ 153 RECOMP_FLAGS_IN(); 154 PUSH32(esp, eax); /* 0x47034D5D: push eax */ 155 ecx = esi; /* 0x47034D5E: mov ecx, esi */ 156 RECOMP_ICALL(0x4703B080u); /* 0x47034D60: call 0x4703b080 */ /* not lifted */ 157 RECOMP_FLAGS_IN(); 158 ecx = MEM32(esp + 0x18); /* 0x47034D65: mov ecx, dword ptr [esp + 0x18] */ 159 PUSH32(esp, eax); /* 0x47034D69: push eax */ 160 PUSH32(esp, ecx); /* 0x47034D6A: push ecx */ 161 PUSH32(esp, 0); /* 0x47034D6B: push 0 */ 162 PUSH32(esp, 0x43u); /* 0x47034D6D: push 0x43 */ 163 PUSH32(esp, 0x47106DE4u); /* 0x47034D6F: push 0x47106de4 */ 164 ecx = esi; /* 0x47034D74: mov ecx, esi */ 165 RECOMP_ICALL(0x4703A340u); /* 0x47034D76: call 0x4703a340 */ /* not lifted */ 166 RECOMP_FLAGS_IN(); 167 PUSH32(esp, 0x47106E3Cu); /* 0x47034D7B: push 0x47106e3c */ 168 PUSH32(esp, 4); /* 0x47034D80: push 4 */ 169 PUSH32(esp, esi); /* 0x47034D82: push esi */ 170 RECOMP_ICALL(0x47039830u); /* 0x47034D83: call 0x47039830 */ /* not lifted */ 171 RECOMP_FLAGS_IN(); 172 ecx = MEM32(edi + 0x4C); /* 0x47034D88: mov ecx, dword ptr [edi + 0x4c] */ 173 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 174 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 175 esp = esp + 0xCu; /* 0x47034D8B: add esp, 0xc */ 176 _flag_k = FK_ADD; 177 RECOMP_ICALL(0x47034C60u); /* 0x47034D8E: call 0x47034c60 */ /* not lifted */ 178 RECOMP_FLAGS_IN(); 179 L_47034D93: 180 RECOMP_ICALL(ebx); /* 0x47034D93: call ebx */ 181 RECOMP_FLAGS_IN(); 182 edi = eax; /* 0x47034D95: mov edi, eax */ 183 RECOMP_ICALL(ebp); /* 0x47034D97: call ebp */ 184 RECOMP_FLAGS_IN(); 185 eax = MEM32(eax); /* 0x47034D99: mov eax, dword ptr [eax] */ 186 /* test eax, eax */ /* 0x47034D9B: test eax, eax */ 187 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 188 _cf = 0; 189 _flag_k = FK_TEST; 190 if (TEST_Z(_flag_a, _flag_b)) goto L_47034DA1; /* 0x47034D9D: je 0x47034da1 */ 191 L_47034D9F: 192 edi = eax; /* 0x47034D9F: mov edi, eax */ 193 L_47034DA1: 194 RECOMP_ICALL(0x47039020u); /* 0x47034DA1: call 0x47039020 */ /* not lifted */ 195 RECOMP_FLAGS_IN(); 196 esi = eax; /* 0x47034DA6: mov esi, eax */ 197 ecx = esi; /* 0x47034DA8: mov ecx, esi */ 198 RECOMP_ICALL(0x4703B210u); /* 0x47034DAA: call 0x4703b210 */ /* not lifted */ 199 RECOMP_FLAGS_IN(); 200 PUSH32(esp, eax); /* 0x47034DAF: push eax */ 201 ecx = esi; /* 0x47034DB0: mov ecx, esi */ 202 RECOMP_ICALL(0x4703B240u); /* 0x47034DB2: call 0x4703b240 */ /* not lifted */ 203 RECOMP_FLAGS_IN(); 204 PUSH32(esp, eax); /* 0x47034DB7: push eax */ 205 ecx = esi; /* 0x47034DB8: mov ecx, esi */ 206 RECOMP_ICALL(0x4703B080u); /* 0x47034DBA: call 0x4703b080 */ /* not lifted */ 207 RECOMP_FLAGS_IN(); 208 PUSH32(esp, eax); /* 0x47034DBF: push eax */ 209 PUSH32(esp, edi); /* 0x47034DC0: push edi */ 210 PUSH32(esp, 0); /* 0x47034DC1: push 0 */ 211 PUSH32(esp, 0x47u); /* 0x47034DC3: push 0x47 */ 212 PUSH32(esp, 0x47106DE4u); /* 0x47034DC5: push 0x47106de4 */ 213 ecx = esi; /* 0x47034DCA: mov ecx, esi */ 214 RECOMP_ICALL(0x4703A340u); /* 0x47034DCC: call 0x4703a340 */ /* not lifted */ 215 RECOMP_FLAGS_IN(); 216 PUSH32(esp, 0x47106E20u); /* 0x47034DD1: push 0x47106e20 */ 217 PUSH32(esp, 4); /* 0x47034DD6: push 4 */ 218 PUSH32(esp, esi); /* 0x47034DD8: push esi */ 219 RECOMP_ICALL(0x47039830u); /* 0x47034DD9: call 0x47039830 */ /* not lifted */ 220 RECOMP_FLAGS_IN(); 221 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 222 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 223 esp = esp + 0xCu; /* 0x47034DDE: add esp, 0xc */ 224 _flag_k = FK_ADD; 225 RECOMP_ICALL(ebx); /* 0x47034DE1: call ebx */ 226 RECOMP_FLAGS_IN(); 227 esi = eax; /* 0x47034DE3: mov esi, eax */ 228 RECOMP_ICALL(ebp); /* 0x47034DE5: call ebp */ 229 RECOMP_FLAGS_IN(); 230 eax = MEM32(eax); /* 0x47034DE7: mov eax, dword ptr [eax] */ 231 /* test eax, eax */ /* 0x47034DE9: test eax, eax */ 232 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 233 _cf = 0; 234 _flag_k = FK_TEST; 235 edi = esi; /* 0x47034DEB: mov edi, esi */ 236 if (TEST_Z(_flag_a, _flag_b)) goto L_47034DF1; /* 0x47034DED: je 0x47034df1 */ 237 L_47034DEF: 238 edi = eax; /* 0x47034DEF: mov edi, eax */ 239 L_47034DF1: 240 RECOMP_ICALL(0x47039020u); /* 0x47034DF1: call 0x47039020 */ /* not lifted */ 241 RECOMP_FLAGS_IN(); 242 esi = eax; /* 0x47034DF6: mov esi, eax */ 243 ecx = esi; /* 0x47034DF8: mov ecx, esi */ 244 RECOMP_ICALL(0x4703B210u); /* 0x47034DFA: call 0x4703b210 */ /* not lifted */ 245 RECOMP_FLAGS_IN(); 246 PUSH32(esp, eax); /* 0x47034DFF: push eax */ 247 ecx = esi; /* 0x47034E00: mov ecx, esi */ 248 RECOMP_ICALL(0x4703B240u); /* 0x47034E02: call 0x4703b240 */ /* not lifted */ 249 RECOMP_FLAGS_IN(); 250 PUSH32(esp, eax); /* 0x47034E07: push eax */ 251 ecx = esi; /* 0x47034E08: mov ecx, esi */ 252 RECOMP_ICALL(0x4703B080u); /* 0x47034E0A: call 0x4703b080 */ /* not lifted */ 253 RECOMP_FLAGS_IN(); 254 PUSH32(esp, eax); /* 0x47034E0F: push eax */ 255 PUSH32(esp, edi); /* 0x47034E10: push edi */ 256 PUSH32(esp, 0); /* 0x47034E11: push 0 */ 257 PUSH32(esp, 0x48u); /* 0x47034E13: push 0x48 */ 258 PUSH32(esp, 0x47106DE4u); /* 0x47034E15: push 0x47106de4 */ 259 ecx = esi; /* 0x47034E1A: mov ecx, esi */ 260 RECOMP_ICALL(0x4703A340u); /* 0x47034E1C: call 0x4703a340 */ /* not lifted */ 261 RECOMP_FLAGS_IN(); 262 PUSH32(esp, 0x4710529Cu); /* 0x47034E21: push 0x4710529c */ 263 PUSH32(esp, 4); /* 0x47034E26: push 4 */ 264 PUSH32(esp, esi); /* 0x47034E28: push esi */ 265 RECOMP_ICALL(0x47039830u); /* 0x47034E29: call 0x47039830 */ /* not lifted */ 266 RECOMP_FLAGS_IN(); 267 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 268 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 269 esp = esp + 0xCu; /* 0x47034E2E: add esp, 0xc */ 270 _flag_k = FK_ADD; 271 edi = POP32_VAL(esp); /* 0x47034E31: pop edi */ 272 esi = POP32_VAL(esp); /* 0x47034E32: pop esi */ 273 ebp = POP32_VAL(esp); /* 0x47034E33: pop ebp */ 274 ebx = POP32_VAL(esp); /* 0x47034E34: pop ebx */ 275 ecx = POP32_VAL(esp); /* 0x47034E35: pop ecx */ 276 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47034E36: ret */ 277 RECOMP_REGS_OUT(); 278 } 279 280 void sub_47034E40(void) { 281 int _fpu_cmp = 0; 282 uint32_t _cf = 0; 283 int _df = 1; 284 uint32_t _flag_k = FK_NONE; 285 uint32_t _flag_a = 0, _flag_b = 0; 286 uint32_t _itail_tgt = 0; 287 RECOMP_REGS_LOCALS 288 RECOMP_ENTER(0x47034E40u); 289 290 L_47034E40: 291 PUSH32(esp, 0xFFFFFFFFu); /* 0x47034E40: push -1 */ 292 PUSH32(esp, 0x470A5B19u); /* 0x47034E42: push 0x470a5b19 */ 293 eax = MEM32(FS_BASE + (0)); /* 0x47034E47: mov eax, dword ptr fs:[0] */ 294 PUSH32(esp, eax); /* 0x47034E4D: push eax */ 295 MEM32(FS_BASE + (0)) = esp; /* 0x47034E4E: mov dword ptr fs:[0], esp */ 296 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x308u); 297 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 298 esp = esp - 0x308u; /* 0x47034E55: sub esp, 0x308 */ 299 _flag_k = FK_CMP; 300 PUSH32(esp, ebx); /* 0x47034E5B: push ebx */ 301 PUSH32(esp, esi); /* 0x47034E5C: push esi */ 302 PUSH32(esp, edi); /* 0x47034E5D: push edi */ 303 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 304 ebx = 0; /* 0x47034E5E: xor ebx, ebx */ 305 _cf = 0; 306 _flag_k = FK_TEST; 307 esi = ecx; /* 0x47034E60: mov esi, ecx */ 308 PUSH32(esp, ebx); /* 0x47034E62: push ebx */ 309 PUSH32(esp, ebx); /* 0x47034E63: push ebx */ 310 edi = esi + 0x30; /* 0x47034E64: lea edi, [esi + 0x30] */ 311 PUSH32(esp, edi); /* 0x47034E67: push edi */ 312 MEM32(esp + 0x1C) = esi; /* 0x47034E68: mov dword ptr [esp + 0x1c], esi */ 313 RECOMP_ICALL(0x47087340u); /* 0x47034E6C: call 0x47087340 */ /* not lifted */ 314 RECOMP_FLAGS_IN(); 315 PUSH32(esp, ebx); /* 0x47034E71: push ebx */ 316 PUSH32(esp, ebx); /* 0x47034E72: push ebx */ 317 ecx = edi; /* 0x47034E73: mov ecx, edi */ 318 MEM32(esp + 0x324) = ebx; /* 0x47034E75: mov dword ptr [esp + 0x324], ebx */ 319 RECOMP_ICALL(0x47087E50u); /* 0x47034E7C: call 0x47087e50 */ /* not lifted */ 320 RECOMP_FLAGS_IN(); 321 edx = MEM32(esp + 0x328); /* 0x47034E81: mov edx, dword ptr [esp + 0x328] */ 322 /* cmp edx, ebx */ /* 0x47034E88: cmp edx, ebx */ 323 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 324 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 325 _flag_k = FK_CMP; 326 eax = MEM32(esp + 0x324); /* 0x47034E8A: mov eax, dword ptr [esp + 0x324] */ 327 MEM8(esp + 0x31C) = (uint8_t)(1); /* 0x47034E91: mov byte ptr [esp + 0x31c], 1 */ 328 MEM32(esi + 0x4C) = ebx; /* 0x47034E99: mov dword ptr [esi + 0x4c], ebx */ 329 MEM32(esi + 0x54) = eax; /* 0x47034E9C: mov dword ptr [esi + 0x54], eax */ 330 MEM32(esi + 0x58) = ebx; /* 0x47034E9F: mov dword ptr [esi + 0x58], ebx */ 331 MEM32(esi + 0x174) = ebx; /* 0x47034EA2: mov dword ptr [esi + 0x174], ebx */ 332 if (CMP_EQ(_flag_a, _flag_b)) goto L_47034ECD; /* 0x47034EA8: je 0x47034ecd */ 333 L_47034EAA: 334 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 335 ecx = ecx | 0xFFFFFFFFu; /* 0x47034EAA: or ecx, 0xffffffff */ 336 _cf = 0; 337 _flag_k = FK_TEST; 338 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 339 eax = 0; /* 0x47034EAD: xor eax, eax */ 340 _cf = 0; 341 _flag_k = FK_TEST; 342 edi = edx; /* 0x47034EAF: mov edi, edx */ 343 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; } /* 0x47034EB1: repne scasb al, byte ptr es:[edi] */ 344 ecx = ~ecx; /* 0x47034EB3: not ecx */ 345 /* cmp ecx, 0x114u */ /* 0x47034EB5: cmp ecx, 0x114 */ 346 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x114u); 347 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 348 _flag_k = FK_CMP; 349 if (CMP_L(_flag_a, _flag_b)) goto L_47034EC2; /* 0x47034EBB: jl 0x47034ec2 */ 350 L_47034EBD: 351 ecx = 0x113u; /* 0x47034EBD: mov ecx, 0x113 */ 352 L_47034EC2: 353 PUSH32(esp, ecx); /* 0x47034EC2: push ecx */ 354 PUSH32(esp, edx); /* 0x47034EC3: push edx */ 355 ecx = esi + 0x60; /* 0x47034EC4: lea ecx, [esi + 0x60] */ 356 PUSH32(esp, ecx); /* 0x47034EC7: push ecx */ 357 goto L_47034F58; /* 0x47034EC8: jmp 0x47034f58 */ 358 L_47034ECD: 359 edx = esp + 0xC; /* 0x47034ECD: lea edx, [esp + 0xc] */ 360 PUSH32(esp, edx); /* 0x47034ED1: push edx */ 361 eax = esp + 0x18; /* 0x47034ED2: lea eax, [esp + 0x18] */ 362 PUSH32(esp, eax); /* 0x47034ED6: push eax */ 363 MEM32(esp + 0x14) = 0x100u; /* 0x47034ED7: mov dword ptr [esp + 0x14], 0x100 */ 364 RECOMP_ICALL(MEM32(0x470AC128)); /* 0x47034EDF: call dword ptr [0x470ac128] */ 365 RECOMP_FLAGS_IN(); 366 /* test eax, eax */ /* 0x47034EE5: test eax, eax */ 367 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 368 _cf = 0; 369 _flag_k = FK_TEST; 370 if (TEST_NZ(_flag_a, _flag_b)) goto L_47034EF9; /* 0x47034EE7: jne 0x47034ef9 */ 371 L_47034EE9: 372 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47034EE9: call dword ptr [0x470ac3c8] */ 373 RECOMP_FLAGS_IN(); 374 edi = eax; /* 0x47034EEF: mov edi, eax */ 375 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47034EF1: call dword ptr [0x470ac150] */ 376 RECOMP_FLAGS_IN(); 377 MEM32(edi) = eax; /* 0x47034EF7: mov dword ptr [edi], eax */ 378 L_47034EF9: 379 RECOMP_ICALL(MEM32(0x470AC0E8)); /* 0x47034EF9: call dword ptr [0x470ac0e8] */ 380 RECOMP_FLAGS_IN(); 381 edi = eax; /* 0x47034EFF: mov edi, eax */ 382 RECOMP_ICALL(MEM32(0x470AC14C)); /* 0x47034F01: call dword ptr [0x470ac14c] */ 383 RECOMP_FLAGS_IN(); 384 PUSH32(esp, eax); /* 0x47034F07: push eax */ 385 PUSH32(esp, edi); /* 0x47034F08: push edi */ 386 ecx = esp + 0x1C; /* 0x47034F09: lea ecx, [esp + 0x1c] */ 387 PUSH32(esp, ecx); /* 0x47034F0D: push ecx */ 388 edx = esp + 0x120; /* 0x47034F0E: lea edx, [esp + 0x120] */ 389 PUSH32(esp, 0x47106E80u); /* 0x47034F15: push 0x47106e80 */ 390 PUSH32(esp, edx); /* 0x47034F1A: push edx */ 391 RECOMP_ICALL(0x47054FC0u); /* 0x47034F1B: call 0x47054fc0 */ /* not lifted */ 392 RECOMP_FLAGS_IN(); 393 eax = esp + 0x128; /* 0x47034F20: lea eax, [esp + 0x128] */ 394 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 395 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 396 esp = esp + 0x14u; /* 0x47034F27: add esp, 0x14 */ 397 _flag_k = FK_ADD; 398 /* test eax, eax */ /* 0x47034F2A: test eax, eax */ 399 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 400 _cf = 0; 401 _flag_k = FK_TEST; 402 if (TEST_Z(_flag_a, _flag_b)) goto L_47034F67; /* 0x47034F2C: je 0x47034f67 */ 403 L_47034F2E: 404 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 405 ecx = ecx | 0xFFFFFFFFu; /* 0x47034F2E: or ecx, 0xffffffff */ 406 _cf = 0; 407 _flag_k = FK_TEST; 408 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 409 eax = 0; /* 0x47034F31: xor eax, eax */ 410 _cf = 0; 411 _flag_k = FK_TEST; 412 edi = esp + 0x114; /* 0x47034F33: lea edi, [esp + 0x114] */ 413 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; } /* 0x47034F3A: repne scasb al, byte ptr es:[edi] */ 414 ecx = ~ecx; /* 0x47034F3C: not ecx */ 415 /* cmp ecx, 0x114u */ /* 0x47034F3E: cmp ecx, 0x114 */ 416 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x114u); 417 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 418 _flag_k = FK_CMP; 419 if (CMP_L(_flag_a, _flag_b)) goto L_47034F4B; /* 0x47034F44: jl 0x47034f4b */ 420 L_47034F46: 421 ecx = 0x113u; /* 0x47034F46: mov ecx, 0x113 */ 422 L_47034F4B: 423 PUSH32(esp, ecx); /* 0x47034F4B: push ecx */ 424 ecx = esp + 0x118; /* 0x47034F4C: lea ecx, [esp + 0x118] */ 425 PUSH32(esp, ecx); /* 0x47034F53: push ecx */ 426 edx = esi + 0x60; /* 0x47034F54: lea edx, [esi + 0x60] */ 427 PUSH32(esp, edx); /* 0x47034F57: push edx */ 428 L_47034F58: 429 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x47034F58: call dword ptr [0x470ac22c] */ 430 RECOMP_FLAGS_IN(); 431 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 432 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 433 esp = esp + 0xCu; /* 0x47034F5E: add esp, 0xc */ 434 _flag_k = FK_ADD; 435 MEM8(esi + 0x173) = (uint8_t)(LO8(ebx)); /* 0x47034F61: mov byte ptr [esi + 0x173], bl */ 436 L_47034F67: 437 ecx = MEM32(esp + 0x314); /* 0x47034F67: mov ecx, dword ptr [esp + 0x314] */ 438 edi = POP32_VAL(esp); /* 0x47034F6E: pop edi */ 439 eax = esi; /* 0x47034F6F: mov eax, esi */ 440 esi = POP32_VAL(esp); /* 0x47034F71: pop esi */ 441 ebx = POP32_VAL(esp); /* 0x47034F72: pop ebx */ 442 MEM32(FS_BASE + (0)) = ecx; /* 0x47034F73: mov dword ptr fs:[0], ecx */ 443 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x314u); 444 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 445 esp = esp + 0x314u; /* 0x47034F7A: add esp, 0x314 */ 446 _flag_k = FK_ADD; 447 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47034F80: ret 8 */ 448 RECOMP_REGS_OUT(); 449 } 450 451 void sub_47034F58(void) { 452 int _fpu_cmp = 0; 453 uint32_t _cf = 0; 454 int _df = 1; 455 uint32_t _flag_k = FK_NONE; 456 uint32_t _flag_a = 0, _flag_b = 0; 457 uint32_t _itail_tgt = 0; 458 RECOMP_REGS_LOCALS 459 RECOMP_ENTER(0x47034F58u); 460 461 L_47034F58: 462 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x47034F58: call dword ptr [0x470ac22c] */ 463 RECOMP_FLAGS_IN(); 464 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 465 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 466 esp = esp + 0xCu; /* 0x47034F5E: add esp, 0xc */ 467 _flag_k = FK_ADD; 468 MEM8(esi + 0x173) = (uint8_t)(LO8(ebx)); /* 0x47034F61: mov byte ptr [esi + 0x173], bl */ 469 ecx = MEM32(esp + 0x314); /* 0x47034F67: mov ecx, dword ptr [esp + 0x314] */ 470 edi = POP32_VAL(esp); /* 0x47034F6E: pop edi */ 471 eax = esi; /* 0x47034F6F: mov eax, esi */ 472 esi = POP32_VAL(esp); /* 0x47034F71: pop esi */ 473 ebx = POP32_VAL(esp); /* 0x47034F72: pop ebx */ 474 MEM32(FS_BASE + (0)) = ecx; /* 0x47034F73: mov dword ptr fs:[0], ecx */ 475 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x314u); 476 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 477 esp = esp + 0x314u; /* 0x47034F7A: add esp, 0x314 */ 478 _flag_k = FK_ADD; 479 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47034F80: ret 8 */ 480 RECOMP_REGS_OUT(); 481 } 482 483 void sub_47034F90(void) { 484 int _fpu_cmp = 0; 485 uint32_t _cf = 0; 486 int _df = 1; 487 uint32_t _flag_k = FK_NONE; 488 uint32_t _flag_a = 0, _flag_b = 0; 489 uint32_t _itail_tgt = 0; 490 RECOMP_REGS_LOCALS 491 RECOMP_ENTER(0x47034F90u); 492 493 L_47034F90: 494 PUSH32(esp, 0xFFFFFFFFu); /* 0x47034F90: push -1 */ 495 PUSH32(esp, 0x470A5B38u); /* 0x47034F92: push 0x470a5b38 */ 496 eax = MEM32(FS_BASE + (0)); /* 0x47034F97: mov eax, dword ptr fs:[0] */ 497 PUSH32(esp, eax); /* 0x47034F9D: push eax */ 498 MEM32(FS_BASE + (0)) = esp; /* 0x47034F9E: mov dword ptr fs:[0], esp */ 499 PUSH32(esp, ecx); /* 0x47034FA5: push ecx */ 500 PUSH32(esp, ebx); /* 0x47034FA6: push ebx */ 501 PUSH32(esp, esi); /* 0x47034FA7: push esi */ 502 PUSH32(esp, edi); /* 0x47034FA8: push edi */ 503 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 504 ebx = 0; /* 0x47034FA9: xor ebx, ebx */ 505 _cf = 0; 506 _flag_k = FK_TEST; 507 esi = ecx; /* 0x47034FAB: mov esi, ecx */ 508 PUSH32(esp, ebx); /* 0x47034FAD: push ebx */ 509 PUSH32(esp, ebx); /* 0x47034FAE: push ebx */ 510 edi = esi + 0x30; /* 0x47034FAF: lea edi, [esi + 0x30] */ 511 PUSH32(esp, edi); /* 0x47034FB2: push edi */ 512 MEM32(esp + 0x18) = esi; /* 0x47034FB3: mov dword ptr [esp + 0x18], esi */ 513 RECOMP_ICALL(0x47087340u); /* 0x47034FB7: call 0x47087340 */ /* not lifted */ 514 RECOMP_FLAGS_IN(); 515 PUSH32(esp, ebx); /* 0x47034FBC: push ebx */ 516 PUSH32(esp, ebx); /* 0x47034FBD: push ebx */ 517 ecx = edi; /* 0x47034FBE: mov ecx, edi */ 518 MEM32(esp + 0x20) = ebx; /* 0x47034FC0: mov dword ptr [esp + 0x20], ebx */ 519 RECOMP_ICALL(0x47087E50u); /* 0x47034FC4: call 0x47087e50 */ /* not lifted */ 520 RECOMP_FLAGS_IN(); 521 ecx = MEM32(esp + 0x10); /* 0x47034FC9: mov ecx, dword ptr [esp + 0x10] */ 522 MEM32(esi + 0x54) = ebx; /* 0x47034FCD: mov dword ptr [esi + 0x54], ebx */ 523 MEM32(esi + 0x58) = ebx; /* 0x47034FD0: mov dword ptr [esi + 0x58], ebx */ 524 MEM32(esi + 0x174) = ebx; /* 0x47034FD3: mov dword ptr [esi + 0x174], ebx */ 525 edi = POP32_VAL(esp); /* 0x47034FD9: pop edi */ 526 eax = esi; /* 0x47034FDA: mov eax, esi */ 527 esi = POP32_VAL(esp); /* 0x47034FDC: pop esi */ 528 ebx = POP32_VAL(esp); /* 0x47034FDD: pop ebx */ 529 MEM32(FS_BASE + (0)) = ecx; /* 0x47034FDE: mov dword ptr fs:[0], ecx */ 530 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 531 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 532 esp = esp + 0x10u; /* 0x47034FE5: add esp, 0x10 */ 533 _flag_k = FK_ADD; 534 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47034FE8: ret */ 535 RECOMP_REGS_OUT(); 536 } 537 538 void sub_47034FF0(void) { 539 int _fpu_cmp = 0; 540 uint32_t _cf = 0; 541 int _df = 1; 542 uint32_t _flag_k = FK_NONE; 543 uint32_t _flag_a = 0, _flag_b = 0; 544 uint32_t _itail_tgt = 0; 545 RECOMP_REGS_LOCALS 546 RECOMP_ENTER(0x47034FF0u); 547 548 L_47034FF0: 549 PUSH32(esp, 0xFFFFFFFFu); /* 0x47034FF0: push -1 */ 550 PUSH32(esp, 0x470A5B58u); /* 0x47034FF2: push 0x470a5b58 */ 551 eax = MEM32(FS_BASE + (0)); /* 0x47034FF7: mov eax, dword ptr fs:[0] */ 552 PUSH32(esp, eax); /* 0x47034FFD: push eax */ 553 MEM32(FS_BASE + (0)) = esp; /* 0x47034FFE: mov dword ptr fs:[0], esp */ 554 PUSH32(esp, ecx); /* 0x47035005: push ecx */ 555 PUSH32(esp, ebp); /* 0x47035006: push ebp */ 556 PUSH32(esp, esi); /* 0x47035007: push esi */ 557 PUSH32(esp, edi); /* 0x47035008: push edi */ 558 esi = ecx; /* 0x47035009: mov esi, ecx */ 559 PUSH32(esp, 0); /* 0x4703500B: push 0 */ 560 PUSH32(esp, 0); /* 0x4703500D: push 0 */ 561 edi = esi + 0x30; /* 0x4703500F: lea edi, [esi + 0x30] */ 562 PUSH32(esp, edi); /* 0x47035012: push edi */ 563 MEM32(esp + 0x18) = esi; /* 0x47035013: mov dword ptr [esp + 0x18], esi */ 564 RECOMP_ICALL(0x47087340u); /* 0x47035017: call 0x47087340 */ /* not lifted */ 565 RECOMP_FLAGS_IN(); 566 PUSH32(esp, 0); /* 0x4703501C: push 0 */ 567 PUSH32(esp, 0); /* 0x4703501E: push 0 */ 568 ecx = edi; /* 0x47035020: mov ecx, edi */ 569 MEM32(esp + 0x20) = 0; /* 0x47035022: mov dword ptr [esp + 0x20], 0 */ 570 RECOMP_ICALL(0x47087E50u); /* 0x4703502A: call 0x47087e50 */ /* not lifted */ 571 RECOMP_FLAGS_IN(); 572 ebp = MEM32(esp + 0x20); /* 0x4703502F: mov ebp, dword ptr [esp + 0x20] */ 573 /* cmp ebp, esi */ /* 0x47035033: cmp ebp, esi */ 574 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(esi); 575 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 576 _flag_k = FK_CMP; 577 if (CMP_EQ(_flag_a, _flag_b)) goto L_47035084; /* 0x47035035: je 0x47035084 */ 578 L_47035037: 579 eax = MEM32(ebp + 0x54); /* 0x47035037: mov eax, dword ptr [ebp + 0x54] */ 580 MEM32(esi + 0x54) = eax; /* 0x4703503A: mov dword ptr [esi + 0x54], eax */ 581 ecx = MEM32(ebp + 0x58); /* 0x4703503D: mov ecx, dword ptr [ebp + 0x58] */ 582 edx = ebp + 0x60; /* 0x47035040: lea edx, [ebp + 0x60] */ 583 /* test edx, edx */ /* 0x47035043: test edx, edx */ 584 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 585 _cf = 0; 586 _flag_k = FK_TEST; 587 MEM32(esi + 0x58) = ecx; /* 0x47035045: mov dword ptr [esi + 0x58], ecx */ 588 if (TEST_Z(_flag_a, _flag_b)) goto L_47035078; /* 0x47035048: je 0x47035078 */ 589 L_4703504A: 590 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 591 ecx = ecx | 0xFFFFFFFFu; /* 0x4703504A: or ecx, 0xffffffff */ 592 _cf = 0; 593 _flag_k = FK_TEST; 594 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 595 eax = 0; /* 0x4703504D: xor eax, eax */ 596 _cf = 0; 597 _flag_k = FK_TEST; 598 edi = edx; /* 0x4703504F: mov edi, edx */ 599 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; } /* 0x47035051: repne scasb al, byte ptr es:[edi] */ 600 ecx = ~ecx; /* 0x47035053: not ecx */ 601 /* cmp ecx, 0x114u */ /* 0x47035055: cmp ecx, 0x114 */ 602 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x114u); 603 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 604 _flag_k = FK_CMP; 605 if (CMP_L(_flag_a, _flag_b)) goto L_47035062; /* 0x4703505B: jl 0x47035062 */ 606 L_4703505D: 607 ecx = 0x113u; /* 0x4703505D: mov ecx, 0x113 */ 608 L_47035062: 609 PUSH32(esp, ecx); /* 0x47035062: push ecx */ 610 PUSH32(esp, edx); /* 0x47035063: push edx */ 611 edx = esi + 0x60; /* 0x47035064: lea edx, [esi + 0x60] */ 612 PUSH32(esp, edx); /* 0x47035067: push edx */ 613 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x47035068: call dword ptr [0x470ac22c] */ 614 RECOMP_FLAGS_IN(); 615 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 616 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 617 esp = esp + 0xCu; /* 0x4703506E: add esp, 0xc */ 618 _flag_k = FK_ADD; 619 MEM8(esi + 0x173) = (uint8_t)(0); /* 0x47035071: mov byte ptr [esi + 0x173], 0 */ 620 L_47035078: 621 eax = MEM32(ebp + 0x174); /* 0x47035078: mov eax, dword ptr [ebp + 0x174] */ 622 MEM32(esi + 0x174) = eax; /* 0x4703507E: mov dword ptr [esi + 0x174], eax */ 623 L_47035084: 624 ecx = MEM32(esp + 0x10); /* 0x47035084: mov ecx, dword ptr [esp + 0x10] */ 625 edi = POP32_VAL(esp); /* 0x47035088: pop edi */ 626 eax = esi; /* 0x47035089: mov eax, esi */ 627 esi = POP32_VAL(esp); /* 0x4703508B: pop esi */ 628 ebp = POP32_VAL(esp); /* 0x4703508C: pop ebp */ 629 MEM32(FS_BASE + (0)) = ecx; /* 0x4703508D: mov dword ptr fs:[0], ecx */ 630 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 631 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 632 esp = esp + 0x10u; /* 0x47035094: add esp, 0x10 */ 633 _flag_k = FK_ADD; 634 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47035097: ret 4 */ 635 RECOMP_REGS_OUT(); 636 } 637 638 void sub_470350A0(void) { 639 int _fpu_cmp = 0; 640 uint32_t _cf = 0; 641 int _df = 1; 642 uint32_t _flag_k = FK_NONE; 643 uint32_t _flag_a = 0, _flag_b = 0; 644 uint32_t _itail_tgt = 0; 645 RECOMP_REGS_LOCALS 646 RECOMP_ENTER(0x470350A0u); 647 648 L_470350A0: 649 PUSH32(esp, 0xFFFFFFFFu); /* 0x470350A0: push -1 */ 650 PUSH32(esp, 0x470A5B78u); /* 0x470350A2: push 0x470a5b78 */ 651 eax = MEM32(FS_BASE + (0)); /* 0x470350A7: mov eax, dword ptr fs:[0] */ 652 PUSH32(esp, eax); /* 0x470350AD: push eax */ 653 MEM32(FS_BASE + (0)) = esp; /* 0x470350AE: mov dword ptr fs:[0], esp */ 654 PUSH32(esp, ecx); /* 0x470350B5: push ecx */ 655 PUSH32(esp, esi); /* 0x470350B6: push esi */ 656 esi = ecx; /* 0x470350B7: mov esi, ecx */ 657 MEM32(esp + 0x4) = esi; /* 0x470350B9: mov dword ptr [esp + 4], esi */ 658 ecx = esi + 0x30; /* 0x470350BD: lea ecx, [esi + 0x30] */ 659 MEM32(esp + 0x10) = 0; /* 0x470350C0: mov dword ptr [esp + 0x10], 0 */ 660 RECOMP_ICALL(0x47087E30u); /* 0x470350C8: call 0x47087e30 */ /* not lifted */ 661 RECOMP_FLAGS_IN(); 662 ecx = esi; /* 0x470350CD: mov ecx, esi */ 663 MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x470350CF: mov dword ptr [esp + 0x10], 0xffffffff */ 664 RECOMP_ICALL(0x47087480u); /* 0x470350D7: call 0x47087480 */ /* not lifted */ 665 RECOMP_FLAGS_IN(); 666 ecx = MEM32(esp + 0x8); /* 0x470350DC: mov ecx, dword ptr [esp + 8] */ 667 esi = POP32_VAL(esp); /* 0x470350E0: pop esi */ 668 MEM32(FS_BASE + (0)) = ecx; /* 0x470350E1: mov dword ptr fs:[0], ecx */ 669 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 670 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 671 esp = esp + 0x10u; /* 0x470350E8: add esp, 0x10 */ 672 _flag_k = FK_ADD; 673 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470350EB: ret */ 674 RECOMP_REGS_OUT(); 675 } 676 677 void sub_470350F0(void) { 678 int _fpu_cmp = 0; 679 uint32_t _cf = 0; 680 int _df = 1; 681 uint32_t _flag_k = FK_NONE; 682 uint32_t _flag_a = 0, _flag_b = 0; 683 uint32_t _itail_tgt = 0; 684 RECOMP_REGS_LOCALS 685 RECOMP_ENTER(0x470350F0u); 686 687 L_470350F0: 688 PUSH32(esp, ebx); /* 0x470350F0: push ebx */ 689 ebx = MEM32(esp + 0x8); /* 0x470350F1: mov ebx, dword ptr [esp + 8] */ 690 PUSH32(esp, esi); /* 0x470350F5: push esi */ 691 esi = ecx; /* 0x470350F6: mov esi, ecx */ 692 /* cmp ebx, esi */ /* 0x470350F8: cmp ebx, esi */ 693 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 694 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 695 _flag_k = FK_CMP; 696 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703514B; /* 0x470350FA: je 0x4703514b */ 697 L_470350FC: 698 eax = MEM32(ebx + 0x54); /* 0x470350FC: mov eax, dword ptr [ebx + 0x54] */ 699 MEM32(esi + 0x54) = eax; /* 0x470350FF: mov dword ptr [esi + 0x54], eax */ 700 ecx = MEM32(ebx + 0x58); /* 0x47035102: mov ecx, dword ptr [ebx + 0x58] */ 701 edx = ebx + 0x60; /* 0x47035105: lea edx, [ebx + 0x60] */ 702 /* test edx, edx */ /* 0x47035108: test edx, edx */ 703 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 704 _cf = 0; 705 _flag_k = FK_TEST; 706 MEM32(esi + 0x58) = ecx; /* 0x4703510A: mov dword ptr [esi + 0x58], ecx */ 707 if (TEST_Z(_flag_a, _flag_b)) goto L_4703513F; /* 0x4703510D: je 0x4703513f */ 708 L_4703510F: 709 PUSH32(esp, edi); /* 0x4703510F: push edi */ 710 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 711 ecx = ecx | 0xFFFFFFFFu; /* 0x47035110: or ecx, 0xffffffff */ 712 _cf = 0; 713 _flag_k = FK_TEST; 714 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 715 eax = 0; /* 0x47035113: xor eax, eax */ 716 _cf = 0; 717 _flag_k = FK_TEST; 718 edi = edx; /* 0x47035115: mov edi, edx */ 719 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; } /* 0x47035117: repne scasb al, byte ptr es:[edi] */ 720 ecx = ~ecx; /* 0x47035119: not ecx */ 721 /* cmp ecx, 0x114u */ /* 0x4703511B: cmp ecx, 0x114 */ 722 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x114u); 723 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 724 _flag_k = FK_CMP; 725 edi = POP32_VAL(esp); /* 0x47035121: pop edi */ 726 if (CMP_L(_flag_a, _flag_b)) goto L_47035129; /* 0x47035122: jl 0x47035129 */ 727 L_47035124: 728 ecx = 0x113u; /* 0x47035124: mov ecx, 0x113 */ 729 L_47035129: 730 PUSH32(esp, ecx); /* 0x47035129: push ecx */ 731 PUSH32(esp, edx); /* 0x4703512A: push edx */ 732 edx = esi + 0x60; /* 0x4703512B: lea edx, [esi + 0x60] */ 733 PUSH32(esp, edx); /* 0x4703512E: push edx */ 734 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x4703512F: call dword ptr [0x470ac22c] */ 735 RECOMP_FLAGS_IN(); 736 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 737 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 738 esp = esp + 0xCu; /* 0x47035135: add esp, 0xc */ 739 _flag_k = FK_ADD; 740 MEM8(esi + 0x173) = (uint8_t)(0); /* 0x47035138: mov byte ptr [esi + 0x173], 0 */ 741 L_4703513F: 742 eax = MEM32(ebx + 0x174); /* 0x4703513F: mov eax, dword ptr [ebx + 0x174] */ 743 MEM32(esi + 0x174) = eax; /* 0x47035145: mov dword ptr [esi + 0x174], eax */ 744 L_4703514B: 745 esi = POP32_VAL(esp); /* 0x4703514B: pop esi */ 746 ebx = POP32_VAL(esp); /* 0x4703514C: pop ebx */ 747 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703514D: ret 4 */ 748 RECOMP_REGS_OUT(); 749 } 750 751 void sub_47035150(void) { 752 int _fpu_cmp = 0; 753 uint32_t _cf = 0; 754 int _df = 1; 755 uint32_t _flag_k = FK_NONE; 756 uint32_t _flag_a = 0, _flag_b = 0; 757 uint32_t _itail_tgt = 0; 758 RECOMP_REGS_LOCALS 759 RECOMP_ENTER(0x47035150u); 760 761 L_47035150: 762 edx = MEM32(esp + 0x4); /* 0x47035150: mov edx, dword ptr [esp + 4] */ 763 /* test edx, edx */ /* 0x47035154: test edx, edx */ 764 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 765 _cf = 0; 766 _flag_k = FK_TEST; 767 PUSH32(esp, esi); /* 0x47035156: push esi */ 768 esi = ecx; /* 0x47035157: mov esi, ecx */ 769 if (TEST_Z(_flag_a, _flag_b)) goto L_4703518B; /* 0x47035159: je 0x4703518b */ 770 L_4703515B: 771 PUSH32(esp, edi); /* 0x4703515B: push edi */ 772 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 773 ecx = ecx | 0xFFFFFFFFu; /* 0x4703515C: or ecx, 0xffffffff */ 774 _cf = 0; 775 _flag_k = FK_TEST; 776 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 777 eax = 0; /* 0x4703515F: xor eax, eax */ 778 _cf = 0; 779 _flag_k = FK_TEST; 780 edi = edx; /* 0x47035161: mov edi, edx */ 781 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; } /* 0x47035163: repne scasb al, byte ptr es:[edi] */ 782 ecx = ~ecx; /* 0x47035165: not ecx */ 783 /* cmp ecx, 0x114u */ /* 0x47035167: cmp ecx, 0x114 */ 784 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x114u); 785 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 786 _flag_k = FK_CMP; 787 edi = POP32_VAL(esp); /* 0x4703516D: pop edi */ 788 if (CMP_L(_flag_a, _flag_b)) goto L_47035175; /* 0x4703516E: jl 0x47035175 */ 789 L_47035170: 790 ecx = 0x113u; /* 0x47035170: mov ecx, 0x113 */ 791 L_47035175: 792 PUSH32(esp, ecx); /* 0x47035175: push ecx */ 793 PUSH32(esp, edx); /* 0x47035176: push edx */ 794 eax = esi + 0x60; /* 0x47035177: lea eax, [esi + 0x60] */ 795 PUSH32(esp, eax); /* 0x4703517A: push eax */ 796 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x4703517B: call dword ptr [0x470ac22c] */ 797 RECOMP_FLAGS_IN(); 798 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 799 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 800 esp = esp + 0xCu; /* 0x47035181: add esp, 0xc */ 801 _flag_k = FK_ADD; 802 MEM8(esi + 0x173) = (uint8_t)(0); /* 0x47035184: mov byte ptr [esi + 0x173], 0 */ 803 L_4703518B: 804 esi = POP32_VAL(esp); /* 0x4703518B: pop esi */ 805 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703518C: ret 4 */ 806 RECOMP_REGS_OUT(); 807 } 808 809 void sub_47035190(void) { 810 int _fpu_cmp = 0; 811 uint32_t _cf = 0; 812 int _df = 1; 813 uint32_t _flag_k = FK_NONE; 814 uint32_t _flag_a = 0, _flag_b = 0; 815 uint32_t _itail_tgt = 0; 816 RECOMP_REGS_LOCALS 817 RECOMP_ENTER(0x47035190u); 818 819 L_47035190: 820 PUSH32(esp, ecx); /* 0x47035190: push ecx */ 821 PUSH32(esp, ebx); /* 0x47035191: push ebx */ 822 PUSH32(esp, ebp); /* 0x47035192: push ebp */ 823 PUSH32(esp, esi); /* 0x47035193: push esi */ 824 PUSH32(esp, edi); /* 0x47035194: push edi */ 825 edi = MEM32(0x470AC150); /* 0x47035195: mov edi, dword ptr [0x470ac150] */ 826 ebp = ecx; /* 0x4703519B: mov ebp, ecx */ 827 RECOMP_ICALL(edi); /* 0x4703519D: call edi */ 828 RECOMP_FLAGS_IN(); 829 ebx = MEM32(0x470AC3C8); /* 0x4703519F: mov ebx, dword ptr [0x470ac3c8] */ 830 esi = eax; /* 0x470351A5: mov esi, eax */ 831 RECOMP_ICALL(ebx); /* 0x470351A7: call ebx */ 832 RECOMP_FLAGS_IN(); 833 eax = MEM32(eax); /* 0x470351A9: mov eax, dword ptr [eax] */ 834 /* test eax, eax */ /* 0x470351AB: test eax, eax */ 835 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 836 _cf = 0; 837 _flag_k = FK_TEST; 838 MEM32(esp + 0x10) = esi; /* 0x470351AD: mov dword ptr [esp + 0x10], esi */ 839 if (TEST_Z(_flag_a, _flag_b)) goto L_470351B7; /* 0x470351B1: je 0x470351b7 */ 840 L_470351B3: 841 MEM32(esp + 0x10) = eax; /* 0x470351B3: mov dword ptr [esp + 0x10], eax */ 842 L_470351B7: 843 RECOMP_ICALL(0x47039020u); /* 0x470351B7: call 0x47039020 */ /* not lifted */ 844 RECOMP_FLAGS_IN(); 845 esi = eax; /* 0x470351BC: mov esi, eax */ 846 ecx = esi; /* 0x470351BE: mov ecx, esi */ 847 RECOMP_ICALL(0x4703B210u); /* 0x470351C0: call 0x4703b210 */ /* not lifted */ 848 RECOMP_FLAGS_IN(); 849 PUSH32(esp, eax); /* 0x470351C5: push eax */ 850 ecx = esi; /* 0x470351C6: mov ecx, esi */ 851 RECOMP_ICALL(0x4703B240u); /* 0x470351C8: call 0x4703b240 */ /* not lifted */ 852 RECOMP_FLAGS_IN(); 853 PUSH32(esp, eax); /* 0x470351CD: push eax */ 854 ecx = esi; /* 0x470351CE: mov ecx, esi */ 855 RECOMP_ICALL(0x4703B080u); /* 0x470351D0: call 0x4703b080 */ /* not lifted */ 856 RECOMP_FLAGS_IN(); 857 PUSH32(esp, eax); /* 0x470351D5: push eax */ 858 eax = MEM32(esp + 0x1C); /* 0x470351D6: mov eax, dword ptr [esp + 0x1c] */ 859 PUSH32(esp, eax); /* 0x470351DA: push eax */ 860 PUSH32(esp, 0); /* 0x470351DB: push 0 */ 861 PUSH32(esp, 0x9Fu); /* 0x470351DD: push 0x9f */ 862 PUSH32(esp, 0x47106DE4u); /* 0x470351E2: push 0x47106de4 */ 863 ecx = esi; /* 0x470351E7: mov ecx, esi */ 864 RECOMP_ICALL(0x4703A340u); /* 0x470351E9: call 0x4703a340 */ /* not lifted */ 865 RECOMP_FLAGS_IN(); 866 PUSH32(esp, ebp); /* 0x470351EE: push ebp */ 867 PUSH32(esp, 0x471052CCu); /* 0x470351EF: push 0x471052cc */ 868 PUSH32(esp, 4); /* 0x470351F4: push 4 */ 869 PUSH32(esp, esi); /* 0x470351F6: push esi */ 870 RECOMP_ICALL(0x47039830u); /* 0x470351F7: call 0x47039830 */ /* not lifted */ 871 RECOMP_FLAGS_IN(); 872 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 873 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 874 esp = esp + 0x10u; /* 0x470351FC: add esp, 0x10 */ 875 _flag_k = FK_ADD; 876 RECOMP_ICALL(edi); /* 0x470351FF: call edi */ 877 RECOMP_FLAGS_IN(); 878 esi = eax; /* 0x47035201: mov esi, eax */ 879 RECOMP_ICALL(ebx); /* 0x47035203: call ebx */ 880 RECOMP_FLAGS_IN(); 881 eax = MEM32(eax); /* 0x47035205: mov eax, dword ptr [eax] */ 882 /* test eax, eax */ /* 0x47035207: test eax, eax */ 883 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 884 _cf = 0; 885 _flag_k = FK_TEST; 886 MEM32(esp + 0x10) = esi; /* 0x47035209: mov dword ptr [esp + 0x10], esi */ 887 if (TEST_Z(_flag_a, _flag_b)) goto L_47035213; /* 0x4703520D: je 0x47035213 */ 888 L_4703520F: 889 MEM32(esp + 0x10) = eax; /* 0x4703520F: mov dword ptr [esp + 0x10], eax */ 890 L_47035213: 891 RECOMP_ICALL(0x47039020u); /* 0x47035213: call 0x47039020 */ /* not lifted */ 892 RECOMP_FLAGS_IN(); 893 esi = eax; /* 0x47035218: mov esi, eax */ 894 ecx = esi; /* 0x4703521A: mov ecx, esi */ 895 RECOMP_ICALL(0x4703B210u); /* 0x4703521C: call 0x4703b210 */ /* not lifted */ 896 RECOMP_FLAGS_IN(); 897 PUSH32(esp, eax); /* 0x47035221: push eax */ 898 ecx = esi; /* 0x47035222: mov ecx, esi */ 899 RECOMP_ICALL(0x4703B240u); /* 0x47035224: call 0x4703b240 */ /* not lifted */ 900 RECOMP_FLAGS_IN(); 901 PUSH32(esp, eax); /* 0x47035229: push eax */ 902 ecx = esi; /* 0x4703522A: mov ecx, esi */ 903 RECOMP_ICALL(0x4703B080u); /* 0x4703522C: call 0x4703b080 */ /* not lifted */ 904 RECOMP_FLAGS_IN(); 905 ecx = MEM32(esp + 0x18); /* 0x47035231: mov ecx, dword ptr [esp + 0x18] */ 906 PUSH32(esp, eax); /* 0x47035235: push eax */ 907 PUSH32(esp, ecx); /* 0x47035236: push ecx */ 908 PUSH32(esp, 0); /* 0x47035237: push 0 */ 909 PUSH32(esp, 0xA7u); /* 0x47035239: push 0xa7 */ 910 PUSH32(esp, 0x47106DE4u); /* 0x4703523E: push 0x47106de4 */ 911 ecx = esi; /* 0x47035243: mov ecx, esi */ 912 RECOMP_ICALL(0x4703A340u); /* 0x47035245: call 0x4703a340 */ /* not lifted */ 913 RECOMP_FLAGS_IN(); 914 eax = MEM32(ebp + 0x2C); /* 0x4703524A: mov eax, dword ptr [ebp + 0x2c] */ 915 /* test eax, eax */ /* 0x4703524D: test eax, eax */ 916 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 917 _cf = 0; 918 _flag_k = FK_TEST; 919 if (TEST_NZ(_flag_a, _flag_b)) goto L_47035256; /* 0x4703524F: jne 0x47035256 */ 920 L_47035251: 921 eax = 0x47106ED8u; /* 0x47035251: mov eax, 0x47106ed8 */ 922 L_47035256: 923 PUSH32(esp, eax); /* 0x47035256: push eax */ 924 PUSH32(esp, 0x47106EACu); /* 0x47035257: push 0x47106eac */ 925 PUSH32(esp, 4); /* 0x4703525C: push 4 */ 926 PUSH32(esp, esi); /* 0x4703525E: push esi */ 927 RECOMP_ICALL(0x47039830u); /* 0x4703525F: call 0x47039830 */ /* not lifted */ 928 RECOMP_FLAGS_IN(); 929 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 930 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 931 esp = esp + 0x10u; /* 0x47035264: add esp, 0x10 */ 932 _flag_k = FK_ADD; 933 RECOMP_ICALL(edi); /* 0x47035267: call edi */ 934 RECOMP_FLAGS_IN(); 935 esi = eax; /* 0x47035269: mov esi, eax */ 936 RECOMP_ICALL(ebx); /* 0x4703526B: call ebx */ 937 RECOMP_FLAGS_IN(); 938 eax = MEM32(eax); /* 0x4703526D: mov eax, dword ptr [eax] */ 939 /* test eax, eax */ /* 0x4703526F: test eax, eax */ 940 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 941 _cf = 0; 942 _flag_k = FK_TEST; 943 MEM32(esp + 0x10) = esi; /* 0x47035271: mov dword ptr [esp + 0x10], esi */ 944 if (TEST_Z(_flag_a, _flag_b)) goto L_4703527B; /* 0x47035275: je 0x4703527b */ 945 L_47035277: 946 MEM32(esp + 0x10) = eax; /* 0x47035277: mov dword ptr [esp + 0x10], eax */ 947 L_4703527B: 948 RECOMP_ICALL(0x47039020u); /* 0x4703527B: call 0x47039020 */ /* not lifted */ 949 RECOMP_FLAGS_IN(); 950 esi = eax; /* 0x47035280: mov esi, eax */ 951 ecx = esi; /* 0x47035282: mov ecx, esi */ 952 RECOMP_ICALL(0x4703B210u); /* 0x47035284: call 0x4703b210 */ /* not lifted */ 953 RECOMP_FLAGS_IN(); 954 PUSH32(esp, eax); /* 0x47035289: push eax */ 955 ecx = esi; /* 0x4703528A: mov ecx, esi */ 956 RECOMP_ICALL(0x4703B240u); /* 0x4703528C: call 0x4703b240 */ /* not lifted */ 957 RECOMP_FLAGS_IN(); 958 PUSH32(esp, eax); /* 0x47035291: push eax */ 959 ecx = esi; /* 0x47035292: mov ecx, esi */ 960 RECOMP_ICALL(0x4703B080u); /* 0x47035294: call 0x4703b080 */ /* not lifted */ 961 RECOMP_FLAGS_IN(); 962 edx = MEM32(esp + 0x18); /* 0x47035299: mov edx, dword ptr [esp + 0x18] */ 963 PUSH32(esp, eax); /* 0x4703529D: push eax */ 964 PUSH32(esp, edx); /* 0x4703529E: push edx */ 965 PUSH32(esp, 0); /* 0x4703529F: push 0 */ 966 PUSH32(esp, 0xA9u); /* 0x470352A1: push 0xa9 */ 967 PUSH32(esp, 0x47106DE4u); /* 0x470352A6: push 0x47106de4 */ 968 ecx = esi; /* 0x470352AB: mov ecx, esi */ 969 RECOMP_ICALL(0x4703A340u); /* 0x470352AD: call 0x4703a340 */ /* not lifted */ 970 RECOMP_FLAGS_IN(); 971 PUSH32(esp, 0x47106EA4u); /* 0x470352B2: push 0x47106ea4 */ 972 PUSH32(esp, 4); /* 0x470352B7: push 4 */ 973 PUSH32(esp, esi); /* 0x470352B9: push esi */ 974 RECOMP_ICALL(0x47039830u); /* 0x470352BA: call 0x47039830 */ /* not lifted */ 975 RECOMP_FLAGS_IN(); 976 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 977 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 978 esp = esp + 0xCu; /* 0x470352BF: add esp, 0xc */ 979 _flag_k = FK_ADD; 980 RECOMP_ICALL(edi); /* 0x470352C2: call edi */ 981 RECOMP_FLAGS_IN(); 982 esi = eax; /* 0x470352C4: mov esi, eax */ 983 RECOMP_ICALL(ebx); /* 0x470352C6: call ebx */ 984 RECOMP_FLAGS_IN(); 985 eax = MEM32(eax); /* 0x470352C8: mov eax, dword ptr [eax] */ 986 /* test eax, eax */ /* 0x470352CA: test eax, eax */ 987 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 988 _cf = 0; 989 _flag_k = FK_TEST; 990 MEM32(esp + 0x10) = esi; /* 0x470352CC: mov dword ptr [esp + 0x10], esi */ 991 if (TEST_Z(_flag_a, _flag_b)) goto L_470352D6; /* 0x470352D0: je 0x470352d6 */ 992 L_470352D2: 993 MEM32(esp + 0x10) = eax; /* 0x470352D2: mov dword ptr [esp + 0x10], eax */ 994 L_470352D6: 995 RECOMP_ICALL(0x47039020u); /* 0x470352D6: call 0x47039020 */ /* not lifted */ 996 RECOMP_FLAGS_IN(); 997 esi = eax; /* 0x470352DB: mov esi, eax */ 998 ecx = esi; /* 0x470352DD: mov ecx, esi */ 999 RECOMP_ICALL(0x4703B210u); /* 0x470352DF: call 0x4703b210 */ /* not lifted */ 1000 RECOMP_FLAGS_IN(); 1001 PUSH32(esp, eax); /* 0x470352E4: push eax */ 1002 ecx = esi; /* 0x470352E5: mov ecx, esi */ 1003 RECOMP_ICALL(0x4703B240u); /* 0x470352E7: call 0x4703b240 */ /* not lifted */ 1004 RECOMP_FLAGS_IN(); 1005 PUSH32(esp, eax); /* 0x470352EC: push eax */ 1006 ecx = esi; /* 0x470352ED: mov ecx, esi */ 1007 RECOMP_ICALL(0x4703B080u); /* 0x470352EF: call 0x4703b080 */ /* not lifted */ 1008 RECOMP_FLAGS_IN(); 1009 PUSH32(esp, eax); /* 0x470352F4: push eax */ 1010 eax = MEM32(esp + 0x1C); /* 0x470352F5: mov eax, dword ptr [esp + 0x1c] */ 1011 PUSH32(esp, eax); /* 0x470352F9: push eax */ 1012 PUSH32(esp, 0); /* 0x470352FA: push 0 */ 1013 PUSH32(esp, 0x15Au); /* 0x470352FC: push 0x15a */ 1014 PUSH32(esp, 0x47105FB8u); /* 0x47035301: push 0x47105fb8 */ 1015 ecx = esi; /* 0x47035306: mov ecx, esi */ 1016 RECOMP_ICALL(0x4703A340u); /* 0x47035308: call 0x4703a340 */ /* not lifted */ 1017 RECOMP_FLAGS_IN(); 1018 PUSH32(esp, ebp); /* 0x4703530D: push ebp */ 1019 PUSH32(esp, 0x471052CCu); /* 0x4703530E: push 0x471052cc */ 1020 PUSH32(esp, 4); /* 0x47035313: push 4 */ 1021 PUSH32(esp, esi); /* 0x47035315: push esi */ 1022 RECOMP_ICALL(0x47039830u); /* 0x47035316: call 0x47039830 */ /* not lifted */ 1023 RECOMP_FLAGS_IN(); 1024 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1025 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1026 esp = esp + 0x10u; /* 0x4703531B: add esp, 0x10 */ 1027 _flag_k = FK_ADD; 1028 ecx = ebp + 0x4; /* 0x4703531E: lea ecx, [ebp + 4] */ 1029 RECOMP_ICALL(0x47087D10u); /* 0x47035321: call 0x47087d10 */ /* not lifted */ 1030 RECOMP_FLAGS_IN(); 1031 RECOMP_ICALL(edi); /* 0x47035326: call edi */ 1032 RECOMP_FLAGS_IN(); 1033 esi = eax; /* 0x47035328: mov esi, eax */ 1034 RECOMP_ICALL(ebx); /* 0x4703532A: call ebx */ 1035 RECOMP_FLAGS_IN(); 1036 eax = MEM32(eax); /* 0x4703532C: mov eax, dword ptr [eax] */ 1037 /* test eax, eax */ /* 0x4703532E: test eax, eax */ 1038 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1039 _cf = 0; 1040 _flag_k = FK_TEST; 1041 MEM32(esp + 0x10) = esi; /* 0x47035330: mov dword ptr [esp + 0x10], esi */ 1042 if (TEST_Z(_flag_a, _flag_b)) goto L_4703533A; /* 0x47035334: je 0x4703533a */ 1043 L_47035336: 1044 MEM32(esp + 0x10) = eax; /* 0x47035336: mov dword ptr [esp + 0x10], eax */ 1045 L_4703533A: 1046 RECOMP_ICALL(0x47039020u); /* 0x4703533A: call 0x47039020 */ /* not lifted */ 1047 RECOMP_FLAGS_IN(); 1048 esi = eax; /* 0x4703533F: mov esi, eax */ 1049 ecx = esi; /* 0x47035341: mov ecx, esi */ 1050 RECOMP_ICALL(0x4703B210u); /* 0x47035343: call 0x4703b210 */ /* not lifted */ 1051 RECOMP_FLAGS_IN(); 1052 PUSH32(esp, eax); /* 0x47035348: push eax */ 1053 ecx = esi; /* 0x47035349: mov ecx, esi */ 1054 RECOMP_ICALL(0x4703B240u); /* 0x4703534B: call 0x4703b240 */ /* not lifted */ 1055 RECOMP_FLAGS_IN(); 1056 PUSH32(esp, eax); /* 0x47035350: push eax */ 1057 ecx = esi; /* 0x47035351: mov ecx, esi */ 1058 RECOMP_ICALL(0x4703B080u); /* 0x47035353: call 0x4703b080 */ /* not lifted */ 1059 RECOMP_FLAGS_IN(); 1060 ecx = MEM32(esp + 0x18); /* 0x47035358: mov ecx, dword ptr [esp + 0x18] */ 1061 PUSH32(esp, eax); /* 0x4703535C: push eax */ 1062 PUSH32(esp, ecx); /* 0x4703535D: push ecx */ 1063 PUSH32(esp, 0); /* 0x4703535E: push 0 */ 1064 PUSH32(esp, 0x15Cu); /* 0x47035360: push 0x15c */ 1065 PUSH32(esp, 0x47105FB8u); /* 0x47035365: push 0x47105fb8 */ 1066 ecx = esi; /* 0x4703536A: mov ecx, esi */ 1067 RECOMP_ICALL(0x4703A340u); /* 0x4703536C: call 0x4703a340 */ /* not lifted */ 1068 RECOMP_FLAGS_IN(); 1069 edx = MEM32(ebp + 0x24); /* 0x47035371: mov edx, dword ptr [ebp + 0x24] */ 1070 PUSH32(esp, edx); /* 0x47035374: push edx */ 1071 PUSH32(esp, 0x47106E98u); /* 0x47035375: push 0x47106e98 */ 1072 PUSH32(esp, 4); /* 0x4703537A: push 4 */ 1073 PUSH32(esp, esi); /* 0x4703537C: push esi */ 1074 RECOMP_ICALL(0x47039830u); /* 0x4703537D: call 0x47039830 */ /* not lifted */ 1075 RECOMP_FLAGS_IN(); 1076 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1077 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1078 esp = esp + 0x10u; /* 0x47035382: add esp, 0x10 */ 1079 _flag_k = FK_ADD; 1080 RECOMP_ICALL(edi); /* 0x47035385: call edi */ 1081 RECOMP_FLAGS_IN(); 1082 esi = eax; /* 0x47035387: mov esi, eax */ 1083 RECOMP_ICALL(ebx); /* 0x47035389: call ebx */ 1084 RECOMP_FLAGS_IN(); 1085 eax = MEM32(eax); /* 0x4703538B: mov eax, dword ptr [eax] */ 1086 /* test eax, eax */ /* 0x4703538D: test eax, eax */ 1087 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1088 _cf = 0; 1089 _flag_k = FK_TEST; 1090 MEM32(esp + 0x10) = esi; /* 0x4703538F: mov dword ptr [esp + 0x10], esi */ 1091 if (TEST_Z(_flag_a, _flag_b)) goto L_47035399; /* 0x47035393: je 0x47035399 */ 1092 L_47035395: 1093 MEM32(esp + 0x10) = eax; /* 0x47035395: mov dword ptr [esp + 0x10], eax */ 1094 L_47035399: 1095 RECOMP_ICALL(0x47039020u); /* 0x47035399: call 0x47039020 */ /* not lifted */ 1096 RECOMP_FLAGS_IN(); 1097 esi = eax; /* 0x4703539E: mov esi, eax */ 1098 ecx = esi; /* 0x470353A0: mov ecx, esi */ 1099 RECOMP_ICALL(0x4703B210u); /* 0x470353A2: call 0x4703b210 */ /* not lifted */ 1100 RECOMP_FLAGS_IN(); 1101 PUSH32(esp, eax); /* 0x470353A7: push eax */ 1102 ecx = esi; /* 0x470353A8: mov ecx, esi */ 1103 RECOMP_ICALL(0x4703B240u); /* 0x470353AA: call 0x4703b240 */ /* not lifted */ 1104 RECOMP_FLAGS_IN(); 1105 PUSH32(esp, eax); /* 0x470353AF: push eax */ 1106 ecx = esi; /* 0x470353B0: mov ecx, esi */ 1107 RECOMP_ICALL(0x4703B080u); /* 0x470353B2: call 0x4703b080 */ /* not lifted */ 1108 RECOMP_FLAGS_IN(); 1109 PUSH32(esp, eax); /* 0x470353B7: push eax */ 1110 eax = MEM32(esp + 0x1C); /* 0x470353B8: mov eax, dword ptr [esp + 0x1c] */ 1111 PUSH32(esp, eax); /* 0x470353BC: push eax */ 1112 PUSH32(esp, 0); /* 0x470353BD: push 0 */ 1113 PUSH32(esp, 0x15Du); /* 0x470353BF: push 0x15d */ 1114 PUSH32(esp, 0x47105FB8u); /* 0x470353C4: push 0x47105fb8 */ 1115 ecx = esi; /* 0x470353C9: mov ecx, esi */ 1116 RECOMP_ICALL(0x4703A340u); /* 0x470353CB: call 0x4703a340 */ /* not lifted */ 1117 RECOMP_FLAGS_IN(); 1118 ecx = MEM32(ebp + 0x20); /* 0x470353D0: mov ecx, dword ptr [ebp + 0x20] */ 1119 PUSH32(esp, ecx); /* 0x470353D3: push ecx */ 1120 PUSH32(esp, 0x47106E8Cu); /* 0x470353D4: push 0x47106e8c */ 1121 PUSH32(esp, 4); /* 0x470353D9: push 4 */ 1122 PUSH32(esp, esi); /* 0x470353DB: push esi */ 1123 RECOMP_ICALL(0x47039830u); /* 0x470353DC: call 0x47039830 */ /* not lifted */ 1124 RECOMP_FLAGS_IN(); 1125 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1126 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1127 esp = esp + 0x10u; /* 0x470353E1: add esp, 0x10 */ 1128 _flag_k = FK_ADD; 1129 RECOMP_ICALL(edi); /* 0x470353E4: call edi */ 1130 RECOMP_FLAGS_IN(); 1131 ebp = eax; /* 0x470353E6: mov ebp, eax */ 1132 RECOMP_ICALL(ebx); /* 0x470353E8: call ebx */ 1133 RECOMP_FLAGS_IN(); 1134 eax = MEM32(eax); /* 0x470353EA: mov eax, dword ptr [eax] */ 1135 /* test eax, eax */ /* 0x470353EC: test eax, eax */ 1136 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1137 _cf = 0; 1138 _flag_k = FK_TEST; 1139 if (TEST_Z(_flag_a, _flag_b)) goto L_470353F2; /* 0x470353EE: je 0x470353f2 */ 1140 L_470353F0: 1141 ebp = eax; /* 0x470353F0: mov ebp, eax */ 1142 L_470353F2: 1143 RECOMP_ICALL(0x47039020u); /* 0x470353F2: call 0x47039020 */ /* not lifted */ 1144 RECOMP_FLAGS_IN(); 1145 esi = eax; /* 0x470353F7: mov esi, eax */ 1146 ecx = esi; /* 0x470353F9: mov ecx, esi */ 1147 RECOMP_ICALL(0x4703B210u); /* 0x470353FB: call 0x4703b210 */ /* not lifted */ 1148 RECOMP_FLAGS_IN(); 1149 PUSH32(esp, eax); /* 0x47035400: push eax */ 1150 ecx = esi; /* 0x47035401: mov ecx, esi */ 1151 RECOMP_ICALL(0x4703B240u); /* 0x47035403: call 0x4703b240 */ /* not lifted */ 1152 RECOMP_FLAGS_IN(); 1153 PUSH32(esp, eax); /* 0x47035408: push eax */ 1154 ecx = esi; /* 0x47035409: mov ecx, esi */ 1155 RECOMP_ICALL(0x4703B080u); /* 0x4703540B: call 0x4703b080 */ /* not lifted */ 1156 RECOMP_FLAGS_IN(); 1157 PUSH32(esp, eax); /* 0x47035410: push eax */ 1158 PUSH32(esp, ebp); /* 0x47035411: push ebp */ 1159 PUSH32(esp, 0); /* 0x47035412: push 0 */ 1160 PUSH32(esp, 0x15Eu); /* 0x47035414: push 0x15e */ 1161 PUSH32(esp, 0x47105FB8u); /* 0x47035419: push 0x47105fb8 */ 1162 ecx = esi; /* 0x4703541E: mov ecx, esi */ 1163 RECOMP_ICALL(0x4703A340u); /* 0x47035420: call 0x4703a340 */ /* not lifted */ 1164 RECOMP_FLAGS_IN(); 1165 PUSH32(esp, 0x47105590u); /* 0x47035425: push 0x47105590 */ 1166 PUSH32(esp, 4); /* 0x4703542A: push 4 */ 1167 PUSH32(esp, esi); /* 0x4703542C: push esi */ 1168 RECOMP_ICALL(0x47039830u); /* 0x4703542D: call 0x47039830 */ /* not lifted */ 1169 RECOMP_FLAGS_IN(); 1170 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1171 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1172 esp = esp + 0xCu; /* 0x47035432: add esp, 0xc */ 1173 _flag_k = FK_ADD; 1174 RECOMP_ICALL(edi); /* 0x47035435: call edi */ 1175 RECOMP_FLAGS_IN(); 1176 ebp = eax; /* 0x47035437: mov ebp, eax */ 1177 RECOMP_ICALL(ebx); /* 0x47035439: call ebx */ 1178 RECOMP_FLAGS_IN(); 1179 eax = MEM32(eax); /* 0x4703543B: mov eax, dword ptr [eax] */ 1180 /* test eax, eax */ /* 0x4703543D: test eax, eax */ 1181 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1182 _cf = 0; 1183 _flag_k = FK_TEST; 1184 if (TEST_Z(_flag_a, _flag_b)) goto L_47035443; /* 0x4703543F: je 0x47035443 */ 1185 L_47035441: 1186 ebp = eax; /* 0x47035441: mov ebp, eax */ 1187 L_47035443: 1188 RECOMP_ICALL(0x47039020u); /* 0x47035443: call 0x47039020 */ /* not lifted */ 1189 RECOMP_FLAGS_IN(); 1190 esi = eax; /* 0x47035448: mov esi, eax */ 1191 ecx = esi; /* 0x4703544A: mov ecx, esi */ 1192 RECOMP_ICALL(0x4703B210u); /* 0x4703544C: call 0x4703b210 */ /* not lifted */ 1193 RECOMP_FLAGS_IN(); 1194 PUSH32(esp, eax); /* 0x47035451: push eax */ 1195 ecx = esi; /* 0x47035452: mov ecx, esi */ 1196 RECOMP_ICALL(0x4703B240u); /* 0x47035454: call 0x4703b240 */ /* not lifted */ 1197 RECOMP_FLAGS_IN(); 1198 PUSH32(esp, eax); /* 0x47035459: push eax */ 1199 ecx = esi; /* 0x4703545A: mov ecx, esi */ 1200 RECOMP_ICALL(0x4703B080u); /* 0x4703545C: call 0x4703b080 */ /* not lifted */ 1201 RECOMP_FLAGS_IN(); 1202 PUSH32(esp, eax); /* 0x47035461: push eax */ 1203 PUSH32(esp, ebp); /* 0x47035462: push ebp */ 1204 PUSH32(esp, 0); /* 0x47035463: push 0 */ 1205 PUSH32(esp, 0x15Fu); /* 0x47035465: push 0x15f */ 1206 PUSH32(esp, 0x47105FB8u); /* 0x4703546A: push 0x47105fb8 */ 1207 ecx = esi; /* 0x4703546F: mov ecx, esi */ 1208 RECOMP_ICALL(0x4703A340u); /* 0x47035471: call 0x4703a340 */ /* not lifted */ 1209 RECOMP_FLAGS_IN(); 1210 PUSH32(esp, 0x4710529Cu); /* 0x47035476: push 0x4710529c */ 1211 PUSH32(esp, 4); /* 0x4703547B: push 4 */ 1212 PUSH32(esp, esi); /* 0x4703547D: push esi */ 1213 RECOMP_ICALL(0x47039830u); /* 0x4703547E: call 0x47039830 */ /* not lifted */ 1214 RECOMP_FLAGS_IN(); 1215 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1216 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1217 esp = esp + 0xCu; /* 0x47035483: add esp, 0xc */ 1218 _flag_k = FK_ADD; 1219 RECOMP_ICALL(edi); /* 0x47035486: call edi */ 1220 RECOMP_FLAGS_IN(); 1221 esi = eax; /* 0x47035488: mov esi, eax */ 1222 RECOMP_ICALL(ebx); /* 0x4703548A: call ebx */ 1223 RECOMP_FLAGS_IN(); 1224 eax = MEM32(eax); /* 0x4703548C: mov eax, dword ptr [eax] */ 1225 /* test eax, eax */ /* 0x4703548E: test eax, eax */ 1226 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1227 _cf = 0; 1228 _flag_k = FK_TEST; 1229 edi = esi; /* 0x47035490: mov edi, esi */ 1230 if (TEST_Z(_flag_a, _flag_b)) goto L_47035496; /* 0x47035492: je 0x47035496 */ 1231 L_47035494: 1232 edi = eax; /* 0x47035494: mov edi, eax */ 1233 L_47035496: 1234 RECOMP_ICALL(0x47039020u); /* 0x47035496: call 0x47039020 */ /* not lifted */ 1235 RECOMP_FLAGS_IN(); 1236 esi = eax; /* 0x4703549B: mov esi, eax */ 1237 ecx = esi; /* 0x4703549D: mov ecx, esi */ 1238 RECOMP_ICALL(0x4703B210u); /* 0x4703549F: call 0x4703b210 */ /* not lifted */ 1239 RECOMP_FLAGS_IN(); 1240 PUSH32(esp, eax); /* 0x470354A4: push eax */ 1241 ecx = esi; /* 0x470354A5: mov ecx, esi */ 1242 RECOMP_ICALL(0x4703B240u); /* 0x470354A7: call 0x4703b240 */ /* not lifted */ 1243 RECOMP_FLAGS_IN(); 1244 PUSH32(esp, eax); /* 0x470354AC: push eax */ 1245 ecx = esi; /* 0x470354AD: mov ecx, esi */ 1246 RECOMP_ICALL(0x4703B080u); /* 0x470354AF: call 0x4703b080 */ /* not lifted */ 1247 RECOMP_FLAGS_IN(); 1248 PUSH32(esp, eax); /* 0x470354B4: push eax */ 1249 PUSH32(esp, edi); /* 0x470354B5: push edi */ 1250 PUSH32(esp, 0); /* 0x470354B6: push 0 */ 1251 PUSH32(esp, 0xABu); /* 0x470354B8: push 0xab */ 1252 PUSH32(esp, 0x47106DE4u); /* 0x470354BD: push 0x47106de4 */ 1253 ecx = esi; /* 0x470354C2: mov ecx, esi */ 1254 RECOMP_ICALL(0x4703A340u); /* 0x470354C4: call 0x4703a340 */ /* not lifted */ 1255 RECOMP_FLAGS_IN(); 1256 PUSH32(esp, 0x4710529Cu); /* 0x470354C9: push 0x4710529c */ 1257 PUSH32(esp, 4); /* 0x470354CE: push 4 */ 1258 PUSH32(esp, esi); /* 0x470354D0: push esi */ 1259 RECOMP_ICALL(0x47039830u); /* 0x470354D1: call 0x47039830 */ /* not lifted */ 1260 RECOMP_FLAGS_IN(); 1261 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1262 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1263 esp = esp + 0xCu; /* 0x470354D6: add esp, 0xc */ 1264 _flag_k = FK_ADD; 1265 edi = POP32_VAL(esp); /* 0x470354D9: pop edi */ 1266 esi = POP32_VAL(esp); /* 0x470354DA: pop esi */ 1267 ebp = POP32_VAL(esp); /* 0x470354DB: pop ebp */ 1268 ebx = POP32_VAL(esp); /* 0x470354DC: pop ebx */ 1269 ecx = POP32_VAL(esp); /* 0x470354DD: pop ecx */ 1270 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470354DE: ret */ 1271 RECOMP_REGS_OUT(); 1272 } 1273 1274 void sub_470354E0(void) { 1275 int _fpu_cmp = 0; 1276 uint32_t _cf = 0; 1277 int _df = 1; 1278 uint32_t _flag_k = FK_NONE; 1279 uint32_t _flag_a = 0, _flag_b = 0; 1280 uint32_t _itail_tgt = 0; 1281 RECOMP_REGS_LOCALS 1282 RECOMP_ENTER(0x470354E0u); 1283 1284 L_470354E0: 1285 eax = MEM32(FS_BASE + (0)); /* 0x470354E0: mov eax, dword ptr fs:[0] */ 1286 PUSH32(esp, 0xFFFFFFFFu); /* 0x470354E6: push -1 */ 1287 PUSH32(esp, 0x470A5B9Bu); /* 0x470354E8: push 0x470a5b9b */ 1288 PUSH32(esp, eax); /* 0x470354ED: push eax */ 1289 MEM32(FS_BASE + (0)) = esp; /* 0x470354EE: mov dword ptr fs:[0], esp */ 1290 PUSH32(esp, esi); /* 0x470354F5: push esi */ 1291 esi = ecx; /* 0x470354F6: mov esi, ecx */ 1292 PUSH32(esp, 0); /* 0x470354F8: push 0 */ 1293 PUSH32(esp, 0); /* 0x470354FA: push 0 */ 1294 ecx = esi + 0x4; /* 0x470354FC: lea ecx, [esi + 4] */ 1295 RECOMP_ICALL(0x47087E50u); /* 0x470354FF: call 0x47087e50 */ /* not lifted */ 1296 RECOMP_FLAGS_IN(); 1297 ecx = MEM32(esp + 0x14); /* 0x47035504: mov ecx, dword ptr [esp + 0x14] */ 1298 edx = MEM32(esp + 0x18); /* 0x47035508: mov edx, dword ptr [esp + 0x18] */ 1299 MEM32(esi + 0x20) = 0; /* 0x4703550C: mov dword ptr [esi + 0x20], 0 */ 1300 eax = MEM32(0x4710E904); /* 0x47035513: mov eax, dword ptr [0x4710e904] */ 1301 MEM32(esi + 0x28) = ecx; /* 0x47035518: mov dword ptr [esi + 0x28], ecx */ 1302 ecx = MEM32(esp + 0x4); /* 0x4703551B: mov ecx, dword ptr [esp + 4] */ 1303 MEM32(esi + 0x24) = eax; /* 0x4703551F: mov dword ptr [esi + 0x24], eax */ 1304 MEM32(esi + 0x2C) = edx; /* 0x47035522: mov dword ptr [esi + 0x2c], edx */ 1305 MEM32(esi) = 0x470AD3E8u; /* 0x47035525: mov dword ptr [esi], 0x470ad3e8 */ 1306 eax = esi; /* 0x4703552B: mov eax, esi */ 1307 MEM32(FS_BASE + (0)) = ecx; /* 0x4703552D: mov dword ptr fs:[0], ecx */ 1308 esi = POP32_VAL(esp); /* 0x47035534: pop esi */ 1309 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1310 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1311 esp = esp + 0xCu; /* 0x47035535: add esp, 0xc */ 1312 _flag_k = FK_ADD; 1313 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47035538: ret 8 */ 1314 RECOMP_REGS_OUT(); 1315 } 1316 1317 void sub_47035540(void) { 1318 int _fpu_cmp = 0; 1319 uint32_t _cf = 0; 1320 int _df = 1; 1321 uint32_t _flag_k = FK_NONE; 1322 uint32_t _flag_a = 0, _flag_b = 0; 1323 uint32_t _itail_tgt = 0; 1324 RECOMP_REGS_LOCALS 1325 RECOMP_ENTER(0x47035540u); 1326 1327 L_47035540: 1328 PUSH32(esp, 0xFFFFFFFFu); /* 0x47035540: push -1 */ 1329 PUSH32(esp, 0x470A5BBBu); /* 0x47035542: push 0x470a5bbb */ 1330 eax = MEM32(FS_BASE + (0)); /* 0x47035547: mov eax, dword ptr fs:[0] */ 1331 PUSH32(esp, eax); /* 0x4703554D: push eax */ 1332 MEM32(FS_BASE + (0)) = esp; /* 0x4703554E: mov dword ptr fs:[0], esp */ 1333 PUSH32(esp, ecx); /* 0x47035555: push ecx */ 1334 PUSH32(esp, esi); /* 0x47035556: push esi */ 1335 PUSH32(esp, 0x178u); /* 0x47035557: push 0x178 */ 1336 esi = ecx; /* 0x4703555C: mov esi, ecx */ 1337 RECOMP_ICALL(0x470A33F2u); /* 0x4703555E: call 0x470a33f2 */ /* not lifted */ 1338 RECOMP_FLAGS_IN(); 1339 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1340 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1341 esp = esp + 4; /* 0x47035563: add esp, 4 */ 1342 _flag_k = FK_ADD; 1343 MEM32(esp + 0x4) = eax; /* 0x47035566: mov dword ptr [esp + 4], eax */ 1344 /* test eax, eax */ /* 0x4703556A: test eax, eax */ 1345 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1346 _cf = 0; 1347 _flag_k = FK_TEST; 1348 MEM32(esp + 0x10) = 0; /* 0x4703556C: mov dword ptr [esp + 0x10], 0 */ 1349 if (TEST_Z(_flag_a, _flag_b)) goto L_47035589; /* 0x47035574: je 0x47035589 */ 1350 L_47035576: 1351 ecx = MEM32(esi + 0x2C); /* 0x47035576: mov ecx, dword ptr [esi + 0x2c] */ 1352 edx = MEM32(esi + 0x28); /* 0x47035579: mov edx, dword ptr [esi + 0x28] */ 1353 PUSH32(esp, ecx); /* 0x4703557C: push ecx */ 1354 PUSH32(esp, edx); /* 0x4703557D: push edx */ 1355 ecx = eax; /* 0x4703557E: mov ecx, eax */ 1356 RECOMP_ICALL(0x47034E40u); /* 0x47035580: call 0x47034e40 */ /* not lifted */ 1357 RECOMP_FLAGS_IN(); 1358 /* test eax, eax */ /* 0x47035585: test eax, eax */ 1359 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1360 _cf = 0; 1361 _flag_k = FK_TEST; 1362 if (TEST_NZ(_flag_a, _flag_b)) goto L_47035597; /* 0x47035587: jne 0x47035597 */ 1363 L_47035589: 1364 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47035589: call dword ptr [0x470ac3c8] */ 1365 RECOMP_FLAGS_IN(); 1366 MEM32(eax) = 0xCu; /* 0x4703558F: mov dword ptr [eax], 0xc */ 1367 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1368 eax = 0; /* 0x47035595: xor eax, eax */ 1369 _cf = 0; 1370 _flag_k = FK_TEST; 1371 L_47035597: 1372 ecx = MEM32(esp + 0x8); /* 0x47035597: mov ecx, dword ptr [esp + 8] */ 1373 esi = POP32_VAL(esp); /* 0x4703559B: pop esi */ 1374 MEM32(FS_BASE + (0)) = ecx; /* 0x4703559C: mov dword ptr fs:[0], ecx */ 1375 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1376 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1377 esp = esp + 0x10u; /* 0x470355A3: add esp, 0x10 */ 1378 _flag_k = FK_ADD; 1379 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470355A6: ret */ 1380 RECOMP_REGS_OUT(); 1381 } 1382 1383 void sub_470355B0(void) { 1384 int _fpu_cmp = 0; 1385 uint32_t _cf = 0; 1386 int _df = 1; 1387 uint32_t _flag_k = FK_NONE; 1388 uint32_t _flag_a = 0, _flag_b = 0; 1389 uint32_t _itail_tgt = 0; 1390 RECOMP_REGS_LOCALS 1391 RECOMP_ENTER(0x470355B0u); 1392 1393 L_470355B0: 1394 PUSH32(esp, ecx); /* 0x470355B0: push ecx */ 1395 PUSH32(esp, esi); /* 0x470355B1: push esi */ 1396 esi = ecx; /* 0x470355B2: mov esi, ecx */ 1397 eax = MEM32(esi + 0x20); /* 0x470355B4: mov eax, dword ptr [esi + 0x20] */ 1398 /* test eax, eax */ /* 0x470355B7: test eax, eax */ 1399 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1400 _cf = 0; 1401 _flag_k = FK_TEST; 1402 if (TEST_NZ(_flag_a, _flag_b)) goto L_470355C0; /* 0x470355B9: jne 0x470355c0 */ 1403 L_470355BB: 1404 RECOMP_ICALL(0x47038D20u); /* 0x470355BB: call 0x47038d20 */ /* not lifted */ 1405 RECOMP_FLAGS_IN(); 1406 L_470355C0: 1407 eax = MEM32(esi + 0x24); /* 0x470355C0: mov eax, dword ptr [esi + 0x24] */ 1408 ecx = esp + 0x4; /* 0x470355C3: lea ecx, [esp + 4] */ 1409 PUSH32(esp, ecx); /* 0x470355C7: push ecx */ 1410 PUSH32(esp, eax); /* 0x470355C8: push eax */ 1411 MEM32(esp + 0xC) = 0; /* 0x470355C9: mov dword ptr [esp + 0xc], 0 */ 1412 RECOMP_ICALL(0x47004600u); /* 0x470355D1: call 0x47004600 */ /* not lifted */ 1413 RECOMP_FLAGS_IN(); 1414 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1415 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1416 esp = esp + 8; /* 0x470355D6: add esp, 8 */ 1417 _flag_k = FK_ADD; 1418 /* cmp eax, 0xFFFFFFFFu */ /* 0x470355D9: cmp eax, -1 */ 1419 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 1420 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1421 _flag_k = FK_CMP; 1422 if (CMP_NE(_flag_a, _flag_b)) goto L_470355E3; /* 0x470355DC: jne 0x470355e3 */ 1423 L_470355DE: 1424 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1425 eax = 0; /* 0x470355DE: xor eax, eax */ 1426 _cf = 0; 1427 _flag_k = FK_TEST; 1428 esi = POP32_VAL(esp); /* 0x470355E0: pop esi */ 1429 ecx = POP32_VAL(esp); /* 0x470355E1: pop ecx */ 1430 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470355E2: ret */ 1431 L_470355E3: 1432 eax = MEM32(esp + 0x4); /* 0x470355E3: mov eax, dword ptr [esp + 4] */ 1433 /* test eax, eax */ /* 0x470355E7: test eax, eax */ 1434 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1435 _cf = 0; 1436 _flag_k = FK_TEST; 1437 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703562B; /* 0x470355E9: jne 0x4703562b */ 1438 L_470355EB: 1439 edx = MEM32(esi); /* 0x470355EB: mov edx, dword ptr [esi] */ 1440 ecx = esi; /* 0x470355ED: mov ecx, esi */ 1441 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x470355EF: call dword ptr [edx + 4] */ 1442 RECOMP_FLAGS_IN(); 1443 /* test eax, eax */ /* 0x470355F2: test eax, eax */ 1444 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1445 _cf = 0; 1446 _flag_k = FK_TEST; 1447 MEM32(esp + 0x4) = eax; /* 0x470355F4: mov dword ptr [esp + 4], eax */ 1448 if (TEST_NZ(_flag_a, _flag_b)) goto L_470355FD; /* 0x470355F8: jne 0x470355fd */ 1449 L_470355FA: 1450 esi = POP32_VAL(esp); /* 0x470355FA: pop esi */ 1451 ecx = POP32_VAL(esp); /* 0x470355FB: pop ecx */ 1452 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470355FC: ret */ 1453 L_470355FD: 1454 esi = MEM32(esi + 0x24); /* 0x470355FD: mov esi, dword ptr [esi + 0x24] */ 1455 PUSH32(esp, eax); /* 0x47035600: push eax */ 1456 PUSH32(esp, esi); /* 0x47035601: push esi */ 1457 RECOMP_ICALL(0x47056110u); /* 0x47035602: call 0x47056110 */ /* not lifted */ 1458 RECOMP_FLAGS_IN(); 1459 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1460 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1461 esp = esp + 8; /* 0x47035607: add esp, 8 */ 1462 _flag_k = FK_ADD; 1463 /* test eax, eax */ /* 0x4703560A: test eax, eax */ 1464 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1465 _cf = 0; 1466 _flag_k = FK_TEST; 1467 if (TEST_Z(_flag_a, _flag_b)) goto L_4703562B; /* 0x4703560C: je 0x4703562b */ 1468 L_4703560E: 1469 ecx = MEM32(esp + 0x4); /* 0x4703560E: mov ecx, dword ptr [esp + 4] */ 1470 /* test ecx, ecx */ /* 0x47035612: test ecx, ecx */ 1471 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1472 _cf = 0; 1473 _flag_k = FK_TEST; 1474 esi = ecx; /* 0x47035614: mov esi, ecx */ 1475 if (TEST_Z(_flag_a, _flag_b)) goto L_47035626; /* 0x47035616: je 0x47035626 */ 1476 L_47035618: 1477 RECOMP_ICALL(0x470350A0u); /* 0x47035618: call 0x470350a0 */ /* not lifted */ 1478 RECOMP_FLAGS_IN(); 1479 PUSH32(esp, esi); /* 0x4703561D: push esi */ 1480 RECOMP_ICALL(0x470A32A2u); /* 0x4703561E: call 0x470a32a2 */ /* not lifted */ 1481 RECOMP_FLAGS_IN(); 1482 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1483 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1484 esp = esp + 4; /* 0x47035623: add esp, 4 */ 1485 _flag_k = FK_ADD; 1486 L_47035626: 1487 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1488 eax = 0; /* 0x47035626: xor eax, eax */ 1489 _cf = 0; 1490 _flag_k = FK_TEST; 1491 esi = POP32_VAL(esp); /* 0x47035628: pop esi */ 1492 ecx = POP32_VAL(esp); /* 0x47035629: pop ecx */ 1493 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703562A: ret */ 1494 L_4703562B: 1495 eax = MEM32(esp + 0x4); /* 0x4703562B: mov eax, dword ptr [esp + 4] */ 1496 esi = POP32_VAL(esp); /* 0x4703562F: pop esi */ 1497 ecx = POP32_VAL(esp); /* 0x47035630: pop ecx */ 1498 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47035631: ret */ 1499 RECOMP_REGS_OUT(); 1500 } 1501 1502 void sub_47035640(void) { 1503 int _fpu_cmp = 0; 1504 uint32_t _cf = 0; 1505 int _df = 1; 1506 uint32_t _flag_k = FK_NONE; 1507 uint32_t _flag_a = 0, _flag_b = 0; 1508 uint32_t _itail_tgt = 0; 1509 RECOMP_REGS_LOCALS 1510 RECOMP_ENTER(0x47035640u); 1511 1512 L_47035640: 1513 eax = MEM32(ecx); /* 0x47035640: mov eax, dword ptr [ecx] */ 1514 edx = MEM32(esp + 0x4); /* 0x47035642: mov edx, dword ptr [esp + 4] */ 1515 MEM32(edx) = eax; /* 0x47035646: mov dword ptr [edx], eax */ 1516 edx = MEM32(ecx); /* 0x47035648: mov edx, dword ptr [ecx] */ 1517 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1518 eax = 0; /* 0x4703564A: xor eax, eax */ 1519 _cf = 0; 1520 _flag_k = FK_TEST; 1521 /* test edx, edx */ /* 0x4703564C: test edx, edx */ 1522 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 1523 _cf = 0; 1524 _flag_k = FK_TEST; 1525 SET_LO8(eax, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x4703564E: setne al */ 1526 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47035651: ret 4 */ 1527 RECOMP_REGS_OUT(); 1528 } 1529 1530 void sub_47035660(void) { 1531 int _fpu_cmp = 0; 1532 uint32_t _cf = 0; 1533 int _df = 1; 1534 uint32_t _flag_k = FK_NONE; 1535 uint32_t _flag_a = 0, _flag_b = 0; 1536 uint32_t _itail_tgt = 0; 1537 RECOMP_REGS_LOCALS 1538 RECOMP_ENTER(0x47035660u); 1539 1540 L_47035660: 1541 edx = MEM32(ecx); /* 0x47035660: mov edx, dword ptr [ecx] */ 1542 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1543 eax = 0; /* 0x47035662: xor eax, eax */ 1544 _cf = 0; 1545 _flag_k = FK_TEST; 1546 /* test edx, edx */ /* 0x47035664: test edx, edx */ 1547 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 1548 _cf = 0; 1549 _flag_k = FK_TEST; 1550 SET_LO8(eax, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x47035666: sete al */ 1551 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47035669: ret */ 1552 RECOMP_REGS_OUT(); 1553 } 1554 1555 void sub_47035670(void) { 1556 int _fpu_cmp = 0; 1557 uint32_t _cf = 0; 1558 int _df = 1; 1559 uint32_t _flag_k = FK_NONE; 1560 uint32_t _flag_a = 0, _flag_b = 0; 1561 uint32_t _itail_tgt = 0; 1562 RECOMP_REGS_LOCALS 1563 RECOMP_ENTER(0x47035670u); 1564 1565 L_47035670: 1566 eax = MEM32(ecx); /* 0x47035670: mov eax, dword ptr [ecx] */ 1567 /* test eax, eax */ /* 0x47035672: test eax, eax */ 1568 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1569 _cf = 0; 1570 _flag_k = FK_TEST; 1571 if (TEST_Z(_flag_a, _flag_b)) goto L_4703567B; /* 0x47035674: je 0x4703567b */ 1572 L_47035676: 1573 eax = MEM32(eax + 0x4C); /* 0x47035676: mov eax, dword ptr [eax + 0x4c] */ 1574 MEM32(ecx) = eax; /* 0x47035679: mov dword ptr [ecx], eax */ 1575 L_4703567B: 1576 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703567B: ret */ 1577 RECOMP_REGS_OUT(); 1578 } 1579 1580 void sub_47035680(void) { 1581 int _fpu_cmp = 0; 1582 uint32_t _cf = 0; 1583 int _df = 1; 1584 uint32_t _flag_k = FK_NONE; 1585 uint32_t _flag_a = 0, _flag_b = 0; 1586 uint32_t _itail_tgt = 0; 1587 RECOMP_REGS_LOCALS 1588 RECOMP_ENTER(0x47035680u); 1589 1590 L_47035680: 1591 PUSH32(esp, ecx); /* 0x47035680: push ecx */ 1592 PUSH32(esp, ebx); /* 0x47035681: push ebx */ 1593 PUSH32(esp, ebp); /* 0x47035682: push ebp */ 1594 PUSH32(esp, esi); /* 0x47035683: push esi */ 1595 PUSH32(esp, edi); /* 0x47035684: push edi */ 1596 edi = MEM32(0x470AC150); /* 0x47035685: mov edi, dword ptr [0x470ac150] */ 1597 ebp = ecx; /* 0x4703568B: mov ebp, ecx */ 1598 RECOMP_ICALL(edi); /* 0x4703568D: call edi */ 1599 RECOMP_FLAGS_IN(); 1600 ebx = MEM32(0x470AC3C8); /* 0x4703568F: mov ebx, dword ptr [0x470ac3c8] */ 1601 esi = eax; /* 0x47035695: mov esi, eax */ 1602 RECOMP_ICALL(ebx); /* 0x47035697: call ebx */ 1603 RECOMP_FLAGS_IN(); 1604 eax = MEM32(eax); /* 0x47035699: mov eax, dword ptr [eax] */ 1605 /* test eax, eax */ /* 0x4703569B: test eax, eax */ 1606 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1607 _cf = 0; 1608 _flag_k = FK_TEST; 1609 MEM32(esp + 0x10) = esi; /* 0x4703569D: mov dword ptr [esp + 0x10], esi */ 1610 if (TEST_Z(_flag_a, _flag_b)) goto L_470356A7; /* 0x470356A1: je 0x470356a7 */ 1611 L_470356A3: 1612 MEM32(esp + 0x10) = eax; /* 0x470356A3: mov dword ptr [esp + 0x10], eax */ 1613 L_470356A7: 1614 RECOMP_ICALL(0x47039020u); /* 0x470356A7: call 0x47039020 */ /* not lifted */ 1615 RECOMP_FLAGS_IN(); 1616 esi = eax; /* 0x470356AC: mov esi, eax */ 1617 ecx = esi; /* 0x470356AE: mov ecx, esi */ 1618 RECOMP_ICALL(0x4703B210u); /* 0x470356B0: call 0x4703b210 */ /* not lifted */ 1619 RECOMP_FLAGS_IN(); 1620 PUSH32(esp, eax); /* 0x470356B5: push eax */ 1621 ecx = esi; /* 0x470356B6: mov ecx, esi */ 1622 RECOMP_ICALL(0x4703B240u); /* 0x470356B8: call 0x4703b240 */ /* not lifted */ 1623 RECOMP_FLAGS_IN(); 1624 PUSH32(esp, eax); /* 0x470356BD: push eax */ 1625 ecx = esi; /* 0x470356BE: mov ecx, esi */ 1626 RECOMP_ICALL(0x4703B080u); /* 0x470356C0: call 0x4703b080 */ /* not lifted */ 1627 RECOMP_FLAGS_IN(); 1628 PUSH32(esp, eax); /* 0x470356C5: push eax */ 1629 eax = MEM32(esp + 0x1C); /* 0x470356C6: mov eax, dword ptr [esp + 0x1c] */ 1630 PUSH32(esp, eax); /* 0x470356CA: push eax */ 1631 PUSH32(esp, 0); /* 0x470356CB: push 0 */ 1632 PUSH32(esp, 0xF7u); /* 0x470356CD: push 0xf7 */ 1633 PUSH32(esp, 0x47106DE4u); /* 0x470356D2: push 0x47106de4 */ 1634 ecx = esi; /* 0x470356D7: mov ecx, esi */ 1635 RECOMP_ICALL(0x4703A340u); /* 0x470356D9: call 0x4703a340 */ /* not lifted */ 1636 RECOMP_FLAGS_IN(); 1637 PUSH32(esp, ebp); /* 0x470356DE: push ebp */ 1638 PUSH32(esp, 0x471052CCu); /* 0x470356DF: push 0x471052cc */ 1639 PUSH32(esp, 4); /* 0x470356E4: push 4 */ 1640 PUSH32(esp, esi); /* 0x470356E6: push esi */ 1641 RECOMP_ICALL(0x47039830u); /* 0x470356E7: call 0x47039830 */ /* not lifted */ 1642 RECOMP_FLAGS_IN(); 1643 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1644 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1645 esp = esp + 0x10u; /* 0x470356EC: add esp, 0x10 */ 1646 _flag_k = FK_ADD; 1647 RECOMP_ICALL(edi); /* 0x470356EF: call edi */ 1648 RECOMP_FLAGS_IN(); 1649 esi = eax; /* 0x470356F1: mov esi, eax */ 1650 RECOMP_ICALL(ebx); /* 0x470356F3: call ebx */ 1651 RECOMP_FLAGS_IN(); 1652 eax = MEM32(eax); /* 0x470356F5: mov eax, dword ptr [eax] */ 1653 /* test eax, eax */ /* 0x470356F7: test eax, eax */ 1654 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1655 _cf = 0; 1656 _flag_k = FK_TEST; 1657 MEM32(esp + 0x10) = esi; /* 0x470356F9: mov dword ptr [esp + 0x10], esi */ 1658 if (TEST_Z(_flag_a, _flag_b)) goto L_47035703; /* 0x470356FD: je 0x47035703 */ 1659 L_470356FF: 1660 MEM32(esp + 0x10) = eax; /* 0x470356FF: mov dword ptr [esp + 0x10], eax */ 1661 L_47035703: 1662 RECOMP_ICALL(0x47039020u); /* 0x47035703: call 0x47039020 */ /* not lifted */ 1663 RECOMP_FLAGS_IN(); 1664 esi = eax; /* 0x47035708: mov esi, eax */ 1665 ecx = esi; /* 0x4703570A: mov ecx, esi */ 1666 RECOMP_ICALL(0x4703B210u); /* 0x4703570C: call 0x4703b210 */ /* not lifted */ 1667 RECOMP_FLAGS_IN(); 1668 PUSH32(esp, eax); /* 0x47035711: push eax */ 1669 ecx = esi; /* 0x47035712: mov ecx, esi */ 1670 RECOMP_ICALL(0x4703B240u); /* 0x47035714: call 0x4703b240 */ /* not lifted */ 1671 RECOMP_FLAGS_IN(); 1672 PUSH32(esp, eax); /* 0x47035719: push eax */ 1673 ecx = esi; /* 0x4703571A: mov ecx, esi */ 1674 RECOMP_ICALL(0x4703B080u); /* 0x4703571C: call 0x4703b080 */ /* not lifted */ 1675 RECOMP_FLAGS_IN(); 1676 ecx = MEM32(esp + 0x18); /* 0x47035721: mov ecx, dword ptr [esp + 0x18] */ 1677 PUSH32(esp, eax); /* 0x47035725: push eax */ 1678 PUSH32(esp, ecx); /* 0x47035726: push ecx */ 1679 PUSH32(esp, 0); /* 0x47035727: push 0 */ 1680 PUSH32(esp, 0xFAu); /* 0x47035729: push 0xfa */ 1681 PUSH32(esp, 0x47106DE4u); /* 0x4703572E: push 0x47106de4 */ 1682 ecx = esi; /* 0x47035733: mov ecx, esi */ 1683 RECOMP_ICALL(0x4703A340u); /* 0x47035735: call 0x4703a340 */ /* not lifted */ 1684 RECOMP_FLAGS_IN(); 1685 edx = MEM32(ebp); /* 0x4703573A: mov edx, dword ptr [ebp] */ 1686 PUSH32(esp, edx); /* 0x4703573D: push edx */ 1687 PUSH32(esp, 0x47106EF0u); /* 0x4703573E: push 0x47106ef0 */ 1688 PUSH32(esp, 4); /* 0x47035743: push 4 */ 1689 PUSH32(esp, esi); /* 0x47035745: push esi */ 1690 RECOMP_ICALL(0x47039830u); /* 0x47035746: call 0x47039830 */ /* not lifted */ 1691 RECOMP_FLAGS_IN(); 1692 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1693 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1694 esp = esp + 0x10u; /* 0x4703574B: add esp, 0x10 */ 1695 _flag_k = FK_ADD; 1696 RECOMP_ICALL(edi); /* 0x4703574E: call edi */ 1697 RECOMP_FLAGS_IN(); 1698 ebp = eax; /* 0x47035750: mov ebp, eax */ 1699 RECOMP_ICALL(ebx); /* 0x47035752: call ebx */ 1700 RECOMP_FLAGS_IN(); 1701 eax = MEM32(eax); /* 0x47035754: mov eax, dword ptr [eax] */ 1702 /* test eax, eax */ /* 0x47035756: test eax, eax */ 1703 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1704 _cf = 0; 1705 _flag_k = FK_TEST; 1706 if (TEST_Z(_flag_a, _flag_b)) goto L_4703575C; /* 0x47035758: je 0x4703575c */ 1707 L_4703575A: 1708 ebp = eax; /* 0x4703575A: mov ebp, eax */ 1709 L_4703575C: 1710 RECOMP_ICALL(0x47039020u); /* 0x4703575C: call 0x47039020 */ /* not lifted */ 1711 RECOMP_FLAGS_IN(); 1712 esi = eax; /* 0x47035761: mov esi, eax */ 1713 ecx = esi; /* 0x47035763: mov ecx, esi */ 1714 RECOMP_ICALL(0x4703B210u); /* 0x47035765: call 0x4703b210 */ /* not lifted */ 1715 RECOMP_FLAGS_IN(); 1716 PUSH32(esp, eax); /* 0x4703576A: push eax */ 1717 ecx = esi; /* 0x4703576B: mov ecx, esi */ 1718 RECOMP_ICALL(0x4703B240u); /* 0x4703576D: call 0x4703b240 */ /* not lifted */ 1719 RECOMP_FLAGS_IN(); 1720 PUSH32(esp, eax); /* 0x47035772: push eax */ 1721 ecx = esi; /* 0x47035773: mov ecx, esi */ 1722 RECOMP_ICALL(0x4703B080u); /* 0x47035775: call 0x4703b080 */ /* not lifted */ 1723 RECOMP_FLAGS_IN(); 1724 PUSH32(esp, eax); /* 0x4703577A: push eax */ 1725 PUSH32(esp, ebp); /* 0x4703577B: push ebp */ 1726 PUSH32(esp, 0); /* 0x4703577C: push 0 */ 1727 PUSH32(esp, 0xFBu); /* 0x4703577E: push 0xfb */ 1728 PUSH32(esp, 0x47106DE4u); /* 0x47035783: push 0x47106de4 */ 1729 ecx = esi; /* 0x47035788: mov ecx, esi */ 1730 RECOMP_ICALL(0x4703A340u); /* 0x4703578A: call 0x4703a340 */ /* not lifted */ 1731 RECOMP_FLAGS_IN(); 1732 PUSH32(esp, 0x47106EDCu); /* 0x4703578F: push 0x47106edc */ 1733 PUSH32(esp, 4); /* 0x47035794: push 4 */ 1734 PUSH32(esp, esi); /* 0x47035796: push esi */ 1735 RECOMP_ICALL(0x47039830u); /* 0x47035797: call 0x47039830 */ /* not lifted */ 1736 RECOMP_FLAGS_IN(); 1737 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1738 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1739 esp = esp + 0xCu; /* 0x4703579C: add esp, 0xc */ 1740 _flag_k = FK_ADD; 1741 RECOMP_ICALL(edi); /* 0x4703579F: call edi */ 1742 RECOMP_FLAGS_IN(); 1743 esi = eax; /* 0x470357A1: mov esi, eax */ 1744 RECOMP_ICALL(ebx); /* 0x470357A3: call ebx */ 1745 RECOMP_FLAGS_IN(); 1746 eax = MEM32(eax); /* 0x470357A5: mov eax, dword ptr [eax] */ 1747 /* test eax, eax */ /* 0x470357A7: test eax, eax */ 1748 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1749 _cf = 0; 1750 _flag_k = FK_TEST; 1751 edi = esi; /* 0x470357A9: mov edi, esi */ 1752 if (TEST_Z(_flag_a, _flag_b)) goto L_470357AF; /* 0x470357AB: je 0x470357af */ 1753 L_470357AD: 1754 edi = eax; /* 0x470357AD: mov edi, eax */ 1755 L_470357AF: 1756 RECOMP_ICALL(0x47039020u); /* 0x470357AF: call 0x47039020 */ /* not lifted */ 1757 RECOMP_FLAGS_IN(); 1758 esi = eax; /* 0x470357B4: mov esi, eax */ 1759 ecx = esi; /* 0x470357B6: mov ecx, esi */ 1760 RECOMP_ICALL(0x4703B210u); /* 0x470357B8: call 0x4703b210 */ /* not lifted */ 1761 RECOMP_FLAGS_IN(); 1762 PUSH32(esp, eax); /* 0x470357BD: push eax */ 1763 ecx = esi; /* 0x470357BE: mov ecx, esi */ 1764 RECOMP_ICALL(0x4703B240u); /* 0x470357C0: call 0x4703b240 */ /* not lifted */ 1765 RECOMP_FLAGS_IN(); 1766 PUSH32(esp, eax); /* 0x470357C5: push eax */ 1767 ecx = esi; /* 0x470357C6: mov ecx, esi */ 1768 RECOMP_ICALL(0x4703B080u); /* 0x470357C8: call 0x4703b080 */ /* not lifted */ 1769 RECOMP_FLAGS_IN(); 1770 PUSH32(esp, eax); /* 0x470357CD: push eax */ 1771 PUSH32(esp, edi); /* 0x470357CE: push edi */ 1772 PUSH32(esp, 0); /* 0x470357CF: push 0 */ 1773 PUSH32(esp, 0xFCu); /* 0x470357D1: push 0xfc */ 1774 PUSH32(esp, 0x47106DE4u); /* 0x470357D6: push 0x47106de4 */ 1775 ecx = esi; /* 0x470357DB: mov ecx, esi */ 1776 RECOMP_ICALL(0x4703A340u); /* 0x470357DD: call 0x4703a340 */ /* not lifted */ 1777 RECOMP_FLAGS_IN(); 1778 PUSH32(esp, 0x4710529Cu); /* 0x470357E2: push 0x4710529c */ 1779 PUSH32(esp, 4); /* 0x470357E7: push 4 */ 1780 PUSH32(esp, esi); /* 0x470357E9: push esi */ 1781 RECOMP_ICALL(0x47039830u); /* 0x470357EA: call 0x47039830 */ /* not lifted */ 1782 RECOMP_FLAGS_IN(); 1783 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1784 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1785 esp = esp + 0xCu; /* 0x470357EF: add esp, 0xc */ 1786 _flag_k = FK_ADD; 1787 edi = POP32_VAL(esp); /* 0x470357F2: pop edi */ 1788 esi = POP32_VAL(esp); /* 0x470357F3: pop esi */ 1789 ebp = POP32_VAL(esp); /* 0x470357F4: pop ebp */ 1790 ebx = POP32_VAL(esp); /* 0x470357F5: pop ebx */ 1791 ecx = POP32_VAL(esp); /* 0x470357F6: pop ecx */ 1792 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470357F7: ret */ 1793 RECOMP_REGS_OUT(); 1794 } 1795 1796 void sub_47035800(void) { 1797 int _fpu_cmp = 0; 1798 uint32_t _cf = 0; 1799 int _df = 1; 1800 uint32_t _flag_k = FK_NONE; 1801 uint32_t _flag_a = 0, _flag_b = 0; 1802 uint32_t _itail_tgt = 0; 1803 RECOMP_REGS_LOCALS 1804 RECOMP_ENTER(0x47035800u); 1805 1806 L_47035800: 1807 PUSH32(esp, ecx); /* 0x47035800: push ecx */ 1808 PUSH32(esp, ebx); /* 0x47035801: push ebx */ 1809 PUSH32(esp, ebp); /* 0x47035802: push ebp */ 1810 PUSH32(esp, esi); /* 0x47035803: push esi */ 1811 PUSH32(esp, edi); /* 0x47035804: push edi */ 1812 edi = MEM32(0x470AC150); /* 0x47035805: mov edi, dword ptr [0x470ac150] */ 1813 ebp = ecx; /* 0x4703580B: mov ebp, ecx */ 1814 RECOMP_ICALL(edi); /* 0x4703580D: call edi */ 1815 RECOMP_FLAGS_IN(); 1816 ebx = MEM32(0x470AC3C8); /* 0x4703580F: mov ebx, dword ptr [0x470ac3c8] */ 1817 esi = eax; /* 0x47035815: mov esi, eax */ 1818 RECOMP_ICALL(ebx); /* 0x47035817: call ebx */ 1819 RECOMP_FLAGS_IN(); 1820 eax = MEM32(eax); /* 0x47035819: mov eax, dword ptr [eax] */ 1821 /* test eax, eax */ /* 0x4703581B: test eax, eax */ 1822 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1823 _cf = 0; 1824 _flag_k = FK_TEST; 1825 MEM32(esp + 0x10) = esi; /* 0x4703581D: mov dword ptr [esp + 0x10], esi */ 1826 if (TEST_Z(_flag_a, _flag_b)) goto L_47035827; /* 0x47035821: je 0x47035827 */ 1827 L_47035823: 1828 MEM32(esp + 0x10) = eax; /* 0x47035823: mov dword ptr [esp + 0x10], eax */ 1829 L_47035827: 1830 RECOMP_ICALL(0x47039020u); /* 0x47035827: call 0x47039020 */ /* not lifted */ 1831 RECOMP_FLAGS_IN(); 1832 esi = eax; /* 0x4703582C: mov esi, eax */ 1833 ecx = esi; /* 0x4703582E: mov ecx, esi */ 1834 RECOMP_ICALL(0x4703B210u); /* 0x47035830: call 0x4703b210 */ /* not lifted */ 1835 RECOMP_FLAGS_IN(); 1836 PUSH32(esp, eax); /* 0x47035835: push eax */ 1837 ecx = esi; /* 0x47035836: mov ecx, esi */ 1838 RECOMP_ICALL(0x4703B240u); /* 0x47035838: call 0x4703b240 */ /* not lifted */ 1839 RECOMP_FLAGS_IN(); 1840 PUSH32(esp, eax); /* 0x4703583D: push eax */ 1841 ecx = esi; /* 0x4703583E: mov ecx, esi */ 1842 RECOMP_ICALL(0x4703B080u); /* 0x47035840: call 0x4703b080 */ /* not lifted */ 1843 RECOMP_FLAGS_IN(); 1844 PUSH32(esp, eax); /* 0x47035845: push eax */ 1845 eax = MEM32(esp + 0x1C); /* 0x47035846: mov eax, dword ptr [esp + 0x1c] */ 1846 PUSH32(esp, eax); /* 0x4703584A: push eax */ 1847 PUSH32(esp, 0); /* 0x4703584B: push 0 */ 1848 PUSH32(esp, 0x103u); /* 0x4703584D: push 0x103 */ 1849 PUSH32(esp, 0x47106DE4u); /* 0x47035852: push 0x47106de4 */ 1850 ecx = esi; /* 0x47035857: mov ecx, esi */ 1851 RECOMP_ICALL(0x4703A340u); /* 0x47035859: call 0x4703a340 */ /* not lifted */ 1852 RECOMP_FLAGS_IN(); 1853 PUSH32(esp, ebp); /* 0x4703585E: push ebp */ 1854 PUSH32(esp, 0x471052CCu); /* 0x4703585F: push 0x471052cc */ 1855 PUSH32(esp, 4); /* 0x47035864: push 4 */ 1856 PUSH32(esp, esi); /* 0x47035866: push esi */ 1857 RECOMP_ICALL(0x47039830u); /* 0x47035867: call 0x47039830 */ /* not lifted */ 1858 RECOMP_FLAGS_IN(); 1859 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1860 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1861 esp = esp + 0x10u; /* 0x4703586C: add esp, 0x10 */ 1862 _flag_k = FK_ADD; 1863 RECOMP_ICALL(edi); /* 0x4703586F: call edi */ 1864 RECOMP_FLAGS_IN(); 1865 esi = eax; /* 0x47035871: mov esi, eax */ 1866 RECOMP_ICALL(ebx); /* 0x47035873: call ebx */ 1867 RECOMP_FLAGS_IN(); 1868 eax = MEM32(eax); /* 0x47035875: mov eax, dword ptr [eax] */ 1869 /* test eax, eax */ /* 0x47035877: test eax, eax */ 1870 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1871 _cf = 0; 1872 _flag_k = FK_TEST; 1873 MEM32(esp + 0x10) = esi; /* 0x47035879: mov dword ptr [esp + 0x10], esi */ 1874 if (TEST_Z(_flag_a, _flag_b)) goto L_47035883; /* 0x4703587D: je 0x47035883 */ 1875 L_4703587F: 1876 MEM32(esp + 0x10) = eax; /* 0x4703587F: mov dword ptr [esp + 0x10], eax */ 1877 L_47035883: 1878 RECOMP_ICALL(0x47039020u); /* 0x47035883: call 0x47039020 */ /* not lifted */ 1879 RECOMP_FLAGS_IN(); 1880 esi = eax; /* 0x47035888: mov esi, eax */ 1881 ecx = esi; /* 0x4703588A: mov ecx, esi */ 1882 RECOMP_ICALL(0x4703B210u); /* 0x4703588C: call 0x4703b210 */ /* not lifted */ 1883 RECOMP_FLAGS_IN(); 1884 PUSH32(esp, eax); /* 0x47035891: push eax */ 1885 ecx = esi; /* 0x47035892: mov ecx, esi */ 1886 RECOMP_ICALL(0x4703B240u); /* 0x47035894: call 0x4703b240 */ /* not lifted */ 1887 RECOMP_FLAGS_IN(); 1888 PUSH32(esp, eax); /* 0x47035899: push eax */ 1889 ecx = esi; /* 0x4703589A: mov ecx, esi */ 1890 RECOMP_ICALL(0x4703B080u); /* 0x4703589C: call 0x4703b080 */ /* not lifted */ 1891 RECOMP_FLAGS_IN(); 1892 ecx = MEM32(esp + 0x18); /* 0x470358A1: mov ecx, dword ptr [esp + 0x18] */ 1893 PUSH32(esp, eax); /* 0x470358A5: push eax */ 1894 PUSH32(esp, ecx); /* 0x470358A6: push ecx */ 1895 PUSH32(esp, 0); /* 0x470358A7: push 0 */ 1896 PUSH32(esp, 0x106u); /* 0x470358A9: push 0x106 */ 1897 PUSH32(esp, 0x47106DE4u); /* 0x470358AE: push 0x47106de4 */ 1898 ecx = esi; /* 0x470358B3: mov ecx, esi */ 1899 RECOMP_ICALL(0x4703A340u); /* 0x470358B5: call 0x4703a340 */ /* not lifted */ 1900 RECOMP_FLAGS_IN(); 1901 edx = MEM32(ebp + 0x8); /* 0x470358BA: mov edx, dword ptr [ebp + 8] */ 1902 PUSH32(esp, edx); /* 0x470358BD: push edx */ 1903 PUSH32(esp, 0x47106F3Cu); /* 0x470358BE: push 0x47106f3c */ 1904 PUSH32(esp, 4); /* 0x470358C3: push 4 */ 1905 PUSH32(esp, esi); /* 0x470358C5: push esi */ 1906 RECOMP_ICALL(0x47039830u); /* 0x470358C6: call 0x47039830 */ /* not lifted */ 1907 RECOMP_FLAGS_IN(); 1908 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1909 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1910 esp = esp + 0x10u; /* 0x470358CB: add esp, 0x10 */ 1911 _flag_k = FK_ADD; 1912 RECOMP_ICALL(edi); /* 0x470358CE: call edi */ 1913 RECOMP_FLAGS_IN(); 1914 esi = eax; /* 0x470358D0: mov esi, eax */ 1915 RECOMP_ICALL(ebx); /* 0x470358D2: call ebx */ 1916 RECOMP_FLAGS_IN(); 1917 eax = MEM32(eax); /* 0x470358D4: mov eax, dword ptr [eax] */ 1918 /* test eax, eax */ /* 0x470358D6: test eax, eax */ 1919 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1920 _cf = 0; 1921 _flag_k = FK_TEST; 1922 MEM32(esp + 0x10) = esi; /* 0x470358D8: mov dword ptr [esp + 0x10], esi */ 1923 if (TEST_Z(_flag_a, _flag_b)) goto L_470358E2; /* 0x470358DC: je 0x470358e2 */ 1924 L_470358DE: 1925 MEM32(esp + 0x10) = eax; /* 0x470358DE: mov dword ptr [esp + 0x10], eax */ 1926 L_470358E2: 1927 RECOMP_ICALL(0x47039020u); /* 0x470358E2: call 0x47039020 */ /* not lifted */ 1928 RECOMP_FLAGS_IN(); 1929 esi = eax; /* 0x470358E7: mov esi, eax */ 1930 ecx = esi; /* 0x470358E9: mov ecx, esi */ 1931 RECOMP_ICALL(0x4703B210u); /* 0x470358EB: call 0x4703b210 */ /* not lifted */ 1932 RECOMP_FLAGS_IN(); 1933 PUSH32(esp, eax); /* 0x470358F0: push eax */ 1934 ecx = esi; /* 0x470358F1: mov ecx, esi */ 1935 RECOMP_ICALL(0x4703B240u); /* 0x470358F3: call 0x4703b240 */ /* not lifted */ 1936 RECOMP_FLAGS_IN(); 1937 PUSH32(esp, eax); /* 0x470358F8: push eax */ 1938 ecx = esi; /* 0x470358F9: mov ecx, esi */ 1939 RECOMP_ICALL(0x4703B080u); /* 0x470358FB: call 0x4703b080 */ /* not lifted */ 1940 RECOMP_FLAGS_IN(); 1941 PUSH32(esp, eax); /* 0x47035900: push eax */ 1942 eax = MEM32(esp + 0x1C); /* 0x47035901: mov eax, dword ptr [esp + 0x1c] */ 1943 PUSH32(esp, eax); /* 0x47035905: push eax */ 1944 PUSH32(esp, 0); /* 0x47035906: push 0 */ 1945 PUSH32(esp, 0x107u); /* 0x47035908: push 0x107 */ 1946 PUSH32(esp, 0x47106DE4u); /* 0x4703590D: push 0x47106de4 */ 1947 ecx = esi; /* 0x47035912: mov ecx, esi */ 1948 RECOMP_ICALL(0x4703A340u); /* 0x47035914: call 0x4703a340 */ /* not lifted */ 1949 RECOMP_FLAGS_IN(); 1950 PUSH32(esp, 0x47106EDCu); /* 0x47035919: push 0x47106edc */ 1951 PUSH32(esp, 4); /* 0x4703591E: push 4 */ 1952 PUSH32(esp, esi); /* 0x47035920: push esi */ 1953 RECOMP_ICALL(0x47039830u); /* 0x47035921: call 0x47039830 */ /* not lifted */ 1954 RECOMP_FLAGS_IN(); 1955 ebp = MEM32(ebp); /* 0x47035926: mov ebp, dword ptr [ebp] */ 1956 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1957 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1958 esp = esp + 0xCu; /* 0x47035929: add esp, 0xc */ 1959 _flag_k = FK_ADD; 1960 /* test ebp, ebp */ /* 0x4703592C: test ebp, ebp */ 1961 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebp); 1962 _cf = 0; 1963 _flag_k = FK_TEST; 1964 if (TEST_Z(_flag_a, _flag_b)) goto L_47035937; /* 0x4703592E: je 0x47035937 */ 1965 L_47035930: 1966 ecx = ebp; /* 0x47035930: mov ecx, ebp */ 1967 RECOMP_ICALL(0x47034C60u); /* 0x47035932: call 0x47034c60 */ /* not lifted */ 1968 RECOMP_FLAGS_IN(); 1969 L_47035937: 1970 RECOMP_ICALL(edi); /* 0x47035937: call edi */ 1971 RECOMP_FLAGS_IN(); 1972 ebp = eax; /* 0x47035939: mov ebp, eax */ 1973 RECOMP_ICALL(ebx); /* 0x4703593B: call ebx */ 1974 RECOMP_FLAGS_IN(); 1975 eax = MEM32(eax); /* 0x4703593D: mov eax, dword ptr [eax] */ 1976 /* test eax, eax */ /* 0x4703593F: test eax, eax */ 1977 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1978 _cf = 0; 1979 _flag_k = FK_TEST; 1980 if (TEST_Z(_flag_a, _flag_b)) goto L_47035945; /* 0x47035941: je 0x47035945 */ 1981 L_47035943: 1982 ebp = eax; /* 0x47035943: mov ebp, eax */ 1983 L_47035945: 1984 RECOMP_ICALL(0x47039020u); /* 0x47035945: call 0x47039020 */ /* not lifted */ 1985 RECOMP_FLAGS_IN(); 1986 esi = eax; /* 0x4703594A: mov esi, eax */ 1987 ecx = esi; /* 0x4703594C: mov ecx, esi */ 1988 RECOMP_ICALL(0x4703B210u); /* 0x4703594E: call 0x4703b210 */ /* not lifted */ 1989 RECOMP_FLAGS_IN(); 1990 PUSH32(esp, eax); /* 0x47035953: push eax */ 1991 ecx = esi; /* 0x47035954: mov ecx, esi */ 1992 RECOMP_ICALL(0x4703B240u); /* 0x47035956: call 0x4703b240 */ /* not lifted */ 1993 RECOMP_FLAGS_IN(); 1994 PUSH32(esp, eax); /* 0x4703595B: push eax */ 1995 ecx = esi; /* 0x4703595C: mov ecx, esi */ 1996 RECOMP_ICALL(0x4703B080u); /* 0x4703595E: call 0x4703b080 */ /* not lifted */ 1997 RECOMP_FLAGS_IN(); 1998 PUSH32(esp, eax); /* 0x47035963: push eax */ 1999 PUSH32(esp, ebp); /* 0x47035964: push ebp */ 2000 PUSH32(esp, 0); /* 0x47035965: push 0 */ 2001 PUSH32(esp, 0x10Bu); /* 0x47035967: push 0x10b */ 2002 PUSH32(esp, 0x47106DE4u); /* 0x4703596C: push 0x47106de4 */ 2003 ecx = esi; /* 0x47035971: mov ecx, esi */ 2004 RECOMP_ICALL(0x4703A340u); /* 0x47035973: call 0x4703a340 */ /* not lifted */ 2005 RECOMP_FLAGS_IN(); 2006 PUSH32(esp, 0x47106F18u); /* 0x47035978: push 0x47106f18 */ 2007 PUSH32(esp, 4); /* 0x4703597D: push 4 */ 2008 PUSH32(esp, esi); /* 0x4703597F: push esi */ 2009 RECOMP_ICALL(0x47039830u); /* 0x47035980: call 0x47039830 */ /* not lifted */ 2010 RECOMP_FLAGS_IN(); 2011 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2012 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2013 esp = esp + 0xCu; /* 0x47035985: add esp, 0xc */ 2014 _flag_k = FK_ADD; 2015 RECOMP_ICALL(edi); /* 0x47035988: call edi */ 2016 RECOMP_FLAGS_IN(); 2017 esi = eax; /* 0x4703598A: mov esi, eax */ 2018 RECOMP_ICALL(ebx); /* 0x4703598C: call ebx */ 2019 RECOMP_FLAGS_IN(); 2020 eax = MEM32(eax); /* 0x4703598E: mov eax, dword ptr [eax] */ 2021 /* test eax, eax */ /* 0x47035990: test eax, eax */ 2022 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2023 _cf = 0; 2024 _flag_k = FK_TEST; 2025 edi = esi; /* 0x47035992: mov edi, esi */ 2026 if (TEST_Z(_flag_a, _flag_b)) goto L_47035998; /* 0x47035994: je 0x47035998 */ 2027 L_47035996: 2028 edi = eax; /* 0x47035996: mov edi, eax */ 2029 L_47035998: 2030 RECOMP_ICALL(0x47039020u); /* 0x47035998: call 0x47039020 */ /* not lifted */ 2031 RECOMP_FLAGS_IN(); 2032 esi = eax; /* 0x4703599D: mov esi, eax */ 2033 ecx = esi; /* 0x4703599F: mov ecx, esi */ 2034 RECOMP_ICALL(0x4703B210u); /* 0x470359A1: call 0x4703b210 */ /* not lifted */ 2035 RECOMP_FLAGS_IN(); 2036 PUSH32(esp, eax); /* 0x470359A6: push eax */ 2037 ecx = esi; /* 0x470359A7: mov ecx, esi */ 2038 RECOMP_ICALL(0x4703B240u); /* 0x470359A9: call 0x4703b240 */ /* not lifted */ 2039 RECOMP_FLAGS_IN(); 2040 PUSH32(esp, eax); /* 0x470359AE: push eax */ 2041 ecx = esi; /* 0x470359AF: mov ecx, esi */ 2042 RECOMP_ICALL(0x4703B080u); /* 0x470359B1: call 0x4703b080 */ /* not lifted */ 2043 RECOMP_FLAGS_IN(); 2044 PUSH32(esp, eax); /* 0x470359B6: push eax */ 2045 PUSH32(esp, edi); /* 0x470359B7: push edi */ 2046 PUSH32(esp, 0); /* 0x470359B8: push 0 */ 2047 PUSH32(esp, 0x10Cu); /* 0x470359BA: push 0x10c */ 2048 PUSH32(esp, 0x47106DE4u); /* 0x470359BF: push 0x47106de4 */ 2049 ecx = esi; /* 0x470359C4: mov ecx, esi */ 2050 RECOMP_ICALL(0x4703A340u); /* 0x470359C6: call 0x4703a340 */ /* not lifted */ 2051 RECOMP_FLAGS_IN(); 2052 PUSH32(esp, 0x4710529Cu); /* 0x470359CB: push 0x4710529c */ 2053 PUSH32(esp, 4); /* 0x470359D0: push 4 */ 2054 PUSH32(esp, esi); /* 0x470359D2: push esi */ 2055 RECOMP_ICALL(0x47039830u); /* 0x470359D3: call 0x47039830 */ /* not lifted */ 2056 RECOMP_FLAGS_IN(); 2057 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2058 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2059 esp = esp + 0xCu; /* 0x470359D8: add esp, 0xc */ 2060 _flag_k = FK_ADD; 2061 edi = POP32_VAL(esp); /* 0x470359DB: pop edi */ 2062 esi = POP32_VAL(esp); /* 0x470359DC: pop esi */ 2063 ebp = POP32_VAL(esp); /* 0x470359DD: pop ebp */ 2064 ebx = POP32_VAL(esp); /* 0x470359DE: pop ebx */ 2065 ecx = POP32_VAL(esp); /* 0x470359DF: pop ecx */ 2066 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470359E0: ret */ 2067 RECOMP_REGS_OUT(); 2068 } 2069 2070 void sub_470359F0(void) { 2071 int _fpu_cmp = 0; 2072 uint32_t _cf = 0; 2073 int _df = 1; 2074 uint32_t _flag_k = FK_NONE; 2075 uint32_t _flag_a = 0, _flag_b = 0; 2076 uint32_t _itail_tgt = 0; 2077 RECOMP_REGS_LOCALS 2078 RECOMP_ENTER(0x470359F0u); 2079 2080 L_470359F0: 2081 PUSH32(esp, esi); /* 0x470359F0: push esi */ 2082 esi = MEM32(esp + 0x8); /* 0x470359F1: mov esi, dword ptr [esp + 8] */ 2083 MEM32(esi + 0x4C) = 0; /* 0x470359F5: mov dword ptr [esi + 0x4c], 0 */ 2084 _flag_a = (uint32_t)(MEM32(ecx + 0x8)); _flag_b = (uint32_t)(1); 2085 MEM32(ecx + 0x8) = MEM32(ecx + 0x8) + 1; /* 0x470359FC: inc dword ptr [ecx + 8] */ 2086 _flag_k = FK_INC; 2087 eax = MEM32(ecx); /* 0x470359FF: mov eax, dword ptr [ecx] */ 2088 /* test eax, eax */ /* 0x47035A01: test eax, eax */ 2089 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2090 _cf = 0; 2091 _flag_k = FK_TEST; 2092 if (TEST_NZ(_flag_a, _flag_b)) goto L_47035A0E; /* 0x47035A03: jne 0x47035a0e */ 2093 L_47035A05: 2094 MEM32(ecx + 0x4) = esi; /* 0x47035A05: mov dword ptr [ecx + 4], esi */ 2095 MEM32(ecx) = esi; /* 0x47035A08: mov dword ptr [ecx], esi */ 2096 esi = POP32_VAL(esp); /* 0x47035A0A: pop esi */ 2097 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47035A0B: ret 8 */ 2098 L_47035A0E: 2099 edx = MEM32(esp + 0xC); /* 0x47035A0E: mov edx, dword ptr [esp + 0xc] */ 2100 /* test edx, edx */ /* 0x47035A12: test edx, edx */ 2101 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 2102 _cf = 0; 2103 _flag_k = FK_TEST; 2104 if (TEST_NZ(_flag_a, _flag_b)) goto L_47035A1F; /* 0x47035A14: jne 0x47035a1f */ 2105 L_47035A16: 2106 MEM32(esi + 0x4C) = eax; /* 0x47035A16: mov dword ptr [esi + 0x4c], eax */ 2107 MEM32(ecx) = esi; /* 0x47035A19: mov dword ptr [ecx], esi */ 2108 esi = POP32_VAL(esp); /* 0x47035A1B: pop esi */ 2109 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47035A1C: ret 8 */ 2110 L_47035A1F: 2111 /* cmp edx, 0xFFFFFFFFu */ /* 0x47035A1F: cmp edx, -1 */ 2112 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFFFu); 2113 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2114 _flag_k = FK_CMP; 2115 if (CMP_NE(_flag_a, _flag_b)) goto L_47035A31; /* 0x47035A22: jne 0x47035a31 */ 2116 L_47035A24: 2117 eax = MEM32(ecx + 0x4); /* 0x47035A24: mov eax, dword ptr [ecx + 4] */ 2118 MEM32(eax + 0x4C) = esi; /* 0x47035A27: mov dword ptr [eax + 0x4c], esi */ 2119 MEM32(ecx + 0x4) = esi; /* 0x47035A2A: mov dword ptr [ecx + 4], esi */ 2120 esi = POP32_VAL(esp); /* 0x47035A2D: pop esi */ 2121 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47035A2E: ret 8 */ 2122 L_47035A31: 2123 /* cmp edx, 1 */ /* 0x47035A31: cmp edx, 1 */ 2124 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 2125 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2126 _flag_k = FK_CMP; 2127 if (CMP_LE(_flag_a, _flag_b)) goto L_47035A45; /* 0x47035A34: jle 0x47035a45 */ 2128 L_47035A36: 2129 ecx = MEM32(eax + 0x4C); /* 0x47035A36: mov ecx, dword ptr [eax + 0x4c] */ 2130 /* test ecx, ecx */ /* 0x47035A39: test ecx, ecx */ 2131 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2132 _cf = 0; 2133 _flag_k = FK_TEST; 2134 if (TEST_Z(_flag_a, _flag_b)) goto L_47035A45; /* 0x47035A3B: je 0x47035a45 */ 2135 L_47035A3D: 2136 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 2137 edx = edx - 1; /* 0x47035A3D: dec edx */ 2138 _flag_k = FK_DEC; 2139 /* cmp edx, 1 */ /* 0x47035A3E: cmp edx, 1 */ 2140 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 2141 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2142 _flag_k = FK_CMP; 2143 eax = ecx; /* 0x47035A41: mov eax, ecx */ 2144 RECOMP_BACKEDGE(); 2145 if (CMP_G(_flag_a, _flag_b)) goto L_47035A36; /* 0x47035A43: jg 0x47035a36 */ 2146 L_47035A45: 2147 ecx = MEM32(eax + 0x4C); /* 0x47035A45: mov ecx, dword ptr [eax + 0x4c] */ 2148 MEM32(esi + 0x4C) = ecx; /* 0x47035A48: mov dword ptr [esi + 0x4c], ecx */ 2149 MEM32(eax + 0x4C) = esi; /* 0x47035A4B: mov dword ptr [eax + 0x4c], esi */ 2150 esi = POP32_VAL(esp); /* 0x47035A4E: pop esi */ 2151 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47035A4F: ret 8 */ 2152 RECOMP_REGS_OUT(); 2153 } 2154 2155 void sub_47035A60(void) { 2156 int _fpu_cmp = 0; 2157 uint32_t _cf = 0; 2158 int _df = 1; 2159 uint32_t _flag_k = FK_NONE; 2160 uint32_t _flag_a = 0, _flag_b = 0; 2161 uint32_t _itail_tgt = 0; 2162 RECOMP_REGS_LOCALS 2163 RECOMP_ENTER(0x47035A60u); 2164 2165 L_47035A60: 2166 PUSH32(esp, esi); /* 0x47035A60: push esi */ 2167 esi = ecx; /* 0x47035A61: mov esi, ecx */ 2168 eax = MEM32(esi); /* 0x47035A63: mov eax, dword ptr [esi] */ 2169 /* test eax, eax */ /* 0x47035A65: test eax, eax */ 2170 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2171 _cf = 0; 2172 _flag_k = FK_TEST; 2173 if (TEST_Z(_flag_a, _flag_b)) goto L_47035AF0; /* 0x47035A67: je 0x47035af0 */ 2174 L_47035A6D: 2175 ecx = MEM32(eax + 0x4C); /* 0x47035A6D: mov ecx, dword ptr [eax + 0x4c] */ 2176 MEM32(esi) = ecx; /* 0x47035A70: mov dword ptr [esi], ecx */ 2177 MEM32(eax + 0x4C) = 0; /* 0x47035A72: mov dword ptr [eax + 0x4c], 0 */ 2178 edx = MEM32(esi + 0x8); /* 0x47035A79: mov edx, dword ptr [esi + 8] */ 2179 ecx = MEM32(esi); /* 0x47035A7C: mov ecx, dword ptr [esi] */ 2180 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 2181 edx = edx - 1; /* 0x47035A7E: dec edx */ 2182 _flag_k = FK_DEC; 2183 /* test ecx, ecx */ /* 0x47035A7F: test ecx, ecx */ 2184 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2185 _cf = 0; 2186 _flag_k = FK_TEST; 2187 MEM32(esi + 0x8) = edx; /* 0x47035A81: mov dword ptr [esi + 8], edx */ 2188 eax = edx; /* 0x47035A84: mov eax, edx */ 2189 if (TEST_NZ(_flag_a, _flag_b)) goto L_47035AF0; /* 0x47035A86: jne 0x47035af0 */ 2190 L_47035A88: 2191 /* test eax, eax */ /* 0x47035A88: test eax, eax */ 2192 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2193 _cf = 0; 2194 _flag_k = FK_TEST; 2195 if (TEST_Z(_flag_a, _flag_b)) goto L_47035AF0; /* 0x47035A8A: je 0x47035af0 */ 2196 L_47035A8C: 2197 PUSH32(esp, ebx); /* 0x47035A8C: push ebx */ 2198 PUSH32(esp, edi); /* 0x47035A8D: push edi */ 2199 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47035A8E: call dword ptr [0x470ac150] */ 2200 RECOMP_FLAGS_IN(); 2201 ebx = eax; /* 0x47035A94: mov ebx, eax */ 2202 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47035A96: call dword ptr [0x470ac3c8] */ 2203 RECOMP_FLAGS_IN(); 2204 eax = MEM32(eax); /* 0x47035A9C: mov eax, dword ptr [eax] */ 2205 /* test eax, eax */ /* 0x47035A9E: test eax, eax */ 2206 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2207 _cf = 0; 2208 _flag_k = FK_TEST; 2209 if (TEST_Z(_flag_a, _flag_b)) goto L_47035AA4; /* 0x47035AA0: je 0x47035aa4 */ 2210 L_47035AA2: 2211 ebx = eax; /* 0x47035AA2: mov ebx, eax */ 2212 L_47035AA4: 2213 RECOMP_ICALL(0x47039020u); /* 0x47035AA4: call 0x47039020 */ /* not lifted */ 2214 RECOMP_FLAGS_IN(); 2215 edi = eax; /* 0x47035AA9: mov edi, eax */ 2216 ecx = edi; /* 0x47035AAB: mov ecx, edi */ 2217 RECOMP_ICALL(0x4703B210u); /* 0x47035AAD: call 0x4703b210 */ /* not lifted */ 2218 RECOMP_FLAGS_IN(); 2219 PUSH32(esp, eax); /* 0x47035AB2: push eax */ 2220 ecx = edi; /* 0x47035AB3: mov ecx, edi */ 2221 RECOMP_ICALL(0x4703B240u); /* 0x47035AB5: call 0x4703b240 */ /* not lifted */ 2222 RECOMP_FLAGS_IN(); 2223 PUSH32(esp, eax); /* 0x47035ABA: push eax */ 2224 ecx = edi; /* 0x47035ABB: mov ecx, edi */ 2225 RECOMP_ICALL(0x4703B080u); /* 0x47035ABD: call 0x4703b080 */ /* not lifted */ 2226 RECOMP_FLAGS_IN(); 2227 PUSH32(esp, eax); /* 0x47035AC2: push eax */ 2228 PUSH32(esp, ebx); /* 0x47035AC3: push ebx */ 2229 PUSH32(esp, 0xFFFFFFFFu); /* 0x47035AC4: push -1 */ 2230 PUSH32(esp, 0x15Eu); /* 0x47035AC6: push 0x15e */ 2231 PUSH32(esp, 0x47106DE4u); /* 0x47035ACB: push 0x47106de4 */ 2232 ecx = edi; /* 0x47035AD0: mov ecx, edi */ 2233 RECOMP_ICALL(0x4703A340u); /* 0x47035AD2: call 0x4703a340 */ /* not lifted */ 2234 RECOMP_FLAGS_IN(); 2235 edx = MEM32(esi + 0x8); /* 0x47035AD7: mov edx, dword ptr [esi + 8] */ 2236 PUSH32(esp, edx); /* 0x47035ADA: push edx */ 2237 PUSH32(esp, 0x47106F68u); /* 0x47035ADB: push 0x47106f68 */ 2238 PUSH32(esp, 0x80u); /* 0x47035AE0: push 0x80 */ 2239 PUSH32(esp, edi); /* 0x47035AE5: push edi */ 2240 RECOMP_ICALL(0x47039830u); /* 0x47035AE6: call 0x47039830 */ /* not lifted */ 2241 RECOMP_FLAGS_IN(); 2242 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2243 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2244 esp = esp + 0x10u; /* 0x47035AEB: add esp, 0x10 */ 2245 _flag_k = FK_ADD; 2246 edi = POP32_VAL(esp); /* 0x47035AEE: pop edi */ 2247 ebx = POP32_VAL(esp); /* 0x47035AEF: pop ebx */ 2248 L_47035AF0: 2249 esi = POP32_VAL(esp); /* 0x47035AF0: pop esi */ 2250 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47035AF1: ret */ 2251 RECOMP_REGS_OUT(); 2252 } 2253 2254 void sub_47035B00(void) { 2255 int _fpu_cmp = 0; 2256 uint32_t _cf = 0; 2257 int _df = 1; 2258 uint32_t _flag_k = FK_NONE; 2259 uint32_t _flag_a = 0, _flag_b = 0; 2260 uint32_t _itail_tgt = 0; 2261 RECOMP_REGS_LOCALS 2262 RECOMP_ENTER(0x47035B00u); 2263 2264 L_47035B00: 2265 PUSH32(esp, esi); /* 0x47035B00: push esi */ 2266 esi = MEM32(esp + 0x8); /* 0x47035B01: mov esi, dword ptr [esp + 8] */ 2267 /* test esi, esi */ /* 0x47035B05: test esi, esi */ 2268 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 2269 _cf = 0; 2270 _flag_k = FK_TEST; 2271 if (TEST_Z(_flag_a, _flag_b)) goto L_47035B4E; /* 0x47035B07: je 0x47035b4e */ 2272 L_47035B09: 2273 eax = MEM32(ecx); /* 0x47035B09: mov eax, dword ptr [ecx] */ 2274 /* test eax, eax */ /* 0x47035B0B: test eax, eax */ 2275 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2276 _cf = 0; 2277 _flag_k = FK_TEST; 2278 if (TEST_Z(_flag_a, _flag_b)) goto L_47035B4E; /* 0x47035B0D: je 0x47035b4e */ 2279 L_47035B0F: 2280 /* cmp eax, esi */ /* 0x47035B0F: cmp eax, esi */ 2281 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 2282 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2283 _flag_k = FK_CMP; 2284 if (CMP_NE(_flag_a, _flag_b)) goto L_47035B26; /* 0x47035B11: jne 0x47035b26 */ 2285 L_47035B13: 2286 eax = MEM32(eax + 0x4C); /* 0x47035B13: mov eax, dword ptr [eax + 0x4c] */ 2287 /* test eax, eax */ /* 0x47035B16: test eax, eax */ 2288 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2289 _cf = 0; 2290 _flag_k = FK_TEST; 2291 MEM32(ecx) = eax; /* 0x47035B18: mov dword ptr [ecx], eax */ 2292 if (TEST_NZ(_flag_a, _flag_b)) goto L_47035B4B; /* 0x47035B1A: jne 0x47035b4b */ 2293 L_47035B1C: 2294 MEM32(ecx + 0x4) = eax; /* 0x47035B1C: mov dword ptr [ecx + 4], eax */ 2295 _flag_a = (uint32_t)(MEM32(ecx + 0x8)); _flag_b = (uint32_t)(1); 2296 MEM32(ecx + 0x8) = MEM32(ecx + 0x8) - 1; /* 0x47035B1F: dec dword ptr [ecx + 8] */ 2297 _flag_k = FK_DEC; 2298 esi = POP32_VAL(esp); /* 0x47035B22: pop esi */ 2299 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47035B23: ret 4 */ 2300 L_47035B26: 2301 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2302 edx = 0; /* 0x47035B26: xor edx, edx */ 2303 _cf = 0; 2304 _flag_k = FK_TEST; 2305 /* test eax, eax */ /* 0x47035B28: test eax, eax */ 2306 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2307 _cf = 0; 2308 _flag_k = FK_TEST; 2309 if (TEST_Z(_flag_a, _flag_b)) goto L_47035B4E; /* 0x47035B2A: je 0x47035b4e */ 2310 L_47035B2C: 2311 /* cmp eax, esi */ /* 0x47035B2C: cmp eax, esi */ 2312 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 2313 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2314 _flag_k = FK_CMP; 2315 if (CMP_EQ(_flag_a, _flag_b)) goto L_47035B3D; /* 0x47035B2E: je 0x47035b3d */ 2316 L_47035B30: 2317 edx = eax; /* 0x47035B30: mov edx, eax */ 2318 eax = MEM32(eax + 0x4C); /* 0x47035B32: mov eax, dword ptr [eax + 0x4c] */ 2319 /* test eax, eax */ /* 0x47035B35: test eax, eax */ 2320 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2321 _cf = 0; 2322 _flag_k = FK_TEST; 2323 RECOMP_BACKEDGE(); 2324 if (TEST_NZ(_flag_a, _flag_b)) goto L_47035B2C; /* 0x47035B37: jne 0x47035b2c */ 2325 L_47035B39: 2326 esi = POP32_VAL(esp); /* 0x47035B39: pop esi */ 2327 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47035B3A: ret 4 */ 2328 L_47035B3D: 2329 esi = MEM32(eax + 0x4C); /* 0x47035B3D: mov esi, dword ptr [eax + 0x4c] */ 2330 MEM32(edx + 0x4C) = esi; /* 0x47035B40: mov dword ptr [edx + 0x4c], esi */ 2331 /* cmp MEM32(ecx + 0x4), eax */ /* 0x47035B43: cmp dword ptr [ecx + 4], eax */ 2332 _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(eax); 2333 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2334 _flag_k = FK_CMP; 2335 if (CMP_NE(_flag_a, _flag_b)) goto L_47035B4B; /* 0x47035B46: jne 0x47035b4b */ 2336 L_47035B48: 2337 MEM32(ecx + 0x4) = edx; /* 0x47035B48: mov dword ptr [ecx + 4], edx */ 2338 L_47035B4B: 2339 _flag_a = (uint32_t)(MEM32(ecx + 0x8)); _flag_b = (uint32_t)(1); 2340 MEM32(ecx + 0x8) = MEM32(ecx + 0x8) - 1; /* 0x47035B4B: dec dword ptr [ecx + 8] */ 2341 _flag_k = FK_DEC; 2342 L_47035B4E: 2343 esi = POP32_VAL(esp); /* 0x47035B4E: pop esi */ 2344 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47035B4F: ret 4 */ 2345 RECOMP_REGS_OUT(); 2346 } 2347 2348 void sub_47035B60(void) { 2349 int _fpu_cmp = 0; 2350 uint32_t _cf = 0; 2351 int _df = 1; 2352 uint32_t _flag_k = FK_NONE; 2353 uint32_t _flag_a = 0, _flag_b = 0; 2354 uint32_t _itail_tgt = 0; 2355 RECOMP_REGS_LOCALS 2356 RECOMP_ENTER(0x47035B60u); 2357 2358 L_47035B60: 2359 PUSH32(esp, ecx); /* 0x47035B60: push ecx */ 2360 PUSH32(esp, ebx); /* 0x47035B61: push ebx */ 2361 PUSH32(esp, ebp); /* 0x47035B62: push ebp */ 2362 PUSH32(esp, esi); /* 0x47035B63: push esi */ 2363 PUSH32(esp, edi); /* 0x47035B64: push edi */ 2364 edi = MEM32(0x470AC150); /* 0x47035B65: mov edi, dword ptr [0x470ac150] */ 2365 ebp = ecx; /* 0x47035B6B: mov ebp, ecx */ 2366 RECOMP_ICALL(edi); /* 0x47035B6D: call edi */ 2367 RECOMP_FLAGS_IN(); 2368 ebx = MEM32(0x470AC3C8); /* 0x47035B6F: mov ebx, dword ptr [0x470ac3c8] */ 2369 esi = eax; /* 0x47035B75: mov esi, eax */ 2370 RECOMP_ICALL(ebx); /* 0x47035B77: call ebx */ 2371 RECOMP_FLAGS_IN(); 2372 eax = MEM32(eax); /* 0x47035B79: mov eax, dword ptr [eax] */ 2373 /* test eax, eax */ /* 0x47035B7B: test eax, eax */ 2374 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2375 _cf = 0; 2376 _flag_k = FK_TEST; 2377 MEM32(esp + 0x10) = esi; /* 0x47035B7D: mov dword ptr [esp + 0x10], esi */ 2378 if (TEST_Z(_flag_a, _flag_b)) goto L_47035B87; /* 0x47035B81: je 0x47035b87 */ 2379 L_47035B83: 2380 MEM32(esp + 0x10) = eax; /* 0x47035B83: mov dword ptr [esp + 0x10], eax */ 2381 L_47035B87: 2382 RECOMP_ICALL(0x47039020u); /* 0x47035B87: call 0x47039020 */ /* not lifted */ 2383 RECOMP_FLAGS_IN(); 2384 esi = eax; /* 0x47035B8C: mov esi, eax */ 2385 ecx = esi; /* 0x47035B8E: mov ecx, esi */ 2386 RECOMP_ICALL(0x4703B210u); /* 0x47035B90: call 0x4703b210 */ /* not lifted */ 2387 RECOMP_FLAGS_IN(); 2388 PUSH32(esp, eax); /* 0x47035B95: push eax */ 2389 ecx = esi; /* 0x47035B96: mov ecx, esi */ 2390 RECOMP_ICALL(0x4703B240u); /* 0x47035B98: call 0x4703b240 */ /* not lifted */ 2391 RECOMP_FLAGS_IN(); 2392 PUSH32(esp, eax); /* 0x47035B9D: push eax */ 2393 ecx = esi; /* 0x47035B9E: mov ecx, esi */ 2394 RECOMP_ICALL(0x4703B080u); /* 0x47035BA0: call 0x4703b080 */ /* not lifted */ 2395 RECOMP_FLAGS_IN(); 2396 PUSH32(esp, eax); /* 0x47035BA5: push eax */ 2397 eax = MEM32(esp + 0x1C); /* 0x47035BA6: mov eax, dword ptr [esp + 0x1c] */ 2398 PUSH32(esp, eax); /* 0x47035BAA: push eax */ 2399 PUSH32(esp, 0); /* 0x47035BAB: push 0 */ 2400 PUSH32(esp, 0x1A5u); /* 0x47035BAD: push 0x1a5 */ 2401 PUSH32(esp, 0x47106DE4u); /* 0x47035BB2: push 0x47106de4 */ 2402 ecx = esi; /* 0x47035BB7: mov ecx, esi */ 2403 RECOMP_ICALL(0x4703A340u); /* 0x47035BB9: call 0x4703a340 */ /* not lifted */ 2404 RECOMP_FLAGS_IN(); 2405 PUSH32(esp, ebp); /* 0x47035BBE: push ebp */ 2406 PUSH32(esp, 0x471052CCu); /* 0x47035BBF: push 0x471052cc */ 2407 PUSH32(esp, 4); /* 0x47035BC4: push 4 */ 2408 PUSH32(esp, esi); /* 0x47035BC6: push esi */ 2409 RECOMP_ICALL(0x47039830u); /* 0x47035BC7: call 0x47039830 */ /* not lifted */ 2410 RECOMP_FLAGS_IN(); 2411 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2412 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2413 esp = esp + 0x10u; /* 0x47035BCC: add esp, 0x10 */ 2414 _flag_k = FK_ADD; 2415 RECOMP_ICALL(edi); /* 0x47035BCF: call edi */ 2416 RECOMP_FLAGS_IN(); 2417 esi = eax; /* 0x47035BD1: mov esi, eax */ 2418 RECOMP_ICALL(ebx); /* 0x47035BD3: call ebx */ 2419 RECOMP_FLAGS_IN(); 2420 eax = MEM32(eax); /* 0x47035BD5: mov eax, dword ptr [eax] */ 2421 /* test eax, eax */ /* 0x47035BD7: test eax, eax */ 2422 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2423 _cf = 0; 2424 _flag_k = FK_TEST; 2425 MEM32(esp + 0x10) = esi; /* 0x47035BD9: mov dword ptr [esp + 0x10], esi */ 2426 if (TEST_Z(_flag_a, _flag_b)) goto L_47035BE3; /* 0x47035BDD: je 0x47035be3 */ 2427 L_47035BDF: 2428 MEM32(esp + 0x10) = eax; /* 0x47035BDF: mov dword ptr [esp + 0x10], eax */ 2429 L_47035BE3: 2430 RECOMP_ICALL(0x47039020u); /* 0x47035BE3: call 0x47039020 */ /* not lifted */ 2431 RECOMP_FLAGS_IN(); 2432 esi = eax; /* 0x47035BE8: mov esi, eax */ 2433 ecx = esi; /* 0x47035BEA: mov ecx, esi */ 2434 RECOMP_ICALL(0x4703B210u); /* 0x47035BEC: call 0x4703b210 */ /* not lifted */ 2435 RECOMP_FLAGS_IN(); 2436 PUSH32(esp, eax); /* 0x47035BF1: push eax */ 2437 ecx = esi; /* 0x47035BF2: mov ecx, esi */ 2438 RECOMP_ICALL(0x4703B240u); /* 0x47035BF4: call 0x4703b240 */ /* not lifted */ 2439 RECOMP_FLAGS_IN(); 2440 PUSH32(esp, eax); /* 0x47035BF9: push eax */ 2441 ecx = esi; /* 0x47035BFA: mov ecx, esi */ 2442 RECOMP_ICALL(0x4703B080u); /* 0x47035BFC: call 0x4703b080 */ /* not lifted */ 2443 RECOMP_FLAGS_IN(); 2444 ecx = MEM32(esp + 0x18); /* 0x47035C01: mov ecx, dword ptr [esp + 0x18] */ 2445 PUSH32(esp, eax); /* 0x47035C05: push eax */ 2446 PUSH32(esp, ecx); /* 0x47035C06: push ecx */ 2447 PUSH32(esp, 0); /* 0x47035C07: push 0 */ 2448 PUSH32(esp, 0x1A6u); /* 0x47035C09: push 0x1a6 */ 2449 PUSH32(esp, 0x47106DE4u); /* 0x47035C0E: push 0x47106de4 */ 2450 ecx = esi; /* 0x47035C13: mov ecx, esi */ 2451 RECOMP_ICALL(0x4703A340u); /* 0x47035C15: call 0x4703a340 */ /* not lifted */ 2452 RECOMP_FLAGS_IN(); 2453 PUSH32(esp, 0x47106FA4u); /* 0x47035C1A: push 0x47106fa4 */ 2454 PUSH32(esp, 4); /* 0x47035C1F: push 4 */ 2455 PUSH32(esp, esi); /* 0x47035C21: push esi */ 2456 RECOMP_ICALL(0x47039830u); /* 0x47035C22: call 0x47039830 */ /* not lifted */ 2457 RECOMP_FLAGS_IN(); 2458 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2459 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2460 esp = esp + 0xCu; /* 0x47035C27: add esp, 0xc */ 2461 _flag_k = FK_ADD; 2462 RECOMP_ICALL(edi); /* 0x47035C2A: call edi */ 2463 RECOMP_FLAGS_IN(); 2464 esi = eax; /* 0x47035C2C: mov esi, eax */ 2465 RECOMP_ICALL(ebx); /* 0x47035C2E: call ebx */ 2466 RECOMP_FLAGS_IN(); 2467 eax = MEM32(eax); /* 0x47035C30: mov eax, dword ptr [eax] */ 2468 /* test eax, eax */ /* 0x47035C32: test eax, eax */ 2469 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2470 _cf = 0; 2471 _flag_k = FK_TEST; 2472 MEM32(esp + 0x10) = esi; /* 0x47035C34: mov dword ptr [esp + 0x10], esi */ 2473 if (TEST_Z(_flag_a, _flag_b)) goto L_47035C3E; /* 0x47035C38: je 0x47035c3e */ 2474 L_47035C3A: 2475 MEM32(esp + 0x10) = eax; /* 0x47035C3A: mov dword ptr [esp + 0x10], eax */ 2476 L_47035C3E: 2477 RECOMP_ICALL(0x47039020u); /* 0x47035C3E: call 0x47039020 */ /* not lifted */ 2478 RECOMP_FLAGS_IN(); 2479 esi = eax; /* 0x47035C43: mov esi, eax */ 2480 ecx = esi; /* 0x47035C45: mov ecx, esi */ 2481 RECOMP_ICALL(0x4703B210u); /* 0x47035C47: call 0x4703b210 */ /* not lifted */ 2482 RECOMP_FLAGS_IN(); 2483 PUSH32(esp, eax); /* 0x47035C4C: push eax */ 2484 ecx = esi; /* 0x47035C4D: mov ecx, esi */ 2485 RECOMP_ICALL(0x4703B240u); /* 0x47035C4F: call 0x4703b240 */ /* not lifted */ 2486 RECOMP_FLAGS_IN(); 2487 PUSH32(esp, eax); /* 0x47035C54: push eax */ 2488 ecx = esi; /* 0x47035C55: mov ecx, esi */ 2489 RECOMP_ICALL(0x4703B080u); /* 0x47035C57: call 0x4703b080 */ /* not lifted */ 2490 RECOMP_FLAGS_IN(); 2491 edx = MEM32(esp + 0x18); /* 0x47035C5C: mov edx, dword ptr [esp + 0x18] */ 2492 PUSH32(esp, eax); /* 0x47035C60: push eax */ 2493 PUSH32(esp, edx); /* 0x47035C61: push edx */ 2494 PUSH32(esp, 0); /* 0x47035C62: push 0 */ 2495 PUSH32(esp, 0x1A7u); /* 0x47035C64: push 0x1a7 */ 2496 PUSH32(esp, 0x47106DE4u); /* 0x47035C69: push 0x47106de4 */ 2497 ecx = esi; /* 0x47035C6E: mov ecx, esi */ 2498 RECOMP_ICALL(0x4703A340u); /* 0x47035C70: call 0x4703a340 */ /* not lifted */ 2499 RECOMP_FLAGS_IN(); 2500 PUSH32(esp, 0x47106F9Cu); /* 0x47035C75: push 0x47106f9c */ 2501 PUSH32(esp, 4); /* 0x47035C7A: push 4 */ 2502 PUSH32(esp, esi); /* 0x47035C7C: push esi */ 2503 RECOMP_ICALL(0x47039830u); /* 0x47035C7D: call 0x47039830 */ /* not lifted */ 2504 RECOMP_FLAGS_IN(); 2505 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2506 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2507 esp = esp + 0xCu; /* 0x47035C82: add esp, 0xc */ 2508 _flag_k = FK_ADD; 2509 ecx = ebp + 0x40; /* 0x47035C85: lea ecx, [ebp + 0x40] */ 2510 RECOMP_ICALL(0x47087D10u); /* 0x47035C88: call 0x47087d10 */ /* not lifted */ 2511 RECOMP_FLAGS_IN(); 2512 RECOMP_ICALL(edi); /* 0x47035C8D: call edi */ 2513 RECOMP_FLAGS_IN(); 2514 esi = eax; /* 0x47035C8F: mov esi, eax */ 2515 RECOMP_ICALL(ebx); /* 0x47035C91: call ebx */ 2516 RECOMP_FLAGS_IN(); 2517 eax = MEM32(eax); /* 0x47035C93: mov eax, dword ptr [eax] */ 2518 /* test eax, eax */ /* 0x47035C95: test eax, eax */ 2519 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2520 _cf = 0; 2521 _flag_k = FK_TEST; 2522 MEM32(esp + 0x10) = esi; /* 0x47035C97: mov dword ptr [esp + 0x10], esi */ 2523 if (TEST_Z(_flag_a, _flag_b)) goto L_47035CA1; /* 0x47035C9B: je 0x47035ca1 */ 2524 L_47035C9D: 2525 MEM32(esp + 0x10) = eax; /* 0x47035C9D: mov dword ptr [esp + 0x10], eax */ 2526 L_47035CA1: 2527 RECOMP_ICALL(0x47039020u); /* 0x47035CA1: call 0x47039020 */ /* not lifted */ 2528 RECOMP_FLAGS_IN(); 2529 esi = eax; /* 0x47035CA6: mov esi, eax */ 2530 ecx = esi; /* 0x47035CA8: mov ecx, esi */ 2531 RECOMP_ICALL(0x4703B210u); /* 0x47035CAA: call 0x4703b210 */ /* not lifted */ 2532 RECOMP_FLAGS_IN(); 2533 PUSH32(esp, eax); /* 0x47035CAF: push eax */ 2534 ecx = esi; /* 0x47035CB0: mov ecx, esi */ 2535 RECOMP_ICALL(0x4703B240u); /* 0x47035CB2: call 0x4703b240 */ /* not lifted */ 2536 RECOMP_FLAGS_IN(); 2537 PUSH32(esp, eax); /* 0x47035CB7: push eax */ 2538 ecx = esi; /* 0x47035CB8: mov ecx, esi */ 2539 RECOMP_ICALL(0x4703B080u); /* 0x47035CBA: call 0x4703b080 */ /* not lifted */ 2540 RECOMP_FLAGS_IN(); 2541 PUSH32(esp, eax); /* 0x47035CBF: push eax */ 2542 eax = MEM32(esp + 0x1C); /* 0x47035CC0: mov eax, dword ptr [esp + 0x1c] */ 2543 PUSH32(esp, eax); /* 0x47035CC4: push eax */ 2544 PUSH32(esp, 0); /* 0x47035CC5: push 0 */ 2545 PUSH32(esp, 0x1A9u); /* 0x47035CC7: push 0x1a9 */ 2546 PUSH32(esp, 0x47106DE4u); /* 0x47035CCC: push 0x47106de4 */ 2547 ecx = esi; /* 0x47035CD1: mov ecx, esi */ 2548 RECOMP_ICALL(0x4703A340u); /* 0x47035CD3: call 0x4703a340 */ /* not lifted */ 2549 RECOMP_FLAGS_IN(); 2550 PUSH32(esp, 0x47106EA4u); /* 0x47035CD8: push 0x47106ea4 */ 2551 PUSH32(esp, 4); /* 0x47035CDD: push 4 */ 2552 PUSH32(esp, esi); /* 0x47035CDF: push esi */ 2553 RECOMP_ICALL(0x47039830u); /* 0x47035CE0: call 0x47039830 */ /* not lifted */ 2554 RECOMP_FLAGS_IN(); 2555 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2556 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2557 esp = esp + 0xCu; /* 0x47035CE5: add esp, 0xc */ 2558 _flag_k = FK_ADD; 2559 ecx = ebp; /* 0x47035CE8: mov ecx, ebp */ 2560 RECOMP_ICALL(0x47034A90u); /* 0x47035CEA: call 0x47034a90 */ /* not lifted */ 2561 RECOMP_FLAGS_IN(); 2562 RECOMP_ICALL(edi); /* 0x47035CEF: call edi */ 2563 RECOMP_FLAGS_IN(); 2564 ebp = eax; /* 0x47035CF1: mov ebp, eax */ 2565 RECOMP_ICALL(ebx); /* 0x47035CF3: call ebx */ 2566 RECOMP_FLAGS_IN(); 2567 eax = MEM32(eax); /* 0x47035CF5: mov eax, dword ptr [eax] */ 2568 /* test eax, eax */ /* 0x47035CF7: test eax, eax */ 2569 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2570 _cf = 0; 2571 _flag_k = FK_TEST; 2572 if (TEST_Z(_flag_a, _flag_b)) goto L_47035CFD; /* 0x47035CF9: je 0x47035cfd */ 2573 L_47035CFB: 2574 ebp = eax; /* 0x47035CFB: mov ebp, eax */ 2575 L_47035CFD: 2576 RECOMP_ICALL(0x47039020u); /* 0x47035CFD: call 0x47039020 */ /* not lifted */ 2577 RECOMP_FLAGS_IN(); 2578 esi = eax; /* 0x47035D02: mov esi, eax */ 2579 ecx = esi; /* 0x47035D04: mov ecx, esi */ 2580 RECOMP_ICALL(0x4703B210u); /* 0x47035D06: call 0x4703b210 */ /* not lifted */ 2581 RECOMP_FLAGS_IN(); 2582 PUSH32(esp, eax); /* 0x47035D0B: push eax */ 2583 ecx = esi; /* 0x47035D0C: mov ecx, esi */ 2584 RECOMP_ICALL(0x4703B240u); /* 0x47035D0E: call 0x4703b240 */ /* not lifted */ 2585 RECOMP_FLAGS_IN(); 2586 PUSH32(esp, eax); /* 0x47035D13: push eax */ 2587 ecx = esi; /* 0x47035D14: mov ecx, esi */ 2588 RECOMP_ICALL(0x4703B080u); /* 0x47035D16: call 0x4703b080 */ /* not lifted */ 2589 RECOMP_FLAGS_IN(); 2590 PUSH32(esp, eax); /* 0x47035D1B: push eax */ 2591 PUSH32(esp, ebp); /* 0x47035D1C: push ebp */ 2592 PUSH32(esp, 0); /* 0x47035D1D: push 0 */ 2593 PUSH32(esp, 0x1ABu); /* 0x47035D1F: push 0x1ab */ 2594 PUSH32(esp, 0x47106DE4u); /* 0x47035D24: push 0x47106de4 */ 2595 ecx = esi; /* 0x47035D29: mov ecx, esi */ 2596 RECOMP_ICALL(0x4703A340u); /* 0x47035D2B: call 0x4703a340 */ /* not lifted */ 2597 RECOMP_FLAGS_IN(); 2598 PUSH32(esp, 0x47106F80u); /* 0x47035D30: push 0x47106f80 */ 2599 PUSH32(esp, 4); /* 0x47035D35: push 4 */ 2600 PUSH32(esp, esi); /* 0x47035D37: push esi */ 2601 RECOMP_ICALL(0x47039830u); /* 0x47035D38: call 0x47039830 */ /* not lifted */ 2602 RECOMP_FLAGS_IN(); 2603 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2604 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2605 esp = esp + 0xCu; /* 0x47035D3D: add esp, 0xc */ 2606 _flag_k = FK_ADD; 2607 RECOMP_ICALL(edi); /* 0x47035D40: call edi */ 2608 RECOMP_FLAGS_IN(); 2609 esi = eax; /* 0x47035D42: mov esi, eax */ 2610 RECOMP_ICALL(ebx); /* 0x47035D44: call ebx */ 2611 RECOMP_FLAGS_IN(); 2612 eax = MEM32(eax); /* 0x47035D46: mov eax, dword ptr [eax] */ 2613 /* test eax, eax */ /* 0x47035D48: test eax, eax */ 2614 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2615 _cf = 0; 2616 _flag_k = FK_TEST; 2617 edi = esi; /* 0x47035D4A: mov edi, esi */ 2618 if (TEST_Z(_flag_a, _flag_b)) goto L_47035D50; /* 0x47035D4C: je 0x47035d50 */ 2619 L_47035D4E: 2620 edi = eax; /* 0x47035D4E: mov edi, eax */ 2621 L_47035D50: 2622 RECOMP_ICALL(0x47039020u); /* 0x47035D50: call 0x47039020 */ /* not lifted */ 2623 RECOMP_FLAGS_IN(); 2624 esi = eax; /* 0x47035D55: mov esi, eax */ 2625 ecx = esi; /* 0x47035D57: mov ecx, esi */ 2626 RECOMP_ICALL(0x4703B210u); /* 0x47035D59: call 0x4703b210 */ /* not lifted */ 2627 RECOMP_FLAGS_IN(); 2628 PUSH32(esp, eax); /* 0x47035D5E: push eax */ 2629 ecx = esi; /* 0x47035D5F: mov ecx, esi */ 2630 RECOMP_ICALL(0x4703B240u); /* 0x47035D61: call 0x4703b240 */ /* not lifted */ 2631 RECOMP_FLAGS_IN(); 2632 PUSH32(esp, eax); /* 0x47035D66: push eax */ 2633 ecx = esi; /* 0x47035D67: mov ecx, esi */ 2634 RECOMP_ICALL(0x4703B080u); /* 0x47035D69: call 0x4703b080 */ /* not lifted */ 2635 RECOMP_FLAGS_IN(); 2636 PUSH32(esp, eax); /* 0x47035D6E: push eax */ 2637 PUSH32(esp, edi); /* 0x47035D6F: push edi */ 2638 PUSH32(esp, 0); /* 0x47035D70: push 0 */ 2639 PUSH32(esp, 0x1ACu); /* 0x47035D72: push 0x1ac */ 2640 PUSH32(esp, 0x47106DE4u); /* 0x47035D77: push 0x47106de4 */ 2641 ecx = esi; /* 0x47035D7C: mov ecx, esi */ 2642 RECOMP_ICALL(0x4703A340u); /* 0x47035D7E: call 0x4703a340 */ /* not lifted */ 2643 RECOMP_FLAGS_IN(); 2644 PUSH32(esp, 0x4710529Cu); /* 0x47035D83: push 0x4710529c */ 2645 PUSH32(esp, 4); /* 0x47035D88: push 4 */ 2646 PUSH32(esp, esi); /* 0x47035D8A: push esi */ 2647 RECOMP_ICALL(0x47039830u); /* 0x47035D8B: call 0x47039830 */ /* not lifted */ 2648 RECOMP_FLAGS_IN(); 2649 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2650 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2651 esp = esp + 0xCu; /* 0x47035D90: add esp, 0xc */ 2652 _flag_k = FK_ADD; 2653 edi = POP32_VAL(esp); /* 0x47035D93: pop edi */ 2654 esi = POP32_VAL(esp); /* 0x47035D94: pop esi */ 2655 ebp = POP32_VAL(esp); /* 0x47035D95: pop ebp */ 2656 ebx = POP32_VAL(esp); /* 0x47035D96: pop ebx */ 2657 ecx = POP32_VAL(esp); /* 0x47035D97: pop ecx */ 2658 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47035D98: ret */ 2659 RECOMP_REGS_OUT(); 2660 } 2661 2662 void sub_47035DA0(void) { 2663 int _fpu_cmp = 0; 2664 uint32_t _cf = 0; 2665 int _df = 1; 2666 uint32_t _flag_k = FK_NONE; 2667 uint32_t _flag_a = 0, _flag_b = 0; 2668 uint32_t _itail_tgt = 0; 2669 RECOMP_REGS_LOCALS 2670 RECOMP_ENTER(0x47035DA0u); 2671 2672 L_47035DA0: 2673 PUSH32(esp, 0xFFFFFFFFu); /* 0x47035DA0: push -1 */ 2674 PUSH32(esp, 0x470A5BD8u); /* 0x47035DA2: push 0x470a5bd8 */ 2675 eax = MEM32(FS_BASE + (0)); /* 0x47035DA7: mov eax, dword ptr fs:[0] */ 2676 PUSH32(esp, eax); /* 0x47035DAD: push eax */ 2677 MEM32(FS_BASE + (0)) = esp; /* 0x47035DAE: mov dword ptr fs:[0], esp */ 2678 PUSH32(esp, ecx); /* 0x47035DB5: push ecx */ 2679 PUSH32(esp, ebx); /* 0x47035DB6: push ebx */ 2680 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2681 ebx = 0; /* 0x47035DB7: xor ebx, ebx */ 2682 _cf = 0; 2683 _flag_k = FK_TEST; 2684 PUSH32(esp, esi); /* 0x47035DB9: push esi */ 2685 esi = ecx; /* 0x47035DBA: mov esi, ecx */ 2686 MEM32(esi + 0x4) = ebx; /* 0x47035DBC: mov dword ptr [esi + 4], ebx */ 2687 MEM32(esi + 0x8) = ebx; /* 0x47035DBF: mov dword ptr [esi + 8], ebx */ 2688 MEM32(esi + 0xC) = ebx; /* 0x47035DC2: mov dword ptr [esi + 0xc], ebx */ 2689 MEM32(esi + 0x10) = ebx; /* 0x47035DC5: mov dword ptr [esi + 0x10], ebx */ 2690 MEM32(esi + 0x14) = ebx; /* 0x47035DC8: mov dword ptr [esi + 0x14], ebx */ 2691 PUSH32(esp, edi); /* 0x47035DCB: push edi */ 2692 MEM32(esp + 0xC) = esi; /* 0x47035DCC: mov dword ptr [esp + 0xc], esi */ 2693 MEM32(esi) = 0x470AD368u; /* 0x47035DD0: mov dword ptr [esi], 0x470ad368 */ 2694 PUSH32(esp, ebx); /* 0x47035DD6: push ebx */ 2695 PUSH32(esp, ebx); /* 0x47035DD7: push ebx */ 2696 ecx = esi + 0x40; /* 0x47035DD8: lea ecx, [esi + 0x40] */ 2697 MEM32(esp + 0x20) = ebx; /* 0x47035DDB: mov dword ptr [esp + 0x20], ebx */ 2698 RECOMP_ICALL(0x47087E50u); /* 0x47035DDF: call 0x47087e50 */ /* not lifted */ 2699 RECOMP_FLAGS_IN(); 2700 edx = MEM32(esp + 0x20); /* 0x47035DE4: mov edx, dword ptr [esp + 0x20] */ 2701 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2702 ecx = ecx | 0xFFFFFFFFu; /* 0x47035DE8: or ecx, 0xffffffff */ 2703 _cf = 0; 2704 _flag_k = FK_TEST; 2705 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2706 eax = 0; /* 0x47035DEB: xor eax, eax */ 2707 _cf = 0; 2708 _flag_k = FK_TEST; 2709 edi = edx; /* 0x47035DED: mov edi, edx */ 2710 MEM32(esi) = 0x470AD538u; /* 0x47035DEF: mov dword ptr [esi], 0x470ad538 */ 2711 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; } /* 0x47035DF5: repne scasb al, byte ptr es:[edi] */ 2712 ecx = ~ecx; /* 0x47035DF7: not ecx */ 2713 /* cmp ecx, 0x28u */ /* 0x47035DF9: cmp ecx, 0x28 */ 2714 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x28u); 2715 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2716 _flag_k = FK_CMP; 2717 if (CMP_LE(_flag_a, _flag_b)) goto L_47035E03; /* 0x47035DFC: jle 0x47035e03 */ 2718 L_47035DFE: 2719 ecx = 0x27u; /* 0x47035DFE: mov ecx, 0x27 */ 2720 L_47035E03: 2721 PUSH32(esp, ecx); /* 0x47035E03: push ecx */ 2722 PUSH32(esp, edx); /* 0x47035E04: push edx */ 2723 eax = esi + 0x18; /* 0x47035E05: lea eax, [esi + 0x18] */ 2724 PUSH32(esp, eax); /* 0x47035E08: push eax */ 2725 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x47035E09: call dword ptr [0x470ac22c] */ 2726 RECOMP_FLAGS_IN(); 2727 ecx = MEM32(esp + 0x1C); /* 0x47035E0F: mov ecx, dword ptr [esp + 0x1c] */ 2728 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2729 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2730 esp = esp + 0xCu; /* 0x47035E13: add esp, 0xc */ 2731 _flag_k = FK_ADD; 2732 MEM8(esi + 0x3F) = (uint8_t)(LO8(ebx)); /* 0x47035E16: mov byte ptr [esi + 0x3f], bl */ 2733 edi = POP32_VAL(esp); /* 0x47035E19: pop edi */ 2734 eax = esi; /* 0x47035E1A: mov eax, esi */ 2735 esi = POP32_VAL(esp); /* 0x47035E1C: pop esi */ 2736 ebx = POP32_VAL(esp); /* 0x47035E1D: pop ebx */ 2737 MEM32(FS_BASE + (0)) = ecx; /* 0x47035E1E: mov dword ptr fs:[0], ecx */ 2738 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2739 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2740 esp = esp + 0x10u; /* 0x47035E25: add esp, 0x10 */ 2741 _flag_k = FK_ADD; 2742 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47035E28: ret 4 */ 2743 RECOMP_REGS_OUT(); 2744 } 2745 2746 void sub_47035E30(void) { 2747 int _fpu_cmp = 0; 2748 uint32_t _cf = 0; 2749 int _df = 1; 2750 uint32_t _flag_k = FK_NONE; 2751 uint32_t _flag_a = 0, _flag_b = 0; 2752 uint32_t _itail_tgt = 0; 2753 RECOMP_REGS_LOCALS 2754 RECOMP_ENTER(0x47035E30u); 2755 2756 L_47035E30: 2757 PUSH32(esp, ebx); /* 0x47035E30: push ebx */ 2758 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47035E31: mov bl, byte ptr [esp + 8] */ 2759 /* test LO8(ebx), 2 */ /* 0x47035E35: test bl, 2 */ 2760 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 2761 _cf = 0; 2762 _flag_k = FK_NARROW(FK_TEST, 24); 2763 PUSH32(esp, esi); /* 0x47035E38: push esi */ 2764 esi = ecx; /* 0x47035E39: mov esi, ecx */ 2765 if (TEST_Z(_flag_a, _flag_b)) goto L_47035E68; /* 0x47035E3B: je 0x47035e68 */ 2766 L_47035E3D: 2767 eax = MEM32(esi + (-0x4)); /* 0x47035E3D: mov eax, dword ptr [esi - 4] */ 2768 PUSH32(esp, edi); /* 0x47035E40: push edi */ 2769 PUSH32(esp, 0x47035E90u); /* 0x47035E41: push 0x47035e90 */ 2770 edi = esi + (-0x4); /* 0x47035E46: lea edi, [esi - 4] */ 2771 PUSH32(esp, eax); /* 0x47035E49: push eax */ 2772 PUSH32(esp, 0x5Cu); /* 0x47035E4A: push 0x5c */ 2773 PUSH32(esp, esi); /* 0x47035E4C: push esi */ 2774 RECOMP_ICALL(0x470A32EBu); /* 0x47035E4D: call 0x470a32eb */ /* not lifted */ 2775 RECOMP_FLAGS_IN(); 2776 /* test LO8(ebx), 1 */ /* 0x47035E52: test bl, 1 */ 2777 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2778 _cf = 0; 2779 _flag_k = FK_NARROW(FK_TEST, 24); 2780 if (TEST_Z(_flag_a, _flag_b)) goto L_47035E60; /* 0x47035E55: je 0x47035e60 */ 2781 L_47035E57: 2782 PUSH32(esp, edi); /* 0x47035E57: push edi */ 2783 RECOMP_ICALL(0x470A32A2u); /* 0x47035E58: call 0x470a32a2 */ /* not lifted */ 2784 RECOMP_FLAGS_IN(); 2785 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2786 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2787 esp = esp + 4; /* 0x47035E5D: add esp, 4 */ 2788 _flag_k = FK_ADD; 2789 L_47035E60: 2790 eax = edi; /* 0x47035E60: mov eax, edi */ 2791 edi = POP32_VAL(esp); /* 0x47035E62: pop edi */ 2792 esi = POP32_VAL(esp); /* 0x47035E63: pop esi */ 2793 ebx = POP32_VAL(esp); /* 0x47035E64: pop ebx */ 2794 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47035E65: ret 4 */ 2795 L_47035E68: 2796 ecx = esi; /* 0x47035E68: mov ecx, esi */ 2797 RECOMP_ICALL(0x47035E90u); /* 0x47035E6A: call 0x47035e90 */ /* not lifted */ 2798 RECOMP_FLAGS_IN(); 2799 /* test LO8(ebx), 1 */ /* 0x47035E6F: test bl, 1 */ 2800 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2801 _cf = 0; 2802 _flag_k = FK_NARROW(FK_TEST, 24); 2803 if (TEST_Z(_flag_a, _flag_b)) goto L_47035E7D; /* 0x47035E72: je 0x47035e7d */ 2804 L_47035E74: 2805 PUSH32(esp, esi); /* 0x47035E74: push esi */ 2806 RECOMP_ICALL(0x470A32A2u); /* 0x47035E75: call 0x470a32a2 */ /* not lifted */ 2807 RECOMP_FLAGS_IN(); 2808 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2809 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2810 esp = esp + 4; /* 0x47035E7A: add esp, 4 */ 2811 _flag_k = FK_ADD; 2812 L_47035E7D: 2813 eax = esi; /* 0x47035E7D: mov eax, esi */ 2814 esi = POP32_VAL(esp); /* 0x47035E7F: pop esi */ 2815 ebx = POP32_VAL(esp); /* 0x47035E80: pop ebx */ 2816 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47035E81: ret 4 */ 2817 RECOMP_REGS_OUT(); 2818 } 2819 2820 void sub_47035E90(void) { 2821 int _fpu_cmp = 0; 2822 uint32_t _cf = 0; 2823 int _df = 1; 2824 uint32_t _flag_k = FK_NONE; 2825 uint32_t _flag_a = 0, _flag_b = 0; 2826 uint32_t _itail_tgt = 0; 2827 RECOMP_REGS_LOCALS 2828 RECOMP_ENTER(0x47035E90u); 2829 2830 L_47035E90: 2831 PUSH32(esp, 0xFFFFFFFFu); /* 0x47035E90: push -1 */ 2832 PUSH32(esp, 0x470A5BF8u); /* 0x47035E92: push 0x470a5bf8 */ 2833 eax = MEM32(FS_BASE + (0)); /* 0x47035E97: mov eax, dword ptr fs:[0] */ 2834 PUSH32(esp, eax); /* 0x47035E9D: push eax */ 2835 MEM32(FS_BASE + (0)) = esp; /* 0x47035E9E: mov dword ptr fs:[0], esp */ 2836 PUSH32(esp, ecx); /* 0x47035EA5: push ecx */ 2837 PUSH32(esp, esi); /* 0x47035EA6: push esi */ 2838 esi = ecx; /* 0x47035EA7: mov esi, ecx */ 2839 MEM32(esp + 0x4) = esi; /* 0x47035EA9: mov dword ptr [esp + 4], esi */ 2840 MEM32(esi) = 0x470AD538u; /* 0x47035EAD: mov dword ptr [esi], 0x470ad538 */ 2841 ecx = esi + 0x40; /* 0x47035EB3: lea ecx, [esi + 0x40] */ 2842 MEM32(esp + 0x10) = 0; /* 0x47035EB6: mov dword ptr [esp + 0x10], 0 */ 2843 RECOMP_ICALL(0x47087E30u); /* 0x47035EBE: call 0x47087e30 */ /* not lifted */ 2844 RECOMP_FLAGS_IN(); 2845 ecx = MEM32(esp + 0x8); /* 0x47035EC3: mov ecx, dword ptr [esp + 8] */ 2846 MEM32(esi) = 0x470AD368u; /* 0x47035EC7: mov dword ptr [esi], 0x470ad368 */ 2847 esi = POP32_VAL(esp); /* 0x47035ECD: pop esi */ 2848 MEM32(FS_BASE + (0)) = ecx; /* 0x47035ECE: mov dword ptr fs:[0], ecx */ 2849 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2850 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2851 esp = esp + 0x10u; /* 0x47035ED5: add esp, 0x10 */ 2852 _flag_k = FK_ADD; 2853 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47035ED8: ret */ 2854 RECOMP_REGS_OUT(); 2855 } 2856 2857 void sub_47035EE0(void) { 2858 int _fpu_cmp = 0; 2859 uint32_t _cf = 0; 2860 int _df = 1; 2861 uint32_t _flag_k = FK_NONE; 2862 uint32_t _flag_a = 0, _flag_b = 0; 2863 uint32_t _itail_tgt = 0; 2864 RECOMP_REGS_LOCALS 2865 RECOMP_ENTER(0x47035EE0u); 2866 2867 L_47035EE0: 2868 PUSH32(esp, 0xFFFFFFFFu); /* 0x47035EE0: push -1 */ 2869 PUSH32(esp, 0x470A5C20u); /* 0x47035EE2: push 0x470a5c20 */ 2870 eax = MEM32(FS_BASE + (0)); /* 0x47035EE7: mov eax, dword ptr fs:[0] */ 2871 PUSH32(esp, eax); /* 0x47035EED: push eax */ 2872 MEM32(FS_BASE + (0)) = esp; /* 0x47035EEE: mov dword ptr fs:[0], esp */ 2873 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2874 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2875 esp = esp - 0x10u; /* 0x47035EF5: sub esp, 0x10 */ 2876 _flag_k = FK_CMP; 2877 PUSH32(esp, ebx); /* 0x47035EF8: push ebx */ 2878 PUSH32(esp, ebp); /* 0x47035EF9: push ebp */ 2879 PUSH32(esp, esi); /* 0x47035EFA: push esi */ 2880 esi = ecx; /* 0x47035EFB: mov esi, ecx */ 2881 PUSH32(esp, edi); /* 0x47035EFD: push edi */ 2882 edi = MEM32(0x470AC180); /* 0x47035EFE: mov edi, dword ptr [0x470ac180] */ 2883 eax = esi + 0x40; /* 0x47035F04: lea eax, [esi + 0x40] */ 2884 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2885 ebx = 0; /* 0x47035F07: xor ebx, ebx */ 2886 _cf = 0; 2887 _flag_k = FK_TEST; 2888 PUSH32(esp, eax); /* 0x47035F09: push eax */ 2889 MEM32(esp + 0x1C) = eax; /* 0x47035F0A: mov dword ptr [esp + 0x1c], eax */ 2890 MEM32(esp + 0x20) = ebx; /* 0x47035F0E: mov dword ptr [esp + 0x20], ebx */ 2891 RECOMP_ICALL(edi); /* 0x47035F12: call edi */ 2892 RECOMP_FLAGS_IN(); 2893 MEM32(esp + 0x1C) = ebx; /* 0x47035F14: mov dword ptr [esp + 0x1c], ebx */ 2894 MEM32(esp + 0x28) = ebx; /* 0x47035F18: mov dword ptr [esp + 0x28], ebx */ 2895 RECOMP_ICALL(0x470942F0u); /* 0x47035F1C: call 0x470942f0 */ /* not lifted */ 2896 RECOMP_FLAGS_IN(); 2897 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 2898 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2899 eax = eax + 8; /* 0x47035F21: add eax, 8 */ 2900 _flag_k = FK_ADD; 2901 PUSH32(esp, eax); /* 0x47035F24: push eax */ 2902 MEM32(esp + 0x14) = eax; /* 0x47035F25: mov dword ptr [esp + 0x14], eax */ 2903 MEM32(esp + 0x18) = ebx; /* 0x47035F29: mov dword ptr [esp + 0x18], ebx */ 2904 RECOMP_ICALL(edi); /* 0x47035F2D: call edi */ 2905 RECOMP_FLAGS_IN(); 2906 MEM32(esp + 0x14) = ebx; /* 0x47035F2F: mov dword ptr [esp + 0x14], ebx */ 2907 eax = MEM32(esi + 0xC); /* 0x47035F33: mov eax, dword ptr [esi + 0xc] */ 2908 /* cmp eax, ebx */ /* 0x47035F36: cmp eax, ebx */ 2909 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2910 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2911 _flag_k = FK_CMP; 2912 edi = esi + 0xC; /* 0x47035F38: lea edi, [esi + 0xc] */ 2913 MEM8(esp + 0x28) = (uint8_t)(1); /* 0x47035F3B: mov byte ptr [esp + 0x28], 1 */ 2914 if (CMP_EQ(_flag_a, _flag_b)) goto L_47035F44; /* 0x47035F40: je 0x47035f44 */ 2915 L_47035F42: 2916 if (CMP_NE(_flag_a, _flag_b)) goto L_47035F75; /* 0x47035F42: jne 0x47035f75 */ 2917 L_47035F44: 2918 eax = MEM32(esp + 0x30); /* 0x47035F44: mov eax, dword ptr [esp + 0x30] */ 2919 _flag_a = (uint32_t)((esi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((esi | 0xFFFFFFFFu)); 2920 esi = esi | 0xFFFFFFFFu; /* 0x47035F48: or esi, 0xffffffff */ 2921 _cf = 0; 2922 _flag_k = FK_TEST; 2923 PUSH32(esp, esi); /* 0x47035F4B: push esi */ 2924 PUSH32(esp, eax); /* 0x47035F4C: push eax */ 2925 ecx = edi; /* 0x47035F4D: mov ecx, edi */ 2926 RECOMP_ICALL(0x470359F0u); /* 0x47035F4F: call 0x470359f0 */ /* not lifted */ 2927 RECOMP_FLAGS_IN(); 2928 ecx = esp + 0x10; /* 0x47035F54: lea ecx, [esp + 0x10] */ 2929 MEM8(esp + 0x28) = (uint8_t)(LO8(ebx)); /* 0x47035F58: mov byte ptr [esp + 0x28], bl */ 2930 RECOMP_ICALL(0x470559D0u); /* 0x47035F5C: call 0x470559d0 */ /* not lifted */ 2931 RECOMP_FLAGS_IN(); 2932 ecx = esp + 0x18; /* 0x47035F61: lea ecx, [esp + 0x18] */ 2933 MEM32(esp + 0x28) = esi; /* 0x47035F65: mov dword ptr [esp + 0x28], esi */ 2934 RECOMP_ICALL(0x470559D0u); /* 0x47035F69: call 0x470559d0 */ /* not lifted */ 2935 RECOMP_FLAGS_IN(); 2936 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2937 eax = 0; /* 0x47035F6E: xor eax, eax */ 2938 _cf = 0; 2939 _flag_k = FK_TEST; 2940 goto L_470360E9; /* 0x47035F70: jmp 0x470360e9 */ 2941 L_47035F75: 2942 ebp = MEM32(esp + 0x30); /* 0x47035F75: mov ebp, dword ptr [esp + 0x30] */ 2943 edx = MEM32(esi); /* 0x47035F79: mov edx, dword ptr [esi] */ 2944 eax = ebp + 0x60; /* 0x47035F7B: lea eax, [ebp + 0x60] */ 2945 PUSH32(esp, eax); /* 0x47035F7E: push eax */ 2946 ecx = esi; /* 0x47035F7F: mov ecx, esi */ 2947 RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x47035F81: call dword ptr [edx + 0x1c] */ 2948 RECOMP_FLAGS_IN(); 2949 /* test eax, eax */ /* 0x47035F84: test eax, eax */ 2950 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2951 _cf = 0; 2952 _flag_k = FK_TEST; 2953 if (TEST_Z(_flag_a, _flag_b)) goto L_47035FC3; /* 0x47035F86: je 0x47035fc3 */ 2954 L_47035F88: 2955 ecx = MEM32(ebp + 0x58); /* 0x47035F88: mov ecx, dword ptr [ebp + 0x58] */ 2956 eax = MEM32(esp + 0x14); /* 0x47035F8B: mov eax, dword ptr [esp + 0x14] */ 2957 edi = MEM32(0x470AC190); /* 0x47035F8F: mov edi, dword ptr [0x470ac190] */ 2958 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2959 ecx = ecx + 1; /* 0x47035F95: inc ecx */ 2960 _flag_k = FK_INC; 2961 _flag_a = (uint32_t)((esi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((esi | 0xFFFFFFFFu)); 2962 esi = esi | 0xFFFFFFFFu; /* 0x47035F96: or esi, 0xffffffff */ 2963 _cf = 0; 2964 _flag_k = FK_TEST; 2965 /* cmp eax, esi */ /* 0x47035F99: cmp eax, esi */ 2966 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 2967 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2968 _flag_k = FK_CMP; 2969 MEM32(ebp + 0x58) = ecx; /* 0x47035F9B: mov dword ptr [ebp + 0x58], ecx */ 2970 if (CMP_EQ(_flag_a, _flag_b)) goto L_47035FAB; /* 0x47035F9E: je 0x47035fab */ 2971 L_47035FA0: 2972 ecx = MEM32(esp + 0x10); /* 0x47035FA0: mov ecx, dword ptr [esp + 0x10] */ 2973 PUSH32(esp, ecx); /* 0x47035FA4: push ecx */ 2974 MEM32(esp + 0x18) = esi; /* 0x47035FA5: mov dword ptr [esp + 0x18], esi */ 2975 RECOMP_ICALL(edi); /* 0x47035FA9: call edi */ 2976 RECOMP_FLAGS_IN(); 2977 L_47035FAB: 2978 /* cmp MEM32(esp + 0x1C), esi */ /* 0x47035FAB: cmp dword ptr [esp + 0x1c], esi */ 2979 _flag_a = (uint32_t)(MEM32(esp + 0x1C)); _flag_b = (uint32_t)(esi); 2980 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2981 _flag_k = FK_CMP; 2982 if (CMP_EQ(_flag_a, _flag_b)) goto L_47035FBC; /* 0x47035FAF: je 0x47035fbc */ 2983 L_47035FB1: 2984 edx = MEM32(esp + 0x18); /* 0x47035FB1: mov edx, dword ptr [esp + 0x18] */ 2985 PUSH32(esp, edx); /* 0x47035FB5: push edx */ 2986 MEM32(esp + 0x20) = esi; /* 0x47035FB6: mov dword ptr [esp + 0x20], esi */ 2987 RECOMP_ICALL(edi); /* 0x47035FBA: call edi */ 2988 RECOMP_FLAGS_IN(); 2989 L_47035FBC: 2990 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2991 eax = 0; /* 0x47035FBC: xor eax, eax */ 2992 _cf = 0; 2993 _flag_k = FK_TEST; 2994 goto L_470360E9; /* 0x47035FBE: jmp 0x470360e9 */ 2995 L_47035FC3: 2996 /* cmp MEM32(esp + 0x34), ebx */ /* 0x47035FC3: cmp dword ptr [esp + 0x34], ebx */ 2997 _flag_a = (uint32_t)(MEM32(esp + 0x34)); _flag_b = (uint32_t)(ebx); 2998 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2999 _flag_k = FK_CMP; 3000 if (CMP_NE(_flag_a, _flag_b)) goto L_47036050; /* 0x47035FC7: jne 0x47036050 */ 3001 L_47035FCD: 3002 eax = MEM32(ebp + 0x54); /* 0x47035FCD: mov eax, dword ptr [ebp + 0x54] */ 3003 PUSH32(esp, eax); /* 0x47035FD0: push eax */ 3004 RECOMP_ICALL(0x470942F0u); /* 0x47035FD1: call 0x470942f0 */ /* not lifted */ 3005 RECOMP_FLAGS_IN(); 3006 ecx = eax; /* 0x47035FD6: mov ecx, eax */ 3007 RECOMP_ICALL(0x47094530u); /* 0x47035FD8: call 0x47094530 */ /* not lifted */ 3008 RECOMP_FLAGS_IN(); 3009 /* cmp eax, 1 */ /* 0x47035FDD: cmp eax, 1 */ 3010 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3011 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3012 _flag_k = FK_CMP; 3013 if (CMP_NE(_flag_a, _flag_b)) goto L_47036050; /* 0x47035FE0: jne 0x47036050 */ 3014 L_47035FE2: 3015 esi = MEM32(0x470AC3C8); /* 0x47035FE2: mov esi, dword ptr [0x470ac3c8] */ 3016 RECOMP_ICALL(esi); /* 0x47035FE8: call esi */ 3017 RECOMP_FLAGS_IN(); 3018 MEM32(eax) = 0x24u; /* 0x47035FEA: mov dword ptr [eax], 0x24 */ 3019 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47035FF0: call dword ptr [0x470ac150] */ 3020 RECOMP_FLAGS_IN(); 3021 edi = eax; /* 0x47035FF6: mov edi, eax */ 3022 RECOMP_ICALL(esi); /* 0x47035FF8: call esi */ 3023 RECOMP_FLAGS_IN(); 3024 eax = MEM32(eax); /* 0x47035FFA: mov eax, dword ptr [eax] */ 3025 /* cmp eax, ebx */ /* 0x47035FFC: cmp eax, ebx */ 3026 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3027 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3028 _flag_k = FK_CMP; 3029 if (CMP_NE(_flag_a, _flag_b)) goto L_47036002; /* 0x47035FFE: jne 0x47036002 */ 3030 L_47036000: 3031 eax = edi; /* 0x47036000: mov eax, edi */ 3032 L_47036002: 3033 PUSH32(esp, ebx); /* 0x47036002: push ebx */ 3034 PUSH32(esp, ebx); /* 0x47036003: push ebx */ 3035 PUSH32(esp, 1); /* 0x47036004: push 1 */ 3036 PUSH32(esp, eax); /* 0x47036006: push eax */ 3037 _flag_a = (uint32_t)((esi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((esi | 0xFFFFFFFFu)); 3038 esi = esi | 0xFFFFFFFFu; /* 0x47036007: or esi, 0xffffffff */ 3039 _cf = 0; 3040 _flag_k = FK_TEST; 3041 PUSH32(esp, esi); /* 0x4703600A: push esi */ 3042 PUSH32(esp, 0x1E4u); /* 0x4703600B: push 0x1e4 */ 3043 PUSH32(esp, 0x47106DE4u); /* 0x47036010: push 0x47106de4 */ 3044 RECOMP_ICALL(0x47039020u); /* 0x47036015: call 0x47039020 */ /* not lifted */ 3045 RECOMP_FLAGS_IN(); 3046 ecx = eax; /* 0x4703601A: mov ecx, eax */ 3047 RECOMP_ICALL(0x4703A340u); /* 0x4703601C: call 0x4703a340 */ /* not lifted */ 3048 RECOMP_FLAGS_IN(); 3049 /* cmp MEM32(esp + 0x14), esi */ /* 0x47036021: cmp dword ptr [esp + 0x14], esi */ 3050 _flag_a = (uint32_t)(MEM32(esp + 0x14)); _flag_b = (uint32_t)(esi); 3051 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3052 _flag_k = FK_CMP; 3053 edi = MEM32(0x470AC190); /* 0x47036025: mov edi, dword ptr [0x470ac190] */ 3054 if (CMP_EQ(_flag_a, _flag_b)) goto L_47036038; /* 0x4703602B: je 0x47036038 */ 3055 L_4703602D: 3056 eax = MEM32(esp + 0x10); /* 0x4703602D: mov eax, dword ptr [esp + 0x10] */ 3057 PUSH32(esp, eax); /* 0x47036031: push eax */ 3058 MEM32(esp + 0x18) = esi; /* 0x47036032: mov dword ptr [esp + 0x18], esi */ 3059 RECOMP_ICALL(edi); /* 0x47036036: call edi */ 3060 RECOMP_FLAGS_IN(); 3061 L_47036038: 3062 /* cmp MEM32(esp + 0x1C), esi */ /* 0x47036038: cmp dword ptr [esp + 0x1c], esi */ 3063 _flag_a = (uint32_t)(MEM32(esp + 0x1C)); _flag_b = (uint32_t)(esi); 3064 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3065 _flag_k = FK_CMP; 3066 if (CMP_EQ(_flag_a, _flag_b)) goto L_470360E7; /* 0x4703603C: je 0x470360e7 */ 3067 L_47036042: 3068 ecx = MEM32(esp + 0x18); /* 0x47036042: mov ecx, dword ptr [esp + 0x18] */ 3069 MEM32(esp + 0x1C) = esi; /* 0x47036046: mov dword ptr [esp + 0x1c], esi */ 3070 PUSH32(esp, ecx); /* 0x4703604A: push ecx */ 3071 goto L_470360E5; /* 0x4703604B: jmp 0x470360e5 */ 3072 L_47036050: 3073 _flag_a = (uint32_t)((esi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((esi | 0xFFFFFFFFu)); 3074 esi = esi | 0xFFFFFFFFu; /* 0x47036050: or esi, 0xffffffff */ 3075 _cf = 0; 3076 _flag_k = FK_TEST; 3077 PUSH32(esp, esi); /* 0x47036053: push esi */ 3078 PUSH32(esp, ebp); /* 0x47036054: push ebp */ 3079 ecx = edi; /* 0x47036055: mov ecx, edi */ 3080 RECOMP_ICALL(0x470359F0u); /* 0x47036057: call 0x470359f0 */ /* not lifted */ 3081 RECOMP_FLAGS_IN(); 3082 /* cmp MEM32(esp + 0x38), ebx */ /* 0x4703605C: cmp dword ptr [esp + 0x38], ebx */ 3083 _flag_a = (uint32_t)(MEM32(esp + 0x38)); _flag_b = (uint32_t)(ebx); 3084 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3085 _flag_k = FK_CMP; 3086 if (CMP_EQ(_flag_a, _flag_b)) goto L_47036083; /* 0x47036060: je 0x47036083 */ 3087 L_47036062: 3088 edi = MEM32(edi); /* 0x47036062: mov edi, dword ptr [edi] */ 3089 eax = MEM32(edi + 0x174); /* 0x47036064: mov eax, dword ptr [edi + 0x174] */ 3090 /* cmp eax, ebx */ /* 0x4703606A: cmp eax, ebx */ 3091 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3092 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3093 _flag_k = FK_CMP; 3094 if (CMP_EQ(_flag_a, _flag_b)) goto L_47036079; /* 0x4703606C: je 0x47036079 */ 3095 L_4703606E: 3096 edx = MEM32(edi + 0x54); /* 0x4703606E: mov edx, dword ptr [edi + 0x54] */ 3097 PUSH32(esp, edx); /* 0x47036071: push edx */ 3098 RECOMP_ICALL(eax); /* 0x47036072: call eax */ 3099 RECOMP_FLAGS_IN(); 3100 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3101 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3102 esp = esp + 4; /* 0x47036074: add esp, 4 */ 3103 _flag_k = FK_ADD; 3104 goto L_47036083; /* 0x47036077: jmp 0x47036083 */ 3105 L_47036079: 3106 edi = MEM32(edi + 0x54); /* 0x47036079: mov edi, dword ptr [edi + 0x54] */ 3107 eax = MEM32(edi); /* 0x4703607C: mov eax, dword ptr [edi] */ 3108 ecx = edi; /* 0x4703607E: mov ecx, edi */ 3109 RECOMP_ICALL(MEM32(eax + 0x38)); /* 0x47036080: call dword ptr [eax + 0x38] */ 3110 RECOMP_FLAGS_IN(); 3111 L_47036083: 3112 edi = MEM32(0x470AC3C8); /* 0x47036083: mov edi, dword ptr [0x470ac3c8] */ 3113 RECOMP_ICALL(edi); /* 0x47036089: call edi */ 3114 RECOMP_FLAGS_IN(); 3115 MEM32(eax) = 0x2733u; /* 0x4703608B: mov dword ptr [eax], 0x2733 */ 3116 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47036091: call dword ptr [0x470ac150] */ 3117 RECOMP_FLAGS_IN(); 3118 ebp = eax; /* 0x47036097: mov ebp, eax */ 3119 RECOMP_ICALL(edi); /* 0x47036099: call edi */ 3120 RECOMP_FLAGS_IN(); 3121 eax = MEM32(eax); /* 0x4703609B: mov eax, dword ptr [eax] */ 3122 /* cmp eax, ebx */ /* 0x4703609D: cmp eax, ebx */ 3123 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3124 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3125 _flag_k = FK_CMP; 3126 if (CMP_NE(_flag_a, _flag_b)) goto L_470360A3; /* 0x4703609F: jne 0x470360a3 */ 3127 L_470360A1: 3128 eax = ebp; /* 0x470360A1: mov eax, ebp */ 3129 L_470360A3: 3130 PUSH32(esp, ebx); /* 0x470360A3: push ebx */ 3131 PUSH32(esp, ebx); /* 0x470360A4: push ebx */ 3132 PUSH32(esp, 1); /* 0x470360A5: push 1 */ 3133 PUSH32(esp, eax); /* 0x470360A7: push eax */ 3134 PUSH32(esp, esi); /* 0x470360A8: push esi */ 3135 PUSH32(esp, 0x1EFu); /* 0x470360A9: push 0x1ef */ 3136 PUSH32(esp, 0x47106DE4u); /* 0x470360AE: push 0x47106de4 */ 3137 RECOMP_ICALL(0x47039020u); /* 0x470360B3: call 0x47039020 */ /* not lifted */ 3138 RECOMP_FLAGS_IN(); 3139 ecx = eax; /* 0x470360B8: mov ecx, eax */ 3140 RECOMP_ICALL(0x4703A340u); /* 0x470360BA: call 0x4703a340 */ /* not lifted */ 3141 RECOMP_FLAGS_IN(); 3142 /* cmp MEM32(esp + 0x14), esi */ /* 0x470360BF: cmp dword ptr [esp + 0x14], esi */ 3143 _flag_a = (uint32_t)(MEM32(esp + 0x14)); _flag_b = (uint32_t)(esi); 3144 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3145 _flag_k = FK_CMP; 3146 edi = MEM32(0x470AC190); /* 0x470360C3: mov edi, dword ptr [0x470ac190] */ 3147 if (CMP_EQ(_flag_a, _flag_b)) goto L_470360D6; /* 0x470360C9: je 0x470360d6 */ 3148 L_470360CB: 3149 ecx = MEM32(esp + 0x10); /* 0x470360CB: mov ecx, dword ptr [esp + 0x10] */ 3150 PUSH32(esp, ecx); /* 0x470360CF: push ecx */ 3151 MEM32(esp + 0x18) = esi; /* 0x470360D0: mov dword ptr [esp + 0x18], esi */ 3152 RECOMP_ICALL(edi); /* 0x470360D4: call edi */ 3153 RECOMP_FLAGS_IN(); 3154 L_470360D6: 3155 /* cmp MEM32(esp + 0x1C), esi */ /* 0x470360D6: cmp dword ptr [esp + 0x1c], esi */ 3156 _flag_a = (uint32_t)(MEM32(esp + 0x1C)); _flag_b = (uint32_t)(esi); 3157 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3158 _flag_k = FK_CMP; 3159 if (CMP_EQ(_flag_a, _flag_b)) goto L_470360E7; /* 0x470360DA: je 0x470360e7 */ 3160 L_470360DC: 3161 edx = MEM32(esp + 0x18); /* 0x470360DC: mov edx, dword ptr [esp + 0x18] */ 3162 MEM32(esp + 0x1C) = esi; /* 0x470360E0: mov dword ptr [esp + 0x1c], esi */ 3163 PUSH32(esp, edx); /* 0x470360E4: push edx */ 3164 L_470360E5: 3165 RECOMP_ICALL(edi); /* 0x470360E5: call edi */ 3166 RECOMP_FLAGS_IN(); 3167 L_470360E7: 3168 eax = esi; /* 0x470360E7: mov eax, esi */ 3169 L_470360E9: 3170 ecx = MEM32(esp + 0x20); /* 0x470360E9: mov ecx, dword ptr [esp + 0x20] */ 3171 edi = POP32_VAL(esp); /* 0x470360ED: pop edi */ 3172 esi = POP32_VAL(esp); /* 0x470360EE: pop esi */ 3173 ebp = POP32_VAL(esp); /* 0x470360EF: pop ebp */ 3174 ebx = POP32_VAL(esp); /* 0x470360F0: pop ebx */ 3175 MEM32(FS_BASE + (0)) = ecx; /* 0x470360F1: mov dword ptr fs:[0], ecx */ 3176 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 3177 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3178 esp = esp + 0x1Cu; /* 0x470360F8: add esp, 0x1c */ 3179 _flag_k = FK_ADD; 3180 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470360FB: ret 0xc */ 3181 RECOMP_REGS_OUT(); 3182 } 3183 3184 void sub_470360E5(void) { 3185 int _fpu_cmp = 0; 3186 uint32_t _cf = 0; 3187 int _df = 1; 3188 uint32_t _flag_k = FK_NONE; 3189 uint32_t _flag_a = 0, _flag_b = 0; 3190 uint32_t _itail_tgt = 0; 3191 RECOMP_REGS_LOCALS 3192 RECOMP_ENTER(0x470360E5u); 3193 3194 L_470360E5: 3195 RECOMP_ICALL(edi); /* 0x470360E5: call edi */ 3196 RECOMP_FLAGS_IN(); 3197 eax = esi; /* 0x470360E7: mov eax, esi */ 3198 ecx = MEM32(esp + 0x20); /* 0x470360E9: mov ecx, dword ptr [esp + 0x20] */ 3199 edi = POP32_VAL(esp); /* 0x470360ED: pop edi */ 3200 esi = POP32_VAL(esp); /* 0x470360EE: pop esi */ 3201 ebp = POP32_VAL(esp); /* 0x470360EF: pop ebp */ 3202 ebx = POP32_VAL(esp); /* 0x470360F0: pop ebx */ 3203 MEM32(FS_BASE + (0)) = ecx; /* 0x470360F1: mov dword ptr fs:[0], ecx */ 3204 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 3205 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3206 esp = esp + 0x1Cu; /* 0x470360F8: add esp, 0x1c */ 3207 _flag_k = FK_ADD; 3208 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470360FB: ret 0xc */ 3209 RECOMP_REGS_OUT(); 3210 } 3211 3212 void sub_470360E9(void) { 3213 int _fpu_cmp = 0; 3214 uint32_t _cf = 0; 3215 int _df = 1; 3216 uint32_t _flag_k = FK_NONE; 3217 uint32_t _flag_a = 0, _flag_b = 0; 3218 uint32_t _itail_tgt = 0; 3219 RECOMP_REGS_LOCALS 3220 RECOMP_ENTER(0x470360E9u); 3221 3222 L_470360E9: 3223 ecx = MEM32(esp + 0x20); /* 0x470360E9: mov ecx, dword ptr [esp + 0x20] */ 3224 edi = POP32_VAL(esp); /* 0x470360ED: pop edi */ 3225 esi = POP32_VAL(esp); /* 0x470360EE: pop esi */ 3226 ebp = POP32_VAL(esp); /* 0x470360EF: pop ebp */ 3227 ebx = POP32_VAL(esp); /* 0x470360F0: pop ebx */ 3228 MEM32(FS_BASE + (0)) = ecx; /* 0x470360F1: mov dword ptr fs:[0], ecx */ 3229 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 3230 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3231 esp = esp + 0x1Cu; /* 0x470360F8: add esp, 0x1c */ 3232 _flag_k = FK_ADD; 3233 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470360FB: ret 0xc */ 3234 RECOMP_REGS_OUT(); 3235 } 3236 3237 void sub_47036100(void) { 3238 int _fpu_cmp = 0; 3239 uint32_t _cf = 0; 3240 int _df = 1; 3241 uint32_t _flag_k = FK_NONE; 3242 uint32_t _flag_a = 0, _flag_b = 0; 3243 uint32_t _itail_tgt = 0; 3244 RECOMP_REGS_LOCALS 3245 RECOMP_ENTER(0x47036100u); 3246 3247 L_47036100: 3248 PUSH32(esp, 0xFFFFFFFFu); /* 0x47036100: push -1 */ 3249 PUSH32(esp, 0x470A5C40u); /* 0x47036102: push 0x470a5c40 */ 3250 eax = MEM32(FS_BASE + (0)); /* 0x47036107: mov eax, dword ptr fs:[0] */ 3251 PUSH32(esp, eax); /* 0x4703610D: push eax */ 3252 MEM32(FS_BASE + (0)) = esp; /* 0x4703610E: mov dword ptr fs:[0], esp */ 3253 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3254 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3255 esp = esp - 0x10u; /* 0x47036115: sub esp, 0x10 */ 3256 _flag_k = FK_CMP; 3257 PUSH32(esp, ebx); /* 0x47036118: push ebx */ 3258 ebx = MEM32(0x470AC180); /* 0x47036119: mov ebx, dword ptr [0x470ac180] */ 3259 PUSH32(esp, ebp); /* 0x4703611F: push ebp */ 3260 PUSH32(esp, esi); /* 0x47036120: push esi */ 3261 PUSH32(esp, edi); /* 0x47036121: push edi */ 3262 edi = ecx; /* 0x47036122: mov edi, ecx */ 3263 eax = edi + 0x40; /* 0x47036124: lea eax, [edi + 0x40] */ 3264 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3265 ebp = 0; /* 0x47036127: xor ebp, ebp */ 3266 _cf = 0; 3267 _flag_k = FK_TEST; 3268 PUSH32(esp, eax); /* 0x47036129: push eax */ 3269 MEM32(esp + 0x14) = eax; /* 0x4703612A: mov dword ptr [esp + 0x14], eax */ 3270 MEM32(esp + 0x18) = ebp; /* 0x4703612E: mov dword ptr [esp + 0x18], ebp */ 3271 RECOMP_ICALL(ebx); /* 0x47036132: call ebx */ 3272 RECOMP_FLAGS_IN(); 3273 MEM32(esp + 0x14) = ebp; /* 0x47036134: mov dword ptr [esp + 0x14], ebp */ 3274 MEM32(esp + 0x28) = ebp; /* 0x47036138: mov dword ptr [esp + 0x28], ebp */ 3275 RECOMP_ICALL(0x470942F0u); /* 0x4703613C: call 0x470942f0 */ /* not lifted */ 3276 RECOMP_FLAGS_IN(); 3277 esi = eax; /* 0x47036141: mov esi, eax */ 3278 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 3279 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3280 esi = esi + 8; /* 0x47036143: add esi, 8 */ 3281 _flag_k = FK_ADD; 3282 PUSH32(esp, esi); /* 0x47036146: push esi */ 3283 MEM32(esp + 0x1C) = esi; /* 0x47036147: mov dword ptr [esp + 0x1c], esi */ 3284 RECOMP_ICALL(ebx); /* 0x4703614B: call ebx */ 3285 RECOMP_FLAGS_IN(); 3286 MEM32(esp + 0x1C) = ebp; /* 0x4703614D: mov dword ptr [esp + 0x1c], ebp */ 3287 eax = MEM32(edi + 0xC); /* 0x47036151: mov eax, dword ptr [edi + 0xc] */ 3288 /* cmp eax, ebp */ /* 0x47036154: cmp eax, ebp */ 3289 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 3290 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3291 _flag_k = FK_CMP; 3292 ecx = edi + 0xC; /* 0x47036156: lea ecx, [edi + 0xc] */ 3293 MEM8(esp + 0x28) = (uint8_t)(1); /* 0x47036159: mov byte ptr [esp + 0x28], 1 */ 3294 if (CMP_EQ(_flag_a, _flag_b)) goto L_47036162; /* 0x4703615E: je 0x47036162 */ 3295 L_47036160: 3296 if (CMP_NE(_flag_a, _flag_b)) goto L_47036191; /* 0x47036160: jne 0x47036191 */ 3297 L_47036162: 3298 eax = MEM32(esp + 0x30); /* 0x47036162: mov eax, dword ptr [esp + 0x30] */ 3299 _flag_a = (uint32_t)((edi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edi | 0xFFFFFFFFu)); 3300 edi = edi | 0xFFFFFFFFu; /* 0x47036166: or edi, 0xffffffff */ 3301 _cf = 0; 3302 _flag_k = FK_TEST; 3303 PUSH32(esp, edi); /* 0x47036169: push edi */ 3304 PUSH32(esp, eax); /* 0x4703616A: push eax */ 3305 RECOMP_ICALL(0x470359F0u); /* 0x4703616B: call 0x470359f0 */ /* not lifted */ 3306 RECOMP_FLAGS_IN(); 3307 PUSH32(esp, esi); /* 0x47036170: push esi */ 3308 esi = MEM32(0x470AC190); /* 0x47036171: mov esi, dword ptr [0x470ac190] */ 3309 RECOMP_ICALL(esi); /* 0x47036177: call esi */ 3310 RECOMP_FLAGS_IN(); 3311 L_47036179: 3312 /* cmp MEM32(esp + 0x14), edi */ /* 0x47036179: cmp dword ptr [esp + 0x14], edi */ 3313 _flag_a = (uint32_t)(MEM32(esp + 0x14)); _flag_b = (uint32_t)(edi); 3314 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3315 _flag_k = FK_CMP; 3316 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703618A; /* 0x4703617D: je 0x4703618a */ 3317 L_4703617F: 3318 ecx = MEM32(esp + 0x10); /* 0x4703617F: mov ecx, dword ptr [esp + 0x10] */ 3319 PUSH32(esp, ecx); /* 0x47036183: push ecx */ 3320 MEM32(esp + 0x18) = edi; /* 0x47036184: mov dword ptr [esp + 0x18], edi */ 3321 RECOMP_ICALL(esi); /* 0x47036188: call esi */ 3322 RECOMP_FLAGS_IN(); 3323 L_4703618A: 3324 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3325 eax = 0; /* 0x4703618A: xor eax, eax */ 3326 _cf = 0; 3327 _flag_k = FK_TEST; 3328 goto L_47036214; /* 0x4703618C: jmp 0x47036214 */ 3329 L_47036191: 3330 ebx = MEM32(esp + 0x30); /* 0x47036191: mov ebx, dword ptr [esp + 0x30] */ 3331 edx = MEM32(edi); /* 0x47036195: mov edx, dword ptr [edi] */ 3332 eax = ebx + 0x60; /* 0x47036197: lea eax, [ebx + 0x60] */ 3333 PUSH32(esp, eax); /* 0x4703619A: push eax */ 3334 ecx = edi; /* 0x4703619B: mov ecx, edi */ 3335 RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x4703619D: call dword ptr [edx + 0x1c] */ 3336 RECOMP_FLAGS_IN(); 3337 /* test eax, eax */ /* 0x470361A0: test eax, eax */ 3338 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3339 _cf = 0; 3340 _flag_k = FK_TEST; 3341 if (TEST_Z(_flag_a, _flag_b)) goto L_470361B9; /* 0x470361A2: je 0x470361b9 */ 3342 L_470361A4: 3343 edx = MEM32(ebx + 0x58); /* 0x470361A4: mov edx, dword ptr [ebx + 0x58] */ 3344 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 3345 edx = edx + 1; /* 0x470361A7: inc edx */ 3346 _flag_k = FK_INC; 3347 PUSH32(esp, esi); /* 0x470361A8: push esi */ 3348 esi = MEM32(0x470AC190); /* 0x470361A9: mov esi, dword ptr [0x470ac190] */ 3349 MEM32(ebx + 0x58) = edx; /* 0x470361AF: mov dword ptr [ebx + 0x58], edx */ 3350 RECOMP_ICALL(esi); /* 0x470361B2: call esi */ 3351 RECOMP_FLAGS_IN(); 3352 _flag_a = (uint32_t)((edi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edi | 0xFFFFFFFFu)); 3353 edi = edi | 0xFFFFFFFFu; /* 0x470361B4: or edi, 0xffffffff */ 3354 _cf = 0; 3355 _flag_k = FK_TEST; 3356 RECOMP_BACKEDGE(); 3357 goto L_47036179; /* 0x470361B7: jmp 0x47036179 */ 3358 L_470361B9: 3359 edi = MEM32(0x470AC3C8); /* 0x470361B9: mov edi, dword ptr [0x470ac3c8] */ 3360 RECOMP_ICALL(edi); /* 0x470361BF: call edi */ 3361 RECOMP_FLAGS_IN(); 3362 MEM32(eax) = 0x2733u; /* 0x470361C1: mov dword ptr [eax], 0x2733 */ 3363 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470361C7: call dword ptr [0x470ac150] */ 3364 RECOMP_FLAGS_IN(); 3365 ebx = eax; /* 0x470361CD: mov ebx, eax */ 3366 RECOMP_ICALL(edi); /* 0x470361CF: call edi */ 3367 RECOMP_FLAGS_IN(); 3368 eax = MEM32(eax); /* 0x470361D1: mov eax, dword ptr [eax] */ 3369 /* cmp eax, ebp */ /* 0x470361D3: cmp eax, ebp */ 3370 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 3371 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3372 _flag_k = FK_CMP; 3373 if (CMP_NE(_flag_a, _flag_b)) goto L_470361D9; /* 0x470361D5: jne 0x470361d9 */ 3374 L_470361D7: 3375 eax = ebx; /* 0x470361D7: mov eax, ebx */ 3376 L_470361D9: 3377 PUSH32(esp, ebp); /* 0x470361D9: push ebp */ 3378 PUSH32(esp, ebp); /* 0x470361DA: push ebp */ 3379 PUSH32(esp, 1); /* 0x470361DB: push 1 */ 3380 PUSH32(esp, eax); /* 0x470361DD: push eax */ 3381 _flag_a = (uint32_t)((edi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edi | 0xFFFFFFFFu)); 3382 edi = edi | 0xFFFFFFFFu; /* 0x470361DE: or edi, 0xffffffff */ 3383 _cf = 0; 3384 _flag_k = FK_TEST; 3385 PUSH32(esp, edi); /* 0x470361E1: push edi */ 3386 PUSH32(esp, 0x20Fu); /* 0x470361E2: push 0x20f */ 3387 PUSH32(esp, 0x47106DE4u); /* 0x470361E7: push 0x47106de4 */ 3388 RECOMP_ICALL(0x47039020u); /* 0x470361EC: call 0x47039020 */ /* not lifted */ 3389 RECOMP_FLAGS_IN(); 3390 ecx = eax; /* 0x470361F1: mov ecx, eax */ 3391 RECOMP_ICALL(0x4703A340u); /* 0x470361F3: call 0x4703a340 */ /* not lifted */ 3392 RECOMP_FLAGS_IN(); 3393 PUSH32(esp, esi); /* 0x470361F8: push esi */ 3394 esi = MEM32(0x470AC190); /* 0x470361F9: mov esi, dword ptr [0x470ac190] */ 3395 RECOMP_ICALL(esi); /* 0x470361FF: call esi */ 3396 RECOMP_FLAGS_IN(); 3397 /* cmp MEM32(esp + 0x14), edi */ /* 0x47036201: cmp dword ptr [esp + 0x14], edi */ 3398 _flag_a = (uint32_t)(MEM32(esp + 0x14)); _flag_b = (uint32_t)(edi); 3399 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3400 _flag_k = FK_CMP; 3401 if (CMP_EQ(_flag_a, _flag_b)) goto L_47036212; /* 0x47036205: je 0x47036212 */ 3402 L_47036207: 3403 edx = MEM32(esp + 0x10); /* 0x47036207: mov edx, dword ptr [esp + 0x10] */ 3404 PUSH32(esp, edx); /* 0x4703620B: push edx */ 3405 MEM32(esp + 0x18) = edi; /* 0x4703620C: mov dword ptr [esp + 0x18], edi */ 3406 RECOMP_ICALL(esi); /* 0x47036210: call esi */ 3407 RECOMP_FLAGS_IN(); 3408 L_47036212: 3409 eax = edi; /* 0x47036212: mov eax, edi */ 3410 L_47036214: 3411 ecx = MEM32(esp + 0x20); /* 0x47036214: mov ecx, dword ptr [esp + 0x20] */ 3412 edi = POP32_VAL(esp); /* 0x47036218: pop edi */ 3413 esi = POP32_VAL(esp); /* 0x47036219: pop esi */ 3414 ebp = POP32_VAL(esp); /* 0x4703621A: pop ebp */ 3415 ebx = POP32_VAL(esp); /* 0x4703621B: pop ebx */ 3416 MEM32(FS_BASE + (0)) = ecx; /* 0x4703621C: mov dword ptr fs:[0], ecx */ 3417 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 3418 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3419 esp = esp + 0x1Cu; /* 0x47036223: add esp, 0x1c */ 3420 _flag_k = FK_ADD; 3421 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47036226: ret 4 */ 3422 RECOMP_REGS_OUT(); 3423 } 3424 3425 void sub_47036214(void) { 3426 int _fpu_cmp = 0; 3427 uint32_t _cf = 0; 3428 int _df = 1; 3429 uint32_t _flag_k = FK_NONE; 3430 uint32_t _flag_a = 0, _flag_b = 0; 3431 uint32_t _itail_tgt = 0; 3432 RECOMP_REGS_LOCALS 3433 RECOMP_ENTER(0x47036214u); 3434 3435 L_47036214: 3436 ecx = MEM32(esp + 0x20); /* 0x47036214: mov ecx, dword ptr [esp + 0x20] */ 3437 edi = POP32_VAL(esp); /* 0x47036218: pop edi */ 3438 esi = POP32_VAL(esp); /* 0x47036219: pop esi */ 3439 ebp = POP32_VAL(esp); /* 0x4703621A: pop ebp */ 3440 ebx = POP32_VAL(esp); /* 0x4703621B: pop ebx */ 3441 MEM32(FS_BASE + (0)) = ecx; /* 0x4703621C: mov dword ptr fs:[0], ecx */ 3442 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 3443 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3444 esp = esp + 0x1Cu; /* 0x47036223: add esp, 0x1c */ 3445 _flag_k = FK_ADD; 3446 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47036226: ret 4 */ 3447 RECOMP_REGS_OUT(); 3448 } 3449 3450 void sub_47036230(void) { 3451 int _fpu_cmp = 0; 3452 uint32_t _cf = 0; 3453 int _df = 1; 3454 uint32_t _flag_k = FK_NONE; 3455 uint32_t _flag_a = 0, _flag_b = 0; 3456 uint32_t _itail_tgt = 0; 3457 RECOMP_REGS_LOCALS 3458 RECOMP_ENTER(0x47036230u); 3459 3460 L_47036230: 3461 PUSH32(esp, 0xFFFFFFFFu); /* 0x47036230: push -1 */ 3462 PUSH32(esp, 0x470A5C58u); /* 0x47036232: push 0x470a5c58 */ 3463 eax = MEM32(FS_BASE + (0)); /* 0x47036237: mov eax, dword ptr fs:[0] */ 3464 PUSH32(esp, eax); /* 0x4703623D: push eax */ 3465 MEM32(FS_BASE + (0)) = esp; /* 0x4703623E: mov dword ptr fs:[0], esp */ 3466 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3467 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3468 esp = esp - 8; /* 0x47036245: sub esp, 8 */ 3469 _flag_k = FK_CMP; 3470 PUSH32(esp, ebx); /* 0x47036248: push ebx */ 3471 PUSH32(esp, ebp); /* 0x47036249: push ebp */ 3472 PUSH32(esp, esi); /* 0x4703624A: push esi */ 3473 esi = ecx; /* 0x4703624B: mov esi, ecx */ 3474 PUSH32(esp, edi); /* 0x4703624D: push edi */ 3475 ebp = esi + 0x40; /* 0x4703624E: lea ebp, [esi + 0x40] */ 3476 PUSH32(esp, ebp); /* 0x47036251: push ebp */ 3477 MEM32(esp + 0x14) = ebp; /* 0x47036252: mov dword ptr [esp + 0x14], ebp */ 3478 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47036256: call dword ptr [0x470ac180] */ 3479 RECOMP_FLAGS_IN(); 3480 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3481 ebx = 0; /* 0x4703625C: xor ebx, ebx */ 3482 _cf = 0; 3483 _flag_k = FK_TEST; 3484 MEM32(esp + 0x14) = ebx; /* 0x4703625E: mov dword ptr [esp + 0x14], ebx */ 3485 ecx = MEM32(esp + 0x28); /* 0x47036262: mov ecx, dword ptr [esp + 0x28] */ 3486 eax = MEM32(esi); /* 0x47036266: mov eax, dword ptr [esi] */ 3487 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x60u); 3488 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3489 ecx = ecx + 0x60u; /* 0x47036268: add ecx, 0x60 */ 3490 _flag_k = FK_ADD; 3491 PUSH32(esp, ecx); /* 0x4703626B: push ecx */ 3492 ecx = esi; /* 0x4703626C: mov ecx, esi */ 3493 MEM32(esp + 0x24) = ebx; /* 0x4703626E: mov dword ptr [esp + 0x24], ebx */ 3494 RECOMP_ICALL(MEM32(eax + 0x1C)); /* 0x47036272: call dword ptr [eax + 0x1c] */ 3495 RECOMP_FLAGS_IN(); 3496 /* test eax, eax */ /* 0x47036275: test eax, eax */ 3497 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3498 _cf = 0; 3499 _flag_k = FK_TEST; 3500 if (TEST_NZ(_flag_a, _flag_b)) goto L_470362C5; /* 0x47036277: jne 0x470362c5 */ 3501 L_47036279: 3502 esi = MEM32(0x470AC3C8); /* 0x47036279: mov esi, dword ptr [0x470ac3c8] */ 3503 RECOMP_ICALL(esi); /* 0x4703627F: call esi */ 3504 RECOMP_FLAGS_IN(); 3505 MEM32(eax) = 0xDu; /* 0x47036281: mov dword ptr [eax], 0xd */ 3506 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47036287: call dword ptr [0x470ac150] */ 3507 RECOMP_FLAGS_IN(); 3508 edi = eax; /* 0x4703628D: mov edi, eax */ 3509 RECOMP_ICALL(esi); /* 0x4703628F: call esi */ 3510 RECOMP_FLAGS_IN(); 3511 eax = MEM32(eax); /* 0x47036291: mov eax, dword ptr [eax] */ 3512 /* cmp eax, ebx */ /* 0x47036293: cmp eax, ebx */ 3513 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3514 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3515 _flag_k = FK_CMP; 3516 if (CMP_NE(_flag_a, _flag_b)) goto L_47036299; /* 0x47036295: jne 0x47036299 */ 3517 L_47036297: 3518 eax = edi; /* 0x47036297: mov eax, edi */ 3519 L_47036299: 3520 PUSH32(esp, ebx); /* 0x47036299: push ebx */ 3521 PUSH32(esp, ebx); /* 0x4703629A: push ebx */ 3522 PUSH32(esp, 1); /* 0x4703629B: push 1 */ 3523 PUSH32(esp, eax); /* 0x4703629D: push eax */ 3524 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703629E: push -1 */ 3525 PUSH32(esp, 0x21Eu); /* 0x470362A0: push 0x21e */ 3526 PUSH32(esp, 0x47106DE4u); /* 0x470362A5: push 0x47106de4 */ 3527 RECOMP_ICALL(0x47039020u); /* 0x470362AA: call 0x47039020 */ /* not lifted */ 3528 RECOMP_FLAGS_IN(); 3529 ecx = eax; /* 0x470362AF: mov ecx, eax */ 3530 RECOMP_ICALL(0x4703A340u); /* 0x470362B1: call 0x4703a340 */ /* not lifted */ 3531 RECOMP_FLAGS_IN(); 3532 PUSH32(esp, ebp); /* 0x470362B6: push ebp */ 3533 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470362B7: call dword ptr [0x470ac190] */ 3534 RECOMP_FLAGS_IN(); 3535 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3536 eax = eax | 0xFFFFFFFFu; /* 0x470362BD: or eax, 0xffffffff */ 3537 _cf = 0; 3538 _flag_k = FK_TEST; 3539 goto L_470363D4; /* 0x470362C0: jmp 0x470363d4 */ 3540 L_470362C5: 3541 /* cmp MEM32(esi + 0x14), 1 */ /* 0x470362C5: cmp dword ptr [esi + 0x14], 1 */ 3542 _flag_a = (uint32_t)(MEM32(esi + 0x14)); _flag_b = (uint32_t)(1); 3543 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3544 _flag_k = FK_CMP; 3545 if (CMP_EQ(_flag_a, _flag_b)) goto L_470363CB; /* 0x470362C9: je 0x470363cb */ 3546 L_470362CF: 3547 /* cmp MEM32(esp + 0x2C), ebx */ /* 0x470362CF: cmp dword ptr [esp + 0x2c], ebx */ 3548 _flag_a = (uint32_t)(MEM32(esp + 0x2C)); _flag_b = (uint32_t)(ebx); 3549 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3550 _flag_k = FK_CMP; 3551 if (CMP_EQ(_flag_a, _flag_b)) goto L_470363CB; /* 0x470362D3: je 0x470363cb */ 3552 L_470362D9: 3553 eax = MEM32(esi + 0xC); /* 0x470362D9: mov eax, dword ptr [esi + 0xc] */ 3554 ebp = MEM32(0x470AC3C8); /* 0x470362DC: mov ebp, dword ptr [0x470ac3c8] */ 3555 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 3556 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3557 esi = esi + 0xCu; /* 0x470362E2: add esi, 0xc */ 3558 _flag_k = FK_ADD; 3559 /* cmp eax, ebx */ /* 0x470362E5: cmp eax, ebx */ 3560 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3561 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3562 _flag_k = FK_CMP; 3563 if (CMP_EQ(_flag_a, _flag_b)) goto L_47036362; /* 0x470362E7: je 0x47036362 */ 3564 L_470362E9: 3565 edx = MEM32(eax + 0x4C); /* 0x470362E9: mov edx, dword ptr [eax + 0x4c] */ 3566 MEM32(esi) = edx; /* 0x470362EC: mov dword ptr [esi], edx */ 3567 MEM32(eax + 0x4C) = ebx; /* 0x470362EE: mov dword ptr [eax + 0x4c], ebx */ 3568 edx = MEM32(esi + 0x8); /* 0x470362F1: mov edx, dword ptr [esi + 8] */ 3569 ecx = MEM32(esi); /* 0x470362F4: mov ecx, dword ptr [esi] */ 3570 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 3571 edx = edx - 1; /* 0x470362F6: dec edx */ 3572 _flag_k = FK_DEC; 3573 /* cmp ecx, ebx */ /* 0x470362F7: cmp ecx, ebx */ 3574 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 3575 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3576 _flag_k = FK_CMP; 3577 MEM32(esi + 0x8) = edx; /* 0x470362F9: mov dword ptr [esi + 8], edx */ 3578 eax = edx; /* 0x470362FC: mov eax, edx */ 3579 if (CMP_NE(_flag_a, _flag_b)) goto L_47036362; /* 0x470362FE: jne 0x47036362 */ 3580 L_47036300: 3581 /* cmp eax, ebx */ /* 0x47036300: cmp eax, ebx */ 3582 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3583 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3584 _flag_k = FK_CMP; 3585 if (CMP_EQ(_flag_a, _flag_b)) goto L_47036362; /* 0x47036302: je 0x47036362 */ 3586 L_47036304: 3587 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47036304: call dword ptr [0x470ac150] */ 3588 RECOMP_FLAGS_IN(); 3589 ebx = eax; /* 0x4703630A: mov ebx, eax */ 3590 RECOMP_ICALL(ebp); /* 0x4703630C: call ebp */ 3591 RECOMP_FLAGS_IN(); 3592 eax = MEM32(eax); /* 0x4703630E: mov eax, dword ptr [eax] */ 3593 /* test eax, eax */ /* 0x47036310: test eax, eax */ 3594 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3595 _cf = 0; 3596 _flag_k = FK_TEST; 3597 if (TEST_Z(_flag_a, _flag_b)) goto L_47036316; /* 0x47036312: je 0x47036316 */ 3598 L_47036314: 3599 ebx = eax; /* 0x47036314: mov ebx, eax */ 3600 L_47036316: 3601 RECOMP_ICALL(0x47039020u); /* 0x47036316: call 0x47039020 */ /* not lifted */ 3602 RECOMP_FLAGS_IN(); 3603 edi = eax; /* 0x4703631B: mov edi, eax */ 3604 ecx = edi; /* 0x4703631D: mov ecx, edi */ 3605 RECOMP_ICALL(0x4703B210u); /* 0x4703631F: call 0x4703b210 */ /* not lifted */ 3606 RECOMP_FLAGS_IN(); 3607 PUSH32(esp, eax); /* 0x47036324: push eax */ 3608 ecx = edi; /* 0x47036325: mov ecx, edi */ 3609 RECOMP_ICALL(0x4703B240u); /* 0x47036327: call 0x4703b240 */ /* not lifted */ 3610 RECOMP_FLAGS_IN(); 3611 PUSH32(esp, eax); /* 0x4703632C: push eax */ 3612 ecx = edi; /* 0x4703632D: mov ecx, edi */ 3613 RECOMP_ICALL(0x4703B080u); /* 0x4703632F: call 0x4703b080 */ /* not lifted */ 3614 RECOMP_FLAGS_IN(); 3615 PUSH32(esp, eax); /* 0x47036334: push eax */ 3616 PUSH32(esp, ebx); /* 0x47036335: push ebx */ 3617 PUSH32(esp, 0xFFFFFFFFu); /* 0x47036336: push -1 */ 3618 PUSH32(esp, 0x15Eu); /* 0x47036338: push 0x15e */ 3619 PUSH32(esp, 0x47106DE4u); /* 0x4703633D: push 0x47106de4 */ 3620 ecx = edi; /* 0x47036342: mov ecx, edi */ 3621 RECOMP_ICALL(0x4703A340u); /* 0x47036344: call 0x4703a340 */ /* not lifted */ 3622 RECOMP_FLAGS_IN(); 3623 eax = MEM32(esi + 0x8); /* 0x47036349: mov eax, dword ptr [esi + 8] */ 3624 PUSH32(esp, eax); /* 0x4703634C: push eax */ 3625 PUSH32(esp, 0x47106F68u); /* 0x4703634D: push 0x47106f68 */ 3626 PUSH32(esp, 0x80u); /* 0x47036352: push 0x80 */ 3627 PUSH32(esp, edi); /* 0x47036357: push edi */ 3628 RECOMP_ICALL(0x47039830u); /* 0x47036358: call 0x47039830 */ /* not lifted */ 3629 RECOMP_FLAGS_IN(); 3630 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3631 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3632 esp = esp + 0x10u; /* 0x4703635D: add esp, 0x10 */ 3633 _flag_k = FK_ADD; 3634 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3635 ebx = 0; /* 0x47036360: xor ebx, ebx */ 3636 _cf = 0; 3637 _flag_k = FK_TEST; 3638 L_47036362: 3639 ecx = MEM32(esp + 0x2C); /* 0x47036362: mov ecx, dword ptr [esp + 0x2c] */ 3640 edx = MEM32(esp + 0x28); /* 0x47036366: mov edx, dword ptr [esp + 0x28] */ 3641 PUSH32(esp, ecx); /* 0x4703636A: push ecx */ 3642 PUSH32(esp, edx); /* 0x4703636B: push edx */ 3643 ecx = esi; /* 0x4703636C: mov ecx, esi */ 3644 RECOMP_ICALL(0x470359F0u); /* 0x4703636E: call 0x470359f0 */ /* not lifted */ 3645 RECOMP_FLAGS_IN(); 3646 eax = MEM32(esi); /* 0x47036373: mov eax, dword ptr [esi] */ 3647 /* cmp eax, ebx */ /* 0x47036375: cmp eax, ebx */ 3648 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3649 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3650 _flag_k = FK_CMP; 3651 if (CMP_EQ(_flag_a, _flag_b)) goto L_47036384; /* 0x47036377: je 0x47036384 */ 3652 L_47036379: 3653 esi = eax; /* 0x47036379: mov esi, eax */ 3654 ecx = MEM32(esi + 0x54); /* 0x4703637B: mov ecx, dword ptr [esi + 0x54] */ 3655 edx = MEM32(ecx); /* 0x4703637E: mov edx, dword ptr [ecx] */ 3656 PUSH32(esp, eax); /* 0x47036380: push eax */ 3657 RECOMP_ICALL(MEM32(edx + 0x3C)); /* 0x47036381: call dword ptr [edx + 0x3c] */ 3658 RECOMP_FLAGS_IN(); 3659 L_47036384: 3660 RECOMP_ICALL(ebp); /* 0x47036384: call ebp */ 3661 RECOMP_FLAGS_IN(); 3662 MEM32(eax) = 0x2733u; /* 0x47036386: mov dword ptr [eax], 0x2733 */ 3663 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4703638C: call dword ptr [0x470ac150] */ 3664 RECOMP_FLAGS_IN(); 3665 esi = eax; /* 0x47036392: mov esi, eax */ 3666 RECOMP_ICALL(ebp); /* 0x47036394: call ebp */ 3667 RECOMP_FLAGS_IN(); 3668 eax = MEM32(eax); /* 0x47036396: mov eax, dword ptr [eax] */ 3669 /* cmp eax, ebx */ /* 0x47036398: cmp eax, ebx */ 3670 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3671 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3672 _flag_k = FK_CMP; 3673 if (CMP_NE(_flag_a, _flag_b)) goto L_4703639E; /* 0x4703639A: jne 0x4703639e */ 3674 L_4703639C: 3675 eax = esi; /* 0x4703639C: mov eax, esi */ 3676 L_4703639E: 3677 PUSH32(esp, ebx); /* 0x4703639E: push ebx */ 3678 PUSH32(esp, ebx); /* 0x4703639F: push ebx */ 3679 PUSH32(esp, 1); /* 0x470363A0: push 1 */ 3680 PUSH32(esp, eax); /* 0x470363A2: push eax */ 3681 PUSH32(esp, 0xFFFFFFFFu); /* 0x470363A3: push -1 */ 3682 PUSH32(esp, 0x232u); /* 0x470363A5: push 0x232 */ 3683 PUSH32(esp, 0x47106DE4u); /* 0x470363AA: push 0x47106de4 */ 3684 RECOMP_ICALL(0x47039020u); /* 0x470363AF: call 0x47039020 */ /* not lifted */ 3685 RECOMP_FLAGS_IN(); 3686 ecx = eax; /* 0x470363B4: mov ecx, eax */ 3687 RECOMP_ICALL(0x4703A340u); /* 0x470363B6: call 0x4703a340 */ /* not lifted */ 3688 RECOMP_FLAGS_IN(); 3689 eax = MEM32(esp + 0x10); /* 0x470363BB: mov eax, dword ptr [esp + 0x10] */ 3690 PUSH32(esp, eax); /* 0x470363BF: push eax */ 3691 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470363C0: call dword ptr [0x470ac190] */ 3692 RECOMP_FLAGS_IN(); 3693 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3694 eax = eax | 0xFFFFFFFFu; /* 0x470363C6: or eax, 0xffffffff */ 3695 _cf = 0; 3696 _flag_k = FK_TEST; 3697 goto L_470363D4; /* 0x470363C9: jmp 0x470363d4 */ 3698 L_470363CB: 3699 PUSH32(esp, ebp); /* 0x470363CB: push ebp */ 3700 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470363CC: call dword ptr [0x470ac190] */ 3701 RECOMP_FLAGS_IN(); 3702 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3703 eax = 0; /* 0x470363D2: xor eax, eax */ 3704 _cf = 0; 3705 _flag_k = FK_TEST; 3706 L_470363D4: 3707 ecx = MEM32(esp + 0x18); /* 0x470363D4: mov ecx, dword ptr [esp + 0x18] */ 3708 edi = POP32_VAL(esp); /* 0x470363D8: pop edi */ 3709 esi = POP32_VAL(esp); /* 0x470363D9: pop esi */ 3710 ebp = POP32_VAL(esp); /* 0x470363DA: pop ebp */ 3711 ebx = POP32_VAL(esp); /* 0x470363DB: pop ebx */ 3712 MEM32(FS_BASE + (0)) = ecx; /* 0x470363DC: mov dword ptr fs:[0], ecx */ 3713 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 3714 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3715 esp = esp + 0x14u; /* 0x470363E3: add esp, 0x14 */ 3716 _flag_k = FK_ADD; 3717 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470363E6: ret 8 */ 3718 RECOMP_REGS_OUT(); 3719 } 3720 3721 void sub_470363D4(void) { 3722 int _fpu_cmp = 0; 3723 uint32_t _cf = 0; 3724 int _df = 1; 3725 uint32_t _flag_k = FK_NONE; 3726 uint32_t _flag_a = 0, _flag_b = 0; 3727 uint32_t _itail_tgt = 0; 3728 RECOMP_REGS_LOCALS 3729 RECOMP_ENTER(0x470363D4u); 3730 3731 L_470363D4: 3732 ecx = MEM32(esp + 0x18); /* 0x470363D4: mov ecx, dword ptr [esp + 0x18] */ 3733 edi = POP32_VAL(esp); /* 0x470363D8: pop edi */ 3734 esi = POP32_VAL(esp); /* 0x470363D9: pop esi */ 3735 ebp = POP32_VAL(esp); /* 0x470363DA: pop ebp */ 3736 ebx = POP32_VAL(esp); /* 0x470363DB: pop ebx */ 3737 MEM32(FS_BASE + (0)) = ecx; /* 0x470363DC: mov dword ptr fs:[0], ecx */ 3738 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 3739 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3740 esp = esp + 0x14u; /* 0x470363E3: add esp, 0x14 */ 3741 _flag_k = FK_ADD; 3742 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470363E6: ret 8 */ 3743 RECOMP_REGS_OUT(); 3744 } 3745 3746 void sub_470363F0(void) { 3747 int _fpu_cmp = 0; 3748 uint32_t _cf = 0; 3749 int _df = 1; 3750 uint32_t _flag_k = FK_NONE; 3751 uint32_t _flag_a = 0, _flag_b = 0; 3752 uint32_t _itail_tgt = 0; 3753 RECOMP_REGS_LOCALS 3754 RECOMP_ENTER(0x470363F0u); 3755 3756 L_470363F0: 3757 PUSH32(esp, 0xFFFFFFFFu); /* 0x470363F0: push -1 */ 3758 PUSH32(esp, 0x470A5C78u); /* 0x470363F2: push 0x470a5c78 */ 3759 eax = MEM32(FS_BASE + (0)); /* 0x470363F7: mov eax, dword ptr fs:[0] */ 3760 PUSH32(esp, eax); /* 0x470363FD: push eax */ 3761 MEM32(FS_BASE + (0)) = esp; /* 0x470363FE: mov dword ptr fs:[0], esp */ 3762 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3763 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3764 esp = esp - 8; /* 0x47036405: sub esp, 8 */ 3765 _flag_k = FK_CMP; 3766 PUSH32(esp, ebx); /* 0x47036408: push ebx */ 3767 PUSH32(esp, esi); /* 0x47036409: push esi */ 3768 PUSH32(esp, edi); /* 0x4703640A: push edi */ 3769 edi = ecx; /* 0x4703640B: mov edi, ecx */ 3770 ebx = edi + 0x40; /* 0x4703640D: lea ebx, [edi + 0x40] */ 3771 PUSH32(esp, ebx); /* 0x47036410: push ebx */ 3772 MEM32(esp + 0x10) = ebx; /* 0x47036411: mov dword ptr [esp + 0x10], ebx */ 3773 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47036415: call dword ptr [0x470ac180] */ 3774 RECOMP_FLAGS_IN(); 3775 MEM32(esp + 0x10) = 0; /* 0x4703641B: mov dword ptr [esp + 0x10], 0 */ 3776 eax = MEM32(edi + 0xC); /* 0x47036423: mov eax, dword ptr [edi + 0xc] */ 3777 /* test eax, eax */ /* 0x47036426: test eax, eax */ 3778 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3779 _cf = 0; 3780 _flag_k = FK_TEST; 3781 esi = edi + 0xC; /* 0x47036428: lea esi, [edi + 0xc] */ 3782 MEM32(esp + 0x1C) = 0; /* 0x4703642B: mov dword ptr [esp + 0x1c], 0 */ 3783 if (TEST_Z(_flag_a, _flag_b)) goto L_47036437; /* 0x47036433: je 0x47036437 */ 3784 L_47036435: 3785 if (TEST_NZ(_flag_a, _flag_b)) goto L_47036494; /* 0x47036435: jne 0x47036494 */ 3786 L_47036437: 3787 esi = MEM32(0x470AC3C8); /* 0x47036437: mov esi, dword ptr [0x470ac3c8] */ 3788 RECOMP_ICALL(esi); /* 0x4703643D: call esi */ 3789 RECOMP_FLAGS_IN(); 3790 MEM32(eax) = 0xDu; /* 0x4703643F: mov dword ptr [eax], 0xd */ 3791 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47036445: call dword ptr [0x470ac150] */ 3792 RECOMP_FLAGS_IN(); 3793 edi = eax; /* 0x4703644B: mov edi, eax */ 3794 RECOMP_ICALL(esi); /* 0x4703644D: call esi */ 3795 RECOMP_FLAGS_IN(); 3796 eax = MEM32(eax); /* 0x4703644F: mov eax, dword ptr [eax] */ 3797 /* test eax, eax */ /* 0x47036451: test eax, eax */ 3798 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3799 _cf = 0; 3800 _flag_k = FK_TEST; 3801 if (TEST_NZ(_flag_a, _flag_b)) goto L_47036457; /* 0x47036453: jne 0x47036457 */ 3802 L_47036455: 3803 eax = edi; /* 0x47036455: mov eax, edi */ 3804 L_47036457: 3805 PUSH32(esp, 0); /* 0x47036457: push 0 */ 3806 PUSH32(esp, 0); /* 0x47036459: push 0 */ 3807 PUSH32(esp, 1); /* 0x4703645B: push 1 */ 3808 PUSH32(esp, eax); /* 0x4703645D: push eax */ 3809 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703645E: push -1 */ 3810 PUSH32(esp, 0x242u); /* 0x47036460: push 0x242 */ 3811 PUSH32(esp, 0x47106DE4u); /* 0x47036465: push 0x47106de4 */ 3812 RECOMP_ICALL(0x47039020u); /* 0x4703646A: call 0x47039020 */ /* not lifted */ 3813 RECOMP_FLAGS_IN(); 3814 ecx = eax; /* 0x4703646F: mov ecx, eax */ 3815 RECOMP_ICALL(0x4703A340u); /* 0x47036471: call 0x4703a340 */ /* not lifted */ 3816 RECOMP_FLAGS_IN(); 3817 PUSH32(esp, ebx); /* 0x47036476: push ebx */ 3818 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47036477: call dword ptr [0x470ac190] */ 3819 RECOMP_FLAGS_IN(); 3820 edi = POP32_VAL(esp); /* 0x4703647D: pop edi */ 3821 esi = POP32_VAL(esp); /* 0x4703647E: pop esi */ 3822 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3823 eax = eax | 0xFFFFFFFFu; /* 0x4703647F: or eax, 0xffffffff */ 3824 _cf = 0; 3825 _flag_k = FK_TEST; 3826 ebx = POP32_VAL(esp); /* 0x47036482: pop ebx */ 3827 ecx = MEM32(esp + 0x8); /* 0x47036483: mov ecx, dword ptr [esp + 8] */ 3828 MEM32(FS_BASE + (0)) = ecx; /* 0x47036487: mov dword ptr fs:[0], ecx */ 3829 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 3830 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3831 esp = esp + 0x14u; /* 0x4703648E: add esp, 0x14 */ 3832 _flag_k = FK_ADD; 3833 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47036491: ret 4 */ 3834 L_47036494: 3835 ebx = MEM32(esp + 0x24); /* 0x47036494: mov ebx, dword ptr [esp + 0x24] */ 3836 eax = MEM32(edi); /* 0x47036498: mov eax, dword ptr [edi] */ 3837 ecx = ebx + 0x60; /* 0x4703649A: lea ecx, [ebx + 0x60] */ 3838 PUSH32(esp, ecx); /* 0x4703649D: push ecx */ 3839 ecx = edi; /* 0x4703649E: mov ecx, edi */ 3840 RECOMP_ICALL(MEM32(eax + 0x1C)); /* 0x470364A0: call dword ptr [eax + 0x1c] */ 3841 RECOMP_FLAGS_IN(); 3842 /* test eax, eax */ /* 0x470364A3: test eax, eax */ 3843 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3844 _cf = 0; 3845 _flag_k = FK_TEST; 3846 if (TEST_Z(_flag_a, _flag_b)) goto L_47036553; /* 0x470364A5: je 0x47036553 */ 3847 L_470364AB: 3848 eax = MEM32(ebx + 0x58); /* 0x470364AB: mov eax, dword ptr [ebx + 0x58] */ 3849 /* test eax, eax */ /* 0x470364AE: test eax, eax */ 3850 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3851 _cf = 0; 3852 _flag_k = FK_TEST; 3853 if (TEST_LE(_flag_a, _flag_b)) goto L_470364BB; /* 0x470364B0: jle 0x470364bb */ 3854 L_470364B2: 3855 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3856 eax = eax - 1; /* 0x470364B2: dec eax */ 3857 _flag_k = FK_DEC; 3858 MEM32(ebx + 0x58) = eax; /* 0x470364B3: mov dword ptr [ebx + 0x58], eax */ 3859 goto L_4703655B; /* 0x470364B6: jmp 0x4703655b */ 3860 L_470364BB: 3861 eax = MEM32(esi); /* 0x470364BB: mov eax, dword ptr [esi] */ 3862 /* test eax, eax */ /* 0x470364BD: test eax, eax */ 3863 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3864 _cf = 0; 3865 _flag_k = FK_TEST; 3866 if (TEST_Z(_flag_a, _flag_b)) goto L_47036540; /* 0x470364BF: je 0x47036540 */ 3867 L_470364C1: 3868 edx = MEM32(eax + 0x4C); /* 0x470364C1: mov edx, dword ptr [eax + 0x4c] */ 3869 MEM32(esi) = edx; /* 0x470364C4: mov dword ptr [esi], edx */ 3870 MEM32(eax + 0x4C) = 0; /* 0x470364C6: mov dword ptr [eax + 0x4c], 0 */ 3871 edx = MEM32(esi + 0x8); /* 0x470364CD: mov edx, dword ptr [esi + 8] */ 3872 ecx = MEM32(esi); /* 0x470364D0: mov ecx, dword ptr [esi] */ 3873 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 3874 edx = edx - 1; /* 0x470364D2: dec edx */ 3875 _flag_k = FK_DEC; 3876 /* test ecx, ecx */ /* 0x470364D3: test ecx, ecx */ 3877 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3878 _cf = 0; 3879 _flag_k = FK_TEST; 3880 MEM32(esi + 0x8) = edx; /* 0x470364D5: mov dword ptr [esi + 8], edx */ 3881 eax = edx; /* 0x470364D8: mov eax, edx */ 3882 if (TEST_NZ(_flag_a, _flag_b)) goto L_47036540; /* 0x470364DA: jne 0x47036540 */ 3883 L_470364DC: 3884 /* test eax, eax */ /* 0x470364DC: test eax, eax */ 3885 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3886 _cf = 0; 3887 _flag_k = FK_TEST; 3888 if (TEST_Z(_flag_a, _flag_b)) goto L_47036540; /* 0x470364DE: je 0x47036540 */ 3889 L_470364E0: 3890 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470364E0: call dword ptr [0x470ac150] */ 3891 RECOMP_FLAGS_IN(); 3892 ebx = eax; /* 0x470364E6: mov ebx, eax */ 3893 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470364E8: call dword ptr [0x470ac3c8] */ 3894 RECOMP_FLAGS_IN(); 3895 eax = MEM32(eax); /* 0x470364EE: mov eax, dword ptr [eax] */ 3896 /* test eax, eax */ /* 0x470364F0: test eax, eax */ 3897 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3898 _cf = 0; 3899 _flag_k = FK_TEST; 3900 if (TEST_Z(_flag_a, _flag_b)) goto L_470364F6; /* 0x470364F2: je 0x470364f6 */ 3901 L_470364F4: 3902 ebx = eax; /* 0x470364F4: mov ebx, eax */ 3903 L_470364F6: 3904 RECOMP_ICALL(0x47039020u); /* 0x470364F6: call 0x47039020 */ /* not lifted */ 3905 RECOMP_FLAGS_IN(); 3906 edi = eax; /* 0x470364FB: mov edi, eax */ 3907 ecx = edi; /* 0x470364FD: mov ecx, edi */ 3908 RECOMP_ICALL(0x4703B210u); /* 0x470364FF: call 0x4703b210 */ /* not lifted */ 3909 RECOMP_FLAGS_IN(); 3910 PUSH32(esp, eax); /* 0x47036504: push eax */ 3911 ecx = edi; /* 0x47036505: mov ecx, edi */ 3912 RECOMP_ICALL(0x4703B240u); /* 0x47036507: call 0x4703b240 */ /* not lifted */ 3913 RECOMP_FLAGS_IN(); 3914 PUSH32(esp, eax); /* 0x4703650C: push eax */ 3915 ecx = edi; /* 0x4703650D: mov ecx, edi */ 3916 RECOMP_ICALL(0x4703B080u); /* 0x4703650F: call 0x4703b080 */ /* not lifted */ 3917 RECOMP_FLAGS_IN(); 3918 PUSH32(esp, eax); /* 0x47036514: push eax */ 3919 PUSH32(esp, ebx); /* 0x47036515: push ebx */ 3920 PUSH32(esp, 0xFFFFFFFFu); /* 0x47036516: push -1 */ 3921 PUSH32(esp, 0x15Eu); /* 0x47036518: push 0x15e */ 3922 PUSH32(esp, 0x47106DE4u); /* 0x4703651D: push 0x47106de4 */ 3923 ecx = edi; /* 0x47036522: mov ecx, edi */ 3924 RECOMP_ICALL(0x4703A340u); /* 0x47036524: call 0x4703a340 */ /* not lifted */ 3925 RECOMP_FLAGS_IN(); 3926 eax = MEM32(esi + 0x8); /* 0x47036529: mov eax, dword ptr [esi + 8] */ 3927 PUSH32(esp, eax); /* 0x4703652C: push eax */ 3928 PUSH32(esp, 0x47106F68u); /* 0x4703652D: push 0x47106f68 */ 3929 PUSH32(esp, 0x80u); /* 0x47036532: push 0x80 */ 3930 PUSH32(esp, edi); /* 0x47036537: push edi */ 3931 RECOMP_ICALL(0x47039830u); /* 0x47036538: call 0x47039830 */ /* not lifted */ 3932 RECOMP_FLAGS_IN(); 3933 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3934 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3935 esp = esp + 0x10u; /* 0x4703653D: add esp, 0x10 */ 3936 _flag_k = FK_ADD; 3937 L_47036540: 3938 eax = MEM32(esi); /* 0x47036540: mov eax, dword ptr [esi] */ 3939 /* test eax, eax */ /* 0x47036542: test eax, eax */ 3940 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3941 _cf = 0; 3942 _flag_k = FK_TEST; 3943 if (TEST_Z(_flag_a, _flag_b)) goto L_4703655B; /* 0x47036544: je 0x4703655b */ 3944 L_47036546: 3945 esi = eax; /* 0x47036546: mov esi, eax */ 3946 ecx = MEM32(esi + 0x54); /* 0x47036548: mov ecx, dword ptr [esi + 0x54] */ 3947 edx = MEM32(ecx); /* 0x4703654B: mov edx, dword ptr [ecx] */ 3948 PUSH32(esp, eax); /* 0x4703654D: push eax */ 3949 RECOMP_ICALL(MEM32(edx + 0x3C)); /* 0x4703654E: call dword ptr [edx + 0x3c] */ 3950 RECOMP_FLAGS_IN(); 3951 goto L_4703655B; /* 0x47036551: jmp 0x4703655b */ 3952 L_47036553: 3953 PUSH32(esp, ebx); /* 0x47036553: push ebx */ 3954 ecx = esi; /* 0x47036554: mov ecx, esi */ 3955 RECOMP_ICALL(0x47035B00u); /* 0x47036556: call 0x47035b00 */ /* not lifted */ 3956 RECOMP_FLAGS_IN(); 3957 L_4703655B: 3958 eax = MEM32(esp + 0xC); /* 0x4703655B: mov eax, dword ptr [esp + 0xc] */ 3959 PUSH32(esp, eax); /* 0x4703655F: push eax */ 3960 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47036560: call dword ptr [0x470ac190] */ 3961 RECOMP_FLAGS_IN(); 3962 ecx = MEM32(esp + 0x14); /* 0x47036566: mov ecx, dword ptr [esp + 0x14] */ 3963 edi = POP32_VAL(esp); /* 0x4703656A: pop edi */ 3964 esi = POP32_VAL(esp); /* 0x4703656B: pop esi */ 3965 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3966 eax = 0; /* 0x4703656C: xor eax, eax */ 3967 _cf = 0; 3968 _flag_k = FK_TEST; 3969 ebx = POP32_VAL(esp); /* 0x4703656E: pop ebx */ 3970 MEM32(FS_BASE + (0)) = ecx; /* 0x4703656F: mov dword ptr fs:[0], ecx */ 3971 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 3972 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3973 esp = esp + 0x14u; /* 0x47036576: add esp, 0x14 */ 3974 _flag_k = FK_ADD; 3975 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47036579: ret 4 */ 3976 RECOMP_REGS_OUT(); 3977 } 3978 3979 void sub_4703655B(void) { 3980 int _fpu_cmp = 0; 3981 uint32_t _cf = 0; 3982 int _df = 1; 3983 uint32_t _flag_k = FK_NONE; 3984 uint32_t _flag_a = 0, _flag_b = 0; 3985 uint32_t _itail_tgt = 0; 3986 RECOMP_REGS_LOCALS 3987 RECOMP_ENTER(0x4703655Bu); 3988 3989 L_4703655B: 3990 eax = MEM32(esp + 0xC); /* 0x4703655B: mov eax, dword ptr [esp + 0xc] */ 3991 PUSH32(esp, eax); /* 0x4703655F: push eax */ 3992 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47036560: call dword ptr [0x470ac190] */ 3993 RECOMP_FLAGS_IN(); 3994 ecx = MEM32(esp + 0x14); /* 0x47036566: mov ecx, dword ptr [esp + 0x14] */ 3995 edi = POP32_VAL(esp); /* 0x4703656A: pop edi */ 3996 esi = POP32_VAL(esp); /* 0x4703656B: pop esi */ 3997 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3998 eax = 0; /* 0x4703656C: xor eax, eax */ 3999 _cf = 0; 4000 _flag_k = FK_TEST; 4001 ebx = POP32_VAL(esp); /* 0x4703656E: pop ebx */ 4002 MEM32(FS_BASE + (0)) = ecx; /* 0x4703656F: mov dword ptr fs:[0], ecx */ 4003 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 4004 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4005 esp = esp + 0x14u; /* 0x47036576: add esp, 0x14 */ 4006 _flag_k = FK_ADD; 4007 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47036579: ret 4 */ 4008 RECOMP_REGS_OUT(); 4009 } 4010 4011 void sub_47036580(void) { 4012 int _fpu_cmp = 0; 4013 uint32_t _cf = 0; 4014 int _df = 1; 4015 uint32_t _flag_k = FK_NONE; 4016 uint32_t _flag_a = 0, _flag_b = 0; 4017 uint32_t _itail_tgt = 0; 4018 RECOMP_REGS_LOCALS 4019 RECOMP_ENTER(0x47036580u); 4020 4021 L_47036580: 4022 PUSH32(esp, ecx); /* 0x47036580: push ecx */ 4023 PUSH32(esp, esi); /* 0x47036581: push esi */ 4024 PUSH32(esp, edi); /* 0x47036582: push edi */ 4025 edi = ecx; /* 0x47036583: mov edi, ecx */ 4026 eax = MEM32(edi + 0xC); /* 0x47036585: mov eax, dword ptr [edi + 0xc] */ 4027 /* test eax, eax */ /* 0x47036588: test eax, eax */ 4028 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4029 _cf = 0; 4030 _flag_k = FK_TEST; 4031 if (TEST_Z(_flag_a, _flag_b)) goto L_470365F8; /* 0x4703658A: je 0x470365f8 */ 4032 L_4703658C: 4033 ecx = MEM32(esp + 0x10); /* 0x4703658C: mov ecx, dword ptr [esp + 0x10] */ 4034 MEM32(esp + 0x8) = eax; /* 0x47036590: mov dword ptr [esp + 8], eax */ 4035 eax = esp + 0x8; /* 0x47036594: lea eax, [esp + 8] */ 4036 PUSH32(esp, eax); /* 0x47036598: push eax */ 4037 RECOMP_ICALL(0x47038BD0u); /* 0x47036599: call 0x47038bd0 */ /* not lifted */ 4038 RECOMP_FLAGS_IN(); 4039 esi = MEM32(esp + 0x14); /* 0x4703659E: mov esi, dword ptr [esp + 0x14] */ 4040 /* test esi, esi */ /* 0x470365A2: test esi, esi */ 4041 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4042 _cf = 0; 4043 _flag_k = FK_TEST; 4044 if (TEST_Z(_flag_a, _flag_b)) goto L_470365F8; /* 0x470365A4: je 0x470365f8 */ 4045 L_470365A6: 4046 edi = MEM32(edi + 0xC); /* 0x470365A6: mov edi, dword ptr [edi + 0xc] */ 4047 PUSH32(esp, ebx); /* 0x470365A9: push ebx */ 4048 eax = edi + 0x60; /* 0x470365AA: lea eax, [edi + 0x60] */ 4049 L_470365AD: 4050 SET_LO8(edx, MEM8(eax)); /* 0x470365AD: mov dl, byte ptr [eax] */ 4051 SET_LO8(ebx, MEM8(esi)); /* 0x470365AF: mov bl, byte ptr [esi] */ 4052 SET_LO8(ecx, LO8(edx)); /* 0x470365B1: mov cl, dl */ 4053 /* cmp LO8(edx), LO8(ebx) */ /* 0x470365B3: cmp dl, bl */ 4054 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4055 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4056 _flag_k = FK_NARROW(FK_CMP, 24); 4057 if (CMP_NE(_flag_a, _flag_b)) goto L_470365E3; /* 0x470365B5: jne 0x470365e3 */ 4058 L_470365B7: 4059 /* test LO8(ecx), LO8(ecx) */ /* 0x470365B7: test cl, cl */ 4060 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 4061 _cf = 0; 4062 _flag_k = FK_NARROW(FK_TEST, 24); 4063 if (TEST_Z(_flag_a, _flag_b)) goto L_470365D1; /* 0x470365B9: je 0x470365d1 */ 4064 L_470365BB: 4065 SET_LO8(edx, MEM8(eax + 0x1)); /* 0x470365BB: mov dl, byte ptr [eax + 1] */ 4066 SET_LO8(ebx, MEM8(esi + 0x1)); /* 0x470365BE: mov bl, byte ptr [esi + 1] */ 4067 SET_LO8(ecx, LO8(edx)); /* 0x470365C1: mov cl, dl */ 4068 /* cmp LO8(edx), LO8(ebx) */ /* 0x470365C3: cmp dl, bl */ 4069 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4070 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4071 _flag_k = FK_NARROW(FK_CMP, 24); 4072 if (CMP_NE(_flag_a, _flag_b)) goto L_470365E3; /* 0x470365C5: jne 0x470365e3 */ 4073 L_470365C7: 4074 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 4075 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4076 eax = eax + 2; /* 0x470365C7: add eax, 2 */ 4077 _flag_k = FK_ADD; 4078 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2); 4079 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4080 esi = esi + 2; /* 0x470365CA: add esi, 2 */ 4081 _flag_k = FK_ADD; 4082 /* test LO8(ecx), LO8(ecx) */ /* 0x470365CD: test cl, cl */ 4083 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 4084 _cf = 0; 4085 _flag_k = FK_NARROW(FK_TEST, 24); 4086 RECOMP_BACKEDGE(); 4087 if (TEST_NZ(_flag_a, _flag_b)) goto L_470365AD; /* 0x470365CF: jne 0x470365ad */ 4088 L_470365D1: 4089 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4090 eax = 0; /* 0x470365D1: xor eax, eax */ 4091 _cf = 0; 4092 _flag_k = FK_TEST; 4093 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4094 ecx = 0; /* 0x470365D3: xor ecx, ecx */ 4095 _cf = 0; 4096 _flag_k = FK_TEST; 4097 /* test eax, eax */ /* 0x470365D5: test eax, eax */ 4098 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4099 _cf = 0; 4100 _flag_k = FK_TEST; 4101 SET_LO8(ecx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x470365D7: sete cl */ 4102 ebx = POP32_VAL(esp); /* 0x470365DA: pop ebx */ 4103 edi = POP32_VAL(esp); /* 0x470365DB: pop edi */ 4104 esi = POP32_VAL(esp); /* 0x470365DC: pop esi */ 4105 eax = ecx; /* 0x470365DD: mov eax, ecx */ 4106 ecx = POP32_VAL(esp); /* 0x470365DF: pop ecx */ 4107 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470365E0: ret 8 */ 4108 L_470365E3: 4109 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x470365E3: sbb eax, eax */ 4110 eax = _sc ? 0xFFFFFFFFu : 0; 4111 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 4112 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 4113 { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x470365E5: sbb eax, -1 */ 4114 eax = _sa - _sb - _sc; 4115 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 4116 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 4117 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4118 ecx = 0; /* 0x470365E8: xor ecx, ecx */ 4119 _cf = 0; 4120 _flag_k = FK_TEST; 4121 /* test eax, eax */ /* 0x470365EA: test eax, eax */ 4122 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4123 _cf = 0; 4124 _flag_k = FK_TEST; 4125 SET_LO8(ecx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x470365EC: sete cl */ 4126 ebx = POP32_VAL(esp); /* 0x470365EF: pop ebx */ 4127 edi = POP32_VAL(esp); /* 0x470365F0: pop edi */ 4128 esi = POP32_VAL(esp); /* 0x470365F1: pop esi */ 4129 eax = ecx; /* 0x470365F2: mov eax, ecx */ 4130 ecx = POP32_VAL(esp); /* 0x470365F4: pop ecx */ 4131 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470365F5: ret 8 */ 4132 L_470365F8: 4133 edi = POP32_VAL(esp); /* 0x470365F8: pop edi */ 4134 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4135 eax = 0; /* 0x470365F9: xor eax, eax */ 4136 _cf = 0; 4137 _flag_k = FK_TEST; 4138 esi = POP32_VAL(esp); /* 0x470365FB: pop esi */ 4139 ecx = POP32_VAL(esp); /* 0x470365FC: pop ecx */ 4140 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470365FD: ret 8 */ 4141 RECOMP_REGS_OUT(); 4142 } 4143 4144 void sub_47036600(void) { 4145 int _fpu_cmp = 0; 4146 uint32_t _cf = 0; 4147 int _df = 1; 4148 uint32_t _flag_k = FK_NONE; 4149 uint32_t _flag_a = 0, _flag_b = 0; 4150 uint32_t _itail_tgt = 0; 4151 RECOMP_REGS_LOCALS 4152 RECOMP_ENTER(0x47036600u); 4153 4154 L_47036600: 4155 PUSH32(esp, ebx); /* 0x47036600: push ebx */ 4156 PUSH32(esp, ebp); /* 0x47036601: push ebp */ 4157 PUSH32(esp, esi); /* 0x47036602: push esi */ 4158 esi = ecx; /* 0x47036603: mov esi, ecx */ 4159 eax = MEM32(esi + 0xC); /* 0x47036605: mov eax, dword ptr [esi + 0xc] */ 4160 /* test eax, eax */ /* 0x47036608: test eax, eax */ 4161 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4162 _cf = 0; 4163 _flag_k = FK_TEST; 4164 PUSH32(esp, edi); /* 0x4703660A: push edi */ 4165 if (TEST_Z(_flag_a, _flag_b)) goto L_4703666A; /* 0x4703660B: je 0x4703666a */ 4166 L_4703660D: 4167 ebp = MEM32(esp + 0x14); /* 0x4703660D: mov ebp, dword ptr [esp + 0x14] */ 4168 eax = MEM32(esi); /* 0x47036611: mov eax, dword ptr [esi] */ 4169 PUSH32(esp, ebp); /* 0x47036613: push ebp */ 4170 RECOMP_ICALL(MEM32(eax + 0x1C)); /* 0x47036614: call dword ptr [eax + 0x1c] */ 4171 RECOMP_FLAGS_IN(); 4172 /* test eax, eax */ /* 0x47036617: test eax, eax */ 4173 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4174 _cf = 0; 4175 _flag_k = FK_TEST; 4176 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703666A; /* 0x47036619: jne 0x4703666a */ 4177 L_4703661B: 4178 edi = MEM32(esi + 0xC); /* 0x4703661B: mov edi, dword ptr [esi + 0xc] */ 4179 /* test edi, edi */ /* 0x4703661E: test edi, edi */ 4180 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4181 _cf = 0; 4182 _flag_k = FK_TEST; 4183 if (TEST_Z(_flag_a, _flag_b)) goto L_4703666A; /* 0x47036620: je 0x4703666a */ 4184 L_47036622: 4185 edi = MEM32(edi + 0x4C); /* 0x47036622: mov edi, dword ptr [edi + 0x4c] */ 4186 /* test edi, edi */ /* 0x47036625: test edi, edi */ 4187 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4188 _cf = 0; 4189 _flag_k = FK_TEST; 4190 if (TEST_Z(_flag_a, _flag_b)) goto L_4703666A; /* 0x47036627: je 0x4703666a */ 4191 L_47036629: 4192 esi = ebp; /* 0x47036629: mov esi, ebp */ 4193 eax = edi + 0x60; /* 0x4703662B: lea eax, [edi + 0x60] */ 4194 L_4703662E: 4195 SET_LO8(edx, MEM8(eax)); /* 0x4703662E: mov dl, byte ptr [eax] */ 4196 SET_LO8(ebx, MEM8(esi)); /* 0x47036630: mov bl, byte ptr [esi] */ 4197 SET_LO8(ecx, LO8(edx)); /* 0x47036632: mov cl, dl */ 4198 /* cmp LO8(edx), LO8(ebx) */ /* 0x47036634: cmp dl, bl */ 4199 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4200 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4201 _flag_k = FK_NARROW(FK_CMP, 24); 4202 if (CMP_NE(_flag_a, _flag_b)) goto L_47036656; /* 0x47036636: jne 0x47036656 */ 4203 L_47036638: 4204 /* test LO8(ecx), LO8(ecx) */ /* 0x47036638: test cl, cl */ 4205 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 4206 _cf = 0; 4207 _flag_k = FK_NARROW(FK_TEST, 24); 4208 if (TEST_Z(_flag_a, _flag_b)) goto L_47036652; /* 0x4703663A: je 0x47036652 */ 4209 L_4703663C: 4210 SET_LO8(edx, MEM8(eax + 0x1)); /* 0x4703663C: mov dl, byte ptr [eax + 1] */ 4211 SET_LO8(ebx, MEM8(esi + 0x1)); /* 0x4703663F: mov bl, byte ptr [esi + 1] */ 4212 SET_LO8(ecx, LO8(edx)); /* 0x47036642: mov cl, dl */ 4213 /* cmp LO8(edx), LO8(ebx) */ /* 0x47036644: cmp dl, bl */ 4214 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4215 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4216 _flag_k = FK_NARROW(FK_CMP, 24); 4217 if (CMP_NE(_flag_a, _flag_b)) goto L_47036656; /* 0x47036646: jne 0x47036656 */ 4218 L_47036648: 4219 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 4220 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4221 eax = eax + 2; /* 0x47036648: add eax, 2 */ 4222 _flag_k = FK_ADD; 4223 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2); 4224 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4225 esi = esi + 2; /* 0x4703664B: add esi, 2 */ 4226 _flag_k = FK_ADD; 4227 /* test LO8(ecx), LO8(ecx) */ /* 0x4703664E: test cl, cl */ 4228 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 4229 _cf = 0; 4230 _flag_k = FK_NARROW(FK_TEST, 24); 4231 RECOMP_BACKEDGE(); 4232 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703662E; /* 0x47036650: jne 0x4703662e */ 4233 L_47036652: 4234 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4235 eax = 0; /* 0x47036652: xor eax, eax */ 4236 _cf = 0; 4237 _flag_k = FK_TEST; 4238 goto L_4703665B; /* 0x47036654: jmp 0x4703665b */ 4239 L_47036656: 4240 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x47036656: sbb eax, eax */ 4241 eax = _sc ? 0xFFFFFFFFu : 0; 4242 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 4243 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 4244 { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x47036658: sbb eax, -1 */ 4245 eax = _sa - _sb - _sc; 4246 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 4247 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 4248 L_4703665B: 4249 /* test eax, eax */ /* 0x4703665B: test eax, eax */ 4250 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4251 _cf = 0; 4252 _flag_k = FK_TEST; 4253 if (TEST_Z(_flag_a, _flag_b)) goto L_47036673; /* 0x4703665D: je 0x47036673 */ 4254 L_4703665F: 4255 /* test edi, edi */ /* 0x4703665F: test edi, edi */ 4256 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4257 _cf = 0; 4258 _flag_k = FK_TEST; 4259 if (TEST_Z(_flag_a, _flag_b)) goto L_4703666A; /* 0x47036661: je 0x4703666a */ 4260 L_47036663: 4261 edi = MEM32(edi + 0x4C); /* 0x47036663: mov edi, dword ptr [edi + 0x4c] */ 4262 /* test edi, edi */ /* 0x47036666: test edi, edi */ 4263 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4264 _cf = 0; 4265 _flag_k = FK_TEST; 4266 RECOMP_BACKEDGE(); 4267 if (TEST_NZ(_flag_a, _flag_b)) goto L_47036629; /* 0x47036668: jne 0x47036629 */ 4268 L_4703666A: 4269 edi = POP32_VAL(esp); /* 0x4703666A: pop edi */ 4270 esi = POP32_VAL(esp); /* 0x4703666B: pop esi */ 4271 ebp = POP32_VAL(esp); /* 0x4703666C: pop ebp */ 4272 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4273 eax = 0; /* 0x4703666D: xor eax, eax */ 4274 _cf = 0; 4275 _flag_k = FK_TEST; 4276 ebx = POP32_VAL(esp); /* 0x4703666F: pop ebx */ 4277 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47036670: ret 4 */ 4278 L_47036673: 4279 edi = POP32_VAL(esp); /* 0x47036673: pop edi */ 4280 esi = POP32_VAL(esp); /* 0x47036674: pop esi */ 4281 ebp = POP32_VAL(esp); /* 0x47036675: pop ebp */ 4282 eax = 1; /* 0x47036676: mov eax, 1 */ 4283 ebx = POP32_VAL(esp); /* 0x4703667B: pop ebx */ 4284 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703667C: ret 4 */ 4285 RECOMP_REGS_OUT(); 4286 } 4287 4288 void sub_47036680(void) { 4289 int _fpu_cmp = 0; 4290 uint32_t _cf = 0; 4291 int _df = 1; 4292 uint32_t _flag_k = FK_NONE; 4293 uint32_t _flag_a = 0, _flag_b = 0; 4294 uint32_t _itail_tgt = 0; 4295 RECOMP_REGS_LOCALS 4296 RECOMP_ENTER(0x47036680u); 4297 4298 L_47036680: 4299 eax = MEM32(ecx + 0xC); /* 0x47036680: mov eax, dword ptr [ecx + 0xc] */ 4300 /* test eax, eax */ /* 0x47036683: test eax, eax */ 4301 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4302 _cf = 0; 4303 _flag_k = FK_TEST; 4304 if (TEST_Z(_flag_a, _flag_b)) goto L_470366CD; /* 0x47036685: je 0x470366cd */ 4305 L_47036687: 4306 PUSH32(esp, ebx); /* 0x47036687: push ebx */ 4307 ecx = eax; /* 0x47036688: mov ecx, eax */ 4308 PUSH32(esp, esi); /* 0x4703668A: push esi */ 4309 esi = MEM32(esp + 0xC); /* 0x4703668B: mov esi, dword ptr [esp + 0xc] */ 4310 eax = ecx + 0x60; /* 0x4703668F: lea eax, [ecx + 0x60] */ 4311 L_47036692: 4312 SET_LO8(edx, MEM8(eax)); /* 0x47036692: mov dl, byte ptr [eax] */ 4313 SET_LO8(ebx, MEM8(esi)); /* 0x47036694: mov bl, byte ptr [esi] */ 4314 SET_LO8(ecx, LO8(edx)); /* 0x47036696: mov cl, dl */ 4315 /* cmp LO8(edx), LO8(ebx) */ /* 0x47036698: cmp dl, bl */ 4316 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4317 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4318 _flag_k = FK_NARROW(FK_CMP, 24); 4319 if (CMP_NE(_flag_a, _flag_b)) goto L_470366BA; /* 0x4703669A: jne 0x470366ba */ 4320 L_4703669C: 4321 /* test LO8(ecx), LO8(ecx) */ /* 0x4703669C: test cl, cl */ 4322 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 4323 _cf = 0; 4324 _flag_k = FK_NARROW(FK_TEST, 24); 4325 if (TEST_Z(_flag_a, _flag_b)) goto L_470366B6; /* 0x4703669E: je 0x470366b6 */ 4326 L_470366A0: 4327 SET_LO8(edx, MEM8(eax + 0x1)); /* 0x470366A0: mov dl, byte ptr [eax + 1] */ 4328 SET_LO8(ebx, MEM8(esi + 0x1)); /* 0x470366A3: mov bl, byte ptr [esi + 1] */ 4329 SET_LO8(ecx, LO8(edx)); /* 0x470366A6: mov cl, dl */ 4330 /* cmp LO8(edx), LO8(ebx) */ /* 0x470366A8: cmp dl, bl */ 4331 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4332 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4333 _flag_k = FK_NARROW(FK_CMP, 24); 4334 if (CMP_NE(_flag_a, _flag_b)) goto L_470366BA; /* 0x470366AA: jne 0x470366ba */ 4335 L_470366AC: 4336 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 4337 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4338 eax = eax + 2; /* 0x470366AC: add eax, 2 */ 4339 _flag_k = FK_ADD; 4340 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2); 4341 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4342 esi = esi + 2; /* 0x470366AF: add esi, 2 */ 4343 _flag_k = FK_ADD; 4344 /* test LO8(ecx), LO8(ecx) */ /* 0x470366B2: test cl, cl */ 4345 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 4346 _cf = 0; 4347 _flag_k = FK_NARROW(FK_TEST, 24); 4348 RECOMP_BACKEDGE(); 4349 if (TEST_NZ(_flag_a, _flag_b)) goto L_47036692; /* 0x470366B4: jne 0x47036692 */ 4350 L_470366B6: 4351 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4352 eax = 0; /* 0x470366B6: xor eax, eax */ 4353 _cf = 0; 4354 _flag_k = FK_TEST; 4355 goto L_470366BF; /* 0x470366B8: jmp 0x470366bf */ 4356 L_470366BA: 4357 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x470366BA: sbb eax, eax */ 4358 eax = _sc ? 0xFFFFFFFFu : 0; 4359 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 4360 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 4361 { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x470366BC: sbb eax, -1 */ 4362 eax = _sa - _sb - _sc; 4363 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 4364 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 4365 L_470366BF: 4366 /* test eax, eax */ /* 0x470366BF: test eax, eax */ 4367 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4368 _cf = 0; 4369 _flag_k = FK_TEST; 4370 esi = POP32_VAL(esp); /* 0x470366C1: pop esi */ 4371 ebx = POP32_VAL(esp); /* 0x470366C2: pop ebx */ 4372 if (TEST_NZ(_flag_a, _flag_b)) goto L_470366CD; /* 0x470366C3: jne 0x470366cd */ 4373 L_470366C5: 4374 eax = 1; /* 0x470366C5: mov eax, 1 */ 4375 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470366CA: ret 4 */ 4376 L_470366CD: 4377 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4378 eax = 0; /* 0x470366CD: xor eax, eax */ 4379 _cf = 0; 4380 _flag_k = FK_TEST; 4381 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470366CF: ret 4 */ 4382 RECOMP_REGS_OUT(); 4383 } 4384 4385 void sub_470366E0(void) { 4386 int _fpu_cmp = 0; 4387 uint32_t _cf = 0; 4388 int _df = 1; 4389 uint32_t _flag_k = FK_NONE; 4390 uint32_t _flag_a = 0, _flag_b = 0; 4391 uint32_t _itail_tgt = 0; 4392 RECOMP_REGS_LOCALS 4393 RECOMP_ENTER(0x470366E0u); 4394 4395 L_470366E0: 4396 PUSH32(esp, ecx); /* 0x470366E0: push ecx */ 4397 PUSH32(esp, ebx); /* 0x470366E1: push ebx */ 4398 PUSH32(esp, ebp); /* 0x470366E2: push ebp */ 4399 PUSH32(esp, esi); /* 0x470366E3: push esi */ 4400 PUSH32(esp, edi); /* 0x470366E4: push edi */ 4401 edi = MEM32(0x470AC150); /* 0x470366E5: mov edi, dword ptr [0x470ac150] */ 4402 ebp = ecx; /* 0x470366EB: mov ebp, ecx */ 4403 RECOMP_ICALL(edi); /* 0x470366ED: call edi */ 4404 RECOMP_FLAGS_IN(); 4405 ebx = MEM32(0x470AC3C8); /* 0x470366EF: mov ebx, dword ptr [0x470ac3c8] */ 4406 esi = eax; /* 0x470366F5: mov esi, eax */ 4407 RECOMP_ICALL(ebx); /* 0x470366F7: call ebx */ 4408 RECOMP_FLAGS_IN(); 4409 eax = MEM32(eax); /* 0x470366F9: mov eax, dword ptr [eax] */ 4410 /* test eax, eax */ /* 0x470366FB: test eax, eax */ 4411 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4412 _cf = 0; 4413 _flag_k = FK_TEST; 4414 MEM32(esp + 0x10) = esi; /* 0x470366FD: mov dword ptr [esp + 0x10], esi */ 4415 if (TEST_Z(_flag_a, _flag_b)) goto L_47036707; /* 0x47036701: je 0x47036707 */ 4416 L_47036703: 4417 MEM32(esp + 0x10) = eax; /* 0x47036703: mov dword ptr [esp + 0x10], eax */ 4418 L_47036707: 4419 RECOMP_ICALL(0x47039020u); /* 0x47036707: call 0x47039020 */ /* not lifted */ 4420 RECOMP_FLAGS_IN(); 4421 esi = eax; /* 0x4703670C: mov esi, eax */ 4422 ecx = esi; /* 0x4703670E: mov ecx, esi */ 4423 RECOMP_ICALL(0x4703B210u); /* 0x47036710: call 0x4703b210 */ /* not lifted */ 4424 RECOMP_FLAGS_IN(); 4425 PUSH32(esp, eax); /* 0x47036715: push eax */ 4426 ecx = esi; /* 0x47036716: mov ecx, esi */ 4427 RECOMP_ICALL(0x4703B240u); /* 0x47036718: call 0x4703b240 */ /* not lifted */ 4428 RECOMP_FLAGS_IN(); 4429 PUSH32(esp, eax); /* 0x4703671D: push eax */ 4430 ecx = esi; /* 0x4703671E: mov ecx, esi */ 4431 RECOMP_ICALL(0x4703B080u); /* 0x47036720: call 0x4703b080 */ /* not lifted */ 4432 RECOMP_FLAGS_IN(); 4433 PUSH32(esp, eax); /* 0x47036725: push eax */ 4434 eax = MEM32(esp + 0x1C); /* 0x47036726: mov eax, dword ptr [esp + 0x1c] */ 4435 PUSH32(esp, eax); /* 0x4703672A: push eax */ 4436 PUSH32(esp, 0); /* 0x4703672B: push 0 */ 4437 PUSH32(esp, 0x290u); /* 0x4703672D: push 0x290 */ 4438 PUSH32(esp, 0x47106DE4u); /* 0x47036732: push 0x47106de4 */ 4439 ecx = esi; /* 0x47036737: mov ecx, esi */ 4440 RECOMP_ICALL(0x4703A340u); /* 0x47036739: call 0x4703a340 */ /* not lifted */ 4441 RECOMP_FLAGS_IN(); 4442 PUSH32(esp, ebp); /* 0x4703673E: push ebp */ 4443 PUSH32(esp, 0x471052CCu); /* 0x4703673F: push 0x471052cc */ 4444 PUSH32(esp, 4); /* 0x47036744: push 4 */ 4445 PUSH32(esp, esi); /* 0x47036746: push esi */ 4446 RECOMP_ICALL(0x47039830u); /* 0x47036747: call 0x47039830 */ /* not lifted */ 4447 RECOMP_FLAGS_IN(); 4448 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4449 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4450 esp = esp + 0x10u; /* 0x4703674C: add esp, 0x10 */ 4451 _flag_k = FK_ADD; 4452 RECOMP_ICALL(edi); /* 0x4703674F: call edi */ 4453 RECOMP_FLAGS_IN(); 4454 esi = eax; /* 0x47036751: mov esi, eax */ 4455 RECOMP_ICALL(ebx); /* 0x47036753: call ebx */ 4456 RECOMP_FLAGS_IN(); 4457 eax = MEM32(eax); /* 0x47036755: mov eax, dword ptr [eax] */ 4458 /* test eax, eax */ /* 0x47036757: test eax, eax */ 4459 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4460 _cf = 0; 4461 _flag_k = FK_TEST; 4462 MEM32(esp + 0x10) = esi; /* 0x47036759: mov dword ptr [esp + 0x10], esi */ 4463 if (TEST_Z(_flag_a, _flag_b)) goto L_47036763; /* 0x4703675D: je 0x47036763 */ 4464 L_4703675F: 4465 MEM32(esp + 0x10) = eax; /* 0x4703675F: mov dword ptr [esp + 0x10], eax */ 4466 L_47036763: 4467 RECOMP_ICALL(0x47039020u); /* 0x47036763: call 0x47039020 */ /* not lifted */ 4468 RECOMP_FLAGS_IN(); 4469 esi = eax; /* 0x47036768: mov esi, eax */ 4470 ecx = esi; /* 0x4703676A: mov ecx, esi */ 4471 RECOMP_ICALL(0x4703B210u); /* 0x4703676C: call 0x4703b210 */ /* not lifted */ 4472 RECOMP_FLAGS_IN(); 4473 PUSH32(esp, eax); /* 0x47036771: push eax */ 4474 ecx = esi; /* 0x47036772: mov ecx, esi */ 4475 RECOMP_ICALL(0x4703B240u); /* 0x47036774: call 0x4703b240 */ /* not lifted */ 4476 RECOMP_FLAGS_IN(); 4477 PUSH32(esp, eax); /* 0x47036779: push eax */ 4478 ecx = esi; /* 0x4703677A: mov ecx, esi */ 4479 RECOMP_ICALL(0x4703B080u); /* 0x4703677C: call 0x4703b080 */ /* not lifted */ 4480 RECOMP_FLAGS_IN(); 4481 ecx = MEM32(esp + 0x18); /* 0x47036781: mov ecx, dword ptr [esp + 0x18] */ 4482 PUSH32(esp, eax); /* 0x47036785: push eax */ 4483 PUSH32(esp, ecx); /* 0x47036786: push ecx */ 4484 PUSH32(esp, 0); /* 0x47036787: push 0 */ 4485 PUSH32(esp, 0x292u); /* 0x47036789: push 0x292 */ 4486 PUSH32(esp, 0x47106DE4u); /* 0x4703678E: push 0x47106de4 */ 4487 ecx = esi; /* 0x47036793: mov ecx, esi */ 4488 RECOMP_ICALL(0x4703A340u); /* 0x47036795: call 0x4703a340 */ /* not lifted */ 4489 RECOMP_FLAGS_IN(); 4490 edx = MEM32(ebp + 0x40); /* 0x4703679A: mov edx, dword ptr [ebp + 0x40] */ 4491 PUSH32(esp, edx); /* 0x4703679D: push edx */ 4492 PUSH32(esp, 0x47106FD8u); /* 0x4703679E: push 0x47106fd8 */ 4493 PUSH32(esp, 4); /* 0x470367A3: push 4 */ 4494 PUSH32(esp, esi); /* 0x470367A5: push esi */ 4495 RECOMP_ICALL(0x47039830u); /* 0x470367A6: call 0x47039830 */ /* not lifted */ 4496 RECOMP_FLAGS_IN(); 4497 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4498 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4499 esp = esp + 0x10u; /* 0x470367AB: add esp, 0x10 */ 4500 _flag_k = FK_ADD; 4501 RECOMP_ICALL(edi); /* 0x470367AE: call edi */ 4502 RECOMP_FLAGS_IN(); 4503 esi = eax; /* 0x470367B0: mov esi, eax */ 4504 RECOMP_ICALL(ebx); /* 0x470367B2: call ebx */ 4505 RECOMP_FLAGS_IN(); 4506 eax = MEM32(eax); /* 0x470367B4: mov eax, dword ptr [eax] */ 4507 /* test eax, eax */ /* 0x470367B6: test eax, eax */ 4508 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4509 _cf = 0; 4510 _flag_k = FK_TEST; 4511 MEM32(esp + 0x10) = esi; /* 0x470367B8: mov dword ptr [esp + 0x10], esi */ 4512 if (TEST_Z(_flag_a, _flag_b)) goto L_470367C2; /* 0x470367BC: je 0x470367c2 */ 4513 L_470367BE: 4514 MEM32(esp + 0x10) = eax; /* 0x470367BE: mov dword ptr [esp + 0x10], eax */ 4515 L_470367C2: 4516 RECOMP_ICALL(0x47039020u); /* 0x470367C2: call 0x47039020 */ /* not lifted */ 4517 RECOMP_FLAGS_IN(); 4518 esi = eax; /* 0x470367C7: mov esi, eax */ 4519 ecx = esi; /* 0x470367C9: mov ecx, esi */ 4520 RECOMP_ICALL(0x4703B210u); /* 0x470367CB: call 0x4703b210 */ /* not lifted */ 4521 RECOMP_FLAGS_IN(); 4522 PUSH32(esp, eax); /* 0x470367D0: push eax */ 4523 ecx = esi; /* 0x470367D1: mov ecx, esi */ 4524 RECOMP_ICALL(0x4703B240u); /* 0x470367D3: call 0x4703b240 */ /* not lifted */ 4525 RECOMP_FLAGS_IN(); 4526 PUSH32(esp, eax); /* 0x470367D8: push eax */ 4527 ecx = esi; /* 0x470367D9: mov ecx, esi */ 4528 RECOMP_ICALL(0x4703B080u); /* 0x470367DB: call 0x4703b080 */ /* not lifted */ 4529 RECOMP_FLAGS_IN(); 4530 PUSH32(esp, eax); /* 0x470367E0: push eax */ 4531 eax = MEM32(esp + 0x1C); /* 0x470367E1: mov eax, dword ptr [esp + 0x1c] */ 4532 PUSH32(esp, eax); /* 0x470367E5: push eax */ 4533 PUSH32(esp, 0); /* 0x470367E6: push 0 */ 4534 PUSH32(esp, 0x293u); /* 0x470367E8: push 0x293 */ 4535 PUSH32(esp, 0x47106DE4u); /* 0x470367ED: push 0x47106de4 */ 4536 ecx = esi; /* 0x470367F2: mov ecx, esi */ 4537 RECOMP_ICALL(0x4703A340u); /* 0x470367F4: call 0x4703a340 */ /* not lifted */ 4538 RECOMP_FLAGS_IN(); 4539 PUSH32(esp, 0x47106F9Cu); /* 0x470367F9: push 0x47106f9c */ 4540 PUSH32(esp, 4); /* 0x470367FE: push 4 */ 4541 PUSH32(esp, esi); /* 0x47036800: push esi */ 4542 RECOMP_ICALL(0x47039830u); /* 0x47036801: call 0x47039830 */ /* not lifted */ 4543 RECOMP_FLAGS_IN(); 4544 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4545 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4546 esp = esp + 0xCu; /* 0x47036806: add esp, 0xc */ 4547 _flag_k = FK_ADD; 4548 ecx = ebp + 0x44; /* 0x47036809: lea ecx, [ebp + 0x44] */ 4549 RECOMP_ICALL(0x47087D10u); /* 0x4703680C: call 0x47087d10 */ /* not lifted */ 4550 RECOMP_FLAGS_IN(); 4551 RECOMP_ICALL(edi); /* 0x47036811: call edi */ 4552 RECOMP_FLAGS_IN(); 4553 esi = eax; /* 0x47036813: mov esi, eax */ 4554 RECOMP_ICALL(ebx); /* 0x47036815: call ebx */ 4555 RECOMP_FLAGS_IN(); 4556 eax = MEM32(eax); /* 0x47036817: mov eax, dword ptr [eax] */ 4557 /* test eax, eax */ /* 0x47036819: test eax, eax */ 4558 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4559 _cf = 0; 4560 _flag_k = FK_TEST; 4561 MEM32(esp + 0x10) = esi; /* 0x4703681B: mov dword ptr [esp + 0x10], esi */ 4562 if (TEST_Z(_flag_a, _flag_b)) goto L_47036825; /* 0x4703681F: je 0x47036825 */ 4563 L_47036821: 4564 MEM32(esp + 0x10) = eax; /* 0x47036821: mov dword ptr [esp + 0x10], eax */ 4565 L_47036825: 4566 RECOMP_ICALL(0x47039020u); /* 0x47036825: call 0x47039020 */ /* not lifted */ 4567 RECOMP_FLAGS_IN(); 4568 esi = eax; /* 0x4703682A: mov esi, eax */ 4569 ecx = esi; /* 0x4703682C: mov ecx, esi */ 4570 RECOMP_ICALL(0x4703B210u); /* 0x4703682E: call 0x4703b210 */ /* not lifted */ 4571 RECOMP_FLAGS_IN(); 4572 PUSH32(esp, eax); /* 0x47036833: push eax */ 4573 ecx = esi; /* 0x47036834: mov ecx, esi */ 4574 RECOMP_ICALL(0x4703B240u); /* 0x47036836: call 0x4703b240 */ /* not lifted */ 4575 RECOMP_FLAGS_IN(); 4576 PUSH32(esp, eax); /* 0x4703683B: push eax */ 4577 ecx = esi; /* 0x4703683C: mov ecx, esi */ 4578 RECOMP_ICALL(0x4703B080u); /* 0x4703683E: call 0x4703b080 */ /* not lifted */ 4579 RECOMP_FLAGS_IN(); 4580 ecx = MEM32(esp + 0x18); /* 0x47036843: mov ecx, dword ptr [esp + 0x18] */ 4581 PUSH32(esp, eax); /* 0x47036847: push eax */ 4582 PUSH32(esp, ecx); /* 0x47036848: push ecx */ 4583 PUSH32(esp, 0); /* 0x47036849: push 0 */ 4584 PUSH32(esp, 0x295u); /* 0x4703684B: push 0x295 */ 4585 PUSH32(esp, 0x47106DE4u); /* 0x47036850: push 0x47106de4 */ 4586 ecx = esi; /* 0x47036855: mov ecx, esi */ 4587 RECOMP_ICALL(0x4703A340u); /* 0x47036857: call 0x4703a340 */ /* not lifted */ 4588 RECOMP_FLAGS_IN(); 4589 PUSH32(esp, 0x47106EA4u); /* 0x4703685C: push 0x47106ea4 */ 4590 PUSH32(esp, 4); /* 0x47036861: push 4 */ 4591 PUSH32(esp, esi); /* 0x47036863: push esi */ 4592 RECOMP_ICALL(0x47039830u); /* 0x47036864: call 0x47039830 */ /* not lifted */ 4593 RECOMP_FLAGS_IN(); 4594 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4595 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4596 esp = esp + 0xCu; /* 0x47036869: add esp, 0xc */ 4597 _flag_k = FK_ADD; 4598 ecx = ebp; /* 0x4703686C: mov ecx, ebp */ 4599 RECOMP_ICALL(0x47034A90u); /* 0x4703686E: call 0x47034a90 */ /* not lifted */ 4600 RECOMP_FLAGS_IN(); 4601 RECOMP_ICALL(edi); /* 0x47036873: call edi */ 4602 RECOMP_FLAGS_IN(); 4603 ebp = eax; /* 0x47036875: mov ebp, eax */ 4604 RECOMP_ICALL(ebx); /* 0x47036877: call ebx */ 4605 RECOMP_FLAGS_IN(); 4606 eax = MEM32(eax); /* 0x47036879: mov eax, dword ptr [eax] */ 4607 /* test eax, eax */ /* 0x4703687B: test eax, eax */ 4608 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4609 _cf = 0; 4610 _flag_k = FK_TEST; 4611 if (TEST_Z(_flag_a, _flag_b)) goto L_47036881; /* 0x4703687D: je 0x47036881 */ 4612 L_4703687F: 4613 ebp = eax; /* 0x4703687F: mov ebp, eax */ 4614 L_47036881: 4615 RECOMP_ICALL(0x47039020u); /* 0x47036881: call 0x47039020 */ /* not lifted */ 4616 RECOMP_FLAGS_IN(); 4617 esi = eax; /* 0x47036886: mov esi, eax */ 4618 ecx = esi; /* 0x47036888: mov ecx, esi */ 4619 RECOMP_ICALL(0x4703B210u); /* 0x4703688A: call 0x4703b210 */ /* not lifted */ 4620 RECOMP_FLAGS_IN(); 4621 PUSH32(esp, eax); /* 0x4703688F: push eax */ 4622 ecx = esi; /* 0x47036890: mov ecx, esi */ 4623 RECOMP_ICALL(0x4703B240u); /* 0x47036892: call 0x4703b240 */ /* not lifted */ 4624 RECOMP_FLAGS_IN(); 4625 PUSH32(esp, eax); /* 0x47036897: push eax */ 4626 ecx = esi; /* 0x47036898: mov ecx, esi */ 4627 RECOMP_ICALL(0x4703B080u); /* 0x4703689A: call 0x4703b080 */ /* not lifted */ 4628 RECOMP_FLAGS_IN(); 4629 PUSH32(esp, eax); /* 0x4703689F: push eax */ 4630 PUSH32(esp, ebp); /* 0x470368A0: push ebp */ 4631 PUSH32(esp, 0); /* 0x470368A1: push 0 */ 4632 PUSH32(esp, 0x297u); /* 0x470368A3: push 0x297 */ 4633 PUSH32(esp, 0x47106DE4u); /* 0x470368A8: push 0x47106de4 */ 4634 ecx = esi; /* 0x470368AD: mov ecx, esi */ 4635 RECOMP_ICALL(0x4703A340u); /* 0x470368AF: call 0x4703a340 */ /* not lifted */ 4636 RECOMP_FLAGS_IN(); 4637 PUSH32(esp, 0x47106FBCu); /* 0x470368B4: push 0x47106fbc */ 4638 PUSH32(esp, 4); /* 0x470368B9: push 4 */ 4639 PUSH32(esp, esi); /* 0x470368BB: push esi */ 4640 RECOMP_ICALL(0x47039830u); /* 0x470368BC: call 0x47039830 */ /* not lifted */ 4641 RECOMP_FLAGS_IN(); 4642 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4643 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4644 esp = esp + 0xCu; /* 0x470368C1: add esp, 0xc */ 4645 _flag_k = FK_ADD; 4646 RECOMP_ICALL(edi); /* 0x470368C4: call edi */ 4647 RECOMP_FLAGS_IN(); 4648 esi = eax; /* 0x470368C6: mov esi, eax */ 4649 RECOMP_ICALL(ebx); /* 0x470368C8: call ebx */ 4650 RECOMP_FLAGS_IN(); 4651 eax = MEM32(eax); /* 0x470368CA: mov eax, dword ptr [eax] */ 4652 /* test eax, eax */ /* 0x470368CC: test eax, eax */ 4653 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4654 _cf = 0; 4655 _flag_k = FK_TEST; 4656 edi = esi; /* 0x470368CE: mov edi, esi */ 4657 if (TEST_Z(_flag_a, _flag_b)) goto L_470368D4; /* 0x470368D0: je 0x470368d4 */ 4658 L_470368D2: 4659 edi = eax; /* 0x470368D2: mov edi, eax */ 4660 L_470368D4: 4661 RECOMP_ICALL(0x47039020u); /* 0x470368D4: call 0x47039020 */ /* not lifted */ 4662 RECOMP_FLAGS_IN(); 4663 esi = eax; /* 0x470368D9: mov esi, eax */ 4664 ecx = esi; /* 0x470368DB: mov ecx, esi */ 4665 RECOMP_ICALL(0x4703B210u); /* 0x470368DD: call 0x4703b210 */ /* not lifted */ 4666 RECOMP_FLAGS_IN(); 4667 PUSH32(esp, eax); /* 0x470368E2: push eax */ 4668 ecx = esi; /* 0x470368E3: mov ecx, esi */ 4669 RECOMP_ICALL(0x4703B240u); /* 0x470368E5: call 0x4703b240 */ /* not lifted */ 4670 RECOMP_FLAGS_IN(); 4671 PUSH32(esp, eax); /* 0x470368EA: push eax */ 4672 ecx = esi; /* 0x470368EB: mov ecx, esi */ 4673 RECOMP_ICALL(0x4703B080u); /* 0x470368ED: call 0x4703b080 */ /* not lifted */ 4674 RECOMP_FLAGS_IN(); 4675 PUSH32(esp, eax); /* 0x470368F2: push eax */ 4676 PUSH32(esp, edi); /* 0x470368F3: push edi */ 4677 PUSH32(esp, 0); /* 0x470368F4: push 0 */ 4678 PUSH32(esp, 0x298u); /* 0x470368F6: push 0x298 */ 4679 PUSH32(esp, 0x47106DE4u); /* 0x470368FB: push 0x47106de4 */ 4680 ecx = esi; /* 0x47036900: mov ecx, esi */ 4681 RECOMP_ICALL(0x4703A340u); /* 0x47036902: call 0x4703a340 */ /* not lifted */ 4682 RECOMP_FLAGS_IN(); 4683 PUSH32(esp, 0x4710529Cu); /* 0x47036907: push 0x4710529c */ 4684 PUSH32(esp, 4); /* 0x4703690C: push 4 */ 4685 PUSH32(esp, esi); /* 0x4703690E: push esi */ 4686 RECOMP_ICALL(0x47039830u); /* 0x4703690F: call 0x47039830 */ /* not lifted */ 4687 RECOMP_FLAGS_IN(); 4688 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4689 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4690 esp = esp + 0xCu; /* 0x47036914: add esp, 0xc */ 4691 _flag_k = FK_ADD; 4692 edi = POP32_VAL(esp); /* 0x47036917: pop edi */ 4693 esi = POP32_VAL(esp); /* 0x47036918: pop esi */ 4694 ebp = POP32_VAL(esp); /* 0x47036919: pop ebp */ 4695 ebx = POP32_VAL(esp); /* 0x4703691A: pop ebx */ 4696 ecx = POP32_VAL(esp); /* 0x4703691B: pop ecx */ 4697 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703691C: ret */ 4698 RECOMP_REGS_OUT(); 4699 } 4700 4701 void sub_47036920(void) { 4702 int _fpu_cmp = 0; 4703 uint32_t _cf = 0; 4704 int _df = 1; 4705 uint32_t _flag_k = FK_NONE; 4706 uint32_t _flag_a = 0, _flag_b = 0; 4707 uint32_t _itail_tgt = 0; 4708 RECOMP_REGS_LOCALS 4709 RECOMP_ENTER(0x47036920u); 4710 4711 L_47036920: 4712 PUSH32(esp, 0xFFFFFFFFu); /* 0x47036920: push -1 */ 4713 PUSH32(esp, 0x470A5C98u); /* 0x47036922: push 0x470a5c98 */ 4714 eax = MEM32(FS_BASE + (0)); /* 0x47036927: mov eax, dword ptr fs:[0] */ 4715 PUSH32(esp, eax); /* 0x4703692D: push eax */ 4716 MEM32(FS_BASE + (0)) = esp; /* 0x4703692E: mov dword ptr fs:[0], esp */ 4717 PUSH32(esp, ecx); /* 0x47036935: push ecx */ 4718 PUSH32(esp, ebx); /* 0x47036936: push ebx */ 4719 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4720 ebx = 0; /* 0x47036937: xor ebx, ebx */ 4721 _cf = 0; 4722 _flag_k = FK_TEST; 4723 PUSH32(esp, esi); /* 0x47036939: push esi */ 4724 esi = ecx; /* 0x4703693A: mov esi, ecx */ 4725 MEM32(esi + 0x4) = ebx; /* 0x4703693C: mov dword ptr [esi + 4], ebx */ 4726 MEM32(esi + 0x8) = ebx; /* 0x4703693F: mov dword ptr [esi + 8], ebx */ 4727 MEM32(esi + 0xC) = ebx; /* 0x47036942: mov dword ptr [esi + 0xc], ebx */ 4728 MEM32(esi + 0x10) = ebx; /* 0x47036945: mov dword ptr [esi + 0x10], ebx */ 4729 MEM32(esi + 0x14) = ebx; /* 0x47036948: mov dword ptr [esi + 0x14], ebx */ 4730 PUSH32(esp, edi); /* 0x4703694B: push edi */ 4731 MEM32(esp + 0xC) = esi; /* 0x4703694C: mov dword ptr [esp + 0xc], esi */ 4732 MEM32(esi) = 0x470AD368u; /* 0x47036950: mov dword ptr [esi], 0x470ad368 */ 4733 PUSH32(esp, ebx); /* 0x47036956: push ebx */ 4734 PUSH32(esp, ebx); /* 0x47036957: push ebx */ 4735 ecx = esi + 0x44; /* 0x47036958: lea ecx, [esi + 0x44] */ 4736 MEM32(esp + 0x20) = ebx; /* 0x4703695B: mov dword ptr [esp + 0x20], ebx */ 4737 MEM32(esi + 0x40) = ebx; /* 0x4703695F: mov dword ptr [esi + 0x40], ebx */ 4738 RECOMP_ICALL(0x47087E50u); /* 0x47036962: call 0x47087e50 */ /* not lifted */ 4739 RECOMP_FLAGS_IN(); 4740 edx = MEM32(esp + 0x20); /* 0x47036967: mov edx, dword ptr [esp + 0x20] */ 4741 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4742 ecx = ecx | 0xFFFFFFFFu; /* 0x4703696B: or ecx, 0xffffffff */ 4743 _cf = 0; 4744 _flag_k = FK_TEST; 4745 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4746 eax = 0; /* 0x4703696E: xor eax, eax */ 4747 _cf = 0; 4748 _flag_k = FK_TEST; 4749 edi = edx; /* 0x47036970: mov edi, edx */ 4750 MEM32(esi) = 0x470AD564u; /* 0x47036972: mov dword ptr [esi], 0x470ad564 */ 4751 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; } /* 0x47036978: repne scasb al, byte ptr es:[edi] */ 4752 ecx = ~ecx; /* 0x4703697A: not ecx */ 4753 /* cmp ecx, 0x28u */ /* 0x4703697C: cmp ecx, 0x28 */ 4754 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x28u); 4755 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4756 _flag_k = FK_CMP; 4757 if (CMP_LE(_flag_a, _flag_b)) goto L_47036986; /* 0x4703697F: jle 0x47036986 */ 4758 L_47036981: 4759 ecx = 0x28u; /* 0x47036981: mov ecx, 0x28 */ 4760 L_47036986: 4761 PUSH32(esp, ecx); /* 0x47036986: push ecx */ 4762 PUSH32(esp, edx); /* 0x47036987: push edx */ 4763 eax = esi + 0x18; /* 0x47036988: lea eax, [esi + 0x18] */ 4764 PUSH32(esp, eax); /* 0x4703698B: push eax */ 4765 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x4703698C: call dword ptr [0x470ac22c] */ 4766 RECOMP_FLAGS_IN(); 4767 ecx = MEM32(esp + 0x1C); /* 0x47036992: mov ecx, dword ptr [esp + 0x1c] */ 4768 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4769 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4770 esp = esp + 0xCu; /* 0x47036996: add esp, 0xc */ 4771 _flag_k = FK_ADD; 4772 MEM8(esi + 0x3F) = (uint8_t)(LO8(ebx)); /* 0x47036999: mov byte ptr [esi + 0x3f], bl */ 4773 edi = POP32_VAL(esp); /* 0x4703699C: pop edi */ 4774 eax = esi; /* 0x4703699D: mov eax, esi */ 4775 esi = POP32_VAL(esp); /* 0x4703699F: pop esi */ 4776 ebx = POP32_VAL(esp); /* 0x470369A0: pop ebx */ 4777 MEM32(FS_BASE + (0)) = ecx; /* 0x470369A1: mov dword ptr fs:[0], ecx */ 4778 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4779 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4780 esp = esp + 0x10u; /* 0x470369A8: add esp, 0x10 */ 4781 _flag_k = FK_ADD; 4782 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470369AB: ret 4 */ 4783 RECOMP_REGS_OUT(); 4784 } 4785 4786 void sub_470369B0(void) { 4787 int _fpu_cmp = 0; 4788 uint32_t _cf = 0; 4789 int _df = 1; 4790 uint32_t _flag_k = FK_NONE; 4791 uint32_t _flag_a = 0, _flag_b = 0; 4792 uint32_t _itail_tgt = 0; 4793 RECOMP_REGS_LOCALS 4794 RECOMP_ENTER(0x470369B0u); 4795 4796 L_470369B0: 4797 PUSH32(esp, ebx); /* 0x470369B0: push ebx */ 4798 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x470369B1: mov bl, byte ptr [esp + 8] */ 4799 /* test LO8(ebx), 2 */ /* 0x470369B5: test bl, 2 */ 4800 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 4801 _cf = 0; 4802 _flag_k = FK_NARROW(FK_TEST, 24); 4803 PUSH32(esp, esi); /* 0x470369B8: push esi */ 4804 esi = ecx; /* 0x470369B9: mov esi, ecx */ 4805 if (TEST_Z(_flag_a, _flag_b)) goto L_470369E8; /* 0x470369BB: je 0x470369e8 */ 4806 L_470369BD: 4807 eax = MEM32(esi + (-0x4)); /* 0x470369BD: mov eax, dword ptr [esi - 4] */ 4808 PUSH32(esp, edi); /* 0x470369C0: push edi */ 4809 PUSH32(esp, 0x47036A10u); /* 0x470369C1: push 0x47036a10 */ 4810 edi = esi + (-0x4); /* 0x470369C6: lea edi, [esi - 4] */ 4811 PUSH32(esp, eax); /* 0x470369C9: push eax */ 4812 PUSH32(esp, 0x60u); /* 0x470369CA: push 0x60 */ 4813 PUSH32(esp, esi); /* 0x470369CC: push esi */ 4814 RECOMP_ICALL(0x470A32EBu); /* 0x470369CD: call 0x470a32eb */ /* not lifted */ 4815 RECOMP_FLAGS_IN(); 4816 /* test LO8(ebx), 1 */ /* 0x470369D2: test bl, 1 */ 4817 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 4818 _cf = 0; 4819 _flag_k = FK_NARROW(FK_TEST, 24); 4820 if (TEST_Z(_flag_a, _flag_b)) goto L_470369E0; /* 0x470369D5: je 0x470369e0 */ 4821 L_470369D7: 4822 PUSH32(esp, edi); /* 0x470369D7: push edi */ 4823 RECOMP_ICALL(0x470A32A2u); /* 0x470369D8: call 0x470a32a2 */ /* not lifted */ 4824 RECOMP_FLAGS_IN(); 4825 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4826 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4827 esp = esp + 4; /* 0x470369DD: add esp, 4 */ 4828 _flag_k = FK_ADD; 4829 L_470369E0: 4830 eax = edi; /* 0x470369E0: mov eax, edi */ 4831 edi = POP32_VAL(esp); /* 0x470369E2: pop edi */ 4832 esi = POP32_VAL(esp); /* 0x470369E3: pop esi */ 4833 ebx = POP32_VAL(esp); /* 0x470369E4: pop ebx */ 4834 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470369E5: ret 4 */ 4835 L_470369E8: 4836 ecx = esi; /* 0x470369E8: mov ecx, esi */ 4837 RECOMP_ICALL(0x47036A10u); /* 0x470369EA: call 0x47036a10 */ /* not lifted */ 4838 RECOMP_FLAGS_IN(); 4839 /* test LO8(ebx), 1 */ /* 0x470369EF: test bl, 1 */ 4840 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 4841 _cf = 0; 4842 _flag_k = FK_NARROW(FK_TEST, 24); 4843 if (TEST_Z(_flag_a, _flag_b)) goto L_470369FD; /* 0x470369F2: je 0x470369fd */ 4844 L_470369F4: 4845 PUSH32(esp, esi); /* 0x470369F4: push esi */ 4846 RECOMP_ICALL(0x470A32A2u); /* 0x470369F5: call 0x470a32a2 */ /* not lifted */ 4847 RECOMP_FLAGS_IN(); 4848 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4849 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4850 esp = esp + 4; /* 0x470369FA: add esp, 4 */ 4851 _flag_k = FK_ADD; 4852 L_470369FD: 4853 eax = esi; /* 0x470369FD: mov eax, esi */ 4854 esi = POP32_VAL(esp); /* 0x470369FF: pop esi */ 4855 ebx = POP32_VAL(esp); /* 0x47036A00: pop ebx */ 4856 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47036A01: ret 4 */ 4857 RECOMP_REGS_OUT(); 4858 } 4859 4860 void sub_47036A10(void) { 4861 int _fpu_cmp = 0; 4862 uint32_t _cf = 0; 4863 int _df = 1; 4864 uint32_t _flag_k = FK_NONE; 4865 uint32_t _flag_a = 0, _flag_b = 0; 4866 uint32_t _itail_tgt = 0; 4867 RECOMP_REGS_LOCALS 4868 RECOMP_ENTER(0x47036A10u); 4869 4870 L_47036A10: 4871 PUSH32(esp, 0xFFFFFFFFu); /* 0x47036A10: push -1 */ 4872 PUSH32(esp, 0x470A5CB8u); /* 0x47036A12: push 0x470a5cb8 */ 4873 eax = MEM32(FS_BASE + (0)); /* 0x47036A17: mov eax, dword ptr fs:[0] */ 4874 PUSH32(esp, eax); /* 0x47036A1D: push eax */ 4875 MEM32(FS_BASE + (0)) = esp; /* 0x47036A1E: mov dword ptr fs:[0], esp */ 4876 PUSH32(esp, ecx); /* 0x47036A25: push ecx */ 4877 PUSH32(esp, esi); /* 0x47036A26: push esi */ 4878 esi = ecx; /* 0x47036A27: mov esi, ecx */ 4879 MEM32(esp + 0x4) = esi; /* 0x47036A29: mov dword ptr [esp + 4], esi */ 4880 MEM32(esi) = 0x470AD564u; /* 0x47036A2D: mov dword ptr [esi], 0x470ad564 */ 4881 ecx = esi + 0x44; /* 0x47036A33: lea ecx, [esi + 0x44] */ 4882 MEM32(esp + 0x10) = 0; /* 0x47036A36: mov dword ptr [esp + 0x10], 0 */ 4883 RECOMP_ICALL(0x47087E30u); /* 0x47036A3E: call 0x47087e30 */ /* not lifted */ 4884 RECOMP_FLAGS_IN(); 4885 ecx = MEM32(esp + 0x8); /* 0x47036A43: mov ecx, dword ptr [esp + 8] */ 4886 MEM32(esi) = 0x470AD368u; /* 0x47036A47: mov dword ptr [esi], 0x470ad368 */ 4887 esi = POP32_VAL(esp); /* 0x47036A4D: pop esi */ 4888 MEM32(FS_BASE + (0)) = ecx; /* 0x47036A4E: mov dword ptr fs:[0], ecx */ 4889 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4890 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4891 esp = esp + 0x10u; /* 0x47036A55: add esp, 0x10 */ 4892 _flag_k = FK_ADD; 4893 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47036A58: ret */ 4894 RECOMP_REGS_OUT(); 4895 } 4896 4897 void sub_47036A60(void) { 4898 int _fpu_cmp = 0; 4899 uint32_t _cf = 0; 4900 int _df = 1; 4901 uint32_t _flag_k = FK_NONE; 4902 uint32_t _flag_a = 0, _flag_b = 0; 4903 uint32_t _itail_tgt = 0; 4904 RECOMP_REGS_LOCALS 4905 RECOMP_ENTER(0x47036A60u); 4906 4907 L_47036A60: 4908 PUSH32(esp, 0xFFFFFFFFu); /* 0x47036A60: push -1 */ 4909 PUSH32(esp, 0x470A5CE0u); /* 0x47036A62: push 0x470a5ce0 */ 4910 eax = MEM32(FS_BASE + (0)); /* 0x47036A67: mov eax, dword ptr fs:[0] */ 4911 PUSH32(esp, eax); /* 0x47036A6D: push eax */ 4912 MEM32(FS_BASE + (0)) = esp; /* 0x47036A6E: mov dword ptr fs:[0], esp */ 4913 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4914 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4915 esp = esp - 0x10u; /* 0x47036A75: sub esp, 0x10 */ 4916 _flag_k = FK_CMP; 4917 PUSH32(esp, ebx); /* 0x47036A78: push ebx */ 4918 PUSH32(esp, ebp); /* 0x47036A79: push ebp */ 4919 PUSH32(esp, esi); /* 0x47036A7A: push esi */ 4920 esi = MEM32(0x470AC180); /* 0x47036A7B: mov esi, dword ptr [0x470ac180] */ 4921 PUSH32(esp, edi); /* 0x47036A81: push edi */ 4922 edi = ecx; /* 0x47036A82: mov edi, ecx */ 4923 eax = edi + 0x44; /* 0x47036A84: lea eax, [edi + 0x44] */ 4924 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4925 ebx = 0; /* 0x47036A87: xor ebx, ebx */ 4926 _cf = 0; 4927 _flag_k = FK_TEST; 4928 PUSH32(esp, eax); /* 0x47036A89: push eax */ 4929 MEM32(esp + 0x1C) = eax; /* 0x47036A8A: mov dword ptr [esp + 0x1c], eax */ 4930 MEM32(esp + 0x20) = ebx; /* 0x47036A8E: mov dword ptr [esp + 0x20], ebx */ 4931 RECOMP_ICALL(esi); /* 0x47036A92: call esi */ 4932 RECOMP_FLAGS_IN(); 4933 MEM32(esp + 0x1C) = ebx; /* 0x47036A94: mov dword ptr [esp + 0x1c], ebx */ 4934 MEM32(esp + 0x28) = ebx; /* 0x47036A98: mov dword ptr [esp + 0x28], ebx */ 4935 RECOMP_ICALL(0x470942F0u); /* 0x47036A9C: call 0x470942f0 */ /* not lifted */ 4936 RECOMP_FLAGS_IN(); 4937 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 4938 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4939 eax = eax + 8; /* 0x47036AA1: add eax, 8 */ 4940 _flag_k = FK_ADD; 4941 PUSH32(esp, eax); /* 0x47036AA4: push eax */ 4942 MEM32(esp + 0x14) = eax; /* 0x47036AA5: mov dword ptr [esp + 0x14], eax */ 4943 MEM32(esp + 0x18) = ebx; /* 0x47036AA9: mov dword ptr [esp + 0x18], ebx */ 4944 RECOMP_ICALL(esi); /* 0x47036AAD: call esi */ 4945 RECOMP_FLAGS_IN(); 4946 MEM32(esp + 0x14) = ebx; /* 0x47036AAF: mov dword ptr [esp + 0x14], ebx */ 4947 esi = MEM32(esp + 0x30); /* 0x47036AB3: mov esi, dword ptr [esp + 0x30] */ 4948 ecx = MEM32(esi + 0x54); /* 0x47036AB7: mov ecx, dword ptr [esi + 0x54] */ 4949 eax = MEM32(ecx); /* 0x47036ABA: mov eax, dword ptr [ecx] */ 4950 MEM8(esp + 0x28) = (uint8_t)(1); /* 0x47036ABC: mov byte ptr [esp + 0x28], 1 */ 4951 RECOMP_ICALL(MEM32(eax + 0x48)); /* 0x47036AC1: call dword ptr [eax + 0x48] */ 4952 RECOMP_FLAGS_IN(); 4953 /* cmp eax, 1 */ /* 0x47036AC4: cmp eax, 1 */ 4954 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4955 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4956 _flag_k = FK_CMP; 4957 if (CMP_NE(_flag_a, _flag_b)) goto L_47036ACC; /* 0x47036AC7: jne 0x47036acc */ 4958 L_47036AC9: 4959 _flag_a = (uint32_t)(MEM32(edi + 0x40)); _flag_b = (uint32_t)(1); 4960 MEM32(edi + 0x40) = MEM32(edi + 0x40) + 1; /* 0x47036AC9: inc dword ptr [edi + 0x40] */ 4961 _flag_k = FK_INC; 4962 L_47036ACC: 4963 ebp = edi + 0xC; /* 0x47036ACC: lea ebp, [edi + 0xc] */ 4964 ecx = ebp; /* 0x47036ACF: mov ecx, ebp */ 4965 RECOMP_ICALL(0x470033A0u); /* 0x47036AD1: call 0x470033a0 */ /* not lifted */ 4966 RECOMP_FLAGS_IN(); 4967 /* test eax, eax */ /* 0x47036AD6: test eax, eax */ 4968 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4969 _cf = 0; 4970 _flag_k = FK_TEST; 4971 if (TEST_NZ(_flag_a, _flag_b)) goto L_47036B09; /* 0x47036AD8: jne 0x47036b09 */ 4972 L_47036ADA: 4973 PUSH32(esp, 0xFFFFFFFFu); /* 0x47036ADA: push -1 */ 4974 PUSH32(esp, esi); /* 0x47036ADC: push esi */ 4975 ecx = ebp; /* 0x47036ADD: mov ecx, ebp */ 4976 RECOMP_ICALL(0x470359F0u); /* 0x47036ADF: call 0x470359f0 */ /* not lifted */ 4977 RECOMP_FLAGS_IN(); 4978 L_47036AE4: 4979 ecx = esp + 0x10; /* 0x47036AE4: lea ecx, [esp + 0x10] */ 4980 MEM8(esp + 0x28) = (uint8_t)(LO8(ebx)); /* 0x47036AE8: mov byte ptr [esp + 0x28], bl */ 4981 RECOMP_ICALL(0x470559D0u); /* 0x47036AEC: call 0x470559d0 */ /* not lifted */ 4982 RECOMP_FLAGS_IN(); 4983 ecx = esp + 0x18; /* 0x47036AF1: lea ecx, [esp + 0x18] */ 4984 MEM32(esp + 0x28) = 0xFFFFFFFFu; /* 0x47036AF5: mov dword ptr [esp + 0x28], 0xffffffff */ 4985 RECOMP_ICALL(0x470559D0u); /* 0x47036AFD: call 0x470559d0 */ /* not lifted */ 4986 RECOMP_FLAGS_IN(); 4987 L_47036B02: 4988 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4989 eax = 0; /* 0x47036B02: xor eax, eax */ 4990 _cf = 0; 4991 _flag_k = FK_TEST; 4992 goto L_47036CDE; /* 0x47036B04: jmp 0x47036cde */ 4993 L_47036B09: 4994 edx = MEM32(edi); /* 0x47036B09: mov edx, dword ptr [edi] */ 4995 eax = esi + 0x60; /* 0x47036B0B: lea eax, [esi + 0x60] */ 4996 PUSH32(esp, eax); /* 0x47036B0E: push eax */ 4997 ecx = edi; /* 0x47036B0F: mov ecx, edi */ 4998 RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x47036B11: call dword ptr [edx + 0x1c] */ 4999 RECOMP_FLAGS_IN(); 5000 /* test eax, eax */ /* 0x47036B14: test eax, eax */ 5001 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5002 _cf = 0; 5003 _flag_k = FK_TEST; 5004 if (TEST_Z(_flag_a, _flag_b)) goto L_47036B1D; /* 0x47036B16: je 0x47036b1d */ 5005 L_47036B18: 5006 _flag_a = (uint32_t)(MEM32(esi + 0x58)); _flag_b = (uint32_t)(1); 5007 MEM32(esi + 0x58) = MEM32(esi + 0x58) + 1; /* 0x47036B18: inc dword ptr [esi + 0x58] */ 5008 _flag_k = FK_INC; 5009 RECOMP_BACKEDGE(); 5010 goto L_47036AE4; /* 0x47036B1B: jmp 0x47036ae4 */ 5011 L_47036B1D: 5012 ecx = MEM32(esi + 0x54); /* 0x47036B1D: mov ecx, dword ptr [esi + 0x54] */ 5013 edx = MEM32(ecx); /* 0x47036B20: mov edx, dword ptr [ecx] */ 5014 RECOMP_ICALL(MEM32(edx + 0x48)); /* 0x47036B22: call dword ptr [edx + 0x48] */ 5015 RECOMP_FLAGS_IN(); 5016 /* test eax, eax */ /* 0x47036B25: test eax, eax */ 5017 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5018 _cf = 0; 5019 _flag_k = FK_TEST; 5020 if (TEST_NZ(_flag_a, _flag_b)) goto L_47036B69; /* 0x47036B27: jne 0x47036b69 */ 5021 L_47036B29: 5022 /* cmp MEM32(edi + 0x40), ebx */ /* 0x47036B29: cmp dword ptr [edi + 0x40], ebx */ 5023 _flag_a = (uint32_t)(MEM32(edi + 0x40)); _flag_b = (uint32_t)(ebx); 5024 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5025 _flag_k = FK_CMP; 5026 if (CMP_NE(_flag_a, _flag_b)) goto L_47036B69; /* 0x47036B2C: jne 0x47036b69 */ 5027 L_47036B2E: 5028 _flag_a = (uint32_t)((edi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edi | 0xFFFFFFFFu)); 5029 edi = edi | 0xFFFFFFFFu; /* 0x47036B2E: or edi, 0xffffffff */ 5030 _cf = 0; 5031 _flag_k = FK_TEST; 5032 PUSH32(esp, edi); /* 0x47036B31: push edi */ 5033 PUSH32(esp, esi); /* 0x47036B32: push esi */ 5034 ecx = ebp; /* 0x47036B33: mov ecx, ebp */ 5035 RECOMP_ICALL(0x470359F0u); /* 0x47036B35: call 0x470359f0 */ /* not lifted */ 5036 RECOMP_FLAGS_IN(); 5037 /* cmp MEM32(esp + 0x14), edi */ /* 0x47036B3A: cmp dword ptr [esp + 0x14], edi */ 5038 _flag_a = (uint32_t)(MEM32(esp + 0x14)); _flag_b = (uint32_t)(edi); 5039 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5040 _flag_k = FK_CMP; 5041 esi = MEM32(0x470AC190); /* 0x47036B3E: mov esi, dword ptr [0x470ac190] */ 5042 if (CMP_EQ(_flag_a, _flag_b)) goto L_47036B51; /* 0x47036B44: je 0x47036b51 */ 5043 L_47036B46: 5044 eax = MEM32(esp + 0x10); /* 0x47036B46: mov eax, dword ptr [esp + 0x10] */ 5045 PUSH32(esp, eax); /* 0x47036B4A: push eax */ 5046 MEM32(esp + 0x18) = edi; /* 0x47036B4B: mov dword ptr [esp + 0x18], edi */ 5047 RECOMP_ICALL(esi); /* 0x47036B4F: call esi */ 5048 RECOMP_FLAGS_IN(); 5049 L_47036B51: 5050 /* cmp MEM32(esp + 0x1C), edi */ /* 0x47036B51: cmp dword ptr [esp + 0x1c], edi */ 5051 _flag_a = (uint32_t)(MEM32(esp + 0x1C)); _flag_b = (uint32_t)(edi); 5052 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5053 _flag_k = FK_CMP; 5054 RECOMP_BACKEDGE(); 5055 if (CMP_EQ(_flag_a, _flag_b)) goto L_47036B02; /* 0x47036B55: je 0x47036b02 */ 5056 L_47036B57: 5057 ecx = MEM32(esp + 0x18); /* 0x47036B57: mov ecx, dword ptr [esp + 0x18] */ 5058 PUSH32(esp, ecx); /* 0x47036B5B: push ecx */ 5059 MEM32(esp + 0x20) = edi; /* 0x47036B5C: mov dword ptr [esp + 0x20], edi */ 5060 RECOMP_ICALL(esi); /* 0x47036B60: call esi */ 5061 RECOMP_FLAGS_IN(); 5062 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5063 eax = 0; /* 0x47036B62: xor eax, eax */ 5064 _cf = 0; 5065 _flag_k = FK_TEST; 5066 goto L_47036CDE; /* 0x47036B64: jmp 0x47036cde */ 5067 L_47036B69: 5068 /* cmp MEM32(esp + 0x34), ebx */ /* 0x47036B69: cmp dword ptr [esp + 0x34], ebx */ 5069 _flag_a = (uint32_t)(MEM32(esp + 0x34)); _flag_b = (uint32_t)(ebx); 5070 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5071 _flag_k = FK_CMP; 5072 if (CMP_NE(_flag_a, _flag_b)) goto L_47036C06; /* 0x47036B6D: jne 0x47036c06 */ 5073 L_47036B73: 5074 eax = MEM32(esi + 0x54); /* 0x47036B73: mov eax, dword ptr [esi + 0x54] */ 5075 PUSH32(esp, eax); /* 0x47036B76: push eax */ 5076 RECOMP_ICALL(0x470942F0u); /* 0x47036B77: call 0x470942f0 */ /* not lifted */ 5077 RECOMP_FLAGS_IN(); 5078 ecx = eax; /* 0x47036B7C: mov ecx, eax */ 5079 RECOMP_ICALL(0x47094530u); /* 0x47036B7E: call 0x47094530 */ /* not lifted */ 5080 RECOMP_FLAGS_IN(); 5081 /* cmp eax, 1 */ /* 0x47036B83: cmp eax, 1 */ 5082 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5083 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5084 _flag_k = FK_CMP; 5085 if (CMP_NE(_flag_a, _flag_b)) goto L_47036C06; /* 0x47036B86: jne 0x47036c06 */ 5086 L_47036B88: 5087 ecx = MEM32(esi + 0x54); /* 0x47036B88: mov ecx, dword ptr [esi + 0x54] */ 5088 edx = MEM32(ecx); /* 0x47036B8B: mov edx, dword ptr [ecx] */ 5089 RECOMP_ICALL(MEM32(edx + 0x48)); /* 0x47036B8D: call dword ptr [edx + 0x48] */ 5090 RECOMP_FLAGS_IN(); 5091 /* cmp eax, 1 */ /* 0x47036B90: cmp eax, 1 */ 5092 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5093 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5094 _flag_k = FK_CMP; 5095 if (CMP_NE(_flag_a, _flag_b)) goto L_47036B98; /* 0x47036B93: jne 0x47036b98 */ 5096 L_47036B95: 5097 _flag_a = (uint32_t)(MEM32(edi + 0x40)); _flag_b = (uint32_t)(1); 5098 MEM32(edi + 0x40) = MEM32(edi + 0x40) - 1; /* 0x47036B95: dec dword ptr [edi + 0x40] */ 5099 _flag_k = FK_DEC; 5100 L_47036B98: 5101 esi = MEM32(0x470AC3C8); /* 0x47036B98: mov esi, dword ptr [0x470ac3c8] */ 5102 RECOMP_ICALL(esi); /* 0x47036B9E: call esi */ 5103 RECOMP_FLAGS_IN(); 5104 MEM32(eax) = 0x24u; /* 0x47036BA0: mov dword ptr [eax], 0x24 */ 5105 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47036BA6: call dword ptr [0x470ac150] */ 5106 RECOMP_FLAGS_IN(); 5107 edi = eax; /* 0x47036BAC: mov edi, eax */ 5108 RECOMP_ICALL(esi); /* 0x47036BAE: call esi */ 5109 RECOMP_FLAGS_IN(); 5110 eax = MEM32(eax); /* 0x47036BB0: mov eax, dword ptr [eax] */ 5111 /* cmp eax, ebx */ /* 0x47036BB2: cmp eax, ebx */ 5112 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5113 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5114 _flag_k = FK_CMP; 5115 if (CMP_NE(_flag_a, _flag_b)) goto L_47036BB8; /* 0x47036BB4: jne 0x47036bb8 */ 5116 L_47036BB6: 5117 eax = edi; /* 0x47036BB6: mov eax, edi */ 5118 L_47036BB8: 5119 PUSH32(esp, ebx); /* 0x47036BB8: push ebx */ 5120 PUSH32(esp, ebx); /* 0x47036BB9: push ebx */ 5121 PUSH32(esp, 1); /* 0x47036BBA: push 1 */ 5122 PUSH32(esp, eax); /* 0x47036BBC: push eax */ 5123 _flag_a = (uint32_t)((edi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edi | 0xFFFFFFFFu)); 5124 edi = edi | 0xFFFFFFFFu; /* 0x47036BBD: or edi, 0xffffffff */ 5125 _cf = 0; 5126 _flag_k = FK_TEST; 5127 PUSH32(esp, edi); /* 0x47036BC0: push edi */ 5128 PUSH32(esp, 0x2E4u); /* 0x47036BC1: push 0x2e4 */ 5129 PUSH32(esp, 0x47106DE4u); /* 0x47036BC6: push 0x47106de4 */ 5130 RECOMP_ICALL(0x47039020u); /* 0x47036BCB: call 0x47039020 */ /* not lifted */ 5131 RECOMP_FLAGS_IN(); 5132 ecx = eax; /* 0x47036BD0: mov ecx, eax */ 5133 RECOMP_ICALL(0x4703A340u); /* 0x47036BD2: call 0x4703a340 */ /* not lifted */ 5134 RECOMP_FLAGS_IN(); 5135 /* cmp MEM32(esp + 0x14), edi */ /* 0x47036BD7: cmp dword ptr [esp + 0x14], edi */ 5136 _flag_a = (uint32_t)(MEM32(esp + 0x14)); _flag_b = (uint32_t)(edi); 5137 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5138 _flag_k = FK_CMP; 5139 esi = MEM32(0x470AC190); /* 0x47036BDB: mov esi, dword ptr [0x470ac190] */ 5140 if (CMP_EQ(_flag_a, _flag_b)) goto L_47036BEE; /* 0x47036BE1: je 0x47036bee */ 5141 L_47036BE3: 5142 eax = MEM32(esp + 0x10); /* 0x47036BE3: mov eax, dword ptr [esp + 0x10] */ 5143 PUSH32(esp, eax); /* 0x47036BE7: push eax */ 5144 MEM32(esp + 0x18) = edi; /* 0x47036BE8: mov dword ptr [esp + 0x18], edi */ 5145 RECOMP_ICALL(esi); /* 0x47036BEC: call esi */ 5146 RECOMP_FLAGS_IN(); 5147 L_47036BEE: 5148 /* cmp MEM32(esp + 0x1C), edi */ /* 0x47036BEE: cmp dword ptr [esp + 0x1c], edi */ 5149 _flag_a = (uint32_t)(MEM32(esp + 0x1C)); _flag_b = (uint32_t)(edi); 5150 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5151 _flag_k = FK_CMP; 5152 if (CMP_EQ(_flag_a, _flag_b)) goto L_47036CDC; /* 0x47036BF2: je 0x47036cdc */ 5153 L_47036BF8: 5154 ecx = MEM32(esp + 0x18); /* 0x47036BF8: mov ecx, dword ptr [esp + 0x18] */ 5155 MEM32(esp + 0x1C) = edi; /* 0x47036BFC: mov dword ptr [esp + 0x1c], edi */ 5156 PUSH32(esp, ecx); /* 0x47036C00: push ecx */ 5157 goto L_47036CDA; /* 0x47036C01: jmp 0x47036cda */ 5158 L_47036C06: 5159 PUSH32(esp, 0xFFFFFFFFu); /* 0x47036C06: push -1 */ 5160 PUSH32(esp, esi); /* 0x47036C08: push esi */ 5161 ecx = ebp; /* 0x47036C09: mov ecx, ebp */ 5162 RECOMP_ICALL(0x470359F0u); /* 0x47036C0B: call 0x470359f0 */ /* not lifted */ 5163 RECOMP_FLAGS_IN(); 5164 /* cmp MEM32(esp + 0x38), ebx */ /* 0x47036C10: cmp dword ptr [esp + 0x38], ebx */ 5165 _flag_a = (uint32_t)(MEM32(esp + 0x38)); _flag_b = (uint32_t)(ebx); 5166 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5167 _flag_k = FK_CMP; 5168 if (CMP_EQ(_flag_a, _flag_b)) goto L_47036C75; /* 0x47036C14: je 0x47036c75 */ 5169 L_47036C16: 5170 eax = MEM32(ebp); /* 0x47036C16: mov eax, dword ptr [ebp] */ 5171 ecx = MEM32(eax + 0x54); /* 0x47036C19: mov ecx, dword ptr [eax + 0x54] */ 5172 edx = MEM32(ecx); /* 0x47036C1C: mov edx, dword ptr [ecx] */ 5173 RECOMP_ICALL(MEM32(edx + 0x48)); /* 0x47036C1E: call dword ptr [edx + 0x48] */ 5174 RECOMP_FLAGS_IN(); 5175 /* cmp eax, 1 */ /* 0x47036C21: cmp eax, 1 */ 5176 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5177 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5178 _flag_k = FK_CMP; 5179 if (CMP_NE(_flag_a, _flag_b)) goto L_47036C45; /* 0x47036C24: jne 0x47036c45 */ 5180 L_47036C26: 5181 ebp = MEM32(ebp); /* 0x47036C26: mov ebp, dword ptr [ebp] */ 5182 eax = MEM32(ebp + 0x174); /* 0x47036C29: mov eax, dword ptr [ebp + 0x174] */ 5183 /* cmp eax, ebx */ /* 0x47036C2F: cmp eax, ebx */ 5184 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5185 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5186 _flag_k = FK_CMP; 5187 ecx = MEM32(ebp + 0x54); /* 0x47036C31: mov ecx, dword ptr [ebp + 0x54] */ 5188 if (CMP_EQ(_flag_a, _flag_b)) goto L_47036C3E; /* 0x47036C34: je 0x47036c3e */ 5189 L_47036C36: 5190 PUSH32(esp, ecx); /* 0x47036C36: push ecx */ 5191 RECOMP_ICALL(eax); /* 0x47036C37: call eax */ 5192 RECOMP_FLAGS_IN(); 5193 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5194 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5195 esp = esp + 4; /* 0x47036C39: add esp, 4 */ 5196 _flag_k = FK_ADD; 5197 goto L_47036C75; /* 0x47036C3C: jmp 0x47036c75 */ 5198 L_47036C3E: 5199 edx = MEM32(ecx); /* 0x47036C3E: mov edx, dword ptr [ecx] */ 5200 RECOMP_ICALL(MEM32(edx + 0x38)); /* 0x47036C40: call dword ptr [edx + 0x38] */ 5201 RECOMP_FLAGS_IN(); 5202 goto L_47036C75; /* 0x47036C43: jmp 0x47036c75 */ 5203 L_47036C45: 5204 esi = MEM32(ebp); /* 0x47036C45: mov esi, dword ptr [ebp] */ 5205 L_47036C48: 5206 eax = MEM32(esi + 0x174); /* 0x47036C48: mov eax, dword ptr [esi + 0x174] */ 5207 /* cmp eax, ebx */ /* 0x47036C4E: cmp eax, ebx */ 5208 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5209 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5210 _flag_k = FK_CMP; 5211 ecx = MEM32(esi + 0x54); /* 0x47036C50: mov ecx, dword ptr [esi + 0x54] */ 5212 if (CMP_EQ(_flag_a, _flag_b)) goto L_47036C5D; /* 0x47036C53: je 0x47036c5d */ 5213 L_47036C55: 5214 PUSH32(esp, ecx); /* 0x47036C55: push ecx */ 5215 RECOMP_ICALL(eax); /* 0x47036C56: call eax */ 5216 RECOMP_FLAGS_IN(); 5217 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5218 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5219 esp = esp + 4; /* 0x47036C58: add esp, 4 */ 5220 _flag_k = FK_ADD; 5221 goto L_47036C62; /* 0x47036C5B: jmp 0x47036c62 */ 5222 L_47036C5D: 5223 edx = MEM32(ecx); /* 0x47036C5D: mov edx, dword ptr [ecx] */ 5224 RECOMP_ICALL(MEM32(edx + 0x38)); /* 0x47036C5F: call dword ptr [edx + 0x38] */ 5225 RECOMP_FLAGS_IN(); 5226 L_47036C62: 5227 esi = MEM32(esi + 0x4C); /* 0x47036C62: mov esi, dword ptr [esi + 0x4c] */ 5228 /* cmp esi, ebx */ /* 0x47036C65: cmp esi, ebx */ 5229 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 5230 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5231 _flag_k = FK_CMP; 5232 if (CMP_EQ(_flag_a, _flag_b)) goto L_47036C75; /* 0x47036C67: je 0x47036c75 */ 5233 L_47036C69: 5234 ecx = MEM32(esi + 0x54); /* 0x47036C69: mov ecx, dword ptr [esi + 0x54] */ 5235 eax = MEM32(ecx); /* 0x47036C6C: mov eax, dword ptr [ecx] */ 5236 RECOMP_ICALL(MEM32(eax + 0x48)); /* 0x47036C6E: call dword ptr [eax + 0x48] */ 5237 RECOMP_FLAGS_IN(); 5238 /* test eax, eax */ /* 0x47036C71: test eax, eax */ 5239 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5240 _cf = 0; 5241 _flag_k = FK_TEST; 5242 RECOMP_BACKEDGE(); 5243 if (TEST_Z(_flag_a, _flag_b)) goto L_47036C48; /* 0x47036C73: je 0x47036c48 */ 5244 L_47036C75: 5245 esi = MEM32(0x470AC3C8); /* 0x47036C75: mov esi, dword ptr [0x470ac3c8] */ 5246 RECOMP_ICALL(esi); /* 0x47036C7B: call esi */ 5247 RECOMP_FLAGS_IN(); 5248 MEM32(eax) = 0x2733u; /* 0x47036C7D: mov dword ptr [eax], 0x2733 */ 5249 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47036C83: call dword ptr [0x470ac150] */ 5250 RECOMP_FLAGS_IN(); 5251 edi = eax; /* 0x47036C89: mov edi, eax */ 5252 RECOMP_ICALL(esi); /* 0x47036C8B: call esi */ 5253 RECOMP_FLAGS_IN(); 5254 eax = MEM32(eax); /* 0x47036C8D: mov eax, dword ptr [eax] */ 5255 /* cmp eax, ebx */ /* 0x47036C8F: cmp eax, ebx */ 5256 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5257 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5258 _flag_k = FK_CMP; 5259 if (CMP_NE(_flag_a, _flag_b)) goto L_47036C95; /* 0x47036C91: jne 0x47036c95 */ 5260 L_47036C93: 5261 eax = edi; /* 0x47036C93: mov eax, edi */ 5262 L_47036C95: 5263 PUSH32(esp, ebx); /* 0x47036C95: push ebx */ 5264 PUSH32(esp, ebx); /* 0x47036C96: push ebx */ 5265 PUSH32(esp, 1); /* 0x47036C97: push 1 */ 5266 PUSH32(esp, eax); /* 0x47036C99: push eax */ 5267 _flag_a = (uint32_t)((edi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edi | 0xFFFFFFFFu)); 5268 edi = edi | 0xFFFFFFFFu; /* 0x47036C9A: or edi, 0xffffffff */ 5269 _cf = 0; 5270 _flag_k = FK_TEST; 5271 PUSH32(esp, edi); /* 0x47036C9D: push edi */ 5272 PUSH32(esp, 0x2FEu); /* 0x47036C9E: push 0x2fe */ 5273 PUSH32(esp, 0x47106DE4u); /* 0x47036CA3: push 0x47106de4 */ 5274 RECOMP_ICALL(0x47039020u); /* 0x47036CA8: call 0x47039020 */ /* not lifted */ 5275 RECOMP_FLAGS_IN(); 5276 ecx = eax; /* 0x47036CAD: mov ecx, eax */ 5277 RECOMP_ICALL(0x4703A340u); /* 0x47036CAF: call 0x4703a340 */ /* not lifted */ 5278 RECOMP_FLAGS_IN(); 5279 /* cmp MEM32(esp + 0x14), edi */ /* 0x47036CB4: cmp dword ptr [esp + 0x14], edi */ 5280 _flag_a = (uint32_t)(MEM32(esp + 0x14)); _flag_b = (uint32_t)(edi); 5281 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5282 _flag_k = FK_CMP; 5283 esi = MEM32(0x470AC190); /* 0x47036CB8: mov esi, dword ptr [0x470ac190] */ 5284 if (CMP_EQ(_flag_a, _flag_b)) goto L_47036CCB; /* 0x47036CBE: je 0x47036ccb */ 5285 L_47036CC0: 5286 ecx = MEM32(esp + 0x10); /* 0x47036CC0: mov ecx, dword ptr [esp + 0x10] */ 5287 PUSH32(esp, ecx); /* 0x47036CC4: push ecx */ 5288 MEM32(esp + 0x18) = edi; /* 0x47036CC5: mov dword ptr [esp + 0x18], edi */ 5289 RECOMP_ICALL(esi); /* 0x47036CC9: call esi */ 5290 RECOMP_FLAGS_IN(); 5291 L_47036CCB: 5292 /* cmp MEM32(esp + 0x1C), edi */ /* 0x47036CCB: cmp dword ptr [esp + 0x1c], edi */ 5293 _flag_a = (uint32_t)(MEM32(esp + 0x1C)); _flag_b = (uint32_t)(edi); 5294 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5295 _flag_k = FK_CMP; 5296 if (CMP_EQ(_flag_a, _flag_b)) goto L_47036CDC; /* 0x47036CCF: je 0x47036cdc */ 5297 L_47036CD1: 5298 edx = MEM32(esp + 0x18); /* 0x47036CD1: mov edx, dword ptr [esp + 0x18] */ 5299 MEM32(esp + 0x1C) = edi; /* 0x47036CD5: mov dword ptr [esp + 0x1c], edi */ 5300 PUSH32(esp, edx); /* 0x47036CD9: push edx */ 5301 L_47036CDA: 5302 RECOMP_ICALL(esi); /* 0x47036CDA: call esi */ 5303 RECOMP_FLAGS_IN(); 5304 L_47036CDC: 5305 eax = edi; /* 0x47036CDC: mov eax, edi */ 5306 L_47036CDE: 5307 ecx = MEM32(esp + 0x20); /* 0x47036CDE: mov ecx, dword ptr [esp + 0x20] */ 5308 edi = POP32_VAL(esp); /* 0x47036CE2: pop edi */ 5309 esi = POP32_VAL(esp); /* 0x47036CE3: pop esi */ 5310 ebp = POP32_VAL(esp); /* 0x47036CE4: pop ebp */ 5311 ebx = POP32_VAL(esp); /* 0x47036CE5: pop ebx */ 5312 MEM32(FS_BASE + (0)) = ecx; /* 0x47036CE6: mov dword ptr fs:[0], ecx */ 5313 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 5314 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5315 esp = esp + 0x1Cu; /* 0x47036CED: add esp, 0x1c */ 5316 _flag_k = FK_ADD; 5317 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47036CF0: ret 0xc */ 5318 RECOMP_REGS_OUT(); 5319 } 5320 5321 void sub_47036CDA(void) { 5322 int _fpu_cmp = 0; 5323 uint32_t _cf = 0; 5324 int _df = 1; 5325 uint32_t _flag_k = FK_NONE; 5326 uint32_t _flag_a = 0, _flag_b = 0; 5327 uint32_t _itail_tgt = 0; 5328 RECOMP_REGS_LOCALS 5329 RECOMP_ENTER(0x47036CDAu); 5330 5331 L_47036CDA: 5332 RECOMP_ICALL(esi); /* 0x47036CDA: call esi */ 5333 RECOMP_FLAGS_IN(); 5334 eax = edi; /* 0x47036CDC: mov eax, edi */ 5335 ecx = MEM32(esp + 0x20); /* 0x47036CDE: mov ecx, dword ptr [esp + 0x20] */ 5336 edi = POP32_VAL(esp); /* 0x47036CE2: pop edi */ 5337 esi = POP32_VAL(esp); /* 0x47036CE3: pop esi */ 5338 ebp = POP32_VAL(esp); /* 0x47036CE4: pop ebp */ 5339 ebx = POP32_VAL(esp); /* 0x47036CE5: pop ebx */ 5340 MEM32(FS_BASE + (0)) = ecx; /* 0x47036CE6: mov dword ptr fs:[0], ecx */ 5341 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 5342 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5343 esp = esp + 0x1Cu; /* 0x47036CED: add esp, 0x1c */ 5344 _flag_k = FK_ADD; 5345 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47036CF0: ret 0xc */ 5346 RECOMP_REGS_OUT(); 5347 } 5348 5349 void sub_47036CDE(void) { 5350 int _fpu_cmp = 0; 5351 uint32_t _cf = 0; 5352 int _df = 1; 5353 uint32_t _flag_k = FK_NONE; 5354 uint32_t _flag_a = 0, _flag_b = 0; 5355 uint32_t _itail_tgt = 0; 5356 RECOMP_REGS_LOCALS 5357 RECOMP_ENTER(0x47036CDEu); 5358 5359 L_47036CDE: 5360 ecx = MEM32(esp + 0x20); /* 0x47036CDE: mov ecx, dword ptr [esp + 0x20] */ 5361 edi = POP32_VAL(esp); /* 0x47036CE2: pop edi */ 5362 esi = POP32_VAL(esp); /* 0x47036CE3: pop esi */ 5363 ebp = POP32_VAL(esp); /* 0x47036CE4: pop ebp */ 5364 ebx = POP32_VAL(esp); /* 0x47036CE5: pop ebx */ 5365 MEM32(FS_BASE + (0)) = ecx; /* 0x47036CE6: mov dword ptr fs:[0], ecx */ 5366 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 5367 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5368 esp = esp + 0x1Cu; /* 0x47036CED: add esp, 0x1c */ 5369 _flag_k = FK_ADD; 5370 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47036CF0: ret 0xc */ 5371 RECOMP_REGS_OUT(); 5372 } 5373 5374 void sub_47036D00(void) { 5375 int _fpu_cmp = 0; 5376 uint32_t _cf = 0; 5377 int _df = 1; 5378 uint32_t _flag_k = FK_NONE; 5379 uint32_t _flag_a = 0, _flag_b = 0; 5380 uint32_t _itail_tgt = 0; 5381 RECOMP_REGS_LOCALS 5382 RECOMP_ENTER(0x47036D00u); 5383 5384 L_47036D00: 5385 PUSH32(esp, 0xFFFFFFFFu); /* 0x47036D00: push -1 */ 5386 PUSH32(esp, 0x470A5D00u); /* 0x47036D02: push 0x470a5d00 */ 5387 eax = MEM32(FS_BASE + (0)); /* 0x47036D07: mov eax, dword ptr fs:[0] */ 5388 PUSH32(esp, eax); /* 0x47036D0D: push eax */ 5389 MEM32(FS_BASE + (0)) = esp; /* 0x47036D0E: mov dword ptr fs:[0], esp */ 5390 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5391 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5392 esp = esp - 0x10u; /* 0x47036D15: sub esp, 0x10 */ 5393 _flag_k = FK_CMP; 5394 PUSH32(esp, ebx); /* 0x47036D18: push ebx */ 5395 PUSH32(esp, ebp); /* 0x47036D19: push ebp */ 5396 PUSH32(esp, esi); /* 0x47036D1A: push esi */ 5397 esi = ecx; /* 0x47036D1B: mov esi, ecx */ 5398 PUSH32(esp, edi); /* 0x47036D1D: push edi */ 5399 edi = MEM32(0x470AC180); /* 0x47036D1E: mov edi, dword ptr [0x470ac180] */ 5400 eax = esi + 0x44; /* 0x47036D24: lea eax, [esi + 0x44] */ 5401 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5402 ebx = 0; /* 0x47036D27: xor ebx, ebx */ 5403 _cf = 0; 5404 _flag_k = FK_TEST; 5405 PUSH32(esp, eax); /* 0x47036D29: push eax */ 5406 MEM32(esp + 0x1C) = eax; /* 0x47036D2A: mov dword ptr [esp + 0x1c], eax */ 5407 MEM32(esp + 0x20) = ebx; /* 0x47036D2E: mov dword ptr [esp + 0x20], ebx */ 5408 RECOMP_ICALL(edi); /* 0x47036D32: call edi */ 5409 RECOMP_FLAGS_IN(); 5410 MEM32(esp + 0x1C) = ebx; /* 0x47036D34: mov dword ptr [esp + 0x1c], ebx */ 5411 MEM32(esp + 0x28) = ebx; /* 0x47036D38: mov dword ptr [esp + 0x28], ebx */ 5412 RECOMP_ICALL(0x470942F0u); /* 0x47036D3C: call 0x470942f0 */ /* not lifted */ 5413 RECOMP_FLAGS_IN(); 5414 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 5415 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5416 eax = eax + 8; /* 0x47036D41: add eax, 8 */ 5417 _flag_k = FK_ADD; 5418 PUSH32(esp, eax); /* 0x47036D44: push eax */ 5419 MEM32(esp + 0x14) = eax; /* 0x47036D45: mov dword ptr [esp + 0x14], eax */ 5420 MEM32(esp + 0x18) = ebx; /* 0x47036D49: mov dword ptr [esp + 0x18], ebx */ 5421 RECOMP_ICALL(edi); /* 0x47036D4D: call edi */ 5422 RECOMP_FLAGS_IN(); 5423 MEM32(esp + 0x14) = ebx; /* 0x47036D4F: mov dword ptr [esp + 0x14], ebx */ 5424 edi = MEM32(esp + 0x30); /* 0x47036D53: mov edi, dword ptr [esp + 0x30] */ 5425 ecx = MEM32(edi + 0x54); /* 0x47036D57: mov ecx, dword ptr [edi + 0x54] */ 5426 eax = MEM32(ecx); /* 0x47036D5A: mov eax, dword ptr [ecx] */ 5427 MEM8(esp + 0x28) = (uint8_t)(1); /* 0x47036D5C: mov byte ptr [esp + 0x28], 1 */ 5428 RECOMP_ICALL(MEM32(eax + 0x48)); /* 0x47036D61: call dword ptr [eax + 0x48] */ 5429 RECOMP_FLAGS_IN(); 5430 /* cmp eax, 1 */ /* 0x47036D64: cmp eax, 1 */ 5431 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5432 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5433 _flag_k = FK_CMP; 5434 if (CMP_NE(_flag_a, _flag_b)) goto L_47036D6C; /* 0x47036D67: jne 0x47036d6c */ 5435 L_47036D69: 5436 _flag_a = (uint32_t)(MEM32(esi + 0x40)); _flag_b = (uint32_t)(1); 5437 MEM32(esi + 0x40) = MEM32(esi + 0x40) + 1; /* 0x47036D69: inc dword ptr [esi + 0x40] */ 5438 _flag_k = FK_INC; 5439 L_47036D6C: 5440 eax = MEM32(esi + 0xC); /* 0x47036D6C: mov eax, dword ptr [esi + 0xc] */ 5441 /* cmp eax, ebx */ /* 0x47036D6F: cmp eax, ebx */ 5442 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5443 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5444 _flag_k = FK_CMP; 5445 ebp = esi + 0xC; /* 0x47036D71: lea ebp, [esi + 0xc] */ 5446 if (CMP_EQ(_flag_a, _flag_b)) goto L_47036D78; /* 0x47036D74: je 0x47036d78 */ 5447 L_47036D76: 5448 if (CMP_NE(_flag_a, _flag_b)) goto L_47036DB3; /* 0x47036D76: jne 0x47036db3 */ 5449 L_47036D78: 5450 _flag_a = (uint32_t)((esi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((esi | 0xFFFFFFFFu)); 5451 esi = esi | 0xFFFFFFFFu; /* 0x47036D78: or esi, 0xffffffff */ 5452 _cf = 0; 5453 _flag_k = FK_TEST; 5454 PUSH32(esp, esi); /* 0x47036D7B: push esi */ 5455 PUSH32(esp, edi); /* 0x47036D7C: push edi */ 5456 ecx = ebp; /* 0x47036D7D: mov ecx, ebp */ 5457 RECOMP_ICALL(0x470359F0u); /* 0x47036D7F: call 0x470359f0 */ /* not lifted */ 5458 RECOMP_FLAGS_IN(); 5459 /* cmp MEM32(esp + 0x14), esi */ /* 0x47036D84: cmp dword ptr [esp + 0x14], esi */ 5460 _flag_a = (uint32_t)(MEM32(esp + 0x14)); _flag_b = (uint32_t)(esi); 5461 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5462 _flag_k = FK_CMP; 5463 edi = MEM32(0x470AC190); /* 0x47036D88: mov edi, dword ptr [0x470ac190] */ 5464 if (CMP_EQ(_flag_a, _flag_b)) goto L_47036D9B; /* 0x47036D8E: je 0x47036d9b */ 5465 L_47036D90: 5466 ecx = MEM32(esp + 0x10); /* 0x47036D90: mov ecx, dword ptr [esp + 0x10] */ 5467 PUSH32(esp, ecx); /* 0x47036D94: push ecx */ 5468 MEM32(esp + 0x18) = esi; /* 0x47036D95: mov dword ptr [esp + 0x18], esi */ 5469 RECOMP_ICALL(edi); /* 0x47036D99: call edi */ 5470 RECOMP_FLAGS_IN(); 5471 L_47036D9B: 5472 /* cmp MEM32(esp + 0x1C), esi */ /* 0x47036D9B: cmp dword ptr [esp + 0x1c], esi */ 5473 _flag_a = (uint32_t)(MEM32(esp + 0x1C)); _flag_b = (uint32_t)(esi); 5474 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5475 _flag_k = FK_CMP; 5476 if (CMP_EQ(_flag_a, _flag_b)) goto L_47036DAC; /* 0x47036D9F: je 0x47036dac */ 5477 L_47036DA1: 5478 edx = MEM32(esp + 0x18); /* 0x47036DA1: mov edx, dword ptr [esp + 0x18] */ 5479 PUSH32(esp, edx); /* 0x47036DA5: push edx */ 5480 MEM32(esp + 0x20) = esi; /* 0x47036DA6: mov dword ptr [esp + 0x20], esi */ 5481 RECOMP_ICALL(edi); /* 0x47036DAA: call edi */ 5482 RECOMP_FLAGS_IN(); 5483 L_47036DAC: 5484 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5485 eax = 0; /* 0x47036DAC: xor eax, eax */ 5486 _cf = 0; 5487 _flag_k = FK_TEST; 5488 goto L_47036EB5; /* 0x47036DAE: jmp 0x47036eb5 */ 5489 L_47036DB3: 5490 eax = MEM32(esi); /* 0x47036DB3: mov eax, dword ptr [esi] */ 5491 ecx = edi + 0x60; /* 0x47036DB5: lea ecx, [edi + 0x60] */ 5492 PUSH32(esp, ecx); /* 0x47036DB8: push ecx */ 5493 ecx = esi; /* 0x47036DB9: mov ecx, esi */ 5494 RECOMP_ICALL(MEM32(eax + 0x1C)); /* 0x47036DBB: call dword ptr [eax + 0x1c] */ 5495 RECOMP_FLAGS_IN(); 5496 /* test eax, eax */ /* 0x47036DBE: test eax, eax */ 5497 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5498 _cf = 0; 5499 _flag_k = FK_TEST; 5500 if (TEST_Z(_flag_a, _flag_b)) goto L_47036DFD; /* 0x47036DC0: je 0x47036dfd */ 5501 L_47036DC2: 5502 ecx = MEM32(edi + 0x58); /* 0x47036DC2: mov ecx, dword ptr [edi + 0x58] */ 5503 eax = MEM32(esp + 0x14); /* 0x47036DC5: mov eax, dword ptr [esp + 0x14] */ 5504 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5505 ecx = ecx + 1; /* 0x47036DC9: inc ecx */ 5506 _flag_k = FK_INC; 5507 _flag_a = (uint32_t)((esi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((esi | 0xFFFFFFFFu)); 5508 esi = esi | 0xFFFFFFFFu; /* 0x47036DCA: or esi, 0xffffffff */ 5509 _cf = 0; 5510 _flag_k = FK_TEST; 5511 /* cmp eax, esi */ /* 0x47036DCD: cmp eax, esi */ 5512 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 5513 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5514 _flag_k = FK_CMP; 5515 MEM32(edi + 0x58) = ecx; /* 0x47036DCF: mov dword ptr [edi + 0x58], ecx */ 5516 edi = MEM32(0x470AC190); /* 0x47036DD2: mov edi, dword ptr [0x470ac190] */ 5517 if (CMP_EQ(_flag_a, _flag_b)) goto L_47036DE5; /* 0x47036DD8: je 0x47036de5 */ 5518 L_47036DDA: 5519 edx = MEM32(esp + 0x10); /* 0x47036DDA: mov edx, dword ptr [esp + 0x10] */ 5520 PUSH32(esp, edx); /* 0x47036DDE: push edx */ 5521 MEM32(esp + 0x18) = esi; /* 0x47036DDF: mov dword ptr [esp + 0x18], esi */ 5522 RECOMP_ICALL(edi); /* 0x47036DE3: call edi */ 5523 RECOMP_FLAGS_IN(); 5524 L_47036DE5: 5525 /* cmp MEM32(esp + 0x1C), esi */ /* 0x47036DE5: cmp dword ptr [esp + 0x1c], esi */ 5526 _flag_a = (uint32_t)(MEM32(esp + 0x1C)); _flag_b = (uint32_t)(esi); 5527 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5528 _flag_k = FK_CMP; 5529 if (CMP_EQ(_flag_a, _flag_b)) goto L_47036DF6; /* 0x47036DE9: je 0x47036df6 */ 5530 L_47036DEB: 5531 eax = MEM32(esp + 0x18); /* 0x47036DEB: mov eax, dword ptr [esp + 0x18] */ 5532 PUSH32(esp, eax); /* 0x47036DEF: push eax */ 5533 MEM32(esp + 0x20) = esi; /* 0x47036DF0: mov dword ptr [esp + 0x20], esi */ 5534 RECOMP_ICALL(edi); /* 0x47036DF4: call edi */ 5535 RECOMP_FLAGS_IN(); 5536 L_47036DF6: 5537 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5538 eax = 0; /* 0x47036DF6: xor eax, eax */ 5539 _cf = 0; 5540 _flag_k = FK_TEST; 5541 goto L_47036EB5; /* 0x47036DF8: jmp 0x47036eb5 */ 5542 L_47036DFD: 5543 ecx = MEM32(edi + 0x54); /* 0x47036DFD: mov ecx, dword ptr [edi + 0x54] */ 5544 edx = MEM32(ecx); /* 0x47036E00: mov edx, dword ptr [ecx] */ 5545 RECOMP_ICALL(MEM32(edx + 0x48)); /* 0x47036E02: call dword ptr [edx + 0x48] */ 5546 RECOMP_FLAGS_IN(); 5547 /* test eax, eax */ /* 0x47036E05: test eax, eax */ 5548 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5549 _cf = 0; 5550 _flag_k = FK_TEST; 5551 eax = MEM32(esi + 0x40); /* 0x47036E07: mov eax, dword ptr [esi + 0x40] */ 5552 if (TEST_NZ(_flag_a, _flag_b)) goto L_47036E48; /* 0x47036E0A: jne 0x47036e48 */ 5553 L_47036E0C: 5554 /* cmp eax, ebx */ /* 0x47036E0C: cmp eax, ebx */ 5555 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5556 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5557 _flag_k = FK_CMP; 5558 if (CMP_NE(_flag_a, _flag_b)) goto L_47036E4C; /* 0x47036E0E: jne 0x47036e4c */ 5559 L_47036E10: 5560 _flag_a = (uint32_t)((esi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((esi | 0xFFFFFFFFu)); 5561 esi = esi | 0xFFFFFFFFu; /* 0x47036E10: or esi, 0xffffffff */ 5562 _cf = 0; 5563 _flag_k = FK_TEST; 5564 PUSH32(esp, esi); /* 0x47036E13: push esi */ 5565 PUSH32(esp, edi); /* 0x47036E14: push edi */ 5566 ecx = ebp; /* 0x47036E15: mov ecx, ebp */ 5567 RECOMP_ICALL(0x470359F0u); /* 0x47036E17: call 0x470359f0 */ /* not lifted */ 5568 RECOMP_FLAGS_IN(); 5569 /* cmp MEM32(esp + 0x14), esi */ /* 0x47036E1C: cmp dword ptr [esp + 0x14], esi */ 5570 _flag_a = (uint32_t)(MEM32(esp + 0x14)); _flag_b = (uint32_t)(esi); 5571 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5572 _flag_k = FK_CMP; 5573 edi = MEM32(0x470AC190); /* 0x47036E20: mov edi, dword ptr [0x470ac190] */ 5574 if (CMP_EQ(_flag_a, _flag_b)) goto L_47036E33; /* 0x47036E26: je 0x47036e33 */ 5575 L_47036E28: 5576 eax = MEM32(esp + 0x10); /* 0x47036E28: mov eax, dword ptr [esp + 0x10] */ 5577 PUSH32(esp, eax); /* 0x47036E2C: push eax */ 5578 MEM32(esp + 0x18) = esi; /* 0x47036E2D: mov dword ptr [esp + 0x18], esi */ 5579 RECOMP_ICALL(edi); /* 0x47036E31: call edi */ 5580 RECOMP_FLAGS_IN(); 5581 L_47036E33: 5582 /* cmp MEM32(esp + 0x1C), esi */ /* 0x47036E33: cmp dword ptr [esp + 0x1c], esi */ 5583 _flag_a = (uint32_t)(MEM32(esp + 0x1C)); _flag_b = (uint32_t)(esi); 5584 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5585 _flag_k = FK_CMP; 5586 if (CMP_EQ(_flag_a, _flag_b)) goto L_47036E44; /* 0x47036E37: je 0x47036e44 */ 5587 L_47036E39: 5588 ecx = MEM32(esp + 0x18); /* 0x47036E39: mov ecx, dword ptr [esp + 0x18] */ 5589 PUSH32(esp, ecx); /* 0x47036E3D: push ecx */ 5590 MEM32(esp + 0x20) = esi; /* 0x47036E3E: mov dword ptr [esp + 0x20], esi */ 5591 RECOMP_ICALL(edi); /* 0x47036E42: call edi */ 5592 RECOMP_FLAGS_IN(); 5593 L_47036E44: 5594 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5595 eax = 0; /* 0x47036E44: xor eax, eax */ 5596 _cf = 0; 5597 _flag_k = FK_TEST; 5598 goto L_47036EB5; /* 0x47036E46: jmp 0x47036eb5 */ 5599 L_47036E48: 5600 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5601 eax = eax - 1; /* 0x47036E48: dec eax */ 5602 _flag_k = FK_DEC; 5603 MEM32(esi + 0x40) = eax; /* 0x47036E49: mov dword ptr [esi + 0x40], eax */ 5604 L_47036E4C: 5605 esi = MEM32(0x470AC3C8); /* 0x47036E4C: mov esi, dword ptr [0x470ac3c8] */ 5606 RECOMP_ICALL(esi); /* 0x47036E52: call esi */ 5607 RECOMP_FLAGS_IN(); 5608 MEM32(eax) = 0x2733u; /* 0x47036E54: mov dword ptr [eax], 0x2733 */ 5609 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47036E5A: call dword ptr [0x470ac150] */ 5610 RECOMP_FLAGS_IN(); 5611 edi = eax; /* 0x47036E60: mov edi, eax */ 5612 RECOMP_ICALL(esi); /* 0x47036E62: call esi */ 5613 RECOMP_FLAGS_IN(); 5614 eax = MEM32(eax); /* 0x47036E64: mov eax, dword ptr [eax] */ 5615 /* cmp eax, ebx */ /* 0x47036E66: cmp eax, ebx */ 5616 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5617 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5618 _flag_k = FK_CMP; 5619 if (CMP_NE(_flag_a, _flag_b)) goto L_47036E6C; /* 0x47036E68: jne 0x47036e6c */ 5620 L_47036E6A: 5621 eax = edi; /* 0x47036E6A: mov eax, edi */ 5622 L_47036E6C: 5623 PUSH32(esp, ebx); /* 0x47036E6C: push ebx */ 5624 PUSH32(esp, ebx); /* 0x47036E6D: push ebx */ 5625 PUSH32(esp, 1); /* 0x47036E6E: push 1 */ 5626 PUSH32(esp, eax); /* 0x47036E70: push eax */ 5627 _flag_a = (uint32_t)((esi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((esi | 0xFFFFFFFFu)); 5628 esi = esi | 0xFFFFFFFFu; /* 0x47036E71: or esi, 0xffffffff */ 5629 _cf = 0; 5630 _flag_k = FK_TEST; 5631 PUSH32(esp, esi); /* 0x47036E74: push esi */ 5632 PUSH32(esp, 0x335u); /* 0x47036E75: push 0x335 */ 5633 PUSH32(esp, 0x47106DE4u); /* 0x47036E7A: push 0x47106de4 */ 5634 RECOMP_ICALL(0x47039020u); /* 0x47036E7F: call 0x47039020 */ /* not lifted */ 5635 RECOMP_FLAGS_IN(); 5636 ecx = eax; /* 0x47036E84: mov ecx, eax */ 5637 RECOMP_ICALL(0x4703A340u); /* 0x47036E86: call 0x4703a340 */ /* not lifted */ 5638 RECOMP_FLAGS_IN(); 5639 /* cmp MEM32(esp + 0x14), esi */ /* 0x47036E8B: cmp dword ptr [esp + 0x14], esi */ 5640 _flag_a = (uint32_t)(MEM32(esp + 0x14)); _flag_b = (uint32_t)(esi); 5641 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5642 _flag_k = FK_CMP; 5643 edi = MEM32(0x470AC190); /* 0x47036E8F: mov edi, dword ptr [0x470ac190] */ 5644 if (CMP_EQ(_flag_a, _flag_b)) goto L_47036EA2; /* 0x47036E95: je 0x47036ea2 */ 5645 L_47036E97: 5646 edx = MEM32(esp + 0x10); /* 0x47036E97: mov edx, dword ptr [esp + 0x10] */ 5647 PUSH32(esp, edx); /* 0x47036E9B: push edx */ 5648 MEM32(esp + 0x18) = esi; /* 0x47036E9C: mov dword ptr [esp + 0x18], esi */ 5649 RECOMP_ICALL(edi); /* 0x47036EA0: call edi */ 5650 RECOMP_FLAGS_IN(); 5651 L_47036EA2: 5652 /* cmp MEM32(esp + 0x1C), esi */ /* 0x47036EA2: cmp dword ptr [esp + 0x1c], esi */ 5653 _flag_a = (uint32_t)(MEM32(esp + 0x1C)); _flag_b = (uint32_t)(esi); 5654 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5655 _flag_k = FK_CMP; 5656 if (CMP_EQ(_flag_a, _flag_b)) goto L_47036EB3; /* 0x47036EA6: je 0x47036eb3 */ 5657 L_47036EA8: 5658 eax = MEM32(esp + 0x18); /* 0x47036EA8: mov eax, dword ptr [esp + 0x18] */ 5659 PUSH32(esp, eax); /* 0x47036EAC: push eax */ 5660 MEM32(esp + 0x20) = esi; /* 0x47036EAD: mov dword ptr [esp + 0x20], esi */ 5661 RECOMP_ICALL(edi); /* 0x47036EB1: call edi */ 5662 RECOMP_FLAGS_IN(); 5663 L_47036EB3: 5664 eax = esi; /* 0x47036EB3: mov eax, esi */ 5665 L_47036EB5: 5666 ecx = MEM32(esp + 0x20); /* 0x47036EB5: mov ecx, dword ptr [esp + 0x20] */ 5667 edi = POP32_VAL(esp); /* 0x47036EB9: pop edi */ 5668 esi = POP32_VAL(esp); /* 0x47036EBA: pop esi */ 5669 ebp = POP32_VAL(esp); /* 0x47036EBB: pop ebp */ 5670 ebx = POP32_VAL(esp); /* 0x47036EBC: pop ebx */ 5671 MEM32(FS_BASE + (0)) = ecx; /* 0x47036EBD: mov dword ptr fs:[0], ecx */ 5672 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 5673 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5674 esp = esp + 0x1Cu; /* 0x47036EC4: add esp, 0x1c */ 5675 _flag_k = FK_ADD; 5676 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47036EC7: ret 4 */ 5677 RECOMP_REGS_OUT(); 5678 } 5679 5680 void sub_47036EB5(void) { 5681 int _fpu_cmp = 0; 5682 uint32_t _cf = 0; 5683 int _df = 1; 5684 uint32_t _flag_k = FK_NONE; 5685 uint32_t _flag_a = 0, _flag_b = 0; 5686 uint32_t _itail_tgt = 0; 5687 RECOMP_REGS_LOCALS 5688 RECOMP_ENTER(0x47036EB5u); 5689 5690 L_47036EB5: 5691 ecx = MEM32(esp + 0x20); /* 0x47036EB5: mov ecx, dword ptr [esp + 0x20] */ 5692 edi = POP32_VAL(esp); /* 0x47036EB9: pop edi */ 5693 esi = POP32_VAL(esp); /* 0x47036EBA: pop esi */ 5694 ebp = POP32_VAL(esp); /* 0x47036EBB: pop ebp */ 5695 ebx = POP32_VAL(esp); /* 0x47036EBC: pop ebx */ 5696 MEM32(FS_BASE + (0)) = ecx; /* 0x47036EBD: mov dword ptr fs:[0], ecx */ 5697 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 5698 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5699 esp = esp + 0x1Cu; /* 0x47036EC4: add esp, 0x1c */ 5700 _flag_k = FK_ADD; 5701 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47036EC7: ret 4 */ 5702 RECOMP_REGS_OUT(); 5703 } 5704 5705 void sub_47036ED0(void) { 5706 int _fpu_cmp = 0; 5707 uint32_t _cf = 0; 5708 int _df = 1; 5709 uint32_t _flag_k = FK_NONE; 5710 uint32_t _flag_a = 0, _flag_b = 0; 5711 uint32_t _itail_tgt = 0; 5712 RECOMP_REGS_LOCALS 5713 RECOMP_ENTER(0x47036ED0u); 5714 5715 L_47036ED0: 5716 PUSH32(esp, 0xFFFFFFFFu); /* 0x47036ED0: push -1 */ 5717 PUSH32(esp, 0x470A5D18u); /* 0x47036ED2: push 0x470a5d18 */ 5718 eax = MEM32(FS_BASE + (0)); /* 0x47036ED7: mov eax, dword ptr fs:[0] */ 5719 PUSH32(esp, eax); /* 0x47036EDD: push eax */ 5720 MEM32(FS_BASE + (0)) = esp; /* 0x47036EDE: mov dword ptr fs:[0], esp */ 5721 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5722 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5723 esp = esp - 8; /* 0x47036EE5: sub esp, 8 */ 5724 _flag_k = FK_CMP; 5725 PUSH32(esp, ebx); /* 0x47036EE8: push ebx */ 5726 PUSH32(esp, ebp); /* 0x47036EE9: push ebp */ 5727 PUSH32(esp, esi); /* 0x47036EEA: push esi */ 5728 esi = ecx; /* 0x47036EEB: mov esi, ecx */ 5729 PUSH32(esp, edi); /* 0x47036EED: push edi */ 5730 ebx = esi + 0x44; /* 0x47036EEE: lea ebx, [esi + 0x44] */ 5731 PUSH32(esp, ebx); /* 0x47036EF1: push ebx */ 5732 MEM32(esp + 0x14) = ebx; /* 0x47036EF2: mov dword ptr [esp + 0x14], ebx */ 5733 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47036EF6: call dword ptr [0x470ac180] */ 5734 RECOMP_FLAGS_IN(); 5735 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5736 eax = 0; /* 0x47036EFC: xor eax, eax */ 5737 _cf = 0; 5738 _flag_k = FK_TEST; 5739 MEM32(esp + 0x14) = eax; /* 0x47036EFE: mov dword ptr [esp + 0x14], eax */ 5740 edi = MEM32(esp + 0x28); /* 0x47036F02: mov edi, dword ptr [esp + 0x28] */ 5741 MEM32(esp + 0x20) = eax; /* 0x47036F06: mov dword ptr [esp + 0x20], eax */ 5742 eax = MEM32(esi); /* 0x47036F0A: mov eax, dword ptr [esi] */ 5743 ebp = edi + 0x60; /* 0x47036F0C: lea ebp, [edi + 0x60] */ 5744 PUSH32(esp, ebp); /* 0x47036F0F: push ebp */ 5745 ecx = esi; /* 0x47036F10: mov ecx, esi */ 5746 RECOMP_ICALL(MEM32(eax + 0x1C)); /* 0x47036F12: call dword ptr [eax + 0x1c] */ 5747 RECOMP_FLAGS_IN(); 5748 /* test eax, eax */ /* 0x47036F15: test eax, eax */ 5749 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5750 _cf = 0; 5751 _flag_k = FK_TEST; 5752 if (TEST_NZ(_flag_a, _flag_b)) goto L_47036F67; /* 0x47036F17: jne 0x47036f67 */ 5753 L_47036F19: 5754 esi = MEM32(0x470AC3C8); /* 0x47036F19: mov esi, dword ptr [0x470ac3c8] */ 5755 RECOMP_ICALL(esi); /* 0x47036F1F: call esi */ 5756 RECOMP_FLAGS_IN(); 5757 MEM32(eax) = 0xDu; /* 0x47036F21: mov dword ptr [eax], 0xd */ 5758 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47036F27: call dword ptr [0x470ac150] */ 5759 RECOMP_FLAGS_IN(); 5760 edi = eax; /* 0x47036F2D: mov edi, eax */ 5761 RECOMP_ICALL(esi); /* 0x47036F2F: call esi */ 5762 RECOMP_FLAGS_IN(); 5763 eax = MEM32(eax); /* 0x47036F31: mov eax, dword ptr [eax] */ 5764 /* test eax, eax */ /* 0x47036F33: test eax, eax */ 5765 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5766 _cf = 0; 5767 _flag_k = FK_TEST; 5768 if (TEST_NZ(_flag_a, _flag_b)) goto L_47036F39; /* 0x47036F35: jne 0x47036f39 */ 5769 L_47036F37: 5770 eax = edi; /* 0x47036F37: mov eax, edi */ 5771 L_47036F39: 5772 PUSH32(esp, 0); /* 0x47036F39: push 0 */ 5773 PUSH32(esp, 0); /* 0x47036F3B: push 0 */ 5774 PUSH32(esp, 1); /* 0x47036F3D: push 1 */ 5775 PUSH32(esp, eax); /* 0x47036F3F: push eax */ 5776 PUSH32(esp, 0xFFFFFFFFu); /* 0x47036F40: push -1 */ 5777 PUSH32(esp, 0x343u); /* 0x47036F42: push 0x343 */ 5778 PUSH32(esp, 0x47106DE4u); /* 0x47036F47: push 0x47106de4 */ 5779 RECOMP_ICALL(0x47039020u); /* 0x47036F4C: call 0x47039020 */ /* not lifted */ 5780 RECOMP_FLAGS_IN(); 5781 ecx = eax; /* 0x47036F51: mov ecx, eax */ 5782 RECOMP_ICALL(0x4703A340u); /* 0x47036F53: call 0x4703a340 */ /* not lifted */ 5783 RECOMP_FLAGS_IN(); 5784 PUSH32(esp, ebx); /* 0x47036F58: push ebx */ 5785 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47036F59: call dword ptr [0x470ac190] */ 5786 RECOMP_FLAGS_IN(); 5787 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 5788 eax = eax | 0xFFFFFFFFu; /* 0x47036F5F: or eax, 0xffffffff */ 5789 _cf = 0; 5790 _flag_k = FK_TEST; 5791 goto L_47037014; /* 0x47036F62: jmp 0x47037014 */ 5792 L_47036F67: 5793 /* cmp MEM32(esi + 0x14), 1 */ /* 0x47036F67: cmp dword ptr [esi + 0x14], 1 */ 5794 _flag_a = (uint32_t)(MEM32(esi + 0x14)); _flag_b = (uint32_t)(1); 5795 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5796 _flag_k = FK_CMP; 5797 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703700B; /* 0x47036F6B: je 0x4703700b */ 5798 L_47036F71: 5799 eax = MEM32(esp + 0x2C); /* 0x47036F71: mov eax, dword ptr [esp + 0x2c] */ 5800 /* test eax, eax */ /* 0x47036F75: test eax, eax */ 5801 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5802 _cf = 0; 5803 _flag_k = FK_TEST; 5804 if (TEST_Z(_flag_a, _flag_b)) goto L_4703700B; /* 0x47036F77: je 0x4703700b */ 5805 L_47036F7D: 5806 ebx = esi + 0xC; /* 0x47036F7D: lea ebx, [esi + 0xc] */ 5807 PUSH32(esp, edi); /* 0x47036F80: push edi */ 5808 ecx = ebx; /* 0x47036F81: mov ecx, ebx */ 5809 RECOMP_ICALL(0x47035B00u); /* 0x47036F83: call 0x47035b00 */ /* not lifted */ 5810 RECOMP_FLAGS_IN(); 5811 ecx = MEM32(esp + 0x2C); /* 0x47036F88: mov ecx, dword ptr [esp + 0x2c] */ 5812 PUSH32(esp, ecx); /* 0x47036F8C: push ecx */ 5813 PUSH32(esp, edi); /* 0x47036F8D: push edi */ 5814 ecx = ebx; /* 0x47036F8E: mov ecx, ebx */ 5815 RECOMP_ICALL(0x470359F0u); /* 0x47036F90: call 0x470359f0 */ /* not lifted */ 5816 RECOMP_FLAGS_IN(); 5817 ecx = MEM32(edi + 0x54); /* 0x47036F95: mov ecx, dword ptr [edi + 0x54] */ 5818 edx = MEM32(ecx); /* 0x47036F98: mov edx, dword ptr [ecx] */ 5819 RECOMP_ICALL(MEM32(edx + 0x48)); /* 0x47036F9A: call dword ptr [edx + 0x48] */ 5820 RECOMP_FLAGS_IN(); 5821 /* test eax, eax */ /* 0x47036F9D: test eax, eax */ 5822 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5823 _cf = 0; 5824 _flag_k = FK_TEST; 5825 if (TEST_NZ(_flag_a, _flag_b)) goto L_47036FB4; /* 0x47036F9F: jne 0x47036fb4 */ 5826 L_47036FA1: 5827 eax = MEM32(esi); /* 0x47036FA1: mov eax, dword ptr [esi] */ 5828 PUSH32(esp, ebp); /* 0x47036FA3: push ebp */ 5829 ecx = esi; /* 0x47036FA4: mov ecx, esi */ 5830 RECOMP_ICALL(MEM32(eax + 0x1C)); /* 0x47036FA6: call dword ptr [eax + 0x1c] */ 5831 RECOMP_FLAGS_IN(); 5832 /* test eax, eax */ /* 0x47036FA9: test eax, eax */ 5833 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5834 _cf = 0; 5835 _flag_k = FK_TEST; 5836 if (TEST_Z(_flag_a, _flag_b)) goto L_47036FB4; /* 0x47036FAB: je 0x47036fb4 */ 5837 L_47036FAD: 5838 ecx = MEM32(esp + 0x10); /* 0x47036FAD: mov ecx, dword ptr [esp + 0x10] */ 5839 PUSH32(esp, ecx); /* 0x47036FB1: push ecx */ 5840 goto L_4703700C; /* 0x47036FB2: jmp 0x4703700c */ 5841 L_47036FB4: 5842 PUSH32(esp, edi); /* 0x47036FB4: push edi */ 5843 ecx = esi; /* 0x47036FB5: mov ecx, esi */ 5844 RECOMP_ICALL(0x47037130u); /* 0x47036FB7: call 0x47037130 */ /* not lifted */ 5845 RECOMP_FLAGS_IN(); 5846 esi = MEM32(0x470AC3C8); /* 0x47036FBC: mov esi, dword ptr [0x470ac3c8] */ 5847 RECOMP_ICALL(esi); /* 0x47036FC2: call esi */ 5848 RECOMP_FLAGS_IN(); 5849 MEM32(eax) = 0x2733u; /* 0x47036FC4: mov dword ptr [eax], 0x2733 */ 5850 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47036FCA: call dword ptr [0x470ac150] */ 5851 RECOMP_FLAGS_IN(); 5852 edi = eax; /* 0x47036FD0: mov edi, eax */ 5853 RECOMP_ICALL(esi); /* 0x47036FD2: call esi */ 5854 RECOMP_FLAGS_IN(); 5855 eax = MEM32(eax); /* 0x47036FD4: mov eax, dword ptr [eax] */ 5856 /* test eax, eax */ /* 0x47036FD6: test eax, eax */ 5857 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5858 _cf = 0; 5859 _flag_k = FK_TEST; 5860 if (TEST_NZ(_flag_a, _flag_b)) goto L_47036FDC; /* 0x47036FD8: jne 0x47036fdc */ 5861 L_47036FDA: 5862 eax = edi; /* 0x47036FDA: mov eax, edi */ 5863 L_47036FDC: 5864 PUSH32(esp, 0); /* 0x47036FDC: push 0 */ 5865 PUSH32(esp, 0); /* 0x47036FDE: push 0 */ 5866 PUSH32(esp, 1); /* 0x47036FE0: push 1 */ 5867 PUSH32(esp, eax); /* 0x47036FE2: push eax */ 5868 PUSH32(esp, 0xFFFFFFFFu); /* 0x47036FE3: push -1 */ 5869 PUSH32(esp, 0x361u); /* 0x47036FE5: push 0x361 */ 5870 PUSH32(esp, 0x47106DE4u); /* 0x47036FEA: push 0x47106de4 */ 5871 RECOMP_ICALL(0x47039020u); /* 0x47036FEF: call 0x47039020 */ /* not lifted */ 5872 RECOMP_FLAGS_IN(); 5873 ecx = eax; /* 0x47036FF4: mov ecx, eax */ 5874 RECOMP_ICALL(0x4703A340u); /* 0x47036FF6: call 0x4703a340 */ /* not lifted */ 5875 RECOMP_FLAGS_IN(); 5876 edx = MEM32(esp + 0x10); /* 0x47036FFB: mov edx, dword ptr [esp + 0x10] */ 5877 PUSH32(esp, edx); /* 0x47036FFF: push edx */ 5878 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47037000: call dword ptr [0x470ac190] */ 5879 RECOMP_FLAGS_IN(); 5880 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 5881 eax = eax | 0xFFFFFFFFu; /* 0x47037006: or eax, 0xffffffff */ 5882 _cf = 0; 5883 _flag_k = FK_TEST; 5884 goto L_47037014; /* 0x47037009: jmp 0x47037014 */ 5885 L_4703700B: 5886 PUSH32(esp, ebx); /* 0x4703700B: push ebx */ 5887 L_4703700C: 5888 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4703700C: call dword ptr [0x470ac190] */ 5889 RECOMP_FLAGS_IN(); 5890 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5891 eax = 0; /* 0x47037012: xor eax, eax */ 5892 _cf = 0; 5893 _flag_k = FK_TEST; 5894 L_47037014: 5895 ecx = MEM32(esp + 0x18); /* 0x47037014: mov ecx, dword ptr [esp + 0x18] */ 5896 edi = POP32_VAL(esp); /* 0x47037018: pop edi */ 5897 esi = POP32_VAL(esp); /* 0x47037019: pop esi */ 5898 ebp = POP32_VAL(esp); /* 0x4703701A: pop ebp */ 5899 ebx = POP32_VAL(esp); /* 0x4703701B: pop ebx */ 5900 MEM32(FS_BASE + (0)) = ecx; /* 0x4703701C: mov dword ptr fs:[0], ecx */ 5901 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 5902 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5903 esp = esp + 0x14u; /* 0x47037023: add esp, 0x14 */ 5904 _flag_k = FK_ADD; 5905 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47037026: ret 8 */ 5906 RECOMP_REGS_OUT(); 5907 } 5908 5909 void sub_47037014(void) { 5910 int _fpu_cmp = 0; 5911 uint32_t _cf = 0; 5912 int _df = 1; 5913 uint32_t _flag_k = FK_NONE; 5914 uint32_t _flag_a = 0, _flag_b = 0; 5915 uint32_t _itail_tgt = 0; 5916 RECOMP_REGS_LOCALS 5917 RECOMP_ENTER(0x47037014u); 5918 5919 L_47037014: 5920 ecx = MEM32(esp + 0x18); /* 0x47037014: mov ecx, dword ptr [esp + 0x18] */ 5921 edi = POP32_VAL(esp); /* 0x47037018: pop edi */ 5922 esi = POP32_VAL(esp); /* 0x47037019: pop esi */ 5923 ebp = POP32_VAL(esp); /* 0x4703701A: pop ebp */ 5924 ebx = POP32_VAL(esp); /* 0x4703701B: pop ebx */ 5925 MEM32(FS_BASE + (0)) = ecx; /* 0x4703701C: mov dword ptr fs:[0], ecx */ 5926 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 5927 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5928 esp = esp + 0x14u; /* 0x47037023: add esp, 0x14 */ 5929 _flag_k = FK_ADD; 5930 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47037026: ret 8 */ 5931 RECOMP_REGS_OUT(); 5932 } 5933 5934 void sub_47037030(void) { 5935 int _fpu_cmp = 0; 5936 uint32_t _cf = 0; 5937 int _df = 1; 5938 uint32_t _flag_k = FK_NONE; 5939 uint32_t _flag_a = 0, _flag_b = 0; 5940 uint32_t _itail_tgt = 0; 5941 RECOMP_REGS_LOCALS 5942 RECOMP_ENTER(0x47037030u); 5943 5944 L_47037030: 5945 PUSH32(esp, 0xFFFFFFFFu); /* 0x47037030: push -1 */ 5946 PUSH32(esp, 0x470A5D38u); /* 0x47037032: push 0x470a5d38 */ 5947 eax = MEM32(FS_BASE + (0)); /* 0x47037037: mov eax, dword ptr fs:[0] */ 5948 PUSH32(esp, eax); /* 0x4703703D: push eax */ 5949 MEM32(FS_BASE + (0)) = esp; /* 0x4703703E: mov dword ptr fs:[0], esp */ 5950 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5951 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5952 esp = esp - 8; /* 0x47037045: sub esp, 8 */ 5953 _flag_k = FK_CMP; 5954 PUSH32(esp, ebx); /* 0x47037048: push ebx */ 5955 PUSH32(esp, ebp); /* 0x47037049: push ebp */ 5956 PUSH32(esp, esi); /* 0x4703704A: push esi */ 5957 esi = ecx; /* 0x4703704B: mov esi, ecx */ 5958 PUSH32(esp, edi); /* 0x4703704D: push edi */ 5959 ebx = esi + 0x44; /* 0x4703704E: lea ebx, [esi + 0x44] */ 5960 PUSH32(esp, ebx); /* 0x47037051: push ebx */ 5961 MEM32(esp + 0x14) = ebx; /* 0x47037052: mov dword ptr [esp + 0x14], ebx */ 5962 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47037056: call dword ptr [0x470ac180] */ 5963 RECOMP_FLAGS_IN(); 5964 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5965 ecx = 0; /* 0x4703705C: xor ecx, ecx */ 5966 _cf = 0; 5967 _flag_k = FK_TEST; 5968 MEM32(esp + 0x14) = ecx; /* 0x4703705E: mov dword ptr [esp + 0x14], ecx */ 5969 eax = MEM32(esi + 0xC); /* 0x47037062: mov eax, dword ptr [esi + 0xc] */ 5970 /* cmp eax, ecx */ /* 0x47037065: cmp eax, ecx */ 5971 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5972 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5973 _flag_k = FK_CMP; 5974 ebp = esi + 0xC; /* 0x47037067: lea ebp, [esi + 0xc] */ 5975 MEM32(esp + 0x20) = ecx; /* 0x4703706A: mov dword ptr [esp + 0x20], ecx */ 5976 if (CMP_EQ(_flag_a, _flag_b)) goto L_470370C4; /* 0x4703706E: je 0x470370c4 */ 5977 L_47037070: 5978 edi = MEM32(esp + 0x28); /* 0x47037070: mov edi, dword ptr [esp + 0x28] */ 5979 eax = MEM32(esi); /* 0x47037074: mov eax, dword ptr [esi] */ 5980 ecx = edi + 0x60; /* 0x47037076: lea ecx, [edi + 0x60] */ 5981 PUSH32(esp, ecx); /* 0x47037079: push ecx */ 5982 ecx = esi; /* 0x4703707A: mov ecx, esi */ 5983 RECOMP_ICALL(MEM32(eax + 0x1C)); /* 0x4703707C: call dword ptr [eax + 0x1c] */ 5984 RECOMP_FLAGS_IN(); 5985 /* test eax, eax */ /* 0x4703707F: test eax, eax */ 5986 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5987 _cf = 0; 5988 _flag_k = FK_TEST; 5989 if (TEST_Z(_flag_a, _flag_b)) goto L_470370C4; /* 0x47037081: je 0x470370c4 */ 5990 L_47037083: 5991 ecx = MEM32(edi + 0x54); /* 0x47037083: mov ecx, dword ptr [edi + 0x54] */ 5992 edx = MEM32(ecx); /* 0x47037086: mov edx, dword ptr [ecx] */ 5993 RECOMP_ICALL(MEM32(edx + 0x48)); /* 0x47037088: call dword ptr [edx + 0x48] */ 5994 RECOMP_FLAGS_IN(); 5995 /* cmp eax, 1 */ /* 0x4703708B: cmp eax, 1 */ 5996 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5997 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5998 _flag_k = FK_CMP; 5999 if (CMP_NE(_flag_a, _flag_b)) goto L_47037093; /* 0x4703708E: jne 0x47037093 */ 6000 L_47037090: 6001 _flag_a = (uint32_t)(MEM32(esi + 0x40)); _flag_b = (uint32_t)(1); 6002 MEM32(esi + 0x40) = MEM32(esi + 0x40) - 1; /* 0x47037090: dec dword ptr [esi + 0x40] */ 6003 _flag_k = FK_DEC; 6004 L_47037093: 6005 eax = MEM32(edi + 0x58); /* 0x47037093: mov eax, dword ptr [edi + 0x58] */ 6006 /* test eax, eax */ /* 0x47037096: test eax, eax */ 6007 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6008 _cf = 0; 6009 _flag_k = FK_TEST; 6010 if (TEST_LE(_flag_a, _flag_b)) goto L_470370A9; /* 0x47037098: jle 0x470370a9 */ 6011 L_4703709A: 6012 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6013 eax = eax - 1; /* 0x4703709A: dec eax */ 6014 _flag_k = FK_DEC; 6015 PUSH32(esp, ebx); /* 0x4703709B: push ebx */ 6016 MEM32(edi + 0x58) = eax; /* 0x4703709C: mov dword ptr [edi + 0x58], eax */ 6017 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4703709F: call dword ptr [0x470ac190] */ 6018 RECOMP_FLAGS_IN(); 6019 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6020 eax = 0; /* 0x470370A5: xor eax, eax */ 6021 _cf = 0; 6022 _flag_k = FK_TEST; 6023 goto L_4703710D; /* 0x470370A7: jmp 0x4703710d */ 6024 L_470370A9: 6025 PUSH32(esp, edi); /* 0x470370A9: push edi */ 6026 ecx = ebp; /* 0x470370AA: mov ecx, ebp */ 6027 RECOMP_ICALL(0x47035B00u); /* 0x470370AC: call 0x47035b00 */ /* not lifted */ 6028 RECOMP_FLAGS_IN(); 6029 PUSH32(esp, edi); /* 0x470370B1: push edi */ 6030 ecx = esi; /* 0x470370B2: mov ecx, esi */ 6031 RECOMP_ICALL(0x47037130u); /* 0x470370B4: call 0x47037130 */ /* not lifted */ 6032 RECOMP_FLAGS_IN(); 6033 PUSH32(esp, ebx); /* 0x470370B9: push ebx */ 6034 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470370BA: call dword ptr [0x470ac190] */ 6035 RECOMP_FLAGS_IN(); 6036 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6037 eax = 0; /* 0x470370C0: xor eax, eax */ 6038 _cf = 0; 6039 _flag_k = FK_TEST; 6040 goto L_4703710D; /* 0x470370C2: jmp 0x4703710d */ 6041 L_470370C4: 6042 esi = MEM32(0x470AC3C8); /* 0x470370C4: mov esi, dword ptr [0x470ac3c8] */ 6043 RECOMP_ICALL(esi); /* 0x470370CA: call esi */ 6044 RECOMP_FLAGS_IN(); 6045 MEM32(eax) = 0xDu; /* 0x470370CC: mov dword ptr [eax], 0xd */ 6046 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470370D2: call dword ptr [0x470ac150] */ 6047 RECOMP_FLAGS_IN(); 6048 edi = eax; /* 0x470370D8: mov edi, eax */ 6049 RECOMP_ICALL(esi); /* 0x470370DA: call esi */ 6050 RECOMP_FLAGS_IN(); 6051 eax = MEM32(eax); /* 0x470370DC: mov eax, dword ptr [eax] */ 6052 /* test eax, eax */ /* 0x470370DE: test eax, eax */ 6053 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6054 _cf = 0; 6055 _flag_k = FK_TEST; 6056 if (TEST_NZ(_flag_a, _flag_b)) goto L_470370E4; /* 0x470370E0: jne 0x470370e4 */ 6057 L_470370E2: 6058 eax = edi; /* 0x470370E2: mov eax, edi */ 6059 L_470370E4: 6060 PUSH32(esp, 0); /* 0x470370E4: push 0 */ 6061 PUSH32(esp, 0); /* 0x470370E6: push 0 */ 6062 PUSH32(esp, 1); /* 0x470370E8: push 1 */ 6063 PUSH32(esp, eax); /* 0x470370EA: push eax */ 6064 PUSH32(esp, 0xFFFFFFFFu); /* 0x470370EB: push -1 */ 6065 PUSH32(esp, 0x36Fu); /* 0x470370ED: push 0x36f */ 6066 PUSH32(esp, 0x47106DE4u); /* 0x470370F2: push 0x47106de4 */ 6067 RECOMP_ICALL(0x47039020u); /* 0x470370F7: call 0x47039020 */ /* not lifted */ 6068 RECOMP_FLAGS_IN(); 6069 ecx = eax; /* 0x470370FC: mov ecx, eax */ 6070 RECOMP_ICALL(0x4703A340u); /* 0x470370FE: call 0x4703a340 */ /* not lifted */ 6071 RECOMP_FLAGS_IN(); 6072 PUSH32(esp, ebx); /* 0x47037103: push ebx */ 6073 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47037104: call dword ptr [0x470ac190] */ 6074 RECOMP_FLAGS_IN(); 6075 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 6076 eax = eax | 0xFFFFFFFFu; /* 0x4703710A: or eax, 0xffffffff */ 6077 _cf = 0; 6078 _flag_k = FK_TEST; 6079 L_4703710D: 6080 ecx = MEM32(esp + 0x18); /* 0x4703710D: mov ecx, dword ptr [esp + 0x18] */ 6081 edi = POP32_VAL(esp); /* 0x47037111: pop edi */ 6082 esi = POP32_VAL(esp); /* 0x47037112: pop esi */ 6083 ebp = POP32_VAL(esp); /* 0x47037113: pop ebp */ 6084 ebx = POP32_VAL(esp); /* 0x47037114: pop ebx */ 6085 MEM32(FS_BASE + (0)) = ecx; /* 0x47037115: mov dword ptr fs:[0], ecx */ 6086 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 6087 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6088 esp = esp + 0x14u; /* 0x4703711C: add esp, 0x14 */ 6089 _flag_k = FK_ADD; 6090 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703711F: ret 4 */ 6091 RECOMP_REGS_OUT(); 6092 } 6093 6094 void sub_47037130(void) { 6095 int _fpu_cmp = 0; 6096 uint32_t _cf = 0; 6097 int _df = 1; 6098 uint32_t _flag_k = FK_NONE; 6099 uint32_t _flag_a = 0, _flag_b = 0; 6100 uint32_t _itail_tgt = 0; 6101 RECOMP_REGS_LOCALS 6102 RECOMP_ENTER(0x47037130u); 6103 6104 L_47037130: 6105 eax = MEM32(FS_BASE + (0)); /* 0x47037130: mov eax, dword ptr fs:[0] */ 6106 PUSH32(esp, 0xFFFFFFFFu); /* 0x47037136: push -1 */ 6107 PUSH32(esp, 0x470A5D58u); /* 0x47037138: push 0x470a5d58 */ 6108 PUSH32(esp, eax); /* 0x4703713D: push eax */ 6109 MEM32(FS_BASE + (0)) = esp; /* 0x4703713E: mov dword ptr fs:[0], esp */ 6110 PUSH32(esp, esi); /* 0x47037145: push esi */ 6111 esi = ecx; /* 0x47037146: mov esi, ecx */ 6112 eax = MEM32(esi + 0xC); /* 0x47037148: mov eax, dword ptr [esi + 0xc] */ 6113 /* test eax, eax */ /* 0x4703714B: test eax, eax */ 6114 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6115 _cf = 0; 6116 _flag_k = FK_TEST; 6117 if (TEST_Z(_flag_a, _flag_b)) goto L_470371C3; /* 0x4703714D: je 0x470371c3 */ 6118 L_4703714F: 6119 ecx = MEM32(eax + 0x54); /* 0x4703714F: mov ecx, dword ptr [eax + 0x54] */ 6120 eax = MEM32(ecx); /* 0x47037152: mov eax, dword ptr [ecx] */ 6121 RECOMP_ICALL(MEM32(eax + 0x48)); /* 0x47037154: call dword ptr [eax + 0x48] */ 6122 RECOMP_FLAGS_IN(); 6123 /* test eax, eax */ /* 0x47037157: test eax, eax */ 6124 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6125 _cf = 0; 6126 _flag_k = FK_TEST; 6127 if (TEST_NZ(_flag_a, _flag_b)) goto L_470371B5; /* 0x47037159: jne 0x470371b5 */ 6128 L_4703715B: 6129 ecx = MEM32(esp + 0x14); /* 0x4703715B: mov ecx, dword ptr [esp + 0x14] */ 6130 ecx = MEM32(ecx + 0x54); /* 0x4703715F: mov ecx, dword ptr [ecx + 0x54] */ 6131 edx = MEM32(ecx); /* 0x47037162: mov edx, dword ptr [ecx] */ 6132 RECOMP_ICALL(MEM32(edx + 0x48)); /* 0x47037164: call dword ptr [edx + 0x48] */ 6133 RECOMP_FLAGS_IN(); 6134 /* test eax, eax */ /* 0x47037167: test eax, eax */ 6135 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6136 _cf = 0; 6137 _flag_k = FK_TEST; 6138 if (TEST_Z(_flag_a, _flag_b)) goto L_470371C3; /* 0x47037169: je 0x470371c3 */ 6139 L_4703716B: 6140 esi = MEM32(esi + 0xC); /* 0x4703716B: mov esi, dword ptr [esi + 0xc] */ 6141 MEM32(esp + 0x14) = esi; /* 0x4703716E: mov dword ptr [esp + 0x14], esi */ 6142 /* test esi, esi */ /* 0x47037172: test esi, esi */ 6143 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 6144 _cf = 0; 6145 _flag_k = FK_TEST; 6146 MEM32(esp + 0xC) = 0; /* 0x47037174: mov dword ptr [esp + 0xc], 0 */ 6147 if (TEST_Z(_flag_a, _flag_b)) goto L_470371C3; /* 0x4703717C: je 0x470371c3 */ 6148 L_4703717E: 6149 ecx = MEM32(esi + 0x54); /* 0x4703717E: mov ecx, dword ptr [esi + 0x54] */ 6150 eax = MEM32(ecx); /* 0x47037181: mov eax, dword ptr [ecx] */ 6151 RECOMP_ICALL(MEM32(eax + 0x48)); /* 0x47037183: call dword ptr [eax + 0x48] */ 6152 RECOMP_FLAGS_IN(); 6153 /* cmp eax, 1 */ /* 0x47037186: cmp eax, 1 */ 6154 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6155 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6156 _flag_k = FK_CMP; 6157 if (CMP_EQ(_flag_a, _flag_b)) goto L_470371C3; /* 0x47037189: je 0x470371c3 */ 6158 L_4703718B: 6159 ecx = MEM32(esi + 0x54); /* 0x4703718B: mov ecx, dword ptr [esi + 0x54] */ 6160 edx = MEM32(ecx); /* 0x4703718E: mov edx, dword ptr [ecx] */ 6161 PUSH32(esp, esi); /* 0x47037190: push esi */ 6162 RECOMP_ICALL(MEM32(edx + 0x3C)); /* 0x47037191: call dword ptr [edx + 0x3c] */ 6163 RECOMP_FLAGS_IN(); 6164 /* test esi, esi */ /* 0x47037194: test esi, esi */ 6165 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 6166 _cf = 0; 6167 _flag_k = FK_TEST; 6168 if (TEST_Z(_flag_a, _flag_b)) goto L_470371C3; /* 0x47037196: je 0x470371c3 */ 6169 L_47037198: 6170 esi = MEM32(esi + 0x4C); /* 0x47037198: mov esi, dword ptr [esi + 0x4c] */ 6171 /* test esi, esi */ /* 0x4703719B: test esi, esi */ 6172 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 6173 _cf = 0; 6174 _flag_k = FK_TEST; 6175 MEM32(esp + 0x14) = esi; /* 0x4703719D: mov dword ptr [esp + 0x14], esi */ 6176 RECOMP_BACKEDGE(); 6177 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703717E; /* 0x470371A1: jne 0x4703717e */ 6178 L_470371A3: 6179 ecx = MEM32(esp + 0x4); /* 0x470371A3: mov ecx, dword ptr [esp + 4] */ 6180 MEM32(FS_BASE + (0)) = ecx; /* 0x470371A7: mov dword ptr fs:[0], ecx */ 6181 esi = POP32_VAL(esp); /* 0x470371AE: pop esi */ 6182 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6183 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6184 esp = esp + 0xCu; /* 0x470371AF: add esp, 0xc */ 6185 _flag_k = FK_ADD; 6186 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470371B2: ret 4 */ 6187 L_470371B5: 6188 eax = MEM32(esi + 0xC); /* 0x470371B5: mov eax, dword ptr [esi + 0xc] */ 6189 esi = eax; /* 0x470371B8: mov esi, eax */ 6190 ecx = MEM32(esi + 0x54); /* 0x470371BA: mov ecx, dword ptr [esi + 0x54] */ 6191 edx = MEM32(ecx); /* 0x470371BD: mov edx, dword ptr [ecx] */ 6192 PUSH32(esp, eax); /* 0x470371BF: push eax */ 6193 RECOMP_ICALL(MEM32(edx + 0x3C)); /* 0x470371C0: call dword ptr [edx + 0x3c] */ 6194 RECOMP_FLAGS_IN(); 6195 L_470371C3: 6196 ecx = MEM32(esp + 0x4); /* 0x470371C3: mov ecx, dword ptr [esp + 4] */ 6197 MEM32(FS_BASE + (0)) = ecx; /* 0x470371C7: mov dword ptr fs:[0], ecx */ 6198 esi = POP32_VAL(esp); /* 0x470371CE: pop esi */ 6199 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6200 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6201 esp = esp + 0xCu; /* 0x470371CF: add esp, 0xc */ 6202 _flag_k = FK_ADD; 6203 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470371D2: ret 4 */ 6204 RECOMP_REGS_OUT(); 6205 } 6206 6207 void sub_470371E0(void) { 6208 int _fpu_cmp = 0; 6209 uint32_t _cf = 0; 6210 int _df = 1; 6211 uint32_t _flag_k = FK_NONE; 6212 uint32_t _flag_a = 0, _flag_b = 0; 6213 uint32_t _itail_tgt = 0; 6214 RECOMP_REGS_LOCALS 6215 RECOMP_ENTER(0x470371E0u); 6216 6217 L_470371E0: 6218 eax = MEM32(FS_BASE + (0)); /* 0x470371E0: mov eax, dword ptr fs:[0] */ 6219 PUSH32(esp, 0xFFFFFFFFu); /* 0x470371E6: push -1 */ 6220 PUSH32(esp, 0x470A5D78u); /* 0x470371E8: push 0x470a5d78 */ 6221 PUSH32(esp, eax); /* 0x470371ED: push eax */ 6222 MEM32(FS_BASE + (0)) = esp; /* 0x470371EE: mov dword ptr fs:[0], esp */ 6223 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6224 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6225 esp = esp - 8; /* 0x470371F5: sub esp, 8 */ 6226 _flag_k = FK_CMP; 6227 PUSH32(esp, ebp); /* 0x470371F8: push ebp */ 6228 PUSH32(esp, esi); /* 0x470371F9: push esi */ 6229 esi = ecx; /* 0x470371FA: mov esi, ecx */ 6230 eax = MEM32(esi + 0xC); /* 0x470371FC: mov eax, dword ptr [esi + 0xc] */ 6231 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6232 ebp = 0; /* 0x470371FF: xor ebp, ebp */ 6233 _cf = 0; 6234 _flag_k = FK_TEST; 6235 /* cmp eax, ebp */ /* 0x47037201: cmp eax, ebp */ 6236 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 6237 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6238 _flag_k = FK_CMP; 6239 if (CMP_EQ(_flag_a, _flag_b)) goto L_47037207; /* 0x47037203: je 0x47037207 */ 6240 L_47037205: 6241 if (CMP_NE(_flag_a, _flag_b)) goto L_4703721C; /* 0x47037205: jne 0x4703721c */ 6242 L_47037207: 6243 esi = POP32_VAL(esp); /* 0x47037207: pop esi */ 6244 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6245 eax = 0; /* 0x47037208: xor eax, eax */ 6246 _cf = 0; 6247 _flag_k = FK_TEST; 6248 ebp = POP32_VAL(esp); /* 0x4703720A: pop ebp */ 6249 ecx = MEM32(esp + 0x8); /* 0x4703720B: mov ecx, dword ptr [esp + 8] */ 6250 MEM32(FS_BASE + (0)) = ecx; /* 0x4703720F: mov dword ptr fs:[0], ecx */ 6251 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 6252 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6253 esp = esp + 0x14u; /* 0x47037216: add esp, 0x14 */ 6254 _flag_k = FK_ADD; 6255 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47037219: ret 8 */ 6256 L_4703721C: 6257 eax = MEM32(esi + 0xC); /* 0x4703721C: mov eax, dword ptr [esi + 0xc] */ 6258 ecx = MEM32(eax + 0x54); /* 0x4703721F: mov ecx, dword ptr [eax + 0x54] */ 6259 eax = MEM32(ecx); /* 0x47037222: mov eax, dword ptr [ecx] */ 6260 PUSH32(esp, ebx); /* 0x47037224: push ebx */ 6261 PUSH32(esp, edi); /* 0x47037225: push edi */ 6262 MEM32(esp + 0x10) = ebp; /* 0x47037226: mov dword ptr [esp + 0x10], ebp */ 6263 RECOMP_ICALL(MEM32(eax + 0x48)); /* 0x4703722A: call dword ptr [eax + 0x48] */ 6264 RECOMP_FLAGS_IN(); 6265 /* cmp eax, 1 */ /* 0x4703722D: cmp eax, 1 */ 6266 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6267 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6268 _flag_k = FK_CMP; 6269 if (CMP_NE(_flag_a, _flag_b)) goto L_470372BD; /* 0x47037230: jne 0x470372bd */ 6270 L_47037236: 6271 edi = MEM32(esp + 0x28); /* 0x47037236: mov edi, dword ptr [esp + 0x28] */ 6272 ecx = MEM32(edi + 0x8); /* 0x4703723A: mov ecx, dword ptr [edi + 8] */ 6273 edx = MEM32(ecx); /* 0x4703723D: mov edx, dword ptr [ecx] */ 6274 ebx = MEM32(esi + 0xC); /* 0x4703723F: mov ebx, dword ptr [esi + 0xc] */ 6275 PUSH32(esp, 8); /* 0x47037242: push 8 */ 6276 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47037244: call dword ptr [edx + 4] */ 6277 RECOMP_FLAGS_IN(); 6278 /* cmp eax, ebp */ /* 0x47037247: cmp eax, ebp */ 6279 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 6280 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6281 _flag_k = FK_CMP; 6282 if (CMP_EQ(_flag_a, _flag_b)) goto L_47037295; /* 0x47037249: je 0x47037295 */ 6283 L_4703724B: 6284 ecx = MEM32(edi); /* 0x4703724B: mov ecx, dword ptr [edi] */ 6285 edx = MEM32(ecx); /* 0x4703724D: mov edx, dword ptr [ecx] */ 6286 MEM32(eax) = edx; /* 0x4703724F: mov dword ptr [eax], edx */ 6287 MEM32(eax + 0x4) = ebx; /* 0x47037251: mov dword ptr [eax + 4], ebx */ 6288 ecx = MEM32(edi); /* 0x47037254: mov ecx, dword ptr [edi] */ 6289 MEM32(ecx) = eax; /* 0x47037256: mov dword ptr [ecx], eax */ 6290 _flag_a = (uint32_t)(MEM32(edi + 0x4)); _flag_b = (uint32_t)(1); 6291 MEM32(edi + 0x4) = MEM32(edi + 0x4) + 1; /* 0x47037258: inc dword ptr [edi + 4] */ 6292 _flag_k = FK_INC; 6293 L_4703725B: 6294 eax = MEM32(esp + 0x2C); /* 0x4703725B: mov eax, dword ptr [esp + 0x2c] */ 6295 /* cmp eax, ebp */ /* 0x4703725F: cmp eax, ebp */ 6296 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 6297 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6298 _flag_k = FK_CMP; 6299 if (CMP_EQ(_flag_a, _flag_b)) goto L_47037370; /* 0x47037261: je 0x47037370 */ 6300 L_47037267: 6301 esi = MEM32(esi + 0xC); /* 0x47037267: mov esi, dword ptr [esi + 0xc] */ 6302 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x60u); 6303 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6304 esi = esi + 0x60u; /* 0x4703726A: add esi, 0x60 */ 6305 _flag_k = FK_ADD; 6306 L_4703726D: 6307 SET_LO8(edx, MEM8(eax)); /* 0x4703726D: mov dl, byte ptr [eax] */ 6308 SET_LO8(ebx, MEM8(esi)); /* 0x4703726F: mov bl, byte ptr [esi] */ 6309 SET_LO8(ecx, LO8(edx)); /* 0x47037271: mov cl, dl */ 6310 /* cmp LO8(edx), LO8(ebx) */ /* 0x47037273: cmp dl, bl */ 6311 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6312 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6313 _flag_k = FK_NARROW(FK_CMP, 24); 6314 if (CMP_NE(_flag_a, _flag_b)) goto L_470372A3; /* 0x47037275: jne 0x470372a3 */ 6315 L_47037277: 6316 /* test LO8(ecx), LO8(ecx) */ /* 0x47037277: test cl, cl */ 6317 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 6318 _cf = 0; 6319 _flag_k = FK_NARROW(FK_TEST, 24); 6320 if (TEST_Z(_flag_a, _flag_b)) goto L_47037291; /* 0x47037279: je 0x47037291 */ 6321 L_4703727B: 6322 SET_LO8(edx, MEM8(eax + 0x1)); /* 0x4703727B: mov dl, byte ptr [eax + 1] */ 6323 SET_LO8(ebx, MEM8(esi + 0x1)); /* 0x4703727E: mov bl, byte ptr [esi + 1] */ 6324 SET_LO8(ecx, LO8(edx)); /* 0x47037281: mov cl, dl */ 6325 /* cmp LO8(edx), LO8(ebx) */ /* 0x47037283: cmp dl, bl */ 6326 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6327 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6328 _flag_k = FK_NARROW(FK_CMP, 24); 6329 if (CMP_NE(_flag_a, _flag_b)) goto L_470372A3; /* 0x47037285: jne 0x470372a3 */ 6330 L_47037287: 6331 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 6332 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6333 eax = eax + 2; /* 0x47037287: add eax, 2 */ 6334 _flag_k = FK_ADD; 6335 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2); 6336 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6337 esi = esi + 2; /* 0x4703728A: add esi, 2 */ 6338 _flag_k = FK_ADD; 6339 /* test LO8(ecx), LO8(ecx) */ /* 0x4703728D: test cl, cl */ 6340 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 6341 _cf = 0; 6342 _flag_k = FK_NARROW(FK_TEST, 24); 6343 RECOMP_BACKEDGE(); 6344 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703726D; /* 0x4703728F: jne 0x4703726d */ 6345 L_47037291: 6346 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6347 eax = 0; /* 0x47037291: xor eax, eax */ 6348 _cf = 0; 6349 _flag_k = FK_TEST; 6350 goto L_470372A8; /* 0x47037293: jmp 0x470372a8 */ 6351 L_47037295: 6352 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47037295: call dword ptr [0x470ac3c8] */ 6353 RECOMP_FLAGS_IN(); 6354 MEM32(eax) = 0xCu; /* 0x4703729B: mov dword ptr [eax], 0xc */ 6355 RECOMP_BACKEDGE(); 6356 goto L_4703725B; /* 0x470372A1: jmp 0x4703725b */ 6357 L_470372A3: 6358 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x470372A3: sbb eax, eax */ 6359 eax = _sc ? 0xFFFFFFFFu : 0; 6360 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 6361 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 6362 { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x470372A5: sbb eax, -1 */ 6363 eax = _sa - _sb - _sc; 6364 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 6365 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 6366 L_470372A8: 6367 /* cmp eax, ebp */ /* 0x470372A8: cmp eax, ebp */ 6368 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 6369 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6370 _flag_k = FK_CMP; 6371 if (CMP_NE(_flag_a, _flag_b)) goto L_47037370; /* 0x470372AA: jne 0x47037370 */ 6372 L_470372B0: 6373 MEM32(esp + 0x10) = 1; /* 0x470372B0: mov dword ptr [esp + 0x10], 1 */ 6374 goto L_47037370; /* 0x470372B8: jmp 0x47037370 */ 6375 L_470372BD: 6376 edi = MEM32(esi + 0xC); /* 0x470372BD: mov edi, dword ptr [esi + 0xc] */ 6377 MEM32(esp + 0x14) = edi; /* 0x470372C0: mov dword ptr [esp + 0x14], edi */ 6378 /* cmp edi, ebp */ /* 0x470372C4: cmp edi, ebp */ 6379 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebp); 6380 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6381 _flag_k = FK_CMP; 6382 MEM32(esp + 0x20) = ebp; /* 0x470372C6: mov dword ptr [esp + 0x20], ebp */ 6383 if (CMP_EQ(_flag_a, _flag_b)) goto L_47037370; /* 0x470372CA: je 0x47037370 */ 6384 L_470372D0: 6385 ebx = MEM32(esp + 0x2C); /* 0x470372D0: mov ebx, dword ptr [esp + 0x2c] */ 6386 ebp = MEM32(esp + 0x28); /* 0x470372D4: mov ebp, dword ptr [esp + 0x28] */ 6387 L_470372D8: 6388 ecx = MEM32(edi + 0x54); /* 0x470372D8: mov ecx, dword ptr [edi + 0x54] */ 6389 eax = MEM32(ecx); /* 0x470372DB: mov eax, dword ptr [ecx] */ 6390 RECOMP_ICALL(MEM32(eax + 0x48)); /* 0x470372DD: call dword ptr [eax + 0x48] */ 6391 RECOMP_FLAGS_IN(); 6392 /* cmp eax, 1 */ /* 0x470372E0: cmp eax, 1 */ 6393 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6394 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6395 _flag_k = FK_CMP; 6396 if (CMP_EQ(_flag_a, _flag_b)) goto L_47037370; /* 0x470372E3: je 0x47037370 */ 6397 L_470372E9: 6398 ecx = MEM32(ebp + 0x8); /* 0x470372E9: mov ecx, dword ptr [ebp + 8] */ 6399 edx = MEM32(ecx); /* 0x470372EC: mov edx, dword ptr [ecx] */ 6400 PUSH32(esp, 8); /* 0x470372EE: push 8 */ 6401 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x470372F0: call dword ptr [edx + 4] */ 6402 RECOMP_FLAGS_IN(); 6403 /* test eax, eax */ /* 0x470372F3: test eax, eax */ 6404 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6405 _cf = 0; 6406 _flag_k = FK_TEST; 6407 if (TEST_Z(_flag_a, _flag_b)) goto L_4703733E; /* 0x470372F5: je 0x4703733e */ 6408 L_470372F7: 6409 ecx = MEM32(ebp); /* 0x470372F7: mov ecx, dword ptr [ebp] */ 6410 edx = MEM32(ecx); /* 0x470372FA: mov edx, dword ptr [ecx] */ 6411 MEM32(eax) = edx; /* 0x470372FC: mov dword ptr [eax], edx */ 6412 MEM32(eax + 0x4) = edi; /* 0x470372FE: mov dword ptr [eax + 4], edi */ 6413 ecx = MEM32(ebp); /* 0x47037301: mov ecx, dword ptr [ebp] */ 6414 MEM32(ecx) = eax; /* 0x47037304: mov dword ptr [ecx], eax */ 6415 _flag_a = (uint32_t)(MEM32(ebp + 0x4)); _flag_b = (uint32_t)(1); 6416 MEM32(ebp + 0x4) = MEM32(ebp + 0x4) + 1; /* 0x47037306: inc dword ptr [ebp + 4] */ 6417 _flag_k = FK_INC; 6418 L_47037309: 6419 eax = MEM32(esp + 0x10); /* 0x47037309: mov eax, dword ptr [esp + 0x10] */ 6420 /* test eax, eax */ /* 0x4703730D: test eax, eax */ 6421 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6422 _cf = 0; 6423 _flag_k = FK_TEST; 6424 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703735D; /* 0x4703730F: jne 0x4703735d */ 6425 L_47037311: 6426 /* test ebx, ebx */ /* 0x47037311: test ebx, ebx */ 6427 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 6428 _cf = 0; 6429 _flag_k = FK_TEST; 6430 if (TEST_Z(_flag_a, _flag_b)) goto L_4703735D; /* 0x47037313: je 0x4703735d */ 6431 L_47037315: 6432 esi = edi + 0x60; /* 0x47037315: lea esi, [edi + 0x60] */ 6433 eax = ebx; /* 0x47037318: mov eax, ebx */ 6434 L_4703731A: 6435 SET_LO8(edx, MEM8(eax)); /* 0x4703731A: mov dl, byte ptr [eax] */ 6436 SET_LO8(ecx, LO8(edx)); /* 0x4703731C: mov cl, dl */ 6437 /* cmp LO8(edx), MEM8(esi) */ /* 0x4703731E: cmp dl, byte ptr [esi] */ 6438 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(MEM8(esi)) << 24; 6439 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6440 _flag_k = FK_NARROW(FK_CMP, 24); 6441 if (CMP_NE(_flag_a, _flag_b)) goto L_4703734C; /* 0x47037320: jne 0x4703734c */ 6442 L_47037322: 6443 /* test LO8(ecx), LO8(ecx) */ /* 0x47037322: test cl, cl */ 6444 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 6445 _cf = 0; 6446 _flag_k = FK_NARROW(FK_TEST, 24); 6447 if (TEST_Z(_flag_a, _flag_b)) goto L_4703733A; /* 0x47037324: je 0x4703733a */ 6448 L_47037326: 6449 SET_LO8(edx, MEM8(eax + 0x1)); /* 0x47037326: mov dl, byte ptr [eax + 1] */ 6450 SET_LO8(ecx, LO8(edx)); /* 0x47037329: mov cl, dl */ 6451 /* cmp LO8(edx), MEM8(esi + 0x1) */ /* 0x4703732B: cmp dl, byte ptr [esi + 1] */ 6452 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(MEM8(esi + 0x1)) << 24; 6453 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6454 _flag_k = FK_NARROW(FK_CMP, 24); 6455 if (CMP_NE(_flag_a, _flag_b)) goto L_4703734C; /* 0x4703732E: jne 0x4703734c */ 6456 L_47037330: 6457 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 6458 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6459 eax = eax + 2; /* 0x47037330: add eax, 2 */ 6460 _flag_k = FK_ADD; 6461 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2); 6462 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6463 esi = esi + 2; /* 0x47037333: add esi, 2 */ 6464 _flag_k = FK_ADD; 6465 /* test LO8(ecx), LO8(ecx) */ /* 0x47037336: test cl, cl */ 6466 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 6467 _cf = 0; 6468 _flag_k = FK_NARROW(FK_TEST, 24); 6469 RECOMP_BACKEDGE(); 6470 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703731A; /* 0x47037338: jne 0x4703731a */ 6471 L_4703733A: 6472 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6473 eax = 0; /* 0x4703733A: xor eax, eax */ 6474 _cf = 0; 6475 _flag_k = FK_TEST; 6476 goto L_47037351; /* 0x4703733C: jmp 0x47037351 */ 6477 L_4703733E: 6478 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4703733E: call dword ptr [0x470ac3c8] */ 6479 RECOMP_FLAGS_IN(); 6480 MEM32(eax) = 0xCu; /* 0x47037344: mov dword ptr [eax], 0xc */ 6481 RECOMP_BACKEDGE(); 6482 goto L_47037309; /* 0x4703734A: jmp 0x47037309 */ 6483 L_4703734C: 6484 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x4703734C: sbb eax, eax */ 6485 eax = _sc ? 0xFFFFFFFFu : 0; 6486 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 6487 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 6488 { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x4703734E: sbb eax, -1 */ 6489 eax = _sa - _sb - _sc; 6490 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 6491 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 6492 L_47037351: 6493 /* test eax, eax */ /* 0x47037351: test eax, eax */ 6494 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6495 _cf = 0; 6496 _flag_k = FK_TEST; 6497 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703735D; /* 0x47037353: jne 0x4703735d */ 6498 L_47037355: 6499 MEM32(esp + 0x10) = 1; /* 0x47037355: mov dword ptr [esp + 0x10], 1 */ 6500 L_4703735D: 6501 /* test edi, edi */ /* 0x4703735D: test edi, edi */ 6502 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 6503 _cf = 0; 6504 _flag_k = FK_TEST; 6505 if (TEST_Z(_flag_a, _flag_b)) goto L_47037370; /* 0x4703735F: je 0x47037370 */ 6506 L_47037361: 6507 edi = MEM32(edi + 0x4C); /* 0x47037361: mov edi, dword ptr [edi + 0x4c] */ 6508 /* test edi, edi */ /* 0x47037364: test edi, edi */ 6509 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 6510 _cf = 0; 6511 _flag_k = FK_TEST; 6512 MEM32(esp + 0x14) = edi; /* 0x47037366: mov dword ptr [esp + 0x14], edi */ 6513 RECOMP_BACKEDGE(); 6514 if (TEST_NZ(_flag_a, _flag_b)) goto L_470372D8; /* 0x4703736A: jne 0x470372d8 */ 6515 L_47037370: 6516 ecx = MEM32(esp + 0x18); /* 0x47037370: mov ecx, dword ptr [esp + 0x18] */ 6517 eax = MEM32(esp + 0x10); /* 0x47037374: mov eax, dword ptr [esp + 0x10] */ 6518 edi = POP32_VAL(esp); /* 0x47037378: pop edi */ 6519 ebx = POP32_VAL(esp); /* 0x47037379: pop ebx */ 6520 esi = POP32_VAL(esp); /* 0x4703737A: pop esi */ 6521 ebp = POP32_VAL(esp); /* 0x4703737B: pop ebp */ 6522 MEM32(FS_BASE + (0)) = ecx; /* 0x4703737C: mov dword ptr fs:[0], ecx */ 6523 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 6524 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6525 esp = esp + 0x14u; /* 0x47037383: add esp, 0x14 */ 6526 _flag_k = FK_ADD; 6527 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47037386: ret 8 */ 6528 RECOMP_REGS_OUT(); 6529 } 6530 6531 void sub_47037370(void) { 6532 int _fpu_cmp = 0; 6533 uint32_t _cf = 0; 6534 int _df = 1; 6535 uint32_t _flag_k = FK_NONE; 6536 uint32_t _flag_a = 0, _flag_b = 0; 6537 uint32_t _itail_tgt = 0; 6538 RECOMP_REGS_LOCALS 6539 RECOMP_ENTER(0x47037370u); 6540 6541 L_47037370: 6542 ecx = MEM32(esp + 0x18); /* 0x47037370: mov ecx, dword ptr [esp + 0x18] */ 6543 eax = MEM32(esp + 0x10); /* 0x47037374: mov eax, dword ptr [esp + 0x10] */ 6544 edi = POP32_VAL(esp); /* 0x47037378: pop edi */ 6545 ebx = POP32_VAL(esp); /* 0x47037379: pop ebx */ 6546 esi = POP32_VAL(esp); /* 0x4703737A: pop esi */ 6547 ebp = POP32_VAL(esp); /* 0x4703737B: pop ebp */ 6548 MEM32(FS_BASE + (0)) = ecx; /* 0x4703737C: mov dword ptr fs:[0], ecx */ 6549 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 6550 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6551 esp = esp + 0x14u; /* 0x47037383: add esp, 0x14 */ 6552 _flag_k = FK_ADD; 6553 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47037386: ret 8 */ 6554 RECOMP_REGS_OUT(); 6555 } 6556 6557 void sub_47037390(void) { 6558 int _fpu_cmp = 0; 6559 uint32_t _cf = 0; 6560 int _df = 1; 6561 uint32_t _flag_k = FK_NONE; 6562 uint32_t _flag_a = 0, _flag_b = 0; 6563 uint32_t _itail_tgt = 0; 6564 RECOMP_REGS_LOCALS 6565 RECOMP_ENTER(0x47037390u); 6566 6567 L_47037390: 6568 PUSH32(esp, 0xFFFFFFFFu); /* 0x47037390: push -1 */ 6569 PUSH32(esp, 0x470A5D98u); /* 0x47037392: push 0x470a5d98 */ 6570 eax = MEM32(FS_BASE + (0)); /* 0x47037397: mov eax, dword ptr fs:[0] */ 6571 PUSH32(esp, eax); /* 0x4703739D: push eax */ 6572 MEM32(FS_BASE + (0)) = esp; /* 0x4703739E: mov dword ptr fs:[0], esp */ 6573 PUSH32(esp, ecx); /* 0x470373A5: push ecx */ 6574 PUSH32(esp, ebx); /* 0x470373A6: push ebx */ 6575 PUSH32(esp, ebp); /* 0x470373A7: push ebp */ 6576 PUSH32(esp, esi); /* 0x470373A8: push esi */ 6577 esi = ecx; /* 0x470373A9: mov esi, ecx */ 6578 eax = MEM32(esi + 0xC); /* 0x470373AB: mov eax, dword ptr [esi + 0xc] */ 6579 /* test eax, eax */ /* 0x470373AE: test eax, eax */ 6580 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6581 _cf = 0; 6582 _flag_k = FK_TEST; 6583 PUSH32(esp, edi); /* 0x470373B0: push edi */ 6584 if (TEST_Z(_flag_a, _flag_b)) goto L_47037477; /* 0x470373B1: je 0x47037477 */ 6585 L_470373B7: 6586 ecx = MEM32(eax + 0x54); /* 0x470373B7: mov ecx, dword ptr [eax + 0x54] */ 6587 eax = MEM32(ecx); /* 0x470373BA: mov eax, dword ptr [ecx] */ 6588 RECOMP_ICALL(MEM32(eax + 0x48)); /* 0x470373BC: call dword ptr [eax + 0x48] */ 6589 RECOMP_FLAGS_IN(); 6590 /* cmp eax, 1 */ /* 0x470373BF: cmp eax, 1 */ 6591 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6592 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6593 _flag_k = FK_CMP; 6594 if (CMP_NE(_flag_a, _flag_b)) goto L_4703740F; /* 0x470373C2: jne 0x4703740f */ 6595 L_470373C4: 6596 eax = MEM32(esi + 0xC); /* 0x470373C4: mov eax, dword ptr [esi + 0xc] */ 6597 esi = MEM32(esp + 0x24); /* 0x470373C7: mov esi, dword ptr [esp + 0x24] */ 6598 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x60u); 6599 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6600 eax = eax + 0x60u; /* 0x470373CB: add eax, 0x60 */ 6601 _flag_k = FK_ADD; 6602 L_470373CE: 6603 SET_LO8(edx, MEM8(eax)); /* 0x470373CE: mov dl, byte ptr [eax] */ 6604 SET_LO8(ebx, MEM8(esi)); /* 0x470373D0: mov bl, byte ptr [esi] */ 6605 SET_LO8(ecx, LO8(edx)); /* 0x470373D2: mov cl, dl */ 6606 /* cmp LO8(edx), LO8(ebx) */ /* 0x470373D4: cmp dl, bl */ 6607 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6608 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6609 _flag_k = FK_NARROW(FK_CMP, 24); 6610 if (CMP_NE(_flag_a, _flag_b)) goto L_470373FF; /* 0x470373D6: jne 0x470373ff */ 6611 L_470373D8: 6612 /* test LO8(ecx), LO8(ecx) */ /* 0x470373D8: test cl, cl */ 6613 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 6614 _cf = 0; 6615 _flag_k = FK_NARROW(FK_TEST, 24); 6616 if (TEST_Z(_flag_a, _flag_b)) goto L_470373F2; /* 0x470373DA: je 0x470373f2 */ 6617 L_470373DC: 6618 SET_LO8(edx, MEM8(eax + 0x1)); /* 0x470373DC: mov dl, byte ptr [eax + 1] */ 6619 SET_LO8(ebx, MEM8(esi + 0x1)); /* 0x470373DF: mov bl, byte ptr [esi + 1] */ 6620 SET_LO8(ecx, LO8(edx)); /* 0x470373E2: mov cl, dl */ 6621 /* cmp LO8(edx), LO8(ebx) */ /* 0x470373E4: cmp dl, bl */ 6622 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6623 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6624 _flag_k = FK_NARROW(FK_CMP, 24); 6625 if (CMP_NE(_flag_a, _flag_b)) goto L_470373FF; /* 0x470373E6: jne 0x470373ff */ 6626 L_470373E8: 6627 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 6628 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6629 eax = eax + 2; /* 0x470373E8: add eax, 2 */ 6630 _flag_k = FK_ADD; 6631 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2); 6632 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6633 esi = esi + 2; /* 0x470373EB: add esi, 2 */ 6634 _flag_k = FK_ADD; 6635 /* test LO8(ecx), LO8(ecx) */ /* 0x470373EE: test cl, cl */ 6636 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 6637 _cf = 0; 6638 _flag_k = FK_NARROW(FK_TEST, 24); 6639 RECOMP_BACKEDGE(); 6640 if (TEST_NZ(_flag_a, _flag_b)) goto L_470373CE; /* 0x470373F0: jne 0x470373ce */ 6641 L_470373F2: 6642 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6643 eax = 0; /* 0x470373F2: xor eax, eax */ 6644 _cf = 0; 6645 _flag_k = FK_TEST; 6646 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6647 ecx = 0; /* 0x470373F4: xor ecx, ecx */ 6648 _cf = 0; 6649 _flag_k = FK_TEST; 6650 /* test eax, eax */ /* 0x470373F6: test eax, eax */ 6651 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6652 _cf = 0; 6653 _flag_k = FK_TEST; 6654 SET_LO8(ecx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x470373F8: sete cl */ 6655 eax = ecx; /* 0x470373FB: mov eax, ecx */ 6656 goto L_47037479; /* 0x470373FD: jmp 0x47037479 */ 6657 L_470373FF: 6658 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x470373FF: sbb eax, eax */ 6659 eax = _sc ? 0xFFFFFFFFu : 0; 6660 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 6661 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 6662 { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x47037401: sbb eax, -1 */ 6663 eax = _sa - _sb - _sc; 6664 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 6665 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 6666 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6667 ecx = 0; /* 0x47037404: xor ecx, ecx */ 6668 _cf = 0; 6669 _flag_k = FK_TEST; 6670 /* test eax, eax */ /* 0x47037406: test eax, eax */ 6671 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6672 _cf = 0; 6673 _flag_k = FK_TEST; 6674 SET_LO8(ecx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x47037408: sete cl */ 6675 eax = ecx; /* 0x4703740B: mov eax, ecx */ 6676 goto L_47037479; /* 0x4703740D: jmp 0x47037479 */ 6677 L_4703740F: 6678 edi = MEM32(esi + 0xC); /* 0x4703740F: mov edi, dword ptr [esi + 0xc] */ 6679 MEM32(esp + 0x10) = edi; /* 0x47037412: mov dword ptr [esp + 0x10], edi */ 6680 /* test edi, edi */ /* 0x47037416: test edi, edi */ 6681 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 6682 _cf = 0; 6683 _flag_k = FK_TEST; 6684 MEM32(esp + 0x1C) = 0; /* 0x47037418: mov dword ptr [esp + 0x1c], 0 */ 6685 if (TEST_Z(_flag_a, _flag_b)) goto L_47037477; /* 0x47037420: je 0x47037477 */ 6686 L_47037422: 6687 ebp = MEM32(esp + 0x24); /* 0x47037422: mov ebp, dword ptr [esp + 0x24] */ 6688 L_47037426: 6689 ecx = MEM32(edi + 0x54); /* 0x47037426: mov ecx, dword ptr [edi + 0x54] */ 6690 edx = MEM32(ecx); /* 0x47037429: mov edx, dword ptr [ecx] */ 6691 RECOMP_ICALL(MEM32(edx + 0x48)); /* 0x4703742B: call dword ptr [edx + 0x48] */ 6692 RECOMP_FLAGS_IN(); 6693 /* test eax, eax */ /* 0x4703742E: test eax, eax */ 6694 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6695 _cf = 0; 6696 _flag_k = FK_TEST; 6697 if (TEST_NZ(_flag_a, _flag_b)) goto L_47037477; /* 0x47037430: jne 0x47037477 */ 6698 L_47037432: 6699 esi = ebp; /* 0x47037432: mov esi, ebp */ 6700 eax = edi + 0x60; /* 0x47037434: lea eax, [edi + 0x60] */ 6701 L_47037437: 6702 SET_LO8(edx, MEM8(eax)); /* 0x47037437: mov dl, byte ptr [eax] */ 6703 SET_LO8(ebx, MEM8(esi)); /* 0x47037439: mov bl, byte ptr [esi] */ 6704 SET_LO8(ecx, LO8(edx)); /* 0x4703743B: mov cl, dl */ 6705 /* cmp LO8(edx), LO8(ebx) */ /* 0x4703743D: cmp dl, bl */ 6706 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6707 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6708 _flag_k = FK_NARROW(FK_CMP, 24); 6709 if (CMP_NE(_flag_a, _flag_b)) goto L_4703745F; /* 0x4703743F: jne 0x4703745f */ 6710 L_47037441: 6711 /* test LO8(ecx), LO8(ecx) */ /* 0x47037441: test cl, cl */ 6712 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 6713 _cf = 0; 6714 _flag_k = FK_NARROW(FK_TEST, 24); 6715 if (TEST_Z(_flag_a, _flag_b)) goto L_4703745B; /* 0x47037443: je 0x4703745b */ 6716 L_47037445: 6717 SET_LO8(edx, MEM8(eax + 0x1)); /* 0x47037445: mov dl, byte ptr [eax + 1] */ 6718 SET_LO8(ebx, MEM8(esi + 0x1)); /* 0x47037448: mov bl, byte ptr [esi + 1] */ 6719 SET_LO8(ecx, LO8(edx)); /* 0x4703744B: mov cl, dl */ 6720 /* cmp LO8(edx), LO8(ebx) */ /* 0x4703744D: cmp dl, bl */ 6721 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6722 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6723 _flag_k = FK_NARROW(FK_CMP, 24); 6724 if (CMP_NE(_flag_a, _flag_b)) goto L_4703745F; /* 0x4703744F: jne 0x4703745f */ 6725 L_47037451: 6726 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 6727 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6728 eax = eax + 2; /* 0x47037451: add eax, 2 */ 6729 _flag_k = FK_ADD; 6730 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2); 6731 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6732 esi = esi + 2; /* 0x47037454: add esi, 2 */ 6733 _flag_k = FK_ADD; 6734 /* test LO8(ecx), LO8(ecx) */ /* 0x47037457: test cl, cl */ 6735 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 6736 _cf = 0; 6737 _flag_k = FK_NARROW(FK_TEST, 24); 6738 RECOMP_BACKEDGE(); 6739 if (TEST_NZ(_flag_a, _flag_b)) goto L_47037437; /* 0x47037459: jne 0x47037437 */ 6740 L_4703745B: 6741 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6742 eax = 0; /* 0x4703745B: xor eax, eax */ 6743 _cf = 0; 6744 _flag_k = FK_TEST; 6745 goto L_47037464; /* 0x4703745D: jmp 0x47037464 */ 6746 L_4703745F: 6747 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x4703745F: sbb eax, eax */ 6748 eax = _sc ? 0xFFFFFFFFu : 0; 6749 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 6750 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 6751 { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x47037461: sbb eax, -1 */ 6752 eax = _sa - _sb - _sc; 6753 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 6754 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 6755 L_47037464: 6756 /* test eax, eax */ /* 0x47037464: test eax, eax */ 6757 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6758 _cf = 0; 6759 _flag_k = FK_TEST; 6760 if (TEST_Z(_flag_a, _flag_b)) goto L_4703748E; /* 0x47037466: je 0x4703748e */ 6761 L_47037468: 6762 /* test edi, edi */ /* 0x47037468: test edi, edi */ 6763 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 6764 _cf = 0; 6765 _flag_k = FK_TEST; 6766 if (TEST_Z(_flag_a, _flag_b)) goto L_47037477; /* 0x4703746A: je 0x47037477 */ 6767 L_4703746C: 6768 edi = MEM32(edi + 0x4C); /* 0x4703746C: mov edi, dword ptr [edi + 0x4c] */ 6769 /* test edi, edi */ /* 0x4703746F: test edi, edi */ 6770 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 6771 _cf = 0; 6772 _flag_k = FK_TEST; 6773 MEM32(esp + 0x10) = edi; /* 0x47037471: mov dword ptr [esp + 0x10], edi */ 6774 RECOMP_BACKEDGE(); 6775 if (TEST_NZ(_flag_a, _flag_b)) goto L_47037426; /* 0x47037475: jne 0x47037426 */ 6776 L_47037477: 6777 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6778 eax = 0; /* 0x47037477: xor eax, eax */ 6779 _cf = 0; 6780 _flag_k = FK_TEST; 6781 L_47037479: 6782 ecx = MEM32(esp + 0x14); /* 0x47037479: mov ecx, dword ptr [esp + 0x14] */ 6783 edi = POP32_VAL(esp); /* 0x4703747D: pop edi */ 6784 esi = POP32_VAL(esp); /* 0x4703747E: pop esi */ 6785 ebp = POP32_VAL(esp); /* 0x4703747F: pop ebp */ 6786 ebx = POP32_VAL(esp); /* 0x47037480: pop ebx */ 6787 MEM32(FS_BASE + (0)) = ecx; /* 0x47037481: mov dword ptr fs:[0], ecx */ 6788 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6789 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6790 esp = esp + 0x10u; /* 0x47037488: add esp, 0x10 */ 6791 _flag_k = FK_ADD; 6792 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703748B: ret 4 */ 6793 L_4703748E: 6794 eax = 1; /* 0x4703748E: mov eax, 1 */ 6795 RECOMP_BACKEDGE(); 6796 goto L_47037479; /* 0x47037493: jmp 0x47037479 */ 6797 { RECOMP_REGS_OUT(); return; } /* end of function */ 6798 RECOMP_REGS_OUT(); 6799 } 6800 6801 void sub_470374A0(void) { 6802 int _fpu_cmp = 0; 6803 uint32_t _cf = 0; 6804 int _df = 1; 6805 uint32_t _flag_k = FK_NONE; 6806 uint32_t _flag_a = 0, _flag_b = 0; 6807 uint32_t _itail_tgt = 0; 6808 RECOMP_REGS_LOCALS 6809 RECOMP_ENTER(0x470374A0u); 6810 6811 L_470374A0: 6812 PUSH32(esp, ecx); /* 0x470374A0: push ecx */ 6813 PUSH32(esp, ebx); /* 0x470374A1: push ebx */ 6814 ebx = MEM32(0x470AC150); /* 0x470374A2: mov ebx, dword ptr [0x470ac150] */ 6815 PUSH32(esp, ebp); /* 0x470374A8: push ebp */ 6816 PUSH32(esp, esi); /* 0x470374A9: push esi */ 6817 PUSH32(esp, edi); /* 0x470374AA: push edi */ 6818 esi = ecx; /* 0x470374AB: mov esi, ecx */ 6819 RECOMP_ICALL(ebx); /* 0x470374AD: call ebx */ 6820 RECOMP_FLAGS_IN(); 6821 ebp = MEM32(0x470AC3C8); /* 0x470374AF: mov ebp, dword ptr [0x470ac3c8] */ 6822 edi = eax; /* 0x470374B5: mov edi, eax */ 6823 RECOMP_ICALL(ebp); /* 0x470374B7: call ebp */ 6824 RECOMP_FLAGS_IN(); 6825 eax = MEM32(eax); /* 0x470374B9: mov eax, dword ptr [eax] */ 6826 /* test eax, eax */ /* 0x470374BB: test eax, eax */ 6827 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6828 _cf = 0; 6829 _flag_k = FK_TEST; 6830 MEM32(esp + 0x10) = edi; /* 0x470374BD: mov dword ptr [esp + 0x10], edi */ 6831 if (TEST_Z(_flag_a, _flag_b)) goto L_470374C7; /* 0x470374C1: je 0x470374c7 */ 6832 L_470374C3: 6833 MEM32(esp + 0x10) = eax; /* 0x470374C3: mov dword ptr [esp + 0x10], eax */ 6834 L_470374C7: 6835 RECOMP_ICALL(0x47039020u); /* 0x470374C7: call 0x47039020 */ /* not lifted */ 6836 RECOMP_FLAGS_IN(); 6837 edi = eax; /* 0x470374CC: mov edi, eax */ 6838 ecx = edi; /* 0x470374CE: mov ecx, edi */ 6839 RECOMP_ICALL(0x4703B210u); /* 0x470374D0: call 0x4703b210 */ /* not lifted */ 6840 RECOMP_FLAGS_IN(); 6841 PUSH32(esp, eax); /* 0x470374D5: push eax */ 6842 ecx = edi; /* 0x470374D6: mov ecx, edi */ 6843 RECOMP_ICALL(0x4703B240u); /* 0x470374D8: call 0x4703b240 */ /* not lifted */ 6844 RECOMP_FLAGS_IN(); 6845 PUSH32(esp, eax); /* 0x470374DD: push eax */ 6846 ecx = edi; /* 0x470374DE: mov ecx, edi */ 6847 RECOMP_ICALL(0x4703B080u); /* 0x470374E0: call 0x4703b080 */ /* not lifted */ 6848 RECOMP_FLAGS_IN(); 6849 PUSH32(esp, eax); /* 0x470374E5: push eax */ 6850 eax = MEM32(esp + 0x1C); /* 0x470374E6: mov eax, dword ptr [esp + 0x1c] */ 6851 PUSH32(esp, eax); /* 0x470374EA: push eax */ 6852 PUSH32(esp, 0); /* 0x470374EB: push 0 */ 6853 PUSH32(esp, 0x40Au); /* 0x470374ED: push 0x40a */ 6854 PUSH32(esp, 0x47106DE4u); /* 0x470374F2: push 0x47106de4 */ 6855 ecx = edi; /* 0x470374F7: mov ecx, edi */ 6856 RECOMP_ICALL(0x4703A340u); /* 0x470374F9: call 0x4703a340 */ /* not lifted */ 6857 RECOMP_FLAGS_IN(); 6858 PUSH32(esp, esi); /* 0x470374FE: push esi */ 6859 PUSH32(esp, 0x471052CCu); /* 0x470374FF: push 0x471052cc */ 6860 PUSH32(esp, 4); /* 0x47037504: push 4 */ 6861 PUSH32(esp, edi); /* 0x47037506: push edi */ 6862 RECOMP_ICALL(0x47039830u); /* 0x47037507: call 0x47039830 */ /* not lifted */ 6863 RECOMP_FLAGS_IN(); 6864 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6865 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6866 esp = esp + 0x10u; /* 0x4703750C: add esp, 0x10 */ 6867 _flag_k = FK_ADD; 6868 RECOMP_ICALL(ebx); /* 0x4703750F: call ebx */ 6869 RECOMP_FLAGS_IN(); 6870 edi = eax; /* 0x47037511: mov edi, eax */ 6871 RECOMP_ICALL(ebp); /* 0x47037513: call ebp */ 6872 RECOMP_FLAGS_IN(); 6873 eax = MEM32(eax); /* 0x47037515: mov eax, dword ptr [eax] */ 6874 /* test eax, eax */ /* 0x47037517: test eax, eax */ 6875 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6876 _cf = 0; 6877 _flag_k = FK_TEST; 6878 MEM32(esp + 0x10) = edi; /* 0x47037519: mov dword ptr [esp + 0x10], edi */ 6879 if (TEST_Z(_flag_a, _flag_b)) goto L_47037523; /* 0x4703751D: je 0x47037523 */ 6880 L_4703751F: 6881 MEM32(esp + 0x10) = eax; /* 0x4703751F: mov dword ptr [esp + 0x10], eax */ 6882 L_47037523: 6883 RECOMP_ICALL(0x47039020u); /* 0x47037523: call 0x47039020 */ /* not lifted */ 6884 RECOMP_FLAGS_IN(); 6885 edi = eax; /* 0x47037528: mov edi, eax */ 6886 ecx = edi; /* 0x4703752A: mov ecx, edi */ 6887 RECOMP_ICALL(0x4703B210u); /* 0x4703752C: call 0x4703b210 */ /* not lifted */ 6888 RECOMP_FLAGS_IN(); 6889 PUSH32(esp, eax); /* 0x47037531: push eax */ 6890 ecx = edi; /* 0x47037532: mov ecx, edi */ 6891 RECOMP_ICALL(0x4703B240u); /* 0x47037534: call 0x4703b240 */ /* not lifted */ 6892 RECOMP_FLAGS_IN(); 6893 PUSH32(esp, eax); /* 0x47037539: push eax */ 6894 ecx = edi; /* 0x4703753A: mov ecx, edi */ 6895 RECOMP_ICALL(0x4703B080u); /* 0x4703753C: call 0x4703b080 */ /* not lifted */ 6896 RECOMP_FLAGS_IN(); 6897 ecx = MEM32(esp + 0x18); /* 0x47037541: mov ecx, dword ptr [esp + 0x18] */ 6898 PUSH32(esp, eax); /* 0x47037545: push eax */ 6899 PUSH32(esp, ecx); /* 0x47037546: push ecx */ 6900 PUSH32(esp, 0); /* 0x47037547: push 0 */ 6901 PUSH32(esp, 0x40Fu); /* 0x47037549: push 0x40f */ 6902 PUSH32(esp, 0x47106DE4u); /* 0x4703754E: push 0x47106de4 */ 6903 ecx = edi; /* 0x47037553: mov ecx, edi */ 6904 RECOMP_ICALL(0x4703A340u); /* 0x47037555: call 0x4703a340 */ /* not lifted */ 6905 RECOMP_FLAGS_IN(); 6906 edx = MEM32(esi + 0x8); /* 0x4703755A: mov edx, dword ptr [esi + 8] */ 6907 eax = MEM32(esi + 0x4); /* 0x4703755D: mov eax, dword ptr [esi + 4] */ 6908 PUSH32(esp, edx); /* 0x47037560: push edx */ 6909 edx = MEM32(esi); /* 0x47037561: mov edx, dword ptr [esi] */ 6910 PUSH32(esp, eax); /* 0x47037563: push eax */ 6911 ecx = esi; /* 0x47037564: mov ecx, esi */ 6912 RECOMP_ICALL(MEM32(edx + 0x48)); /* 0x47037566: call dword ptr [edx + 0x48] */ 6913 RECOMP_FLAGS_IN(); 6914 PUSH32(esp, eax); /* 0x47037569: push eax */ 6915 PUSH32(esp, 0x47107034u); /* 0x4703756A: push 0x47107034 */ 6916 PUSH32(esp, 4); /* 0x4703756F: push 4 */ 6917 PUSH32(esp, edi); /* 0x47037571: push edi */ 6918 RECOMP_ICALL(0x47039830u); /* 0x47037572: call 0x47039830 */ /* not lifted */ 6919 RECOMP_FLAGS_IN(); 6920 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 6921 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6922 esp = esp + 0x18u; /* 0x47037577: add esp, 0x18 */ 6923 _flag_k = FK_ADD; 6924 RECOMP_ICALL(ebx); /* 0x4703757A: call ebx */ 6925 RECOMP_FLAGS_IN(); 6926 edi = eax; /* 0x4703757C: mov edi, eax */ 6927 RECOMP_ICALL(ebp); /* 0x4703757E: call ebp */ 6928 RECOMP_FLAGS_IN(); 6929 eax = MEM32(eax); /* 0x47037580: mov eax, dword ptr [eax] */ 6930 /* test eax, eax */ /* 0x47037582: test eax, eax */ 6931 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6932 _cf = 0; 6933 _flag_k = FK_TEST; 6934 MEM32(esp + 0x10) = edi; /* 0x47037584: mov dword ptr [esp + 0x10], edi */ 6935 if (TEST_Z(_flag_a, _flag_b)) goto L_4703758E; /* 0x47037588: je 0x4703758e */ 6936 L_4703758A: 6937 MEM32(esp + 0x10) = eax; /* 0x4703758A: mov dword ptr [esp + 0x10], eax */ 6938 L_4703758E: 6939 RECOMP_ICALL(0x47039020u); /* 0x4703758E: call 0x47039020 */ /* not lifted */ 6940 RECOMP_FLAGS_IN(); 6941 edi = eax; /* 0x47037593: mov edi, eax */ 6942 ecx = edi; /* 0x47037595: mov ecx, edi */ 6943 RECOMP_ICALL(0x4703B210u); /* 0x47037597: call 0x4703b210 */ /* not lifted */ 6944 RECOMP_FLAGS_IN(); 6945 PUSH32(esp, eax); /* 0x4703759C: push eax */ 6946 ecx = edi; /* 0x4703759D: mov ecx, edi */ 6947 RECOMP_ICALL(0x4703B240u); /* 0x4703759F: call 0x4703b240 */ /* not lifted */ 6948 RECOMP_FLAGS_IN(); 6949 PUSH32(esp, eax); /* 0x470375A4: push eax */ 6950 ecx = edi; /* 0x470375A5: mov ecx, edi */ 6951 RECOMP_ICALL(0x4703B080u); /* 0x470375A7: call 0x4703b080 */ /* not lifted */ 6952 RECOMP_FLAGS_IN(); 6953 PUSH32(esp, eax); /* 0x470375AC: push eax */ 6954 eax = MEM32(esp + 0x1C); /* 0x470375AD: mov eax, dword ptr [esp + 0x1c] */ 6955 PUSH32(esp, eax); /* 0x470375B1: push eax */ 6956 PUSH32(esp, 0); /* 0x470375B2: push 0 */ 6957 PUSH32(esp, 0x410u); /* 0x470375B4: push 0x410 */ 6958 PUSH32(esp, 0x47106DE4u); /* 0x470375B9: push 0x47106de4 */ 6959 ecx = edi; /* 0x470375BE: mov ecx, edi */ 6960 RECOMP_ICALL(0x4703A340u); /* 0x470375C0: call 0x4703a340 */ /* not lifted */ 6961 RECOMP_FLAGS_IN(); 6962 PUSH32(esp, 0x4710701Cu); /* 0x470375C5: push 0x4710701c */ 6963 PUSH32(esp, 4); /* 0x470375CA: push 4 */ 6964 PUSH32(esp, edi); /* 0x470375CC: push edi */ 6965 RECOMP_ICALL(0x47039830u); /* 0x470375CD: call 0x47039830 */ /* not lifted */ 6966 RECOMP_FLAGS_IN(); 6967 ecx = MEM32(esi + 0xC); /* 0x470375D2: mov ecx, dword ptr [esi + 0xc] */ 6968 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6969 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6970 esp = esp + 0xCu; /* 0x470375D5: add esp, 0xc */ 6971 _flag_k = FK_ADD; 6972 /* test ecx, ecx */ /* 0x470375D8: test ecx, ecx */ 6973 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6974 _cf = 0; 6975 _flag_k = FK_TEST; 6976 if (TEST_Z(_flag_a, _flag_b)) goto L_470375E1; /* 0x470375DA: je 0x470375e1 */ 6977 L_470375DC: 6978 RECOMP_ICALL(0x47034A90u); /* 0x470375DC: call 0x47034a90 */ /* not lifted */ 6979 RECOMP_FLAGS_IN(); 6980 L_470375E1: 6981 ecx = esi + 0x10; /* 0x470375E1: lea ecx, [esi + 0x10] */ 6982 RECOMP_ICALL(0x47035190u); /* 0x470375E4: call 0x47035190 */ /* not lifted */ 6983 RECOMP_FLAGS_IN(); 6984 RECOMP_ICALL(ebx); /* 0x470375E9: call ebx */ 6985 RECOMP_FLAGS_IN(); 6986 edi = eax; /* 0x470375EB: mov edi, eax */ 6987 RECOMP_ICALL(ebp); /* 0x470375ED: call ebp */ 6988 RECOMP_FLAGS_IN(); 6989 eax = MEM32(eax); /* 0x470375EF: mov eax, dword ptr [eax] */ 6990 /* test eax, eax */ /* 0x470375F1: test eax, eax */ 6991 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6992 _cf = 0; 6993 _flag_k = FK_TEST; 6994 if (TEST_Z(_flag_a, _flag_b)) goto L_470375F7; /* 0x470375F3: je 0x470375f7 */ 6995 L_470375F5: 6996 edi = eax; /* 0x470375F5: mov edi, eax */ 6997 L_470375F7: 6998 RECOMP_ICALL(0x47039020u); /* 0x470375F7: call 0x47039020 */ /* not lifted */ 6999 RECOMP_FLAGS_IN(); 7000 esi = eax; /* 0x470375FC: mov esi, eax */ 7001 ecx = esi; /* 0x470375FE: mov ecx, esi */ 7002 RECOMP_ICALL(0x4703B210u); /* 0x47037600: call 0x4703b210 */ /* not lifted */ 7003 RECOMP_FLAGS_IN(); 7004 PUSH32(esp, eax); /* 0x47037605: push eax */ 7005 ecx = esi; /* 0x47037606: mov ecx, esi */ 7006 RECOMP_ICALL(0x4703B240u); /* 0x47037608: call 0x4703b240 */ /* not lifted */ 7007 RECOMP_FLAGS_IN(); 7008 PUSH32(esp, eax); /* 0x4703760D: push eax */ 7009 ecx = esi; /* 0x4703760E: mov ecx, esi */ 7010 RECOMP_ICALL(0x4703B080u); /* 0x47037610: call 0x4703b080 */ /* not lifted */ 7011 RECOMP_FLAGS_IN(); 7012 PUSH32(esp, eax); /* 0x47037615: push eax */ 7013 PUSH32(esp, edi); /* 0x47037616: push edi */ 7014 PUSH32(esp, 0); /* 0x47037617: push 0 */ 7015 PUSH32(esp, 0x416u); /* 0x47037619: push 0x416 */ 7016 PUSH32(esp, 0x47106DE4u); /* 0x4703761E: push 0x47106de4 */ 7017 ecx = esi; /* 0x47037623: mov ecx, esi */ 7018 RECOMP_ICALL(0x4703A340u); /* 0x47037625: call 0x4703a340 */ /* not lifted */ 7019 RECOMP_FLAGS_IN(); 7020 PUSH32(esp, 0x47107000u); /* 0x4703762A: push 0x47107000 */ 7021 PUSH32(esp, 4); /* 0x4703762F: push 4 */ 7022 PUSH32(esp, esi); /* 0x47037631: push esi */ 7023 RECOMP_ICALL(0x47039830u); /* 0x47037632: call 0x47039830 */ /* not lifted */ 7024 RECOMP_FLAGS_IN(); 7025 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7026 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7027 esp = esp + 0xCu; /* 0x47037637: add esp, 0xc */ 7028 _flag_k = FK_ADD; 7029 RECOMP_ICALL(ebx); /* 0x4703763A: call ebx */ 7030 RECOMP_FLAGS_IN(); 7031 esi = eax; /* 0x4703763C: mov esi, eax */ 7032 RECOMP_ICALL(ebp); /* 0x4703763E: call ebp */ 7033 RECOMP_FLAGS_IN(); 7034 eax = MEM32(eax); /* 0x47037640: mov eax, dword ptr [eax] */ 7035 /* test eax, eax */ /* 0x47037642: test eax, eax */ 7036 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7037 _cf = 0; 7038 _flag_k = FK_TEST; 7039 edi = esi; /* 0x47037644: mov edi, esi */ 7040 if (TEST_Z(_flag_a, _flag_b)) goto L_4703764A; /* 0x47037646: je 0x4703764a */ 7041 L_47037648: 7042 edi = eax; /* 0x47037648: mov edi, eax */ 7043 L_4703764A: 7044 RECOMP_ICALL(0x47039020u); /* 0x4703764A: call 0x47039020 */ /* not lifted */ 7045 RECOMP_FLAGS_IN(); 7046 esi = eax; /* 0x4703764F: mov esi, eax */ 7047 ecx = esi; /* 0x47037651: mov ecx, esi */ 7048 RECOMP_ICALL(0x4703B210u); /* 0x47037653: call 0x4703b210 */ /* not lifted */ 7049 RECOMP_FLAGS_IN(); 7050 PUSH32(esp, eax); /* 0x47037658: push eax */ 7051 ecx = esi; /* 0x47037659: mov ecx, esi */ 7052 RECOMP_ICALL(0x4703B240u); /* 0x4703765B: call 0x4703b240 */ /* not lifted */ 7053 RECOMP_FLAGS_IN(); 7054 PUSH32(esp, eax); /* 0x47037660: push eax */ 7055 ecx = esi; /* 0x47037661: mov ecx, esi */ 7056 RECOMP_ICALL(0x4703B080u); /* 0x47037663: call 0x4703b080 */ /* not lifted */ 7057 RECOMP_FLAGS_IN(); 7058 PUSH32(esp, eax); /* 0x47037668: push eax */ 7059 PUSH32(esp, edi); /* 0x47037669: push edi */ 7060 PUSH32(esp, 0); /* 0x4703766A: push 0 */ 7061 PUSH32(esp, 0x417u); /* 0x4703766C: push 0x417 */ 7062 PUSH32(esp, 0x47106DE4u); /* 0x47037671: push 0x47106de4 */ 7063 ecx = esi; /* 0x47037676: mov ecx, esi */ 7064 RECOMP_ICALL(0x4703A340u); /* 0x47037678: call 0x4703a340 */ /* not lifted */ 7065 RECOMP_FLAGS_IN(); 7066 PUSH32(esp, 0x4710529Cu); /* 0x4703767D: push 0x4710529c */ 7067 PUSH32(esp, 4); /* 0x47037682: push 4 */ 7068 PUSH32(esp, esi); /* 0x47037684: push esi */ 7069 RECOMP_ICALL(0x47039830u); /* 0x47037685: call 0x47039830 */ /* not lifted */ 7070 RECOMP_FLAGS_IN(); 7071 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7072 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7073 esp = esp + 0xCu; /* 0x4703768A: add esp, 0xc */ 7074 _flag_k = FK_ADD; 7075 edi = POP32_VAL(esp); /* 0x4703768D: pop edi */ 7076 esi = POP32_VAL(esp); /* 0x4703768E: pop esi */ 7077 ebp = POP32_VAL(esp); /* 0x4703768F: pop ebp */ 7078 ebx = POP32_VAL(esp); /* 0x47037690: pop ebx */ 7079 ecx = POP32_VAL(esp); /* 0x47037691: pop ecx */ 7080 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47037692: ret */ 7081 RECOMP_REGS_OUT(); 7082 } 7083 7084 void sub_470376A0(void) { 7085 int _fpu_cmp = 0; 7086 uint32_t _cf = 0; 7087 int _df = 1; 7088 uint32_t _flag_k = FK_NONE; 7089 uint32_t _flag_a = 0, _flag_b = 0; 7090 uint32_t _itail_tgt = 0; 7091 RECOMP_REGS_LOCALS 7092 RECOMP_ENTER(0x470376A0u); 7093 7094 L_470376A0: 7095 PUSH32(esp, ecx); /* 0x470376A0: push ecx */ 7096 eax = MEM32(ecx + 0x30); /* 0x470376A1: mov eax, dword ptr [ecx + 0x30] */ 7097 /* test eax, eax */ /* 0x470376A4: test eax, eax */ 7098 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7099 _cf = 0; 7100 _flag_k = FK_TEST; 7101 PUSH32(esp, esi); /* 0x470376A6: push esi */ 7102 esi = ecx + 0x10; /* 0x470376A7: lea esi, [ecx + 0x10] */ 7103 if (TEST_NZ(_flag_a, _flag_b)) goto L_470376B3; /* 0x470376AA: jne 0x470376b3 */ 7104 L_470376AC: 7105 ecx = esi; /* 0x470376AC: mov ecx, esi */ 7106 RECOMP_ICALL(0x47038D20u); /* 0x470376AE: call 0x47038d20 */ /* not lifted */ 7107 RECOMP_FLAGS_IN(); 7108 L_470376B3: 7109 eax = MEM32(esi + 0x24); /* 0x470376B3: mov eax, dword ptr [esi + 0x24] */ 7110 ecx = esp + 0x4; /* 0x470376B6: lea ecx, [esp + 4] */ 7111 PUSH32(esp, ecx); /* 0x470376BA: push ecx */ 7112 PUSH32(esp, eax); /* 0x470376BB: push eax */ 7113 MEM32(esp + 0xC) = 0; /* 0x470376BC: mov dword ptr [esp + 0xc], 0 */ 7114 RECOMP_ICALL(0x47004600u); /* 0x470376C4: call 0x47004600 */ /* not lifted */ 7115 RECOMP_FLAGS_IN(); 7116 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7117 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7118 esp = esp + 8; /* 0x470376C9: add esp, 8 */ 7119 _flag_k = FK_ADD; 7120 /* cmp eax, 0xFFFFFFFFu */ /* 0x470376CC: cmp eax, -1 */ 7121 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 7122 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7123 _flag_k = FK_CMP; 7124 if (CMP_NE(_flag_a, _flag_b)) goto L_470376D5; /* 0x470376CF: jne 0x470376d5 */ 7125 L_470376D1: 7126 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7127 eax = 0; /* 0x470376D1: xor eax, eax */ 7128 _cf = 0; 7129 _flag_k = FK_TEST; 7130 goto L_4703771D; /* 0x470376D3: jmp 0x4703771d */ 7131 L_470376D5: 7132 eax = MEM32(esp + 0x4); /* 0x470376D5: mov eax, dword ptr [esp + 4] */ 7133 /* test eax, eax */ /* 0x470376D9: test eax, eax */ 7134 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7135 _cf = 0; 7136 _flag_k = FK_TEST; 7137 if (TEST_NZ(_flag_a, _flag_b)) goto L_47037719; /* 0x470376DB: jne 0x47037719 */ 7138 L_470376DD: 7139 edx = MEM32(esi); /* 0x470376DD: mov edx, dword ptr [esi] */ 7140 ecx = esi; /* 0x470376DF: mov ecx, esi */ 7141 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x470376E1: call dword ptr [edx + 4] */ 7142 RECOMP_FLAGS_IN(); 7143 /* test eax, eax */ /* 0x470376E4: test eax, eax */ 7144 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7145 _cf = 0; 7146 _flag_k = FK_TEST; 7147 MEM32(esp + 0x4) = eax; /* 0x470376E6: mov dword ptr [esp + 4], eax */ 7148 if (TEST_Z(_flag_a, _flag_b)) goto L_4703771D; /* 0x470376EA: je 0x4703771d */ 7149 L_470376EC: 7150 esi = MEM32(esi + 0x24); /* 0x470376EC: mov esi, dword ptr [esi + 0x24] */ 7151 PUSH32(esp, eax); /* 0x470376EF: push eax */ 7152 PUSH32(esp, esi); /* 0x470376F0: push esi */ 7153 RECOMP_ICALL(0x47056110u); /* 0x470376F1: call 0x47056110 */ /* not lifted */ 7154 RECOMP_FLAGS_IN(); 7155 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7156 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7157 esp = esp + 8; /* 0x470376F6: add esp, 8 */ 7158 _flag_k = FK_ADD; 7159 /* test eax, eax */ /* 0x470376F9: test eax, eax */ 7160 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7161 _cf = 0; 7162 _flag_k = FK_TEST; 7163 if (TEST_Z(_flag_a, _flag_b)) goto L_47037719; /* 0x470376FB: je 0x47037719 */ 7164 L_470376FD: 7165 ecx = MEM32(esp + 0x4); /* 0x470376FD: mov ecx, dword ptr [esp + 4] */ 7166 /* test ecx, ecx */ /* 0x47037701: test ecx, ecx */ 7167 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 7168 _cf = 0; 7169 _flag_k = FK_TEST; 7170 esi = ecx; /* 0x47037703: mov esi, ecx */ 7171 if (TEST_Z(_flag_a, _flag_b)) goto L_47037715; /* 0x47037705: je 0x47037715 */ 7172 L_47037707: 7173 RECOMP_ICALL(0x470350A0u); /* 0x47037707: call 0x470350a0 */ /* not lifted */ 7174 RECOMP_FLAGS_IN(); 7175 PUSH32(esp, esi); /* 0x4703770C: push esi */ 7176 RECOMP_ICALL(0x470A32A2u); /* 0x4703770D: call 0x470a32a2 */ /* not lifted */ 7177 RECOMP_FLAGS_IN(); 7178 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7179 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7180 esp = esp + 4; /* 0x47037712: add esp, 4 */ 7181 _flag_k = FK_ADD; 7182 L_47037715: 7183 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7184 eax = 0; /* 0x47037715: xor eax, eax */ 7185 _cf = 0; 7186 _flag_k = FK_TEST; 7187 goto L_4703771D; /* 0x47037717: jmp 0x4703771d */ 7188 L_47037719: 7189 eax = MEM32(esp + 0x4); /* 0x47037719: mov eax, dword ptr [esp + 4] */ 7190 L_4703771D: 7191 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x60u); 7192 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7193 eax = eax + 0x60u; /* 0x4703771D: add eax, 0x60 */ 7194 _flag_k = FK_ADD; 7195 /* test eax, eax */ /* 0x47037720: test eax, eax */ 7196 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7197 _cf = 0; 7198 _flag_k = FK_TEST; 7199 esi = POP32_VAL(esp); /* 0x47037722: pop esi */ 7200 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703772A; /* 0x47037723: jne 0x4703772a */ 7201 L_47037725: 7202 eax = 0x4710707Cu; /* 0x47037725: mov eax, 0x4710707c */ 7203 L_4703772A: 7204 ecx = POP32_VAL(esp); /* 0x4703772A: pop ecx */ 7205 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703772B: ret */ 7206 RECOMP_REGS_OUT(); 7207 } 7208 7209 void sub_47037730(void) { 7210 int _fpu_cmp = 0; 7211 uint32_t _cf = 0; 7212 int _df = 1; 7213 uint32_t _flag_k = FK_NONE; 7214 uint32_t _flag_a = 0, _flag_b = 0; 7215 uint32_t _itail_tgt = 0; 7216 RECOMP_REGS_LOCALS 7217 RECOMP_ENTER(0x47037730u); 7218 7219 L_47037730: 7220 PUSH32(esp, ecx); /* 0x47037730: push ecx */ 7221 eax = MEM32(ecx + 0x30); /* 0x47037731: mov eax, dword ptr [ecx + 0x30] */ 7222 /* test eax, eax */ /* 0x47037734: test eax, eax */ 7223 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7224 _cf = 0; 7225 _flag_k = FK_TEST; 7226 PUSH32(esp, esi); /* 0x47037736: push esi */ 7227 esi = ecx + 0x10; /* 0x47037737: lea esi, [ecx + 0x10] */ 7228 if (TEST_NZ(_flag_a, _flag_b)) goto L_47037743; /* 0x4703773A: jne 0x47037743 */ 7229 L_4703773C: 7230 ecx = esi; /* 0x4703773C: mov ecx, esi */ 7231 RECOMP_ICALL(0x47038D20u); /* 0x4703773E: call 0x47038d20 */ /* not lifted */ 7232 RECOMP_FLAGS_IN(); 7233 L_47037743: 7234 eax = MEM32(esi + 0x24); /* 0x47037743: mov eax, dword ptr [esi + 0x24] */ 7235 ecx = esp + 0x4; /* 0x47037746: lea ecx, [esp + 4] */ 7236 PUSH32(esp, ecx); /* 0x4703774A: push ecx */ 7237 PUSH32(esp, eax); /* 0x4703774B: push eax */ 7238 MEM32(esp + 0xC) = 0; /* 0x4703774C: mov dword ptr [esp + 0xc], 0 */ 7239 RECOMP_ICALL(0x47004600u); /* 0x47037754: call 0x47004600 */ /* not lifted */ 7240 RECOMP_FLAGS_IN(); 7241 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7242 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7243 esp = esp + 8; /* 0x47037759: add esp, 8 */ 7244 _flag_k = FK_ADD; 7245 /* cmp eax, 0xFFFFFFFFu */ /* 0x4703775C: cmp eax, -1 */ 7246 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 7247 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7248 _flag_k = FK_CMP; 7249 if (CMP_NE(_flag_a, _flag_b)) goto L_47037765; /* 0x4703775F: jne 0x47037765 */ 7250 L_47037761: 7251 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7252 esi = 0; /* 0x47037761: xor esi, esi */ 7253 _cf = 0; 7254 _flag_k = FK_TEST; 7255 goto L_470377B1; /* 0x47037763: jmp 0x470377b1 */ 7256 L_47037765: 7257 eax = MEM32(esp + 0x4); /* 0x47037765: mov eax, dword ptr [esp + 4] */ 7258 /* test eax, eax */ /* 0x47037769: test eax, eax */ 7259 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7260 _cf = 0; 7261 _flag_k = FK_TEST; 7262 if (TEST_NZ(_flag_a, _flag_b)) goto L_470377AD; /* 0x4703776B: jne 0x470377ad */ 7263 L_4703776D: 7264 edx = MEM32(esi); /* 0x4703776D: mov edx, dword ptr [esi] */ 7265 ecx = esi; /* 0x4703776F: mov ecx, esi */ 7266 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47037771: call dword ptr [edx + 4] */ 7267 RECOMP_FLAGS_IN(); 7268 /* test eax, eax */ /* 0x47037774: test eax, eax */ 7269 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7270 _cf = 0; 7271 _flag_k = FK_TEST; 7272 MEM32(esp + 0x4) = eax; /* 0x47037776: mov dword ptr [esp + 4], eax */ 7273 if (TEST_NZ(_flag_a, _flag_b)) goto L_47037780; /* 0x4703777A: jne 0x47037780 */ 7274 L_4703777C: 7275 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7276 esi = 0; /* 0x4703777C: xor esi, esi */ 7277 _cf = 0; 7278 _flag_k = FK_TEST; 7279 goto L_470377B1; /* 0x4703777E: jmp 0x470377b1 */ 7280 L_47037780: 7281 esi = MEM32(esi + 0x24); /* 0x47037780: mov esi, dword ptr [esi + 0x24] */ 7282 PUSH32(esp, eax); /* 0x47037783: push eax */ 7283 PUSH32(esp, esi); /* 0x47037784: push esi */ 7284 RECOMP_ICALL(0x47056110u); /* 0x47037785: call 0x47056110 */ /* not lifted */ 7285 RECOMP_FLAGS_IN(); 7286 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7287 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7288 esp = esp + 8; /* 0x4703778A: add esp, 8 */ 7289 _flag_k = FK_ADD; 7290 /* test eax, eax */ /* 0x4703778D: test eax, eax */ 7291 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7292 _cf = 0; 7293 _flag_k = FK_TEST; 7294 if (TEST_Z(_flag_a, _flag_b)) goto L_470377AD; /* 0x4703778F: je 0x470377ad */ 7295 L_47037791: 7296 ecx = MEM32(esp + 0x4); /* 0x47037791: mov ecx, dword ptr [esp + 4] */ 7297 /* test ecx, ecx */ /* 0x47037795: test ecx, ecx */ 7298 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 7299 _cf = 0; 7300 _flag_k = FK_TEST; 7301 esi = ecx; /* 0x47037797: mov esi, ecx */ 7302 if (TEST_Z(_flag_a, _flag_b)) goto L_470377A9; /* 0x47037799: je 0x470377a9 */ 7303 L_4703779B: 7304 RECOMP_ICALL(0x470350A0u); /* 0x4703779B: call 0x470350a0 */ /* not lifted */ 7305 RECOMP_FLAGS_IN(); 7306 PUSH32(esp, esi); /* 0x470377A0: push esi */ 7307 RECOMP_ICALL(0x470A32A2u); /* 0x470377A1: call 0x470a32a2 */ /* not lifted */ 7308 RECOMP_FLAGS_IN(); 7309 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7310 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7311 esp = esp + 4; /* 0x470377A6: add esp, 4 */ 7312 _flag_k = FK_ADD; 7313 L_470377A9: 7314 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7315 esi = 0; /* 0x470377A9: xor esi, esi */ 7316 _cf = 0; 7317 _flag_k = FK_TEST; 7318 goto L_470377B1; /* 0x470377AB: jmp 0x470377b1 */ 7319 L_470377AD: 7320 esi = MEM32(esp + 0x4); /* 0x470377AD: mov esi, dword ptr [esp + 4] */ 7321 L_470377B1: 7322 edx = MEM32(esp + 0xC); /* 0x470377B1: mov edx, dword ptr [esp + 0xc] */ 7323 /* test edx, edx */ /* 0x470377B5: test edx, edx */ 7324 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 7325 _cf = 0; 7326 _flag_k = FK_TEST; 7327 if (TEST_Z(_flag_a, _flag_b)) goto L_470377E9; /* 0x470377B7: je 0x470377e9 */ 7328 L_470377B9: 7329 PUSH32(esp, edi); /* 0x470377B9: push edi */ 7330 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 7331 ecx = ecx | 0xFFFFFFFFu; /* 0x470377BA: or ecx, 0xffffffff */ 7332 _cf = 0; 7333 _flag_k = FK_TEST; 7334 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7335 eax = 0; /* 0x470377BD: xor eax, eax */ 7336 _cf = 0; 7337 _flag_k = FK_TEST; 7338 edi = edx; /* 0x470377BF: mov edi, edx */ 7339 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; } /* 0x470377C1: repne scasb al, byte ptr es:[edi] */ 7340 ecx = ~ecx; /* 0x470377C3: not ecx */ 7341 /* cmp ecx, 0x114u */ /* 0x470377C5: cmp ecx, 0x114 */ 7342 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x114u); 7343 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7344 _flag_k = FK_CMP; 7345 edi = POP32_VAL(esp); /* 0x470377CB: pop edi */ 7346 if (CMP_L(_flag_a, _flag_b)) goto L_470377D3; /* 0x470377CC: jl 0x470377d3 */ 7347 L_470377CE: 7348 ecx = 0x113u; /* 0x470377CE: mov ecx, 0x113 */ 7349 L_470377D3: 7350 PUSH32(esp, ecx); /* 0x470377D3: push ecx */ 7351 PUSH32(esp, edx); /* 0x470377D4: push edx */ 7352 eax = esi + 0x60; /* 0x470377D5: lea eax, [esi + 0x60] */ 7353 PUSH32(esp, eax); /* 0x470377D8: push eax */ 7354 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x470377D9: call dword ptr [0x470ac22c] */ 7355 RECOMP_FLAGS_IN(); 7356 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7357 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7358 esp = esp + 0xCu; /* 0x470377DF: add esp, 0xc */ 7359 _flag_k = FK_ADD; 7360 MEM8(esi + 0x173) = (uint8_t)(0); /* 0x470377E2: mov byte ptr [esi + 0x173], 0 */ 7361 L_470377E9: 7362 esi = POP32_VAL(esp); /* 0x470377E9: pop esi */ 7363 ecx = POP32_VAL(esp); /* 0x470377EA: pop ecx */ 7364 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470377EB: ret 4 */ 7365 RECOMP_REGS_OUT(); 7366 } 7367 7368 void sub_470377F0(void) { 7369 int _fpu_cmp = 0; 7370 uint32_t _cf = 0; 7371 int _df = 1; 7372 uint32_t _flag_k = FK_NONE; 7373 uint32_t _flag_a = 0, _flag_b = 0; 7374 uint32_t _itail_tgt = 0; 7375 RECOMP_REGS_LOCALS 7376 RECOMP_ENTER(0x470377F0u); 7377 7378 L_470377F0: 7379 eax = MEM32(ecx + 0xC); /* 0x470377F0: mov eax, dword ptr [ecx + 0xc] */ 7380 ecx = MEM32(eax + 0xC); /* 0x470377F3: mov ecx, dword ptr [eax + 0xc] */ 7381 /* test ecx, ecx */ /* 0x470377F6: test ecx, ecx */ 7382 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 7383 _cf = 0; 7384 _flag_k = FK_TEST; 7385 if (TEST_Z(_flag_a, _flag_b)) goto L_470377FC; /* 0x470377F8: je 0x470377fc */ 7386 L_470377FA: 7387 if (TEST_NZ(_flag_a, _flag_b)) goto L_47037802; /* 0x470377FA: jne 0x47037802 */ 7388 L_470377FC: 7389 eax = 0x47106D58u; /* 0x470377FC: mov eax, 0x47106d58 */ 7390 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47037801: ret */ 7391 L_47037802: 7392 eax = MEM32(eax + 0xC); /* 0x47037802: mov eax, dword ptr [eax + 0xc] */ 7393 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x60u); 7394 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7395 eax = eax + 0x60u; /* 0x47037805: add eax, 0x60 */ 7396 _flag_k = FK_ADD; 7397 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47037808: ret */ 7398 RECOMP_REGS_OUT(); 7399 } 7400 7401 void sub_47037810(void) { 7402 int _fpu_cmp = 0; 7403 uint32_t _cf = 0; 7404 int _df = 1; 7405 uint32_t _flag_k = FK_NONE; 7406 uint32_t _flag_a = 0, _flag_b = 0; 7407 uint32_t _itail_tgt = 0; 7408 RECOMP_REGS_LOCALS 7409 RECOMP_ENTER(0x47037810u); 7410 7411 L_47037810: 7412 eax = MEM32(ecx + 0xC); /* 0x47037810: mov eax, dword ptr [ecx + 0xc] */ 7413 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u); 7414 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7415 eax = eax + 0x18u; /* 0x47037813: add eax, 0x18 */ 7416 _flag_k = FK_ADD; 7417 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47037816: ret */ 7418 RECOMP_REGS_OUT(); 7419 } 7420 7421 void sub_47037820(void) { 7422 int _fpu_cmp = 0; 7423 uint32_t _cf = 0; 7424 int _df = 1; 7425 uint32_t _flag_k = FK_NONE; 7426 uint32_t _flag_a = 0, _flag_b = 0; 7427 uint32_t _itail_tgt = 0; 7428 RECOMP_REGS_LOCALS 7429 RECOMP_ENTER(0x47037820u); 7430 7431 L_47037820: 7432 eax = MEM32(FS_BASE + (0)); /* 0x47037820: mov eax, dword ptr fs:[0] */ 7433 PUSH32(esp, 0xFFFFFFFFu); /* 0x47037826: push -1 */ 7434 PUSH32(esp, 0x470A5DBBu); /* 0x47037828: push 0x470a5dbb */ 7435 PUSH32(esp, eax); /* 0x4703782D: push eax */ 7436 MEM32(FS_BASE + (0)) = esp; /* 0x4703782E: mov dword ptr fs:[0], esp */ 7437 PUSH32(esp, esi); /* 0x47037835: push esi */ 7438 esi = ecx; /* 0x47037836: mov esi, ecx */ 7439 PUSH32(esp, 0); /* 0x47037838: push 0 */ 7440 PUSH32(esp, 0); /* 0x4703783A: push 0 */ 7441 ecx = esi + 0x14; /* 0x4703783C: lea ecx, [esi + 0x14] */ 7442 MEM32(esi + 0xC) = 0; /* 0x4703783F: mov dword ptr [esi + 0xc], 0 */ 7443 RECOMP_ICALL(0x47087E50u); /* 0x47037846: call 0x47087e50 */ /* not lifted */ 7444 RECOMP_FLAGS_IN(); 7445 ecx = MEM32(esp + 0x4); /* 0x4703784B: mov ecx, dword ptr [esp + 4] */ 7446 MEM32(esi + 0x30) = 0; /* 0x4703784F: mov dword ptr [esi + 0x30], 0 */ 7447 eax = MEM32(0x4710E904); /* 0x47037856: mov eax, dword ptr [0x4710e904] */ 7448 MEM32(esi + 0x34) = eax; /* 0x4703785B: mov dword ptr [esi + 0x34], eax */ 7449 MEM32(esi + 0x38) = esi; /* 0x4703785E: mov dword ptr [esi + 0x38], esi */ 7450 MEM32(esi + 0x3C) = 0; /* 0x47037861: mov dword ptr [esi + 0x3c], 0 */ 7451 MEM32(esi + 0x10) = 0x470AD3E8u; /* 0x47037868: mov dword ptr [esi + 0x10], 0x470ad3e8 */ 7452 MEM32(esi) = 0x470AD3F8u; /* 0x4703786F: mov dword ptr [esi], 0x470ad3f8 */ 7453 eax = esi; /* 0x47037875: mov eax, esi */ 7454 MEM32(FS_BASE + (0)) = ecx; /* 0x47037877: mov dword ptr fs:[0], ecx */ 7455 esi = POP32_VAL(esp); /* 0x4703787E: pop esi */ 7456 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7457 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7458 esp = esp + 0xCu; /* 0x4703787F: add esp, 0xc */ 7459 _flag_k = FK_ADD; 7460 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47037882: ret */ 7461 RECOMP_REGS_OUT(); 7462 } 7463 7464 void sub_47037890(void) { 7465 int _fpu_cmp = 0; 7466 uint32_t _cf = 0; 7467 int _df = 1; 7468 uint32_t _flag_k = FK_NONE; 7469 uint32_t _flag_a = 0, _flag_b = 0; 7470 uint32_t _itail_tgt = 0; 7471 RECOMP_REGS_LOCALS 7472 RECOMP_ENTER(0x47037890u); 7473 7474 L_47037890: 7475 PUSH32(esp, ebx); /* 0x47037890: push ebx */ 7476 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47037891: mov bl, byte ptr [esp + 8] */ 7477 /* test LO8(ebx), 2 */ /* 0x47037895: test bl, 2 */ 7478 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 7479 _cf = 0; 7480 _flag_k = FK_NARROW(FK_TEST, 24); 7481 PUSH32(esp, esi); /* 0x47037898: push esi */ 7482 esi = ecx; /* 0x47037899: mov esi, ecx */ 7483 if (TEST_Z(_flag_a, _flag_b)) goto L_470378C8; /* 0x4703789B: je 0x470378c8 */ 7484 L_4703789D: 7485 eax = MEM32(esi + (-0x4)); /* 0x4703789D: mov eax, dword ptr [esi - 4] */ 7486 PUSH32(esp, edi); /* 0x470378A0: push edi */ 7487 PUSH32(esp, 0x47037960u); /* 0x470378A1: push 0x47037960 */ 7488 edi = esi + (-0x4); /* 0x470378A6: lea edi, [esi - 4] */ 7489 PUSH32(esp, eax); /* 0x470378A9: push eax */ 7490 PUSH32(esp, 0x40u); /* 0x470378AA: push 0x40 */ 7491 PUSH32(esp, esi); /* 0x470378AC: push esi */ 7492 RECOMP_ICALL(0x470A32EBu); /* 0x470378AD: call 0x470a32eb */ /* not lifted */ 7493 RECOMP_FLAGS_IN(); 7494 /* test LO8(ebx), 1 */ /* 0x470378B2: test bl, 1 */ 7495 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 7496 _cf = 0; 7497 _flag_k = FK_NARROW(FK_TEST, 24); 7498 if (TEST_Z(_flag_a, _flag_b)) goto L_470378C0; /* 0x470378B5: je 0x470378c0 */ 7499 L_470378B7: 7500 PUSH32(esp, edi); /* 0x470378B7: push edi */ 7501 RECOMP_ICALL(0x470A32A2u); /* 0x470378B8: call 0x470a32a2 */ /* not lifted */ 7502 RECOMP_FLAGS_IN(); 7503 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7504 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7505 esp = esp + 4; /* 0x470378BD: add esp, 4 */ 7506 _flag_k = FK_ADD; 7507 L_470378C0: 7508 eax = edi; /* 0x470378C0: mov eax, edi */ 7509 edi = POP32_VAL(esp); /* 0x470378C2: pop edi */ 7510 esi = POP32_VAL(esp); /* 0x470378C3: pop esi */ 7511 ebx = POP32_VAL(esp); /* 0x470378C4: pop ebx */ 7512 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470378C5: ret 4 */ 7513 L_470378C8: 7514 ecx = esi; /* 0x470378C8: mov ecx, esi */ 7515 RECOMP_ICALL(0x47037960u); /* 0x470378CA: call 0x47037960 */ /* not lifted */ 7516 RECOMP_FLAGS_IN(); 7517 /* test LO8(ebx), 1 */ /* 0x470378CF: test bl, 1 */ 7518 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 7519 _cf = 0; 7520 _flag_k = FK_NARROW(FK_TEST, 24); 7521 if (TEST_Z(_flag_a, _flag_b)) goto L_470378DD; /* 0x470378D2: je 0x470378dd */ 7522 L_470378D4: 7523 PUSH32(esp, esi); /* 0x470378D4: push esi */ 7524 RECOMP_ICALL(0x470A32A2u); /* 0x470378D5: call 0x470a32a2 */ /* not lifted */ 7525 RECOMP_FLAGS_IN(); 7526 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7527 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7528 esp = esp + 4; /* 0x470378DA: add esp, 4 */ 7529 _flag_k = FK_ADD; 7530 L_470378DD: 7531 eax = esi; /* 0x470378DD: mov eax, esi */ 7532 esi = POP32_VAL(esp); /* 0x470378DF: pop esi */ 7533 ebx = POP32_VAL(esp); /* 0x470378E0: pop ebx */ 7534 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470378E1: ret 4 */ 7535 RECOMP_REGS_OUT(); 7536 } 7537 7538 void sub_470378F0(void) { 7539 int _fpu_cmp = 0; 7540 uint32_t _cf = 0; 7541 int _df = 1; 7542 uint32_t _flag_k = FK_NONE; 7543 uint32_t _flag_a = 0, _flag_b = 0; 7544 uint32_t _itail_tgt = 0; 7545 RECOMP_REGS_LOCALS 7546 RECOMP_ENTER(0x470378F0u); 7547 7548 L_470378F0: 7549 eax = MEM32(FS_BASE + (0)); /* 0x470378F0: mov eax, dword ptr fs:[0] */ 7550 PUSH32(esp, 0xFFFFFFFFu); /* 0x470378F6: push -1 */ 7551 PUSH32(esp, 0x470A5DDBu); /* 0x470378F8: push 0x470a5ddb */ 7552 PUSH32(esp, eax); /* 0x470378FD: push eax */ 7553 MEM32(FS_BASE + (0)) = esp; /* 0x470378FE: mov dword ptr fs:[0], esp */ 7554 PUSH32(esp, esi); /* 0x47037905: push esi */ 7555 esi = ecx; /* 0x47037906: mov esi, ecx */ 7556 PUSH32(esp, 0); /* 0x47037908: push 0 */ 7557 PUSH32(esp, 0); /* 0x4703790A: push 0 */ 7558 ecx = esi + 0x14; /* 0x4703790C: lea ecx, [esi + 0x14] */ 7559 MEM32(esi + 0xC) = 0; /* 0x4703790F: mov dword ptr [esi + 0xc], 0 */ 7560 RECOMP_ICALL(0x47087E50u); /* 0x47037916: call 0x47087e50 */ /* not lifted */ 7561 RECOMP_FLAGS_IN(); 7562 ecx = MEM32(esp + 0x4); /* 0x4703791B: mov ecx, dword ptr [esp + 4] */ 7563 MEM32(esi + 0x30) = 0; /* 0x4703791F: mov dword ptr [esi + 0x30], 0 */ 7564 eax = MEM32(0x4710E904); /* 0x47037926: mov eax, dword ptr [0x4710e904] */ 7565 MEM32(esi + 0x34) = eax; /* 0x4703792B: mov dword ptr [esi + 0x34], eax */ 7566 MEM32(esi + 0x38) = esi; /* 0x4703792E: mov dword ptr [esi + 0x38], esi */ 7567 MEM32(esi + 0x3C) = 0; /* 0x47037931: mov dword ptr [esi + 0x3c], 0 */ 7568 MEM32(esi + 0x10) = 0x470AD3E8u; /* 0x47037938: mov dword ptr [esi + 0x10], 0x470ad3e8 */ 7569 MEM32(esi) = 0x470AD3F8u; /* 0x4703793F: mov dword ptr [esi], 0x470ad3f8 */ 7570 eax = esi; /* 0x47037945: mov eax, esi */ 7571 MEM32(FS_BASE + (0)) = ecx; /* 0x47037947: mov dword ptr fs:[0], ecx */ 7572 esi = POP32_VAL(esp); /* 0x4703794E: pop esi */ 7573 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7574 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7575 esp = esp + 0xCu; /* 0x4703794F: add esp, 0xc */ 7576 _flag_k = FK_ADD; 7577 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47037952: ret 4 */ 7578 RECOMP_REGS_OUT(); 7579 } 7580 7581 void sub_47037960(void) { 7582 int _fpu_cmp = 0; 7583 uint32_t _cf = 0; 7584 int _df = 1; 7585 uint32_t _flag_k = FK_NONE; 7586 uint32_t _flag_a = 0, _flag_b = 0; 7587 uint32_t _itail_tgt = 0; 7588 RECOMP_REGS_LOCALS 7589 RECOMP_ENTER(0x47037960u); 7590 7591 L_47037960: 7592 PUSH32(esp, 0xFFFFFFFFu); /* 0x47037960: push -1 */ 7593 PUSH32(esp, 0x470A5E06u); /* 0x47037962: push 0x470a5e06 */ 7594 eax = MEM32(FS_BASE + (0)); /* 0x47037967: mov eax, dword ptr fs:[0] */ 7595 PUSH32(esp, eax); /* 0x4703796D: push eax */ 7596 MEM32(FS_BASE + (0)) = esp; /* 0x4703796E: mov dword ptr fs:[0], esp */ 7597 PUSH32(esp, ecx); /* 0x47037975: push ecx */ 7598 PUSH32(esp, esi); /* 0x47037976: push esi */ 7599 esi = ecx; /* 0x47037977: mov esi, ecx */ 7600 MEM32(esp + 0x4) = esi; /* 0x47037979: mov dword ptr [esp + 4], esi */ 7601 MEM32(esi) = 0x470AD3F8u; /* 0x4703797D: mov dword ptr [esi], 0x470ad3f8 */ 7602 ecx = MEM32(esi + 0xC); /* 0x47037983: mov ecx, dword ptr [esi + 0xc] */ 7603 /* test ecx, ecx */ /* 0x47037986: test ecx, ecx */ 7604 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 7605 _cf = 0; 7606 _flag_k = FK_TEST; 7607 eax = esi + 0xC; /* 0x47037988: lea eax, [esi + 0xc] */ 7608 MEM32(esp + 0x10) = 0; /* 0x4703798B: mov dword ptr [esp + 0x10], 0 */ 7609 if (TEST_Z(_flag_a, _flag_b)) goto L_470379A2; /* 0x47037993: je 0x470379a2 */ 7610 L_47037995: 7611 PUSH32(esp, eax); /* 0x47037995: push eax */ 7612 RECOMP_ICALL(0x470942F0u); /* 0x47037996: call 0x470942f0 */ /* not lifted */ 7613 RECOMP_FLAGS_IN(); 7614 ecx = eax; /* 0x4703799B: mov ecx, eax */ 7615 RECOMP_ICALL(0x47094930u); /* 0x4703799D: call 0x47094930 */ /* not lifted */ 7616 RECOMP_FLAGS_IN(); 7617 L_470379A2: 7618 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 7619 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7620 esi = esi + 0x10u; /* 0x470379A2: add esi, 0x10 */ 7621 _flag_k = FK_ADD; 7622 MEM32(esp + 0x4) = esi; /* 0x470379A5: mov dword ptr [esp + 4], esi */ 7623 MEM32(esi) = 0x470AD3F0u; /* 0x470379A9: mov dword ptr [esi], 0x470ad3f0 */ 7624 PUSH32(esp, esi); /* 0x470379AF: push esi */ 7625 MEM32(esp + 0x14) = 1; /* 0x470379B0: mov dword ptr [esp + 0x14], 1 */ 7626 RECOMP_ICALL(0x470562A0u); /* 0x470379B8: call 0x470562a0 */ /* not lifted */ 7627 RECOMP_FLAGS_IN(); 7628 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7629 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7630 esp = esp + 4; /* 0x470379BD: add esp, 4 */ 7631 _flag_k = FK_ADD; 7632 ecx = esi + 0x4; /* 0x470379C0: lea ecx, [esi + 4] */ 7633 MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x470379C3: mov dword ptr [esp + 0x10], 0xffffffff */ 7634 RECOMP_ICALL(0x47087E30u); /* 0x470379CB: call 0x47087e30 */ /* not lifted */ 7635 RECOMP_FLAGS_IN(); 7636 ecx = MEM32(esp + 0x8); /* 0x470379D0: mov ecx, dword ptr [esp + 8] */ 7637 esi = POP32_VAL(esp); /* 0x470379D4: pop esi */ 7638 MEM32(FS_BASE + (0)) = ecx; /* 0x470379D5: mov dword ptr fs:[0], ecx */ 7639 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7640 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7641 esp = esp + 0x10u; /* 0x470379DC: add esp, 0x10 */ 7642 _flag_k = FK_ADD; 7643 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470379DF: ret */ 7644 RECOMP_REGS_OUT(); 7645 } 7646 7647 void sub_470379E0(void) { 7648 int _fpu_cmp = 0; 7649 uint32_t _cf = 0; 7650 int _df = 1; 7651 uint32_t _flag_k = FK_NONE; 7652 uint32_t _flag_a = 0, _flag_b = 0; 7653 uint32_t _itail_tgt = 0; 7654 RECOMP_REGS_LOCALS 7655 RECOMP_ENTER(0x470379E0u); 7656 7657 L_470379E0: 7658 eax = MEM32(esp + 0x8); /* 0x470379E0: mov eax, dword ptr [esp + 8] */ 7659 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x200u); 7660 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7661 esp = esp - 0x200u; /* 0x470379E4: sub esp, 0x200 */ 7662 _flag_k = FK_CMP; 7663 PUSH32(esp, esi); /* 0x470379EA: push esi */ 7664 esi = ecx; /* 0x470379EB: mov esi, ecx */ 7665 ecx = MEM32(esp + 0x210); /* 0x470379ED: mov ecx, dword ptr [esp + 0x210] */ 7666 MEM32(esi + 0x4) = eax; /* 0x470379F4: mov dword ptr [esi + 4], eax */ 7667 eax = MEM32(esp + 0x208); /* 0x470379F7: mov eax, dword ptr [esp + 0x208] */ 7668 /* test eax, eax */ /* 0x470379FE: test eax, eax */ 7669 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7670 _cf = 0; 7671 _flag_k = FK_TEST; 7672 MEM32(esi + 0x8) = ecx; /* 0x47037A00: mov dword ptr [esi + 8], ecx */ 7673 if (TEST_NZ(_flag_a, _flag_b)) goto L_47037A1C; /* 0x47037A03: jne 0x47037a1c */ 7674 L_47037A05: 7675 PUSH32(esp, esi); /* 0x47037A05: push esi */ 7676 edx = esp + 0x8; /* 0x47037A06: lea edx, [esp + 8] */ 7677 PUSH32(esp, 0x471070A8u); /* 0x47037A0A: push 0x471070a8 */ 7678 PUSH32(esp, edx); /* 0x47037A0F: push edx */ 7679 RECOMP_ICALL(0x47054FC0u); /* 0x47037A10: call 0x47054fc0 */ /* not lifted */ 7680 RECOMP_FLAGS_IN(); 7681 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7682 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7683 esp = esp + 0xCu; /* 0x47037A15: add esp, 0xc */ 7684 _flag_k = FK_ADD; 7685 eax = esp + 0x4; /* 0x47037A18: lea eax, [esp + 4] */ 7686 L_47037A1C: 7687 PUSH32(esp, eax); /* 0x47037A1C: push eax */ 7688 PUSH32(esp, esi); /* 0x47037A1D: push esi */ 7689 RECOMP_ICALL(0x470942F0u); /* 0x47037A1E: call 0x470942f0 */ /* not lifted */ 7690 RECOMP_FLAGS_IN(); 7691 ecx = eax; /* 0x47037A23: mov ecx, eax */ 7692 RECOMP_ICALL(0x47094400u); /* 0x47037A25: call 0x47094400 */ /* not lifted */ 7693 RECOMP_FLAGS_IN(); 7694 eax = MEM32(esi + 0xC); /* 0x47037A2A: mov eax, dword ptr [esi + 0xc] */ 7695 /* test eax, eax */ /* 0x47037A2D: test eax, eax */ 7696 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7697 _cf = 0; 7698 _flag_k = FK_TEST; 7699 if (TEST_NZ(_flag_a, _flag_b)) goto L_47037AA6; /* 0x47037A2F: jne 0x47037aa6 */ 7700 L_47037A31: 7701 esi = MEM32(0x470AC3C8); /* 0x47037A31: mov esi, dword ptr [0x470ac3c8] */ 7702 PUSH32(esp, edi); /* 0x47037A37: push edi */ 7703 RECOMP_ICALL(esi); /* 0x47037A38: call esi */ 7704 RECOMP_FLAGS_IN(); 7705 MEM32(eax) = 0xCu; /* 0x47037A3A: mov dword ptr [eax], 0xc */ 7706 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47037A40: call dword ptr [0x470ac150] */ 7707 RECOMP_FLAGS_IN(); 7708 edi = eax; /* 0x47037A46: mov edi, eax */ 7709 RECOMP_ICALL(esi); /* 0x47037A48: call esi */ 7710 RECOMP_FLAGS_IN(); 7711 eax = MEM32(eax); /* 0x47037A4A: mov eax, dword ptr [eax] */ 7712 /* test eax, eax */ /* 0x47037A4C: test eax, eax */ 7713 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7714 _cf = 0; 7715 _flag_k = FK_TEST; 7716 if (TEST_Z(_flag_a, _flag_b)) goto L_47037A52; /* 0x47037A4E: je 0x47037a52 */ 7717 L_47037A50: 7718 edi = eax; /* 0x47037A50: mov edi, eax */ 7719 L_47037A52: 7720 RECOMP_ICALL(0x47039020u); /* 0x47037A52: call 0x47039020 */ /* not lifted */ 7721 RECOMP_FLAGS_IN(); 7722 esi = eax; /* 0x47037A57: mov esi, eax */ 7723 ecx = esi; /* 0x47037A59: mov ecx, esi */ 7724 RECOMP_ICALL(0x4703B210u); /* 0x47037A5B: call 0x4703b210 */ /* not lifted */ 7725 RECOMP_FLAGS_IN(); 7726 PUSH32(esp, eax); /* 0x47037A60: push eax */ 7727 ecx = esi; /* 0x47037A61: mov ecx, esi */ 7728 RECOMP_ICALL(0x4703B240u); /* 0x47037A63: call 0x4703b240 */ /* not lifted */ 7729 RECOMP_FLAGS_IN(); 7730 PUSH32(esp, eax); /* 0x47037A68: push eax */ 7731 ecx = esi; /* 0x47037A69: mov ecx, esi */ 7732 RECOMP_ICALL(0x4703B080u); /* 0x47037A6B: call 0x4703b080 */ /* not lifted */ 7733 RECOMP_FLAGS_IN(); 7734 PUSH32(esp, eax); /* 0x47037A70: push eax */ 7735 PUSH32(esp, edi); /* 0x47037A71: push edi */ 7736 PUSH32(esp, 0xFFFFFFFFu); /* 0x47037A72: push -1 */ 7737 PUSH32(esp, 0x47Bu); /* 0x47037A74: push 0x47b */ 7738 PUSH32(esp, 0x47106DE4u); /* 0x47037A79: push 0x47106de4 */ 7739 ecx = esi; /* 0x47037A7E: mov ecx, esi */ 7740 RECOMP_ICALL(0x4703A340u); /* 0x47037A80: call 0x4703a340 */ /* not lifted */ 7741 RECOMP_FLAGS_IN(); 7742 PUSH32(esp, 0x47107090u); /* 0x47037A85: push 0x47107090 */ 7743 PUSH32(esp, 0x80u); /* 0x47037A8A: push 0x80 */ 7744 PUSH32(esp, esi); /* 0x47037A8F: push esi */ 7745 RECOMP_ICALL(0x47039830u); /* 0x47037A90: call 0x47039830 */ /* not lifted */ 7746 RECOMP_FLAGS_IN(); 7747 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7748 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7749 esp = esp + 0xCu; /* 0x47037A95: add esp, 0xc */ 7750 _flag_k = FK_ADD; 7751 edi = POP32_VAL(esp); /* 0x47037A98: pop edi */ 7752 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 7753 eax = eax | 0xFFFFFFFFu; /* 0x47037A99: or eax, 0xffffffff */ 7754 _cf = 0; 7755 _flag_k = FK_TEST; 7756 esi = POP32_VAL(esp); /* 0x47037A9C: pop esi */ 7757 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x200u); 7758 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7759 esp = esp + 0x200u; /* 0x47037A9D: add esp, 0x200 */ 7760 _flag_k = FK_ADD; 7761 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47037AA3: ret 0xc */ 7762 L_47037AA6: 7763 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7764 eax = 0; /* 0x47037AA6: xor eax, eax */ 7765 _cf = 0; 7766 _flag_k = FK_TEST; 7767 esi = POP32_VAL(esp); /* 0x47037AA8: pop esi */ 7768 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x200u); 7769 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7770 esp = esp + 0x200u; /* 0x47037AA9: add esp, 0x200 */ 7771 _flag_k = FK_ADD; 7772 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47037AAF: ret 0xc */ 7773 RECOMP_REGS_OUT(); 7774 } 7775 7776 void sub_47037AC0(void) { 7777 int _fpu_cmp = 0; 7778 uint32_t _cf = 0; 7779 int _df = 1; 7780 uint32_t _flag_k = FK_NONE; 7781 uint32_t _flag_a = 0, _flag_b = 0; 7782 uint32_t _itail_tgt = 0; 7783 RECOMP_REGS_LOCALS 7784 RECOMP_ENTER(0x47037AC0u); 7785 7786 L_47037AC0: 7787 PUSH32(esp, ebx); /* 0x47037AC0: push ebx */ 7788 PUSH32(esp, ebp); /* 0x47037AC1: push ebp */ 7789 PUSH32(esp, esi); /* 0x47037AC2: push esi */ 7790 esi = ecx; /* 0x47037AC3: mov esi, ecx */ 7791 eax = MEM32(esi + 0xC); /* 0x47037AC5: mov eax, dword ptr [esi + 0xc] */ 7792 /* test eax, eax */ /* 0x47037AC8: test eax, eax */ 7793 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7794 _cf = 0; 7795 _flag_k = FK_TEST; 7796 PUSH32(esp, edi); /* 0x47037ACA: push edi */ 7797 if (TEST_NZ(_flag_a, _flag_b)) goto L_47037B3D; /* 0x47037ACB: jne 0x47037b3d */ 7798 L_47037ACD: 7799 esi = MEM32(0x470AC3C8); /* 0x47037ACD: mov esi, dword ptr [0x470ac3c8] */ 7800 RECOMP_ICALL(esi); /* 0x47037AD3: call esi */ 7801 RECOMP_FLAGS_IN(); 7802 MEM32(eax) = 2; /* 0x47037AD5: mov dword ptr [eax], 2 */ 7803 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47037ADB: call dword ptr [0x470ac150] */ 7804 RECOMP_FLAGS_IN(); 7805 edi = eax; /* 0x47037AE1: mov edi, eax */ 7806 RECOMP_ICALL(esi); /* 0x47037AE3: call esi */ 7807 RECOMP_FLAGS_IN(); 7808 eax = MEM32(eax); /* 0x47037AE5: mov eax, dword ptr [eax] */ 7809 /* test eax, eax */ /* 0x47037AE7: test eax, eax */ 7810 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7811 _cf = 0; 7812 _flag_k = FK_TEST; 7813 if (TEST_Z(_flag_a, _flag_b)) goto L_47037AED; /* 0x47037AE9: je 0x47037aed */ 7814 L_47037AEB: 7815 edi = eax; /* 0x47037AEB: mov edi, eax */ 7816 L_47037AED: 7817 RECOMP_ICALL(0x47039020u); /* 0x47037AED: call 0x47039020 */ /* not lifted */ 7818 RECOMP_FLAGS_IN(); 7819 esi = eax; /* 0x47037AF2: mov esi, eax */ 7820 ecx = esi; /* 0x47037AF4: mov ecx, esi */ 7821 RECOMP_ICALL(0x4703B210u); /* 0x47037AF6: call 0x4703b210 */ /* not lifted */ 7822 RECOMP_FLAGS_IN(); 7823 PUSH32(esp, eax); /* 0x47037AFB: push eax */ 7824 ecx = esi; /* 0x47037AFC: mov ecx, esi */ 7825 RECOMP_ICALL(0x4703B240u); /* 0x47037AFE: call 0x4703b240 */ /* not lifted */ 7826 RECOMP_FLAGS_IN(); 7827 PUSH32(esp, eax); /* 0x47037B03: push eax */ 7828 ecx = esi; /* 0x47037B04: mov ecx, esi */ 7829 RECOMP_ICALL(0x4703B080u); /* 0x47037B06: call 0x4703b080 */ /* not lifted */ 7830 RECOMP_FLAGS_IN(); 7831 PUSH32(esp, eax); /* 0x47037B0B: push eax */ 7832 PUSH32(esp, edi); /* 0x47037B0C: push edi */ 7833 PUSH32(esp, 0xFFFFFFFFu); /* 0x47037B0D: push -1 */ 7834 PUSH32(esp, 0x48Au); /* 0x47037B0F: push 0x48a */ 7835 PUSH32(esp, 0x47106DE4u); /* 0x47037B14: push 0x47106de4 */ 7836 ecx = esi; /* 0x47037B19: mov ecx, esi */ 7837 RECOMP_ICALL(0x4703A340u); /* 0x47037B1B: call 0x4703a340 */ /* not lifted */ 7838 RECOMP_FLAGS_IN(); 7839 PUSH32(esp, 0x47107118u); /* 0x47037B20: push 0x47107118 */ 7840 PUSH32(esp, 0x80u); /* 0x47037B25: push 0x80 */ 7841 PUSH32(esp, esi); /* 0x47037B2A: push esi */ 7842 RECOMP_ICALL(0x47039830u); /* 0x47037B2B: call 0x47039830 */ /* not lifted */ 7843 RECOMP_FLAGS_IN(); 7844 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7845 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7846 esp = esp + 0xCu; /* 0x47037B30: add esp, 0xc */ 7847 _flag_k = FK_ADD; 7848 edi = POP32_VAL(esp); /* 0x47037B33: pop edi */ 7849 esi = POP32_VAL(esp); /* 0x47037B34: pop esi */ 7850 ebp = POP32_VAL(esp); /* 0x47037B35: pop ebp */ 7851 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 7852 eax = eax | 0xFFFFFFFFu; /* 0x47037B36: or eax, 0xffffffff */ 7853 _cf = 0; 7854 _flag_k = FK_TEST; 7855 ebx = POP32_VAL(esp); /* 0x47037B39: pop ebx */ 7856 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47037B3A: ret 0xc */ 7857 L_47037B3D: 7858 edi = esi + 0x10; /* 0x47037B3D: lea edi, [esi + 0x10] */ 7859 ecx = edi; /* 0x47037B40: mov ecx, edi */ 7860 RECOMP_ICALL(0x47038C90u); /* 0x47037B42: call 0x47038c90 */ /* not lifted */ 7861 RECOMP_FLAGS_IN(); 7862 eax = MEM32(eax + 0x28); /* 0x47037B47: mov eax, dword ptr [eax + 0x28] */ 7863 PUSH32(esp, eax); /* 0x47037B4A: push eax */ 7864 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47037B4B: call dword ptr [0x470ac180] */ 7865 RECOMP_FLAGS_IN(); 7866 ecx = edi; /* 0x47037B51: mov ecx, edi */ 7867 RECOMP_ICALL(0x47038C90u); /* 0x47037B53: call 0x47038c90 */ /* not lifted */ 7868 RECOMP_FLAGS_IN(); 7869 ecx = MEM32(esp + 0x18); /* 0x47037B58: mov ecx, dword ptr [esp + 0x18] */ 7870 MEM32(eax + 0x174) = ecx; /* 0x47037B5C: mov dword ptr [eax + 0x174], ecx */ 7871 ecx = edi; /* 0x47037B62: mov ecx, edi */ 7872 RECOMP_ICALL(0x47038C90u); /* 0x47037B64: call 0x47038c90 */ /* not lifted */ 7873 RECOMP_FLAGS_IN(); 7874 ebx = MEM32(esp + 0x14); /* 0x47037B69: mov ebx, dword ptr [esp + 0x14] */ 7875 ecx = MEM32(esi + 0xC); /* 0x47037B6D: mov ecx, dword ptr [esi + 0xc] */ 7876 edx = MEM32(ecx); /* 0x47037B70: mov edx, dword ptr [ecx] */ 7877 PUSH32(esp, ebx); /* 0x47037B72: push ebx */ 7878 ebx = MEM32(esi + 0x4); /* 0x47037B73: mov ebx, dword ptr [esi + 4] */ 7879 PUSH32(esp, ebx); /* 0x47037B76: push ebx */ 7880 PUSH32(esp, eax); /* 0x47037B77: push eax */ 7881 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47037B78: call dword ptr [edx + 4] */ 7882 RECOMP_FLAGS_IN(); 7883 /* cmp eax, 0xFFFFFFFFu */ /* 0x47037B7B: cmp eax, -1 */ 7884 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 7885 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7886 _flag_k = FK_CMP; 7887 if (CMP_NE(_flag_a, _flag_b)) goto L_47037DD7; /* 0x47037B7E: jne 0x47037dd7 */ 7888 L_47037B84: 7889 ebx = MEM32(0x470AC3C8); /* 0x47037B84: mov ebx, dword ptr [0x470ac3c8] */ 7890 RECOMP_ICALL(ebx); /* 0x47037B8A: call ebx */ 7891 RECOMP_FLAGS_IN(); 7892 eax = MEM32(eax); /* 0x47037B8C: mov eax, dword ptr [eax] */ 7893 /* cmp eax, 0x24u */ /* 0x47037B8E: cmp eax, 0x24 */ 7894 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x24u); 7895 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7896 _flag_k = FK_CMP; 7897 if (CMP_EQ(_flag_a, _flag_b)) goto L_47037C82; /* 0x47037B91: je 0x47037c82 */ 7898 L_47037B97: 7899 /* cmp eax, 0x2733u */ /* 0x47037B97: cmp eax, 0x2733 */ 7900 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x2733u); 7901 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7902 _flag_k = FK_CMP; 7903 if (CMP_EQ(_flag_a, _flag_b)) goto L_47037CDD; /* 0x47037B9C: je 0x47037cdd */ 7904 L_47037BA2: 7905 eax = MEM32(edi + 0x20); /* 0x47037BA2: mov eax, dword ptr [edi + 0x20] */ 7906 /* test eax, eax */ /* 0x47037BA5: test eax, eax */ 7907 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7908 _cf = 0; 7909 _flag_k = FK_TEST; 7910 if (TEST_NZ(_flag_a, _flag_b)) goto L_47037BB0; /* 0x47037BA7: jne 0x47037bb0 */ 7911 L_47037BA9: 7912 ecx = edi; /* 0x47037BA9: mov ecx, edi */ 7913 RECOMP_ICALL(0x47038D20u); /* 0x47037BAB: call 0x47038d20 */ /* not lifted */ 7914 RECOMP_FLAGS_IN(); 7915 L_47037BB0: 7916 eax = MEM32(edi + 0x24); /* 0x47037BB0: mov eax, dword ptr [edi + 0x24] */ 7917 ecx = esp + 0x14; /* 0x47037BB3: lea ecx, [esp + 0x14] */ 7918 PUSH32(esp, ecx); /* 0x47037BB7: push ecx */ 7919 PUSH32(esp, eax); /* 0x47037BB8: push eax */ 7920 MEM32(esp + 0x1C) = 0; /* 0x47037BB9: mov dword ptr [esp + 0x1c], 0 */ 7921 RECOMP_ICALL(0x47004600u); /* 0x47037BC1: call 0x47004600 */ /* not lifted */ 7922 RECOMP_FLAGS_IN(); 7923 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7924 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7925 esp = esp + 8; /* 0x47037BC6: add esp, 8 */ 7926 _flag_k = FK_ADD; 7927 /* cmp eax, 0xFFFFFFFFu */ /* 0x47037BC9: cmp eax, -1 */ 7928 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 7929 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7930 _flag_k = FK_CMP; 7931 if (CMP_NE(_flag_a, _flag_b)) goto L_47037BD2; /* 0x47037BCC: jne 0x47037bd2 */ 7932 L_47037BCE: 7933 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7934 eax = 0; /* 0x47037BCE: xor eax, eax */ 7935 _cf = 0; 7936 _flag_k = FK_TEST; 7937 goto L_47037C11; /* 0x47037BD0: jmp 0x47037c11 */ 7938 L_47037BD2: 7939 eax = MEM32(esp + 0x14); /* 0x47037BD2: mov eax, dword ptr [esp + 0x14] */ 7940 /* test eax, eax */ /* 0x47037BD6: test eax, eax */ 7941 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7942 _cf = 0; 7943 _flag_k = FK_TEST; 7944 if (TEST_NZ(_flag_a, _flag_b)) goto L_47037C0D; /* 0x47037BD8: jne 0x47037c0d */ 7945 L_47037BDA: 7946 edx = MEM32(edi); /* 0x47037BDA: mov edx, dword ptr [edi] */ 7947 ecx = edi; /* 0x47037BDC: mov ecx, edi */ 7948 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47037BDE: call dword ptr [edx + 4] */ 7949 RECOMP_FLAGS_IN(); 7950 /* test eax, eax */ /* 0x47037BE1: test eax, eax */ 7951 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7952 _cf = 0; 7953 _flag_k = FK_TEST; 7954 MEM32(esp + 0x14) = eax; /* 0x47037BE3: mov dword ptr [esp + 0x14], eax */ 7955 if (TEST_Z(_flag_a, _flag_b)) goto L_47037C11; /* 0x47037BE7: je 0x47037c11 */ 7956 L_47037BE9: 7957 edi = MEM32(edi + 0x24); /* 0x47037BE9: mov edi, dword ptr [edi + 0x24] */ 7958 PUSH32(esp, eax); /* 0x47037BEC: push eax */ 7959 PUSH32(esp, edi); /* 0x47037BED: push edi */ 7960 RECOMP_ICALL(0x47056110u); /* 0x47037BEE: call 0x47056110 */ /* not lifted */ 7961 RECOMP_FLAGS_IN(); 7962 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7963 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7964 esp = esp + 8; /* 0x47037BF3: add esp, 8 */ 7965 _flag_k = FK_ADD; 7966 /* test eax, eax */ /* 0x47037BF6: test eax, eax */ 7967 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7968 _cf = 0; 7969 _flag_k = FK_TEST; 7970 if (TEST_Z(_flag_a, _flag_b)) goto L_47037C0D; /* 0x47037BF8: je 0x47037c0d */ 7971 L_47037BFA: 7972 ecx = MEM32(esp + 0x14); /* 0x47037BFA: mov ecx, dword ptr [esp + 0x14] */ 7973 /* test ecx, ecx */ /* 0x47037BFE: test ecx, ecx */ 7974 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 7975 _cf = 0; 7976 _flag_k = FK_TEST; 7977 if (TEST_Z(_flag_a, _flag_b)) goto L_47037C09; /* 0x47037C00: je 0x47037c09 */ 7978 L_47037C02: 7979 PUSH32(esp, 1); /* 0x47037C02: push 1 */ 7980 RECOMP_ICALL(0x47038DB0u); /* 0x47037C04: call 0x47038db0 */ /* not lifted */ 7981 RECOMP_FLAGS_IN(); 7982 L_47037C09: 7983 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7984 eax = 0; /* 0x47037C09: xor eax, eax */ 7985 _cf = 0; 7986 _flag_k = FK_TEST; 7987 goto L_47037C11; /* 0x47037C0B: jmp 0x47037c11 */ 7988 L_47037C0D: 7989 eax = MEM32(esp + 0x14); /* 0x47037C0D: mov eax, dword ptr [esp + 0x14] */ 7990 L_47037C11: 7991 eax = MEM32(eax + 0x28); /* 0x47037C11: mov eax, dword ptr [eax + 0x28] */ 7992 PUSH32(esp, eax); /* 0x47037C14: push eax */ 7993 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47037C15: call dword ptr [0x470ac190] */ 7994 RECOMP_FLAGS_IN(); 7995 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47037C1B: call dword ptr [0x470ac150] */ 7996 RECOMP_FLAGS_IN(); 7997 edi = eax; /* 0x47037C21: mov edi, eax */ 7998 RECOMP_ICALL(ebx); /* 0x47037C23: call ebx */ 7999 RECOMP_FLAGS_IN(); 8000 eax = MEM32(eax); /* 0x47037C25: mov eax, dword ptr [eax] */ 8001 /* test eax, eax */ /* 0x47037C27: test eax, eax */ 8002 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8003 _cf = 0; 8004 _flag_k = FK_TEST; 8005 if (TEST_Z(_flag_a, _flag_b)) goto L_47037C2D; /* 0x47037C29: je 0x47037c2d */ 8006 L_47037C2B: 8007 edi = eax; /* 0x47037C2B: mov edi, eax */ 8008 L_47037C2D: 8009 RECOMP_ICALL(0x47039020u); /* 0x47037C2D: call 0x47039020 */ /* not lifted */ 8010 RECOMP_FLAGS_IN(); 8011 esi = eax; /* 0x47037C32: mov esi, eax */ 8012 ecx = esi; /* 0x47037C34: mov ecx, esi */ 8013 RECOMP_ICALL(0x4703B210u); /* 0x47037C36: call 0x4703b210 */ /* not lifted */ 8014 RECOMP_FLAGS_IN(); 8015 PUSH32(esp, eax); /* 0x47037C3B: push eax */ 8016 ecx = esi; /* 0x47037C3C: mov ecx, esi */ 8017 RECOMP_ICALL(0x4703B240u); /* 0x47037C3E: call 0x4703b240 */ /* not lifted */ 8018 RECOMP_FLAGS_IN(); 8019 PUSH32(esp, eax); /* 0x47037C43: push eax */ 8020 ecx = esi; /* 0x47037C44: mov ecx, esi */ 8021 RECOMP_ICALL(0x4703B080u); /* 0x47037C46: call 0x4703b080 */ /* not lifted */ 8022 RECOMP_FLAGS_IN(); 8023 PUSH32(esp, eax); /* 0x47037C4B: push eax */ 8024 PUSH32(esp, edi); /* 0x47037C4C: push edi */ 8025 PUSH32(esp, 0xFFFFFFFFu); /* 0x47037C4D: push -1 */ 8026 PUSH32(esp, 0x4BFu); /* 0x47037C4F: push 0x4bf */ 8027 PUSH32(esp, 0x47106DE4u); /* 0x47037C54: push 0x47106de4 */ 8028 ecx = esi; /* 0x47037C59: mov ecx, esi */ 8029 RECOMP_ICALL(0x4703A340u); /* 0x47037C5B: call 0x4703a340 */ /* not lifted */ 8030 RECOMP_FLAGS_IN(); 8031 PUSH32(esp, 0x47107100u); /* 0x47037C60: push 0x47107100 */ 8032 PUSH32(esp, 0x471055F0u); /* 0x47037C65: push 0x471055f0 */ 8033 PUSH32(esp, 0x80u); /* 0x47037C6A: push 0x80 */ 8034 PUSH32(esp, esi); /* 0x47037C6F: push esi */ 8035 RECOMP_ICALL(0x47039830u); /* 0x47037C70: call 0x47039830 */ /* not lifted */ 8036 RECOMP_FLAGS_IN(); 8037 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 8038 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8039 esp = esp + 0x10u; /* 0x47037C75: add esp, 0x10 */ 8040 _flag_k = FK_ADD; 8041 edi = POP32_VAL(esp); /* 0x47037C78: pop edi */ 8042 esi = POP32_VAL(esp); /* 0x47037C79: pop esi */ 8043 ebp = POP32_VAL(esp); /* 0x47037C7A: pop ebp */ 8044 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 8045 eax = eax | 0xFFFFFFFFu; /* 0x47037C7B: or eax, 0xffffffff */ 8046 _cf = 0; 8047 _flag_k = FK_TEST; 8048 ebx = POP32_VAL(esp); /* 0x47037C7E: pop ebx */ 8049 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47037C7F: ret 0xc */ 8050 L_47037C82: 8051 eax = MEM32(esi + 0x4); /* 0x47037C82: mov eax, dword ptr [esi + 4] */ 8052 /* test eax, eax */ /* 0x47037C85: test eax, eax */ 8053 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8054 _cf = 0; 8055 _flag_k = FK_TEST; 8056 if (TEST_NZ(_flag_a, _flag_b)) goto L_47037CDD; /* 0x47037C87: jne 0x47037cdd */ 8057 L_47037C89: 8058 ecx = edi; /* 0x47037C89: mov ecx, edi */ 8059 RECOMP_ICALL(0x47038C90u); /* 0x47037C8B: call 0x47038c90 */ /* not lifted */ 8060 RECOMP_FLAGS_IN(); 8061 eax = MEM32(eax + 0x28); /* 0x47037C90: mov eax, dword ptr [eax + 0x28] */ 8062 PUSH32(esp, eax); /* 0x47037C93: push eax */ 8063 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47037C94: call dword ptr [0x470ac190] */ 8064 RECOMP_FLAGS_IN(); 8065 RECOMP_ICALL(ebx); /* 0x47037C9A: call ebx */ 8066 RECOMP_FLAGS_IN(); 8067 MEM32(eax) = 0x24u; /* 0x47037C9C: mov dword ptr [eax], 0x24 */ 8068 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47037CA2: call dword ptr [0x470ac150] */ 8069 RECOMP_FLAGS_IN(); 8070 esi = eax; /* 0x47037CA8: mov esi, eax */ 8071 RECOMP_ICALL(ebx); /* 0x47037CAA: call ebx */ 8072 RECOMP_FLAGS_IN(); 8073 eax = MEM32(eax); /* 0x47037CAC: mov eax, dword ptr [eax] */ 8074 /* test eax, eax */ /* 0x47037CAE: test eax, eax */ 8075 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8076 _cf = 0; 8077 _flag_k = FK_TEST; 8078 if (TEST_NZ(_flag_a, _flag_b)) goto L_47037CB4; /* 0x47037CB0: jne 0x47037cb4 */ 8079 L_47037CB2: 8080 eax = esi; /* 0x47037CB2: mov eax, esi */ 8081 L_47037CB4: 8082 PUSH32(esp, 0); /* 0x47037CB4: push 0 */ 8083 PUSH32(esp, 0); /* 0x47037CB6: push 0 */ 8084 PUSH32(esp, 1); /* 0x47037CB8: push 1 */ 8085 PUSH32(esp, eax); /* 0x47037CBA: push eax */ 8086 PUSH32(esp, 0xFFFFFFFFu); /* 0x47037CBB: push -1 */ 8087 PUSH32(esp, 0x4A1u); /* 0x47037CBD: push 0x4a1 */ 8088 PUSH32(esp, 0x47106DE4u); /* 0x47037CC2: push 0x47106de4 */ 8089 RECOMP_ICALL(0x47039020u); /* 0x47037CC7: call 0x47039020 */ /* not lifted */ 8090 RECOMP_FLAGS_IN(); 8091 ecx = eax; /* 0x47037CCC: mov ecx, eax */ 8092 RECOMP_ICALL(0x4703A340u); /* 0x47037CCE: call 0x4703a340 */ /* not lifted */ 8093 RECOMP_FLAGS_IN(); 8094 edi = POP32_VAL(esp); /* 0x47037CD3: pop edi */ 8095 esi = POP32_VAL(esp); /* 0x47037CD4: pop esi */ 8096 ebp = POP32_VAL(esp); /* 0x47037CD5: pop ebp */ 8097 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 8098 eax = eax | 0xFFFFFFFFu; /* 0x47037CD6: or eax, 0xffffffff */ 8099 _cf = 0; 8100 _flag_k = FK_TEST; 8101 ebx = POP32_VAL(esp); /* 0x47037CD9: pop ebx */ 8102 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47037CDA: ret 0xc */ 8103 L_47037CDD: 8104 eax = MEM32(esi + 0x8); /* 0x47037CDD: mov eax, dword ptr [esi + 8] */ 8105 /* test eax, eax */ /* 0x47037CE0: test eax, eax */ 8106 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8107 _cf = 0; 8108 _flag_k = FK_TEST; 8109 if (TEST_Z(_flag_a, _flag_b)) goto L_47037D6B; /* 0x47037CE2: je 0x47037d6b */ 8110 L_47037CE8: 8111 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47037CE8: call dword ptr [0x470ac150] */ 8112 RECOMP_FLAGS_IN(); 8113 ebp = eax; /* 0x47037CEE: mov ebp, eax */ 8114 RECOMP_ICALL(ebx); /* 0x47037CF0: call ebx */ 8115 RECOMP_FLAGS_IN(); 8116 eax = MEM32(eax); /* 0x47037CF2: mov eax, dword ptr [eax] */ 8117 /* test eax, eax */ /* 0x47037CF4: test eax, eax */ 8118 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8119 _cf = 0; 8120 _flag_k = FK_TEST; 8121 if (TEST_Z(_flag_a, _flag_b)) goto L_47037CFA; /* 0x47037CF6: je 0x47037cfa */ 8122 L_47037CF8: 8123 ebp = eax; /* 0x47037CF8: mov ebp, eax */ 8124 L_47037CFA: 8125 RECOMP_ICALL(0x47039020u); /* 0x47037CFA: call 0x47039020 */ /* not lifted */ 8126 RECOMP_FLAGS_IN(); 8127 ebx = eax; /* 0x47037CFF: mov ebx, eax */ 8128 ecx = ebx; /* 0x47037D01: mov ecx, ebx */ 8129 RECOMP_ICALL(0x4703B210u); /* 0x47037D03: call 0x4703b210 */ /* not lifted */ 8130 RECOMP_FLAGS_IN(); 8131 PUSH32(esp, eax); /* 0x47037D08: push eax */ 8132 ecx = ebx; /* 0x47037D09: mov ecx, ebx */ 8133 RECOMP_ICALL(0x4703B240u); /* 0x47037D0B: call 0x4703b240 */ /* not lifted */ 8134 RECOMP_FLAGS_IN(); 8135 PUSH32(esp, eax); /* 0x47037D10: push eax */ 8136 ecx = ebx; /* 0x47037D11: mov ecx, ebx */ 8137 RECOMP_ICALL(0x4703B080u); /* 0x47037D13: call 0x4703b080 */ /* not lifted */ 8138 RECOMP_FLAGS_IN(); 8139 PUSH32(esp, eax); /* 0x47037D18: push eax */ 8140 PUSH32(esp, ebp); /* 0x47037D19: push ebp */ 8141 PUSH32(esp, 0); /* 0x47037D1A: push 0 */ 8142 PUSH32(esp, 0x4ACu); /* 0x47037D1C: push 0x4ac */ 8143 PUSH32(esp, 0x47106DE4u); /* 0x47037D21: push 0x47106de4 */ 8144 ecx = ebx; /* 0x47037D26: mov ecx, ebx */ 8145 RECOMP_ICALL(0x4703A340u); /* 0x47037D28: call 0x4703a340 */ /* not lifted */ 8146 RECOMP_FLAGS_IN(); 8147 ecx = MEM32(esi + 0xC); /* 0x47037D2D: mov ecx, dword ptr [esi + 0xc] */ 8148 eax = MEM32(ecx + 0xC); /* 0x47037D30: mov eax, dword ptr [ecx + 0xc] */ 8149 /* test eax, eax */ /* 0x47037D33: test eax, eax */ 8150 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8151 _cf = 0; 8152 _flag_k = FK_TEST; 8153 if (TEST_Z(_flag_a, _flag_b)) goto L_47037D39; /* 0x47037D35: je 0x47037d39 */ 8154 L_47037D37: 8155 if (TEST_NZ(_flag_a, _flag_b)) goto L_47037D40; /* 0x47037D37: jne 0x47037d40 */ 8156 L_47037D39: 8157 ebp = 0x47106D58u; /* 0x47037D39: mov ebp, 0x47106d58 */ 8158 goto L_47037D46; /* 0x47037D3E: jmp 0x47037d46 */ 8159 L_47037D40: 8160 eax = MEM32(ecx + 0xC); /* 0x47037D40: mov eax, dword ptr [ecx + 0xc] */ 8161 ebp = eax + 0x60; /* 0x47037D43: lea ebp, [eax + 0x60] */ 8162 L_47037D46: 8163 edx = MEM32(ecx); /* 0x47037D46: mov edx, dword ptr [ecx] */ 8164 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x47037D48: call dword ptr [edx + 0x24] */ 8165 RECOMP_FLAGS_IN(); 8166 PUSH32(esp, eax); /* 0x47037D4B: push eax */ 8167 eax = MEM32(esi); /* 0x47037D4C: mov eax, dword ptr [esi] */ 8168 PUSH32(esp, ebp); /* 0x47037D4E: push ebp */ 8169 ecx = esi; /* 0x47037D4F: mov ecx, esi */ 8170 RECOMP_ICALL(MEM32(eax + 0x34)); /* 0x47037D51: call dword ptr [eax + 0x34] */ 8171 RECOMP_FLAGS_IN(); 8172 PUSH32(esp, eax); /* 0x47037D54: push eax */ 8173 PUSH32(esp, 0x471070C8u); /* 0x47037D55: push 0x471070c8 */ 8174 PUSH32(esp, 4); /* 0x47037D5A: push 4 */ 8175 PUSH32(esp, ebx); /* 0x47037D5C: push ebx */ 8176 RECOMP_ICALL(0x47039830u); /* 0x47037D5D: call 0x47039830 */ /* not lifted */ 8177 RECOMP_FLAGS_IN(); 8178 ebx = MEM32(0x470AC3C8); /* 0x47037D62: mov ebx, dword ptr [0x470ac3c8] */ 8179 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 8180 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8181 esp = esp + 0x18u; /* 0x47037D68: add esp, 0x18 */ 8182 _flag_k = FK_ADD; 8183 L_47037D6B: 8184 ecx = edi; /* 0x47037D6B: mov ecx, edi */ 8185 RECOMP_ICALL(0x47038C90u); /* 0x47037D6D: call 0x47038c90 */ /* not lifted */ 8186 RECOMP_FLAGS_IN(); 8187 ecx = MEM32(esp + 0x1C); /* 0x47037D72: mov ecx, dword ptr [esp + 0x1c] */ 8188 PUSH32(esp, eax); /* 0x47037D76: push eax */ 8189 PUSH32(esp, ecx); /* 0x47037D77: push ecx */ 8190 ecx = esi; /* 0x47037D78: mov ecx, esi */ 8191 RECOMP_ICALL(0x47038450u); /* 0x47037D7A: call 0x47038450 */ /* not lifted */ 8192 RECOMP_FLAGS_IN(); 8193 /* cmp eax, 0xFFFFFFFFu */ /* 0x47037D7F: cmp eax, -1 */ 8194 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 8195 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8196 _flag_k = FK_CMP; 8197 if (CMP_NE(_flag_a, _flag_b)) goto L_47037D88; /* 0x47037D82: jne 0x47037d88 */ 8198 L_47037D84: 8199 _flag_a = (uint32_t)((esi | eax)); _flag_b = (uint32_t)((esi | eax)); 8200 esi = esi | eax; /* 0x47037D84: or esi, eax */ 8201 _cf = 0; 8202 _flag_k = FK_TEST; 8203 goto L_47037D96; /* 0x47037D86: jmp 0x47037d96 */ 8204 L_47037D88: 8205 eax = MEM32(esp + 0x14); /* 0x47037D88: mov eax, dword ptr [esp + 0x14] */ 8206 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8207 edx = 0; /* 0x47037D8C: xor edx, edx */ 8208 _cf = 0; 8209 _flag_k = FK_TEST; 8210 /* cmp eax, 1 */ /* 0x47037D8E: cmp eax, 1 */ 8211 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8212 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8213 _flag_k = FK_CMP; 8214 SET_LO8(edx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x47037D91: sete dl */ 8215 esi = edx; /* 0x47037D94: mov esi, edx */ 8216 L_47037D96: 8217 RECOMP_ICALL(ebx); /* 0x47037D96: call ebx */ 8218 RECOMP_FLAGS_IN(); 8219 MEM32(eax) = 0x2733u; /* 0x47037D98: mov dword ptr [eax], 0x2733 */ 8220 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47037D9E: call dword ptr [0x470ac150] */ 8221 RECOMP_FLAGS_IN(); 8222 edi = eax; /* 0x47037DA4: mov edi, eax */ 8223 RECOMP_ICALL(ebx); /* 0x47037DA6: call ebx */ 8224 RECOMP_FLAGS_IN(); 8225 eax = MEM32(eax); /* 0x47037DA8: mov eax, dword ptr [eax] */ 8226 /* test eax, eax */ /* 0x47037DAA: test eax, eax */ 8227 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8228 _cf = 0; 8229 _flag_k = FK_TEST; 8230 if (TEST_NZ(_flag_a, _flag_b)) goto L_47037DB0; /* 0x47037DAC: jne 0x47037db0 */ 8231 L_47037DAE: 8232 eax = edi; /* 0x47037DAE: mov eax, edi */ 8233 L_47037DB0: 8234 PUSH32(esp, 0); /* 0x47037DB0: push 0 */ 8235 PUSH32(esp, 0); /* 0x47037DB2: push 0 */ 8236 PUSH32(esp, 1); /* 0x47037DB4: push 1 */ 8237 PUSH32(esp, eax); /* 0x47037DB6: push eax */ 8238 PUSH32(esp, esi); /* 0x47037DB7: push esi */ 8239 PUSH32(esp, 0x4B8u); /* 0x47037DB8: push 0x4b8 */ 8240 PUSH32(esp, 0x47106DE4u); /* 0x47037DBD: push 0x47106de4 */ 8241 RECOMP_ICALL(0x47039020u); /* 0x47037DC2: call 0x47039020 */ /* not lifted */ 8242 RECOMP_FLAGS_IN(); 8243 ecx = eax; /* 0x47037DC7: mov ecx, eax */ 8244 RECOMP_ICALL(0x4703A340u); /* 0x47037DC9: call 0x4703a340 */ /* not lifted */ 8245 RECOMP_FLAGS_IN(); 8246 edi = POP32_VAL(esp); /* 0x47037DCE: pop edi */ 8247 eax = esi; /* 0x47037DCF: mov eax, esi */ 8248 esi = POP32_VAL(esp); /* 0x47037DD1: pop esi */ 8249 ebp = POP32_VAL(esp); /* 0x47037DD2: pop ebp */ 8250 ebx = POP32_VAL(esp); /* 0x47037DD3: pop ebx */ 8251 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47037DD4: ret 0xc */ 8252 L_47037DD7: 8253 eax = MEM32(esi + 0x8); /* 0x47037DD7: mov eax, dword ptr [esi + 8] */ 8254 /* test eax, eax */ /* 0x47037DDA: test eax, eax */ 8255 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8256 _cf = 0; 8257 _flag_k = FK_TEST; 8258 if (TEST_Z(_flag_a, _flag_b)) goto L_47037E3F; /* 0x47037DDC: je 0x47037e3f */ 8259 L_47037DDE: 8260 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47037DDE: call dword ptr [0x470ac150] */ 8261 RECOMP_FLAGS_IN(); 8262 ebp = eax; /* 0x47037DE4: mov ebp, eax */ 8263 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47037DE6: call dword ptr [0x470ac3c8] */ 8264 RECOMP_FLAGS_IN(); 8265 eax = MEM32(eax); /* 0x47037DEC: mov eax, dword ptr [eax] */ 8266 /* test eax, eax */ /* 0x47037DEE: test eax, eax */ 8267 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8268 _cf = 0; 8269 _flag_k = FK_TEST; 8270 if (TEST_Z(_flag_a, _flag_b)) goto L_47037DF4; /* 0x47037DF0: je 0x47037df4 */ 8271 L_47037DF2: 8272 ebp = eax; /* 0x47037DF2: mov ebp, eax */ 8273 L_47037DF4: 8274 RECOMP_ICALL(0x47039020u); /* 0x47037DF4: call 0x47039020 */ /* not lifted */ 8275 RECOMP_FLAGS_IN(); 8276 ebx = eax; /* 0x47037DF9: mov ebx, eax */ 8277 ecx = ebx; /* 0x47037DFB: mov ecx, ebx */ 8278 RECOMP_ICALL(0x4703B210u); /* 0x47037DFD: call 0x4703b210 */ /* not lifted */ 8279 RECOMP_FLAGS_IN(); 8280 PUSH32(esp, eax); /* 0x47037E02: push eax */ 8281 ecx = ebx; /* 0x47037E03: mov ecx, ebx */ 8282 RECOMP_ICALL(0x4703B240u); /* 0x47037E05: call 0x4703b240 */ /* not lifted */ 8283 RECOMP_FLAGS_IN(); 8284 PUSH32(esp, eax); /* 0x47037E0A: push eax */ 8285 ecx = ebx; /* 0x47037E0B: mov ecx, ebx */ 8286 RECOMP_ICALL(0x4703B080u); /* 0x47037E0D: call 0x4703b080 */ /* not lifted */ 8287 RECOMP_FLAGS_IN(); 8288 PUSH32(esp, eax); /* 0x47037E12: push eax */ 8289 PUSH32(esp, ebp); /* 0x47037E13: push ebp */ 8290 PUSH32(esp, 0); /* 0x47037E14: push 0 */ 8291 PUSH32(esp, 0x4C8u); /* 0x47037E16: push 0x4c8 */ 8292 PUSH32(esp, 0x47106DE4u); /* 0x47037E1B: push 0x47106de4 */ 8293 ecx = ebx; /* 0x47037E20: mov ecx, ebx */ 8294 RECOMP_ICALL(0x4703A340u); /* 0x47037E22: call 0x4703a340 */ /* not lifted */ 8295 RECOMP_FLAGS_IN(); 8296 eax = MEM32(esi); /* 0x47037E27: mov eax, dword ptr [esi] */ 8297 ecx = esi; /* 0x47037E29: mov ecx, esi */ 8298 RECOMP_ICALL(MEM32(eax + 0x34)); /* 0x47037E2B: call dword ptr [eax + 0x34] */ 8299 RECOMP_FLAGS_IN(); 8300 PUSH32(esp, eax); /* 0x47037E2E: push eax */ 8301 PUSH32(esp, 0x471070B4u); /* 0x47037E2F: push 0x471070b4 */ 8302 PUSH32(esp, 4); /* 0x47037E34: push 4 */ 8303 PUSH32(esp, ebx); /* 0x47037E36: push ebx */ 8304 RECOMP_ICALL(0x47039830u); /* 0x47037E37: call 0x47039830 */ /* not lifted */ 8305 RECOMP_FLAGS_IN(); 8306 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 8307 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8308 esp = esp + 0x10u; /* 0x47037E3C: add esp, 0x10 */ 8309 _flag_k = FK_ADD; 8310 L_47037E3F: 8311 eax = MEM32(edi + 0x20); /* 0x47037E3F: mov eax, dword ptr [edi + 0x20] */ 8312 /* test eax, eax */ /* 0x47037E42: test eax, eax */ 8313 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8314 _cf = 0; 8315 _flag_k = FK_TEST; 8316 if (TEST_NZ(_flag_a, _flag_b)) goto L_47037E4D; /* 0x47037E44: jne 0x47037e4d */ 8317 L_47037E46: 8318 ecx = edi; /* 0x47037E46: mov ecx, edi */ 8319 RECOMP_ICALL(0x47038D20u); /* 0x47037E48: call 0x47038d20 */ /* not lifted */ 8320 RECOMP_FLAGS_IN(); 8321 L_47037E4D: 8322 eax = MEM32(edi + 0x24); /* 0x47037E4D: mov eax, dword ptr [edi + 0x24] */ 8323 ecx = esp + 0x14; /* 0x47037E50: lea ecx, [esp + 0x14] */ 8324 PUSH32(esp, ecx); /* 0x47037E54: push ecx */ 8325 PUSH32(esp, eax); /* 0x47037E55: push eax */ 8326 MEM32(esp + 0x1C) = 0; /* 0x47037E56: mov dword ptr [esp + 0x1c], 0 */ 8327 RECOMP_ICALL(0x47004600u); /* 0x47037E5E: call 0x47004600 */ /* not lifted */ 8328 RECOMP_FLAGS_IN(); 8329 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8330 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8331 esp = esp + 8; /* 0x47037E63: add esp, 8 */ 8332 _flag_k = FK_ADD; 8333 /* cmp eax, 0xFFFFFFFFu */ /* 0x47037E66: cmp eax, -1 */ 8334 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 8335 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8336 _flag_k = FK_CMP; 8337 if (CMP_NE(_flag_a, _flag_b)) goto L_47037E80; /* 0x47037E69: jne 0x47037e80 */ 8338 L_47037E6B: 8339 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8340 eax = 0; /* 0x47037E6B: xor eax, eax */ 8341 _cf = 0; 8342 _flag_k = FK_TEST; 8343 eax = MEM32(eax + 0x28); /* 0x47037E6D: mov eax, dword ptr [eax + 0x28] */ 8344 PUSH32(esp, eax); /* 0x47037E70: push eax */ 8345 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47037E71: call dword ptr [0x470ac190] */ 8346 RECOMP_FLAGS_IN(); 8347 edi = POP32_VAL(esp); /* 0x47037E77: pop edi */ 8348 esi = POP32_VAL(esp); /* 0x47037E78: pop esi */ 8349 ebp = POP32_VAL(esp); /* 0x47037E79: pop ebp */ 8350 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8351 eax = 0; /* 0x47037E7A: xor eax, eax */ 8352 _cf = 0; 8353 _flag_k = FK_TEST; 8354 ebx = POP32_VAL(esp); /* 0x47037E7C: pop ebx */ 8355 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47037E7D: ret 0xc */ 8356 L_47037E80: 8357 eax = MEM32(esp + 0x14); /* 0x47037E80: mov eax, dword ptr [esp + 0x14] */ 8358 /* test eax, eax */ /* 0x47037E84: test eax, eax */ 8359 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8360 _cf = 0; 8361 _flag_k = FK_TEST; 8362 if (TEST_NZ(_flag_a, _flag_b)) goto L_47037EE8; /* 0x47037E86: jne 0x47037ee8 */ 8363 L_47037E88: 8364 edx = MEM32(edi); /* 0x47037E88: mov edx, dword ptr [edi] */ 8365 ecx = edi; /* 0x47037E8A: mov ecx, edi */ 8366 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47037E8C: call dword ptr [edx + 4] */ 8367 RECOMP_FLAGS_IN(); 8368 /* test eax, eax */ /* 0x47037E8F: test eax, eax */ 8369 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8370 _cf = 0; 8371 _flag_k = FK_TEST; 8372 MEM32(esp + 0x14) = eax; /* 0x47037E91: mov dword ptr [esp + 0x14], eax */ 8373 if (TEST_NZ(_flag_a, _flag_b)) goto L_47037EAA; /* 0x47037E95: jne 0x47037eaa */ 8374 L_47037E97: 8375 eax = MEM32(eax + 0x28); /* 0x47037E97: mov eax, dword ptr [eax + 0x28] */ 8376 PUSH32(esp, eax); /* 0x47037E9A: push eax */ 8377 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47037E9B: call dword ptr [0x470ac190] */ 8378 RECOMP_FLAGS_IN(); 8379 edi = POP32_VAL(esp); /* 0x47037EA1: pop edi */ 8380 esi = POP32_VAL(esp); /* 0x47037EA2: pop esi */ 8381 ebp = POP32_VAL(esp); /* 0x47037EA3: pop ebp */ 8382 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8383 eax = 0; /* 0x47037EA4: xor eax, eax */ 8384 _cf = 0; 8385 _flag_k = FK_TEST; 8386 ebx = POP32_VAL(esp); /* 0x47037EA6: pop ebx */ 8387 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47037EA7: ret 0xc */ 8388 L_47037EAA: 8389 edi = MEM32(edi + 0x24); /* 0x47037EAA: mov edi, dword ptr [edi + 0x24] */ 8390 PUSH32(esp, eax); /* 0x47037EAD: push eax */ 8391 PUSH32(esp, edi); /* 0x47037EAE: push edi */ 8392 RECOMP_ICALL(0x47056110u); /* 0x47037EAF: call 0x47056110 */ /* not lifted */ 8393 RECOMP_FLAGS_IN(); 8394 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8395 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8396 esp = esp + 8; /* 0x47037EB4: add esp, 8 */ 8397 _flag_k = FK_ADD; 8398 /* test eax, eax */ /* 0x47037EB7: test eax, eax */ 8399 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8400 _cf = 0; 8401 _flag_k = FK_TEST; 8402 if (TEST_Z(_flag_a, _flag_b)) goto L_47037EE8; /* 0x47037EB9: je 0x47037ee8 */ 8403 L_47037EBB: 8404 ecx = MEM32(esp + 0x14); /* 0x47037EBB: mov ecx, dword ptr [esp + 0x14] */ 8405 /* test ecx, ecx */ /* 0x47037EBF: test ecx, ecx */ 8406 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8407 _cf = 0; 8408 _flag_k = FK_TEST; 8409 esi = ecx; /* 0x47037EC1: mov esi, ecx */ 8410 if (TEST_Z(_flag_a, _flag_b)) goto L_47037ED3; /* 0x47037EC3: je 0x47037ed3 */ 8411 L_47037EC5: 8412 RECOMP_ICALL(0x470350A0u); /* 0x47037EC5: call 0x470350a0 */ /* not lifted */ 8413 RECOMP_FLAGS_IN(); 8414 PUSH32(esp, esi); /* 0x47037ECA: push esi */ 8415 RECOMP_ICALL(0x470A32A2u); /* 0x47037ECB: call 0x470a32a2 */ /* not lifted */ 8416 RECOMP_FLAGS_IN(); 8417 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8418 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8419 esp = esp + 4; /* 0x47037ED0: add esp, 4 */ 8420 _flag_k = FK_ADD; 8421 L_47037ED3: 8422 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8423 eax = 0; /* 0x47037ED3: xor eax, eax */ 8424 _cf = 0; 8425 _flag_k = FK_TEST; 8426 eax = MEM32(eax + 0x28); /* 0x47037ED5: mov eax, dword ptr [eax + 0x28] */ 8427 PUSH32(esp, eax); /* 0x47037ED8: push eax */ 8428 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47037ED9: call dword ptr [0x470ac190] */ 8429 RECOMP_FLAGS_IN(); 8430 edi = POP32_VAL(esp); /* 0x47037EDF: pop edi */ 8431 esi = POP32_VAL(esp); /* 0x47037EE0: pop esi */ 8432 ebp = POP32_VAL(esp); /* 0x47037EE1: pop ebp */ 8433 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8434 eax = 0; /* 0x47037EE2: xor eax, eax */ 8435 _cf = 0; 8436 _flag_k = FK_TEST; 8437 ebx = POP32_VAL(esp); /* 0x47037EE4: pop ebx */ 8438 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47037EE5: ret 0xc */ 8439 L_47037EE8: 8440 eax = MEM32(esp + 0x14); /* 0x47037EE8: mov eax, dword ptr [esp + 0x14] */ 8441 eax = MEM32(eax + 0x28); /* 0x47037EEC: mov eax, dword ptr [eax + 0x28] */ 8442 PUSH32(esp, eax); /* 0x47037EEF: push eax */ 8443 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47037EF0: call dword ptr [0x470ac190] */ 8444 RECOMP_FLAGS_IN(); 8445 edi = POP32_VAL(esp); /* 0x47037EF6: pop edi */ 8446 esi = POP32_VAL(esp); /* 0x47037EF7: pop esi */ 8447 ebp = POP32_VAL(esp); /* 0x47037EF8: pop ebp */ 8448 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8449 eax = 0; /* 0x47037EF9: xor eax, eax */ 8450 _cf = 0; 8451 _flag_k = FK_TEST; 8452 ebx = POP32_VAL(esp); /* 0x47037EFB: pop ebx */ 8453 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47037EFC: ret 0xc */ 8454 RECOMP_REGS_OUT(); 8455 } 8456 8457 void sub_47037F00(void) { 8458 int _fpu_cmp = 0; 8459 uint32_t _cf = 0; 8460 int _df = 1; 8461 uint32_t _flag_k = FK_NONE; 8462 uint32_t _flag_a = 0, _flag_b = 0; 8463 uint32_t _itail_tgt = 0; 8464 RECOMP_REGS_LOCALS 8465 RECOMP_ENTER(0x47037F00u); 8466 8467 L_47037F00: 8468 PUSH32(esp, ecx); /* 0x47037F00: push ecx */ 8469 PUSH32(esp, ebp); /* 0x47037F01: push ebp */ 8470 ebp = ecx; /* 0x47037F02: mov ebp, ecx */ 8471 eax = MEM32(ebp + 0xC); /* 0x47037F04: mov eax, dword ptr [ebp + 0xc] */ 8472 /* test eax, eax */ /* 0x47037F07: test eax, eax */ 8473 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8474 _cf = 0; 8475 _flag_k = FK_TEST; 8476 PUSH32(esp, esi); /* 0x47037F09: push esi */ 8477 PUSH32(esp, edi); /* 0x47037F0A: push edi */ 8478 if (TEST_NZ(_flag_a, _flag_b)) goto L_47037F7D; /* 0x47037F0B: jne 0x47037f7d */ 8479 L_47037F0D: 8480 esi = MEM32(0x470AC3C8); /* 0x47037F0D: mov esi, dword ptr [0x470ac3c8] */ 8481 RECOMP_ICALL(esi); /* 0x47037F13: call esi */ 8482 RECOMP_FLAGS_IN(); 8483 MEM32(eax) = 2; /* 0x47037F15: mov dword ptr [eax], 2 */ 8484 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47037F1B: call dword ptr [0x470ac150] */ 8485 RECOMP_FLAGS_IN(); 8486 edi = eax; /* 0x47037F21: mov edi, eax */ 8487 RECOMP_ICALL(esi); /* 0x47037F23: call esi */ 8488 RECOMP_FLAGS_IN(); 8489 eax = MEM32(eax); /* 0x47037F25: mov eax, dword ptr [eax] */ 8490 /* test eax, eax */ /* 0x47037F27: test eax, eax */ 8491 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8492 _cf = 0; 8493 _flag_k = FK_TEST; 8494 if (TEST_Z(_flag_a, _flag_b)) goto L_47037F2D; /* 0x47037F29: je 0x47037f2d */ 8495 L_47037F2B: 8496 edi = eax; /* 0x47037F2B: mov edi, eax */ 8497 L_47037F2D: 8498 RECOMP_ICALL(0x47039020u); /* 0x47037F2D: call 0x47039020 */ /* not lifted */ 8499 RECOMP_FLAGS_IN(); 8500 esi = eax; /* 0x47037F32: mov esi, eax */ 8501 ecx = esi; /* 0x47037F34: mov ecx, esi */ 8502 RECOMP_ICALL(0x4703B210u); /* 0x47037F36: call 0x4703b210 */ /* not lifted */ 8503 RECOMP_FLAGS_IN(); 8504 PUSH32(esp, eax); /* 0x47037F3B: push eax */ 8505 ecx = esi; /* 0x47037F3C: mov ecx, esi */ 8506 RECOMP_ICALL(0x4703B240u); /* 0x47037F3E: call 0x4703b240 */ /* not lifted */ 8507 RECOMP_FLAGS_IN(); 8508 PUSH32(esp, eax); /* 0x47037F43: push eax */ 8509 ecx = esi; /* 0x47037F44: mov ecx, esi */ 8510 RECOMP_ICALL(0x4703B080u); /* 0x47037F46: call 0x4703b080 */ /* not lifted */ 8511 RECOMP_FLAGS_IN(); 8512 PUSH32(esp, eax); /* 0x47037F4B: push eax */ 8513 PUSH32(esp, edi); /* 0x47037F4C: push edi */ 8514 PUSH32(esp, 0xFFFFFFFFu); /* 0x47037F4D: push -1 */ 8515 PUSH32(esp, 0x4D8u); /* 0x47037F4F: push 0x4d8 */ 8516 PUSH32(esp, 0x47106DE4u); /* 0x47037F54: push 0x47106de4 */ 8517 ecx = esi; /* 0x47037F59: mov ecx, esi */ 8518 RECOMP_ICALL(0x4703A340u); /* 0x47037F5B: call 0x4703a340 */ /* not lifted */ 8519 RECOMP_FLAGS_IN(); 8520 PUSH32(esp, 0x47107118u); /* 0x47037F60: push 0x47107118 */ 8521 PUSH32(esp, 0x80u); /* 0x47037F65: push 0x80 */ 8522 PUSH32(esp, esi); /* 0x47037F6A: push esi */ 8523 RECOMP_ICALL(0x47039830u); /* 0x47037F6B: call 0x47039830 */ /* not lifted */ 8524 RECOMP_FLAGS_IN(); 8525 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8526 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8527 esp = esp + 0xCu; /* 0x47037F70: add esp, 0xc */ 8528 _flag_k = FK_ADD; 8529 edi = POP32_VAL(esp); /* 0x47037F73: pop edi */ 8530 esi = POP32_VAL(esp); /* 0x47037F74: pop esi */ 8531 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 8532 eax = eax | 0xFFFFFFFFu; /* 0x47037F75: or eax, 0xffffffff */ 8533 _cf = 0; 8534 _flag_k = FK_TEST; 8535 ebp = POP32_VAL(esp); /* 0x47037F78: pop ebp */ 8536 ecx = POP32_VAL(esp); /* 0x47037F79: pop ecx */ 8537 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47037F7A: ret 4 */ 8538 L_47037F7D: 8539 eax = MEM32(ebp + 0x30); /* 0x47037F7D: mov eax, dword ptr [ebp + 0x30] */ 8540 /* test eax, eax */ /* 0x47037F80: test eax, eax */ 8541 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8542 _cf = 0; 8543 _flag_k = FK_TEST; 8544 esi = ebp + 0x10; /* 0x47037F82: lea esi, [ebp + 0x10] */ 8545 if (TEST_NZ(_flag_a, _flag_b)) goto L_47037F8E; /* 0x47037F85: jne 0x47037f8e */ 8546 L_47037F87: 8547 ecx = esi; /* 0x47037F87: mov ecx, esi */ 8548 RECOMP_ICALL(0x47038D20u); /* 0x47037F89: call 0x47038d20 */ /* not lifted */ 8549 RECOMP_FLAGS_IN(); 8550 L_47037F8E: 8551 eax = MEM32(esi + 0x24); /* 0x47037F8E: mov eax, dword ptr [esi + 0x24] */ 8552 ecx = esp + 0xC; /* 0x47037F91: lea ecx, [esp + 0xc] */ 8553 PUSH32(esp, ecx); /* 0x47037F95: push ecx */ 8554 PUSH32(esp, eax); /* 0x47037F96: push eax */ 8555 MEM32(esp + 0x14) = 0; /* 0x47037F97: mov dword ptr [esp + 0x14], 0 */ 8556 RECOMP_ICALL(0x47004600u); /* 0x47037F9F: call 0x47004600 */ /* not lifted */ 8557 RECOMP_FLAGS_IN(); 8558 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8559 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8560 esp = esp + 8; /* 0x47037FA4: add esp, 8 */ 8561 _flag_k = FK_ADD; 8562 /* cmp eax, 0xFFFFFFFFu */ /* 0x47037FA7: cmp eax, -1 */ 8563 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 8564 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8565 _flag_k = FK_CMP; 8566 if (CMP_NE(_flag_a, _flag_b)) goto L_47037FB0; /* 0x47037FAA: jne 0x47037fb0 */ 8567 L_47037FAC: 8568 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8569 eax = 0; /* 0x47037FAC: xor eax, eax */ 8570 _cf = 0; 8571 _flag_k = FK_TEST; 8572 goto L_47037FF8; /* 0x47037FAE: jmp 0x47037ff8 */ 8573 L_47037FB0: 8574 eax = MEM32(esp + 0xC); /* 0x47037FB0: mov eax, dword ptr [esp + 0xc] */ 8575 /* test eax, eax */ /* 0x47037FB4: test eax, eax */ 8576 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8577 _cf = 0; 8578 _flag_k = FK_TEST; 8579 if (TEST_NZ(_flag_a, _flag_b)) goto L_47037FF4; /* 0x47037FB6: jne 0x47037ff4 */ 8580 L_47037FB8: 8581 edx = MEM32(esi); /* 0x47037FB8: mov edx, dword ptr [esi] */ 8582 ecx = esi; /* 0x47037FBA: mov ecx, esi */ 8583 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47037FBC: call dword ptr [edx + 4] */ 8584 RECOMP_FLAGS_IN(); 8585 /* test eax, eax */ /* 0x47037FBF: test eax, eax */ 8586 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8587 _cf = 0; 8588 _flag_k = FK_TEST; 8589 MEM32(esp + 0xC) = eax; /* 0x47037FC1: mov dword ptr [esp + 0xc], eax */ 8590 if (TEST_Z(_flag_a, _flag_b)) goto L_47037FF8; /* 0x47037FC5: je 0x47037ff8 */ 8591 L_47037FC7: 8592 ecx = MEM32(esi + 0x24); /* 0x47037FC7: mov ecx, dword ptr [esi + 0x24] */ 8593 PUSH32(esp, eax); /* 0x47037FCA: push eax */ 8594 PUSH32(esp, ecx); /* 0x47037FCB: push ecx */ 8595 RECOMP_ICALL(0x47056110u); /* 0x47037FCC: call 0x47056110 */ /* not lifted */ 8596 RECOMP_FLAGS_IN(); 8597 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8598 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8599 esp = esp + 8; /* 0x47037FD1: add esp, 8 */ 8600 _flag_k = FK_ADD; 8601 /* test eax, eax */ /* 0x47037FD4: test eax, eax */ 8602 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8603 _cf = 0; 8604 _flag_k = FK_TEST; 8605 if (TEST_Z(_flag_a, _flag_b)) goto L_47037FF4; /* 0x47037FD6: je 0x47037ff4 */ 8606 L_47037FD8: 8607 ecx = MEM32(esp + 0xC); /* 0x47037FD8: mov ecx, dword ptr [esp + 0xc] */ 8608 /* test ecx, ecx */ /* 0x47037FDC: test ecx, ecx */ 8609 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8610 _cf = 0; 8611 _flag_k = FK_TEST; 8612 edi = ecx; /* 0x47037FDE: mov edi, ecx */ 8613 if (TEST_Z(_flag_a, _flag_b)) goto L_47037FF0; /* 0x47037FE0: je 0x47037ff0 */ 8614 L_47037FE2: 8615 RECOMP_ICALL(0x470350A0u); /* 0x47037FE2: call 0x470350a0 */ /* not lifted */ 8616 RECOMP_FLAGS_IN(); 8617 PUSH32(esp, edi); /* 0x47037FE7: push edi */ 8618 RECOMP_ICALL(0x470A32A2u); /* 0x47037FE8: call 0x470a32a2 */ /* not lifted */ 8619 RECOMP_FLAGS_IN(); 8620 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8621 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8622 esp = esp + 4; /* 0x47037FED: add esp, 4 */ 8623 _flag_k = FK_ADD; 8624 L_47037FF0: 8625 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8626 eax = 0; /* 0x47037FF0: xor eax, eax */ 8627 _cf = 0; 8628 _flag_k = FK_TEST; 8629 goto L_47037FF8; /* 0x47037FF2: jmp 0x47037ff8 */ 8630 L_47037FF4: 8631 eax = MEM32(esp + 0xC); /* 0x47037FF4: mov eax, dword ptr [esp + 0xc] */ 8632 L_47037FF8: 8633 ecx = MEM32(esp + 0x14); /* 0x47037FF8: mov ecx, dword ptr [esp + 0x14] */ 8634 MEM32(eax + 0x174) = ecx; /* 0x47037FFC: mov dword ptr [eax + 0x174], ecx */ 8635 eax = MEM32(esi + 0x20); /* 0x47038002: mov eax, dword ptr [esi + 0x20] */ 8636 /* test eax, eax */ /* 0x47038005: test eax, eax */ 8637 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8638 _cf = 0; 8639 _flag_k = FK_TEST; 8640 if (TEST_NZ(_flag_a, _flag_b)) goto L_47038010; /* 0x47038007: jne 0x47038010 */ 8641 L_47038009: 8642 ecx = esi; /* 0x47038009: mov ecx, esi */ 8643 RECOMP_ICALL(0x47038D20u); /* 0x4703800B: call 0x47038d20 */ /* not lifted */ 8644 RECOMP_FLAGS_IN(); 8645 L_47038010: 8646 eax = MEM32(esi + 0x24); /* 0x47038010: mov eax, dword ptr [esi + 0x24] */ 8647 edx = esp + 0x14; /* 0x47038013: lea edx, [esp + 0x14] */ 8648 PUSH32(esp, edx); /* 0x47038017: push edx */ 8649 PUSH32(esp, eax); /* 0x47038018: push eax */ 8650 MEM32(esp + 0x1C) = 0; /* 0x47038019: mov dword ptr [esp + 0x1c], 0 */ 8651 RECOMP_ICALL(0x47004600u); /* 0x47038021: call 0x47004600 */ /* not lifted */ 8652 RECOMP_FLAGS_IN(); 8653 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8654 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8655 esp = esp + 8; /* 0x47038026: add esp, 8 */ 8656 _flag_k = FK_ADD; 8657 /* cmp eax, 0xFFFFFFFFu */ /* 0x47038029: cmp eax, -1 */ 8658 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 8659 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8660 _flag_k = FK_CMP; 8661 if (CMP_NE(_flag_a, _flag_b)) goto L_47038040; /* 0x4703802C: jne 0x47038040 */ 8662 L_4703802E: 8663 ecx = MEM32(ebp + 0xC); /* 0x4703802E: mov ecx, dword ptr [ebp + 0xc] */ 8664 edx = MEM32(ecx); /* 0x47038031: mov edx, dword ptr [ecx] */ 8665 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8666 eax = 0; /* 0x47038033: xor eax, eax */ 8667 _cf = 0; 8668 _flag_k = FK_TEST; 8669 PUSH32(esp, eax); /* 0x47038035: push eax */ 8670 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x47038036: call dword ptr [edx + 8] */ 8671 RECOMP_FLAGS_IN(); 8672 edi = POP32_VAL(esp); /* 0x47038039: pop edi */ 8673 esi = POP32_VAL(esp); /* 0x4703803A: pop esi */ 8674 ebp = POP32_VAL(esp); /* 0x4703803B: pop ebp */ 8675 ecx = POP32_VAL(esp); /* 0x4703803C: pop ecx */ 8676 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703803D: ret 4 */ 8677 L_47038040: 8678 eax = MEM32(esp + 0x14); /* 0x47038040: mov eax, dword ptr [esp + 0x14] */ 8679 /* test eax, eax */ /* 0x47038044: test eax, eax */ 8680 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8681 _cf = 0; 8682 _flag_k = FK_TEST; 8683 if (TEST_NZ(_flag_a, _flag_b)) goto L_470380A2; /* 0x47038046: jne 0x470380a2 */ 8684 L_47038048: 8685 eax = MEM32(esi); /* 0x47038048: mov eax, dword ptr [esi] */ 8686 ecx = esi; /* 0x4703804A: mov ecx, esi */ 8687 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x4703804C: call dword ptr [eax + 4] */ 8688 RECOMP_FLAGS_IN(); 8689 /* test eax, eax */ /* 0x4703804F: test eax, eax */ 8690 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8691 _cf = 0; 8692 _flag_k = FK_TEST; 8693 MEM32(esp + 0x14) = eax; /* 0x47038051: mov dword ptr [esp + 0x14], eax */ 8694 if (TEST_NZ(_flag_a, _flag_b)) goto L_47038067; /* 0x47038055: jne 0x47038067 */ 8695 L_47038057: 8696 ecx = MEM32(ebp + 0xC); /* 0x47038057: mov ecx, dword ptr [ebp + 0xc] */ 8697 edx = MEM32(ecx); /* 0x4703805A: mov edx, dword ptr [ecx] */ 8698 PUSH32(esp, eax); /* 0x4703805C: push eax */ 8699 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x4703805D: call dword ptr [edx + 8] */ 8700 RECOMP_FLAGS_IN(); 8701 edi = POP32_VAL(esp); /* 0x47038060: pop edi */ 8702 esi = POP32_VAL(esp); /* 0x47038061: pop esi */ 8703 ebp = POP32_VAL(esp); /* 0x47038062: pop ebp */ 8704 ecx = POP32_VAL(esp); /* 0x47038063: pop ecx */ 8705 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47038064: ret 4 */ 8706 L_47038067: 8707 esi = MEM32(esi + 0x24); /* 0x47038067: mov esi, dword ptr [esi + 0x24] */ 8708 PUSH32(esp, eax); /* 0x4703806A: push eax */ 8709 PUSH32(esp, esi); /* 0x4703806B: push esi */ 8710 RECOMP_ICALL(0x47056110u); /* 0x4703806C: call 0x47056110 */ /* not lifted */ 8711 RECOMP_FLAGS_IN(); 8712 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8713 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8714 esp = esp + 8; /* 0x47038071: add esp, 8 */ 8715 _flag_k = FK_ADD; 8716 /* test eax, eax */ /* 0x47038074: test eax, eax */ 8717 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8718 _cf = 0; 8719 _flag_k = FK_TEST; 8720 if (TEST_Z(_flag_a, _flag_b)) goto L_470380A2; /* 0x47038076: je 0x470380a2 */ 8721 L_47038078: 8722 ecx = MEM32(esp + 0x14); /* 0x47038078: mov ecx, dword ptr [esp + 0x14] */ 8723 /* test ecx, ecx */ /* 0x4703807C: test ecx, ecx */ 8724 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8725 _cf = 0; 8726 _flag_k = FK_TEST; 8727 esi = ecx; /* 0x4703807E: mov esi, ecx */ 8728 if (TEST_Z(_flag_a, _flag_b)) goto L_47038090; /* 0x47038080: je 0x47038090 */ 8729 L_47038082: 8730 RECOMP_ICALL(0x470350A0u); /* 0x47038082: call 0x470350a0 */ /* not lifted */ 8731 RECOMP_FLAGS_IN(); 8732 PUSH32(esp, esi); /* 0x47038087: push esi */ 8733 RECOMP_ICALL(0x470A32A2u); /* 0x47038088: call 0x470a32a2 */ /* not lifted */ 8734 RECOMP_FLAGS_IN(); 8735 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8736 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8737 esp = esp + 4; /* 0x4703808D: add esp, 4 */ 8738 _flag_k = FK_ADD; 8739 L_47038090: 8740 ecx = MEM32(ebp + 0xC); /* 0x47038090: mov ecx, dword ptr [ebp + 0xc] */ 8741 edx = MEM32(ecx); /* 0x47038093: mov edx, dword ptr [ecx] */ 8742 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8743 eax = 0; /* 0x47038095: xor eax, eax */ 8744 _cf = 0; 8745 _flag_k = FK_TEST; 8746 PUSH32(esp, eax); /* 0x47038097: push eax */ 8747 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x47038098: call dword ptr [edx + 8] */ 8748 RECOMP_FLAGS_IN(); 8749 edi = POP32_VAL(esp); /* 0x4703809B: pop edi */ 8750 esi = POP32_VAL(esp); /* 0x4703809C: pop esi */ 8751 ebp = POP32_VAL(esp); /* 0x4703809D: pop ebp */ 8752 ecx = POP32_VAL(esp); /* 0x4703809E: pop ecx */ 8753 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703809F: ret 4 */ 8754 L_470380A2: 8755 eax = MEM32(esp + 0x14); /* 0x470380A2: mov eax, dword ptr [esp + 0x14] */ 8756 ecx = MEM32(ebp + 0xC); /* 0x470380A6: mov ecx, dword ptr [ebp + 0xc] */ 8757 edx = MEM32(ecx); /* 0x470380A9: mov edx, dword ptr [ecx] */ 8758 PUSH32(esp, eax); /* 0x470380AB: push eax */ 8759 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x470380AC: call dword ptr [edx + 8] */ 8760 RECOMP_FLAGS_IN(); 8761 edi = POP32_VAL(esp); /* 0x470380AF: pop edi */ 8762 esi = POP32_VAL(esp); /* 0x470380B0: pop esi */ 8763 ebp = POP32_VAL(esp); /* 0x470380B1: pop ebp */ 8764 ecx = POP32_VAL(esp); /* 0x470380B2: pop ecx */ 8765 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470380B3: ret 4 */ 8766 RECOMP_REGS_OUT(); 8767 } 8768 8769 void sub_470380C0(void) { 8770 int _fpu_cmp = 0; 8771 uint32_t _cf = 0; 8772 int _df = 1; 8773 uint32_t _flag_k = FK_NONE; 8774 uint32_t _flag_a = 0, _flag_b = 0; 8775 uint32_t _itail_tgt = 0; 8776 RECOMP_REGS_LOCALS 8777 RECOMP_ENTER(0x470380C0u); 8778 8779 L_470380C0: 8780 PUSH32(esp, ebx); /* 0x470380C0: push ebx */ 8781 PUSH32(esp, ebp); /* 0x470380C1: push ebp */ 8782 ebx = ecx; /* 0x470380C2: mov ebx, ecx */ 8783 eax = MEM32(ebx + 0xC); /* 0x470380C4: mov eax, dword ptr [ebx + 0xc] */ 8784 /* test eax, eax */ /* 0x470380C7: test eax, eax */ 8785 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8786 _cf = 0; 8787 _flag_k = FK_TEST; 8788 PUSH32(esp, esi); /* 0x470380C9: push esi */ 8789 PUSH32(esp, edi); /* 0x470380CA: push edi */ 8790 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703813D; /* 0x470380CB: jne 0x4703813d */ 8791 L_470380CD: 8792 esi = MEM32(0x470AC3C8); /* 0x470380CD: mov esi, dword ptr [0x470ac3c8] */ 8793 RECOMP_ICALL(esi); /* 0x470380D3: call esi */ 8794 RECOMP_FLAGS_IN(); 8795 MEM32(eax) = 2; /* 0x470380D5: mov dword ptr [eax], 2 */ 8796 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470380DB: call dword ptr [0x470ac150] */ 8797 RECOMP_FLAGS_IN(); 8798 edi = eax; /* 0x470380E1: mov edi, eax */ 8799 RECOMP_ICALL(esi); /* 0x470380E3: call esi */ 8800 RECOMP_FLAGS_IN(); 8801 eax = MEM32(eax); /* 0x470380E5: mov eax, dword ptr [eax] */ 8802 /* test eax, eax */ /* 0x470380E7: test eax, eax */ 8803 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8804 _cf = 0; 8805 _flag_k = FK_TEST; 8806 if (TEST_Z(_flag_a, _flag_b)) goto L_470380ED; /* 0x470380E9: je 0x470380ed */ 8807 L_470380EB: 8808 edi = eax; /* 0x470380EB: mov edi, eax */ 8809 L_470380ED: 8810 RECOMP_ICALL(0x47039020u); /* 0x470380ED: call 0x47039020 */ /* not lifted */ 8811 RECOMP_FLAGS_IN(); 8812 esi = eax; /* 0x470380F2: mov esi, eax */ 8813 ecx = esi; /* 0x470380F4: mov ecx, esi */ 8814 RECOMP_ICALL(0x4703B210u); /* 0x470380F6: call 0x4703b210 */ /* not lifted */ 8815 RECOMP_FLAGS_IN(); 8816 PUSH32(esp, eax); /* 0x470380FB: push eax */ 8817 ecx = esi; /* 0x470380FC: mov ecx, esi */ 8818 RECOMP_ICALL(0x4703B240u); /* 0x470380FE: call 0x4703b240 */ /* not lifted */ 8819 RECOMP_FLAGS_IN(); 8820 PUSH32(esp, eax); /* 0x47038103: push eax */ 8821 ecx = esi; /* 0x47038104: mov ecx, esi */ 8822 RECOMP_ICALL(0x4703B080u); /* 0x47038106: call 0x4703b080 */ /* not lifted */ 8823 RECOMP_FLAGS_IN(); 8824 PUSH32(esp, eax); /* 0x4703810B: push eax */ 8825 PUSH32(esp, edi); /* 0x4703810C: push edi */ 8826 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703810D: push -1 */ 8827 PUSH32(esp, 0x4EAu); /* 0x4703810F: push 0x4ea */ 8828 PUSH32(esp, 0x47106DE4u); /* 0x47038114: push 0x47106de4 */ 8829 ecx = esi; /* 0x47038119: mov ecx, esi */ 8830 RECOMP_ICALL(0x4703A340u); /* 0x4703811B: call 0x4703a340 */ /* not lifted */ 8831 RECOMP_FLAGS_IN(); 8832 PUSH32(esp, 0x47107118u); /* 0x47038120: push 0x47107118 */ 8833 PUSH32(esp, 0x80u); /* 0x47038125: push 0x80 */ 8834 PUSH32(esp, esi); /* 0x4703812A: push esi */ 8835 RECOMP_ICALL(0x47039830u); /* 0x4703812B: call 0x47039830 */ /* not lifted */ 8836 RECOMP_FLAGS_IN(); 8837 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8838 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8839 esp = esp + 0xCu; /* 0x47038130: add esp, 0xc */ 8840 _flag_k = FK_ADD; 8841 edi = POP32_VAL(esp); /* 0x47038133: pop edi */ 8842 esi = POP32_VAL(esp); /* 0x47038134: pop esi */ 8843 ebp = POP32_VAL(esp); /* 0x47038135: pop ebp */ 8844 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 8845 eax = eax | 0xFFFFFFFFu; /* 0x47038136: or eax, 0xffffffff */ 8846 _cf = 0; 8847 _flag_k = FK_TEST; 8848 ebx = POP32_VAL(esp); /* 0x47038139: pop ebx */ 8849 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4703813A: ret 8 */ 8850 L_4703813D: 8851 edi = ebx + 0x10; /* 0x4703813D: lea edi, [ebx + 0x10] */ 8852 ecx = edi; /* 0x47038140: mov ecx, edi */ 8853 RECOMP_ICALL(0x47038C90u); /* 0x47038142: call 0x47038c90 */ /* not lifted */ 8854 RECOMP_FLAGS_IN(); 8855 eax = MEM32(eax + 0x28); /* 0x47038147: mov eax, dword ptr [eax + 0x28] */ 8856 PUSH32(esp, eax); /* 0x4703814A: push eax */ 8857 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x4703814B: call dword ptr [0x470ac180] */ 8858 RECOMP_FLAGS_IN(); 8859 ecx = MEM32(esp + 0x14); /* 0x47038151: mov ecx, dword ptr [esp + 0x14] */ 8860 eax = MEM32(ebx + 0xC); /* 0x47038155: mov eax, dword ptr [ebx + 0xc] */ 8861 esi = MEM32(eax); /* 0x47038158: mov esi, dword ptr [eax] */ 8862 PUSH32(esp, ecx); /* 0x4703815A: push ecx */ 8863 ecx = edi; /* 0x4703815B: mov ecx, edi */ 8864 RECOMP_ICALL(0x47038C90u); /* 0x4703815D: call 0x47038c90 */ /* not lifted */ 8865 RECOMP_FLAGS_IN(); 8866 ecx = MEM32(ebx + 0xC); /* 0x47038162: mov ecx, dword ptr [ebx + 0xc] */ 8867 PUSH32(esp, eax); /* 0x47038165: push eax */ 8868 RECOMP_ICALL(MEM32(esi + 0xC)); /* 0x47038166: call dword ptr [esi + 0xc] */ 8869 RECOMP_FLAGS_IN(); 8870 /* cmp eax, 0xFFFFFFFFu */ /* 0x47038169: cmp eax, -1 */ 8871 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 8872 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8873 _flag_k = FK_CMP; 8874 if (CMP_NE(_flag_a, _flag_b)) goto L_47038322; /* 0x4703816C: jne 0x47038322 */ 8875 L_47038172: 8876 esi = MEM32(0x470AC3C8); /* 0x47038172: mov esi, dword ptr [0x470ac3c8] */ 8877 RECOMP_ICALL(esi); /* 0x47038178: call esi */ 8878 RECOMP_FLAGS_IN(); 8879 /* cmp MEM32(eax), 0x2733u */ /* 0x4703817A: cmp dword ptr [eax], 0x2733 */ 8880 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0x2733u); 8881 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8882 _flag_k = FK_CMP; 8883 if (CMP_EQ(_flag_a, _flag_b)) goto L_470381E9; /* 0x47038180: je 0x470381e9 */ 8884 L_47038182: 8885 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47038182: call dword ptr [0x470ac150] */ 8886 RECOMP_FLAGS_IN(); 8887 edi = eax; /* 0x47038188: mov edi, eax */ 8888 RECOMP_ICALL(esi); /* 0x4703818A: call esi */ 8889 RECOMP_FLAGS_IN(); 8890 eax = MEM32(eax); /* 0x4703818C: mov eax, dword ptr [eax] */ 8891 /* test eax, eax */ /* 0x4703818E: test eax, eax */ 8892 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8893 _cf = 0; 8894 _flag_k = FK_TEST; 8895 if (TEST_Z(_flag_a, _flag_b)) goto L_47038194; /* 0x47038190: je 0x47038194 */ 8896 L_47038192: 8897 edi = eax; /* 0x47038192: mov edi, eax */ 8898 L_47038194: 8899 RECOMP_ICALL(0x47039020u); /* 0x47038194: call 0x47039020 */ /* not lifted */ 8900 RECOMP_FLAGS_IN(); 8901 esi = eax; /* 0x47038199: mov esi, eax */ 8902 ecx = esi; /* 0x4703819B: mov ecx, esi */ 8903 RECOMP_ICALL(0x4703B210u); /* 0x4703819D: call 0x4703b210 */ /* not lifted */ 8904 RECOMP_FLAGS_IN(); 8905 PUSH32(esp, eax); /* 0x470381A2: push eax */ 8906 ecx = esi; /* 0x470381A3: mov ecx, esi */ 8907 RECOMP_ICALL(0x4703B240u); /* 0x470381A5: call 0x4703b240 */ /* not lifted */ 8908 RECOMP_FLAGS_IN(); 8909 PUSH32(esp, eax); /* 0x470381AA: push eax */ 8910 ecx = esi; /* 0x470381AB: mov ecx, esi */ 8911 RECOMP_ICALL(0x4703B080u); /* 0x470381AD: call 0x4703b080 */ /* not lifted */ 8912 RECOMP_FLAGS_IN(); 8913 PUSH32(esp, eax); /* 0x470381B2: push eax */ 8914 PUSH32(esp, edi); /* 0x470381B3: push edi */ 8915 PUSH32(esp, 0xFFFFFFFFu); /* 0x470381B4: push -1 */ 8916 PUSH32(esp, 0x4F6u); /* 0x470381B6: push 0x4f6 */ 8917 PUSH32(esp, 0x47106DE4u); /* 0x470381BB: push 0x47106de4 */ 8918 ecx = esi; /* 0x470381C0: mov ecx, esi */ 8919 RECOMP_ICALL(0x4703A340u); /* 0x470381C2: call 0x4703a340 */ /* not lifted */ 8920 RECOMP_FLAGS_IN(); 8921 PUSH32(esp, 0x47107178u); /* 0x470381C7: push 0x47107178 */ 8922 PUSH32(esp, 0x47107164u); /* 0x470381CC: push 0x47107164 */ 8923 PUSH32(esp, 0x80u); /* 0x470381D1: push 0x80 */ 8924 PUSH32(esp, esi); /* 0x470381D6: push esi */ 8925 RECOMP_ICALL(0x47039830u); /* 0x470381D7: call 0x47039830 */ /* not lifted */ 8926 RECOMP_FLAGS_IN(); 8927 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 8928 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8929 esp = esp + 0x10u; /* 0x470381DC: add esp, 0x10 */ 8930 _flag_k = FK_ADD; 8931 edi = POP32_VAL(esp); /* 0x470381DF: pop edi */ 8932 esi = POP32_VAL(esp); /* 0x470381E0: pop esi */ 8933 ebp = POP32_VAL(esp); /* 0x470381E1: pop ebp */ 8934 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 8935 eax = eax | 0xFFFFFFFFu; /* 0x470381E2: or eax, 0xffffffff */ 8936 _cf = 0; 8937 _flag_k = FK_TEST; 8938 ebx = POP32_VAL(esp); /* 0x470381E5: pop ebx */ 8939 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470381E6: ret 8 */ 8940 L_470381E9: 8941 eax = MEM32(ebx + 0x8); /* 0x470381E9: mov eax, dword ptr [ebx + 8] */ 8942 /* test eax, eax */ /* 0x470381EC: test eax, eax */ 8943 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8944 _cf = 0; 8945 _flag_k = FK_TEST; 8946 if (TEST_Z(_flag_a, _flag_b)) goto L_47038267; /* 0x470381EE: je 0x47038267 */ 8947 L_470381F0: 8948 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470381F0: call dword ptr [0x470ac150] */ 8949 RECOMP_FLAGS_IN(); 8950 ebp = eax; /* 0x470381F6: mov ebp, eax */ 8951 RECOMP_ICALL(esi); /* 0x470381F8: call esi */ 8952 RECOMP_FLAGS_IN(); 8953 eax = MEM32(eax); /* 0x470381FA: mov eax, dword ptr [eax] */ 8954 /* test eax, eax */ /* 0x470381FC: test eax, eax */ 8955 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8956 _cf = 0; 8957 _flag_k = FK_TEST; 8958 if (TEST_Z(_flag_a, _flag_b)) goto L_47038202; /* 0x470381FE: je 0x47038202 */ 8959 L_47038200: 8960 ebp = eax; /* 0x47038200: mov ebp, eax */ 8961 L_47038202: 8962 RECOMP_ICALL(0x47039020u); /* 0x47038202: call 0x47039020 */ /* not lifted */ 8963 RECOMP_FLAGS_IN(); 8964 esi = eax; /* 0x47038207: mov esi, eax */ 8965 ecx = esi; /* 0x47038209: mov ecx, esi */ 8966 RECOMP_ICALL(0x4703B210u); /* 0x4703820B: call 0x4703b210 */ /* not lifted */ 8967 RECOMP_FLAGS_IN(); 8968 PUSH32(esp, eax); /* 0x47038210: push eax */ 8969 ecx = esi; /* 0x47038211: mov ecx, esi */ 8970 RECOMP_ICALL(0x4703B240u); /* 0x47038213: call 0x4703b240 */ /* not lifted */ 8971 RECOMP_FLAGS_IN(); 8972 PUSH32(esp, eax); /* 0x47038218: push eax */ 8973 ecx = esi; /* 0x47038219: mov ecx, esi */ 8974 RECOMP_ICALL(0x4703B080u); /* 0x4703821B: call 0x4703b080 */ /* not lifted */ 8975 RECOMP_FLAGS_IN(); 8976 PUSH32(esp, eax); /* 0x47038220: push eax */ 8977 PUSH32(esp, ebp); /* 0x47038221: push ebp */ 8978 PUSH32(esp, 0); /* 0x47038222: push 0 */ 8979 PUSH32(esp, 0x4FBu); /* 0x47038224: push 0x4fb */ 8980 PUSH32(esp, 0x47106DE4u); /* 0x47038229: push 0x47106de4 */ 8981 ecx = esi; /* 0x4703822E: mov ecx, esi */ 8982 RECOMP_ICALL(0x4703A340u); /* 0x47038230: call 0x4703a340 */ /* not lifted */ 8983 RECOMP_FLAGS_IN(); 8984 eax = MEM32(ebx + 0xC); /* 0x47038235: mov eax, dword ptr [ebx + 0xc] */ 8985 ecx = MEM32(eax + 0xC); /* 0x47038238: mov ecx, dword ptr [eax + 0xc] */ 8986 /* test ecx, ecx */ /* 0x4703823B: test ecx, ecx */ 8987 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8988 _cf = 0; 8989 _flag_k = FK_TEST; 8990 if (TEST_Z(_flag_a, _flag_b)) goto L_47038241; /* 0x4703823D: je 0x47038241 */ 8991 L_4703823F: 8992 if (TEST_NZ(_flag_a, _flag_b)) goto L_47038248; /* 0x4703823F: jne 0x47038248 */ 8993 L_47038241: 8994 eax = 0x47106D58u; /* 0x47038241: mov eax, 0x47106d58 */ 8995 goto L_4703824E; /* 0x47038246: jmp 0x4703824e */ 8996 L_47038248: 8997 eax = MEM32(eax + 0xC); /* 0x47038248: mov eax, dword ptr [eax + 0xc] */ 8998 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x60u); 8999 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9000 eax = eax + 0x60u; /* 0x4703824B: add eax, 0x60 */ 9001 _flag_k = FK_ADD; 9002 L_4703824E: 9003 edx = MEM32(ebx); /* 0x4703824E: mov edx, dword ptr [ebx] */ 9004 PUSH32(esp, eax); /* 0x47038250: push eax */ 9005 ecx = ebx; /* 0x47038251: mov ecx, ebx */ 9006 RECOMP_ICALL(MEM32(edx + 0x34)); /* 0x47038253: call dword ptr [edx + 0x34] */ 9007 RECOMP_FLAGS_IN(); 9008 PUSH32(esp, eax); /* 0x47038256: push eax */ 9009 PUSH32(esp, 0x47107138u); /* 0x47038257: push 0x47107138 */ 9010 PUSH32(esp, 4); /* 0x4703825C: push 4 */ 9011 PUSH32(esp, esi); /* 0x4703825E: push esi */ 9012 RECOMP_ICALL(0x47039830u); /* 0x4703825F: call 0x47039830 */ /* not lifted */ 9013 RECOMP_FLAGS_IN(); 9014 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 9015 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9016 esp = esp + 0x14u; /* 0x47038264: add esp, 0x14 */ 9017 _flag_k = FK_ADD; 9018 L_47038267: 9019 eax = MEM32(edi + 0x20); /* 0x47038267: mov eax, dword ptr [edi + 0x20] */ 9020 /* test eax, eax */ /* 0x4703826A: test eax, eax */ 9021 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9022 _cf = 0; 9023 _flag_k = FK_TEST; 9024 if (TEST_NZ(_flag_a, _flag_b)) goto L_47038275; /* 0x4703826C: jne 0x47038275 */ 9025 L_4703826E: 9026 ecx = edi; /* 0x4703826E: mov ecx, edi */ 9027 RECOMP_ICALL(0x47038D20u); /* 0x47038270: call 0x47038d20 */ /* not lifted */ 9028 RECOMP_FLAGS_IN(); 9029 L_47038275: 9030 eax = MEM32(edi + 0x24); /* 0x47038275: mov eax, dword ptr [edi + 0x24] */ 9031 ecx = esp + 0x14; /* 0x47038278: lea ecx, [esp + 0x14] */ 9032 PUSH32(esp, ecx); /* 0x4703827C: push ecx */ 9033 PUSH32(esp, eax); /* 0x4703827D: push eax */ 9034 MEM32(esp + 0x1C) = 0; /* 0x4703827E: mov dword ptr [esp + 0x1c], 0 */ 9035 RECOMP_ICALL(0x47004600u); /* 0x47038286: call 0x47004600 */ /* not lifted */ 9036 RECOMP_FLAGS_IN(); 9037 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9038 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9039 esp = esp + 8; /* 0x4703828B: add esp, 8 */ 9040 _flag_k = FK_ADD; 9041 /* cmp eax, 0xFFFFFFFFu */ /* 0x4703828E: cmp eax, -1 */ 9042 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 9043 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9044 _flag_k = FK_CMP; 9045 if (CMP_NE(_flag_a, _flag_b)) goto L_470382A9; /* 0x47038291: jne 0x470382a9 */ 9046 L_47038293: 9047 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9048 eax = 0; /* 0x47038293: xor eax, eax */ 9049 _cf = 0; 9050 _flag_k = FK_TEST; 9051 PUSH32(esp, eax); /* 0x47038295: push eax */ 9052 eax = MEM32(esp + 0x1C); /* 0x47038296: mov eax, dword ptr [esp + 0x1c] */ 9053 PUSH32(esp, eax); /* 0x4703829A: push eax */ 9054 ecx = ebx; /* 0x4703829B: mov ecx, ebx */ 9055 RECOMP_ICALL(0x47038450u); /* 0x4703829D: call 0x47038450 */ /* not lifted */ 9056 RECOMP_FLAGS_IN(); 9057 edi = POP32_VAL(esp); /* 0x470382A2: pop edi */ 9058 esi = POP32_VAL(esp); /* 0x470382A3: pop esi */ 9059 ebp = POP32_VAL(esp); /* 0x470382A4: pop ebp */ 9060 ebx = POP32_VAL(esp); /* 0x470382A5: pop ebx */ 9061 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470382A6: ret 8 */ 9062 L_470382A9: 9063 eax = MEM32(esp + 0x14); /* 0x470382A9: mov eax, dword ptr [esp + 0x14] */ 9064 /* test eax, eax */ /* 0x470382AD: test eax, eax */ 9065 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9066 _cf = 0; 9067 _flag_k = FK_TEST; 9068 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703830A; /* 0x470382AF: jne 0x4703830a */ 9069 L_470382B1: 9070 edx = MEM32(edi); /* 0x470382B1: mov edx, dword ptr [edi] */ 9071 ecx = edi; /* 0x470382B3: mov ecx, edi */ 9072 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x470382B5: call dword ptr [edx + 4] */ 9073 RECOMP_FLAGS_IN(); 9074 /* test eax, eax */ /* 0x470382B8: test eax, eax */ 9075 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9076 _cf = 0; 9077 _flag_k = FK_TEST; 9078 MEM32(esp + 0x14) = eax; /* 0x470382BA: mov dword ptr [esp + 0x14], eax */ 9079 if (TEST_NZ(_flag_a, _flag_b)) goto L_470382D4; /* 0x470382BE: jne 0x470382d4 */ 9080 L_470382C0: 9081 PUSH32(esp, eax); /* 0x470382C0: push eax */ 9082 eax = MEM32(esp + 0x1C); /* 0x470382C1: mov eax, dword ptr [esp + 0x1c] */ 9083 PUSH32(esp, eax); /* 0x470382C5: push eax */ 9084 ecx = ebx; /* 0x470382C6: mov ecx, ebx */ 9085 RECOMP_ICALL(0x47038450u); /* 0x470382C8: call 0x47038450 */ /* not lifted */ 9086 RECOMP_FLAGS_IN(); 9087 edi = POP32_VAL(esp); /* 0x470382CD: pop edi */ 9088 esi = POP32_VAL(esp); /* 0x470382CE: pop esi */ 9089 ebp = POP32_VAL(esp); /* 0x470382CF: pop ebp */ 9090 ebx = POP32_VAL(esp); /* 0x470382D0: pop ebx */ 9091 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470382D1: ret 8 */ 9092 L_470382D4: 9093 edi = MEM32(edi + 0x24); /* 0x470382D4: mov edi, dword ptr [edi + 0x24] */ 9094 PUSH32(esp, eax); /* 0x470382D7: push eax */ 9095 PUSH32(esp, edi); /* 0x470382D8: push edi */ 9096 RECOMP_ICALL(0x47056110u); /* 0x470382D9: call 0x47056110 */ /* not lifted */ 9097 RECOMP_FLAGS_IN(); 9098 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9099 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9100 esp = esp + 8; /* 0x470382DE: add esp, 8 */ 9101 _flag_k = FK_ADD; 9102 /* test eax, eax */ /* 0x470382E1: test eax, eax */ 9103 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9104 _cf = 0; 9105 _flag_k = FK_TEST; 9106 if (TEST_Z(_flag_a, _flag_b)) goto L_4703830A; /* 0x470382E3: je 0x4703830a */ 9107 L_470382E5: 9108 ecx = MEM32(esp + 0x14); /* 0x470382E5: mov ecx, dword ptr [esp + 0x14] */ 9109 /* test ecx, ecx */ /* 0x470382E9: test ecx, ecx */ 9110 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 9111 _cf = 0; 9112 _flag_k = FK_TEST; 9113 if (TEST_Z(_flag_a, _flag_b)) goto L_470382F4; /* 0x470382EB: je 0x470382f4 */ 9114 L_470382ED: 9115 PUSH32(esp, 1); /* 0x470382ED: push 1 */ 9116 RECOMP_ICALL(0x47038DB0u); /* 0x470382EF: call 0x47038db0 */ /* not lifted */ 9117 RECOMP_FLAGS_IN(); 9118 L_470382F4: 9119 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9120 eax = 0; /* 0x470382F4: xor eax, eax */ 9121 _cf = 0; 9122 _flag_k = FK_TEST; 9123 PUSH32(esp, eax); /* 0x470382F6: push eax */ 9124 eax = MEM32(esp + 0x1C); /* 0x470382F7: mov eax, dword ptr [esp + 0x1c] */ 9125 PUSH32(esp, eax); /* 0x470382FB: push eax */ 9126 ecx = ebx; /* 0x470382FC: mov ecx, ebx */ 9127 RECOMP_ICALL(0x47038450u); /* 0x470382FE: call 0x47038450 */ /* not lifted */ 9128 RECOMP_FLAGS_IN(); 9129 edi = POP32_VAL(esp); /* 0x47038303: pop edi */ 9130 esi = POP32_VAL(esp); /* 0x47038304: pop esi */ 9131 ebp = POP32_VAL(esp); /* 0x47038305: pop ebp */ 9132 ebx = POP32_VAL(esp); /* 0x47038306: pop ebx */ 9133 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47038307: ret 8 */ 9134 L_4703830A: 9135 eax = MEM32(esp + 0x14); /* 0x4703830A: mov eax, dword ptr [esp + 0x14] */ 9136 PUSH32(esp, eax); /* 0x4703830E: push eax */ 9137 eax = MEM32(esp + 0x1C); /* 0x4703830F: mov eax, dword ptr [esp + 0x1c] */ 9138 PUSH32(esp, eax); /* 0x47038313: push eax */ 9139 ecx = ebx; /* 0x47038314: mov ecx, ebx */ 9140 RECOMP_ICALL(0x47038450u); /* 0x47038316: call 0x47038450 */ /* not lifted */ 9141 RECOMP_FLAGS_IN(); 9142 edi = POP32_VAL(esp); /* 0x4703831B: pop edi */ 9143 esi = POP32_VAL(esp); /* 0x4703831C: pop esi */ 9144 ebp = POP32_VAL(esp); /* 0x4703831D: pop ebp */ 9145 ebx = POP32_VAL(esp); /* 0x4703831E: pop ebx */ 9146 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4703831F: ret 8 */ 9147 L_47038322: 9148 eax = MEM32(ebx + 0x8); /* 0x47038322: mov eax, dword ptr [ebx + 8] */ 9149 /* test eax, eax */ /* 0x47038325: test eax, eax */ 9150 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9151 _cf = 0; 9152 _flag_k = FK_TEST; 9153 if (TEST_Z(_flag_a, _flag_b)) goto L_4703838A; /* 0x47038327: je 0x4703838a */ 9154 L_47038329: 9155 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47038329: call dword ptr [0x470ac150] */ 9156 RECOMP_FLAGS_IN(); 9157 ebp = eax; /* 0x4703832F: mov ebp, eax */ 9158 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47038331: call dword ptr [0x470ac3c8] */ 9159 RECOMP_FLAGS_IN(); 9160 eax = MEM32(eax); /* 0x47038337: mov eax, dword ptr [eax] */ 9161 /* test eax, eax */ /* 0x47038339: test eax, eax */ 9162 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9163 _cf = 0; 9164 _flag_k = FK_TEST; 9165 if (TEST_Z(_flag_a, _flag_b)) goto L_4703833F; /* 0x4703833B: je 0x4703833f */ 9166 L_4703833D: 9167 ebp = eax; /* 0x4703833D: mov ebp, eax */ 9168 L_4703833F: 9169 RECOMP_ICALL(0x47039020u); /* 0x4703833F: call 0x47039020 */ /* not lifted */ 9170 RECOMP_FLAGS_IN(); 9171 esi = eax; /* 0x47038344: mov esi, eax */ 9172 ecx = esi; /* 0x47038346: mov ecx, esi */ 9173 RECOMP_ICALL(0x4703B210u); /* 0x47038348: call 0x4703b210 */ /* not lifted */ 9174 RECOMP_FLAGS_IN(); 9175 PUSH32(esp, eax); /* 0x4703834D: push eax */ 9176 ecx = esi; /* 0x4703834E: mov ecx, esi */ 9177 RECOMP_ICALL(0x4703B240u); /* 0x47038350: call 0x4703b240 */ /* not lifted */ 9178 RECOMP_FLAGS_IN(); 9179 PUSH32(esp, eax); /* 0x47038355: push eax */ 9180 ecx = esi; /* 0x47038356: mov ecx, esi */ 9181 RECOMP_ICALL(0x4703B080u); /* 0x47038358: call 0x4703b080 */ /* not lifted */ 9182 RECOMP_FLAGS_IN(); 9183 PUSH32(esp, eax); /* 0x4703835D: push eax */ 9184 PUSH32(esp, ebp); /* 0x4703835E: push ebp */ 9185 PUSH32(esp, 0); /* 0x4703835F: push 0 */ 9186 PUSH32(esp, 0x505u); /* 0x47038361: push 0x505 */ 9187 PUSH32(esp, 0x47106DE4u); /* 0x47038366: push 0x47106de4 */ 9188 ecx = esi; /* 0x4703836B: mov ecx, esi */ 9189 RECOMP_ICALL(0x4703A340u); /* 0x4703836D: call 0x4703a340 */ /* not lifted */ 9190 RECOMP_FLAGS_IN(); 9191 edx = MEM32(ebx); /* 0x47038372: mov edx, dword ptr [ebx] */ 9192 ecx = ebx; /* 0x47038374: mov ecx, ebx */ 9193 RECOMP_ICALL(MEM32(edx + 0x34)); /* 0x47038376: call dword ptr [edx + 0x34] */ 9194 RECOMP_FLAGS_IN(); 9195 PUSH32(esp, eax); /* 0x47038379: push eax */ 9196 PUSH32(esp, 0x47107124u); /* 0x4703837A: push 0x47107124 */ 9197 PUSH32(esp, 4); /* 0x4703837F: push 4 */ 9198 PUSH32(esp, esi); /* 0x47038381: push esi */ 9199 RECOMP_ICALL(0x47039830u); /* 0x47038382: call 0x47039830 */ /* not lifted */ 9200 RECOMP_FLAGS_IN(); 9201 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 9202 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9203 esp = esp + 0x10u; /* 0x47038387: add esp, 0x10 */ 9204 _flag_k = FK_ADD; 9205 L_4703838A: 9206 eax = MEM32(edi + 0x20); /* 0x4703838A: mov eax, dword ptr [edi + 0x20] */ 9207 /* test eax, eax */ /* 0x4703838D: test eax, eax */ 9208 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9209 _cf = 0; 9210 _flag_k = FK_TEST; 9211 if (TEST_NZ(_flag_a, _flag_b)) goto L_47038398; /* 0x4703838F: jne 0x47038398 */ 9212 L_47038391: 9213 ecx = edi; /* 0x47038391: mov ecx, edi */ 9214 RECOMP_ICALL(0x47038D20u); /* 0x47038393: call 0x47038d20 */ /* not lifted */ 9215 RECOMP_FLAGS_IN(); 9216 L_47038398: 9217 eax = MEM32(edi + 0x24); /* 0x47038398: mov eax, dword ptr [edi + 0x24] */ 9218 ecx = esp + 0x14; /* 0x4703839B: lea ecx, [esp + 0x14] */ 9219 PUSH32(esp, ecx); /* 0x4703839F: push ecx */ 9220 PUSH32(esp, eax); /* 0x470383A0: push eax */ 9221 MEM32(esp + 0x1C) = 0; /* 0x470383A1: mov dword ptr [esp + 0x1c], 0 */ 9222 RECOMP_ICALL(0x47004600u); /* 0x470383A9: call 0x47004600 */ /* not lifted */ 9223 RECOMP_FLAGS_IN(); 9224 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9225 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9226 esp = esp + 8; /* 0x470383AE: add esp, 8 */ 9227 _flag_k = FK_ADD; 9228 /* cmp eax, 0xFFFFFFFFu */ /* 0x470383B1: cmp eax, -1 */ 9229 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 9230 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9231 _flag_k = FK_CMP; 9232 if (CMP_NE(_flag_a, _flag_b)) goto L_470383CB; /* 0x470383B4: jne 0x470383cb */ 9233 L_470383B6: 9234 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9235 eax = 0; /* 0x470383B6: xor eax, eax */ 9236 _cf = 0; 9237 _flag_k = FK_TEST; 9238 eax = MEM32(eax + 0x28); /* 0x470383B8: mov eax, dword ptr [eax + 0x28] */ 9239 PUSH32(esp, eax); /* 0x470383BB: push eax */ 9240 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470383BC: call dword ptr [0x470ac190] */ 9241 RECOMP_FLAGS_IN(); 9242 edi = POP32_VAL(esp); /* 0x470383C2: pop edi */ 9243 esi = POP32_VAL(esp); /* 0x470383C3: pop esi */ 9244 ebp = POP32_VAL(esp); /* 0x470383C4: pop ebp */ 9245 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9246 eax = 0; /* 0x470383C5: xor eax, eax */ 9247 _cf = 0; 9248 _flag_k = FK_TEST; 9249 ebx = POP32_VAL(esp); /* 0x470383C7: pop ebx */ 9250 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470383C8: ret 8 */ 9251 L_470383CB: 9252 eax = MEM32(esp + 0x14); /* 0x470383CB: mov eax, dword ptr [esp + 0x14] */ 9253 /* test eax, eax */ /* 0x470383CF: test eax, eax */ 9254 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9255 _cf = 0; 9256 _flag_k = FK_TEST; 9257 if (TEST_NZ(_flag_a, _flag_b)) goto L_47038433; /* 0x470383D1: jne 0x47038433 */ 9258 L_470383D3: 9259 edx = MEM32(edi); /* 0x470383D3: mov edx, dword ptr [edi] */ 9260 ecx = edi; /* 0x470383D5: mov ecx, edi */ 9261 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x470383D7: call dword ptr [edx + 4] */ 9262 RECOMP_FLAGS_IN(); 9263 /* test eax, eax */ /* 0x470383DA: test eax, eax */ 9264 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9265 _cf = 0; 9266 _flag_k = FK_TEST; 9267 MEM32(esp + 0x14) = eax; /* 0x470383DC: mov dword ptr [esp + 0x14], eax */ 9268 if (TEST_NZ(_flag_a, _flag_b)) goto L_470383F5; /* 0x470383E0: jne 0x470383f5 */ 9269 L_470383E2: 9270 eax = MEM32(eax + 0x28); /* 0x470383E2: mov eax, dword ptr [eax + 0x28] */ 9271 PUSH32(esp, eax); /* 0x470383E5: push eax */ 9272 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470383E6: call dword ptr [0x470ac190] */ 9273 RECOMP_FLAGS_IN(); 9274 edi = POP32_VAL(esp); /* 0x470383EC: pop edi */ 9275 esi = POP32_VAL(esp); /* 0x470383ED: pop esi */ 9276 ebp = POP32_VAL(esp); /* 0x470383EE: pop ebp */ 9277 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9278 eax = 0; /* 0x470383EF: xor eax, eax */ 9279 _cf = 0; 9280 _flag_k = FK_TEST; 9281 ebx = POP32_VAL(esp); /* 0x470383F1: pop ebx */ 9282 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470383F2: ret 8 */ 9283 L_470383F5: 9284 edi = MEM32(edi + 0x24); /* 0x470383F5: mov edi, dword ptr [edi + 0x24] */ 9285 PUSH32(esp, eax); /* 0x470383F8: push eax */ 9286 PUSH32(esp, edi); /* 0x470383F9: push edi */ 9287 RECOMP_ICALL(0x47056110u); /* 0x470383FA: call 0x47056110 */ /* not lifted */ 9288 RECOMP_FLAGS_IN(); 9289 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9290 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9291 esp = esp + 8; /* 0x470383FF: add esp, 8 */ 9292 _flag_k = FK_ADD; 9293 /* test eax, eax */ /* 0x47038402: test eax, eax */ 9294 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9295 _cf = 0; 9296 _flag_k = FK_TEST; 9297 if (TEST_Z(_flag_a, _flag_b)) goto L_47038433; /* 0x47038404: je 0x47038433 */ 9298 L_47038406: 9299 ecx = MEM32(esp + 0x14); /* 0x47038406: mov ecx, dword ptr [esp + 0x14] */ 9300 /* test ecx, ecx */ /* 0x4703840A: test ecx, ecx */ 9301 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 9302 _cf = 0; 9303 _flag_k = FK_TEST; 9304 esi = ecx; /* 0x4703840C: mov esi, ecx */ 9305 if (TEST_Z(_flag_a, _flag_b)) goto L_4703841E; /* 0x4703840E: je 0x4703841e */ 9306 L_47038410: 9307 RECOMP_ICALL(0x470350A0u); /* 0x47038410: call 0x470350a0 */ /* not lifted */ 9308 RECOMP_FLAGS_IN(); 9309 PUSH32(esp, esi); /* 0x47038415: push esi */ 9310 RECOMP_ICALL(0x470A32A2u); /* 0x47038416: call 0x470a32a2 */ /* not lifted */ 9311 RECOMP_FLAGS_IN(); 9312 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9313 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9314 esp = esp + 4; /* 0x4703841B: add esp, 4 */ 9315 _flag_k = FK_ADD; 9316 L_4703841E: 9317 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9318 eax = 0; /* 0x4703841E: xor eax, eax */ 9319 _cf = 0; 9320 _flag_k = FK_TEST; 9321 eax = MEM32(eax + 0x28); /* 0x47038420: mov eax, dword ptr [eax + 0x28] */ 9322 PUSH32(esp, eax); /* 0x47038423: push eax */ 9323 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47038424: call dword ptr [0x470ac190] */ 9324 RECOMP_FLAGS_IN(); 9325 edi = POP32_VAL(esp); /* 0x4703842A: pop edi */ 9326 esi = POP32_VAL(esp); /* 0x4703842B: pop esi */ 9327 ebp = POP32_VAL(esp); /* 0x4703842C: pop ebp */ 9328 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9329 eax = 0; /* 0x4703842D: xor eax, eax */ 9330 _cf = 0; 9331 _flag_k = FK_TEST; 9332 ebx = POP32_VAL(esp); /* 0x4703842F: pop ebx */ 9333 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47038430: ret 8 */ 9334 L_47038433: 9335 eax = MEM32(esp + 0x14); /* 0x47038433: mov eax, dword ptr [esp + 0x14] */ 9336 eax = MEM32(eax + 0x28); /* 0x47038437: mov eax, dword ptr [eax + 0x28] */ 9337 PUSH32(esp, eax); /* 0x4703843A: push eax */ 9338 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4703843B: call dword ptr [0x470ac190] */ 9339 RECOMP_FLAGS_IN(); 9340 edi = POP32_VAL(esp); /* 0x47038441: pop edi */ 9341 esi = POP32_VAL(esp); /* 0x47038442: pop esi */ 9342 ebp = POP32_VAL(esp); /* 0x47038443: pop ebp */ 9343 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9344 eax = 0; /* 0x47038444: xor eax, eax */ 9345 _cf = 0; 9346 _flag_k = FK_TEST; 9347 ebx = POP32_VAL(esp); /* 0x47038446: pop ebx */ 9348 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47038447: ret 8 */ 9349 RECOMP_REGS_OUT(); 9350 } 9351 9352 void sub_47038450(void) { 9353 int _fpu_cmp = 0; 9354 uint32_t _cf = 0; 9355 int _df = 1; 9356 uint32_t _flag_k = FK_NONE; 9357 uint32_t _flag_a = 0, _flag_b = 0; 9358 uint32_t _itail_tgt = 0; 9359 RECOMP_REGS_LOCALS 9360 RECOMP_ENTER(0x47038450u); 9361 9362 L_47038450: 9363 PUSH32(esp, 0xFFFFFFFFu); /* 0x47038450: push -1 */ 9364 PUSH32(esp, 0x470A5E18u); /* 0x47038452: push 0x470a5e18 */ 9365 eax = MEM32(FS_BASE + (0)); /* 0x47038457: mov eax, dword ptr fs:[0] */ 9366 PUSH32(esp, eax); /* 0x4703845D: push eax */ 9367 MEM32(FS_BASE + (0)) = esp; /* 0x4703845E: mov dword ptr fs:[0], esp */ 9368 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9369 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9370 esp = esp - 8; /* 0x47038465: sub esp, 8 */ 9371 _flag_k = FK_CMP; 9372 PUSH32(esp, ebx); /* 0x47038468: push ebx */ 9373 PUSH32(esp, ebp); /* 0x47038469: push ebp */ 9374 PUSH32(esp, esi); /* 0x4703846A: push esi */ 9375 esi = MEM32(esp + 0x24); /* 0x4703846B: mov esi, dword ptr [esp + 0x24] */ 9376 PUSH32(esp, edi); /* 0x4703846F: push edi */ 9377 edi = ecx; /* 0x47038470: mov edi, ecx */ 9378 PUSH32(esp, 1); /* 0x47038472: push 1 */ 9379 ecx = esi; /* 0x47038474: mov ecx, esi */ 9380 MEM32(esp + 0x14) = edi; /* 0x47038476: mov dword ptr [esp + 0x14], edi */ 9381 RECOMP_ICALL(0x47088190u); /* 0x4703847A: call 0x47088190 */ /* not lifted */ 9382 RECOMP_FLAGS_IN(); 9383 /* cmp eax, 1 */ /* 0x4703847F: cmp eax, 1 */ 9384 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9385 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9386 _flag_k = FK_CMP; 9387 if (CMP_NE(_flag_a, _flag_b)) goto L_470384E9; /* 0x47038482: jne 0x470384e9 */ 9388 L_47038484: 9389 edi = MEM32(0x470AC3C8); /* 0x47038484: mov edi, dword ptr [0x470ac3c8] */ 9390 RECOMP_ICALL(edi); /* 0x4703848A: call edi */ 9391 RECOMP_FLAGS_IN(); 9392 esi = eax; /* 0x4703848C: mov esi, eax */ 9393 ebx = MEM32(esi); /* 0x4703848E: mov ebx, dword ptr [esi] */ 9394 MEM32(esp + 0x10) = esi; /* 0x47038490: mov dword ptr [esp + 0x10], esi */ 9395 MEM32(esp + 0x14) = ebx; /* 0x47038494: mov dword ptr [esp + 0x14], ebx */ 9396 eax = MEM32(esp + 0x2C); /* 0x47038498: mov eax, dword ptr [esp + 0x2c] */ 9397 ecx = MEM32(eax + 0x28); /* 0x4703849C: mov ecx, dword ptr [eax + 0x28] */ 9398 PUSH32(esp, ecx); /* 0x4703849F: push ecx */ 9399 MEM32(esp + 0x24) = 0; /* 0x470384A0: mov dword ptr [esp + 0x24], 0 */ 9400 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470384A8: call dword ptr [0x470ac190] */ 9401 RECOMP_FLAGS_IN(); 9402 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470384AE: call dword ptr [0x470ac150] */ 9403 RECOMP_FLAGS_IN(); 9404 ebp = eax; /* 0x470384B4: mov ebp, eax */ 9405 RECOMP_ICALL(edi); /* 0x470384B6: call edi */ 9406 RECOMP_FLAGS_IN(); 9407 eax = MEM32(eax); /* 0x470384B8: mov eax, dword ptr [eax] */ 9408 /* test eax, eax */ /* 0x470384BA: test eax, eax */ 9409 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9410 _cf = 0; 9411 _flag_k = FK_TEST; 9412 if (TEST_NZ(_flag_a, _flag_b)) goto L_470384C0; /* 0x470384BC: jne 0x470384c0 */ 9413 L_470384BE: 9414 eax = ebp; /* 0x470384BE: mov eax, ebp */ 9415 L_470384C0: 9416 PUSH32(esp, 0); /* 0x470384C0: push 0 */ 9417 PUSH32(esp, 0); /* 0x470384C2: push 0 */ 9418 PUSH32(esp, 1); /* 0x470384C4: push 1 */ 9419 PUSH32(esp, eax); /* 0x470384C6: push eax */ 9420 PUSH32(esp, 0xFFFFFFFFu); /* 0x470384C7: push -1 */ 9421 PUSH32(esp, 0x518u); /* 0x470384C9: push 0x518 */ 9422 PUSH32(esp, 0x47106DE4u); /* 0x470384CE: push 0x47106de4 */ 9423 RECOMP_ICALL(0x47039020u); /* 0x470384D3: call 0x47039020 */ /* not lifted */ 9424 RECOMP_FLAGS_IN(); 9425 ecx = eax; /* 0x470384D8: mov ecx, eax */ 9426 RECOMP_ICALL(0x4703A340u); /* 0x470384DA: call 0x4703a340 */ /* not lifted */ 9427 RECOMP_FLAGS_IN(); 9428 MEM32(esi) = ebx; /* 0x470384DF: mov dword ptr [esi], ebx */ 9429 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 9430 eax = eax | 0xFFFFFFFFu; /* 0x470384E1: or eax, 0xffffffff */ 9431 _cf = 0; 9432 _flag_k = FK_TEST; 9433 goto L_47038598; /* 0x470384E4: jmp 0x47038598 */ 9434 L_470384E9: 9435 ecx = esi; /* 0x470384E9: mov ecx, esi */ 9436 RECOMP_ICALL(0x470881E0u); /* 0x470384EB: call 0x470881e0 */ /* not lifted */ 9437 RECOMP_FLAGS_IN(); 9438 ebp = MEM32(esp + 0x2C); /* 0x470384F0: mov ebp, dword ptr [esp + 0x2c] */ 9439 PUSH32(esp, eax); /* 0x470384F4: push eax */ 9440 ecx = ebp; /* 0x470384F5: mov ecx, ebp */ 9441 RECOMP_ICALL(0x47087510u); /* 0x470384F7: call 0x47087510 */ /* not lifted */ 9442 RECOMP_FLAGS_IN(); 9443 /* cmp eax, 0xFFFFFFFFu */ /* 0x470384FC: cmp eax, -1 */ 9444 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 9445 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9446 _flag_k = FK_CMP; 9447 ebx = MEM32(0x470AC3C8); /* 0x470384FF: mov ebx, dword ptr [0x470ac3c8] */ 9448 if (CMP_NE(_flag_a, _flag_b)) goto L_47038526; /* 0x47038505: jne 0x47038526 */ 9449 L_47038507: 9450 RECOMP_ICALL(ebx); /* 0x47038507: call ebx */ 9451 RECOMP_FLAGS_IN(); 9452 /* cmp MEM32(eax), 4 */ /* 0x47038509: cmp dword ptr [eax], 4 */ 9453 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(4); 9454 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9455 _flag_k = FK_CMP; 9456 if (CMP_NE(_flag_a, _flag_b)) goto L_470385AD; /* 0x4703850C: jne 0x470385ad */ 9457 L_47038512: 9458 ecx = esi; /* 0x47038512: mov ecx, esi */ 9459 RECOMP_ICALL(0x470881E0u); /* 0x47038514: call 0x470881e0 */ /* not lifted */ 9460 RECOMP_FLAGS_IN(); 9461 PUSH32(esp, eax); /* 0x47038519: push eax */ 9462 ecx = ebp; /* 0x4703851A: mov ecx, ebp */ 9463 RECOMP_ICALL(0x47087510u); /* 0x4703851C: call 0x47087510 */ /* not lifted */ 9464 RECOMP_FLAGS_IN(); 9465 /* cmp eax, 0xFFFFFFFFu */ /* 0x47038521: cmp eax, -1 */ 9466 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 9467 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9468 _flag_k = FK_CMP; 9469 RECOMP_BACKEDGE(); 9470 if (CMP_EQ(_flag_a, _flag_b)) goto L_47038507; /* 0x47038524: je 0x47038507 */ 9471 L_47038526: 9472 eax = MEM32(edi + 0x8); /* 0x47038526: mov eax, dword ptr [edi + 8] */ 9473 /* test eax, eax */ /* 0x47038529: test eax, eax */ 9474 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9475 _cf = 0; 9476 _flag_k = FK_TEST; 9477 if (TEST_Z(_flag_a, _flag_b)) goto L_4703858C; /* 0x4703852B: je 0x4703858c */ 9478 L_4703852D: 9479 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4703852D: call dword ptr [0x470ac150] */ 9480 RECOMP_FLAGS_IN(); 9481 edi = eax; /* 0x47038533: mov edi, eax */ 9482 RECOMP_ICALL(ebx); /* 0x47038535: call ebx */ 9483 RECOMP_FLAGS_IN(); 9484 eax = MEM32(eax); /* 0x47038537: mov eax, dword ptr [eax] */ 9485 /* test eax, eax */ /* 0x47038539: test eax, eax */ 9486 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9487 _cf = 0; 9488 _flag_k = FK_TEST; 9489 if (TEST_Z(_flag_a, _flag_b)) goto L_4703853F; /* 0x4703853B: je 0x4703853f */ 9490 L_4703853D: 9491 edi = eax; /* 0x4703853D: mov edi, eax */ 9492 L_4703853F: 9493 RECOMP_ICALL(0x47039020u); /* 0x4703853F: call 0x47039020 */ /* not lifted */ 9494 RECOMP_FLAGS_IN(); 9495 esi = eax; /* 0x47038544: mov esi, eax */ 9496 ecx = esi; /* 0x47038546: mov ecx, esi */ 9497 RECOMP_ICALL(0x4703B210u); /* 0x47038548: call 0x4703b210 */ /* not lifted */ 9498 RECOMP_FLAGS_IN(); 9499 PUSH32(esp, eax); /* 0x4703854D: push eax */ 9500 ecx = esi; /* 0x4703854E: mov ecx, esi */ 9501 RECOMP_ICALL(0x4703B240u); /* 0x47038550: call 0x4703b240 */ /* not lifted */ 9502 RECOMP_FLAGS_IN(); 9503 PUSH32(esp, eax); /* 0x47038555: push eax */ 9504 ecx = esi; /* 0x47038556: mov ecx, esi */ 9505 RECOMP_ICALL(0x4703B080u); /* 0x47038558: call 0x4703b080 */ /* not lifted */ 9506 RECOMP_FLAGS_IN(); 9507 PUSH32(esp, eax); /* 0x4703855D: push eax */ 9508 PUSH32(esp, edi); /* 0x4703855E: push edi */ 9509 PUSH32(esp, 0); /* 0x4703855F: push 0 */ 9510 PUSH32(esp, 0x52Du); /* 0x47038561: push 0x52d */ 9511 PUSH32(esp, 0x47106DE4u); /* 0x47038566: push 0x47106de4 */ 9512 ecx = esi; /* 0x4703856B: mov ecx, esi */ 9513 RECOMP_ICALL(0x4703A340u); /* 0x4703856D: call 0x4703a340 */ /* not lifted */ 9514 RECOMP_FLAGS_IN(); 9515 ecx = MEM32(esp + 0x10); /* 0x47038572: mov ecx, dword ptr [esp + 0x10] */ 9516 eax = MEM32(ecx); /* 0x47038576: mov eax, dword ptr [ecx] */ 9517 RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x47038578: call dword ptr [eax + 0x30] */ 9518 RECOMP_FLAGS_IN(); 9519 PUSH32(esp, eax); /* 0x4703857B: push eax */ 9520 PUSH32(esp, 0x471071A8u); /* 0x4703857C: push 0x471071a8 */ 9521 PUSH32(esp, 4); /* 0x47038581: push 4 */ 9522 PUSH32(esp, esi); /* 0x47038583: push esi */ 9523 RECOMP_ICALL(0x47039830u); /* 0x47038584: call 0x47039830 */ /* not lifted */ 9524 RECOMP_FLAGS_IN(); 9525 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 9526 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9527 esp = esp + 0x10u; /* 0x47038589: add esp, 0x10 */ 9528 _flag_k = FK_ADD; 9529 L_4703858C: 9530 ecx = MEM32(ebp + 0x28); /* 0x4703858C: mov ecx, dword ptr [ebp + 0x28] */ 9531 PUSH32(esp, ecx); /* 0x4703858F: push ecx */ 9532 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47038590: call dword ptr [0x470ac190] */ 9533 RECOMP_FLAGS_IN(); 9534 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9535 eax = 0; /* 0x47038596: xor eax, eax */ 9536 _cf = 0; 9537 _flag_k = FK_TEST; 9538 L_47038598: 9539 ecx = MEM32(esp + 0x18); /* 0x47038598: mov ecx, dword ptr [esp + 0x18] */ 9540 edi = POP32_VAL(esp); /* 0x4703859C: pop edi */ 9541 esi = POP32_VAL(esp); /* 0x4703859D: pop esi */ 9542 ebp = POP32_VAL(esp); /* 0x4703859E: pop ebp */ 9543 ebx = POP32_VAL(esp); /* 0x4703859F: pop ebx */ 9544 MEM32(FS_BASE + (0)) = ecx; /* 0x470385A0: mov dword ptr fs:[0], ecx */ 9545 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 9546 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9547 esp = esp + 0x14u; /* 0x470385A7: add esp, 0x14 */ 9548 _flag_k = FK_ADD; 9549 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470385AA: ret 8 */ 9550 L_470385AD: 9551 edx = MEM32(ebp + 0x28); /* 0x470385AD: mov edx, dword ptr [ebp + 0x28] */ 9552 PUSH32(esp, edx); /* 0x470385B0: push edx */ 9553 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470385B1: call dword ptr [0x470ac190] */ 9554 RECOMP_FLAGS_IN(); 9555 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470385B7: call dword ptr [0x470ac150] */ 9556 RECOMP_FLAGS_IN(); 9557 edi = eax; /* 0x470385BD: mov edi, eax */ 9558 RECOMP_ICALL(ebx); /* 0x470385BF: call ebx */ 9559 RECOMP_FLAGS_IN(); 9560 eax = MEM32(eax); /* 0x470385C1: mov eax, dword ptr [eax] */ 9561 /* test eax, eax */ /* 0x470385C3: test eax, eax */ 9562 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9563 _cf = 0; 9564 _flag_k = FK_TEST; 9565 if (TEST_Z(_flag_a, _flag_b)) goto L_470385C9; /* 0x470385C5: je 0x470385c9 */ 9566 L_470385C7: 9567 edi = eax; /* 0x470385C7: mov edi, eax */ 9568 L_470385C9: 9569 RECOMP_ICALL(0x47039020u); /* 0x470385C9: call 0x47039020 */ /* not lifted */ 9570 RECOMP_FLAGS_IN(); 9571 esi = eax; /* 0x470385CE: mov esi, eax */ 9572 ecx = esi; /* 0x470385D0: mov ecx, esi */ 9573 RECOMP_ICALL(0x4703B210u); /* 0x470385D2: call 0x4703b210 */ /* not lifted */ 9574 RECOMP_FLAGS_IN(); 9575 PUSH32(esp, eax); /* 0x470385D7: push eax */ 9576 ecx = esi; /* 0x470385D8: mov ecx, esi */ 9577 RECOMP_ICALL(0x4703B240u); /* 0x470385DA: call 0x4703b240 */ /* not lifted */ 9578 RECOMP_FLAGS_IN(); 9579 PUSH32(esp, eax); /* 0x470385DF: push eax */ 9580 ecx = esi; /* 0x470385E0: mov ecx, esi */ 9581 RECOMP_ICALL(0x4703B080u); /* 0x470385E2: call 0x4703b080 */ /* not lifted */ 9582 RECOMP_FLAGS_IN(); 9583 PUSH32(esp, eax); /* 0x470385E7: push eax */ 9584 PUSH32(esp, edi); /* 0x470385E8: push edi */ 9585 PUSH32(esp, 0xFFFFFFFFu); /* 0x470385E9: push -1 */ 9586 PUSH32(esp, 0x528u); /* 0x470385EB: push 0x528 */ 9587 PUSH32(esp, 0x47106DE4u); /* 0x470385F0: push 0x47106de4 */ 9588 ecx = esi; /* 0x470385F5: mov ecx, esi */ 9589 RECOMP_ICALL(0x4703A340u); /* 0x470385F7: call 0x4703a340 */ /* not lifted */ 9590 RECOMP_FLAGS_IN(); 9591 PUSH32(esp, 0x47107188u); /* 0x470385FC: push 0x47107188 */ 9592 PUSH32(esp, 0x80u); /* 0x47038601: push 0x80 */ 9593 PUSH32(esp, esi); /* 0x47038606: push esi */ 9594 RECOMP_ICALL(0x47039830u); /* 0x47038607: call 0x47039830 */ /* not lifted */ 9595 RECOMP_FLAGS_IN(); 9596 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 9597 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9598 esp = esp + 0xCu; /* 0x4703860C: add esp, 0xc */ 9599 _flag_k = FK_ADD; 9600 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 9601 eax = eax | 0xFFFFFFFFu; /* 0x4703860F: or eax, 0xffffffff */ 9602 _cf = 0; 9603 _flag_k = FK_TEST; 9604 RECOMP_BACKEDGE(); 9605 goto L_47038598; /* 0x47038612: jmp 0x47038598 */ 9606 { RECOMP_REGS_OUT(); return; } /* end of function */ 9607 RECOMP_REGS_OUT(); 9608 } 9609 9610 void sub_47038598(void) { 9611 int _fpu_cmp = 0; 9612 uint32_t _cf = 0; 9613 int _df = 1; 9614 uint32_t _flag_k = FK_NONE; 9615 uint32_t _flag_a = 0, _flag_b = 0; 9616 uint32_t _itail_tgt = 0; 9617 RECOMP_REGS_LOCALS 9618 RECOMP_ENTER(0x47038598u); 9619 9620 L_47038598: 9621 ecx = MEM32(esp + 0x18); /* 0x47038598: mov ecx, dword ptr [esp + 0x18] */ 9622 edi = POP32_VAL(esp); /* 0x4703859C: pop edi */ 9623 esi = POP32_VAL(esp); /* 0x4703859D: pop esi */ 9624 ebp = POP32_VAL(esp); /* 0x4703859E: pop ebp */ 9625 ebx = POP32_VAL(esp); /* 0x4703859F: pop ebx */ 9626 MEM32(FS_BASE + (0)) = ecx; /* 0x470385A0: mov dword ptr fs:[0], ecx */ 9627 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 9628 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9629 esp = esp + 0x14u; /* 0x470385A7: add esp, 0x14 */ 9630 _flag_k = FK_ADD; 9631 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470385AA: ret 8 */ 9632 RECOMP_REGS_OUT(); 9633 } 9634 9635 void sub_47038620(void) { 9636 int _fpu_cmp = 0; 9637 uint32_t _cf = 0; 9638 int _df = 1; 9639 uint32_t _flag_k = FK_NONE; 9640 uint32_t _flag_a = 0, _flag_b = 0; 9641 uint32_t _itail_tgt = 0; 9642 RECOMP_REGS_LOCALS 9643 RECOMP_ENTER(0x47038620u); 9644 9645 L_47038620: 9646 PUSH32(esp, ecx); /* 0x47038620: push ecx */ 9647 PUSH32(esp, ebx); /* 0x47038621: push ebx */ 9648 PUSH32(esp, ebp); /* 0x47038622: push ebp */ 9649 ebx = ecx; /* 0x47038623: mov ebx, ecx */ 9650 eax = MEM32(ebx + 0xC); /* 0x47038625: mov eax, dword ptr [ebx + 0xc] */ 9651 /* test eax, eax */ /* 0x47038628: test eax, eax */ 9652 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9653 _cf = 0; 9654 _flag_k = FK_TEST; 9655 PUSH32(esp, esi); /* 0x4703862A: push esi */ 9656 PUSH32(esp, edi); /* 0x4703862B: push edi */ 9657 if (TEST_NZ(_flag_a, _flag_b)) goto L_470386D6; /* 0x4703862C: jne 0x470386d6 */ 9658 L_47038632: 9659 edi = MEM32(0x470AC3C8); /* 0x47038632: mov edi, dword ptr [0x470ac3c8] */ 9660 RECOMP_ICALL(edi); /* 0x47038638: call edi */ 9661 RECOMP_FLAGS_IN(); 9662 ebp = MEM32(0x470AC150); /* 0x4703863A: mov ebp, dword ptr [0x470ac150] */ 9663 MEM32(eax) = 2; /* 0x47038640: mov dword ptr [eax], 2 */ 9664 eax = MEM32(ebx + 0x8); /* 0x47038646: mov eax, dword ptr [ebx + 8] */ 9665 /* test eax, eax */ /* 0x47038649: test eax, eax */ 9666 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9667 _cf = 0; 9668 _flag_k = FK_TEST; 9669 if (TEST_Z(_flag_a, _flag_b)) goto L_4703869E; /* 0x4703864B: je 0x4703869e */ 9670 L_4703864D: 9671 RECOMP_ICALL(ebp); /* 0x4703864D: call ebp */ 9672 RECOMP_FLAGS_IN(); 9673 ebx = eax; /* 0x4703864F: mov ebx, eax */ 9674 RECOMP_ICALL(edi); /* 0x47038651: call edi */ 9675 RECOMP_FLAGS_IN(); 9676 eax = MEM32(eax); /* 0x47038653: mov eax, dword ptr [eax] */ 9677 /* test eax, eax */ /* 0x47038655: test eax, eax */ 9678 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9679 _cf = 0; 9680 _flag_k = FK_TEST; 9681 if (TEST_Z(_flag_a, _flag_b)) goto L_4703865B; /* 0x47038657: je 0x4703865b */ 9682 L_47038659: 9683 ebx = eax; /* 0x47038659: mov ebx, eax */ 9684 L_4703865B: 9685 RECOMP_ICALL(0x47039020u); /* 0x4703865B: call 0x47039020 */ /* not lifted */ 9686 RECOMP_FLAGS_IN(); 9687 esi = eax; /* 0x47038660: mov esi, eax */ 9688 ecx = esi; /* 0x47038662: mov ecx, esi */ 9689 RECOMP_ICALL(0x4703B210u); /* 0x47038664: call 0x4703b210 */ /* not lifted */ 9690 RECOMP_FLAGS_IN(); 9691 PUSH32(esp, eax); /* 0x47038669: push eax */ 9692 ecx = esi; /* 0x4703866A: mov ecx, esi */ 9693 RECOMP_ICALL(0x4703B240u); /* 0x4703866C: call 0x4703b240 */ /* not lifted */ 9694 RECOMP_FLAGS_IN(); 9695 PUSH32(esp, eax); /* 0x47038671: push eax */ 9696 ecx = esi; /* 0x47038672: mov ecx, esi */ 9697 RECOMP_ICALL(0x4703B080u); /* 0x47038674: call 0x4703b080 */ /* not lifted */ 9698 RECOMP_FLAGS_IN(); 9699 PUSH32(esp, eax); /* 0x47038679: push eax */ 9700 PUSH32(esp, ebx); /* 0x4703867A: push ebx */ 9701 PUSH32(esp, 0); /* 0x4703867B: push 0 */ 9702 PUSH32(esp, 0x53Cu); /* 0x4703867D: push 0x53c */ 9703 PUSH32(esp, 0x47106DE4u); /* 0x47038682: push 0x47106de4 */ 9704 ecx = esi; /* 0x47038687: mov ecx, esi */ 9705 RECOMP_ICALL(0x4703A340u); /* 0x47038689: call 0x4703a340 */ /* not lifted */ 9706 RECOMP_FLAGS_IN(); 9707 PUSH32(esp, 0x471071F8u); /* 0x4703868E: push 0x471071f8 */ 9708 PUSH32(esp, 4); /* 0x47038693: push 4 */ 9709 PUSH32(esp, esi); /* 0x47038695: push esi */ 9710 RECOMP_ICALL(0x47039830u); /* 0x47038696: call 0x47039830 */ /* not lifted */ 9711 RECOMP_FLAGS_IN(); 9712 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 9713 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9714 esp = esp + 0xCu; /* 0x4703869B: add esp, 0xc */ 9715 _flag_k = FK_ADD; 9716 L_4703869E: 9717 RECOMP_ICALL(ebp); /* 0x4703869E: call ebp */ 9718 RECOMP_FLAGS_IN(); 9719 esi = eax; /* 0x470386A0: mov esi, eax */ 9720 RECOMP_ICALL(edi); /* 0x470386A2: call edi */ 9721 RECOMP_FLAGS_IN(); 9722 eax = MEM32(eax); /* 0x470386A4: mov eax, dword ptr [eax] */ 9723 /* test eax, eax */ /* 0x470386A6: test eax, eax */ 9724 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9725 _cf = 0; 9726 _flag_k = FK_TEST; 9727 if (TEST_NZ(_flag_a, _flag_b)) goto L_470386AC; /* 0x470386A8: jne 0x470386ac */ 9728 L_470386AA: 9729 eax = esi; /* 0x470386AA: mov eax, esi */ 9730 L_470386AC: 9731 PUSH32(esp, 0); /* 0x470386AC: push 0 */ 9732 PUSH32(esp, 0); /* 0x470386AE: push 0 */ 9733 PUSH32(esp, 1); /* 0x470386B0: push 1 */ 9734 PUSH32(esp, eax); /* 0x470386B2: push eax */ 9735 PUSH32(esp, 0xFFFFFFFFu); /* 0x470386B3: push -1 */ 9736 PUSH32(esp, 0x53Du); /* 0x470386B5: push 0x53d */ 9737 PUSH32(esp, 0x47106DE4u); /* 0x470386BA: push 0x47106de4 */ 9738 RECOMP_ICALL(0x47039020u); /* 0x470386BF: call 0x47039020 */ /* not lifted */ 9739 RECOMP_FLAGS_IN(); 9740 ecx = eax; /* 0x470386C4: mov ecx, eax */ 9741 RECOMP_ICALL(0x4703A340u); /* 0x470386C6: call 0x4703a340 */ /* not lifted */ 9742 RECOMP_FLAGS_IN(); 9743 edi = POP32_VAL(esp); /* 0x470386CB: pop edi */ 9744 esi = POP32_VAL(esp); /* 0x470386CC: pop esi */ 9745 ebp = POP32_VAL(esp); /* 0x470386CD: pop ebp */ 9746 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 9747 eax = eax | 0xFFFFFFFFu; /* 0x470386CE: or eax, 0xffffffff */ 9748 _cf = 0; 9749 _flag_k = FK_TEST; 9750 ebx = POP32_VAL(esp); /* 0x470386D1: pop ebx */ 9751 ecx = POP32_VAL(esp); /* 0x470386D2: pop ecx */ 9752 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470386D3: ret 4 */ 9753 L_470386D6: 9754 eax = MEM32(ebx + 0x30); /* 0x470386D6: mov eax, dword ptr [ebx + 0x30] */ 9755 esi = ebx + 0x10; /* 0x470386D9: lea esi, [ebx + 0x10] */ 9756 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9757 ebp = 0; /* 0x470386DC: xor ebp, ebp */ 9758 _cf = 0; 9759 _flag_k = FK_TEST; 9760 /* cmp eax, ebp */ /* 0x470386DE: cmp eax, ebp */ 9761 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 9762 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9763 _flag_k = FK_CMP; 9764 if (CMP_NE(_flag_a, _flag_b)) goto L_470386E9; /* 0x470386E0: jne 0x470386e9 */ 9765 L_470386E2: 9766 ecx = esi; /* 0x470386E2: mov ecx, esi */ 9767 RECOMP_ICALL(0x47038D20u); /* 0x470386E4: call 0x47038d20 */ /* not lifted */ 9768 RECOMP_FLAGS_IN(); 9769 L_470386E9: 9770 eax = MEM32(esi + 0x24); /* 0x470386E9: mov eax, dword ptr [esi + 0x24] */ 9771 ecx = esp + 0x10; /* 0x470386EC: lea ecx, [esp + 0x10] */ 9772 PUSH32(esp, ecx); /* 0x470386F0: push ecx */ 9773 PUSH32(esp, eax); /* 0x470386F1: push eax */ 9774 MEM32(esp + 0x18) = ebp; /* 0x470386F2: mov dword ptr [esp + 0x18], ebp */ 9775 RECOMP_ICALL(0x47004600u); /* 0x470386F6: call 0x47004600 */ /* not lifted */ 9776 RECOMP_FLAGS_IN(); 9777 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9778 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9779 esp = esp + 8; /* 0x470386FB: add esp, 8 */ 9780 _flag_k = FK_ADD; 9781 /* cmp eax, 0xFFFFFFFFu */ /* 0x470386FE: cmp eax, -1 */ 9782 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 9783 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9784 _flag_k = FK_CMP; 9785 if (CMP_NE(_flag_a, _flag_b)) goto L_47038707; /* 0x47038701: jne 0x47038707 */ 9786 L_47038703: 9787 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9788 eax = 0; /* 0x47038703: xor eax, eax */ 9789 _cf = 0; 9790 _flag_k = FK_TEST; 9791 goto L_47038748; /* 0x47038705: jmp 0x47038748 */ 9792 L_47038707: 9793 /* cmp MEM32(esp + 0x10), ebp */ /* 0x47038707: cmp dword ptr [esp + 0x10], ebp */ 9794 _flag_a = (uint32_t)(MEM32(esp + 0x10)); _flag_b = (uint32_t)(ebp); 9795 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9796 _flag_k = FK_CMP; 9797 if (CMP_NE(_flag_a, _flag_b)) goto L_47038744; /* 0x4703870B: jne 0x47038744 */ 9798 L_4703870D: 9799 edx = MEM32(esi); /* 0x4703870D: mov edx, dword ptr [esi] */ 9800 ecx = esi; /* 0x4703870F: mov ecx, esi */ 9801 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47038711: call dword ptr [edx + 4] */ 9802 RECOMP_FLAGS_IN(); 9803 /* cmp eax, ebp */ /* 0x47038714: cmp eax, ebp */ 9804 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 9805 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9806 _flag_k = FK_CMP; 9807 MEM32(esp + 0x10) = eax; /* 0x47038716: mov dword ptr [esp + 0x10], eax */ 9808 if (CMP_NE(_flag_a, _flag_b)) goto L_47038720; /* 0x4703871A: jne 0x47038720 */ 9809 L_4703871C: 9810 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9811 eax = 0; /* 0x4703871C: xor eax, eax */ 9812 _cf = 0; 9813 _flag_k = FK_TEST; 9814 goto L_47038748; /* 0x4703871E: jmp 0x47038748 */ 9815 L_47038720: 9816 ecx = MEM32(esi + 0x24); /* 0x47038720: mov ecx, dword ptr [esi + 0x24] */ 9817 PUSH32(esp, eax); /* 0x47038723: push eax */ 9818 PUSH32(esp, ecx); /* 0x47038724: push ecx */ 9819 RECOMP_ICALL(0x47056110u); /* 0x47038725: call 0x47056110 */ /* not lifted */ 9820 RECOMP_FLAGS_IN(); 9821 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9822 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9823 esp = esp + 8; /* 0x4703872A: add esp, 8 */ 9824 _flag_k = FK_ADD; 9825 /* test eax, eax */ /* 0x4703872D: test eax, eax */ 9826 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9827 _cf = 0; 9828 _flag_k = FK_TEST; 9829 if (TEST_Z(_flag_a, _flag_b)) goto L_47038744; /* 0x4703872F: je 0x47038744 */ 9830 L_47038731: 9831 ecx = MEM32(esp + 0x10); /* 0x47038731: mov ecx, dword ptr [esp + 0x10] */ 9832 /* cmp ecx, ebp */ /* 0x47038735: cmp ecx, ebp */ 9833 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebp); 9834 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9835 _flag_k = FK_CMP; 9836 if (CMP_EQ(_flag_a, _flag_b)) goto L_47038740; /* 0x47038737: je 0x47038740 */ 9837 L_47038739: 9838 PUSH32(esp, 1); /* 0x47038739: push 1 */ 9839 RECOMP_ICALL(0x47038DB0u); /* 0x4703873B: call 0x47038db0 */ /* not lifted */ 9840 RECOMP_FLAGS_IN(); 9841 L_47038740: 9842 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9843 eax = 0; /* 0x47038740: xor eax, eax */ 9844 _cf = 0; 9845 _flag_k = FK_TEST; 9846 goto L_47038748; /* 0x47038742: jmp 0x47038748 */ 9847 L_47038744: 9848 eax = MEM32(esp + 0x10); /* 0x47038744: mov eax, dword ptr [esp + 0x10] */ 9849 L_47038748: 9850 ecx = MEM32(ebx + 0xC); /* 0x47038748: mov ecx, dword ptr [ebx + 0xc] */ 9851 edx = MEM32(ecx); /* 0x4703874B: mov edx, dword ptr [ecx] */ 9852 PUSH32(esp, eax); /* 0x4703874D: push eax */ 9853 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x4703874E: call dword ptr [edx + 0x10] */ 9854 RECOMP_FLAGS_IN(); 9855 /* test eax, eax */ /* 0x47038751: test eax, eax */ 9856 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9857 _cf = 0; 9858 _flag_k = FK_TEST; 9859 if (TEST_Z(_flag_a, _flag_b)) goto L_4703883D; /* 0x47038753: je 0x4703883d */ 9860 L_47038759: 9861 /* cmp MEM32(esi + 0x20), ebp */ /* 0x47038759: cmp dword ptr [esi + 0x20], ebp */ 9862 _flag_a = (uint32_t)(MEM32(esi + 0x20)); _flag_b = (uint32_t)(ebp); 9863 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9864 _flag_k = FK_CMP; 9865 if (CMP_NE(_flag_a, _flag_b)) goto L_47038765; /* 0x4703875C: jne 0x47038765 */ 9866 L_4703875E: 9867 ecx = esi; /* 0x4703875E: mov ecx, esi */ 9868 RECOMP_ICALL(0x47038D20u); /* 0x47038760: call 0x47038d20 */ /* not lifted */ 9869 RECOMP_FLAGS_IN(); 9870 L_47038765: 9871 eax = MEM32(esi + 0x24); /* 0x47038765: mov eax, dword ptr [esi + 0x24] */ 9872 ecx = esp + 0x10; /* 0x47038768: lea ecx, [esp + 0x10] */ 9873 PUSH32(esp, ecx); /* 0x4703876C: push ecx */ 9874 PUSH32(esp, eax); /* 0x4703876D: push eax */ 9875 MEM32(esp + 0x18) = ebp; /* 0x4703876E: mov dword ptr [esp + 0x18], ebp */ 9876 RECOMP_ICALL(0x47004600u); /* 0x47038772: call 0x47004600 */ /* not lifted */ 9877 RECOMP_FLAGS_IN(); 9878 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9879 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9880 esp = esp + 8; /* 0x47038777: add esp, 8 */ 9881 _flag_k = FK_ADD; 9882 /* cmp eax, 0xFFFFFFFFu */ /* 0x4703877A: cmp eax, -1 */ 9883 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 9884 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9885 _flag_k = FK_CMP; 9886 if (CMP_NE(_flag_a, _flag_b)) goto L_47038783; /* 0x4703877D: jne 0x47038783 */ 9887 L_4703877F: 9888 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9889 eax = 0; /* 0x4703877F: xor eax, eax */ 9890 _cf = 0; 9891 _flag_k = FK_TEST; 9892 goto L_470387C4; /* 0x47038781: jmp 0x470387c4 */ 9893 L_47038783: 9894 /* cmp MEM32(esp + 0x10), ebp */ /* 0x47038783: cmp dword ptr [esp + 0x10], ebp */ 9895 _flag_a = (uint32_t)(MEM32(esp + 0x10)); _flag_b = (uint32_t)(ebp); 9896 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9897 _flag_k = FK_CMP; 9898 if (CMP_NE(_flag_a, _flag_b)) goto L_470387C0; /* 0x47038787: jne 0x470387c0 */ 9899 L_47038789: 9900 edx = MEM32(esi); /* 0x47038789: mov edx, dword ptr [esi] */ 9901 ecx = esi; /* 0x4703878B: mov ecx, esi */ 9902 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x4703878D: call dword ptr [edx + 4] */ 9903 RECOMP_FLAGS_IN(); 9904 /* cmp eax, ebp */ /* 0x47038790: cmp eax, ebp */ 9905 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 9906 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9907 _flag_k = FK_CMP; 9908 MEM32(esp + 0x10) = eax; /* 0x47038792: mov dword ptr [esp + 0x10], eax */ 9909 if (CMP_NE(_flag_a, _flag_b)) goto L_4703879C; /* 0x47038796: jne 0x4703879c */ 9910 L_47038798: 9911 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9912 eax = 0; /* 0x47038798: xor eax, eax */ 9913 _cf = 0; 9914 _flag_k = FK_TEST; 9915 goto L_470387C4; /* 0x4703879A: jmp 0x470387c4 */ 9916 L_4703879C: 9917 esi = MEM32(esi + 0x24); /* 0x4703879C: mov esi, dword ptr [esi + 0x24] */ 9918 PUSH32(esp, eax); /* 0x4703879F: push eax */ 9919 PUSH32(esp, esi); /* 0x470387A0: push esi */ 9920 RECOMP_ICALL(0x47056110u); /* 0x470387A1: call 0x47056110 */ /* not lifted */ 9921 RECOMP_FLAGS_IN(); 9922 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9923 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9924 esp = esp + 8; /* 0x470387A6: add esp, 8 */ 9925 _flag_k = FK_ADD; 9926 /* test eax, eax */ /* 0x470387A9: test eax, eax */ 9927 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9928 _cf = 0; 9929 _flag_k = FK_TEST; 9930 if (TEST_Z(_flag_a, _flag_b)) goto L_470387C0; /* 0x470387AB: je 0x470387c0 */ 9931 L_470387AD: 9932 ecx = MEM32(esp + 0x10); /* 0x470387AD: mov ecx, dword ptr [esp + 0x10] */ 9933 /* cmp ecx, ebp */ /* 0x470387B1: cmp ecx, ebp */ 9934 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebp); 9935 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9936 _flag_k = FK_CMP; 9937 if (CMP_EQ(_flag_a, _flag_b)) goto L_470387BC; /* 0x470387B3: je 0x470387bc */ 9938 L_470387B5: 9939 PUSH32(esp, 1); /* 0x470387B5: push 1 */ 9940 RECOMP_ICALL(0x47038DB0u); /* 0x470387B7: call 0x47038db0 */ /* not lifted */ 9941 RECOMP_FLAGS_IN(); 9942 L_470387BC: 9943 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9944 eax = 0; /* 0x470387BC: xor eax, eax */ 9945 _cf = 0; 9946 _flag_k = FK_TEST; 9947 goto L_470387C4; /* 0x470387BE: jmp 0x470387c4 */ 9948 L_470387C0: 9949 eax = MEM32(esp + 0x10); /* 0x470387C0: mov eax, dword ptr [esp + 0x10] */ 9950 L_470387C4: 9951 ecx = MEM32(ebx + 0xC); /* 0x470387C4: mov ecx, dword ptr [ebx + 0xc] */ 9952 PUSH32(esp, eax); /* 0x470387C7: push eax */ 9953 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu); 9954 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9955 ecx = ecx + 0xCu; /* 0x470387C8: add ecx, 0xc */ 9956 _flag_k = FK_ADD; 9957 RECOMP_ICALL(0x47035B00u); /* 0x470387CB: call 0x47035b00 */ /* not lifted */ 9958 RECOMP_FLAGS_IN(); 9959 /* cmp MEM32(ebx + 0x8), ebp */ /* 0x470387D0: cmp dword ptr [ebx + 8], ebp */ 9960 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(ebp); 9961 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9962 _flag_k = FK_CMP; 9963 if (CMP_EQ(_flag_a, _flag_b)) goto L_47038832; /* 0x470387D3: je 0x47038832 */ 9964 L_470387D5: 9965 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470387D5: call dword ptr [0x470ac150] */ 9966 RECOMP_FLAGS_IN(); 9967 edi = eax; /* 0x470387DB: mov edi, eax */ 9968 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470387DD: call dword ptr [0x470ac3c8] */ 9969 RECOMP_FLAGS_IN(); 9970 eax = MEM32(eax); /* 0x470387E3: mov eax, dword ptr [eax] */ 9971 /* cmp eax, ebp */ /* 0x470387E5: cmp eax, ebp */ 9972 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 9973 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9974 _flag_k = FK_CMP; 9975 if (CMP_EQ(_flag_a, _flag_b)) goto L_470387EB; /* 0x470387E7: je 0x470387eb */ 9976 L_470387E9: 9977 edi = eax; /* 0x470387E9: mov edi, eax */ 9978 L_470387EB: 9979 RECOMP_ICALL(0x47039020u); /* 0x470387EB: call 0x47039020 */ /* not lifted */ 9980 RECOMP_FLAGS_IN(); 9981 esi = eax; /* 0x470387F0: mov esi, eax */ 9982 ecx = esi; /* 0x470387F2: mov ecx, esi */ 9983 RECOMP_ICALL(0x4703B210u); /* 0x470387F4: call 0x4703b210 */ /* not lifted */ 9984 RECOMP_FLAGS_IN(); 9985 PUSH32(esp, eax); /* 0x470387F9: push eax */ 9986 ecx = esi; /* 0x470387FA: mov ecx, esi */ 9987 RECOMP_ICALL(0x4703B240u); /* 0x470387FC: call 0x4703b240 */ /* not lifted */ 9988 RECOMP_FLAGS_IN(); 9989 PUSH32(esp, eax); /* 0x47038801: push eax */ 9990 ecx = esi; /* 0x47038802: mov ecx, esi */ 9991 RECOMP_ICALL(0x4703B080u); /* 0x47038804: call 0x4703b080 */ /* not lifted */ 9992 RECOMP_FLAGS_IN(); 9993 PUSH32(esp, eax); /* 0x47038809: push eax */ 9994 PUSH32(esp, edi); /* 0x4703880A: push edi */ 9995 PUSH32(esp, ebp); /* 0x4703880B: push ebp */ 9996 PUSH32(esp, 0x545u); /* 0x4703880C: push 0x545 */ 9997 PUSH32(esp, 0x47106DE4u); /* 0x47038811: push 0x47106de4 */ 9998 ecx = esi; /* 0x47038816: mov ecx, esi */ 9999 RECOMP_ICALL(0x4703A340u); /* 0x47038818: call 0x4703a340 */ /* not lifted */ 10000 RECOMP_FLAGS_IN(); 10001 PUSH32(esp, 0x471071E8u); /* 0x4703881D: push 0x471071e8 */ 10002 PUSH32(esp, 0x471071DCu); /* 0x47038822: push 0x471071dc */ 10003 PUSH32(esp, 4); /* 0x47038827: push 4 */ 10004 PUSH32(esp, esi); /* 0x47038829: push esi */ 10005 RECOMP_ICALL(0x47039830u); /* 0x4703882A: call 0x47039830 */ /* not lifted */ 10006 RECOMP_FLAGS_IN(); 10007 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 10008 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10009 esp = esp + 0x10u; /* 0x4703882F: add esp, 0x10 */ 10010 _flag_k = FK_ADD; 10011 L_47038832: 10012 edi = POP32_VAL(esp); /* 0x47038832: pop edi */ 10013 esi = POP32_VAL(esp); /* 0x47038833: pop esi */ 10014 ebp = POP32_VAL(esp); /* 0x47038834: pop ebp */ 10015 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 10016 eax = eax | 0xFFFFFFFFu; /* 0x47038835: or eax, 0xffffffff */ 10017 _cf = 0; 10018 _flag_k = FK_TEST; 10019 ebx = POP32_VAL(esp); /* 0x47038838: pop ebx */ 10020 ecx = POP32_VAL(esp); /* 0x47038839: pop ecx */ 10021 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703883A: ret 4 */ 10022 L_4703883D: 10023 /* cmp MEM32(ebx + 0x8), ebp */ /* 0x4703883D: cmp dword ptr [ebx + 8], ebp */ 10024 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(ebp); 10025 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10026 _flag_k = FK_CMP; 10027 if (CMP_EQ(_flag_a, _flag_b)) goto L_470388BC; /* 0x47038840: je 0x470388bc */ 10028 L_47038842: 10029 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47038842: call dword ptr [0x470ac150] */ 10030 RECOMP_FLAGS_IN(); 10031 edi = eax; /* 0x47038848: mov edi, eax */ 10032 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4703884A: call dword ptr [0x470ac3c8] */ 10033 RECOMP_FLAGS_IN(); 10034 eax = MEM32(eax); /* 0x47038850: mov eax, dword ptr [eax] */ 10035 /* cmp eax, ebp */ /* 0x47038852: cmp eax, ebp */ 10036 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 10037 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10038 _flag_k = FK_CMP; 10039 if (CMP_EQ(_flag_a, _flag_b)) goto L_47038858; /* 0x47038854: je 0x47038858 */ 10040 L_47038856: 10041 edi = eax; /* 0x47038856: mov edi, eax */ 10042 L_47038858: 10043 RECOMP_ICALL(0x47039020u); /* 0x47038858: call 0x47039020 */ /* not lifted */ 10044 RECOMP_FLAGS_IN(); 10045 esi = eax; /* 0x4703885D: mov esi, eax */ 10046 ecx = esi; /* 0x4703885F: mov ecx, esi */ 10047 RECOMP_ICALL(0x4703B210u); /* 0x47038861: call 0x4703b210 */ /* not lifted */ 10048 RECOMP_FLAGS_IN(); 10049 PUSH32(esp, eax); /* 0x47038866: push eax */ 10050 ecx = esi; /* 0x47038867: mov ecx, esi */ 10051 RECOMP_ICALL(0x4703B240u); /* 0x47038869: call 0x4703b240 */ /* not lifted */ 10052 RECOMP_FLAGS_IN(); 10053 PUSH32(esp, eax); /* 0x4703886E: push eax */ 10054 ecx = esi; /* 0x4703886F: mov ecx, esi */ 10055 RECOMP_ICALL(0x4703B080u); /* 0x47038871: call 0x4703b080 */ /* not lifted */ 10056 RECOMP_FLAGS_IN(); 10057 PUSH32(esp, eax); /* 0x47038876: push eax */ 10058 PUSH32(esp, edi); /* 0x47038877: push edi */ 10059 PUSH32(esp, ebp); /* 0x47038878: push ebp */ 10060 PUSH32(esp, 0x54Du); /* 0x47038879: push 0x54d */ 10061 PUSH32(esp, 0x47106DE4u); /* 0x4703887E: push 0x47106de4 */ 10062 ecx = esi; /* 0x47038883: mov ecx, esi */ 10063 RECOMP_ICALL(0x4703A340u); /* 0x47038885: call 0x4703a340 */ /* not lifted */ 10064 RECOMP_FLAGS_IN(); 10065 eax = MEM32(ebx + 0xC); /* 0x4703888A: mov eax, dword ptr [ebx + 0xc] */ 10066 ecx = MEM32(eax + 0xC); /* 0x4703888D: mov ecx, dword ptr [eax + 0xc] */ 10067 /* cmp ecx, ebp */ /* 0x47038890: cmp ecx, ebp */ 10068 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebp); 10069 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10070 _flag_k = FK_CMP; 10071 if (CMP_EQ(_flag_a, _flag_b)) goto L_47038896; /* 0x47038892: je 0x47038896 */ 10072 L_47038894: 10073 if (CMP_NE(_flag_a, _flag_b)) goto L_4703889D; /* 0x47038894: jne 0x4703889d */ 10074 L_47038896: 10075 eax = 0x47106D58u; /* 0x47038896: mov eax, 0x47106d58 */ 10076 goto L_470388A3; /* 0x4703889B: jmp 0x470388a3 */ 10077 L_4703889D: 10078 eax = MEM32(eax + 0xC); /* 0x4703889D: mov eax, dword ptr [eax + 0xc] */ 10079 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x60u); 10080 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10081 eax = eax + 0x60u; /* 0x470388A0: add eax, 0x60 */ 10082 _flag_k = FK_ADD; 10083 L_470388A3: 10084 PUSH32(esp, eax); /* 0x470388A3: push eax */ 10085 eax = MEM32(ebx); /* 0x470388A4: mov eax, dword ptr [ebx] */ 10086 ecx = ebx; /* 0x470388A6: mov ecx, ebx */ 10087 RECOMP_ICALL(MEM32(eax + 0x34)); /* 0x470388A8: call dword ptr [eax + 0x34] */ 10088 RECOMP_FLAGS_IN(); 10089 PUSH32(esp, eax); /* 0x470388AB: push eax */ 10090 PUSH32(esp, 0x471071BCu); /* 0x470388AC: push 0x471071bc */ 10091 PUSH32(esp, 4); /* 0x470388B1: push 4 */ 10092 PUSH32(esp, esi); /* 0x470388B3: push esi */ 10093 RECOMP_ICALL(0x47039830u); /* 0x470388B4: call 0x47039830 */ /* not lifted */ 10094 RECOMP_FLAGS_IN(); 10095 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 10096 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10097 esp = esp + 0x14u; /* 0x470388B9: add esp, 0x14 */ 10098 _flag_k = FK_ADD; 10099 L_470388BC: 10100 edi = POP32_VAL(esp); /* 0x470388BC: pop edi */ 10101 esi = POP32_VAL(esp); /* 0x470388BD: pop esi */ 10102 ebp = POP32_VAL(esp); /* 0x470388BE: pop ebp */ 10103 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10104 eax = 0; /* 0x470388BF: xor eax, eax */ 10105 _cf = 0; 10106 _flag_k = FK_TEST; 10107 ebx = POP32_VAL(esp); /* 0x470388C1: pop ebx */ 10108 ecx = POP32_VAL(esp); /* 0x470388C2: pop ecx */ 10109 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470388C3: ret 4 */ 10110 RECOMP_REGS_OUT(); 10111 } 10112 10113 void sub_470388D0(void) { 10114 int _fpu_cmp = 0; 10115 uint32_t _cf = 0; 10116 int _df = 1; 10117 uint32_t _flag_k = FK_NONE; 10118 uint32_t _flag_a = 0, _flag_b = 0; 10119 uint32_t _itail_tgt = 0; 10120 RECOMP_REGS_LOCALS 10121 RECOMP_ENTER(0x470388D0u); 10122 10123 L_470388D0: 10124 PUSH32(esp, esi); /* 0x470388D0: push esi */ 10125 esi = MEM32(esp + 0x8); /* 0x470388D1: mov esi, dword ptr [esp + 8] */ 10126 eax = MEM32(esi + 0x28); /* 0x470388D5: mov eax, dword ptr [esi + 0x28] */ 10127 PUSH32(esp, eax); /* 0x470388D8: push eax */ 10128 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x470388D9: call dword ptr [0x470ac180] */ 10129 RECOMP_FLAGS_IN(); 10130 ecx = esi; /* 0x470388DF: mov ecx, esi */ 10131 RECOMP_ICALL(0x47087530u); /* 0x470388E1: call 0x47087530 */ /* not lifted */ 10132 RECOMP_FLAGS_IN(); 10133 ecx = MEM32(esi + 0x28); /* 0x470388E6: mov ecx, dword ptr [esi + 0x28] */ 10134 PUSH32(esp, ecx); /* 0x470388E9: push ecx */ 10135 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470388EA: call dword ptr [0x470ac190] */ 10136 RECOMP_FLAGS_IN(); 10137 esi = POP32_VAL(esp); /* 0x470388F0: pop esi */ 10138 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470388F1: ret 4 */ 10139 RECOMP_REGS_OUT(); 10140 } 10141 10142 void sub_47038900(void) { 10143 int _fpu_cmp = 0; 10144 uint32_t _cf = 0; 10145 int _df = 1; 10146 uint32_t _flag_k = FK_NONE; 10147 uint32_t _flag_a = 0, _flag_b = 0; 10148 uint32_t _itail_tgt = 0; 10149 RECOMP_REGS_LOCALS 10150 RECOMP_ENTER(0x47038900u); 10151 10152 L_47038900: 10153 edx = MEM32(esp + 0x4); /* 0x47038900: mov edx, dword ptr [esp + 4] */ 10154 /* test edx, edx */ /* 0x47038904: test edx, edx */ 10155 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 10156 _cf = 0; 10157 _flag_k = FK_TEST; 10158 PUSH32(esp, esi); /* 0x47038906: push esi */ 10159 esi = ecx; /* 0x47038907: mov esi, ecx */ 10160 MEM32(esi) = 0x470AD394u; /* 0x47038909: mov dword ptr [esi], 0x470ad394 */ 10161 if (TEST_NZ(_flag_a, _flag_b)) goto L_47038916; /* 0x4703890F: jne 0x47038916 */ 10162 L_47038911: 10163 edx = 0x47106D1Cu; /* 0x47038911: mov edx, 0x47106d1c */ 10164 L_47038916: 10165 PUSH32(esp, edi); /* 0x47038916: push edi */ 10166 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 10167 ecx = ecx | 0xFFFFFFFFu; /* 0x47038917: or ecx, 0xffffffff */ 10168 _cf = 0; 10169 _flag_k = FK_TEST; 10170 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10171 eax = 0; /* 0x4703891A: xor eax, eax */ 10172 _cf = 0; 10173 _flag_k = FK_TEST; 10174 edi = edx; /* 0x4703891C: mov edi, edx */ 10175 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; } /* 0x4703891E: repne scasb al, byte ptr es:[edi] */ 10176 ecx = ~ecx; /* 0x47038920: not ecx */ 10177 /* cmp ecx, 0x28u */ /* 0x47038922: cmp ecx, 0x28 */ 10178 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x28u); 10179 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10180 _flag_k = FK_CMP; 10181 edi = POP32_VAL(esp); /* 0x47038925: pop edi */ 10182 if (CMP_L(_flag_a, _flag_b)) goto L_4703892D; /* 0x47038926: jl 0x4703892d */ 10183 L_47038928: 10184 ecx = 0x27u; /* 0x47038928: mov ecx, 0x27 */ 10185 L_4703892D: 10186 PUSH32(esp, ecx); /* 0x4703892D: push ecx */ 10187 PUSH32(esp, edx); /* 0x4703892E: push edx */ 10188 eax = esi + 0x4; /* 0x4703892F: lea eax, [esi + 4] */ 10189 PUSH32(esp, eax); /* 0x47038932: push eax */ 10190 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x47038933: call dword ptr [0x470ac22c] */ 10191 RECOMP_FLAGS_IN(); 10192 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 10193 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10194 esp = esp + 0xCu; /* 0x47038939: add esp, 0xc */ 10195 _flag_k = FK_ADD; 10196 eax = esi; /* 0x4703893C: mov eax, esi */ 10197 esi = POP32_VAL(esp); /* 0x4703893E: pop esi */ 10198 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703893F: ret 4 */ 10199 RECOMP_REGS_OUT(); 10200 } 10201 10202 void sub_47038950(void) { 10203 int _fpu_cmp = 0; 10204 uint32_t _cf = 0; 10205 int _df = 1; 10206 uint32_t _flag_k = FK_NONE; 10207 uint32_t _flag_a = 0, _flag_b = 0; 10208 uint32_t _itail_tgt = 0; 10209 RECOMP_REGS_LOCALS 10210 RECOMP_ENTER(0x47038950u); 10211 10212 L_47038950: 10213 PUSH32(esp, ebx); /* 0x47038950: push ebx */ 10214 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47038951: mov bl, byte ptr [esp + 8] */ 10215 /* test LO8(ebx), 2 */ /* 0x47038955: test bl, 2 */ 10216 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 10217 _cf = 0; 10218 _flag_k = FK_NARROW(FK_TEST, 24); 10219 PUSH32(esp, esi); /* 0x47038958: push esi */ 10220 esi = ecx; /* 0x47038959: mov esi, ecx */ 10221 if (TEST_Z(_flag_a, _flag_b)) goto L_47038988; /* 0x4703895B: je 0x47038988 */ 10222 L_4703895D: 10223 eax = MEM32(esi + (-0x4)); /* 0x4703895D: mov eax, dword ptr [esi - 4] */ 10224 PUSH32(esp, edi); /* 0x47038960: push edi */ 10225 PUSH32(esp, 0x47038A00u); /* 0x47038961: push 0x47038a00 */ 10226 edi = esi + (-0x4); /* 0x47038966: lea edi, [esi - 4] */ 10227 PUSH32(esp, eax); /* 0x47038969: push eax */ 10228 PUSH32(esp, 0x2Cu); /* 0x4703896A: push 0x2c */ 10229 PUSH32(esp, esi); /* 0x4703896C: push esi */ 10230 RECOMP_ICALL(0x470A32EBu); /* 0x4703896D: call 0x470a32eb */ /* not lifted */ 10231 RECOMP_FLAGS_IN(); 10232 /* test LO8(ebx), 1 */ /* 0x47038972: test bl, 1 */ 10233 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 10234 _cf = 0; 10235 _flag_k = FK_NARROW(FK_TEST, 24); 10236 if (TEST_Z(_flag_a, _flag_b)) goto L_47038980; /* 0x47038975: je 0x47038980 */ 10237 L_47038977: 10238 PUSH32(esp, edi); /* 0x47038977: push edi */ 10239 RECOMP_ICALL(0x470A32A2u); /* 0x47038978: call 0x470a32a2 */ /* not lifted */ 10240 RECOMP_FLAGS_IN(); 10241 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10242 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10243 esp = esp + 4; /* 0x4703897D: add esp, 4 */ 10244 _flag_k = FK_ADD; 10245 L_47038980: 10246 eax = edi; /* 0x47038980: mov eax, edi */ 10247 edi = POP32_VAL(esp); /* 0x47038982: pop edi */ 10248 esi = POP32_VAL(esp); /* 0x47038983: pop esi */ 10249 ebx = POP32_VAL(esp); /* 0x47038984: pop ebx */ 10250 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47038985: ret 4 */ 10251 L_47038988: 10252 /* test LO8(ebx), 1 */ /* 0x47038988: test bl, 1 */ 10253 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 10254 _cf = 0; 10255 _flag_k = FK_NARROW(FK_TEST, 24); 10256 MEM32(esi) = 0x470AD394u; /* 0x4703898B: mov dword ptr [esi], 0x470ad394 */ 10257 if (TEST_Z(_flag_a, _flag_b)) goto L_4703899C; /* 0x47038991: je 0x4703899c */ 10258 L_47038993: 10259 PUSH32(esp, esi); /* 0x47038993: push esi */ 10260 RECOMP_ICALL(0x470A32A2u); /* 0x47038994: call 0x470a32a2 */ /* not lifted */ 10261 RECOMP_FLAGS_IN(); 10262 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10263 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10264 esp = esp + 4; /* 0x47038999: add esp, 4 */ 10265 _flag_k = FK_ADD; 10266 L_4703899C: 10267 eax = esi; /* 0x4703899C: mov eax, esi */ 10268 esi = POP32_VAL(esp); /* 0x4703899E: pop esi */ 10269 ebx = POP32_VAL(esp); /* 0x4703899F: pop ebx */ 10270 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470389A0: ret 4 */ 10271 RECOMP_REGS_OUT(); 10272 } 10273 10274 void sub_470389B0(void) { 10275 int _fpu_cmp = 0; 10276 uint32_t _cf = 0; 10277 int _df = 1; 10278 uint32_t _flag_k = FK_NONE; 10279 uint32_t _flag_a = 0, _flag_b = 0; 10280 uint32_t _itail_tgt = 0; 10281 RECOMP_REGS_LOCALS 10282 RECOMP_ENTER(0x470389B0u); 10283 10284 L_470389B0: 10285 eax = MEM32(esp + 0x4); /* 0x470389B0: mov eax, dword ptr [esp + 4] */ 10286 PUSH32(esp, esi); /* 0x470389B4: push esi */ 10287 edx = eax + 0x4; /* 0x470389B5: lea edx, [eax + 4] */ 10288 /* test edx, edx */ /* 0x470389B8: test edx, edx */ 10289 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 10290 _cf = 0; 10291 _flag_k = FK_TEST; 10292 esi = ecx; /* 0x470389BA: mov esi, ecx */ 10293 MEM32(esi) = 0x470AD394u; /* 0x470389BC: mov dword ptr [esi], 0x470ad394 */ 10294 if (TEST_NZ(_flag_a, _flag_b)) goto L_470389C9; /* 0x470389C2: jne 0x470389c9 */ 10295 L_470389C4: 10296 edx = 0x47106D1Cu; /* 0x470389C4: mov edx, 0x47106d1c */ 10297 L_470389C9: 10298 PUSH32(esp, edi); /* 0x470389C9: push edi */ 10299 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 10300 ecx = ecx | 0xFFFFFFFFu; /* 0x470389CA: or ecx, 0xffffffff */ 10301 _cf = 0; 10302 _flag_k = FK_TEST; 10303 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10304 eax = 0; /* 0x470389CD: xor eax, eax */ 10305 _cf = 0; 10306 _flag_k = FK_TEST; 10307 edi = edx; /* 0x470389CF: mov edi, edx */ 10308 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; } /* 0x470389D1: repne scasb al, byte ptr es:[edi] */ 10309 ecx = ~ecx; /* 0x470389D3: not ecx */ 10310 /* cmp ecx, 0x28u */ /* 0x470389D5: cmp ecx, 0x28 */ 10311 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x28u); 10312 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10313 _flag_k = FK_CMP; 10314 edi = POP32_VAL(esp); /* 0x470389D8: pop edi */ 10315 if (CMP_L(_flag_a, _flag_b)) goto L_470389E0; /* 0x470389D9: jl 0x470389e0 */ 10316 L_470389DB: 10317 ecx = 0x27u; /* 0x470389DB: mov ecx, 0x27 */ 10318 L_470389E0: 10319 PUSH32(esp, ecx); /* 0x470389E0: push ecx */ 10320 PUSH32(esp, edx); /* 0x470389E1: push edx */ 10321 ecx = esi + 0x4; /* 0x470389E2: lea ecx, [esi + 4] */ 10322 PUSH32(esp, ecx); /* 0x470389E5: push ecx */ 10323 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x470389E6: call dword ptr [0x470ac22c] */ 10324 RECOMP_FLAGS_IN(); 10325 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 10326 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10327 esp = esp + 0xCu; /* 0x470389EC: add esp, 0xc */ 10328 _flag_k = FK_ADD; 10329 eax = esi; /* 0x470389EF: mov eax, esi */ 10330 esi = POP32_VAL(esp); /* 0x470389F1: pop esi */ 10331 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470389F2: ret 4 */ 10332 RECOMP_REGS_OUT(); 10333 } 10334 10335 void sub_47038A00(void) { 10336 int _fpu_cmp = 0; 10337 uint32_t _cf = 0; 10338 int _df = 1; 10339 uint32_t _flag_k = FK_NONE; 10340 uint32_t _flag_a = 0, _flag_b = 0; 10341 uint32_t _itail_tgt = 0; 10342 RECOMP_REGS_LOCALS 10343 RECOMP_ENTER(0x47038A00u); 10344 10345 L_47038A00: 10346 MEM32(ecx) = 0x470AD394u; /* 0x47038A00: mov dword ptr [ecx], 0x470ad394 */ 10347 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47038A06: ret */ 10348 RECOMP_REGS_OUT(); 10349 } 10350 10351 void sub_47038A10(void) { 10352 int _fpu_cmp = 0; 10353 uint32_t _cf = 0; 10354 int _df = 1; 10355 uint32_t _flag_k = FK_NONE; 10356 uint32_t _flag_a = 0, _flag_b = 0; 10357 uint32_t _itail_tgt = 0; 10358 RECOMP_REGS_LOCALS 10359 RECOMP_ENTER(0x47038A10u); 10360 10361 L_47038A10: 10362 PUSH32(esp, ecx); /* 0x47038A10: push ecx */ 10363 PUSH32(esp, ebx); /* 0x47038A11: push ebx */ 10364 ebx = MEM32(0x470AC150); /* 0x47038A12: mov ebx, dword ptr [0x470ac150] */ 10365 PUSH32(esp, ebp); /* 0x47038A18: push ebp */ 10366 PUSH32(esp, esi); /* 0x47038A19: push esi */ 10367 PUSH32(esp, edi); /* 0x47038A1A: push edi */ 10368 edi = ecx; /* 0x47038A1B: mov edi, ecx */ 10369 RECOMP_ICALL(ebx); /* 0x47038A1D: call ebx */ 10370 RECOMP_FLAGS_IN(); 10371 ebp = MEM32(0x470AC3C8); /* 0x47038A1F: mov ebp, dword ptr [0x470ac3c8] */ 10372 esi = eax; /* 0x47038A25: mov esi, eax */ 10373 RECOMP_ICALL(ebp); /* 0x47038A27: call ebp */ 10374 RECOMP_FLAGS_IN(); 10375 eax = MEM32(eax); /* 0x47038A29: mov eax, dword ptr [eax] */ 10376 /* test eax, eax */ /* 0x47038A2B: test eax, eax */ 10377 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10378 _cf = 0; 10379 _flag_k = FK_TEST; 10380 MEM32(esp + 0x10) = esi; /* 0x47038A2D: mov dword ptr [esp + 0x10], esi */ 10381 if (TEST_Z(_flag_a, _flag_b)) goto L_47038A37; /* 0x47038A31: je 0x47038a37 */ 10382 L_47038A33: 10383 MEM32(esp + 0x10) = eax; /* 0x47038A33: mov dword ptr [esp + 0x10], eax */ 10384 L_47038A37: 10385 RECOMP_ICALL(0x47039020u); /* 0x47038A37: call 0x47039020 */ /* not lifted */ 10386 RECOMP_FLAGS_IN(); 10387 esi = eax; /* 0x47038A3C: mov esi, eax */ 10388 ecx = esi; /* 0x47038A3E: mov ecx, esi */ 10389 RECOMP_ICALL(0x4703B210u); /* 0x47038A40: call 0x4703b210 */ /* not lifted */ 10390 RECOMP_FLAGS_IN(); 10391 PUSH32(esp, eax); /* 0x47038A45: push eax */ 10392 ecx = esi; /* 0x47038A46: mov ecx, esi */ 10393 RECOMP_ICALL(0x4703B240u); /* 0x47038A48: call 0x4703b240 */ /* not lifted */ 10394 RECOMP_FLAGS_IN(); 10395 PUSH32(esp, eax); /* 0x47038A4D: push eax */ 10396 ecx = esi; /* 0x47038A4E: mov ecx, esi */ 10397 RECOMP_ICALL(0x4703B080u); /* 0x47038A50: call 0x4703b080 */ /* not lifted */ 10398 RECOMP_FLAGS_IN(); 10399 PUSH32(esp, eax); /* 0x47038A55: push eax */ 10400 eax = MEM32(esp + 0x1C); /* 0x47038A56: mov eax, dword ptr [esp + 0x1c] */ 10401 PUSH32(esp, eax); /* 0x47038A5A: push eax */ 10402 PUSH32(esp, 0); /* 0x47038A5B: push 0 */ 10403 PUSH32(esp, 0x586u); /* 0x47038A5D: push 0x586 */ 10404 PUSH32(esp, 0x47106DE4u); /* 0x47038A62: push 0x47106de4 */ 10405 ecx = esi; /* 0x47038A67: mov ecx, esi */ 10406 RECOMP_ICALL(0x4703A340u); /* 0x47038A69: call 0x4703a340 */ /* not lifted */ 10407 RECOMP_FLAGS_IN(); 10408 PUSH32(esp, edi); /* 0x47038A6E: push edi */ 10409 PUSH32(esp, 0x471052CCu); /* 0x47038A6F: push 0x471052cc */ 10410 PUSH32(esp, 4); /* 0x47038A74: push 4 */ 10411 PUSH32(esp, esi); /* 0x47038A76: push esi */ 10412 RECOMP_ICALL(0x47039830u); /* 0x47038A77: call 0x47039830 */ /* not lifted */ 10413 RECOMP_FLAGS_IN(); 10414 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 10415 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10416 esp = esp + 0x10u; /* 0x47038A7C: add esp, 0x10 */ 10417 _flag_k = FK_ADD; 10418 RECOMP_ICALL(ebx); /* 0x47038A7F: call ebx */ 10419 RECOMP_FLAGS_IN(); 10420 esi = eax; /* 0x47038A81: mov esi, eax */ 10421 RECOMP_ICALL(ebp); /* 0x47038A83: call ebp */ 10422 RECOMP_FLAGS_IN(); 10423 eax = MEM32(eax); /* 0x47038A85: mov eax, dword ptr [eax] */ 10424 /* test eax, eax */ /* 0x47038A87: test eax, eax */ 10425 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10426 _cf = 0; 10427 _flag_k = FK_TEST; 10428 MEM32(esp + 0x10) = esi; /* 0x47038A89: mov dword ptr [esp + 0x10], esi */ 10429 if (TEST_Z(_flag_a, _flag_b)) goto L_47038A93; /* 0x47038A8D: je 0x47038a93 */ 10430 L_47038A8F: 10431 MEM32(esp + 0x10) = eax; /* 0x47038A8F: mov dword ptr [esp + 0x10], eax */ 10432 L_47038A93: 10433 RECOMP_ICALL(0x47039020u); /* 0x47038A93: call 0x47039020 */ /* not lifted */ 10434 RECOMP_FLAGS_IN(); 10435 esi = eax; /* 0x47038A98: mov esi, eax */ 10436 ecx = esi; /* 0x47038A9A: mov ecx, esi */ 10437 RECOMP_ICALL(0x4703B210u); /* 0x47038A9C: call 0x4703b210 */ /* not lifted */ 10438 RECOMP_FLAGS_IN(); 10439 PUSH32(esp, eax); /* 0x47038AA1: push eax */ 10440 ecx = esi; /* 0x47038AA2: mov ecx, esi */ 10441 RECOMP_ICALL(0x4703B240u); /* 0x47038AA4: call 0x4703b240 */ /* not lifted */ 10442 RECOMP_FLAGS_IN(); 10443 PUSH32(esp, eax); /* 0x47038AA9: push eax */ 10444 ecx = esi; /* 0x47038AAA: mov ecx, esi */ 10445 RECOMP_ICALL(0x4703B080u); /* 0x47038AAC: call 0x4703b080 */ /* not lifted */ 10446 RECOMP_FLAGS_IN(); 10447 ecx = MEM32(esp + 0x18); /* 0x47038AB1: mov ecx, dword ptr [esp + 0x18] */ 10448 PUSH32(esp, eax); /* 0x47038AB5: push eax */ 10449 PUSH32(esp, ecx); /* 0x47038AB6: push ecx */ 10450 PUSH32(esp, 0); /* 0x47038AB7: push 0 */ 10451 PUSH32(esp, 0x58Eu); /* 0x47038AB9: push 0x58e */ 10452 PUSH32(esp, 0x47106DE4u); /* 0x47038ABE: push 0x47106de4 */ 10453 ecx = esi; /* 0x47038AC3: mov ecx, esi */ 10454 RECOMP_ICALL(0x4703A340u); /* 0x47038AC5: call 0x4703a340 */ /* not lifted */ 10455 RECOMP_FLAGS_IN(); 10456 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 10457 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10458 edi = edi + 4; /* 0x47038ACA: add edi, 4 */ 10459 _flag_k = FK_ADD; 10460 /* test edi, edi */ /* 0x47038ACD: test edi, edi */ 10461 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 10462 _cf = 0; 10463 _flag_k = FK_TEST; 10464 if (TEST_NZ(_flag_a, _flag_b)) goto L_47038AD6; /* 0x47038ACF: jne 0x47038ad6 */ 10465 L_47038AD1: 10466 edi = 0x47106D1Cu; /* 0x47038AD1: mov edi, 0x47106d1c */ 10467 L_47038AD6: 10468 PUSH32(esp, edi); /* 0x47038AD6: push edi */ 10469 PUSH32(esp, 0x47107218u); /* 0x47038AD7: push 0x47107218 */ 10470 PUSH32(esp, 4); /* 0x47038ADC: push 4 */ 10471 PUSH32(esp, esi); /* 0x47038ADE: push esi */ 10472 RECOMP_ICALL(0x47039830u); /* 0x47038ADF: call 0x47039830 */ /* not lifted */ 10473 RECOMP_FLAGS_IN(); 10474 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 10475 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10476 esp = esp + 0x10u; /* 0x47038AE4: add esp, 0x10 */ 10477 _flag_k = FK_ADD; 10478 RECOMP_ICALL(ebx); /* 0x47038AE7: call ebx */ 10479 RECOMP_FLAGS_IN(); 10480 esi = eax; /* 0x47038AE9: mov esi, eax */ 10481 RECOMP_ICALL(ebp); /* 0x47038AEB: call ebp */ 10482 RECOMP_FLAGS_IN(); 10483 eax = MEM32(eax); /* 0x47038AED: mov eax, dword ptr [eax] */ 10484 /* test eax, eax */ /* 0x47038AEF: test eax, eax */ 10485 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10486 _cf = 0; 10487 _flag_k = FK_TEST; 10488 edi = esi; /* 0x47038AF1: mov edi, esi */ 10489 if (TEST_Z(_flag_a, _flag_b)) goto L_47038AF7; /* 0x47038AF3: je 0x47038af7 */ 10490 L_47038AF5: 10491 edi = eax; /* 0x47038AF5: mov edi, eax */ 10492 L_47038AF7: 10493 RECOMP_ICALL(0x47039020u); /* 0x47038AF7: call 0x47039020 */ /* not lifted */ 10494 RECOMP_FLAGS_IN(); 10495 esi = eax; /* 0x47038AFC: mov esi, eax */ 10496 ecx = esi; /* 0x47038AFE: mov ecx, esi */ 10497 RECOMP_ICALL(0x4703B210u); /* 0x47038B00: call 0x4703b210 */ /* not lifted */ 10498 RECOMP_FLAGS_IN(); 10499 PUSH32(esp, eax); /* 0x47038B05: push eax */ 10500 ecx = esi; /* 0x47038B06: mov ecx, esi */ 10501 RECOMP_ICALL(0x4703B240u); /* 0x47038B08: call 0x4703b240 */ /* not lifted */ 10502 RECOMP_FLAGS_IN(); 10503 PUSH32(esp, eax); /* 0x47038B0D: push eax */ 10504 ecx = esi; /* 0x47038B0E: mov ecx, esi */ 10505 RECOMP_ICALL(0x4703B080u); /* 0x47038B10: call 0x4703b080 */ /* not lifted */ 10506 RECOMP_FLAGS_IN(); 10507 PUSH32(esp, eax); /* 0x47038B15: push eax */ 10508 PUSH32(esp, edi); /* 0x47038B16: push edi */ 10509 PUSH32(esp, 0); /* 0x47038B17: push 0 */ 10510 PUSH32(esp, 0x590u); /* 0x47038B19: push 0x590 */ 10511 PUSH32(esp, 0x47106DE4u); /* 0x47038B1E: push 0x47106de4 */ 10512 ecx = esi; /* 0x47038B23: mov ecx, esi */ 10513 RECOMP_ICALL(0x4703A340u); /* 0x47038B25: call 0x4703a340 */ /* not lifted */ 10514 RECOMP_FLAGS_IN(); 10515 PUSH32(esp, 0x4710529Cu); /* 0x47038B2A: push 0x4710529c */ 10516 PUSH32(esp, 4); /* 0x47038B2F: push 4 */ 10517 PUSH32(esp, esi); /* 0x47038B31: push esi */ 10518 RECOMP_ICALL(0x47039830u); /* 0x47038B32: call 0x47039830 */ /* not lifted */ 10519 RECOMP_FLAGS_IN(); 10520 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 10521 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10522 esp = esp + 0xCu; /* 0x47038B37: add esp, 0xc */ 10523 _flag_k = FK_ADD; 10524 edi = POP32_VAL(esp); /* 0x47038B3A: pop edi */ 10525 esi = POP32_VAL(esp); /* 0x47038B3B: pop esi */ 10526 ebp = POP32_VAL(esp); /* 0x47038B3C: pop ebp */ 10527 ebx = POP32_VAL(esp); /* 0x47038B3D: pop ebx */ 10528 ecx = POP32_VAL(esp); /* 0x47038B3E: pop ecx */ 10529 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47038B3F: ret */ 10530 RECOMP_REGS_OUT(); 10531 } 10532 10533 void sub_47038B40(void) { 10534 int _fpu_cmp = 0; 10535 uint32_t _cf = 0; 10536 int _df = 1; 10537 uint32_t _flag_k = FK_NONE; 10538 uint32_t _flag_a = 0, _flag_b = 0; 10539 uint32_t _itail_tgt = 0; 10540 RECOMP_REGS_LOCALS 10541 RECOMP_ENTER(0x47038B40u); 10542 10543 L_47038B40: 10544 PUSH32(esp, 0xFFFFFFFFu); /* 0x47038B40: push -1 */ 10545 PUSH32(esp, 0x470A5E43u); /* 0x47038B42: push 0x470a5e43 */ 10546 eax = MEM32(FS_BASE + (0)); /* 0x47038B47: mov eax, dword ptr fs:[0] */ 10547 PUSH32(esp, eax); /* 0x47038B4D: push eax */ 10548 MEM32(FS_BASE + (0)) = esp; /* 0x47038B4E: mov dword ptr fs:[0], esp */ 10549 PUSH32(esp, ecx); /* 0x47038B55: push ecx */ 10550 PUSH32(esp, ebx); /* 0x47038B56: push ebx */ 10551 PUSH32(esp, esi); /* 0x47038B57: push esi */ 10552 PUSH32(esp, 0x178u); /* 0x47038B58: push 0x178 */ 10553 RECOMP_ICALL(0x470A33F2u); /* 0x47038B5D: call 0x470a33f2 */ /* not lifted */ 10554 RECOMP_FLAGS_IN(); 10555 esi = eax; /* 0x47038B62: mov esi, eax */ 10556 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10557 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10558 esp = esp + 4; /* 0x47038B64: add esp, 4 */ 10559 _flag_k = FK_ADD; 10560 MEM32(esp + 0x8) = esi; /* 0x47038B67: mov dword ptr [esp + 8], esi */ 10561 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10562 ebx = 0; /* 0x47038B6B: xor ebx, ebx */ 10563 _cf = 0; 10564 _flag_k = FK_TEST; 10565 /* cmp esi, ebx */ /* 0x47038B6D: cmp esi, ebx */ 10566 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 10567 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10568 _flag_k = FK_CMP; 10569 MEM32(esp + 0x14) = ebx; /* 0x47038B6F: mov dword ptr [esp + 0x14], ebx */ 10570 if (CMP_EQ(_flag_a, _flag_b)) goto L_47038BB1; /* 0x47038B73: je 0x47038bb1 */ 10571 L_47038B75: 10572 PUSH32(esp, edi); /* 0x47038B75: push edi */ 10573 PUSH32(esp, ebx); /* 0x47038B76: push ebx */ 10574 PUSH32(esp, ebx); /* 0x47038B77: push ebx */ 10575 edi = esi + 0x30; /* 0x47038B78: lea edi, [esi + 0x30] */ 10576 PUSH32(esp, edi); /* 0x47038B7B: push edi */ 10577 ecx = esi; /* 0x47038B7C: mov ecx, esi */ 10578 RECOMP_ICALL(0x47087340u); /* 0x47038B7E: call 0x47087340 */ /* not lifted */ 10579 RECOMP_FLAGS_IN(); 10580 PUSH32(esp, ebx); /* 0x47038B83: push ebx */ 10581 PUSH32(esp, ebx); /* 0x47038B84: push ebx */ 10582 ecx = edi; /* 0x47038B85: mov ecx, edi */ 10583 MEM8(esp + 0x20) = (uint8_t)(1); /* 0x47038B87: mov byte ptr [esp + 0x20], 1 */ 10584 RECOMP_ICALL(0x47087E50u); /* 0x47038B8C: call 0x47087e50 */ /* not lifted */ 10585 RECOMP_FLAGS_IN(); 10586 edi = POP32_VAL(esp); /* 0x47038B91: pop edi */ 10587 MEM32(esi + 0x54) = ebx; /* 0x47038B92: mov dword ptr [esi + 0x54], ebx */ 10588 MEM32(esi + 0x58) = ebx; /* 0x47038B95: mov dword ptr [esi + 0x58], ebx */ 10589 MEM32(esi + 0x174) = ebx; /* 0x47038B98: mov dword ptr [esi + 0x174], ebx */ 10590 eax = esi; /* 0x47038B9E: mov eax, esi */ 10591 esi = POP32_VAL(esp); /* 0x47038BA0: pop esi */ 10592 ebx = POP32_VAL(esp); /* 0x47038BA1: pop ebx */ 10593 ecx = MEM32(esp + 0x4); /* 0x47038BA2: mov ecx, dword ptr [esp + 4] */ 10594 MEM32(FS_BASE + (0)) = ecx; /* 0x47038BA6: mov dword ptr fs:[0], ecx */ 10595 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 10596 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10597 esp = esp + 0x10u; /* 0x47038BAD: add esp, 0x10 */ 10598 _flag_k = FK_ADD; 10599 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47038BB0: ret */ 10600 L_47038BB1: 10601 ecx = MEM32(esp + 0xC); /* 0x47038BB1: mov ecx, dword ptr [esp + 0xc] */ 10602 esi = POP32_VAL(esp); /* 0x47038BB5: pop esi */ 10603 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10604 eax = 0; /* 0x47038BB6: xor eax, eax */ 10605 _cf = 0; 10606 _flag_k = FK_TEST; 10607 ebx = POP32_VAL(esp); /* 0x47038BB8: pop ebx */ 10608 MEM32(FS_BASE + (0)) = ecx; /* 0x47038BB9: mov dword ptr fs:[0], ecx */ 10609 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 10610 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10611 esp = esp + 0x10u; /* 0x47038BC0: add esp, 0x10 */ 10612 _flag_k = FK_ADD; 10613 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47038BC3: ret */ 10614 RECOMP_REGS_OUT(); 10615 } 10616 10617 void sub_47038BD0(void) { 10618 int _fpu_cmp = 0; 10619 uint32_t _cf = 0; 10620 int _df = 1; 10621 uint32_t _flag_k = FK_NONE; 10622 uint32_t _flag_a = 0, _flag_b = 0; 10623 uint32_t _itail_tgt = 0; 10624 RECOMP_REGS_LOCALS 10625 RECOMP_ENTER(0x47038BD0u); 10626 10627 L_47038BD0: 10628 PUSH32(esp, esi); /* 0x47038BD0: push esi */ 10629 esi = ecx; /* 0x47038BD1: mov esi, ecx */ 10630 ecx = MEM32(esi + 0x8); /* 0x47038BD3: mov ecx, dword ptr [esi + 8] */ 10631 eax = MEM32(ecx); /* 0x47038BD6: mov eax, dword ptr [ecx] */ 10632 PUSH32(esp, 8); /* 0x47038BD8: push 8 */ 10633 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x47038BDA: call dword ptr [eax + 4] */ 10634 RECOMP_FLAGS_IN(); 10635 /* test eax, eax */ /* 0x47038BDD: test eax, eax */ 10636 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10637 _cf = 0; 10638 _flag_k = FK_TEST; 10639 if (TEST_Z(_flag_a, _flag_b)) goto L_47038BFD; /* 0x47038BDF: je 0x47038bfd */ 10640 L_47038BE1: 10641 ecx = MEM32(esi); /* 0x47038BE1: mov ecx, dword ptr [esi] */ 10642 edx = MEM32(ecx); /* 0x47038BE3: mov edx, dword ptr [ecx] */ 10643 ecx = MEM32(esp + 0x8); /* 0x47038BE5: mov ecx, dword ptr [esp + 8] */ 10644 MEM32(eax) = edx; /* 0x47038BE9: mov dword ptr [eax], edx */ 10645 edx = MEM32(ecx); /* 0x47038BEB: mov edx, dword ptr [ecx] */ 10646 MEM32(eax + 0x4) = edx; /* 0x47038BED: mov dword ptr [eax + 4], edx */ 10647 ecx = MEM32(esi); /* 0x47038BF0: mov ecx, dword ptr [esi] */ 10648 MEM32(ecx) = eax; /* 0x47038BF2: mov dword ptr [ecx], eax */ 10649 _flag_a = (uint32_t)(MEM32(esi + 0x4)); _flag_b = (uint32_t)(1); 10650 MEM32(esi + 0x4) = MEM32(esi + 0x4) + 1; /* 0x47038BF4: inc dword ptr [esi + 4] */ 10651 _flag_k = FK_INC; 10652 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10653 eax = 0; /* 0x47038BF7: xor eax, eax */ 10654 _cf = 0; 10655 _flag_k = FK_TEST; 10656 esi = POP32_VAL(esp); /* 0x47038BF9: pop esi */ 10657 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47038BFA: ret 4 */ 10658 L_47038BFD: 10659 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47038BFD: call dword ptr [0x470ac3c8] */ 10660 RECOMP_FLAGS_IN(); 10661 MEM32(eax) = 0xCu; /* 0x47038C03: mov dword ptr [eax], 0xc */ 10662 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 10663 eax = eax | 0xFFFFFFFFu; /* 0x47038C09: or eax, 0xffffffff */ 10664 _cf = 0; 10665 _flag_k = FK_TEST; 10666 esi = POP32_VAL(esp); /* 0x47038C0C: pop esi */ 10667 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47038C0D: ret 4 */ 10668 RECOMP_REGS_OUT(); 10669 } 10670 10671 void sub_47038C10(void) { 10672 int _fpu_cmp = 0; 10673 uint32_t _cf = 0; 10674 int _df = 1; 10675 uint32_t _flag_k = FK_NONE; 10676 uint32_t _flag_a = 0, _flag_b = 0; 10677 uint32_t _itail_tgt = 0; 10678 RECOMP_REGS_LOCALS 10679 RECOMP_ENTER(0x47038C10u); 10680 10681 L_47038C10: 10682 PUSH32(esp, esi); /* 0x47038C10: push esi */ 10683 esi = ecx; /* 0x47038C11: mov esi, ecx */ 10684 RECOMP_ICALL(0x47038C30u); /* 0x47038C13: call 0x47038c30 */ /* not lifted */ 10685 RECOMP_FLAGS_IN(); 10686 /* test MEM8(esp + 0x8), 1 */ /* 0x47038C18: test byte ptr [esp + 8], 1 */ 10687 _flag_a = (uint32_t)(MEM8(esp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 10688 _cf = 0; 10689 _flag_k = FK_NARROW(FK_TEST, 24); 10690 if (TEST_Z(_flag_a, _flag_b)) goto L_47038C28; /* 0x47038C1D: je 0x47038c28 */ 10691 L_47038C1F: 10692 PUSH32(esp, esi); /* 0x47038C1F: push esi */ 10693 RECOMP_ICALL(0x470A32A2u); /* 0x47038C20: call 0x470a32a2 */ /* not lifted */ 10694 RECOMP_FLAGS_IN(); 10695 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10696 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10697 esp = esp + 4; /* 0x47038C25: add esp, 4 */ 10698 _flag_k = FK_ADD; 10699 L_47038C28: 10700 eax = esi; /* 0x47038C28: mov eax, esi */ 10701 esi = POP32_VAL(esp); /* 0x47038C2A: pop esi */ 10702 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47038C2B: ret 4 */ 10703 RECOMP_REGS_OUT(); 10704 } 10705 10706 void sub_47038C30(void) { 10707 int _fpu_cmp = 0; 10708 uint32_t _cf = 0; 10709 int _df = 1; 10710 uint32_t _flag_k = FK_NONE; 10711 uint32_t _flag_a = 0, _flag_b = 0; 10712 uint32_t _itail_tgt = 0; 10713 RECOMP_REGS_LOCALS 10714 RECOMP_ENTER(0x47038C30u); 10715 10716 L_47038C30: 10717 PUSH32(esp, 0xFFFFFFFFu); /* 0x47038C30: push -1 */ 10718 PUSH32(esp, 0x470A5E5Bu); /* 0x47038C32: push 0x470a5e5b */ 10719 eax = MEM32(FS_BASE + (0)); /* 0x47038C37: mov eax, dword ptr fs:[0] */ 10720 PUSH32(esp, eax); /* 0x47038C3D: push eax */ 10721 MEM32(FS_BASE + (0)) = esp; /* 0x47038C3E: mov dword ptr fs:[0], esp */ 10722 PUSH32(esp, ecx); /* 0x47038C45: push ecx */ 10723 PUSH32(esp, esi); /* 0x47038C46: push esi */ 10724 esi = ecx; /* 0x47038C47: mov esi, ecx */ 10725 MEM32(esp + 0x4) = esi; /* 0x47038C49: mov dword ptr [esp + 4], esi */ 10726 MEM32(esi) = 0x470AD3F0u; /* 0x47038C4D: mov dword ptr [esi], 0x470ad3f0 */ 10727 PUSH32(esp, esi); /* 0x47038C53: push esi */ 10728 MEM32(esp + 0x14) = 0; /* 0x47038C54: mov dword ptr [esp + 0x14], 0 */ 10729 RECOMP_ICALL(0x470562A0u); /* 0x47038C5C: call 0x470562a0 */ /* not lifted */ 10730 RECOMP_FLAGS_IN(); 10731 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10732 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10733 esp = esp + 4; /* 0x47038C61: add esp, 4 */ 10734 _flag_k = FK_ADD; 10735 ecx = esi + 0x4; /* 0x47038C64: lea ecx, [esi + 4] */ 10736 MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x47038C67: mov dword ptr [esp + 0x10], 0xffffffff */ 10737 RECOMP_ICALL(0x47087E30u); /* 0x47038C6F: call 0x47087e30 */ /* not lifted */ 10738 RECOMP_FLAGS_IN(); 10739 ecx = MEM32(esp + 0x8); /* 0x47038C74: mov ecx, dword ptr [esp + 8] */ 10740 esi = POP32_VAL(esp); /* 0x47038C78: pop esi */ 10741 MEM32(FS_BASE + (0)) = ecx; /* 0x47038C79: mov dword ptr fs:[0], ecx */ 10742 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 10743 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10744 esp = esp + 0x10u; /* 0x47038C80: add esp, 0x10 */ 10745 _flag_k = FK_ADD; 10746 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47038C83: ret */ 10747 RECOMP_REGS_OUT(); 10748 } 10749 10750 void sub_47038C90(void) { 10751 int _fpu_cmp = 0; 10752 uint32_t _cf = 0; 10753 int _df = 1; 10754 uint32_t _flag_k = FK_NONE; 10755 uint32_t _flag_a = 0, _flag_b = 0; 10756 uint32_t _itail_tgt = 0; 10757 RECOMP_REGS_LOCALS 10758 RECOMP_ENTER(0x47038C90u); 10759 10760 L_47038C90: 10761 PUSH32(esp, ecx); /* 0x47038C90: push ecx */ 10762 PUSH32(esp, esi); /* 0x47038C91: push esi */ 10763 esi = ecx; /* 0x47038C92: mov esi, ecx */ 10764 eax = MEM32(esi + 0x20); /* 0x47038C94: mov eax, dword ptr [esi + 0x20] */ 10765 /* test eax, eax */ /* 0x47038C97: test eax, eax */ 10766 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10767 _cf = 0; 10768 _flag_k = FK_TEST; 10769 if (TEST_NZ(_flag_a, _flag_b)) goto L_47038CA0; /* 0x47038C99: jne 0x47038ca0 */ 10770 L_47038C9B: 10771 RECOMP_ICALL(0x47038D20u); /* 0x47038C9B: call 0x47038d20 */ /* not lifted */ 10772 RECOMP_FLAGS_IN(); 10773 L_47038CA0: 10774 eax = MEM32(esi + 0x24); /* 0x47038CA0: mov eax, dword ptr [esi + 0x24] */ 10775 ecx = esp + 0x4; /* 0x47038CA3: lea ecx, [esp + 4] */ 10776 PUSH32(esp, ecx); /* 0x47038CA7: push ecx */ 10777 PUSH32(esp, eax); /* 0x47038CA8: push eax */ 10778 MEM32(esp + 0xC) = 0; /* 0x47038CA9: mov dword ptr [esp + 0xc], 0 */ 10779 RECOMP_ICALL(0x47004600u); /* 0x47038CB1: call 0x47004600 */ /* not lifted */ 10780 RECOMP_FLAGS_IN(); 10781 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 10782 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10783 esp = esp + 8; /* 0x47038CB6: add esp, 8 */ 10784 _flag_k = FK_ADD; 10785 /* cmp eax, 0xFFFFFFFFu */ /* 0x47038CB9: cmp eax, -1 */ 10786 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 10787 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10788 _flag_k = FK_CMP; 10789 if (CMP_NE(_flag_a, _flag_b)) goto L_47038CC3; /* 0x47038CBC: jne 0x47038cc3 */ 10790 L_47038CBE: 10791 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10792 eax = 0; /* 0x47038CBE: xor eax, eax */ 10793 _cf = 0; 10794 _flag_k = FK_TEST; 10795 esi = POP32_VAL(esp); /* 0x47038CC0: pop esi */ 10796 ecx = POP32_VAL(esp); /* 0x47038CC1: pop ecx */ 10797 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47038CC2: ret */ 10798 L_47038CC3: 10799 eax = MEM32(esp + 0x4); /* 0x47038CC3: mov eax, dword ptr [esp + 4] */ 10800 /* test eax, eax */ /* 0x47038CC7: test eax, eax */ 10801 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10802 _cf = 0; 10803 _flag_k = FK_TEST; 10804 if (TEST_NZ(_flag_a, _flag_b)) goto L_47038D0B; /* 0x47038CC9: jne 0x47038d0b */ 10805 L_47038CCB: 10806 edx = MEM32(esi); /* 0x47038CCB: mov edx, dword ptr [esi] */ 10807 ecx = esi; /* 0x47038CCD: mov ecx, esi */ 10808 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47038CCF: call dword ptr [edx + 4] */ 10809 RECOMP_FLAGS_IN(); 10810 /* test eax, eax */ /* 0x47038CD2: test eax, eax */ 10811 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10812 _cf = 0; 10813 _flag_k = FK_TEST; 10814 MEM32(esp + 0x4) = eax; /* 0x47038CD4: mov dword ptr [esp + 4], eax */ 10815 if (TEST_NZ(_flag_a, _flag_b)) goto L_47038CDD; /* 0x47038CD8: jne 0x47038cdd */ 10816 L_47038CDA: 10817 esi = POP32_VAL(esp); /* 0x47038CDA: pop esi */ 10818 ecx = POP32_VAL(esp); /* 0x47038CDB: pop ecx */ 10819 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47038CDC: ret */ 10820 L_47038CDD: 10821 esi = MEM32(esi + 0x24); /* 0x47038CDD: mov esi, dword ptr [esi + 0x24] */ 10822 PUSH32(esp, eax); /* 0x47038CE0: push eax */ 10823 PUSH32(esp, esi); /* 0x47038CE1: push esi */ 10824 RECOMP_ICALL(0x47056110u); /* 0x47038CE2: call 0x47056110 */ /* not lifted */ 10825 RECOMP_FLAGS_IN(); 10826 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 10827 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10828 esp = esp + 8; /* 0x47038CE7: add esp, 8 */ 10829 _flag_k = FK_ADD; 10830 /* test eax, eax */ /* 0x47038CEA: test eax, eax */ 10831 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10832 _cf = 0; 10833 _flag_k = FK_TEST; 10834 if (TEST_Z(_flag_a, _flag_b)) goto L_47038D0B; /* 0x47038CEC: je 0x47038d0b */ 10835 L_47038CEE: 10836 ecx = MEM32(esp + 0x4); /* 0x47038CEE: mov ecx, dword ptr [esp + 4] */ 10837 /* test ecx, ecx */ /* 0x47038CF2: test ecx, ecx */ 10838 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 10839 _cf = 0; 10840 _flag_k = FK_TEST; 10841 esi = ecx; /* 0x47038CF4: mov esi, ecx */ 10842 if (TEST_Z(_flag_a, _flag_b)) goto L_47038D06; /* 0x47038CF6: je 0x47038d06 */ 10843 L_47038CF8: 10844 RECOMP_ICALL(0x470350A0u); /* 0x47038CF8: call 0x470350a0 */ /* not lifted */ 10845 RECOMP_FLAGS_IN(); 10846 PUSH32(esp, esi); /* 0x47038CFD: push esi */ 10847 RECOMP_ICALL(0x470A32A2u); /* 0x47038CFE: call 0x470a32a2 */ /* not lifted */ 10848 RECOMP_FLAGS_IN(); 10849 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10850 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10851 esp = esp + 4; /* 0x47038D03: add esp, 4 */ 10852 _flag_k = FK_ADD; 10853 L_47038D06: 10854 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10855 eax = 0; /* 0x47038D06: xor eax, eax */ 10856 _cf = 0; 10857 _flag_k = FK_TEST; 10858 esi = POP32_VAL(esp); /* 0x47038D08: pop esi */ 10859 ecx = POP32_VAL(esp); /* 0x47038D09: pop ecx */ 10860 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47038D0A: ret */ 10861 L_47038D0B: 10862 eax = MEM32(esp + 0x4); /* 0x47038D0B: mov eax, dword ptr [esp + 4] */ 10863 esi = POP32_VAL(esp); /* 0x47038D0F: pop esi */ 10864 ecx = POP32_VAL(esp); /* 0x47038D10: pop ecx */ 10865 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47038D11: ret */ 10866 RECOMP_REGS_OUT(); 10867 } 10868 10869 void sub_47038D20(void) { 10870 int _fpu_cmp = 0; 10871 uint32_t _cf = 0; 10872 int _df = 1; 10873 uint32_t _flag_k = FK_NONE; 10874 uint32_t _flag_a = 0, _flag_b = 0; 10875 uint32_t _itail_tgt = 0; 10876 RECOMP_REGS_LOCALS 10877 RECOMP_ENTER(0x47038D20u); 10878 10879 L_47038D20: 10880 PUSH32(esp, 0xFFFFFFFFu); /* 0x47038D20: push -1 */ 10881 PUSH32(esp, 0x470A5E78u); /* 0x47038D22: push 0x470a5e78 */ 10882 eax = MEM32(FS_BASE + (0)); /* 0x47038D27: mov eax, dword ptr fs:[0] */ 10883 PUSH32(esp, eax); /* 0x47038D2D: push eax */ 10884 MEM32(FS_BASE + (0)) = esp; /* 0x47038D2E: mov dword ptr fs:[0], esp */ 10885 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 10886 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10887 esp = esp - 8; /* 0x47038D35: sub esp, 8 */ 10888 _flag_k = FK_CMP; 10889 PUSH32(esp, esi); /* 0x47038D38: push esi */ 10890 PUSH32(esp, edi); /* 0x47038D39: push edi */ 10891 esi = ecx; /* 0x47038D3A: mov esi, ecx */ 10892 edi = esi + 0x4; /* 0x47038D3C: lea edi, [esi + 4] */ 10893 PUSH32(esp, edi); /* 0x47038D3F: push edi */ 10894 MEM32(esp + 0xC) = edi; /* 0x47038D40: mov dword ptr [esp + 0xc], edi */ 10895 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47038D44: call dword ptr [0x470ac180] */ 10896 RECOMP_FLAGS_IN(); 10897 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10898 eax = 0; /* 0x47038D4A: xor eax, eax */ 10899 _cf = 0; 10900 _flag_k = FK_TEST; 10901 MEM32(esp + 0xC) = eax; /* 0x47038D4C: mov dword ptr [esp + 0xc], eax */ 10902 /* cmp MEM32(esi + 0x20), eax */ /* 0x47038D50: cmp dword ptr [esi + 0x20], eax */ 10903 _flag_a = (uint32_t)(MEM32(esi + 0x20)); _flag_b = (uint32_t)(eax); 10904 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10905 _flag_k = FK_CMP; 10906 MEM32(esp + 0x18) = eax; /* 0x47038D53: mov dword ptr [esp + 0x18], eax */ 10907 if (CMP_NE(_flag_a, _flag_b)) goto L_47038D90; /* 0x47038D57: jne 0x47038d90 */ 10908 L_47038D59: 10909 PUSH32(esp, esi); /* 0x47038D59: push esi */ 10910 eax = esi + 0x24; /* 0x47038D5A: lea eax, [esi + 0x24] */ 10911 PUSH32(esp, 0x47038DD0u); /* 0x47038D5D: push 0x47038dd0 */ 10912 PUSH32(esp, eax); /* 0x47038D62: push eax */ 10913 RECOMP_ICALL(0x47056190u); /* 0x47038D63: call 0x47056190 */ /* not lifted */ 10914 RECOMP_FLAGS_IN(); 10915 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 10916 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10917 esp = esp + 0xCu; /* 0x47038D68: add esp, 0xc */ 10918 _flag_k = FK_ADD; 10919 /* test eax, eax */ /* 0x47038D6B: test eax, eax */ 10920 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10921 _cf = 0; 10922 _flag_k = FK_TEST; 10923 if (TEST_NZ(_flag_a, _flag_b)) goto L_47038D90; /* 0x47038D6D: jne 0x47038d90 */ 10924 L_47038D6F: 10925 PUSH32(esp, edi); /* 0x47038D6F: push edi */ 10926 MEM32(esi + 0x20) = 1; /* 0x47038D70: mov dword ptr [esi + 0x20], 1 */ 10927 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47038D77: call dword ptr [0x470ac190] */ 10928 RECOMP_FLAGS_IN(); 10929 edi = POP32_VAL(esp); /* 0x47038D7D: pop edi */ 10930 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10931 eax = 0; /* 0x47038D7E: xor eax, eax */ 10932 _cf = 0; 10933 _flag_k = FK_TEST; 10934 esi = POP32_VAL(esp); /* 0x47038D80: pop esi */ 10935 ecx = MEM32(esp + 0x8); /* 0x47038D81: mov ecx, dword ptr [esp + 8] */ 10936 MEM32(FS_BASE + (0)) = ecx; /* 0x47038D85: mov dword ptr fs:[0], ecx */ 10937 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 10938 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10939 esp = esp + 0x14u; /* 0x47038D8C: add esp, 0x14 */ 10940 _flag_k = FK_ADD; 10941 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47038D8F: ret */ 10942 L_47038D90: 10943 PUSH32(esp, edi); /* 0x47038D90: push edi */ 10944 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47038D91: call dword ptr [0x470ac190] */ 10945 RECOMP_FLAGS_IN(); 10946 ecx = MEM32(esp + 0x10); /* 0x47038D97: mov ecx, dword ptr [esp + 0x10] */ 10947 edi = POP32_VAL(esp); /* 0x47038D9B: pop edi */ 10948 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 10949 eax = eax | 0xFFFFFFFFu; /* 0x47038D9C: or eax, 0xffffffff */ 10950 _cf = 0; 10951 _flag_k = FK_TEST; 10952 esi = POP32_VAL(esp); /* 0x47038D9F: pop esi */ 10953 MEM32(FS_BASE + (0)) = ecx; /* 0x47038DA0: mov dword ptr fs:[0], ecx */ 10954 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 10955 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10956 esp = esp + 0x14u; /* 0x47038DA7: add esp, 0x14 */ 10957 _flag_k = FK_ADD; 10958 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47038DAA: ret */ 10959 RECOMP_REGS_OUT(); 10960 } 10961 10962 void sub_47038DB0(void) { 10963 int _fpu_cmp = 0; 10964 uint32_t _cf = 0; 10965 int _df = 1; 10966 uint32_t _flag_k = FK_NONE; 10967 uint32_t _flag_a = 0, _flag_b = 0; 10968 uint32_t _itail_tgt = 0; 10969 RECOMP_REGS_LOCALS 10970 RECOMP_ENTER(0x47038DB0u); 10971 10972 L_47038DB0: 10973 PUSH32(esp, esi); /* 0x47038DB0: push esi */ 10974 esi = ecx; /* 0x47038DB1: mov esi, ecx */ 10975 RECOMP_ICALL(0x470350A0u); /* 0x47038DB3: call 0x470350a0 */ /* not lifted */ 10976 RECOMP_FLAGS_IN(); 10977 /* test MEM8(esp + 0x8), 1 */ /* 0x47038DB8: test byte ptr [esp + 8], 1 */ 10978 _flag_a = (uint32_t)(MEM8(esp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 10979 _cf = 0; 10980 _flag_k = FK_NARROW(FK_TEST, 24); 10981 if (TEST_Z(_flag_a, _flag_b)) goto L_47038DC8; /* 0x47038DBD: je 0x47038dc8 */ 10982 L_47038DBF: 10983 PUSH32(esp, esi); /* 0x47038DBF: push esi */ 10984 RECOMP_ICALL(0x470A32A2u); /* 0x47038DC0: call 0x470a32a2 */ /* not lifted */ 10985 RECOMP_FLAGS_IN(); 10986 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10987 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10988 esp = esp + 4; /* 0x47038DC5: add esp, 4 */ 10989 _flag_k = FK_ADD; 10990 L_47038DC8: 10991 eax = esi; /* 0x47038DC8: mov eax, esi */ 10992 esi = POP32_VAL(esp); /* 0x47038DCA: pop esi */ 10993 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47038DCB: ret 4 */ 10994 RECOMP_REGS_OUT(); 10995 } 10996 10997 void sub_47038DD0(void) { 10998 int _fpu_cmp = 0; 10999 uint32_t _cf = 0; 11000 int _df = 1; 11001 uint32_t _flag_k = FK_NONE; 11002 uint32_t _flag_a = 0, _flag_b = 0; 11003 uint32_t _itail_tgt = 0; 11004 RECOMP_REGS_LOCALS 11005 RECOMP_ENTER(0x47038DD0u); 11006 11007 L_47038DD0: 11008 PUSH32(esp, esi); /* 0x47038DD0: push esi */ 11009 esi = MEM32(esp + 0x8); /* 0x47038DD1: mov esi, dword ptr [esp + 8] */ 11010 /* test esi, esi */ /* 0x47038DD5: test esi, esi */ 11011 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 11012 _cf = 0; 11013 _flag_k = FK_TEST; 11014 if (TEST_Z(_flag_a, _flag_b)) goto L_47038DE9; /* 0x47038DD7: je 0x47038de9 */ 11015 L_47038DD9: 11016 ecx = esi; /* 0x47038DD9: mov ecx, esi */ 11017 RECOMP_ICALL(0x470350A0u); /* 0x47038DDB: call 0x470350a0 */ /* not lifted */ 11018 RECOMP_FLAGS_IN(); 11019 PUSH32(esp, esi); /* 0x47038DE0: push esi */ 11020 RECOMP_ICALL(0x470A32A2u); /* 0x47038DE1: call 0x470a32a2 */ /* not lifted */ 11021 RECOMP_FLAGS_IN(); 11022 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11023 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11024 esp = esp + 4; /* 0x47038DE6: add esp, 4 */ 11025 _flag_k = FK_ADD; 11026 L_47038DE9: 11027 esi = POP32_VAL(esp); /* 0x47038DE9: pop esi */ 11028 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47038DEA: ret */ 11029 RECOMP_REGS_OUT(); 11030 } 11031 11032 void sub_47038DF0(void) { 11033 int _fpu_cmp = 0; 11034 uint32_t _cf = 0; 11035 int _df = 1; 11036 uint32_t _flag_k = FK_NONE; 11037 uint32_t _flag_a = 0, _flag_b = 0; 11038 uint32_t _itail_tgt = 0; 11039 RECOMP_REGS_LOCALS 11040 RECOMP_ENTER(0x47038DF0u); 11041 11042 L_47038DF0: 11043 ecx = 0x4710E4C5u; /* 0x47038DF0: mov ecx, 0x4710e4c5 */ 11044 RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x47038DF5: call dword ptr [0x470ac1c8] */ 11045 RECOMP_FLAGS_IN(); 11046 PUSH32(esp, 0x47038E10u); /* 0x47038DFB: push 0x47038e10 */ 11047 RECOMP_ICALL(0x470A32D9u); /* 0x47038E00: call 0x470a32d9 */ /* not lifted */ 11048 RECOMP_FLAGS_IN(); 11049 ecx = POP32_VAL(esp); /* 0x47038E05: pop ecx */ 11050 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47038E06: ret */ 11051 RECOMP_REGS_OUT(); 11052 } 11053 11054 void sub_47038E10(void) { 11055 int _fpu_cmp = 0; 11056 uint32_t _cf = 0; 11057 int _df = 1; 11058 uint32_t _flag_k = FK_NONE; 11059 uint32_t _flag_a = 0, _flag_b = 0; 11060 uint32_t _itail_tgt = 0; 11061 RECOMP_REGS_LOCALS 11062 RECOMP_ENTER(0x47038E10u); 11063 11064 L_47038E10: 11065 ecx = 0x4710E4C5u; /* 0x47038E10: mov ecx, 0x4710e4c5 */ 11066 L_47038E15: 11067 { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; } 11068 { RECOMP_REGS_OUT(); return; } /* end of function */ 11069 _ljump: 11070 switch (_itail_tgt) { 11071 case 0x47038E10u: goto L_47038E10; 11072 case 0x47038E15u: goto L_47038E15; 11073 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 11074 } 11075 RECOMP_REGS_OUT(); 11076 } 11077 11078 void sub_47038E20(void) { 11079 int _fpu_cmp = 0; 11080 uint32_t _cf = 0; 11081 int _df = 1; 11082 uint32_t _flag_k = FK_NONE; 11083 uint32_t _flag_a = 0, _flag_b = 0; 11084 uint32_t _itail_tgt = 0; 11085 RECOMP_REGS_LOCALS 11086 RECOMP_ENTER(0x47038E20u); 11087 11088 L_47038E20: 11089 ecx = 0x4710E4C4u; /* 0x47038E20: mov ecx, 0x4710e4c4 */ 11090 RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x47038E25: call dword ptr [0x470ac1c4] */ 11091 RECOMP_FLAGS_IN(); 11092 PUSH32(esp, 0x47038E40u); /* 0x47038E2B: push 0x47038e40 */ 11093 RECOMP_ICALL(0x470A32D9u); /* 0x47038E30: call 0x470a32d9 */ /* not lifted */ 11094 RECOMP_FLAGS_IN(); 11095 ecx = POP32_VAL(esp); /* 0x47038E35: pop ecx */ 11096 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47038E36: ret */ 11097 RECOMP_REGS_OUT(); 11098 } 11099 11100 void sub_47038E40(void) { 11101 int _fpu_cmp = 0; 11102 uint32_t _cf = 0; 11103 int _df = 1; 11104 uint32_t _flag_k = FK_NONE; 11105 uint32_t _flag_a = 0, _flag_b = 0; 11106 uint32_t _itail_tgt = 0; 11107 RECOMP_REGS_LOCALS 11108 RECOMP_ENTER(0x47038E40u); 11109 11110 L_47038E40: 11111 ecx = 0x4710E4C4u; /* 0x47038E40: mov ecx, 0x4710e4c4 */ 11112 L_47038E45: 11113 { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; } 11114 { RECOMP_REGS_OUT(); return; } /* end of function */ 11115 _ljump: 11116 switch (_itail_tgt) { 11117 case 0x47038E40u: goto L_47038E40; 11118 case 0x47038E45u: goto L_47038E45; 11119 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 11120 } 11121 RECOMP_REGS_OUT(); 11122 } 11123 11124 void sub_47038E50(void) { 11125 int _fpu_cmp = 0; 11126 uint32_t _cf = 0; 11127 int _df = 1; 11128 uint32_t _flag_k = FK_NONE; 11129 uint32_t _flag_a = 0, _flag_b = 0; 11130 uint32_t _itail_tgt = 0; 11131 RECOMP_REGS_LOCALS 11132 RECOMP_ENTER(0x47038E50u); 11133 11134 L_47038E50: 11135 MEM32(0x4710E4B8) = 0x47104A3Cu; /* 0x47038E50: mov dword ptr [0x4710e4b8], 0x47104a3c */ 11136 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47038E5A: ret */ 11137 RECOMP_REGS_OUT(); 11138 } 11139 11140 void sub_47038E60(void) { 11141 int _fpu_cmp = 0; 11142 uint32_t _cf = 0; 11143 int _df = 1; 11144 uint32_t _flag_k = FK_NONE; 11145 uint32_t _flag_a = 0, _flag_b = 0; 11146 uint32_t _itail_tgt = 0; 11147 RECOMP_REGS_LOCALS 11148 RECOMP_ENTER(0x47038E60u); 11149 11150 L_47038E60: 11151 MEM32(0x4710E4CC) = 0x47104A00u; /* 0x47038E60: mov dword ptr [0x4710e4cc], 0x47104a00 */ 11152 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47038E6A: ret */ 11153 RECOMP_REGS_OUT(); 11154 } 11155 11156 void sub_47038E70(void) { 11157 int _fpu_cmp = 0; 11158 uint32_t _cf = 0; 11159 int _df = 1; 11160 uint32_t _flag_k = FK_NONE; 11161 uint32_t _flag_a = 0, _flag_b = 0; 11162 uint32_t _itail_tgt = 0; 11163 RECOMP_REGS_LOCALS 11164 RECOMP_ENTER(0x47038E70u); 11165 11166 L_47038E70: 11167 MEM32(0x4710E4C8) = 0x47104A70u; /* 0x47038E70: mov dword ptr [0x4710e4c8], 0x47104a70 */ 11168 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47038E7A: ret */ 11169 RECOMP_REGS_OUT(); 11170 } 11171 11172 void sub_47038E80(void) { 11173 int _fpu_cmp = 0; 11174 uint32_t _cf = 0; 11175 int _df = 1; 11176 uint32_t _flag_k = FK_NONE; 11177 uint32_t _flag_a = 0, _flag_b = 0; 11178 uint32_t _itail_tgt = 0; 11179 RECOMP_REGS_LOCALS 11180 RECOMP_ENTER(0x47038E80u); 11181 11182 L_47038E80: 11183 MEM32(0x4710E4D4) = 0x47104B6Cu; /* 0x47038E80: mov dword ptr [0x4710e4d4], 0x47104b6c */ 11184 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47038E8A: ret */ 11185 RECOMP_REGS_OUT(); 11186 } 11187 11188 void sub_47038E90(void) { 11189 int _fpu_cmp = 0; 11190 uint32_t _cf = 0; 11191 int _df = 1; 11192 uint32_t _flag_k = FK_NONE; 11193 uint32_t _flag_a = 0, _flag_b = 0; 11194 uint32_t _itail_tgt = 0; 11195 RECOMP_REGS_LOCALS 11196 RECOMP_ENTER(0x47038E90u); 11197 11198 L_47038E90: 11199 MEM32(0x4710E4C0) = 0x47104BA0u; /* 0x47038E90: mov dword ptr [0x4710e4c0], 0x47104ba0 */ 11200 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47038E9A: ret */ 11201 RECOMP_REGS_OUT(); 11202 } 11203 11204 void sub_47038EA0(void) { 11205 int _fpu_cmp = 0; 11206 uint32_t _cf = 0; 11207 int _df = 1; 11208 uint32_t _flag_k = FK_NONE; 11209 uint32_t _flag_a = 0, _flag_b = 0; 11210 uint32_t _itail_tgt = 0; 11211 RECOMP_REGS_LOCALS 11212 RECOMP_ENTER(0x47038EA0u); 11213 11214 L_47038EA0: 11215 MEM32(0x4710E4D0) = 0x47104BD4u; /* 0x47038EA0: mov dword ptr [0x4710e4d0], 0x47104bd4 */ 11216 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47038EAA: ret */ 11217 RECOMP_REGS_OUT(); 11218 } 11219 11220 void sub_47038EB0(void) { 11221 int _fpu_cmp = 0; 11222 uint32_t _cf = 0; 11223 int _df = 1; 11224 uint32_t _flag_k = FK_NONE; 11225 uint32_t _flag_a = 0, _flag_b = 0; 11226 uint32_t _itail_tgt = 0; 11227 RECOMP_REGS_LOCALS 11228 RECOMP_ENTER(0x47038EB0u); 11229 11230 L_47038EB0: 11231 MEM32(0x4710E4D8) = 0x47107250u; /* 0x47038EB0: mov dword ptr [0x4710e4d8], 0x47107250 */ 11232 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47038EBA: ret */ 11233 RECOMP_REGS_OUT(); 11234 } 11235 11236 void sub_47038EC0(void) { 11237 int _fpu_cmp = 0; 11238 uint32_t _cf = 0; 11239 int _df = 1; 11240 uint32_t _flag_k = FK_NONE; 11241 uint32_t _flag_a = 0, _flag_b = 0; 11242 uint32_t _itail_tgt = 0; 11243 RECOMP_REGS_LOCALS 11244 RECOMP_ENTER(0x47038EC0u); 11245 11246 L_47038EC0: 11247 PUSH32(esp, 0xFFFFFFFFu); /* 0x47038EC0: push -1 */ 11248 PUSH32(esp, 0x470A5EA6u); /* 0x47038EC2: push 0x470a5ea6 */ 11249 eax = MEM32(FS_BASE + (0)); /* 0x47038EC7: mov eax, dword ptr fs:[0] */ 11250 PUSH32(esp, eax); /* 0x47038ECD: push eax */ 11251 MEM32(FS_BASE + (0)) = esp; /* 0x47038ECE: mov dword ptr fs:[0], esp */ 11252 PUSH32(esp, ecx); /* 0x47038ED5: push ecx */ 11253 eax = MEM32(0x4710E4E8); /* 0x47038ED6: mov eax, dword ptr [0x4710e4e8] */ 11254 /* test eax, eax */ /* 0x47038EDB: test eax, eax */ 11255 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11256 _cf = 0; 11257 _flag_k = FK_TEST; 11258 if (TEST_NZ(_flag_a, _flag_b)) goto L_47038F36; /* 0x47038EDD: jne 0x47038f36 */ 11259 L_47038EDF: 11260 PUSH32(esp, 0x1Cu); /* 0x47038EDF: push 0x1c */ 11261 RECOMP_ICALL(0x470A33F2u); /* 0x47038EE1: call 0x470a33f2 */ /* not lifted */ 11262 RECOMP_FLAGS_IN(); 11263 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11264 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11265 esp = esp + 4; /* 0x47038EE6: add esp, 4 */ 11266 _flag_k = FK_ADD; 11267 MEM32(esp) = eax; /* 0x47038EE9: mov dword ptr [esp], eax */ 11268 /* test eax, eax */ /* 0x47038EED: test eax, eax */ 11269 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11270 _cf = 0; 11271 _flag_k = FK_TEST; 11272 MEM32(esp + 0xC) = 0; /* 0x47038EEF: mov dword ptr [esp + 0xc], 0 */ 11273 if (TEST_Z(_flag_a, _flag_b)) goto L_47038F06; /* 0x47038EF7: je 0x47038f06 */ 11274 L_47038EF9: 11275 PUSH32(esp, 0); /* 0x47038EF9: push 0 */ 11276 PUSH32(esp, 0); /* 0x47038EFB: push 0 */ 11277 ecx = eax; /* 0x47038EFD: mov ecx, eax */ 11278 RECOMP_ICALL(0x47087E50u); /* 0x47038EFF: call 0x47087e50 */ /* not lifted */ 11279 RECOMP_FLAGS_IN(); 11280 goto L_47038F08; /* 0x47038F04: jmp 0x47038f08 */ 11281 L_47038F06: 11282 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11283 eax = 0; /* 0x47038F06: xor eax, eax */ 11284 _cf = 0; 11285 _flag_k = FK_TEST; 11286 L_47038F08: 11287 /* test eax, eax */ /* 0x47038F08: test eax, eax */ 11288 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11289 _cf = 0; 11290 _flag_k = FK_TEST; 11291 MEM32(esp + 0xC) = 0xFFFFFFFFu; /* 0x47038F0A: mov dword ptr [esp + 0xc], 0xffffffff */ 11292 MEM32(0x4710E4E8) = eax; /* 0x47038F12: mov dword ptr [0x4710e4e8], eax */ 11293 if (TEST_NZ(_flag_a, _flag_b)) goto L_47038F36; /* 0x47038F17: jne 0x47038f36 */ 11294 L_47038F19: 11295 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47038F19: call dword ptr [0x470ac3c8] */ 11296 RECOMP_FLAGS_IN(); 11297 MEM32(eax) = 0xCu; /* 0x47038F1F: mov dword ptr [eax], 0xc */ 11298 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11299 eax = 0; /* 0x47038F25: xor eax, eax */ 11300 _cf = 0; 11301 _flag_k = FK_TEST; 11302 ecx = MEM32(esp + 0x4); /* 0x47038F27: mov ecx, dword ptr [esp + 4] */ 11303 MEM32(FS_BASE + (0)) = ecx; /* 0x47038F2B: mov dword ptr fs:[0], ecx */ 11304 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 11305 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11306 esp = esp + 0x10u; /* 0x47038F32: add esp, 0x10 */ 11307 _flag_k = FK_ADD; 11308 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47038F35: ret */ 11309 L_47038F36: 11310 eax = MEM32(0x4710E4E4); /* 0x47038F36: mov eax, dword ptr [0x4710e4e4] */ 11311 /* test eax, eax */ /* 0x47038F3B: test eax, eax */ 11312 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11313 _cf = 0; 11314 _flag_k = FK_TEST; 11315 if (TEST_NZ(_flag_a, _flag_b)) goto L_47038F90; /* 0x47038F3D: jne 0x47038f90 */ 11316 L_47038F3F: 11317 PUSH32(esp, esi); /* 0x47038F3F: push esi */ 11318 PUSH32(esp, 0x10u); /* 0x47038F40: push 0x10 */ 11319 RECOMP_ICALL(0x470A33F2u); /* 0x47038F42: call 0x470a33f2 */ /* not lifted */ 11320 RECOMP_FLAGS_IN(); 11321 esi = eax; /* 0x47038F47: mov esi, eax */ 11322 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11323 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11324 esp = esp + 4; /* 0x47038F49: add esp, 4 */ 11325 _flag_k = FK_ADD; 11326 MEM32(esp + 0x4) = esi; /* 0x47038F4C: mov dword ptr [esp + 4], esi */ 11327 /* test esi, esi */ /* 0x47038F50: test esi, esi */ 11328 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 11329 _cf = 0; 11330 _flag_k = FK_TEST; 11331 MEM32(esp + 0x10) = 1; /* 0x47038F52: mov dword ptr [esp + 0x10], 1 */ 11332 if (TEST_Z(_flag_a, _flag_b)) goto L_47038F67; /* 0x47038F5A: je 0x47038f67 */ 11333 L_47038F5C: 11334 ecx = esi; /* 0x47038F5C: mov ecx, esi */ 11335 RECOMP_ICALL(0x4707A510u); /* 0x47038F5E: call 0x4707a510 */ /* not lifted */ 11336 RECOMP_FLAGS_IN(); 11337 eax = esi; /* 0x47038F63: mov eax, esi */ 11338 goto L_47038F69; /* 0x47038F65: jmp 0x47038f69 */ 11339 L_47038F67: 11340 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11341 eax = 0; /* 0x47038F67: xor eax, eax */ 11342 _cf = 0; 11343 _flag_k = FK_TEST; 11344 L_47038F69: 11345 /* test eax, eax */ /* 0x47038F69: test eax, eax */ 11346 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11347 _cf = 0; 11348 _flag_k = FK_TEST; 11349 MEM32(0x4710E4E4) = eax; /* 0x47038F6B: mov dword ptr [0x4710e4e4], eax */ 11350 esi = POP32_VAL(esp); /* 0x47038F70: pop esi */ 11351 if (TEST_NZ(_flag_a, _flag_b)) goto L_47038F90; /* 0x47038F71: jne 0x47038f90 */ 11352 L_47038F73: 11353 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47038F73: call dword ptr [0x470ac3c8] */ 11354 RECOMP_FLAGS_IN(); 11355 MEM32(eax) = 0xCu; /* 0x47038F79: mov dword ptr [eax], 0xc */ 11356 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11357 eax = 0; /* 0x47038F7F: xor eax, eax */ 11358 _cf = 0; 11359 _flag_k = FK_TEST; 11360 ecx = MEM32(esp + 0x4); /* 0x47038F81: mov ecx, dword ptr [esp + 4] */ 11361 MEM32(FS_BASE + (0)) = ecx; /* 0x47038F85: mov dword ptr fs:[0], ecx */ 11362 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 11363 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11364 esp = esp + 0x10u; /* 0x47038F8C: add esp, 0x10 */ 11365 _flag_k = FK_ADD; 11366 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47038F8F: ret */ 11367 L_47038F90: 11368 ecx = MEM32(esp + 0x4); /* 0x47038F90: mov ecx, dword ptr [esp + 4] */ 11369 eax = MEM32(0x4710E4E8); /* 0x47038F94: mov eax, dword ptr [0x4710e4e8] */ 11370 MEM32(FS_BASE + (0)) = ecx; /* 0x47038F99: mov dword ptr fs:[0], ecx */ 11371 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 11372 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11373 esp = esp + 0x10u; /* 0x47038FA0: add esp, 0x10 */ 11374 _flag_k = FK_ADD; 11375 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47038FA3: ret */ 11376 RECOMP_REGS_OUT(); 11377 } 11378 11379 void sub_47038FB0(void) { 11380 int _fpu_cmp = 0; 11381 uint32_t _cf = 0; 11382 int _df = 1; 11383 uint32_t _flag_k = FK_NONE; 11384 uint32_t _flag_a = 0, _flag_b = 0; 11385 uint32_t _itail_tgt = 0; 11386 RECOMP_REGS_LOCALS 11387 RECOMP_ENTER(0x47038FB0u); 11388 11389 L_47038FB0: 11390 PUSH32(esp, esi); /* 0x47038FB0: push esi */ 11391 esi = MEM32(esp + 0x8); /* 0x47038FB1: mov esi, dword ptr [esp + 8] */ 11392 eax = MEM32(esi + 0x1130); /* 0x47038FB5: mov eax, dword ptr [esi + 0x1130] */ 11393 /* test eax, eax */ /* 0x47038FBB: test eax, eax */ 11394 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11395 _cf = 0; 11396 _flag_k = FK_TEST; 11397 if (TEST_Z(_flag_a, _flag_b)) goto L_47038FC4; /* 0x47038FBD: je 0x47038fc4 */ 11398 L_47038FBF: 11399 MEM32(eax + 0x20) = esi; /* 0x47038FBF: mov dword ptr [eax + 0x20], esi */ 11400 esi = POP32_VAL(esp); /* 0x47038FC2: pop esi */ 11401 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47038FC3: ret */ 11402 L_47038FC4: 11403 /* test esi, esi */ /* 0x47038FC4: test esi, esi */ 11404 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 11405 _cf = 0; 11406 _flag_k = FK_TEST; 11407 if (TEST_Z(_flag_a, _flag_b)) goto L_47038FD8; /* 0x47038FC6: je 0x47038fd8 */ 11408 L_47038FC8: 11409 ecx = esi; /* 0x47038FC8: mov ecx, esi */ 11410 RECOMP_ICALL(0x470394C0u); /* 0x47038FCA: call 0x470394c0 */ /* not lifted */ 11411 RECOMP_FLAGS_IN(); 11412 PUSH32(esp, esi); /* 0x47038FCF: push esi */ 11413 RECOMP_ICALL(0x470A32A2u); /* 0x47038FD0: call 0x470a32a2 */ /* not lifted */ 11414 RECOMP_FLAGS_IN(); 11415 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11416 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11417 esp = esp + 4; /* 0x47038FD5: add esp, 4 */ 11418 _flag_k = FK_ADD; 11419 L_47038FD8: 11420 esi = POP32_VAL(esp); /* 0x47038FD8: pop esi */ 11421 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47038FD9: ret */ 11422 RECOMP_REGS_OUT(); 11423 } 11424 11425 void sub_47038FE0(void) { 11426 int _fpu_cmp = 0; 11427 uint32_t _cf = 0; 11428 int _df = 1; 11429 uint32_t _flag_k = FK_NONE; 11430 uint32_t _flag_a = 0, _flag_b = 0; 11431 uint32_t _itail_tgt = 0; 11432 RECOMP_REGS_LOCALS 11433 RECOMP_ENTER(0x47038FE0u); 11434 11435 L_47038FE0: 11436 PUSH32(esp, ecx); /* 0x47038FE0: push ecx */ 11437 eax = MEM32(0x4710E4DC); /* 0x47038FE1: mov eax, dword ptr [0x4710e4dc] */ 11438 /* test eax, eax */ /* 0x47038FE6: test eax, eax */ 11439 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11440 _cf = 0; 11441 _flag_k = FK_TEST; 11442 MEM32(esp) = 0; /* 0x47038FE8: mov dword ptr [esp], 0 */ 11443 if (TEST_Z(_flag_a, _flag_b)) goto L_47039019; /* 0x47038FF0: je 0x47039019 */ 11444 L_47038FF2: 11445 eax = MEM32(0x4710E4BC); /* 0x47038FF2: mov eax, dword ptr [0x4710e4bc] */ 11446 ecx = esp; /* 0x47038FF7: lea ecx, [esp] */ 11447 PUSH32(esp, ecx); /* 0x47038FFB: push ecx */ 11448 PUSH32(esp, eax); /* 0x47038FFC: push eax */ 11449 RECOMP_ICALL(0x47004600u); /* 0x47038FFD: call 0x47004600 */ /* not lifted */ 11450 RECOMP_FLAGS_IN(); 11451 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 11452 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11453 esp = esp + 8; /* 0x47039002: add esp, 8 */ 11454 _flag_k = FK_ADD; 11455 /* cmp eax, 0xFFFFFFFFu */ /* 0x47039005: cmp eax, -1 */ 11456 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 11457 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11458 _flag_k = FK_CMP; 11459 if (CMP_EQ(_flag_a, _flag_b)) goto L_47039019; /* 0x47039008: je 0x47039019 */ 11460 L_4703900A: 11461 eax = MEM32(esp); /* 0x4703900A: mov eax, dword ptr [esp] */ 11462 /* test eax, eax */ /* 0x4703900E: test eax, eax */ 11463 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11464 _cf = 0; 11465 _flag_k = FK_TEST; 11466 if (TEST_Z(_flag_a, _flag_b)) goto L_47039019; /* 0x47039010: je 0x47039019 */ 11467 L_47039012: 11468 eax = 1; /* 0x47039012: mov eax, 1 */ 11469 ecx = POP32_VAL(esp); /* 0x47039017: pop ecx */ 11470 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47039018: ret */ 11471 L_47039019: 11472 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11473 eax = 0; /* 0x47039019: xor eax, eax */ 11474 _cf = 0; 11475 _flag_k = FK_TEST; 11476 ecx = POP32_VAL(esp); /* 0x4703901B: pop ecx */ 11477 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703901C: ret */ 11478 RECOMP_REGS_OUT(); 11479 } 11480 11481 void sub_47039020(void) { 11482 int _fpu_cmp = 0; 11483 uint32_t _cf = 0; 11484 int _df = 1; 11485 uint32_t _flag_k = FK_NONE; 11486 uint32_t _flag_a = 0, _flag_b = 0; 11487 uint32_t _itail_tgt = 0; 11488 RECOMP_REGS_LOCALS 11489 RECOMP_ENTER(0x47039020u); 11490 11491 L_47039020: 11492 PUSH32(esp, 0xFFFFFFFFu); /* 0x47039020: push -1 */ 11493 PUSH32(esp, 0x470A5EBBu); /* 0x47039022: push 0x470a5ebb */ 11494 eax = MEM32(FS_BASE + (0)); /* 0x47039027: mov eax, dword ptr fs:[0] */ 11495 PUSH32(esp, eax); /* 0x4703902D: push eax */ 11496 MEM32(FS_BASE + (0)) = esp; /* 0x4703902E: mov dword ptr fs:[0], esp */ 11497 PUSH32(esp, ecx); /* 0x47039035: push ecx */ 11498 eax = MEM32(0x4710E4DC); /* 0x47039036: mov eax, dword ptr [0x4710e4dc] */ 11499 /* test eax, eax */ /* 0x4703903B: test eax, eax */ 11500 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11501 _cf = 0; 11502 _flag_k = FK_TEST; 11503 PUSH32(esp, ebx); /* 0x4703903D: push ebx */ 11504 PUSH32(esp, ebp); /* 0x4703903E: push ebp */ 11505 PUSH32(esp, esi); /* 0x4703903F: push esi */ 11506 PUSH32(esp, edi); /* 0x47039040: push edi */ 11507 if (TEST_NZ(_flag_a, _flag_b)) goto L_470390A3; /* 0x47039041: jne 0x470390a3 */ 11508 L_47039043: 11509 esi = MEM32(0x4710E9C8); /* 0x47039043: mov esi, dword ptr [0x4710e9c8] */ 11510 PUSH32(esp, esi); /* 0x47039049: push esi */ 11511 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x4703904A: call dword ptr [0x470ac180] */ 11512 RECOMP_FLAGS_IN(); 11513 eax = MEM32(0x4710E4DC); /* 0x47039050: mov eax, dword ptr [0x4710e4dc] */ 11514 /* test eax, eax */ /* 0x47039055: test eax, eax */ 11515 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11516 _cf = 0; 11517 _flag_k = FK_TEST; 11518 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703909C; /* 0x47039057: jne 0x4703909c */ 11519 L_47039059: 11520 RECOMP_ICALL(0x47038EC0u); /* 0x47039059: call 0x47038ec0 */ /* not lifted */ 11521 RECOMP_FLAGS_IN(); 11522 PUSH32(esp, 0); /* 0x4703905E: push 0 */ 11523 PUSH32(esp, 0x47038FB0u); /* 0x47039060: push 0x47038fb0 */ 11524 PUSH32(esp, 0x4710E4BCu); /* 0x47039065: push 0x4710e4bc */ 11525 RECOMP_ICALL(0x47056190u); /* 0x4703906A: call 0x47056190 */ /* not lifted */ 11526 RECOMP_FLAGS_IN(); 11527 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 11528 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11529 esp = esp + 0xCu; /* 0x4703906F: add esp, 0xc */ 11530 _flag_k = FK_ADD; 11531 /* test eax, eax */ /* 0x47039072: test eax, eax */ 11532 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11533 _cf = 0; 11534 _flag_k = FK_TEST; 11535 if (TEST_Z(_flag_a, _flag_b)) goto L_47039092; /* 0x47039074: je 0x47039092 */ 11536 L_47039076: 11537 PUSH32(esp, esi); /* 0x47039076: push esi */ 11538 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47039077: call dword ptr [0x470ac190] */ 11539 RECOMP_FLAGS_IN(); 11540 edi = POP32_VAL(esp); /* 0x4703907D: pop edi */ 11541 esi = POP32_VAL(esp); /* 0x4703907E: pop esi */ 11542 ebp = POP32_VAL(esp); /* 0x4703907F: pop ebp */ 11543 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11544 eax = 0; /* 0x47039080: xor eax, eax */ 11545 _cf = 0; 11546 _flag_k = FK_TEST; 11547 ebx = POP32_VAL(esp); /* 0x47039082: pop ebx */ 11548 ecx = MEM32(esp + 0x4); /* 0x47039083: mov ecx, dword ptr [esp + 4] */ 11549 MEM32(FS_BASE + (0)) = ecx; /* 0x47039087: mov dword ptr fs:[0], ecx */ 11550 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 11551 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11552 esp = esp + 0x10u; /* 0x4703908E: add esp, 0x10 */ 11553 _flag_k = FK_ADD; 11554 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47039091: ret */ 11555 L_47039092: 11556 MEM32(0x4710E4DC) = 1; /* 0x47039092: mov dword ptr [0x4710e4dc], 1 */ 11557 L_4703909C: 11558 PUSH32(esp, esi); /* 0x4703909C: push esi */ 11559 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4703909D: call dword ptr [0x470ac190] */ 11560 RECOMP_FLAGS_IN(); 11561 L_470390A3: 11562 ebp = MEM32(0x470AC3C8); /* 0x470390A3: mov ebp, dword ptr [0x470ac3c8] */ 11563 esi = MEM32(0x4710E4BC); /* 0x470390A9: mov esi, dword ptr [0x4710e4bc] */ 11564 RECOMP_ICALL(ebp); /* 0x470390AF: call ebp */ 11565 RECOMP_FLAGS_IN(); 11566 edi = eax; /* 0x470390B1: mov edi, eax */ 11567 ebx = MEM32(edi); /* 0x470390B3: mov ebx, dword ptr [edi] */ 11568 PUSH32(esp, esi); /* 0x470390B5: push esi */ 11569 RECOMP_ICALL(MEM32(0x470AC138)); /* 0x470390B6: call dword ptr [0x470ac138] */ 11570 RECOMP_FLAGS_IN(); 11571 esi = eax; /* 0x470390BC: mov esi, eax */ 11572 /* test esi, esi */ /* 0x470390BE: test esi, esi */ 11573 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 11574 _cf = 0; 11575 _flag_k = FK_TEST; 11576 if (TEST_NZ(_flag_a, _flag_b)) goto L_470390E5; /* 0x470390C0: jne 0x470390e5 */ 11577 L_470390C2: 11578 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470390C2: call dword ptr [0x470ac150] */ 11579 RECOMP_FLAGS_IN(); 11580 ebx = eax; /* 0x470390C8: mov ebx, eax */ 11581 /* test ebx, ebx */ /* 0x470390CA: test ebx, ebx */ 11582 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 11583 _cf = 0; 11584 _flag_k = FK_TEST; 11585 if (TEST_Z(_flag_a, _flag_b)) goto L_470390E5; /* 0x470390CC: je 0x470390e5 */ 11586 L_470390CE: 11587 MEM32(edi) = ebx; /* 0x470390CE: mov dword ptr [edi], ebx */ 11588 edi = POP32_VAL(esp); /* 0x470390D0: pop edi */ 11589 esi = POP32_VAL(esp); /* 0x470390D1: pop esi */ 11590 ebp = POP32_VAL(esp); /* 0x470390D2: pop ebp */ 11591 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11592 eax = 0; /* 0x470390D3: xor eax, eax */ 11593 _cf = 0; 11594 _flag_k = FK_TEST; 11595 ebx = POP32_VAL(esp); /* 0x470390D5: pop ebx */ 11596 ecx = MEM32(esp + 0x4); /* 0x470390D6: mov ecx, dword ptr [esp + 4] */ 11597 MEM32(FS_BASE + (0)) = ecx; /* 0x470390DA: mov dword ptr fs:[0], ecx */ 11598 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 11599 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11600 esp = esp + 0x10u; /* 0x470390E1: add esp, 0x10 */ 11601 _flag_k = FK_ADD; 11602 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470390E4: ret */ 11603 L_470390E5: 11604 /* test esi, esi */ /* 0x470390E5: test esi, esi */ 11605 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 11606 _cf = 0; 11607 _flag_k = FK_TEST; 11608 MEM32(edi) = ebx; /* 0x470390E7: mov dword ptr [edi], ebx */ 11609 if (TEST_NZ(_flag_a, _flag_b)) goto L_47039163; /* 0x470390E9: jne 0x47039163 */ 11610 L_470390EB: 11611 PUSH32(esp, 0x1140u); /* 0x470390EB: push 0x1140 */ 11612 RECOMP_ICALL(0x470A33F2u); /* 0x470390F0: call 0x470a33f2 */ /* not lifted */ 11613 RECOMP_FLAGS_IN(); 11614 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11615 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11616 esp = esp + 4; /* 0x470390F5: add esp, 4 */ 11617 _flag_k = FK_ADD; 11618 MEM32(esp + 0x10) = eax; /* 0x470390F8: mov dword ptr [esp + 0x10], eax */ 11619 /* test eax, eax */ /* 0x470390FC: test eax, eax */ 11620 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11621 _cf = 0; 11622 _flag_k = FK_TEST; 11623 MEM32(esp + 0x1C) = esi; /* 0x470390FE: mov dword ptr [esp + 0x1c], esi */ 11624 if (TEST_Z(_flag_a, _flag_b)) goto L_4703910D; /* 0x47039102: je 0x4703910d */ 11625 L_47039104: 11626 ecx = eax; /* 0x47039104: mov ecx, eax */ 11627 RECOMP_ICALL(0x47039400u); /* 0x47039106: call 0x47039400 */ /* not lifted */ 11628 RECOMP_FLAGS_IN(); 11629 goto L_4703910F; /* 0x4703910B: jmp 0x4703910f */ 11630 L_4703910D: 11631 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11632 eax = 0; /* 0x4703910D: xor eax, eax */ 11633 _cf = 0; 11634 _flag_k = FK_TEST; 11635 L_4703910F: 11636 /* test eax, eax */ /* 0x4703910F: test eax, eax */ 11637 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11638 _cf = 0; 11639 _flag_k = FK_TEST; 11640 MEM32(esp + 0x1C) = 0xFFFFFFFFu; /* 0x47039111: mov dword ptr [esp + 0x1c], 0xffffffff */ 11641 esi = eax; /* 0x47039119: mov esi, eax */ 11642 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703913A; /* 0x4703911B: jne 0x4703913a */ 11643 L_4703911D: 11644 RECOMP_ICALL(ebp); /* 0x4703911D: call ebp */ 11645 RECOMP_FLAGS_IN(); 11646 edi = POP32_VAL(esp); /* 0x4703911F: pop edi */ 11647 esi = POP32_VAL(esp); /* 0x47039120: pop esi */ 11648 ebp = POP32_VAL(esp); /* 0x47039121: pop ebp */ 11649 MEM32(eax) = 0xCu; /* 0x47039122: mov dword ptr [eax], 0xc */ 11650 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11651 eax = 0; /* 0x47039128: xor eax, eax */ 11652 _cf = 0; 11653 _flag_k = FK_TEST; 11654 ebx = POP32_VAL(esp); /* 0x4703912A: pop ebx */ 11655 ecx = MEM32(esp + 0x4); /* 0x4703912B: mov ecx, dword ptr [esp + 4] */ 11656 MEM32(FS_BASE + (0)) = ecx; /* 0x4703912F: mov dword ptr fs:[0], ecx */ 11657 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 11658 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11659 esp = esp + 0x10u; /* 0x47039136: add esp, 0x10 */ 11660 _flag_k = FK_ADD; 11661 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47039139: ret */ 11662 L_4703913A: 11663 ecx = MEM32(0x4710E4BC); /* 0x4703913A: mov ecx, dword ptr [0x4710e4bc] */ 11664 PUSH32(esp, eax); /* 0x47039140: push eax */ 11665 PUSH32(esp, ecx); /* 0x47039141: push ecx */ 11666 RECOMP_ICALL(0x47056110u); /* 0x47039142: call 0x47056110 */ /* not lifted */ 11667 RECOMP_FLAGS_IN(); 11668 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 11669 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11670 esp = esp + 8; /* 0x47039147: add esp, 8 */ 11671 _flag_k = FK_ADD; 11672 /* test eax, eax */ /* 0x4703914A: test eax, eax */ 11673 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11674 _cf = 0; 11675 _flag_k = FK_TEST; 11676 if (TEST_Z(_flag_a, _flag_b)) goto L_47039163; /* 0x4703914C: je 0x47039163 */ 11677 L_4703914E: 11678 edi = POP32_VAL(esp); /* 0x4703914E: pop edi */ 11679 esi = POP32_VAL(esp); /* 0x4703914F: pop esi */ 11680 ebp = POP32_VAL(esp); /* 0x47039150: pop ebp */ 11681 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11682 eax = 0; /* 0x47039151: xor eax, eax */ 11683 _cf = 0; 11684 _flag_k = FK_TEST; 11685 ebx = POP32_VAL(esp); /* 0x47039153: pop ebx */ 11686 ecx = MEM32(esp + 0x4); /* 0x47039154: mov ecx, dword ptr [esp + 4] */ 11687 MEM32(FS_BASE + (0)) = ecx; /* 0x47039158: mov dword ptr fs:[0], ecx */ 11688 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 11689 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11690 esp = esp + 0x10u; /* 0x4703915F: add esp, 0x10 */ 11691 _flag_k = FK_ADD; 11692 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47039162: ret */ 11693 L_47039163: 11694 ecx = MEM32(esp + 0x14); /* 0x47039163: mov ecx, dword ptr [esp + 0x14] */ 11695 edi = POP32_VAL(esp); /* 0x47039167: pop edi */ 11696 eax = esi; /* 0x47039168: mov eax, esi */ 11697 esi = POP32_VAL(esp); /* 0x4703916A: pop esi */ 11698 ebp = POP32_VAL(esp); /* 0x4703916B: pop ebp */ 11699 ebx = POP32_VAL(esp); /* 0x4703916C: pop ebx */ 11700 MEM32(FS_BASE + (0)) = ecx; /* 0x4703916D: mov dword ptr fs:[0], ecx */ 11701 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 11702 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11703 esp = esp + 0x10u; /* 0x47039174: add esp, 0x10 */ 11704 _flag_k = FK_ADD; 11705 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47039177: ret */ 11706 RECOMP_REGS_OUT(); 11707 } 11708 11709 void sub_47039180(void) { 11710 int _fpu_cmp = 0; 11711 uint32_t _cf = 0; 11712 int _df = 1; 11713 uint32_t _flag_k = FK_NONE; 11714 uint32_t _flag_a = 0, _flag_b = 0; 11715 uint32_t _itail_tgt = 0; 11716 RECOMP_REGS_LOCALS 11717 RECOMP_ENTER(0x47039180u); 11718 11719 L_47039180: 11720 edx = MEM32(0x4710724C); /* 0x47039180: mov edx, dword ptr [0x4710724c] */ 11721 PUSH32(esp, esi); /* 0x47039186: push esi */ 11722 esi = MEM32(esp + 0x8); /* 0x47039187: mov esi, dword ptr [esp + 8] */ 11723 _flag_a = (uint32_t)((edx | esi)); _flag_b = (uint32_t)((edx | esi)); 11724 edx = edx | esi; /* 0x4703918B: or edx, esi */ 11725 _cf = 0; 11726 _flag_k = FK_TEST; 11727 MEM32(0x4710724C) = edx; /* 0x4703918D: mov dword ptr [0x4710724c], edx */ 11728 RECOMP_ICALL(0x47039020u); /* 0x47039193: call 0x47039020 */ /* not lifted */ 11729 RECOMP_FLAGS_IN(); 11730 _flag_a = (uint32_t)((MEM32(eax + 0x113C) | esi)); _flag_b = (uint32_t)((MEM32(eax + 0x113C) | esi)); 11731 MEM32(eax + 0x113C) = MEM32(eax + 0x113C) | esi; /* 0x47039198: or dword ptr [eax + 0x113c], esi */ 11732 _cf = 0; 11733 _flag_k = FK_TEST; 11734 esi = POP32_VAL(esp); /* 0x4703919E: pop esi */ 11735 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703919F: ret */ 11736 RECOMP_REGS_OUT(); 11737 } 11738 11739 void sub_470391A0(void) { 11740 int _fpu_cmp = 0; 11741 uint32_t _cf = 0; 11742 int _df = 1; 11743 uint32_t _flag_k = FK_NONE; 11744 uint32_t _flag_a = 0, _flag_b = 0; 11745 uint32_t _itail_tgt = 0; 11746 RECOMP_REGS_LOCALS 11747 RECOMP_ENTER(0x470391A0u); 11748 11749 L_470391A0: 11750 edx = MEM32(0x4710724C); /* 0x470391A0: mov edx, dword ptr [0x4710724c] */ 11751 PUSH32(esp, esi); /* 0x470391A6: push esi */ 11752 esi = MEM32(esp + 0x8); /* 0x470391A7: mov esi, dword ptr [esp + 8] */ 11753 esi = ~esi; /* 0x470391AB: not esi */ 11754 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 11755 edx = edx & esi; /* 0x470391AD: and edx, esi */ 11756 _cf = 0; 11757 _flag_k = FK_TEST; 11758 MEM32(0x4710724C) = edx; /* 0x470391AF: mov dword ptr [0x4710724c], edx */ 11759 RECOMP_ICALL(0x47039020u); /* 0x470391B5: call 0x47039020 */ /* not lifted */ 11760 RECOMP_FLAGS_IN(); 11761 _flag_a = (uint32_t)(MEM32(eax + 0x113C)); _flag_b = (uint32_t)(esi); 11762 MEM32(eax + 0x113C) = MEM32(eax + 0x113C) & esi; /* 0x470391BA: and dword ptr [eax + 0x113c], esi */ 11763 _cf = 0; 11764 _flag_k = FK_TEST; 11765 esi = POP32_VAL(esp); /* 0x470391C0: pop esi */ 11766 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470391C1: ret */ 11767 RECOMP_REGS_OUT(); 11768 } 11769 11770 void sub_470391D0(void) { 11771 int _fpu_cmp = 0; 11772 uint32_t _cf = 0; 11773 int _df = 1; 11774 uint32_t _flag_k = FK_NONE; 11775 uint32_t _flag_a = 0, _flag_b = 0; 11776 uint32_t _itail_tgt = 0; 11777 RECOMP_REGS_LOCALS 11778 RECOMP_ENTER(0x470391D0u); 11779 11780 L_470391D0: 11781 PUSH32(esp, esi); /* 0x470391D0: push esi */ 11782 esi = MEM32(0x4710E4E8); /* 0x470391D1: mov esi, dword ptr [0x4710e4e8] */ 11783 /* test esi, esi */ /* 0x470391D7: test esi, esi */ 11784 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 11785 _cf = 0; 11786 _flag_k = FK_TEST; 11787 if (TEST_Z(_flag_a, _flag_b)) goto L_470391EB; /* 0x470391D9: je 0x470391eb */ 11788 L_470391DB: 11789 ecx = esi; /* 0x470391DB: mov ecx, esi */ 11790 RECOMP_ICALL(0x47087E30u); /* 0x470391DD: call 0x47087e30 */ /* not lifted */ 11791 RECOMP_FLAGS_IN(); 11792 PUSH32(esp, esi); /* 0x470391E2: push esi */ 11793 RECOMP_ICALL(0x470A32A2u); /* 0x470391E3: call 0x470a32a2 */ /* not lifted */ 11794 RECOMP_FLAGS_IN(); 11795 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11796 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11797 esp = esp + 4; /* 0x470391E8: add esp, 4 */ 11798 _flag_k = FK_ADD; 11799 L_470391EB: 11800 MEM32(0x4710E4E8) = 0; /* 0x470391EB: mov dword ptr [0x4710e4e8], 0 */ 11801 esi = POP32_VAL(esp); /* 0x470391F5: pop esi */ 11802 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470391F6: ret */ 11803 RECOMP_REGS_OUT(); 11804 }