client/vendor/ace/source/lifted-0085.c (263628B)
1 #define RECOMP_GENERATED_CODE 2 #include "recomp_types.h" 3 4 void sub_470A7AE0(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(0x470A7AE0u); 13 14 goto L_470A7AE0; 15 L_470544D0: 16 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 17 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18 esp = esp - 0x20u; /* 0x470544D0: sub esp, 0x20 */ 19 _flag_k = FK_CMP; 20 PUSH32(esp, esi); /* 0x470544D3: push esi */ 21 esi = ecx; /* 0x470544D4: mov esi, ecx */ 22 /* cmp MEM32(esi), 0 */ /* 0x470544D6: cmp dword ptr [esi], 0 */ 23 _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(0); 24 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25 _flag_k = FK_CMP; 26 if (CMP_EQ(_flag_a, _flag_b)) goto L_47054580; /* 0x470544D9: je 0x47054580 */ 27 L_470544DF: 28 eax = MEM32(esi + 0xC); /* 0x470544DF: mov eax, dword ptr [esi + 0xc] */ 29 /* test eax, eax */ /* 0x470544E2: test eax, eax */ 30 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 31 _cf = 0; 32 _flag_k = FK_TEST; 33 if (TEST_NZ(_flag_a, _flag_b)) goto L_47054580; /* 0x470544E4: jne 0x47054580 */ 34 L_470544EA: 35 PUSH32(esp, edi); /* 0x470544EA: push edi */ 36 eax = esp + 0x18; /* 0x470544EB: lea eax, [esp + 0x18] */ 37 PUSH32(esp, eax); /* 0x470544EF: push eax */ 38 RECOMP_ICALL(MEM32(0x470AC1A8)); /* 0x470544F0: call dword ptr [0x470ac1a8] */ 39 RECOMP_FLAGS_IN(); 40 ecx = esp + 0x18; /* 0x470544F6: lea ecx, [esp + 0x18] */ 41 PUSH32(esp, ecx); /* 0x470544FA: push ecx */ 42 ecx = esp + 0x14; /* 0x470544FB: lea ecx, [esp + 0x14] */ 43 RECOMP_ICALL(0x47053F60u); /* 0x470544FF: call 0x47053f60 */ /* not lifted */ 44 RECOMP_FLAGS_IN(); 45 eax = MEM32(esp + 0x10); /* 0x47054504: mov eax, dword ptr [esp + 0x10] */ 46 edx = MEM32(esi + 0x4); /* 0x47054508: mov edx, dword ptr [esi + 4] */ 47 ecx = MEM32(esp + 0x14); /* 0x4705450B: mov ecx, dword ptr [esp + 0x14] */ 48 MEM32(esp + 0x20) = eax; /* 0x4705450F: mov dword ptr [esp + 0x20], eax */ 49 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 50 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 51 eax = eax - edx; /* 0x47054513: sub eax, edx */ 52 _flag_k = FK_CMP; 53 MEM32(esp + 0x8) = eax; /* 0x47054515: mov dword ptr [esp + 8], eax */ 54 eax = MEM32(esi + 0x8); /* 0x47054519: mov eax, dword ptr [esi + 8] */ 55 MEM32(esp + 0x24) = ecx; /* 0x4705451C: mov dword ptr [esp + 0x24], ecx */ 56 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 57 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 58 ecx = ecx - eax; /* 0x47054520: sub ecx, eax */ 59 _flag_k = FK_CMP; 60 MEM32(esp + 0xC) = ecx; /* 0x47054522: mov dword ptr [esp + 0xc], ecx */ 61 ecx = esp + 0x8; /* 0x47054526: lea ecx, [esp + 8] */ 62 RECOMP_ICALL(0x470543C0u); /* 0x4705452A: call 0x470543c0 */ /* not lifted */ 63 RECOMP_FLAGS_IN(); 64 ecx = esp + 0x8; /* 0x4705452F: lea ecx, [esp + 8] */ 65 RECOMP_ICALL(0x470543C0u); /* 0x47054533: call 0x470543c0 */ /* not lifted */ 66 RECOMP_FLAGS_IN(); 67 ecx = MEM32(esi); /* 0x47054538: mov ecx, dword ptr [esi] */ 68 eax = MEM32(ecx); /* 0x4705453A: mov eax, dword ptr [ecx] */ 69 edx = MEM32(esp + 0x8); /* 0x4705453C: mov edx, dword ptr [esp + 8] */ 70 /* cmp eax, edx */ /* 0x47054540: cmp eax, edx */ 71 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 72 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 73 _flag_k = FK_CMP; 74 edi = MEM32(esp + 0xC); /* 0x47054542: mov edi, dword ptr [esp + 0xc] */ 75 if (CMP_G(_flag_a, _flag_b)) goto L_47054551; /* 0x47054546: jg 0x47054551 */ 76 L_47054548: 77 /* cmp eax, edx */ /* 0x47054548: cmp eax, edx */ 78 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 79 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 80 _flag_k = FK_CMP; 81 if (CMP_NE(_flag_a, _flag_b)) goto L_47054568; /* 0x4705454A: jne 0x47054568 */ 82 L_4705454C: 83 /* cmp MEM32(ecx + 0x4), edi */ /* 0x4705454C: cmp dword ptr [ecx + 4], edi */ 84 _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(edi); 85 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 86 _flag_k = FK_CMP; 87 if (CMP_LE(_flag_a, _flag_b)) goto L_47054568; /* 0x4705454F: jle 0x47054568 */ 88 L_47054551: 89 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(edx); 90 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 91 MEM32(ecx) = MEM32(ecx) - edx; /* 0x47054551: sub dword ptr [ecx], edx */ 92 _flag_k = FK_CMP; 93 _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(edi); 94 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 95 MEM32(ecx + 0x4) = MEM32(ecx + 0x4) - edi; /* 0x47054553: sub dword ptr [ecx + 4], edi */ 96 _flag_k = FK_CMP; 97 RECOMP_ICALL(0x470543C0u); /* 0x47054556: call 0x470543c0 */ /* not lifted */ 98 RECOMP_FLAGS_IN(); 99 edi = POP32_VAL(esp); /* 0x4705455B: pop edi */ 100 MEM32(esi + 0xC) = 1; /* 0x4705455C: mov dword ptr [esi + 0xc], 1 */ 101 esi = POP32_VAL(esp); /* 0x47054563: pop esi */ 102 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 103 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 104 esp = esp + 0x20u; /* 0x47054564: add esp, 0x20 */ 105 _flag_k = FK_ADD; 106 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47054567: ret */ 107 L_47054568: 108 edx = MEM32(0x4710E9A8); /* 0x47054568: mov edx, dword ptr [0x4710e9a8] */ 109 MEM32(ecx) = edx; /* 0x4705456E: mov dword ptr [ecx], edx */ 110 eax = MEM32(0x4710E9AC); /* 0x47054570: mov eax, dword ptr [0x4710e9ac] */ 111 MEM32(ecx + 0x4) = eax; /* 0x47054575: mov dword ptr [ecx + 4], eax */ 112 MEM32(esi + 0xC) = 1; /* 0x47054578: mov dword ptr [esi + 0xc], 1 */ 113 edi = POP32_VAL(esp); /* 0x4705457F: pop edi */ 114 L_47054580: 115 esi = POP32_VAL(esp); /* 0x47054580: pop esi */ 116 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 117 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 118 esp = esp + 0x20u; /* 0x47054581: add esp, 0x20 */ 119 _flag_k = FK_ADD; 120 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47054584: ret */ 121 L_470A7AE0: 122 ecx = ebp + (-0x1C); /* 0x470A7AE0: lea ecx, [ebp - 0x1c] */ 123 RECOMP_BACKEDGE(); 124 goto L_470544D0; /* 0x470A7AE3: jmp 0x470544d0 */ 125 { RECOMP_REGS_OUT(); return; } /* end of function */ 126 RECOMP_REGS_OUT(); 127 } 128 129 void sub_470A7AE8(void) { 130 int _fpu_cmp = 0; 131 uint32_t _cf = 0; 132 int _df = 1; 133 uint32_t _flag_k = FK_NONE; 134 uint32_t _flag_a = 0, _flag_b = 0; 135 uint32_t _itail_tgt = 0; 136 RECOMP_REGS_LOCALS 137 RECOMP_ENTER(0x470A7AE8u); 138 139 goto L_470A7AE8; 140 L_470604F0: 141 edx = MEM32(ecx + 0x4); /* 0x470604F0: mov edx, dword ptr [ecx + 4] */ 142 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 143 eax = eax | 0xFFFFFFFFu; /* 0x470604F3: or eax, 0xffffffff */ 144 _cf = 0; 145 _flag_k = FK_TEST; 146 /* cmp edx, eax */ /* 0x470604F6: cmp edx, eax */ 147 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 148 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 149 _flag_k = FK_CMP; 150 if (CMP_EQ(_flag_a, _flag_b)) goto L_47060504; /* 0x470604F8: je 0x47060504 */ 151 L_470604FA: 152 MEM32(ecx + 0x4) = eax; /* 0x470604FA: mov dword ptr [ecx + 4], eax */ 153 ecx = MEM32(ecx); /* 0x470604FD: mov ecx, dword ptr [ecx] */ 154 goto L_47090300; /* 0x470604FF: jmp 0x47090300 */ 155 L_47060504: 156 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47060504: ret */ 157 L_47090300: 158 PUSH32(esp, ebp); /* 0x47090300: push ebp */ 159 PUSH32(esp, esi); /* 0x47090301: push esi */ 160 esi = ecx; /* 0x47090302: mov esi, ecx */ 161 PUSH32(esp, edi); /* 0x47090304: push edi */ 162 ebp = esi + 0x14; /* 0x47090305: lea ebp, [esi + 0x14] */ 163 PUSH32(esp, ebp); /* 0x47090308: push ebp */ 164 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47090309: call dword ptr [0x470ac180] */ 165 RECOMP_FLAGS_IN(); 166 eax = MEM32(esi + 0x3C); /* 0x4709030F: mov eax, dword ptr [esi + 0x3c] */ 167 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 168 edx = 0; /* 0x47090312: xor edx, edx */ 169 _cf = 0; 170 _flag_k = FK_TEST; 171 /* cmp eax, edx */ /* 0x47090314: cmp eax, edx */ 172 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 173 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 174 _flag_k = FK_CMP; 175 if (CMP_LE(_flag_a, _flag_b)) goto L_47090329; /* 0x47090316: jle 0x47090329 */ 176 L_47090318: 177 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 178 eax = eax - 1; /* 0x47090318: dec eax */ 179 _flag_k = FK_DEC; 180 PUSH32(esp, ebp); /* 0x47090319: push ebp */ 181 MEM32(esi + 0x3C) = eax; /* 0x4709031A: mov dword ptr [esi + 0x3c], eax */ 182 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709031D: call dword ptr [0x470ac190] */ 183 RECOMP_FLAGS_IN(); 184 edi = POP32_VAL(esp); /* 0x47090323: pop edi */ 185 esi = POP32_VAL(esp); /* 0x47090324: pop esi */ 186 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 187 eax = 0; /* 0x47090325: xor eax, eax */ 188 _cf = 0; 189 _flag_k = FK_TEST; 190 ebp = POP32_VAL(esp); /* 0x47090327: pop ebp */ 191 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090328: ret */ 192 L_47090329: 193 eax = MEM32(0x4710E900); /* 0x47090329: mov eax, dword ptr [0x4710e900] */ 194 edi = esi + 0x4; /* 0x4709032E: lea edi, [esi + 4] */ 195 MEM32(esi + 0x30) = eax; /* 0x47090331: mov dword ptr [esi + 0x30], eax */ 196 eax = MEM32(edi); /* 0x47090334: mov eax, dword ptr [edi] */ 197 /* cmp eax, edx */ /* 0x47090336: cmp eax, edx */ 198 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 199 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 200 _flag_k = FK_CMP; 201 MEM32(esi + 0x34) = edx; /* 0x47090338: mov dword ptr [esi + 0x34], edx */ 202 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x4709033B: jne 0x47090352 */ 203 L_4709033D: 204 /* cmp MEM32(esi + 0xC), edx */ /* 0x4709033D: cmp dword ptr [esi + 0xc], edx */ 205 _flag_a = (uint32_t)(MEM32(esi + 0xC)); _flag_b = (uint32_t)(edx); 206 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 207 _flag_k = FK_CMP; 208 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x47090340: jne 0x47090352 */ 209 L_47090342: 210 PUSH32(esp, ebp); /* 0x47090342: push ebp */ 211 MEM32(esi + 0x40) = edx; /* 0x47090343: mov dword ptr [esi + 0x40], edx */ 212 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47090346: call dword ptr [0x470ac190] */ 213 RECOMP_FLAGS_IN(); 214 edi = POP32_VAL(esp); /* 0x4709034C: pop edi */ 215 esi = POP32_VAL(esp); /* 0x4709034D: pop esi */ 216 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 217 eax = 0; /* 0x4709034E: xor eax, eax */ 218 _cf = 0; 219 _flag_k = FK_TEST; 220 ebp = POP32_VAL(esp); /* 0x47090350: pop ebp */ 221 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090351: ret */ 222 L_47090352: 223 /* cmp eax, edx */ /* 0x47090352: cmp eax, edx */ 224 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 225 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 226 _flag_k = FK_CMP; 227 ecx = 1; /* 0x47090354: mov ecx, 1 */ 228 if (CMP_EQ(_flag_a, _flag_b)) goto L_47090364; /* 0x47090359: je 0x47090364 */ 229 L_4709035B: 230 MEM32(esi + 0x34) = 2; /* 0x4709035B: mov dword ptr [esi + 0x34], 2 */ 231 goto L_4709036A; /* 0x47090362: jmp 0x4709036a */ 232 L_47090364: 233 MEM32(esi + 0x34) = ecx; /* 0x47090364: mov dword ptr [esi + 0x34], ecx */ 234 edi = esi + 0xC; /* 0x47090367: lea edi, [esi + 0xc] */ 235 L_4709036A: 236 eax = MEM32(edi); /* 0x4709036A: mov eax, dword ptr [edi] */ 237 MEM32(eax + 0x10) = ecx; /* 0x4709036C: mov dword ptr [eax + 0x10], ecx */ 238 eax = MEM32(edi); /* 0x4709036F: mov eax, dword ptr [edi] */ 239 PUSH32(esp, edx); /* 0x47090371: push edx */ 240 PUSH32(esp, ecx); /* 0x47090372: push ecx */ 241 ecx = MEM32(eax + 0x8); /* 0x47090373: mov ecx, dword ptr [eax + 8] */ 242 PUSH32(esp, ecx); /* 0x47090376: push ecx */ 243 RECOMP_ICALL(MEM32(0x470AC168)); /* 0x47090377: call dword ptr [0x470ac168] */ 244 RECOMP_FLAGS_IN(); 245 /* test eax, eax */ /* 0x4709037D: test eax, eax */ 246 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 247 _cf = 0; 248 _flag_k = FK_TEST; 249 if (TEST_NZ(_flag_a, _flag_b)) goto L_47090393; /* 0x4709037F: jne 0x47090393 */ 250 L_47090381: 251 PUSH32(esp, ebx); /* 0x47090381: push ebx */ 252 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47090382: call dword ptr [0x470ac3c8] */ 253 RECOMP_FLAGS_IN(); 254 ebx = eax; /* 0x47090388: mov ebx, eax */ 255 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4709038A: call dword ptr [0x470ac150] */ 256 RECOMP_FLAGS_IN(); 257 MEM32(ebx) = eax; /* 0x47090390: mov dword ptr [ebx], eax */ 258 ebx = POP32_VAL(esp); /* 0x47090392: pop ebx */ 259 L_47090393: 260 edx = MEM32(edi); /* 0x47090393: mov edx, dword ptr [edi] */ 261 eax = MEM32(edx + 0x4); /* 0x47090395: mov eax, dword ptr [edx + 4] */ 262 PUSH32(esp, ebp); /* 0x47090398: push ebp */ 263 MEM32(esi + 0x30) = eax; /* 0x47090399: mov dword ptr [esi + 0x30], eax */ 264 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709039C: call dword ptr [0x470ac190] */ 265 RECOMP_FLAGS_IN(); 266 edi = POP32_VAL(esp); /* 0x470903A2: pop edi */ 267 esi = POP32_VAL(esp); /* 0x470903A3: pop esi */ 268 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 269 eax = 0; /* 0x470903A4: xor eax, eax */ 270 _cf = 0; 271 _flag_k = FK_TEST; 272 ebp = POP32_VAL(esp); /* 0x470903A6: pop ebp */ 273 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470903A7: ret */ 274 L_470A7AE8: 275 ecx = ebp + (-0x3C); /* 0x470A7AE8: lea ecx, [ebp - 0x3c] */ 276 RECOMP_BACKEDGE(); 277 goto L_470604F0; /* 0x470A7AEB: jmp 0x470604f0 */ 278 { RECOMP_REGS_OUT(); return; } /* end of function */ 279 RECOMP_REGS_OUT(); 280 } 281 282 void sub_470A7AF0(void) { 283 int _fpu_cmp = 0; 284 uint32_t _cf = 0; 285 int _df = 1; 286 uint32_t _flag_k = FK_NONE; 287 uint32_t _flag_a = 0, _flag_b = 0; 288 uint32_t _itail_tgt = 0; 289 RECOMP_REGS_LOCALS 290 RECOMP_ENTER(0x470A7AF0u); 291 292 goto L_470A7AF0; 293 L_470A33EC: 294 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 295 L_470A7AF0: 296 eax = 0x470B5600u; /* 0x470A7AF0: mov eax, 0x470b5600 */ 297 L_470A7AF5: 298 RECOMP_BACKEDGE(); 299 goto L_470A33EC; /* 0x470A7AF5: jmp 0x470a33ec */ 300 { RECOMP_REGS_OUT(); return; } /* end of function */ 301 _ljump: 302 switch (_itail_tgt) { 303 case 0x470A33ECu: goto L_470A33EC; 304 case 0x470A7AF0u: goto L_470A7AF0; 305 case 0x470A7AF5u: goto L_470A7AF5; 306 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 307 } 308 RECOMP_REGS_OUT(); 309 } 310 311 void sub_470A7B00(void) { 312 int _fpu_cmp = 0; 313 uint32_t _cf = 0; 314 int _df = 1; 315 uint32_t _flag_k = FK_NONE; 316 uint32_t _flag_a = 0, _flag_b = 0; 317 uint32_t _itail_tgt = 0; 318 RECOMP_REGS_LOCALS 319 RECOMP_ENTER(0x470A7B00u); 320 321 goto L_470A7B00; 322 L_470604F0: 323 edx = MEM32(ecx + 0x4); /* 0x470604F0: mov edx, dword ptr [ecx + 4] */ 324 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 325 eax = eax | 0xFFFFFFFFu; /* 0x470604F3: or eax, 0xffffffff */ 326 _cf = 0; 327 _flag_k = FK_TEST; 328 /* cmp edx, eax */ /* 0x470604F6: cmp edx, eax */ 329 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 330 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 331 _flag_k = FK_CMP; 332 if (CMP_EQ(_flag_a, _flag_b)) goto L_47060504; /* 0x470604F8: je 0x47060504 */ 333 L_470604FA: 334 MEM32(ecx + 0x4) = eax; /* 0x470604FA: mov dword ptr [ecx + 4], eax */ 335 ecx = MEM32(ecx); /* 0x470604FD: mov ecx, dword ptr [ecx] */ 336 goto L_47090300; /* 0x470604FF: jmp 0x47090300 */ 337 L_47060504: 338 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47060504: ret */ 339 L_47090300: 340 PUSH32(esp, ebp); /* 0x47090300: push ebp */ 341 PUSH32(esp, esi); /* 0x47090301: push esi */ 342 esi = ecx; /* 0x47090302: mov esi, ecx */ 343 PUSH32(esp, edi); /* 0x47090304: push edi */ 344 ebp = esi + 0x14; /* 0x47090305: lea ebp, [esi + 0x14] */ 345 PUSH32(esp, ebp); /* 0x47090308: push ebp */ 346 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47090309: call dword ptr [0x470ac180] */ 347 RECOMP_FLAGS_IN(); 348 eax = MEM32(esi + 0x3C); /* 0x4709030F: mov eax, dword ptr [esi + 0x3c] */ 349 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 350 edx = 0; /* 0x47090312: xor edx, edx */ 351 _cf = 0; 352 _flag_k = FK_TEST; 353 /* cmp eax, edx */ /* 0x47090314: cmp eax, edx */ 354 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 355 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 356 _flag_k = FK_CMP; 357 if (CMP_LE(_flag_a, _flag_b)) goto L_47090329; /* 0x47090316: jle 0x47090329 */ 358 L_47090318: 359 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 360 eax = eax - 1; /* 0x47090318: dec eax */ 361 _flag_k = FK_DEC; 362 PUSH32(esp, ebp); /* 0x47090319: push ebp */ 363 MEM32(esi + 0x3C) = eax; /* 0x4709031A: mov dword ptr [esi + 0x3c], eax */ 364 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709031D: call dword ptr [0x470ac190] */ 365 RECOMP_FLAGS_IN(); 366 edi = POP32_VAL(esp); /* 0x47090323: pop edi */ 367 esi = POP32_VAL(esp); /* 0x47090324: pop esi */ 368 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 369 eax = 0; /* 0x47090325: xor eax, eax */ 370 _cf = 0; 371 _flag_k = FK_TEST; 372 ebp = POP32_VAL(esp); /* 0x47090327: pop ebp */ 373 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090328: ret */ 374 L_47090329: 375 eax = MEM32(0x4710E900); /* 0x47090329: mov eax, dword ptr [0x4710e900] */ 376 edi = esi + 0x4; /* 0x4709032E: lea edi, [esi + 4] */ 377 MEM32(esi + 0x30) = eax; /* 0x47090331: mov dword ptr [esi + 0x30], eax */ 378 eax = MEM32(edi); /* 0x47090334: mov eax, dword ptr [edi] */ 379 /* cmp eax, edx */ /* 0x47090336: cmp eax, edx */ 380 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 381 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 382 _flag_k = FK_CMP; 383 MEM32(esi + 0x34) = edx; /* 0x47090338: mov dword ptr [esi + 0x34], edx */ 384 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x4709033B: jne 0x47090352 */ 385 L_4709033D: 386 /* cmp MEM32(esi + 0xC), edx */ /* 0x4709033D: cmp dword ptr [esi + 0xc], edx */ 387 _flag_a = (uint32_t)(MEM32(esi + 0xC)); _flag_b = (uint32_t)(edx); 388 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 389 _flag_k = FK_CMP; 390 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x47090340: jne 0x47090352 */ 391 L_47090342: 392 PUSH32(esp, ebp); /* 0x47090342: push ebp */ 393 MEM32(esi + 0x40) = edx; /* 0x47090343: mov dword ptr [esi + 0x40], edx */ 394 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47090346: call dword ptr [0x470ac190] */ 395 RECOMP_FLAGS_IN(); 396 edi = POP32_VAL(esp); /* 0x4709034C: pop edi */ 397 esi = POP32_VAL(esp); /* 0x4709034D: pop esi */ 398 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 399 eax = 0; /* 0x4709034E: xor eax, eax */ 400 _cf = 0; 401 _flag_k = FK_TEST; 402 ebp = POP32_VAL(esp); /* 0x47090350: pop ebp */ 403 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090351: ret */ 404 L_47090352: 405 /* cmp eax, edx */ /* 0x47090352: cmp eax, edx */ 406 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 407 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 408 _flag_k = FK_CMP; 409 ecx = 1; /* 0x47090354: mov ecx, 1 */ 410 if (CMP_EQ(_flag_a, _flag_b)) goto L_47090364; /* 0x47090359: je 0x47090364 */ 411 L_4709035B: 412 MEM32(esi + 0x34) = 2; /* 0x4709035B: mov dword ptr [esi + 0x34], 2 */ 413 goto L_4709036A; /* 0x47090362: jmp 0x4709036a */ 414 L_47090364: 415 MEM32(esi + 0x34) = ecx; /* 0x47090364: mov dword ptr [esi + 0x34], ecx */ 416 edi = esi + 0xC; /* 0x47090367: lea edi, [esi + 0xc] */ 417 L_4709036A: 418 eax = MEM32(edi); /* 0x4709036A: mov eax, dword ptr [edi] */ 419 MEM32(eax + 0x10) = ecx; /* 0x4709036C: mov dword ptr [eax + 0x10], ecx */ 420 eax = MEM32(edi); /* 0x4709036F: mov eax, dword ptr [edi] */ 421 PUSH32(esp, edx); /* 0x47090371: push edx */ 422 PUSH32(esp, ecx); /* 0x47090372: push ecx */ 423 ecx = MEM32(eax + 0x8); /* 0x47090373: mov ecx, dword ptr [eax + 8] */ 424 PUSH32(esp, ecx); /* 0x47090376: push ecx */ 425 RECOMP_ICALL(MEM32(0x470AC168)); /* 0x47090377: call dword ptr [0x470ac168] */ 426 RECOMP_FLAGS_IN(); 427 /* test eax, eax */ /* 0x4709037D: test eax, eax */ 428 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 429 _cf = 0; 430 _flag_k = FK_TEST; 431 if (TEST_NZ(_flag_a, _flag_b)) goto L_47090393; /* 0x4709037F: jne 0x47090393 */ 432 L_47090381: 433 PUSH32(esp, ebx); /* 0x47090381: push ebx */ 434 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47090382: call dword ptr [0x470ac3c8] */ 435 RECOMP_FLAGS_IN(); 436 ebx = eax; /* 0x47090388: mov ebx, eax */ 437 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4709038A: call dword ptr [0x470ac150] */ 438 RECOMP_FLAGS_IN(); 439 MEM32(ebx) = eax; /* 0x47090390: mov dword ptr [ebx], eax */ 440 ebx = POP32_VAL(esp); /* 0x47090392: pop ebx */ 441 L_47090393: 442 edx = MEM32(edi); /* 0x47090393: mov edx, dword ptr [edi] */ 443 eax = MEM32(edx + 0x4); /* 0x47090395: mov eax, dword ptr [edx + 4] */ 444 PUSH32(esp, ebp); /* 0x47090398: push ebp */ 445 MEM32(esi + 0x30) = eax; /* 0x47090399: mov dword ptr [esi + 0x30], eax */ 446 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709039C: call dword ptr [0x470ac190] */ 447 RECOMP_FLAGS_IN(); 448 edi = POP32_VAL(esp); /* 0x470903A2: pop edi */ 449 esi = POP32_VAL(esp); /* 0x470903A3: pop esi */ 450 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 451 eax = 0; /* 0x470903A4: xor eax, eax */ 452 _cf = 0; 453 _flag_k = FK_TEST; 454 ebp = POP32_VAL(esp); /* 0x470903A6: pop ebp */ 455 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470903A7: ret */ 456 L_470A7B00: 457 ecx = ebp + (-0x14); /* 0x470A7B00: lea ecx, [ebp - 0x14] */ 458 RECOMP_BACKEDGE(); 459 goto L_470604F0; /* 0x470A7B03: jmp 0x470604f0 */ 460 { RECOMP_REGS_OUT(); return; } /* end of function */ 461 RECOMP_REGS_OUT(); 462 } 463 464 void sub_470A7B08(void) { 465 int _fpu_cmp = 0; 466 uint32_t _cf = 0; 467 int _df = 1; 468 uint32_t _flag_k = FK_NONE; 469 uint32_t _flag_a = 0, _flag_b = 0; 470 uint32_t _itail_tgt = 0; 471 RECOMP_REGS_LOCALS 472 RECOMP_ENTER(0x470A7B08u); 473 474 goto L_470A7B08; 475 L_470A33EC: 476 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 477 L_470A7B08: 478 eax = 0x470B5630u; /* 0x470A7B08: mov eax, 0x470b5630 */ 479 L_470A7B0D: 480 RECOMP_BACKEDGE(); 481 goto L_470A33EC; /* 0x470A7B0D: jmp 0x470a33ec */ 482 { RECOMP_REGS_OUT(); return; } /* end of function */ 483 _ljump: 484 switch (_itail_tgt) { 485 case 0x470A33ECu: goto L_470A33EC; 486 case 0x470A7B08u: goto L_470A7B08; 487 case 0x470A7B0Du: goto L_470A7B0D; 488 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 489 } 490 RECOMP_REGS_OUT(); 491 } 492 493 void sub_470A7B20(void) { 494 int _fpu_cmp = 0; 495 uint32_t _cf = 0; 496 int _df = 1; 497 uint32_t _flag_k = FK_NONE; 498 uint32_t _flag_a = 0, _flag_b = 0; 499 uint32_t _itail_tgt = 0; 500 RECOMP_REGS_LOCALS 501 RECOMP_ENTER(0x470A7B20u); 502 503 goto L_470A7B20; 504 L_470604F0: 505 edx = MEM32(ecx + 0x4); /* 0x470604F0: mov edx, dword ptr [ecx + 4] */ 506 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 507 eax = eax | 0xFFFFFFFFu; /* 0x470604F3: or eax, 0xffffffff */ 508 _cf = 0; 509 _flag_k = FK_TEST; 510 /* cmp edx, eax */ /* 0x470604F6: cmp edx, eax */ 511 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 512 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 513 _flag_k = FK_CMP; 514 if (CMP_EQ(_flag_a, _flag_b)) goto L_47060504; /* 0x470604F8: je 0x47060504 */ 515 L_470604FA: 516 MEM32(ecx + 0x4) = eax; /* 0x470604FA: mov dword ptr [ecx + 4], eax */ 517 ecx = MEM32(ecx); /* 0x470604FD: mov ecx, dword ptr [ecx] */ 518 goto L_47090300; /* 0x470604FF: jmp 0x47090300 */ 519 L_47060504: 520 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47060504: ret */ 521 L_47090300: 522 PUSH32(esp, ebp); /* 0x47090300: push ebp */ 523 PUSH32(esp, esi); /* 0x47090301: push esi */ 524 esi = ecx; /* 0x47090302: mov esi, ecx */ 525 PUSH32(esp, edi); /* 0x47090304: push edi */ 526 ebp = esi + 0x14; /* 0x47090305: lea ebp, [esi + 0x14] */ 527 PUSH32(esp, ebp); /* 0x47090308: push ebp */ 528 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47090309: call dword ptr [0x470ac180] */ 529 RECOMP_FLAGS_IN(); 530 eax = MEM32(esi + 0x3C); /* 0x4709030F: mov eax, dword ptr [esi + 0x3c] */ 531 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 532 edx = 0; /* 0x47090312: xor edx, edx */ 533 _cf = 0; 534 _flag_k = FK_TEST; 535 /* cmp eax, edx */ /* 0x47090314: cmp eax, edx */ 536 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 537 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 538 _flag_k = FK_CMP; 539 if (CMP_LE(_flag_a, _flag_b)) goto L_47090329; /* 0x47090316: jle 0x47090329 */ 540 L_47090318: 541 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 542 eax = eax - 1; /* 0x47090318: dec eax */ 543 _flag_k = FK_DEC; 544 PUSH32(esp, ebp); /* 0x47090319: push ebp */ 545 MEM32(esi + 0x3C) = eax; /* 0x4709031A: mov dword ptr [esi + 0x3c], eax */ 546 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709031D: call dword ptr [0x470ac190] */ 547 RECOMP_FLAGS_IN(); 548 edi = POP32_VAL(esp); /* 0x47090323: pop edi */ 549 esi = POP32_VAL(esp); /* 0x47090324: pop esi */ 550 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 551 eax = 0; /* 0x47090325: xor eax, eax */ 552 _cf = 0; 553 _flag_k = FK_TEST; 554 ebp = POP32_VAL(esp); /* 0x47090327: pop ebp */ 555 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090328: ret */ 556 L_47090329: 557 eax = MEM32(0x4710E900); /* 0x47090329: mov eax, dword ptr [0x4710e900] */ 558 edi = esi + 0x4; /* 0x4709032E: lea edi, [esi + 4] */ 559 MEM32(esi + 0x30) = eax; /* 0x47090331: mov dword ptr [esi + 0x30], eax */ 560 eax = MEM32(edi); /* 0x47090334: mov eax, dword ptr [edi] */ 561 /* cmp eax, edx */ /* 0x47090336: cmp eax, edx */ 562 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 563 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 564 _flag_k = FK_CMP; 565 MEM32(esi + 0x34) = edx; /* 0x47090338: mov dword ptr [esi + 0x34], edx */ 566 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x4709033B: jne 0x47090352 */ 567 L_4709033D: 568 /* cmp MEM32(esi + 0xC), edx */ /* 0x4709033D: cmp dword ptr [esi + 0xc], edx */ 569 _flag_a = (uint32_t)(MEM32(esi + 0xC)); _flag_b = (uint32_t)(edx); 570 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 571 _flag_k = FK_CMP; 572 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x47090340: jne 0x47090352 */ 573 L_47090342: 574 PUSH32(esp, ebp); /* 0x47090342: push ebp */ 575 MEM32(esi + 0x40) = edx; /* 0x47090343: mov dword ptr [esi + 0x40], edx */ 576 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47090346: call dword ptr [0x470ac190] */ 577 RECOMP_FLAGS_IN(); 578 edi = POP32_VAL(esp); /* 0x4709034C: pop edi */ 579 esi = POP32_VAL(esp); /* 0x4709034D: pop esi */ 580 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 581 eax = 0; /* 0x4709034E: xor eax, eax */ 582 _cf = 0; 583 _flag_k = FK_TEST; 584 ebp = POP32_VAL(esp); /* 0x47090350: pop ebp */ 585 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090351: ret */ 586 L_47090352: 587 /* cmp eax, edx */ /* 0x47090352: cmp eax, edx */ 588 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 589 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 590 _flag_k = FK_CMP; 591 ecx = 1; /* 0x47090354: mov ecx, 1 */ 592 if (CMP_EQ(_flag_a, _flag_b)) goto L_47090364; /* 0x47090359: je 0x47090364 */ 593 L_4709035B: 594 MEM32(esi + 0x34) = 2; /* 0x4709035B: mov dword ptr [esi + 0x34], 2 */ 595 goto L_4709036A; /* 0x47090362: jmp 0x4709036a */ 596 L_47090364: 597 MEM32(esi + 0x34) = ecx; /* 0x47090364: mov dword ptr [esi + 0x34], ecx */ 598 edi = esi + 0xC; /* 0x47090367: lea edi, [esi + 0xc] */ 599 L_4709036A: 600 eax = MEM32(edi); /* 0x4709036A: mov eax, dword ptr [edi] */ 601 MEM32(eax + 0x10) = ecx; /* 0x4709036C: mov dword ptr [eax + 0x10], ecx */ 602 eax = MEM32(edi); /* 0x4709036F: mov eax, dword ptr [edi] */ 603 PUSH32(esp, edx); /* 0x47090371: push edx */ 604 PUSH32(esp, ecx); /* 0x47090372: push ecx */ 605 ecx = MEM32(eax + 0x8); /* 0x47090373: mov ecx, dword ptr [eax + 8] */ 606 PUSH32(esp, ecx); /* 0x47090376: push ecx */ 607 RECOMP_ICALL(MEM32(0x470AC168)); /* 0x47090377: call dword ptr [0x470ac168] */ 608 RECOMP_FLAGS_IN(); 609 /* test eax, eax */ /* 0x4709037D: test eax, eax */ 610 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 611 _cf = 0; 612 _flag_k = FK_TEST; 613 if (TEST_NZ(_flag_a, _flag_b)) goto L_47090393; /* 0x4709037F: jne 0x47090393 */ 614 L_47090381: 615 PUSH32(esp, ebx); /* 0x47090381: push ebx */ 616 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47090382: call dword ptr [0x470ac3c8] */ 617 RECOMP_FLAGS_IN(); 618 ebx = eax; /* 0x47090388: mov ebx, eax */ 619 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4709038A: call dword ptr [0x470ac150] */ 620 RECOMP_FLAGS_IN(); 621 MEM32(ebx) = eax; /* 0x47090390: mov dword ptr [ebx], eax */ 622 ebx = POP32_VAL(esp); /* 0x47090392: pop ebx */ 623 L_47090393: 624 edx = MEM32(edi); /* 0x47090393: mov edx, dword ptr [edi] */ 625 eax = MEM32(edx + 0x4); /* 0x47090395: mov eax, dword ptr [edx + 4] */ 626 PUSH32(esp, ebp); /* 0x47090398: push ebp */ 627 MEM32(esi + 0x30) = eax; /* 0x47090399: mov dword ptr [esi + 0x30], eax */ 628 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709039C: call dword ptr [0x470ac190] */ 629 RECOMP_FLAGS_IN(); 630 edi = POP32_VAL(esp); /* 0x470903A2: pop edi */ 631 esi = POP32_VAL(esp); /* 0x470903A3: pop esi */ 632 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 633 eax = 0; /* 0x470903A4: xor eax, eax */ 634 _cf = 0; 635 _flag_k = FK_TEST; 636 ebp = POP32_VAL(esp); /* 0x470903A6: pop ebp */ 637 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470903A7: ret */ 638 L_470A7B20: 639 ecx = ebp + (-0x14); /* 0x470A7B20: lea ecx, [ebp - 0x14] */ 640 RECOMP_BACKEDGE(); 641 goto L_470604F0; /* 0x470A7B23: jmp 0x470604f0 */ 642 { RECOMP_REGS_OUT(); return; } /* end of function */ 643 RECOMP_REGS_OUT(); 644 } 645 646 void sub_470A7B28(void) { 647 int _fpu_cmp = 0; 648 uint32_t _cf = 0; 649 int _df = 1; 650 uint32_t _flag_k = FK_NONE; 651 uint32_t _flag_a = 0, _flag_b = 0; 652 uint32_t _itail_tgt = 0; 653 RECOMP_REGS_LOCALS 654 RECOMP_ENTER(0x470A7B28u); 655 656 goto L_470A7B28; 657 L_470A33EC: 658 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 659 L_470A7B28: 660 eax = 0x470B5658u; /* 0x470A7B28: mov eax, 0x470b5658 */ 661 L_470A7B2D: 662 RECOMP_BACKEDGE(); 663 goto L_470A33EC; /* 0x470A7B2D: jmp 0x470a33ec */ 664 { RECOMP_REGS_OUT(); return; } /* end of function */ 665 _ljump: 666 switch (_itail_tgt) { 667 case 0x470A33ECu: goto L_470A33EC; 668 case 0x470A7B28u: goto L_470A7B28; 669 case 0x470A7B2Du: goto L_470A7B2D; 670 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 671 } 672 RECOMP_REGS_OUT(); 673 } 674 675 void sub_470A7B40(void) { 676 int _fpu_cmp = 0; 677 uint32_t _cf = 0; 678 int _df = 1; 679 uint32_t _flag_k = FK_NONE; 680 uint32_t _flag_a = 0, _flag_b = 0; 681 uint32_t _itail_tgt = 0; 682 RECOMP_REGS_LOCALS 683 RECOMP_ENTER(0x470A7B40u); 684 685 goto L_470A7B40; 686 L_470604F0: 687 edx = MEM32(ecx + 0x4); /* 0x470604F0: mov edx, dword ptr [ecx + 4] */ 688 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 689 eax = eax | 0xFFFFFFFFu; /* 0x470604F3: or eax, 0xffffffff */ 690 _cf = 0; 691 _flag_k = FK_TEST; 692 /* cmp edx, eax */ /* 0x470604F6: cmp edx, eax */ 693 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 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_47060504; /* 0x470604F8: je 0x47060504 */ 697 L_470604FA: 698 MEM32(ecx + 0x4) = eax; /* 0x470604FA: mov dword ptr [ecx + 4], eax */ 699 ecx = MEM32(ecx); /* 0x470604FD: mov ecx, dword ptr [ecx] */ 700 goto L_47090300; /* 0x470604FF: jmp 0x47090300 */ 701 L_47060504: 702 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47060504: ret */ 703 L_47090300: 704 PUSH32(esp, ebp); /* 0x47090300: push ebp */ 705 PUSH32(esp, esi); /* 0x47090301: push esi */ 706 esi = ecx; /* 0x47090302: mov esi, ecx */ 707 PUSH32(esp, edi); /* 0x47090304: push edi */ 708 ebp = esi + 0x14; /* 0x47090305: lea ebp, [esi + 0x14] */ 709 PUSH32(esp, ebp); /* 0x47090308: push ebp */ 710 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47090309: call dword ptr [0x470ac180] */ 711 RECOMP_FLAGS_IN(); 712 eax = MEM32(esi + 0x3C); /* 0x4709030F: mov eax, dword ptr [esi + 0x3c] */ 713 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 714 edx = 0; /* 0x47090312: xor edx, edx */ 715 _cf = 0; 716 _flag_k = FK_TEST; 717 /* cmp eax, edx */ /* 0x47090314: cmp eax, edx */ 718 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 719 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 720 _flag_k = FK_CMP; 721 if (CMP_LE(_flag_a, _flag_b)) goto L_47090329; /* 0x47090316: jle 0x47090329 */ 722 L_47090318: 723 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 724 eax = eax - 1; /* 0x47090318: dec eax */ 725 _flag_k = FK_DEC; 726 PUSH32(esp, ebp); /* 0x47090319: push ebp */ 727 MEM32(esi + 0x3C) = eax; /* 0x4709031A: mov dword ptr [esi + 0x3c], eax */ 728 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709031D: call dword ptr [0x470ac190] */ 729 RECOMP_FLAGS_IN(); 730 edi = POP32_VAL(esp); /* 0x47090323: pop edi */ 731 esi = POP32_VAL(esp); /* 0x47090324: pop esi */ 732 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 733 eax = 0; /* 0x47090325: xor eax, eax */ 734 _cf = 0; 735 _flag_k = FK_TEST; 736 ebp = POP32_VAL(esp); /* 0x47090327: pop ebp */ 737 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090328: ret */ 738 L_47090329: 739 eax = MEM32(0x4710E900); /* 0x47090329: mov eax, dword ptr [0x4710e900] */ 740 edi = esi + 0x4; /* 0x4709032E: lea edi, [esi + 4] */ 741 MEM32(esi + 0x30) = eax; /* 0x47090331: mov dword ptr [esi + 0x30], eax */ 742 eax = MEM32(edi); /* 0x47090334: mov eax, dword ptr [edi] */ 743 /* cmp eax, edx */ /* 0x47090336: cmp eax, edx */ 744 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 745 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 746 _flag_k = FK_CMP; 747 MEM32(esi + 0x34) = edx; /* 0x47090338: mov dword ptr [esi + 0x34], edx */ 748 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x4709033B: jne 0x47090352 */ 749 L_4709033D: 750 /* cmp MEM32(esi + 0xC), edx */ /* 0x4709033D: cmp dword ptr [esi + 0xc], edx */ 751 _flag_a = (uint32_t)(MEM32(esi + 0xC)); _flag_b = (uint32_t)(edx); 752 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 753 _flag_k = FK_CMP; 754 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x47090340: jne 0x47090352 */ 755 L_47090342: 756 PUSH32(esp, ebp); /* 0x47090342: push ebp */ 757 MEM32(esi + 0x40) = edx; /* 0x47090343: mov dword ptr [esi + 0x40], edx */ 758 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47090346: call dword ptr [0x470ac190] */ 759 RECOMP_FLAGS_IN(); 760 edi = POP32_VAL(esp); /* 0x4709034C: pop edi */ 761 esi = POP32_VAL(esp); /* 0x4709034D: pop esi */ 762 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 763 eax = 0; /* 0x4709034E: xor eax, eax */ 764 _cf = 0; 765 _flag_k = FK_TEST; 766 ebp = POP32_VAL(esp); /* 0x47090350: pop ebp */ 767 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090351: ret */ 768 L_47090352: 769 /* cmp eax, edx */ /* 0x47090352: cmp eax, edx */ 770 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 771 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 772 _flag_k = FK_CMP; 773 ecx = 1; /* 0x47090354: mov ecx, 1 */ 774 if (CMP_EQ(_flag_a, _flag_b)) goto L_47090364; /* 0x47090359: je 0x47090364 */ 775 L_4709035B: 776 MEM32(esi + 0x34) = 2; /* 0x4709035B: mov dword ptr [esi + 0x34], 2 */ 777 goto L_4709036A; /* 0x47090362: jmp 0x4709036a */ 778 L_47090364: 779 MEM32(esi + 0x34) = ecx; /* 0x47090364: mov dword ptr [esi + 0x34], ecx */ 780 edi = esi + 0xC; /* 0x47090367: lea edi, [esi + 0xc] */ 781 L_4709036A: 782 eax = MEM32(edi); /* 0x4709036A: mov eax, dword ptr [edi] */ 783 MEM32(eax + 0x10) = ecx; /* 0x4709036C: mov dword ptr [eax + 0x10], ecx */ 784 eax = MEM32(edi); /* 0x4709036F: mov eax, dword ptr [edi] */ 785 PUSH32(esp, edx); /* 0x47090371: push edx */ 786 PUSH32(esp, ecx); /* 0x47090372: push ecx */ 787 ecx = MEM32(eax + 0x8); /* 0x47090373: mov ecx, dword ptr [eax + 8] */ 788 PUSH32(esp, ecx); /* 0x47090376: push ecx */ 789 RECOMP_ICALL(MEM32(0x470AC168)); /* 0x47090377: call dword ptr [0x470ac168] */ 790 RECOMP_FLAGS_IN(); 791 /* test eax, eax */ /* 0x4709037D: test eax, eax */ 792 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 793 _cf = 0; 794 _flag_k = FK_TEST; 795 if (TEST_NZ(_flag_a, _flag_b)) goto L_47090393; /* 0x4709037F: jne 0x47090393 */ 796 L_47090381: 797 PUSH32(esp, ebx); /* 0x47090381: push ebx */ 798 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47090382: call dword ptr [0x470ac3c8] */ 799 RECOMP_FLAGS_IN(); 800 ebx = eax; /* 0x47090388: mov ebx, eax */ 801 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4709038A: call dword ptr [0x470ac150] */ 802 RECOMP_FLAGS_IN(); 803 MEM32(ebx) = eax; /* 0x47090390: mov dword ptr [ebx], eax */ 804 ebx = POP32_VAL(esp); /* 0x47090392: pop ebx */ 805 L_47090393: 806 edx = MEM32(edi); /* 0x47090393: mov edx, dword ptr [edi] */ 807 eax = MEM32(edx + 0x4); /* 0x47090395: mov eax, dword ptr [edx + 4] */ 808 PUSH32(esp, ebp); /* 0x47090398: push ebp */ 809 MEM32(esi + 0x30) = eax; /* 0x47090399: mov dword ptr [esi + 0x30], eax */ 810 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709039C: call dword ptr [0x470ac190] */ 811 RECOMP_FLAGS_IN(); 812 edi = POP32_VAL(esp); /* 0x470903A2: pop edi */ 813 esi = POP32_VAL(esp); /* 0x470903A3: pop esi */ 814 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 815 eax = 0; /* 0x470903A4: xor eax, eax */ 816 _cf = 0; 817 _flag_k = FK_TEST; 818 ebp = POP32_VAL(esp); /* 0x470903A6: pop ebp */ 819 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470903A7: ret */ 820 L_470A7B40: 821 ecx = ebp + (-0x14); /* 0x470A7B40: lea ecx, [ebp - 0x14] */ 822 RECOMP_BACKEDGE(); 823 goto L_470604F0; /* 0x470A7B43: jmp 0x470604f0 */ 824 { RECOMP_REGS_OUT(); return; } /* end of function */ 825 RECOMP_REGS_OUT(); 826 } 827 828 void sub_470A7B48(void) { 829 int _fpu_cmp = 0; 830 uint32_t _cf = 0; 831 int _df = 1; 832 uint32_t _flag_k = FK_NONE; 833 uint32_t _flag_a = 0, _flag_b = 0; 834 uint32_t _itail_tgt = 0; 835 RECOMP_REGS_LOCALS 836 RECOMP_ENTER(0x470A7B48u); 837 838 goto L_470A7B48; 839 L_470A33EC: 840 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 841 L_470A7B48: 842 eax = 0x470B5680u; /* 0x470A7B48: mov eax, 0x470b5680 */ 843 L_470A7B4D: 844 RECOMP_BACKEDGE(); 845 goto L_470A33EC; /* 0x470A7B4D: jmp 0x470a33ec */ 846 { RECOMP_REGS_OUT(); return; } /* end of function */ 847 _ljump: 848 switch (_itail_tgt) { 849 case 0x470A33ECu: goto L_470A33EC; 850 case 0x470A7B48u: goto L_470A7B48; 851 case 0x470A7B4Du: goto L_470A7B4D; 852 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 853 } 854 RECOMP_REGS_OUT(); 855 } 856 857 void sub_470A7B60(void) { 858 int _fpu_cmp = 0; 859 uint32_t _cf = 0; 860 int _df = 1; 861 uint32_t _flag_k = FK_NONE; 862 uint32_t _flag_a = 0, _flag_b = 0; 863 uint32_t _itail_tgt = 0; 864 RECOMP_REGS_LOCALS 865 RECOMP_ENTER(0x470A7B60u); 866 867 goto L_470A7B60; 868 L_470604F0: 869 edx = MEM32(ecx + 0x4); /* 0x470604F0: mov edx, dword ptr [ecx + 4] */ 870 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 871 eax = eax | 0xFFFFFFFFu; /* 0x470604F3: or eax, 0xffffffff */ 872 _cf = 0; 873 _flag_k = FK_TEST; 874 /* cmp edx, eax */ /* 0x470604F6: cmp edx, eax */ 875 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 876 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 877 _flag_k = FK_CMP; 878 if (CMP_EQ(_flag_a, _flag_b)) goto L_47060504; /* 0x470604F8: je 0x47060504 */ 879 L_470604FA: 880 MEM32(ecx + 0x4) = eax; /* 0x470604FA: mov dword ptr [ecx + 4], eax */ 881 ecx = MEM32(ecx); /* 0x470604FD: mov ecx, dword ptr [ecx] */ 882 goto L_47090300; /* 0x470604FF: jmp 0x47090300 */ 883 L_47060504: 884 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47060504: ret */ 885 L_47090300: 886 PUSH32(esp, ebp); /* 0x47090300: push ebp */ 887 PUSH32(esp, esi); /* 0x47090301: push esi */ 888 esi = ecx; /* 0x47090302: mov esi, ecx */ 889 PUSH32(esp, edi); /* 0x47090304: push edi */ 890 ebp = esi + 0x14; /* 0x47090305: lea ebp, [esi + 0x14] */ 891 PUSH32(esp, ebp); /* 0x47090308: push ebp */ 892 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47090309: call dword ptr [0x470ac180] */ 893 RECOMP_FLAGS_IN(); 894 eax = MEM32(esi + 0x3C); /* 0x4709030F: mov eax, dword ptr [esi + 0x3c] */ 895 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 896 edx = 0; /* 0x47090312: xor edx, edx */ 897 _cf = 0; 898 _flag_k = FK_TEST; 899 /* cmp eax, edx */ /* 0x47090314: cmp eax, edx */ 900 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 901 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 902 _flag_k = FK_CMP; 903 if (CMP_LE(_flag_a, _flag_b)) goto L_47090329; /* 0x47090316: jle 0x47090329 */ 904 L_47090318: 905 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 906 eax = eax - 1; /* 0x47090318: dec eax */ 907 _flag_k = FK_DEC; 908 PUSH32(esp, ebp); /* 0x47090319: push ebp */ 909 MEM32(esi + 0x3C) = eax; /* 0x4709031A: mov dword ptr [esi + 0x3c], eax */ 910 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709031D: call dword ptr [0x470ac190] */ 911 RECOMP_FLAGS_IN(); 912 edi = POP32_VAL(esp); /* 0x47090323: pop edi */ 913 esi = POP32_VAL(esp); /* 0x47090324: pop esi */ 914 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 915 eax = 0; /* 0x47090325: xor eax, eax */ 916 _cf = 0; 917 _flag_k = FK_TEST; 918 ebp = POP32_VAL(esp); /* 0x47090327: pop ebp */ 919 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090328: ret */ 920 L_47090329: 921 eax = MEM32(0x4710E900); /* 0x47090329: mov eax, dword ptr [0x4710e900] */ 922 edi = esi + 0x4; /* 0x4709032E: lea edi, [esi + 4] */ 923 MEM32(esi + 0x30) = eax; /* 0x47090331: mov dword ptr [esi + 0x30], eax */ 924 eax = MEM32(edi); /* 0x47090334: mov eax, dword ptr [edi] */ 925 /* cmp eax, edx */ /* 0x47090336: cmp eax, edx */ 926 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 927 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 928 _flag_k = FK_CMP; 929 MEM32(esi + 0x34) = edx; /* 0x47090338: mov dword ptr [esi + 0x34], edx */ 930 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x4709033B: jne 0x47090352 */ 931 L_4709033D: 932 /* cmp MEM32(esi + 0xC), edx */ /* 0x4709033D: cmp dword ptr [esi + 0xc], edx */ 933 _flag_a = (uint32_t)(MEM32(esi + 0xC)); _flag_b = (uint32_t)(edx); 934 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 935 _flag_k = FK_CMP; 936 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x47090340: jne 0x47090352 */ 937 L_47090342: 938 PUSH32(esp, ebp); /* 0x47090342: push ebp */ 939 MEM32(esi + 0x40) = edx; /* 0x47090343: mov dword ptr [esi + 0x40], edx */ 940 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47090346: call dword ptr [0x470ac190] */ 941 RECOMP_FLAGS_IN(); 942 edi = POP32_VAL(esp); /* 0x4709034C: pop edi */ 943 esi = POP32_VAL(esp); /* 0x4709034D: pop esi */ 944 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 945 eax = 0; /* 0x4709034E: xor eax, eax */ 946 _cf = 0; 947 _flag_k = FK_TEST; 948 ebp = POP32_VAL(esp); /* 0x47090350: pop ebp */ 949 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090351: ret */ 950 L_47090352: 951 /* cmp eax, edx */ /* 0x47090352: cmp eax, edx */ 952 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 953 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 954 _flag_k = FK_CMP; 955 ecx = 1; /* 0x47090354: mov ecx, 1 */ 956 if (CMP_EQ(_flag_a, _flag_b)) goto L_47090364; /* 0x47090359: je 0x47090364 */ 957 L_4709035B: 958 MEM32(esi + 0x34) = 2; /* 0x4709035B: mov dword ptr [esi + 0x34], 2 */ 959 goto L_4709036A; /* 0x47090362: jmp 0x4709036a */ 960 L_47090364: 961 MEM32(esi + 0x34) = ecx; /* 0x47090364: mov dword ptr [esi + 0x34], ecx */ 962 edi = esi + 0xC; /* 0x47090367: lea edi, [esi + 0xc] */ 963 L_4709036A: 964 eax = MEM32(edi); /* 0x4709036A: mov eax, dword ptr [edi] */ 965 MEM32(eax + 0x10) = ecx; /* 0x4709036C: mov dword ptr [eax + 0x10], ecx */ 966 eax = MEM32(edi); /* 0x4709036F: mov eax, dword ptr [edi] */ 967 PUSH32(esp, edx); /* 0x47090371: push edx */ 968 PUSH32(esp, ecx); /* 0x47090372: push ecx */ 969 ecx = MEM32(eax + 0x8); /* 0x47090373: mov ecx, dword ptr [eax + 8] */ 970 PUSH32(esp, ecx); /* 0x47090376: push ecx */ 971 RECOMP_ICALL(MEM32(0x470AC168)); /* 0x47090377: call dword ptr [0x470ac168] */ 972 RECOMP_FLAGS_IN(); 973 /* test eax, eax */ /* 0x4709037D: test eax, eax */ 974 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 975 _cf = 0; 976 _flag_k = FK_TEST; 977 if (TEST_NZ(_flag_a, _flag_b)) goto L_47090393; /* 0x4709037F: jne 0x47090393 */ 978 L_47090381: 979 PUSH32(esp, ebx); /* 0x47090381: push ebx */ 980 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47090382: call dword ptr [0x470ac3c8] */ 981 RECOMP_FLAGS_IN(); 982 ebx = eax; /* 0x47090388: mov ebx, eax */ 983 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4709038A: call dword ptr [0x470ac150] */ 984 RECOMP_FLAGS_IN(); 985 MEM32(ebx) = eax; /* 0x47090390: mov dword ptr [ebx], eax */ 986 ebx = POP32_VAL(esp); /* 0x47090392: pop ebx */ 987 L_47090393: 988 edx = MEM32(edi); /* 0x47090393: mov edx, dword ptr [edi] */ 989 eax = MEM32(edx + 0x4); /* 0x47090395: mov eax, dword ptr [edx + 4] */ 990 PUSH32(esp, ebp); /* 0x47090398: push ebp */ 991 MEM32(esi + 0x30) = eax; /* 0x47090399: mov dword ptr [esi + 0x30], eax */ 992 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709039C: call dword ptr [0x470ac190] */ 993 RECOMP_FLAGS_IN(); 994 edi = POP32_VAL(esp); /* 0x470903A2: pop edi */ 995 esi = POP32_VAL(esp); /* 0x470903A3: pop esi */ 996 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 997 eax = 0; /* 0x470903A4: xor eax, eax */ 998 _cf = 0; 999 _flag_k = FK_TEST; 1000 ebp = POP32_VAL(esp); /* 0x470903A6: pop ebp */ 1001 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470903A7: ret */ 1002 L_470A7B60: 1003 ecx = ebp + (-0x14); /* 0x470A7B60: lea ecx, [ebp - 0x14] */ 1004 RECOMP_BACKEDGE(); 1005 goto L_470604F0; /* 0x470A7B63: jmp 0x470604f0 */ 1006 { RECOMP_REGS_OUT(); return; } /* end of function */ 1007 RECOMP_REGS_OUT(); 1008 } 1009 1010 void sub_470A7B68(void) { 1011 int _fpu_cmp = 0; 1012 uint32_t _cf = 0; 1013 int _df = 1; 1014 uint32_t _flag_k = FK_NONE; 1015 uint32_t _flag_a = 0, _flag_b = 0; 1016 uint32_t _itail_tgt = 0; 1017 RECOMP_REGS_LOCALS 1018 RECOMP_ENTER(0x470A7B68u); 1019 1020 goto L_470A7B68; 1021 L_470A33EC: 1022 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 1023 L_470A7B68: 1024 eax = 0x470B56A8u; /* 0x470A7B68: mov eax, 0x470b56a8 */ 1025 L_470A7B6D: 1026 RECOMP_BACKEDGE(); 1027 goto L_470A33EC; /* 0x470A7B6D: jmp 0x470a33ec */ 1028 { RECOMP_REGS_OUT(); return; } /* end of function */ 1029 _ljump: 1030 switch (_itail_tgt) { 1031 case 0x470A33ECu: goto L_470A33EC; 1032 case 0x470A7B68u: goto L_470A7B68; 1033 case 0x470A7B6Du: goto L_470A7B6D; 1034 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1035 } 1036 RECOMP_REGS_OUT(); 1037 } 1038 1039 void sub_470A7B80(void) { 1040 int _fpu_cmp = 0; 1041 uint32_t _cf = 0; 1042 int _df = 1; 1043 uint32_t _flag_k = FK_NONE; 1044 uint32_t _flag_a = 0, _flag_b = 0; 1045 uint32_t _itail_tgt = 0; 1046 RECOMP_REGS_LOCALS 1047 RECOMP_ENTER(0x470A7B80u); 1048 1049 goto L_470A7B80; 1050 L_470604F0: 1051 edx = MEM32(ecx + 0x4); /* 0x470604F0: mov edx, dword ptr [ecx + 4] */ 1052 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 1053 eax = eax | 0xFFFFFFFFu; /* 0x470604F3: or eax, 0xffffffff */ 1054 _cf = 0; 1055 _flag_k = FK_TEST; 1056 /* cmp edx, eax */ /* 0x470604F6: cmp edx, eax */ 1057 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1058 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1059 _flag_k = FK_CMP; 1060 if (CMP_EQ(_flag_a, _flag_b)) goto L_47060504; /* 0x470604F8: je 0x47060504 */ 1061 L_470604FA: 1062 MEM32(ecx + 0x4) = eax; /* 0x470604FA: mov dword ptr [ecx + 4], eax */ 1063 ecx = MEM32(ecx); /* 0x470604FD: mov ecx, dword ptr [ecx] */ 1064 goto L_47090300; /* 0x470604FF: jmp 0x47090300 */ 1065 L_47060504: 1066 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47060504: ret */ 1067 L_47090300: 1068 PUSH32(esp, ebp); /* 0x47090300: push ebp */ 1069 PUSH32(esp, esi); /* 0x47090301: push esi */ 1070 esi = ecx; /* 0x47090302: mov esi, ecx */ 1071 PUSH32(esp, edi); /* 0x47090304: push edi */ 1072 ebp = esi + 0x14; /* 0x47090305: lea ebp, [esi + 0x14] */ 1073 PUSH32(esp, ebp); /* 0x47090308: push ebp */ 1074 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47090309: call dword ptr [0x470ac180] */ 1075 RECOMP_FLAGS_IN(); 1076 eax = MEM32(esi + 0x3C); /* 0x4709030F: mov eax, dword ptr [esi + 0x3c] */ 1077 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1078 edx = 0; /* 0x47090312: xor edx, edx */ 1079 _cf = 0; 1080 _flag_k = FK_TEST; 1081 /* cmp eax, edx */ /* 0x47090314: cmp eax, edx */ 1082 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1083 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1084 _flag_k = FK_CMP; 1085 if (CMP_LE(_flag_a, _flag_b)) goto L_47090329; /* 0x47090316: jle 0x47090329 */ 1086 L_47090318: 1087 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1088 eax = eax - 1; /* 0x47090318: dec eax */ 1089 _flag_k = FK_DEC; 1090 PUSH32(esp, ebp); /* 0x47090319: push ebp */ 1091 MEM32(esi + 0x3C) = eax; /* 0x4709031A: mov dword ptr [esi + 0x3c], eax */ 1092 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709031D: call dword ptr [0x470ac190] */ 1093 RECOMP_FLAGS_IN(); 1094 edi = POP32_VAL(esp); /* 0x47090323: pop edi */ 1095 esi = POP32_VAL(esp); /* 0x47090324: pop esi */ 1096 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1097 eax = 0; /* 0x47090325: xor eax, eax */ 1098 _cf = 0; 1099 _flag_k = FK_TEST; 1100 ebp = POP32_VAL(esp); /* 0x47090327: pop ebp */ 1101 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090328: ret */ 1102 L_47090329: 1103 eax = MEM32(0x4710E900); /* 0x47090329: mov eax, dword ptr [0x4710e900] */ 1104 edi = esi + 0x4; /* 0x4709032E: lea edi, [esi + 4] */ 1105 MEM32(esi + 0x30) = eax; /* 0x47090331: mov dword ptr [esi + 0x30], eax */ 1106 eax = MEM32(edi); /* 0x47090334: mov eax, dword ptr [edi] */ 1107 /* cmp eax, edx */ /* 0x47090336: cmp eax, edx */ 1108 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1109 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1110 _flag_k = FK_CMP; 1111 MEM32(esi + 0x34) = edx; /* 0x47090338: mov dword ptr [esi + 0x34], edx */ 1112 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x4709033B: jne 0x47090352 */ 1113 L_4709033D: 1114 /* cmp MEM32(esi + 0xC), edx */ /* 0x4709033D: cmp dword ptr [esi + 0xc], edx */ 1115 _flag_a = (uint32_t)(MEM32(esi + 0xC)); _flag_b = (uint32_t)(edx); 1116 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1117 _flag_k = FK_CMP; 1118 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x47090340: jne 0x47090352 */ 1119 L_47090342: 1120 PUSH32(esp, ebp); /* 0x47090342: push ebp */ 1121 MEM32(esi + 0x40) = edx; /* 0x47090343: mov dword ptr [esi + 0x40], edx */ 1122 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47090346: call dword ptr [0x470ac190] */ 1123 RECOMP_FLAGS_IN(); 1124 edi = POP32_VAL(esp); /* 0x4709034C: pop edi */ 1125 esi = POP32_VAL(esp); /* 0x4709034D: pop esi */ 1126 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1127 eax = 0; /* 0x4709034E: xor eax, eax */ 1128 _cf = 0; 1129 _flag_k = FK_TEST; 1130 ebp = POP32_VAL(esp); /* 0x47090350: pop ebp */ 1131 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090351: ret */ 1132 L_47090352: 1133 /* cmp eax, edx */ /* 0x47090352: cmp eax, edx */ 1134 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1135 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1136 _flag_k = FK_CMP; 1137 ecx = 1; /* 0x47090354: mov ecx, 1 */ 1138 if (CMP_EQ(_flag_a, _flag_b)) goto L_47090364; /* 0x47090359: je 0x47090364 */ 1139 L_4709035B: 1140 MEM32(esi + 0x34) = 2; /* 0x4709035B: mov dword ptr [esi + 0x34], 2 */ 1141 goto L_4709036A; /* 0x47090362: jmp 0x4709036a */ 1142 L_47090364: 1143 MEM32(esi + 0x34) = ecx; /* 0x47090364: mov dword ptr [esi + 0x34], ecx */ 1144 edi = esi + 0xC; /* 0x47090367: lea edi, [esi + 0xc] */ 1145 L_4709036A: 1146 eax = MEM32(edi); /* 0x4709036A: mov eax, dword ptr [edi] */ 1147 MEM32(eax + 0x10) = ecx; /* 0x4709036C: mov dword ptr [eax + 0x10], ecx */ 1148 eax = MEM32(edi); /* 0x4709036F: mov eax, dword ptr [edi] */ 1149 PUSH32(esp, edx); /* 0x47090371: push edx */ 1150 PUSH32(esp, ecx); /* 0x47090372: push ecx */ 1151 ecx = MEM32(eax + 0x8); /* 0x47090373: mov ecx, dword ptr [eax + 8] */ 1152 PUSH32(esp, ecx); /* 0x47090376: push ecx */ 1153 RECOMP_ICALL(MEM32(0x470AC168)); /* 0x47090377: call dword ptr [0x470ac168] */ 1154 RECOMP_FLAGS_IN(); 1155 /* test eax, eax */ /* 0x4709037D: test eax, eax */ 1156 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1157 _cf = 0; 1158 _flag_k = FK_TEST; 1159 if (TEST_NZ(_flag_a, _flag_b)) goto L_47090393; /* 0x4709037F: jne 0x47090393 */ 1160 L_47090381: 1161 PUSH32(esp, ebx); /* 0x47090381: push ebx */ 1162 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47090382: call dword ptr [0x470ac3c8] */ 1163 RECOMP_FLAGS_IN(); 1164 ebx = eax; /* 0x47090388: mov ebx, eax */ 1165 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4709038A: call dword ptr [0x470ac150] */ 1166 RECOMP_FLAGS_IN(); 1167 MEM32(ebx) = eax; /* 0x47090390: mov dword ptr [ebx], eax */ 1168 ebx = POP32_VAL(esp); /* 0x47090392: pop ebx */ 1169 L_47090393: 1170 edx = MEM32(edi); /* 0x47090393: mov edx, dword ptr [edi] */ 1171 eax = MEM32(edx + 0x4); /* 0x47090395: mov eax, dword ptr [edx + 4] */ 1172 PUSH32(esp, ebp); /* 0x47090398: push ebp */ 1173 MEM32(esi + 0x30) = eax; /* 0x47090399: mov dword ptr [esi + 0x30], eax */ 1174 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709039C: call dword ptr [0x470ac190] */ 1175 RECOMP_FLAGS_IN(); 1176 edi = POP32_VAL(esp); /* 0x470903A2: pop edi */ 1177 esi = POP32_VAL(esp); /* 0x470903A3: pop esi */ 1178 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1179 eax = 0; /* 0x470903A4: xor eax, eax */ 1180 _cf = 0; 1181 _flag_k = FK_TEST; 1182 ebp = POP32_VAL(esp); /* 0x470903A6: pop ebp */ 1183 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470903A7: ret */ 1184 L_470A7B80: 1185 ecx = ebp + (-0x14); /* 0x470A7B80: lea ecx, [ebp - 0x14] */ 1186 RECOMP_BACKEDGE(); 1187 goto L_470604F0; /* 0x470A7B83: jmp 0x470604f0 */ 1188 { RECOMP_REGS_OUT(); return; } /* end of function */ 1189 RECOMP_REGS_OUT(); 1190 } 1191 1192 void sub_470A7B88(void) { 1193 int _fpu_cmp = 0; 1194 uint32_t _cf = 0; 1195 int _df = 1; 1196 uint32_t _flag_k = FK_NONE; 1197 uint32_t _flag_a = 0, _flag_b = 0; 1198 uint32_t _itail_tgt = 0; 1199 RECOMP_REGS_LOCALS 1200 RECOMP_ENTER(0x470A7B88u); 1201 1202 goto L_470A7B88; 1203 L_470A33EC: 1204 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 1205 L_470A7B88: 1206 eax = 0x470B56D0u; /* 0x470A7B88: mov eax, 0x470b56d0 */ 1207 L_470A7B8D: 1208 RECOMP_BACKEDGE(); 1209 goto L_470A33EC; /* 0x470A7B8D: jmp 0x470a33ec */ 1210 { RECOMP_REGS_OUT(); return; } /* end of function */ 1211 _ljump: 1212 switch (_itail_tgt) { 1213 case 0x470A33ECu: goto L_470A33EC; 1214 case 0x470A7B88u: goto L_470A7B88; 1215 case 0x470A7B8Du: goto L_470A7B8D; 1216 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1217 } 1218 RECOMP_REGS_OUT(); 1219 } 1220 1221 void sub_470A7BA0(void) { 1222 int _fpu_cmp = 0; 1223 uint32_t _cf = 0; 1224 int _df = 1; 1225 uint32_t _flag_k = FK_NONE; 1226 uint32_t _flag_a = 0, _flag_b = 0; 1227 uint32_t _itail_tgt = 0; 1228 RECOMP_REGS_LOCALS 1229 RECOMP_ENTER(0x470A7BA0u); 1230 1231 goto L_470A7BA0; 1232 L_470604F0: 1233 edx = MEM32(ecx + 0x4); /* 0x470604F0: mov edx, dword ptr [ecx + 4] */ 1234 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 1235 eax = eax | 0xFFFFFFFFu; /* 0x470604F3: or eax, 0xffffffff */ 1236 _cf = 0; 1237 _flag_k = FK_TEST; 1238 /* cmp edx, eax */ /* 0x470604F6: cmp edx, eax */ 1239 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1240 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1241 _flag_k = FK_CMP; 1242 if (CMP_EQ(_flag_a, _flag_b)) goto L_47060504; /* 0x470604F8: je 0x47060504 */ 1243 L_470604FA: 1244 MEM32(ecx + 0x4) = eax; /* 0x470604FA: mov dword ptr [ecx + 4], eax */ 1245 ecx = MEM32(ecx); /* 0x470604FD: mov ecx, dword ptr [ecx] */ 1246 goto L_47090300; /* 0x470604FF: jmp 0x47090300 */ 1247 L_47060504: 1248 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47060504: ret */ 1249 L_47090300: 1250 PUSH32(esp, ebp); /* 0x47090300: push ebp */ 1251 PUSH32(esp, esi); /* 0x47090301: push esi */ 1252 esi = ecx; /* 0x47090302: mov esi, ecx */ 1253 PUSH32(esp, edi); /* 0x47090304: push edi */ 1254 ebp = esi + 0x14; /* 0x47090305: lea ebp, [esi + 0x14] */ 1255 PUSH32(esp, ebp); /* 0x47090308: push ebp */ 1256 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47090309: call dword ptr [0x470ac180] */ 1257 RECOMP_FLAGS_IN(); 1258 eax = MEM32(esi + 0x3C); /* 0x4709030F: mov eax, dword ptr [esi + 0x3c] */ 1259 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1260 edx = 0; /* 0x47090312: xor edx, edx */ 1261 _cf = 0; 1262 _flag_k = FK_TEST; 1263 /* cmp eax, edx */ /* 0x47090314: cmp eax, edx */ 1264 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1265 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1266 _flag_k = FK_CMP; 1267 if (CMP_LE(_flag_a, _flag_b)) goto L_47090329; /* 0x47090316: jle 0x47090329 */ 1268 L_47090318: 1269 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1270 eax = eax - 1; /* 0x47090318: dec eax */ 1271 _flag_k = FK_DEC; 1272 PUSH32(esp, ebp); /* 0x47090319: push ebp */ 1273 MEM32(esi + 0x3C) = eax; /* 0x4709031A: mov dword ptr [esi + 0x3c], eax */ 1274 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709031D: call dword ptr [0x470ac190] */ 1275 RECOMP_FLAGS_IN(); 1276 edi = POP32_VAL(esp); /* 0x47090323: pop edi */ 1277 esi = POP32_VAL(esp); /* 0x47090324: pop esi */ 1278 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1279 eax = 0; /* 0x47090325: xor eax, eax */ 1280 _cf = 0; 1281 _flag_k = FK_TEST; 1282 ebp = POP32_VAL(esp); /* 0x47090327: pop ebp */ 1283 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090328: ret */ 1284 L_47090329: 1285 eax = MEM32(0x4710E900); /* 0x47090329: mov eax, dword ptr [0x4710e900] */ 1286 edi = esi + 0x4; /* 0x4709032E: lea edi, [esi + 4] */ 1287 MEM32(esi + 0x30) = eax; /* 0x47090331: mov dword ptr [esi + 0x30], eax */ 1288 eax = MEM32(edi); /* 0x47090334: mov eax, dword ptr [edi] */ 1289 /* cmp eax, edx */ /* 0x47090336: cmp eax, edx */ 1290 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1291 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1292 _flag_k = FK_CMP; 1293 MEM32(esi + 0x34) = edx; /* 0x47090338: mov dword ptr [esi + 0x34], edx */ 1294 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x4709033B: jne 0x47090352 */ 1295 L_4709033D: 1296 /* cmp MEM32(esi + 0xC), edx */ /* 0x4709033D: cmp dword ptr [esi + 0xc], edx */ 1297 _flag_a = (uint32_t)(MEM32(esi + 0xC)); _flag_b = (uint32_t)(edx); 1298 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1299 _flag_k = FK_CMP; 1300 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x47090340: jne 0x47090352 */ 1301 L_47090342: 1302 PUSH32(esp, ebp); /* 0x47090342: push ebp */ 1303 MEM32(esi + 0x40) = edx; /* 0x47090343: mov dword ptr [esi + 0x40], edx */ 1304 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47090346: call dword ptr [0x470ac190] */ 1305 RECOMP_FLAGS_IN(); 1306 edi = POP32_VAL(esp); /* 0x4709034C: pop edi */ 1307 esi = POP32_VAL(esp); /* 0x4709034D: pop esi */ 1308 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1309 eax = 0; /* 0x4709034E: xor eax, eax */ 1310 _cf = 0; 1311 _flag_k = FK_TEST; 1312 ebp = POP32_VAL(esp); /* 0x47090350: pop ebp */ 1313 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090351: ret */ 1314 L_47090352: 1315 /* cmp eax, edx */ /* 0x47090352: cmp eax, edx */ 1316 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1317 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1318 _flag_k = FK_CMP; 1319 ecx = 1; /* 0x47090354: mov ecx, 1 */ 1320 if (CMP_EQ(_flag_a, _flag_b)) goto L_47090364; /* 0x47090359: je 0x47090364 */ 1321 L_4709035B: 1322 MEM32(esi + 0x34) = 2; /* 0x4709035B: mov dword ptr [esi + 0x34], 2 */ 1323 goto L_4709036A; /* 0x47090362: jmp 0x4709036a */ 1324 L_47090364: 1325 MEM32(esi + 0x34) = ecx; /* 0x47090364: mov dword ptr [esi + 0x34], ecx */ 1326 edi = esi + 0xC; /* 0x47090367: lea edi, [esi + 0xc] */ 1327 L_4709036A: 1328 eax = MEM32(edi); /* 0x4709036A: mov eax, dword ptr [edi] */ 1329 MEM32(eax + 0x10) = ecx; /* 0x4709036C: mov dword ptr [eax + 0x10], ecx */ 1330 eax = MEM32(edi); /* 0x4709036F: mov eax, dword ptr [edi] */ 1331 PUSH32(esp, edx); /* 0x47090371: push edx */ 1332 PUSH32(esp, ecx); /* 0x47090372: push ecx */ 1333 ecx = MEM32(eax + 0x8); /* 0x47090373: mov ecx, dword ptr [eax + 8] */ 1334 PUSH32(esp, ecx); /* 0x47090376: push ecx */ 1335 RECOMP_ICALL(MEM32(0x470AC168)); /* 0x47090377: call dword ptr [0x470ac168] */ 1336 RECOMP_FLAGS_IN(); 1337 /* test eax, eax */ /* 0x4709037D: test eax, eax */ 1338 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1339 _cf = 0; 1340 _flag_k = FK_TEST; 1341 if (TEST_NZ(_flag_a, _flag_b)) goto L_47090393; /* 0x4709037F: jne 0x47090393 */ 1342 L_47090381: 1343 PUSH32(esp, ebx); /* 0x47090381: push ebx */ 1344 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47090382: call dword ptr [0x470ac3c8] */ 1345 RECOMP_FLAGS_IN(); 1346 ebx = eax; /* 0x47090388: mov ebx, eax */ 1347 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4709038A: call dword ptr [0x470ac150] */ 1348 RECOMP_FLAGS_IN(); 1349 MEM32(ebx) = eax; /* 0x47090390: mov dword ptr [ebx], eax */ 1350 ebx = POP32_VAL(esp); /* 0x47090392: pop ebx */ 1351 L_47090393: 1352 edx = MEM32(edi); /* 0x47090393: mov edx, dword ptr [edi] */ 1353 eax = MEM32(edx + 0x4); /* 0x47090395: mov eax, dword ptr [edx + 4] */ 1354 PUSH32(esp, ebp); /* 0x47090398: push ebp */ 1355 MEM32(esi + 0x30) = eax; /* 0x47090399: mov dword ptr [esi + 0x30], eax */ 1356 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709039C: call dword ptr [0x470ac190] */ 1357 RECOMP_FLAGS_IN(); 1358 edi = POP32_VAL(esp); /* 0x470903A2: pop edi */ 1359 esi = POP32_VAL(esp); /* 0x470903A3: pop esi */ 1360 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1361 eax = 0; /* 0x470903A4: xor eax, eax */ 1362 _cf = 0; 1363 _flag_k = FK_TEST; 1364 ebp = POP32_VAL(esp); /* 0x470903A6: pop ebp */ 1365 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470903A7: ret */ 1366 L_470A7BA0: 1367 ecx = ebp + (-0x14); /* 0x470A7BA0: lea ecx, [ebp - 0x14] */ 1368 RECOMP_BACKEDGE(); 1369 goto L_470604F0; /* 0x470A7BA3: jmp 0x470604f0 */ 1370 { RECOMP_REGS_OUT(); return; } /* end of function */ 1371 RECOMP_REGS_OUT(); 1372 } 1373 1374 void sub_470A7BA8(void) { 1375 int _fpu_cmp = 0; 1376 uint32_t _cf = 0; 1377 int _df = 1; 1378 uint32_t _flag_k = FK_NONE; 1379 uint32_t _flag_a = 0, _flag_b = 0; 1380 uint32_t _itail_tgt = 0; 1381 RECOMP_REGS_LOCALS 1382 RECOMP_ENTER(0x470A7BA8u); 1383 1384 goto L_470A7BA8; 1385 L_470A33EC: 1386 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 1387 L_470A7BA8: 1388 eax = 0x470B56F8u; /* 0x470A7BA8: mov eax, 0x470b56f8 */ 1389 L_470A7BAD: 1390 RECOMP_BACKEDGE(); 1391 goto L_470A33EC; /* 0x470A7BAD: jmp 0x470a33ec */ 1392 { RECOMP_REGS_OUT(); return; } /* end of function */ 1393 _ljump: 1394 switch (_itail_tgt) { 1395 case 0x470A33ECu: goto L_470A33EC; 1396 case 0x470A7BA8u: goto L_470A7BA8; 1397 case 0x470A7BADu: goto L_470A7BAD; 1398 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1399 } 1400 RECOMP_REGS_OUT(); 1401 } 1402 1403 void sub_470A7BC0(void) { 1404 int _fpu_cmp = 0; 1405 uint32_t _cf = 0; 1406 int _df = 1; 1407 uint32_t _flag_k = FK_NONE; 1408 uint32_t _flag_a = 0, _flag_b = 0; 1409 uint32_t _itail_tgt = 0; 1410 RECOMP_REGS_LOCALS 1411 RECOMP_ENTER(0x470A7BC0u); 1412 1413 goto L_470A7BC0; 1414 L_470041D0: 1415 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470041D0: ret */ 1416 L_470A7BC0: 1417 ecx = ebp + (-0x18); /* 0x470A7BC0: lea ecx, [ebp - 0x18] */ 1418 RECOMP_BACKEDGE(); 1419 goto L_470041D0; /* 0x470A7BC3: jmp 0x470041d0 */ 1420 { RECOMP_REGS_OUT(); return; } /* end of function */ 1421 RECOMP_REGS_OUT(); 1422 } 1423 1424 void sub_470A7BC8(void) { 1425 int _fpu_cmp = 0; 1426 uint32_t _cf = 0; 1427 int _df = 1; 1428 uint32_t _flag_k = FK_NONE; 1429 uint32_t _flag_a = 0, _flag_b = 0; 1430 uint32_t _itail_tgt = 0; 1431 RECOMP_REGS_LOCALS 1432 RECOMP_ENTER(0x470A7BC8u); 1433 1434 goto L_470A7BC8; 1435 L_470604F0: 1436 edx = MEM32(ecx + 0x4); /* 0x470604F0: mov edx, dword ptr [ecx + 4] */ 1437 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 1438 eax = eax | 0xFFFFFFFFu; /* 0x470604F3: or eax, 0xffffffff */ 1439 _cf = 0; 1440 _flag_k = FK_TEST; 1441 /* cmp edx, eax */ /* 0x470604F6: cmp edx, eax */ 1442 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1443 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1444 _flag_k = FK_CMP; 1445 if (CMP_EQ(_flag_a, _flag_b)) goto L_47060504; /* 0x470604F8: je 0x47060504 */ 1446 L_470604FA: 1447 MEM32(ecx + 0x4) = eax; /* 0x470604FA: mov dword ptr [ecx + 4], eax */ 1448 ecx = MEM32(ecx); /* 0x470604FD: mov ecx, dword ptr [ecx] */ 1449 goto L_47090300; /* 0x470604FF: jmp 0x47090300 */ 1450 L_47060504: 1451 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47060504: ret */ 1452 L_47090300: 1453 PUSH32(esp, ebp); /* 0x47090300: push ebp */ 1454 PUSH32(esp, esi); /* 0x47090301: push esi */ 1455 esi = ecx; /* 0x47090302: mov esi, ecx */ 1456 PUSH32(esp, edi); /* 0x47090304: push edi */ 1457 ebp = esi + 0x14; /* 0x47090305: lea ebp, [esi + 0x14] */ 1458 PUSH32(esp, ebp); /* 0x47090308: push ebp */ 1459 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47090309: call dword ptr [0x470ac180] */ 1460 RECOMP_FLAGS_IN(); 1461 eax = MEM32(esi + 0x3C); /* 0x4709030F: mov eax, dword ptr [esi + 0x3c] */ 1462 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1463 edx = 0; /* 0x47090312: xor edx, edx */ 1464 _cf = 0; 1465 _flag_k = FK_TEST; 1466 /* cmp eax, edx */ /* 0x47090314: cmp eax, edx */ 1467 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1468 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1469 _flag_k = FK_CMP; 1470 if (CMP_LE(_flag_a, _flag_b)) goto L_47090329; /* 0x47090316: jle 0x47090329 */ 1471 L_47090318: 1472 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1473 eax = eax - 1; /* 0x47090318: dec eax */ 1474 _flag_k = FK_DEC; 1475 PUSH32(esp, ebp); /* 0x47090319: push ebp */ 1476 MEM32(esi + 0x3C) = eax; /* 0x4709031A: mov dword ptr [esi + 0x3c], eax */ 1477 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709031D: call dword ptr [0x470ac190] */ 1478 RECOMP_FLAGS_IN(); 1479 edi = POP32_VAL(esp); /* 0x47090323: pop edi */ 1480 esi = POP32_VAL(esp); /* 0x47090324: pop esi */ 1481 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1482 eax = 0; /* 0x47090325: xor eax, eax */ 1483 _cf = 0; 1484 _flag_k = FK_TEST; 1485 ebp = POP32_VAL(esp); /* 0x47090327: pop ebp */ 1486 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090328: ret */ 1487 L_47090329: 1488 eax = MEM32(0x4710E900); /* 0x47090329: mov eax, dword ptr [0x4710e900] */ 1489 edi = esi + 0x4; /* 0x4709032E: lea edi, [esi + 4] */ 1490 MEM32(esi + 0x30) = eax; /* 0x47090331: mov dword ptr [esi + 0x30], eax */ 1491 eax = MEM32(edi); /* 0x47090334: mov eax, dword ptr [edi] */ 1492 /* cmp eax, edx */ /* 0x47090336: cmp eax, edx */ 1493 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1494 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1495 _flag_k = FK_CMP; 1496 MEM32(esi + 0x34) = edx; /* 0x47090338: mov dword ptr [esi + 0x34], edx */ 1497 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x4709033B: jne 0x47090352 */ 1498 L_4709033D: 1499 /* cmp MEM32(esi + 0xC), edx */ /* 0x4709033D: cmp dword ptr [esi + 0xc], edx */ 1500 _flag_a = (uint32_t)(MEM32(esi + 0xC)); _flag_b = (uint32_t)(edx); 1501 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1502 _flag_k = FK_CMP; 1503 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x47090340: jne 0x47090352 */ 1504 L_47090342: 1505 PUSH32(esp, ebp); /* 0x47090342: push ebp */ 1506 MEM32(esi + 0x40) = edx; /* 0x47090343: mov dword ptr [esi + 0x40], edx */ 1507 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47090346: call dword ptr [0x470ac190] */ 1508 RECOMP_FLAGS_IN(); 1509 edi = POP32_VAL(esp); /* 0x4709034C: pop edi */ 1510 esi = POP32_VAL(esp); /* 0x4709034D: pop esi */ 1511 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1512 eax = 0; /* 0x4709034E: xor eax, eax */ 1513 _cf = 0; 1514 _flag_k = FK_TEST; 1515 ebp = POP32_VAL(esp); /* 0x47090350: pop ebp */ 1516 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090351: ret */ 1517 L_47090352: 1518 /* cmp eax, edx */ /* 0x47090352: cmp eax, edx */ 1519 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1520 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1521 _flag_k = FK_CMP; 1522 ecx = 1; /* 0x47090354: mov ecx, 1 */ 1523 if (CMP_EQ(_flag_a, _flag_b)) goto L_47090364; /* 0x47090359: je 0x47090364 */ 1524 L_4709035B: 1525 MEM32(esi + 0x34) = 2; /* 0x4709035B: mov dword ptr [esi + 0x34], 2 */ 1526 goto L_4709036A; /* 0x47090362: jmp 0x4709036a */ 1527 L_47090364: 1528 MEM32(esi + 0x34) = ecx; /* 0x47090364: mov dword ptr [esi + 0x34], ecx */ 1529 edi = esi + 0xC; /* 0x47090367: lea edi, [esi + 0xc] */ 1530 L_4709036A: 1531 eax = MEM32(edi); /* 0x4709036A: mov eax, dword ptr [edi] */ 1532 MEM32(eax + 0x10) = ecx; /* 0x4709036C: mov dword ptr [eax + 0x10], ecx */ 1533 eax = MEM32(edi); /* 0x4709036F: mov eax, dword ptr [edi] */ 1534 PUSH32(esp, edx); /* 0x47090371: push edx */ 1535 PUSH32(esp, ecx); /* 0x47090372: push ecx */ 1536 ecx = MEM32(eax + 0x8); /* 0x47090373: mov ecx, dword ptr [eax + 8] */ 1537 PUSH32(esp, ecx); /* 0x47090376: push ecx */ 1538 RECOMP_ICALL(MEM32(0x470AC168)); /* 0x47090377: call dword ptr [0x470ac168] */ 1539 RECOMP_FLAGS_IN(); 1540 /* test eax, eax */ /* 0x4709037D: test eax, eax */ 1541 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1542 _cf = 0; 1543 _flag_k = FK_TEST; 1544 if (TEST_NZ(_flag_a, _flag_b)) goto L_47090393; /* 0x4709037F: jne 0x47090393 */ 1545 L_47090381: 1546 PUSH32(esp, ebx); /* 0x47090381: push ebx */ 1547 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47090382: call dword ptr [0x470ac3c8] */ 1548 RECOMP_FLAGS_IN(); 1549 ebx = eax; /* 0x47090388: mov ebx, eax */ 1550 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4709038A: call dword ptr [0x470ac150] */ 1551 RECOMP_FLAGS_IN(); 1552 MEM32(ebx) = eax; /* 0x47090390: mov dword ptr [ebx], eax */ 1553 ebx = POP32_VAL(esp); /* 0x47090392: pop ebx */ 1554 L_47090393: 1555 edx = MEM32(edi); /* 0x47090393: mov edx, dword ptr [edi] */ 1556 eax = MEM32(edx + 0x4); /* 0x47090395: mov eax, dword ptr [edx + 4] */ 1557 PUSH32(esp, ebp); /* 0x47090398: push ebp */ 1558 MEM32(esi + 0x30) = eax; /* 0x47090399: mov dword ptr [esi + 0x30], eax */ 1559 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709039C: call dword ptr [0x470ac190] */ 1560 RECOMP_FLAGS_IN(); 1561 edi = POP32_VAL(esp); /* 0x470903A2: pop edi */ 1562 esi = POP32_VAL(esp); /* 0x470903A3: pop esi */ 1563 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1564 eax = 0; /* 0x470903A4: xor eax, eax */ 1565 _cf = 0; 1566 _flag_k = FK_TEST; 1567 ebp = POP32_VAL(esp); /* 0x470903A6: pop ebp */ 1568 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470903A7: ret */ 1569 L_470A7BC8: 1570 ecx = ebp + (-0x20); /* 0x470A7BC8: lea ecx, [ebp - 0x20] */ 1571 RECOMP_BACKEDGE(); 1572 goto L_470604F0; /* 0x470A7BCB: jmp 0x470604f0 */ 1573 { RECOMP_REGS_OUT(); return; } /* end of function */ 1574 RECOMP_REGS_OUT(); 1575 } 1576 1577 void sub_470A7BD0(void) { 1578 int _fpu_cmp = 0; 1579 uint32_t _cf = 0; 1580 int _df = 1; 1581 uint32_t _flag_k = FK_NONE; 1582 uint32_t _flag_a = 0, _flag_b = 0; 1583 uint32_t _itail_tgt = 0; 1584 RECOMP_REGS_LOCALS 1585 RECOMP_ENTER(0x470A7BD0u); 1586 1587 goto L_470A7BD0; 1588 L_470A33EC: 1589 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 1590 L_470A7BD0: 1591 eax = 0x470B5720u; /* 0x470A7BD0: mov eax, 0x470b5720 */ 1592 L_470A7BD5: 1593 RECOMP_BACKEDGE(); 1594 goto L_470A33EC; /* 0x470A7BD5: jmp 0x470a33ec */ 1595 { RECOMP_REGS_OUT(); return; } /* end of function */ 1596 _ljump: 1597 switch (_itail_tgt) { 1598 case 0x470A33ECu: goto L_470A33EC; 1599 case 0x470A7BD0u: goto L_470A7BD0; 1600 case 0x470A7BD5u: goto L_470A7BD5; 1601 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1602 } 1603 RECOMP_REGS_OUT(); 1604 } 1605 1606 void sub_470A7BE0(void) { 1607 int _fpu_cmp = 0; 1608 uint32_t _cf = 0; 1609 int _df = 1; 1610 uint32_t _flag_k = FK_NONE; 1611 uint32_t _flag_a = 0, _flag_b = 0; 1612 uint32_t _itail_tgt = 0; 1613 RECOMP_REGS_LOCALS 1614 RECOMP_ENTER(0x470A7BE0u); 1615 1616 goto L_470A7BE0; 1617 L_470604F0: 1618 edx = MEM32(ecx + 0x4); /* 0x470604F0: mov edx, dword ptr [ecx + 4] */ 1619 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 1620 eax = eax | 0xFFFFFFFFu; /* 0x470604F3: or eax, 0xffffffff */ 1621 _cf = 0; 1622 _flag_k = FK_TEST; 1623 /* cmp edx, eax */ /* 0x470604F6: cmp edx, eax */ 1624 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1625 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1626 _flag_k = FK_CMP; 1627 if (CMP_EQ(_flag_a, _flag_b)) goto L_47060504; /* 0x470604F8: je 0x47060504 */ 1628 L_470604FA: 1629 MEM32(ecx + 0x4) = eax; /* 0x470604FA: mov dword ptr [ecx + 4], eax */ 1630 ecx = MEM32(ecx); /* 0x470604FD: mov ecx, dword ptr [ecx] */ 1631 goto L_47090300; /* 0x470604FF: jmp 0x47090300 */ 1632 L_47060504: 1633 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47060504: ret */ 1634 L_47090300: 1635 PUSH32(esp, ebp); /* 0x47090300: push ebp */ 1636 PUSH32(esp, esi); /* 0x47090301: push esi */ 1637 esi = ecx; /* 0x47090302: mov esi, ecx */ 1638 PUSH32(esp, edi); /* 0x47090304: push edi */ 1639 ebp = esi + 0x14; /* 0x47090305: lea ebp, [esi + 0x14] */ 1640 PUSH32(esp, ebp); /* 0x47090308: push ebp */ 1641 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47090309: call dword ptr [0x470ac180] */ 1642 RECOMP_FLAGS_IN(); 1643 eax = MEM32(esi + 0x3C); /* 0x4709030F: mov eax, dword ptr [esi + 0x3c] */ 1644 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1645 edx = 0; /* 0x47090312: xor edx, edx */ 1646 _cf = 0; 1647 _flag_k = FK_TEST; 1648 /* cmp eax, edx */ /* 0x47090314: cmp eax, edx */ 1649 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1650 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1651 _flag_k = FK_CMP; 1652 if (CMP_LE(_flag_a, _flag_b)) goto L_47090329; /* 0x47090316: jle 0x47090329 */ 1653 L_47090318: 1654 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1655 eax = eax - 1; /* 0x47090318: dec eax */ 1656 _flag_k = FK_DEC; 1657 PUSH32(esp, ebp); /* 0x47090319: push ebp */ 1658 MEM32(esi + 0x3C) = eax; /* 0x4709031A: mov dword ptr [esi + 0x3c], eax */ 1659 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709031D: call dword ptr [0x470ac190] */ 1660 RECOMP_FLAGS_IN(); 1661 edi = POP32_VAL(esp); /* 0x47090323: pop edi */ 1662 esi = POP32_VAL(esp); /* 0x47090324: pop esi */ 1663 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1664 eax = 0; /* 0x47090325: xor eax, eax */ 1665 _cf = 0; 1666 _flag_k = FK_TEST; 1667 ebp = POP32_VAL(esp); /* 0x47090327: pop ebp */ 1668 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090328: ret */ 1669 L_47090329: 1670 eax = MEM32(0x4710E900); /* 0x47090329: mov eax, dword ptr [0x4710e900] */ 1671 edi = esi + 0x4; /* 0x4709032E: lea edi, [esi + 4] */ 1672 MEM32(esi + 0x30) = eax; /* 0x47090331: mov dword ptr [esi + 0x30], eax */ 1673 eax = MEM32(edi); /* 0x47090334: mov eax, dword ptr [edi] */ 1674 /* cmp eax, edx */ /* 0x47090336: cmp eax, edx */ 1675 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1676 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1677 _flag_k = FK_CMP; 1678 MEM32(esi + 0x34) = edx; /* 0x47090338: mov dword ptr [esi + 0x34], edx */ 1679 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x4709033B: jne 0x47090352 */ 1680 L_4709033D: 1681 /* cmp MEM32(esi + 0xC), edx */ /* 0x4709033D: cmp dword ptr [esi + 0xc], edx */ 1682 _flag_a = (uint32_t)(MEM32(esi + 0xC)); _flag_b = (uint32_t)(edx); 1683 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1684 _flag_k = FK_CMP; 1685 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x47090340: jne 0x47090352 */ 1686 L_47090342: 1687 PUSH32(esp, ebp); /* 0x47090342: push ebp */ 1688 MEM32(esi + 0x40) = edx; /* 0x47090343: mov dword ptr [esi + 0x40], edx */ 1689 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47090346: call dword ptr [0x470ac190] */ 1690 RECOMP_FLAGS_IN(); 1691 edi = POP32_VAL(esp); /* 0x4709034C: pop edi */ 1692 esi = POP32_VAL(esp); /* 0x4709034D: pop esi */ 1693 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1694 eax = 0; /* 0x4709034E: xor eax, eax */ 1695 _cf = 0; 1696 _flag_k = FK_TEST; 1697 ebp = POP32_VAL(esp); /* 0x47090350: pop ebp */ 1698 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090351: ret */ 1699 L_47090352: 1700 /* cmp eax, edx */ /* 0x47090352: cmp eax, edx */ 1701 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1702 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1703 _flag_k = FK_CMP; 1704 ecx = 1; /* 0x47090354: mov ecx, 1 */ 1705 if (CMP_EQ(_flag_a, _flag_b)) goto L_47090364; /* 0x47090359: je 0x47090364 */ 1706 L_4709035B: 1707 MEM32(esi + 0x34) = 2; /* 0x4709035B: mov dword ptr [esi + 0x34], 2 */ 1708 goto L_4709036A; /* 0x47090362: jmp 0x4709036a */ 1709 L_47090364: 1710 MEM32(esi + 0x34) = ecx; /* 0x47090364: mov dword ptr [esi + 0x34], ecx */ 1711 edi = esi + 0xC; /* 0x47090367: lea edi, [esi + 0xc] */ 1712 L_4709036A: 1713 eax = MEM32(edi); /* 0x4709036A: mov eax, dword ptr [edi] */ 1714 MEM32(eax + 0x10) = ecx; /* 0x4709036C: mov dword ptr [eax + 0x10], ecx */ 1715 eax = MEM32(edi); /* 0x4709036F: mov eax, dword ptr [edi] */ 1716 PUSH32(esp, edx); /* 0x47090371: push edx */ 1717 PUSH32(esp, ecx); /* 0x47090372: push ecx */ 1718 ecx = MEM32(eax + 0x8); /* 0x47090373: mov ecx, dword ptr [eax + 8] */ 1719 PUSH32(esp, ecx); /* 0x47090376: push ecx */ 1720 RECOMP_ICALL(MEM32(0x470AC168)); /* 0x47090377: call dword ptr [0x470ac168] */ 1721 RECOMP_FLAGS_IN(); 1722 /* test eax, eax */ /* 0x4709037D: test eax, eax */ 1723 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1724 _cf = 0; 1725 _flag_k = FK_TEST; 1726 if (TEST_NZ(_flag_a, _flag_b)) goto L_47090393; /* 0x4709037F: jne 0x47090393 */ 1727 L_47090381: 1728 PUSH32(esp, ebx); /* 0x47090381: push ebx */ 1729 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47090382: call dword ptr [0x470ac3c8] */ 1730 RECOMP_FLAGS_IN(); 1731 ebx = eax; /* 0x47090388: mov ebx, eax */ 1732 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4709038A: call dword ptr [0x470ac150] */ 1733 RECOMP_FLAGS_IN(); 1734 MEM32(ebx) = eax; /* 0x47090390: mov dword ptr [ebx], eax */ 1735 ebx = POP32_VAL(esp); /* 0x47090392: pop ebx */ 1736 L_47090393: 1737 edx = MEM32(edi); /* 0x47090393: mov edx, dword ptr [edi] */ 1738 eax = MEM32(edx + 0x4); /* 0x47090395: mov eax, dword ptr [edx + 4] */ 1739 PUSH32(esp, ebp); /* 0x47090398: push ebp */ 1740 MEM32(esi + 0x30) = eax; /* 0x47090399: mov dword ptr [esi + 0x30], eax */ 1741 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709039C: call dword ptr [0x470ac190] */ 1742 RECOMP_FLAGS_IN(); 1743 edi = POP32_VAL(esp); /* 0x470903A2: pop edi */ 1744 esi = POP32_VAL(esp); /* 0x470903A3: pop esi */ 1745 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1746 eax = 0; /* 0x470903A4: xor eax, eax */ 1747 _cf = 0; 1748 _flag_k = FK_TEST; 1749 ebp = POP32_VAL(esp); /* 0x470903A6: pop ebp */ 1750 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470903A7: ret */ 1751 L_470A7BE0: 1752 ecx = ebp + (-0x14); /* 0x470A7BE0: lea ecx, [ebp - 0x14] */ 1753 RECOMP_BACKEDGE(); 1754 goto L_470604F0; /* 0x470A7BE3: jmp 0x470604f0 */ 1755 { RECOMP_REGS_OUT(); return; } /* end of function */ 1756 RECOMP_REGS_OUT(); 1757 } 1758 1759 void sub_470A7BE8(void) { 1760 int _fpu_cmp = 0; 1761 uint32_t _cf = 0; 1762 int _df = 1; 1763 uint32_t _flag_k = FK_NONE; 1764 uint32_t _flag_a = 0, _flag_b = 0; 1765 uint32_t _itail_tgt = 0; 1766 RECOMP_REGS_LOCALS 1767 RECOMP_ENTER(0x470A7BE8u); 1768 1769 goto L_470A7BE8; 1770 L_470A33EC: 1771 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 1772 L_470A7BE8: 1773 eax = 0x470B5750u; /* 0x470A7BE8: mov eax, 0x470b5750 */ 1774 L_470A7BED: 1775 RECOMP_BACKEDGE(); 1776 goto L_470A33EC; /* 0x470A7BED: jmp 0x470a33ec */ 1777 { RECOMP_REGS_OUT(); return; } /* end of function */ 1778 _ljump: 1779 switch (_itail_tgt) { 1780 case 0x470A33ECu: goto L_470A33EC; 1781 case 0x470A7BE8u: goto L_470A7BE8; 1782 case 0x470A7BEDu: goto L_470A7BED; 1783 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1784 } 1785 RECOMP_REGS_OUT(); 1786 } 1787 1788 void sub_470A7C00(void) { 1789 int _fpu_cmp = 0; 1790 uint32_t _cf = 0; 1791 int _df = 1; 1792 uint32_t _flag_k = FK_NONE; 1793 uint32_t _flag_a = 0, _flag_b = 0; 1794 uint32_t _itail_tgt = 0; 1795 RECOMP_REGS_LOCALS 1796 RECOMP_ENTER(0x470A7C00u); 1797 1798 goto L_470A7C00; 1799 L_470604F0: 1800 edx = MEM32(ecx + 0x4); /* 0x470604F0: mov edx, dword ptr [ecx + 4] */ 1801 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 1802 eax = eax | 0xFFFFFFFFu; /* 0x470604F3: or eax, 0xffffffff */ 1803 _cf = 0; 1804 _flag_k = FK_TEST; 1805 /* cmp edx, eax */ /* 0x470604F6: cmp edx, eax */ 1806 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1807 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1808 _flag_k = FK_CMP; 1809 if (CMP_EQ(_flag_a, _flag_b)) goto L_47060504; /* 0x470604F8: je 0x47060504 */ 1810 L_470604FA: 1811 MEM32(ecx + 0x4) = eax; /* 0x470604FA: mov dword ptr [ecx + 4], eax */ 1812 ecx = MEM32(ecx); /* 0x470604FD: mov ecx, dword ptr [ecx] */ 1813 goto L_47090300; /* 0x470604FF: jmp 0x47090300 */ 1814 L_47060504: 1815 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47060504: ret */ 1816 L_47090300: 1817 PUSH32(esp, ebp); /* 0x47090300: push ebp */ 1818 PUSH32(esp, esi); /* 0x47090301: push esi */ 1819 esi = ecx; /* 0x47090302: mov esi, ecx */ 1820 PUSH32(esp, edi); /* 0x47090304: push edi */ 1821 ebp = esi + 0x14; /* 0x47090305: lea ebp, [esi + 0x14] */ 1822 PUSH32(esp, ebp); /* 0x47090308: push ebp */ 1823 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47090309: call dword ptr [0x470ac180] */ 1824 RECOMP_FLAGS_IN(); 1825 eax = MEM32(esi + 0x3C); /* 0x4709030F: mov eax, dword ptr [esi + 0x3c] */ 1826 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1827 edx = 0; /* 0x47090312: xor edx, edx */ 1828 _cf = 0; 1829 _flag_k = FK_TEST; 1830 /* cmp eax, edx */ /* 0x47090314: cmp eax, edx */ 1831 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1832 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1833 _flag_k = FK_CMP; 1834 if (CMP_LE(_flag_a, _flag_b)) goto L_47090329; /* 0x47090316: jle 0x47090329 */ 1835 L_47090318: 1836 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1837 eax = eax - 1; /* 0x47090318: dec eax */ 1838 _flag_k = FK_DEC; 1839 PUSH32(esp, ebp); /* 0x47090319: push ebp */ 1840 MEM32(esi + 0x3C) = eax; /* 0x4709031A: mov dword ptr [esi + 0x3c], eax */ 1841 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709031D: call dword ptr [0x470ac190] */ 1842 RECOMP_FLAGS_IN(); 1843 edi = POP32_VAL(esp); /* 0x47090323: pop edi */ 1844 esi = POP32_VAL(esp); /* 0x47090324: pop esi */ 1845 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1846 eax = 0; /* 0x47090325: xor eax, eax */ 1847 _cf = 0; 1848 _flag_k = FK_TEST; 1849 ebp = POP32_VAL(esp); /* 0x47090327: pop ebp */ 1850 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090328: ret */ 1851 L_47090329: 1852 eax = MEM32(0x4710E900); /* 0x47090329: mov eax, dword ptr [0x4710e900] */ 1853 edi = esi + 0x4; /* 0x4709032E: lea edi, [esi + 4] */ 1854 MEM32(esi + 0x30) = eax; /* 0x47090331: mov dword ptr [esi + 0x30], eax */ 1855 eax = MEM32(edi); /* 0x47090334: mov eax, dword ptr [edi] */ 1856 /* cmp eax, edx */ /* 0x47090336: cmp eax, edx */ 1857 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1858 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1859 _flag_k = FK_CMP; 1860 MEM32(esi + 0x34) = edx; /* 0x47090338: mov dword ptr [esi + 0x34], edx */ 1861 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x4709033B: jne 0x47090352 */ 1862 L_4709033D: 1863 /* cmp MEM32(esi + 0xC), edx */ /* 0x4709033D: cmp dword ptr [esi + 0xc], edx */ 1864 _flag_a = (uint32_t)(MEM32(esi + 0xC)); _flag_b = (uint32_t)(edx); 1865 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1866 _flag_k = FK_CMP; 1867 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x47090340: jne 0x47090352 */ 1868 L_47090342: 1869 PUSH32(esp, ebp); /* 0x47090342: push ebp */ 1870 MEM32(esi + 0x40) = edx; /* 0x47090343: mov dword ptr [esi + 0x40], edx */ 1871 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47090346: call dword ptr [0x470ac190] */ 1872 RECOMP_FLAGS_IN(); 1873 edi = POP32_VAL(esp); /* 0x4709034C: pop edi */ 1874 esi = POP32_VAL(esp); /* 0x4709034D: pop esi */ 1875 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1876 eax = 0; /* 0x4709034E: xor eax, eax */ 1877 _cf = 0; 1878 _flag_k = FK_TEST; 1879 ebp = POP32_VAL(esp); /* 0x47090350: pop ebp */ 1880 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090351: ret */ 1881 L_47090352: 1882 /* cmp eax, edx */ /* 0x47090352: cmp eax, edx */ 1883 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1884 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1885 _flag_k = FK_CMP; 1886 ecx = 1; /* 0x47090354: mov ecx, 1 */ 1887 if (CMP_EQ(_flag_a, _flag_b)) goto L_47090364; /* 0x47090359: je 0x47090364 */ 1888 L_4709035B: 1889 MEM32(esi + 0x34) = 2; /* 0x4709035B: mov dword ptr [esi + 0x34], 2 */ 1890 goto L_4709036A; /* 0x47090362: jmp 0x4709036a */ 1891 L_47090364: 1892 MEM32(esi + 0x34) = ecx; /* 0x47090364: mov dword ptr [esi + 0x34], ecx */ 1893 edi = esi + 0xC; /* 0x47090367: lea edi, [esi + 0xc] */ 1894 L_4709036A: 1895 eax = MEM32(edi); /* 0x4709036A: mov eax, dword ptr [edi] */ 1896 MEM32(eax + 0x10) = ecx; /* 0x4709036C: mov dword ptr [eax + 0x10], ecx */ 1897 eax = MEM32(edi); /* 0x4709036F: mov eax, dword ptr [edi] */ 1898 PUSH32(esp, edx); /* 0x47090371: push edx */ 1899 PUSH32(esp, ecx); /* 0x47090372: push ecx */ 1900 ecx = MEM32(eax + 0x8); /* 0x47090373: mov ecx, dword ptr [eax + 8] */ 1901 PUSH32(esp, ecx); /* 0x47090376: push ecx */ 1902 RECOMP_ICALL(MEM32(0x470AC168)); /* 0x47090377: call dword ptr [0x470ac168] */ 1903 RECOMP_FLAGS_IN(); 1904 /* test eax, eax */ /* 0x4709037D: test eax, eax */ 1905 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1906 _cf = 0; 1907 _flag_k = FK_TEST; 1908 if (TEST_NZ(_flag_a, _flag_b)) goto L_47090393; /* 0x4709037F: jne 0x47090393 */ 1909 L_47090381: 1910 PUSH32(esp, ebx); /* 0x47090381: push ebx */ 1911 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47090382: call dword ptr [0x470ac3c8] */ 1912 RECOMP_FLAGS_IN(); 1913 ebx = eax; /* 0x47090388: mov ebx, eax */ 1914 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4709038A: call dword ptr [0x470ac150] */ 1915 RECOMP_FLAGS_IN(); 1916 MEM32(ebx) = eax; /* 0x47090390: mov dword ptr [ebx], eax */ 1917 ebx = POP32_VAL(esp); /* 0x47090392: pop ebx */ 1918 L_47090393: 1919 edx = MEM32(edi); /* 0x47090393: mov edx, dword ptr [edi] */ 1920 eax = MEM32(edx + 0x4); /* 0x47090395: mov eax, dword ptr [edx + 4] */ 1921 PUSH32(esp, ebp); /* 0x47090398: push ebp */ 1922 MEM32(esi + 0x30) = eax; /* 0x47090399: mov dword ptr [esi + 0x30], eax */ 1923 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709039C: call dword ptr [0x470ac190] */ 1924 RECOMP_FLAGS_IN(); 1925 edi = POP32_VAL(esp); /* 0x470903A2: pop edi */ 1926 esi = POP32_VAL(esp); /* 0x470903A3: pop esi */ 1927 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1928 eax = 0; /* 0x470903A4: xor eax, eax */ 1929 _cf = 0; 1930 _flag_k = FK_TEST; 1931 ebp = POP32_VAL(esp); /* 0x470903A6: pop ebp */ 1932 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470903A7: ret */ 1933 L_470A7C00: 1934 ecx = ebp + (-0x14); /* 0x470A7C00: lea ecx, [ebp - 0x14] */ 1935 RECOMP_BACKEDGE(); 1936 goto L_470604F0; /* 0x470A7C03: jmp 0x470604f0 */ 1937 { RECOMP_REGS_OUT(); return; } /* end of function */ 1938 RECOMP_REGS_OUT(); 1939 } 1940 1941 void sub_470A7C08(void) { 1942 int _fpu_cmp = 0; 1943 uint32_t _cf = 0; 1944 int _df = 1; 1945 uint32_t _flag_k = FK_NONE; 1946 uint32_t _flag_a = 0, _flag_b = 0; 1947 uint32_t _itail_tgt = 0; 1948 RECOMP_REGS_LOCALS 1949 RECOMP_ENTER(0x470A7C08u); 1950 1951 goto L_470A7C08; 1952 L_470041D0: 1953 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470041D0: ret */ 1954 L_470A7C08: 1955 ecx = ebp + (-0x1C); /* 0x470A7C08: lea ecx, [ebp - 0x1c] */ 1956 RECOMP_BACKEDGE(); 1957 goto L_470041D0; /* 0x470A7C0B: jmp 0x470041d0 */ 1958 { RECOMP_REGS_OUT(); return; } /* end of function */ 1959 RECOMP_REGS_OUT(); 1960 } 1961 1962 void sub_470A7C10(void) { 1963 int _fpu_cmp = 0; 1964 uint32_t _cf = 0; 1965 int _df = 1; 1966 uint32_t _flag_k = FK_NONE; 1967 uint32_t _flag_a = 0, _flag_b = 0; 1968 uint32_t _itail_tgt = 0; 1969 RECOMP_REGS_LOCALS 1970 RECOMP_ENTER(0x470A7C10u); 1971 1972 goto L_470A7C10; 1973 L_470A33EC: 1974 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 1975 L_470A7C10: 1976 eax = 0x470B5778u; /* 0x470A7C10: mov eax, 0x470b5778 */ 1977 L_470A7C15: 1978 RECOMP_BACKEDGE(); 1979 goto L_470A33EC; /* 0x470A7C15: jmp 0x470a33ec */ 1980 { RECOMP_REGS_OUT(); return; } /* end of function */ 1981 _ljump: 1982 switch (_itail_tgt) { 1983 case 0x470A33ECu: goto L_470A33EC; 1984 case 0x470A7C10u: goto L_470A7C10; 1985 case 0x470A7C15u: goto L_470A7C15; 1986 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1987 } 1988 RECOMP_REGS_OUT(); 1989 } 1990 1991 void sub_470A7C20(void) { 1992 int _fpu_cmp = 0; 1993 uint32_t _cf = 0; 1994 int _df = 1; 1995 uint32_t _flag_k = FK_NONE; 1996 uint32_t _flag_a = 0, _flag_b = 0; 1997 uint32_t _itail_tgt = 0; 1998 RECOMP_REGS_LOCALS 1999 RECOMP_ENTER(0x470A7C20u); 2000 2001 goto L_470A7C20; 2002 L_470041D0: 2003 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470041D0: ret */ 2004 L_470A7C20: 2005 ecx = ebp + (-0x18); /* 0x470A7C20: lea ecx, [ebp - 0x18] */ 2006 RECOMP_BACKEDGE(); 2007 goto L_470041D0; /* 0x470A7C23: jmp 0x470041d0 */ 2008 { RECOMP_REGS_OUT(); return; } /* end of function */ 2009 RECOMP_REGS_OUT(); 2010 } 2011 2012 void sub_470A7C28(void) { 2013 int _fpu_cmp = 0; 2014 uint32_t _cf = 0; 2015 int _df = 1; 2016 uint32_t _flag_k = FK_NONE; 2017 uint32_t _flag_a = 0, _flag_b = 0; 2018 uint32_t _itail_tgt = 0; 2019 RECOMP_REGS_LOCALS 2020 RECOMP_ENTER(0x470A7C28u); 2021 2022 goto L_470A7C28; 2023 L_470604F0: 2024 edx = MEM32(ecx + 0x4); /* 0x470604F0: mov edx, dword ptr [ecx + 4] */ 2025 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2026 eax = eax | 0xFFFFFFFFu; /* 0x470604F3: or eax, 0xffffffff */ 2027 _cf = 0; 2028 _flag_k = FK_TEST; 2029 /* cmp edx, eax */ /* 0x470604F6: cmp edx, eax */ 2030 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2031 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2032 _flag_k = FK_CMP; 2033 if (CMP_EQ(_flag_a, _flag_b)) goto L_47060504; /* 0x470604F8: je 0x47060504 */ 2034 L_470604FA: 2035 MEM32(ecx + 0x4) = eax; /* 0x470604FA: mov dword ptr [ecx + 4], eax */ 2036 ecx = MEM32(ecx); /* 0x470604FD: mov ecx, dword ptr [ecx] */ 2037 goto L_47090300; /* 0x470604FF: jmp 0x47090300 */ 2038 L_47060504: 2039 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47060504: ret */ 2040 L_47090300: 2041 PUSH32(esp, ebp); /* 0x47090300: push ebp */ 2042 PUSH32(esp, esi); /* 0x47090301: push esi */ 2043 esi = ecx; /* 0x47090302: mov esi, ecx */ 2044 PUSH32(esp, edi); /* 0x47090304: push edi */ 2045 ebp = esi + 0x14; /* 0x47090305: lea ebp, [esi + 0x14] */ 2046 PUSH32(esp, ebp); /* 0x47090308: push ebp */ 2047 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47090309: call dword ptr [0x470ac180] */ 2048 RECOMP_FLAGS_IN(); 2049 eax = MEM32(esi + 0x3C); /* 0x4709030F: mov eax, dword ptr [esi + 0x3c] */ 2050 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2051 edx = 0; /* 0x47090312: xor edx, edx */ 2052 _cf = 0; 2053 _flag_k = FK_TEST; 2054 /* cmp eax, edx */ /* 0x47090314: cmp eax, edx */ 2055 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2056 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2057 _flag_k = FK_CMP; 2058 if (CMP_LE(_flag_a, _flag_b)) goto L_47090329; /* 0x47090316: jle 0x47090329 */ 2059 L_47090318: 2060 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2061 eax = eax - 1; /* 0x47090318: dec eax */ 2062 _flag_k = FK_DEC; 2063 PUSH32(esp, ebp); /* 0x47090319: push ebp */ 2064 MEM32(esi + 0x3C) = eax; /* 0x4709031A: mov dword ptr [esi + 0x3c], eax */ 2065 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709031D: call dword ptr [0x470ac190] */ 2066 RECOMP_FLAGS_IN(); 2067 edi = POP32_VAL(esp); /* 0x47090323: pop edi */ 2068 esi = POP32_VAL(esp); /* 0x47090324: pop esi */ 2069 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2070 eax = 0; /* 0x47090325: xor eax, eax */ 2071 _cf = 0; 2072 _flag_k = FK_TEST; 2073 ebp = POP32_VAL(esp); /* 0x47090327: pop ebp */ 2074 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090328: ret */ 2075 L_47090329: 2076 eax = MEM32(0x4710E900); /* 0x47090329: mov eax, dword ptr [0x4710e900] */ 2077 edi = esi + 0x4; /* 0x4709032E: lea edi, [esi + 4] */ 2078 MEM32(esi + 0x30) = eax; /* 0x47090331: mov dword ptr [esi + 0x30], eax */ 2079 eax = MEM32(edi); /* 0x47090334: mov eax, dword ptr [edi] */ 2080 /* cmp eax, edx */ /* 0x47090336: cmp eax, edx */ 2081 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2082 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2083 _flag_k = FK_CMP; 2084 MEM32(esi + 0x34) = edx; /* 0x47090338: mov dword ptr [esi + 0x34], edx */ 2085 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x4709033B: jne 0x47090352 */ 2086 L_4709033D: 2087 /* cmp MEM32(esi + 0xC), edx */ /* 0x4709033D: cmp dword ptr [esi + 0xc], edx */ 2088 _flag_a = (uint32_t)(MEM32(esi + 0xC)); _flag_b = (uint32_t)(edx); 2089 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2090 _flag_k = FK_CMP; 2091 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x47090340: jne 0x47090352 */ 2092 L_47090342: 2093 PUSH32(esp, ebp); /* 0x47090342: push ebp */ 2094 MEM32(esi + 0x40) = edx; /* 0x47090343: mov dword ptr [esi + 0x40], edx */ 2095 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47090346: call dword ptr [0x470ac190] */ 2096 RECOMP_FLAGS_IN(); 2097 edi = POP32_VAL(esp); /* 0x4709034C: pop edi */ 2098 esi = POP32_VAL(esp); /* 0x4709034D: pop esi */ 2099 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2100 eax = 0; /* 0x4709034E: xor eax, eax */ 2101 _cf = 0; 2102 _flag_k = FK_TEST; 2103 ebp = POP32_VAL(esp); /* 0x47090350: pop ebp */ 2104 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090351: ret */ 2105 L_47090352: 2106 /* cmp eax, edx */ /* 0x47090352: cmp eax, edx */ 2107 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2108 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2109 _flag_k = FK_CMP; 2110 ecx = 1; /* 0x47090354: mov ecx, 1 */ 2111 if (CMP_EQ(_flag_a, _flag_b)) goto L_47090364; /* 0x47090359: je 0x47090364 */ 2112 L_4709035B: 2113 MEM32(esi + 0x34) = 2; /* 0x4709035B: mov dword ptr [esi + 0x34], 2 */ 2114 goto L_4709036A; /* 0x47090362: jmp 0x4709036a */ 2115 L_47090364: 2116 MEM32(esi + 0x34) = ecx; /* 0x47090364: mov dword ptr [esi + 0x34], ecx */ 2117 edi = esi + 0xC; /* 0x47090367: lea edi, [esi + 0xc] */ 2118 L_4709036A: 2119 eax = MEM32(edi); /* 0x4709036A: mov eax, dword ptr [edi] */ 2120 MEM32(eax + 0x10) = ecx; /* 0x4709036C: mov dword ptr [eax + 0x10], ecx */ 2121 eax = MEM32(edi); /* 0x4709036F: mov eax, dword ptr [edi] */ 2122 PUSH32(esp, edx); /* 0x47090371: push edx */ 2123 PUSH32(esp, ecx); /* 0x47090372: push ecx */ 2124 ecx = MEM32(eax + 0x8); /* 0x47090373: mov ecx, dword ptr [eax + 8] */ 2125 PUSH32(esp, ecx); /* 0x47090376: push ecx */ 2126 RECOMP_ICALL(MEM32(0x470AC168)); /* 0x47090377: call dword ptr [0x470ac168] */ 2127 RECOMP_FLAGS_IN(); 2128 /* test eax, eax */ /* 0x4709037D: test eax, eax */ 2129 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2130 _cf = 0; 2131 _flag_k = FK_TEST; 2132 if (TEST_NZ(_flag_a, _flag_b)) goto L_47090393; /* 0x4709037F: jne 0x47090393 */ 2133 L_47090381: 2134 PUSH32(esp, ebx); /* 0x47090381: push ebx */ 2135 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47090382: call dword ptr [0x470ac3c8] */ 2136 RECOMP_FLAGS_IN(); 2137 ebx = eax; /* 0x47090388: mov ebx, eax */ 2138 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4709038A: call dword ptr [0x470ac150] */ 2139 RECOMP_FLAGS_IN(); 2140 MEM32(ebx) = eax; /* 0x47090390: mov dword ptr [ebx], eax */ 2141 ebx = POP32_VAL(esp); /* 0x47090392: pop ebx */ 2142 L_47090393: 2143 edx = MEM32(edi); /* 0x47090393: mov edx, dword ptr [edi] */ 2144 eax = MEM32(edx + 0x4); /* 0x47090395: mov eax, dword ptr [edx + 4] */ 2145 PUSH32(esp, ebp); /* 0x47090398: push ebp */ 2146 MEM32(esi + 0x30) = eax; /* 0x47090399: mov dword ptr [esi + 0x30], eax */ 2147 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709039C: call dword ptr [0x470ac190] */ 2148 RECOMP_FLAGS_IN(); 2149 edi = POP32_VAL(esp); /* 0x470903A2: pop edi */ 2150 esi = POP32_VAL(esp); /* 0x470903A3: pop esi */ 2151 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2152 eax = 0; /* 0x470903A4: xor eax, eax */ 2153 _cf = 0; 2154 _flag_k = FK_TEST; 2155 ebp = POP32_VAL(esp); /* 0x470903A6: pop ebp */ 2156 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470903A7: ret */ 2157 L_470A7C28: 2158 ecx = ebp + (-0x20); /* 0x470A7C28: lea ecx, [ebp - 0x20] */ 2159 RECOMP_BACKEDGE(); 2160 goto L_470604F0; /* 0x470A7C2B: jmp 0x470604f0 */ 2161 { RECOMP_REGS_OUT(); return; } /* end of function */ 2162 RECOMP_REGS_OUT(); 2163 } 2164 2165 void sub_470A7C30(void) { 2166 int _fpu_cmp = 0; 2167 uint32_t _cf = 0; 2168 int _df = 1; 2169 uint32_t _flag_k = FK_NONE; 2170 uint32_t _flag_a = 0, _flag_b = 0; 2171 uint32_t _itail_tgt = 0; 2172 RECOMP_REGS_LOCALS 2173 RECOMP_ENTER(0x470A7C30u); 2174 2175 goto L_470A7C30; 2176 L_470A33EC: 2177 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 2178 L_470A7C30: 2179 eax = 0x470B57A8u; /* 0x470A7C30: mov eax, 0x470b57a8 */ 2180 L_470A7C35: 2181 RECOMP_BACKEDGE(); 2182 goto L_470A33EC; /* 0x470A7C35: jmp 0x470a33ec */ 2183 { RECOMP_REGS_OUT(); return; } /* end of function */ 2184 _ljump: 2185 switch (_itail_tgt) { 2186 case 0x470A33ECu: goto L_470A33EC; 2187 case 0x470A7C30u: goto L_470A7C30; 2188 case 0x470A7C35u: goto L_470A7C35; 2189 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2190 } 2191 RECOMP_REGS_OUT(); 2192 } 2193 2194 void sub_470A7C40(void) { 2195 int _fpu_cmp = 0; 2196 uint32_t _cf = 0; 2197 int _df = 1; 2198 uint32_t _flag_k = FK_NONE; 2199 uint32_t _flag_a = 0, _flag_b = 0; 2200 uint32_t _itail_tgt = 0; 2201 RECOMP_REGS_LOCALS 2202 RECOMP_ENTER(0x470A7C40u); 2203 2204 goto L_470A7C40; 2205 L_470604F0: 2206 edx = MEM32(ecx + 0x4); /* 0x470604F0: mov edx, dword ptr [ecx + 4] */ 2207 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2208 eax = eax | 0xFFFFFFFFu; /* 0x470604F3: or eax, 0xffffffff */ 2209 _cf = 0; 2210 _flag_k = FK_TEST; 2211 /* cmp edx, eax */ /* 0x470604F6: cmp edx, eax */ 2212 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2213 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2214 _flag_k = FK_CMP; 2215 if (CMP_EQ(_flag_a, _flag_b)) goto L_47060504; /* 0x470604F8: je 0x47060504 */ 2216 L_470604FA: 2217 MEM32(ecx + 0x4) = eax; /* 0x470604FA: mov dword ptr [ecx + 4], eax */ 2218 ecx = MEM32(ecx); /* 0x470604FD: mov ecx, dword ptr [ecx] */ 2219 goto L_47090300; /* 0x470604FF: jmp 0x47090300 */ 2220 L_47060504: 2221 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47060504: ret */ 2222 L_47090300: 2223 PUSH32(esp, ebp); /* 0x47090300: push ebp */ 2224 PUSH32(esp, esi); /* 0x47090301: push esi */ 2225 esi = ecx; /* 0x47090302: mov esi, ecx */ 2226 PUSH32(esp, edi); /* 0x47090304: push edi */ 2227 ebp = esi + 0x14; /* 0x47090305: lea ebp, [esi + 0x14] */ 2228 PUSH32(esp, ebp); /* 0x47090308: push ebp */ 2229 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47090309: call dword ptr [0x470ac180] */ 2230 RECOMP_FLAGS_IN(); 2231 eax = MEM32(esi + 0x3C); /* 0x4709030F: mov eax, dword ptr [esi + 0x3c] */ 2232 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2233 edx = 0; /* 0x47090312: xor edx, edx */ 2234 _cf = 0; 2235 _flag_k = FK_TEST; 2236 /* cmp eax, edx */ /* 0x47090314: cmp eax, edx */ 2237 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2238 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2239 _flag_k = FK_CMP; 2240 if (CMP_LE(_flag_a, _flag_b)) goto L_47090329; /* 0x47090316: jle 0x47090329 */ 2241 L_47090318: 2242 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2243 eax = eax - 1; /* 0x47090318: dec eax */ 2244 _flag_k = FK_DEC; 2245 PUSH32(esp, ebp); /* 0x47090319: push ebp */ 2246 MEM32(esi + 0x3C) = eax; /* 0x4709031A: mov dword ptr [esi + 0x3c], eax */ 2247 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709031D: call dword ptr [0x470ac190] */ 2248 RECOMP_FLAGS_IN(); 2249 edi = POP32_VAL(esp); /* 0x47090323: pop edi */ 2250 esi = POP32_VAL(esp); /* 0x47090324: pop esi */ 2251 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2252 eax = 0; /* 0x47090325: xor eax, eax */ 2253 _cf = 0; 2254 _flag_k = FK_TEST; 2255 ebp = POP32_VAL(esp); /* 0x47090327: pop ebp */ 2256 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090328: ret */ 2257 L_47090329: 2258 eax = MEM32(0x4710E900); /* 0x47090329: mov eax, dword ptr [0x4710e900] */ 2259 edi = esi + 0x4; /* 0x4709032E: lea edi, [esi + 4] */ 2260 MEM32(esi + 0x30) = eax; /* 0x47090331: mov dword ptr [esi + 0x30], eax */ 2261 eax = MEM32(edi); /* 0x47090334: mov eax, dword ptr [edi] */ 2262 /* cmp eax, edx */ /* 0x47090336: cmp eax, edx */ 2263 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2264 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2265 _flag_k = FK_CMP; 2266 MEM32(esi + 0x34) = edx; /* 0x47090338: mov dword ptr [esi + 0x34], edx */ 2267 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x4709033B: jne 0x47090352 */ 2268 L_4709033D: 2269 /* cmp MEM32(esi + 0xC), edx */ /* 0x4709033D: cmp dword ptr [esi + 0xc], edx */ 2270 _flag_a = (uint32_t)(MEM32(esi + 0xC)); _flag_b = (uint32_t)(edx); 2271 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2272 _flag_k = FK_CMP; 2273 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x47090340: jne 0x47090352 */ 2274 L_47090342: 2275 PUSH32(esp, ebp); /* 0x47090342: push ebp */ 2276 MEM32(esi + 0x40) = edx; /* 0x47090343: mov dword ptr [esi + 0x40], edx */ 2277 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47090346: call dword ptr [0x470ac190] */ 2278 RECOMP_FLAGS_IN(); 2279 edi = POP32_VAL(esp); /* 0x4709034C: pop edi */ 2280 esi = POP32_VAL(esp); /* 0x4709034D: pop esi */ 2281 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2282 eax = 0; /* 0x4709034E: xor eax, eax */ 2283 _cf = 0; 2284 _flag_k = FK_TEST; 2285 ebp = POP32_VAL(esp); /* 0x47090350: pop ebp */ 2286 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090351: ret */ 2287 L_47090352: 2288 /* cmp eax, edx */ /* 0x47090352: cmp eax, edx */ 2289 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2290 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2291 _flag_k = FK_CMP; 2292 ecx = 1; /* 0x47090354: mov ecx, 1 */ 2293 if (CMP_EQ(_flag_a, _flag_b)) goto L_47090364; /* 0x47090359: je 0x47090364 */ 2294 L_4709035B: 2295 MEM32(esi + 0x34) = 2; /* 0x4709035B: mov dword ptr [esi + 0x34], 2 */ 2296 goto L_4709036A; /* 0x47090362: jmp 0x4709036a */ 2297 L_47090364: 2298 MEM32(esi + 0x34) = ecx; /* 0x47090364: mov dword ptr [esi + 0x34], ecx */ 2299 edi = esi + 0xC; /* 0x47090367: lea edi, [esi + 0xc] */ 2300 L_4709036A: 2301 eax = MEM32(edi); /* 0x4709036A: mov eax, dword ptr [edi] */ 2302 MEM32(eax + 0x10) = ecx; /* 0x4709036C: mov dword ptr [eax + 0x10], ecx */ 2303 eax = MEM32(edi); /* 0x4709036F: mov eax, dword ptr [edi] */ 2304 PUSH32(esp, edx); /* 0x47090371: push edx */ 2305 PUSH32(esp, ecx); /* 0x47090372: push ecx */ 2306 ecx = MEM32(eax + 0x8); /* 0x47090373: mov ecx, dword ptr [eax + 8] */ 2307 PUSH32(esp, ecx); /* 0x47090376: push ecx */ 2308 RECOMP_ICALL(MEM32(0x470AC168)); /* 0x47090377: call dword ptr [0x470ac168] */ 2309 RECOMP_FLAGS_IN(); 2310 /* test eax, eax */ /* 0x4709037D: test eax, eax */ 2311 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2312 _cf = 0; 2313 _flag_k = FK_TEST; 2314 if (TEST_NZ(_flag_a, _flag_b)) goto L_47090393; /* 0x4709037F: jne 0x47090393 */ 2315 L_47090381: 2316 PUSH32(esp, ebx); /* 0x47090381: push ebx */ 2317 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47090382: call dword ptr [0x470ac3c8] */ 2318 RECOMP_FLAGS_IN(); 2319 ebx = eax; /* 0x47090388: mov ebx, eax */ 2320 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4709038A: call dword ptr [0x470ac150] */ 2321 RECOMP_FLAGS_IN(); 2322 MEM32(ebx) = eax; /* 0x47090390: mov dword ptr [ebx], eax */ 2323 ebx = POP32_VAL(esp); /* 0x47090392: pop ebx */ 2324 L_47090393: 2325 edx = MEM32(edi); /* 0x47090393: mov edx, dword ptr [edi] */ 2326 eax = MEM32(edx + 0x4); /* 0x47090395: mov eax, dword ptr [edx + 4] */ 2327 PUSH32(esp, ebp); /* 0x47090398: push ebp */ 2328 MEM32(esi + 0x30) = eax; /* 0x47090399: mov dword ptr [esi + 0x30], eax */ 2329 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709039C: call dword ptr [0x470ac190] */ 2330 RECOMP_FLAGS_IN(); 2331 edi = POP32_VAL(esp); /* 0x470903A2: pop edi */ 2332 esi = POP32_VAL(esp); /* 0x470903A3: pop esi */ 2333 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2334 eax = 0; /* 0x470903A4: xor eax, eax */ 2335 _cf = 0; 2336 _flag_k = FK_TEST; 2337 ebp = POP32_VAL(esp); /* 0x470903A6: pop ebp */ 2338 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470903A7: ret */ 2339 L_470A7C40: 2340 ecx = ebp + (-0x14); /* 0x470A7C40: lea ecx, [ebp - 0x14] */ 2341 RECOMP_BACKEDGE(); 2342 goto L_470604F0; /* 0x470A7C43: jmp 0x470604f0 */ 2343 { RECOMP_REGS_OUT(); return; } /* end of function */ 2344 RECOMP_REGS_OUT(); 2345 } 2346 2347 void sub_470A7C48(void) { 2348 int _fpu_cmp = 0; 2349 uint32_t _cf = 0; 2350 int _df = 1; 2351 uint32_t _flag_k = FK_NONE; 2352 uint32_t _flag_a = 0, _flag_b = 0; 2353 uint32_t _itail_tgt = 0; 2354 RECOMP_REGS_LOCALS 2355 RECOMP_ENTER(0x470A7C48u); 2356 2357 goto L_470A7C48; 2358 L_470A33EC: 2359 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 2360 L_470A7C48: 2361 eax = 0x470B57D8u; /* 0x470A7C48: mov eax, 0x470b57d8 */ 2362 L_470A7C4D: 2363 RECOMP_BACKEDGE(); 2364 goto L_470A33EC; /* 0x470A7C4D: jmp 0x470a33ec */ 2365 { RECOMP_REGS_OUT(); return; } /* end of function */ 2366 _ljump: 2367 switch (_itail_tgt) { 2368 case 0x470A33ECu: goto L_470A33EC; 2369 case 0x470A7C48u: goto L_470A7C48; 2370 case 0x470A7C4Du: goto L_470A7C4D; 2371 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2372 } 2373 RECOMP_REGS_OUT(); 2374 } 2375 2376 void sub_470A7C60(void) { 2377 int _fpu_cmp = 0; 2378 uint32_t _cf = 0; 2379 int _df = 1; 2380 uint32_t _flag_k = FK_NONE; 2381 uint32_t _flag_a = 0, _flag_b = 0; 2382 uint32_t _itail_tgt = 0; 2383 RECOMP_REGS_LOCALS 2384 RECOMP_ENTER(0x470A7C60u); 2385 2386 goto L_470A7C60; 2387 L_470604F0: 2388 edx = MEM32(ecx + 0x4); /* 0x470604F0: mov edx, dword ptr [ecx + 4] */ 2389 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2390 eax = eax | 0xFFFFFFFFu; /* 0x470604F3: or eax, 0xffffffff */ 2391 _cf = 0; 2392 _flag_k = FK_TEST; 2393 /* cmp edx, eax */ /* 0x470604F6: cmp edx, eax */ 2394 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2395 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2396 _flag_k = FK_CMP; 2397 if (CMP_EQ(_flag_a, _flag_b)) goto L_47060504; /* 0x470604F8: je 0x47060504 */ 2398 L_470604FA: 2399 MEM32(ecx + 0x4) = eax; /* 0x470604FA: mov dword ptr [ecx + 4], eax */ 2400 ecx = MEM32(ecx); /* 0x470604FD: mov ecx, dword ptr [ecx] */ 2401 goto L_47090300; /* 0x470604FF: jmp 0x47090300 */ 2402 L_47060504: 2403 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47060504: ret */ 2404 L_47090300: 2405 PUSH32(esp, ebp); /* 0x47090300: push ebp */ 2406 PUSH32(esp, esi); /* 0x47090301: push esi */ 2407 esi = ecx; /* 0x47090302: mov esi, ecx */ 2408 PUSH32(esp, edi); /* 0x47090304: push edi */ 2409 ebp = esi + 0x14; /* 0x47090305: lea ebp, [esi + 0x14] */ 2410 PUSH32(esp, ebp); /* 0x47090308: push ebp */ 2411 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47090309: call dword ptr [0x470ac180] */ 2412 RECOMP_FLAGS_IN(); 2413 eax = MEM32(esi + 0x3C); /* 0x4709030F: mov eax, dword ptr [esi + 0x3c] */ 2414 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2415 edx = 0; /* 0x47090312: xor edx, edx */ 2416 _cf = 0; 2417 _flag_k = FK_TEST; 2418 /* cmp eax, edx */ /* 0x47090314: cmp eax, edx */ 2419 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2420 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2421 _flag_k = FK_CMP; 2422 if (CMP_LE(_flag_a, _flag_b)) goto L_47090329; /* 0x47090316: jle 0x47090329 */ 2423 L_47090318: 2424 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2425 eax = eax - 1; /* 0x47090318: dec eax */ 2426 _flag_k = FK_DEC; 2427 PUSH32(esp, ebp); /* 0x47090319: push ebp */ 2428 MEM32(esi + 0x3C) = eax; /* 0x4709031A: mov dword ptr [esi + 0x3c], eax */ 2429 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709031D: call dword ptr [0x470ac190] */ 2430 RECOMP_FLAGS_IN(); 2431 edi = POP32_VAL(esp); /* 0x47090323: pop edi */ 2432 esi = POP32_VAL(esp); /* 0x47090324: pop esi */ 2433 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2434 eax = 0; /* 0x47090325: xor eax, eax */ 2435 _cf = 0; 2436 _flag_k = FK_TEST; 2437 ebp = POP32_VAL(esp); /* 0x47090327: pop ebp */ 2438 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090328: ret */ 2439 L_47090329: 2440 eax = MEM32(0x4710E900); /* 0x47090329: mov eax, dword ptr [0x4710e900] */ 2441 edi = esi + 0x4; /* 0x4709032E: lea edi, [esi + 4] */ 2442 MEM32(esi + 0x30) = eax; /* 0x47090331: mov dword ptr [esi + 0x30], eax */ 2443 eax = MEM32(edi); /* 0x47090334: mov eax, dword ptr [edi] */ 2444 /* cmp eax, edx */ /* 0x47090336: cmp eax, edx */ 2445 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2446 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2447 _flag_k = FK_CMP; 2448 MEM32(esi + 0x34) = edx; /* 0x47090338: mov dword ptr [esi + 0x34], edx */ 2449 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x4709033B: jne 0x47090352 */ 2450 L_4709033D: 2451 /* cmp MEM32(esi + 0xC), edx */ /* 0x4709033D: cmp dword ptr [esi + 0xc], edx */ 2452 _flag_a = (uint32_t)(MEM32(esi + 0xC)); _flag_b = (uint32_t)(edx); 2453 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2454 _flag_k = FK_CMP; 2455 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x47090340: jne 0x47090352 */ 2456 L_47090342: 2457 PUSH32(esp, ebp); /* 0x47090342: push ebp */ 2458 MEM32(esi + 0x40) = edx; /* 0x47090343: mov dword ptr [esi + 0x40], edx */ 2459 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47090346: call dword ptr [0x470ac190] */ 2460 RECOMP_FLAGS_IN(); 2461 edi = POP32_VAL(esp); /* 0x4709034C: pop edi */ 2462 esi = POP32_VAL(esp); /* 0x4709034D: pop esi */ 2463 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2464 eax = 0; /* 0x4709034E: xor eax, eax */ 2465 _cf = 0; 2466 _flag_k = FK_TEST; 2467 ebp = POP32_VAL(esp); /* 0x47090350: pop ebp */ 2468 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090351: ret */ 2469 L_47090352: 2470 /* cmp eax, edx */ /* 0x47090352: cmp eax, edx */ 2471 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2472 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2473 _flag_k = FK_CMP; 2474 ecx = 1; /* 0x47090354: mov ecx, 1 */ 2475 if (CMP_EQ(_flag_a, _flag_b)) goto L_47090364; /* 0x47090359: je 0x47090364 */ 2476 L_4709035B: 2477 MEM32(esi + 0x34) = 2; /* 0x4709035B: mov dword ptr [esi + 0x34], 2 */ 2478 goto L_4709036A; /* 0x47090362: jmp 0x4709036a */ 2479 L_47090364: 2480 MEM32(esi + 0x34) = ecx; /* 0x47090364: mov dword ptr [esi + 0x34], ecx */ 2481 edi = esi + 0xC; /* 0x47090367: lea edi, [esi + 0xc] */ 2482 L_4709036A: 2483 eax = MEM32(edi); /* 0x4709036A: mov eax, dword ptr [edi] */ 2484 MEM32(eax + 0x10) = ecx; /* 0x4709036C: mov dword ptr [eax + 0x10], ecx */ 2485 eax = MEM32(edi); /* 0x4709036F: mov eax, dword ptr [edi] */ 2486 PUSH32(esp, edx); /* 0x47090371: push edx */ 2487 PUSH32(esp, ecx); /* 0x47090372: push ecx */ 2488 ecx = MEM32(eax + 0x8); /* 0x47090373: mov ecx, dword ptr [eax + 8] */ 2489 PUSH32(esp, ecx); /* 0x47090376: push ecx */ 2490 RECOMP_ICALL(MEM32(0x470AC168)); /* 0x47090377: call dword ptr [0x470ac168] */ 2491 RECOMP_FLAGS_IN(); 2492 /* test eax, eax */ /* 0x4709037D: test eax, eax */ 2493 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2494 _cf = 0; 2495 _flag_k = FK_TEST; 2496 if (TEST_NZ(_flag_a, _flag_b)) goto L_47090393; /* 0x4709037F: jne 0x47090393 */ 2497 L_47090381: 2498 PUSH32(esp, ebx); /* 0x47090381: push ebx */ 2499 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47090382: call dword ptr [0x470ac3c8] */ 2500 RECOMP_FLAGS_IN(); 2501 ebx = eax; /* 0x47090388: mov ebx, eax */ 2502 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4709038A: call dword ptr [0x470ac150] */ 2503 RECOMP_FLAGS_IN(); 2504 MEM32(ebx) = eax; /* 0x47090390: mov dword ptr [ebx], eax */ 2505 ebx = POP32_VAL(esp); /* 0x47090392: pop ebx */ 2506 L_47090393: 2507 edx = MEM32(edi); /* 0x47090393: mov edx, dword ptr [edi] */ 2508 eax = MEM32(edx + 0x4); /* 0x47090395: mov eax, dword ptr [edx + 4] */ 2509 PUSH32(esp, ebp); /* 0x47090398: push ebp */ 2510 MEM32(esi + 0x30) = eax; /* 0x47090399: mov dword ptr [esi + 0x30], eax */ 2511 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709039C: call dword ptr [0x470ac190] */ 2512 RECOMP_FLAGS_IN(); 2513 edi = POP32_VAL(esp); /* 0x470903A2: pop edi */ 2514 esi = POP32_VAL(esp); /* 0x470903A3: pop esi */ 2515 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2516 eax = 0; /* 0x470903A4: xor eax, eax */ 2517 _cf = 0; 2518 _flag_k = FK_TEST; 2519 ebp = POP32_VAL(esp); /* 0x470903A6: pop ebp */ 2520 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470903A7: ret */ 2521 L_470A7C60: 2522 ecx = ebp + (-0x14); /* 0x470A7C60: lea ecx, [ebp - 0x14] */ 2523 RECOMP_BACKEDGE(); 2524 goto L_470604F0; /* 0x470A7C63: jmp 0x470604f0 */ 2525 { RECOMP_REGS_OUT(); return; } /* end of function */ 2526 RECOMP_REGS_OUT(); 2527 } 2528 2529 void sub_470A7C68(void) { 2530 int _fpu_cmp = 0; 2531 uint32_t _cf = 0; 2532 int _df = 1; 2533 uint32_t _flag_k = FK_NONE; 2534 uint32_t _flag_a = 0, _flag_b = 0; 2535 uint32_t _itail_tgt = 0; 2536 RECOMP_REGS_LOCALS 2537 RECOMP_ENTER(0x470A7C68u); 2538 2539 goto L_470A7C68; 2540 L_470041D0: 2541 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470041D0: ret */ 2542 L_470A7C68: 2543 ecx = ebp + (-0x1C); /* 0x470A7C68: lea ecx, [ebp - 0x1c] */ 2544 RECOMP_BACKEDGE(); 2545 goto L_470041D0; /* 0x470A7C6B: jmp 0x470041d0 */ 2546 { RECOMP_REGS_OUT(); return; } /* end of function */ 2547 RECOMP_REGS_OUT(); 2548 } 2549 2550 void sub_470A7C70(void) { 2551 int _fpu_cmp = 0; 2552 uint32_t _cf = 0; 2553 int _df = 1; 2554 uint32_t _flag_k = FK_NONE; 2555 uint32_t _flag_a = 0, _flag_b = 0; 2556 uint32_t _itail_tgt = 0; 2557 RECOMP_REGS_LOCALS 2558 RECOMP_ENTER(0x470A7C70u); 2559 2560 goto L_470A7C70; 2561 L_470A33EC: 2562 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 2563 L_470A7C70: 2564 eax = 0x470B5800u; /* 0x470A7C70: mov eax, 0x470b5800 */ 2565 L_470A7C75: 2566 RECOMP_BACKEDGE(); 2567 goto L_470A33EC; /* 0x470A7C75: jmp 0x470a33ec */ 2568 { RECOMP_REGS_OUT(); return; } /* end of function */ 2569 _ljump: 2570 switch (_itail_tgt) { 2571 case 0x470A33ECu: goto L_470A33EC; 2572 case 0x470A7C70u: goto L_470A7C70; 2573 case 0x470A7C75u: goto L_470A7C75; 2574 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2575 } 2576 RECOMP_REGS_OUT(); 2577 } 2578 2579 void sub_470A7C80(void) { 2580 int _fpu_cmp = 0; 2581 uint32_t _cf = 0; 2582 int _df = 1; 2583 uint32_t _flag_k = FK_NONE; 2584 uint32_t _flag_a = 0, _flag_b = 0; 2585 uint32_t _itail_tgt = 0; 2586 RECOMP_REGS_LOCALS 2587 RECOMP_ENTER(0x470A7C80u); 2588 2589 goto L_470A7C80; 2590 L_470604F0: 2591 edx = MEM32(ecx + 0x4); /* 0x470604F0: mov edx, dword ptr [ecx + 4] */ 2592 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2593 eax = eax | 0xFFFFFFFFu; /* 0x470604F3: or eax, 0xffffffff */ 2594 _cf = 0; 2595 _flag_k = FK_TEST; 2596 /* cmp edx, eax */ /* 0x470604F6: cmp edx, eax */ 2597 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2598 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2599 _flag_k = FK_CMP; 2600 if (CMP_EQ(_flag_a, _flag_b)) goto L_47060504; /* 0x470604F8: je 0x47060504 */ 2601 L_470604FA: 2602 MEM32(ecx + 0x4) = eax; /* 0x470604FA: mov dword ptr [ecx + 4], eax */ 2603 ecx = MEM32(ecx); /* 0x470604FD: mov ecx, dword ptr [ecx] */ 2604 goto L_47090300; /* 0x470604FF: jmp 0x47090300 */ 2605 L_47060504: 2606 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47060504: ret */ 2607 L_47090300: 2608 PUSH32(esp, ebp); /* 0x47090300: push ebp */ 2609 PUSH32(esp, esi); /* 0x47090301: push esi */ 2610 esi = ecx; /* 0x47090302: mov esi, ecx */ 2611 PUSH32(esp, edi); /* 0x47090304: push edi */ 2612 ebp = esi + 0x14; /* 0x47090305: lea ebp, [esi + 0x14] */ 2613 PUSH32(esp, ebp); /* 0x47090308: push ebp */ 2614 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47090309: call dword ptr [0x470ac180] */ 2615 RECOMP_FLAGS_IN(); 2616 eax = MEM32(esi + 0x3C); /* 0x4709030F: mov eax, dword ptr [esi + 0x3c] */ 2617 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2618 edx = 0; /* 0x47090312: xor edx, edx */ 2619 _cf = 0; 2620 _flag_k = FK_TEST; 2621 /* cmp eax, edx */ /* 0x47090314: cmp eax, edx */ 2622 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2623 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2624 _flag_k = FK_CMP; 2625 if (CMP_LE(_flag_a, _flag_b)) goto L_47090329; /* 0x47090316: jle 0x47090329 */ 2626 L_47090318: 2627 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2628 eax = eax - 1; /* 0x47090318: dec eax */ 2629 _flag_k = FK_DEC; 2630 PUSH32(esp, ebp); /* 0x47090319: push ebp */ 2631 MEM32(esi + 0x3C) = eax; /* 0x4709031A: mov dword ptr [esi + 0x3c], eax */ 2632 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709031D: call dword ptr [0x470ac190] */ 2633 RECOMP_FLAGS_IN(); 2634 edi = POP32_VAL(esp); /* 0x47090323: pop edi */ 2635 esi = POP32_VAL(esp); /* 0x47090324: pop esi */ 2636 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2637 eax = 0; /* 0x47090325: xor eax, eax */ 2638 _cf = 0; 2639 _flag_k = FK_TEST; 2640 ebp = POP32_VAL(esp); /* 0x47090327: pop ebp */ 2641 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090328: ret */ 2642 L_47090329: 2643 eax = MEM32(0x4710E900); /* 0x47090329: mov eax, dword ptr [0x4710e900] */ 2644 edi = esi + 0x4; /* 0x4709032E: lea edi, [esi + 4] */ 2645 MEM32(esi + 0x30) = eax; /* 0x47090331: mov dword ptr [esi + 0x30], eax */ 2646 eax = MEM32(edi); /* 0x47090334: mov eax, dword ptr [edi] */ 2647 /* cmp eax, edx */ /* 0x47090336: cmp eax, edx */ 2648 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2649 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2650 _flag_k = FK_CMP; 2651 MEM32(esi + 0x34) = edx; /* 0x47090338: mov dword ptr [esi + 0x34], edx */ 2652 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x4709033B: jne 0x47090352 */ 2653 L_4709033D: 2654 /* cmp MEM32(esi + 0xC), edx */ /* 0x4709033D: cmp dword ptr [esi + 0xc], edx */ 2655 _flag_a = (uint32_t)(MEM32(esi + 0xC)); _flag_b = (uint32_t)(edx); 2656 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2657 _flag_k = FK_CMP; 2658 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x47090340: jne 0x47090352 */ 2659 L_47090342: 2660 PUSH32(esp, ebp); /* 0x47090342: push ebp */ 2661 MEM32(esi + 0x40) = edx; /* 0x47090343: mov dword ptr [esi + 0x40], edx */ 2662 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47090346: call dword ptr [0x470ac190] */ 2663 RECOMP_FLAGS_IN(); 2664 edi = POP32_VAL(esp); /* 0x4709034C: pop edi */ 2665 esi = POP32_VAL(esp); /* 0x4709034D: pop esi */ 2666 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2667 eax = 0; /* 0x4709034E: xor eax, eax */ 2668 _cf = 0; 2669 _flag_k = FK_TEST; 2670 ebp = POP32_VAL(esp); /* 0x47090350: pop ebp */ 2671 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090351: ret */ 2672 L_47090352: 2673 /* cmp eax, edx */ /* 0x47090352: cmp eax, edx */ 2674 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2675 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2676 _flag_k = FK_CMP; 2677 ecx = 1; /* 0x47090354: mov ecx, 1 */ 2678 if (CMP_EQ(_flag_a, _flag_b)) goto L_47090364; /* 0x47090359: je 0x47090364 */ 2679 L_4709035B: 2680 MEM32(esi + 0x34) = 2; /* 0x4709035B: mov dword ptr [esi + 0x34], 2 */ 2681 goto L_4709036A; /* 0x47090362: jmp 0x4709036a */ 2682 L_47090364: 2683 MEM32(esi + 0x34) = ecx; /* 0x47090364: mov dword ptr [esi + 0x34], ecx */ 2684 edi = esi + 0xC; /* 0x47090367: lea edi, [esi + 0xc] */ 2685 L_4709036A: 2686 eax = MEM32(edi); /* 0x4709036A: mov eax, dword ptr [edi] */ 2687 MEM32(eax + 0x10) = ecx; /* 0x4709036C: mov dword ptr [eax + 0x10], ecx */ 2688 eax = MEM32(edi); /* 0x4709036F: mov eax, dword ptr [edi] */ 2689 PUSH32(esp, edx); /* 0x47090371: push edx */ 2690 PUSH32(esp, ecx); /* 0x47090372: push ecx */ 2691 ecx = MEM32(eax + 0x8); /* 0x47090373: mov ecx, dword ptr [eax + 8] */ 2692 PUSH32(esp, ecx); /* 0x47090376: push ecx */ 2693 RECOMP_ICALL(MEM32(0x470AC168)); /* 0x47090377: call dword ptr [0x470ac168] */ 2694 RECOMP_FLAGS_IN(); 2695 /* test eax, eax */ /* 0x4709037D: test eax, eax */ 2696 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2697 _cf = 0; 2698 _flag_k = FK_TEST; 2699 if (TEST_NZ(_flag_a, _flag_b)) goto L_47090393; /* 0x4709037F: jne 0x47090393 */ 2700 L_47090381: 2701 PUSH32(esp, ebx); /* 0x47090381: push ebx */ 2702 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47090382: call dword ptr [0x470ac3c8] */ 2703 RECOMP_FLAGS_IN(); 2704 ebx = eax; /* 0x47090388: mov ebx, eax */ 2705 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4709038A: call dword ptr [0x470ac150] */ 2706 RECOMP_FLAGS_IN(); 2707 MEM32(ebx) = eax; /* 0x47090390: mov dword ptr [ebx], eax */ 2708 ebx = POP32_VAL(esp); /* 0x47090392: pop ebx */ 2709 L_47090393: 2710 edx = MEM32(edi); /* 0x47090393: mov edx, dword ptr [edi] */ 2711 eax = MEM32(edx + 0x4); /* 0x47090395: mov eax, dword ptr [edx + 4] */ 2712 PUSH32(esp, ebp); /* 0x47090398: push ebp */ 2713 MEM32(esi + 0x30) = eax; /* 0x47090399: mov dword ptr [esi + 0x30], eax */ 2714 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709039C: call dword ptr [0x470ac190] */ 2715 RECOMP_FLAGS_IN(); 2716 edi = POP32_VAL(esp); /* 0x470903A2: pop edi */ 2717 esi = POP32_VAL(esp); /* 0x470903A3: pop esi */ 2718 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2719 eax = 0; /* 0x470903A4: xor eax, eax */ 2720 _cf = 0; 2721 _flag_k = FK_TEST; 2722 ebp = POP32_VAL(esp); /* 0x470903A6: pop ebp */ 2723 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470903A7: ret */ 2724 L_470A7C80: 2725 ecx = ebp + (-0x1C); /* 0x470A7C80: lea ecx, [ebp - 0x1c] */ 2726 RECOMP_BACKEDGE(); 2727 goto L_470604F0; /* 0x470A7C83: jmp 0x470604f0 */ 2728 { RECOMP_REGS_OUT(); return; } /* end of function */ 2729 RECOMP_REGS_OUT(); 2730 } 2731 2732 void sub_470A7C88(void) { 2733 int _fpu_cmp = 0; 2734 uint32_t _cf = 0; 2735 int _df = 1; 2736 uint32_t _flag_k = FK_NONE; 2737 uint32_t _flag_a = 0, _flag_b = 0; 2738 uint32_t _itail_tgt = 0; 2739 RECOMP_REGS_LOCALS 2740 RECOMP_ENTER(0x470A7C88u); 2741 2742 goto L_470A7C88; 2743 L_470A33EC: 2744 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 2745 L_470A7C88: 2746 eax = 0x470B5830u; /* 0x470A7C88: mov eax, 0x470b5830 */ 2747 L_470A7C8D: 2748 RECOMP_BACKEDGE(); 2749 goto L_470A33EC; /* 0x470A7C8D: jmp 0x470a33ec */ 2750 { RECOMP_REGS_OUT(); return; } /* end of function */ 2751 _ljump: 2752 switch (_itail_tgt) { 2753 case 0x470A33ECu: goto L_470A33EC; 2754 case 0x470A7C88u: goto L_470A7C88; 2755 case 0x470A7C8Du: goto L_470A7C8D; 2756 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2757 } 2758 RECOMP_REGS_OUT(); 2759 } 2760 2761 void sub_470A7CA0(void) { 2762 int _fpu_cmp = 0; 2763 uint32_t _cf = 0; 2764 int _df = 1; 2765 uint32_t _flag_k = FK_NONE; 2766 uint32_t _flag_a = 0, _flag_b = 0; 2767 uint32_t _itail_tgt = 0; 2768 RECOMP_REGS_LOCALS 2769 RECOMP_ENTER(0x470A7CA0u); 2770 2771 goto L_470A7CA0; 2772 L_470604F0: 2773 edx = MEM32(ecx + 0x4); /* 0x470604F0: mov edx, dword ptr [ecx + 4] */ 2774 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2775 eax = eax | 0xFFFFFFFFu; /* 0x470604F3: or eax, 0xffffffff */ 2776 _cf = 0; 2777 _flag_k = FK_TEST; 2778 /* cmp edx, eax */ /* 0x470604F6: cmp edx, eax */ 2779 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2780 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2781 _flag_k = FK_CMP; 2782 if (CMP_EQ(_flag_a, _flag_b)) goto L_47060504; /* 0x470604F8: je 0x47060504 */ 2783 L_470604FA: 2784 MEM32(ecx + 0x4) = eax; /* 0x470604FA: mov dword ptr [ecx + 4], eax */ 2785 ecx = MEM32(ecx); /* 0x470604FD: mov ecx, dword ptr [ecx] */ 2786 goto L_47090300; /* 0x470604FF: jmp 0x47090300 */ 2787 L_47060504: 2788 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47060504: ret */ 2789 L_47090300: 2790 PUSH32(esp, ebp); /* 0x47090300: push ebp */ 2791 PUSH32(esp, esi); /* 0x47090301: push esi */ 2792 esi = ecx; /* 0x47090302: mov esi, ecx */ 2793 PUSH32(esp, edi); /* 0x47090304: push edi */ 2794 ebp = esi + 0x14; /* 0x47090305: lea ebp, [esi + 0x14] */ 2795 PUSH32(esp, ebp); /* 0x47090308: push ebp */ 2796 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47090309: call dword ptr [0x470ac180] */ 2797 RECOMP_FLAGS_IN(); 2798 eax = MEM32(esi + 0x3C); /* 0x4709030F: mov eax, dword ptr [esi + 0x3c] */ 2799 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2800 edx = 0; /* 0x47090312: xor edx, edx */ 2801 _cf = 0; 2802 _flag_k = FK_TEST; 2803 /* cmp eax, edx */ /* 0x47090314: cmp eax, edx */ 2804 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2805 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2806 _flag_k = FK_CMP; 2807 if (CMP_LE(_flag_a, _flag_b)) goto L_47090329; /* 0x47090316: jle 0x47090329 */ 2808 L_47090318: 2809 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2810 eax = eax - 1; /* 0x47090318: dec eax */ 2811 _flag_k = FK_DEC; 2812 PUSH32(esp, ebp); /* 0x47090319: push ebp */ 2813 MEM32(esi + 0x3C) = eax; /* 0x4709031A: mov dword ptr [esi + 0x3c], eax */ 2814 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709031D: call dword ptr [0x470ac190] */ 2815 RECOMP_FLAGS_IN(); 2816 edi = POP32_VAL(esp); /* 0x47090323: pop edi */ 2817 esi = POP32_VAL(esp); /* 0x47090324: pop esi */ 2818 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2819 eax = 0; /* 0x47090325: xor eax, eax */ 2820 _cf = 0; 2821 _flag_k = FK_TEST; 2822 ebp = POP32_VAL(esp); /* 0x47090327: pop ebp */ 2823 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090328: ret */ 2824 L_47090329: 2825 eax = MEM32(0x4710E900); /* 0x47090329: mov eax, dword ptr [0x4710e900] */ 2826 edi = esi + 0x4; /* 0x4709032E: lea edi, [esi + 4] */ 2827 MEM32(esi + 0x30) = eax; /* 0x47090331: mov dword ptr [esi + 0x30], eax */ 2828 eax = MEM32(edi); /* 0x47090334: mov eax, dword ptr [edi] */ 2829 /* cmp eax, edx */ /* 0x47090336: cmp eax, edx */ 2830 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2831 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2832 _flag_k = FK_CMP; 2833 MEM32(esi + 0x34) = edx; /* 0x47090338: mov dword ptr [esi + 0x34], edx */ 2834 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x4709033B: jne 0x47090352 */ 2835 L_4709033D: 2836 /* cmp MEM32(esi + 0xC), edx */ /* 0x4709033D: cmp dword ptr [esi + 0xc], edx */ 2837 _flag_a = (uint32_t)(MEM32(esi + 0xC)); _flag_b = (uint32_t)(edx); 2838 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2839 _flag_k = FK_CMP; 2840 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x47090340: jne 0x47090352 */ 2841 L_47090342: 2842 PUSH32(esp, ebp); /* 0x47090342: push ebp */ 2843 MEM32(esi + 0x40) = edx; /* 0x47090343: mov dword ptr [esi + 0x40], edx */ 2844 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47090346: call dword ptr [0x470ac190] */ 2845 RECOMP_FLAGS_IN(); 2846 edi = POP32_VAL(esp); /* 0x4709034C: pop edi */ 2847 esi = POP32_VAL(esp); /* 0x4709034D: pop esi */ 2848 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2849 eax = 0; /* 0x4709034E: xor eax, eax */ 2850 _cf = 0; 2851 _flag_k = FK_TEST; 2852 ebp = POP32_VAL(esp); /* 0x47090350: pop ebp */ 2853 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090351: ret */ 2854 L_47090352: 2855 /* cmp eax, edx */ /* 0x47090352: cmp eax, edx */ 2856 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2857 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2858 _flag_k = FK_CMP; 2859 ecx = 1; /* 0x47090354: mov ecx, 1 */ 2860 if (CMP_EQ(_flag_a, _flag_b)) goto L_47090364; /* 0x47090359: je 0x47090364 */ 2861 L_4709035B: 2862 MEM32(esi + 0x34) = 2; /* 0x4709035B: mov dword ptr [esi + 0x34], 2 */ 2863 goto L_4709036A; /* 0x47090362: jmp 0x4709036a */ 2864 L_47090364: 2865 MEM32(esi + 0x34) = ecx; /* 0x47090364: mov dword ptr [esi + 0x34], ecx */ 2866 edi = esi + 0xC; /* 0x47090367: lea edi, [esi + 0xc] */ 2867 L_4709036A: 2868 eax = MEM32(edi); /* 0x4709036A: mov eax, dword ptr [edi] */ 2869 MEM32(eax + 0x10) = ecx; /* 0x4709036C: mov dword ptr [eax + 0x10], ecx */ 2870 eax = MEM32(edi); /* 0x4709036F: mov eax, dword ptr [edi] */ 2871 PUSH32(esp, edx); /* 0x47090371: push edx */ 2872 PUSH32(esp, ecx); /* 0x47090372: push ecx */ 2873 ecx = MEM32(eax + 0x8); /* 0x47090373: mov ecx, dword ptr [eax + 8] */ 2874 PUSH32(esp, ecx); /* 0x47090376: push ecx */ 2875 RECOMP_ICALL(MEM32(0x470AC168)); /* 0x47090377: call dword ptr [0x470ac168] */ 2876 RECOMP_FLAGS_IN(); 2877 /* test eax, eax */ /* 0x4709037D: test eax, eax */ 2878 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2879 _cf = 0; 2880 _flag_k = FK_TEST; 2881 if (TEST_NZ(_flag_a, _flag_b)) goto L_47090393; /* 0x4709037F: jne 0x47090393 */ 2882 L_47090381: 2883 PUSH32(esp, ebx); /* 0x47090381: push ebx */ 2884 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47090382: call dword ptr [0x470ac3c8] */ 2885 RECOMP_FLAGS_IN(); 2886 ebx = eax; /* 0x47090388: mov ebx, eax */ 2887 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4709038A: call dword ptr [0x470ac150] */ 2888 RECOMP_FLAGS_IN(); 2889 MEM32(ebx) = eax; /* 0x47090390: mov dword ptr [ebx], eax */ 2890 ebx = POP32_VAL(esp); /* 0x47090392: pop ebx */ 2891 L_47090393: 2892 edx = MEM32(edi); /* 0x47090393: mov edx, dword ptr [edi] */ 2893 eax = MEM32(edx + 0x4); /* 0x47090395: mov eax, dword ptr [edx + 4] */ 2894 PUSH32(esp, ebp); /* 0x47090398: push ebp */ 2895 MEM32(esi + 0x30) = eax; /* 0x47090399: mov dword ptr [esi + 0x30], eax */ 2896 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709039C: call dword ptr [0x470ac190] */ 2897 RECOMP_FLAGS_IN(); 2898 edi = POP32_VAL(esp); /* 0x470903A2: pop edi */ 2899 esi = POP32_VAL(esp); /* 0x470903A3: pop esi */ 2900 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2901 eax = 0; /* 0x470903A4: xor eax, eax */ 2902 _cf = 0; 2903 _flag_k = FK_TEST; 2904 ebp = POP32_VAL(esp); /* 0x470903A6: pop ebp */ 2905 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470903A7: ret */ 2906 L_470A7CA0: 2907 ecx = ebp + (-0x14); /* 0x470A7CA0: lea ecx, [ebp - 0x14] */ 2908 RECOMP_BACKEDGE(); 2909 goto L_470604F0; /* 0x470A7CA3: jmp 0x470604f0 */ 2910 { RECOMP_REGS_OUT(); return; } /* end of function */ 2911 RECOMP_REGS_OUT(); 2912 } 2913 2914 void sub_470A7CA8(void) { 2915 int _fpu_cmp = 0; 2916 uint32_t _cf = 0; 2917 int _df = 1; 2918 uint32_t _flag_k = FK_NONE; 2919 uint32_t _flag_a = 0, _flag_b = 0; 2920 uint32_t _itail_tgt = 0; 2921 RECOMP_REGS_LOCALS 2922 RECOMP_ENTER(0x470A7CA8u); 2923 2924 goto L_470A7CA8; 2925 L_470A33EC: 2926 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 2927 L_470A7CA8: 2928 eax = 0x470B5858u; /* 0x470A7CA8: mov eax, 0x470b5858 */ 2929 L_470A7CAD: 2930 RECOMP_BACKEDGE(); 2931 goto L_470A33EC; /* 0x470A7CAD: jmp 0x470a33ec */ 2932 { RECOMP_REGS_OUT(); return; } /* end of function */ 2933 _ljump: 2934 switch (_itail_tgt) { 2935 case 0x470A33ECu: goto L_470A33EC; 2936 case 0x470A7CA8u: goto L_470A7CA8; 2937 case 0x470A7CADu: goto L_470A7CAD; 2938 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2939 } 2940 RECOMP_REGS_OUT(); 2941 } 2942 2943 void sub_470A7CC0(void) { 2944 int _fpu_cmp = 0; 2945 uint32_t _cf = 0; 2946 int _df = 1; 2947 uint32_t _flag_k = FK_NONE; 2948 uint32_t _flag_a = 0, _flag_b = 0; 2949 uint32_t _itail_tgt = 0; 2950 RECOMP_REGS_LOCALS 2951 RECOMP_ENTER(0x470A7CC0u); 2952 2953 goto L_470A7CC0; 2954 L_470604F0: 2955 edx = MEM32(ecx + 0x4); /* 0x470604F0: mov edx, dword ptr [ecx + 4] */ 2956 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2957 eax = eax | 0xFFFFFFFFu; /* 0x470604F3: or eax, 0xffffffff */ 2958 _cf = 0; 2959 _flag_k = FK_TEST; 2960 /* cmp edx, eax */ /* 0x470604F6: cmp edx, eax */ 2961 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2962 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2963 _flag_k = FK_CMP; 2964 if (CMP_EQ(_flag_a, _flag_b)) goto L_47060504; /* 0x470604F8: je 0x47060504 */ 2965 L_470604FA: 2966 MEM32(ecx + 0x4) = eax; /* 0x470604FA: mov dword ptr [ecx + 4], eax */ 2967 ecx = MEM32(ecx); /* 0x470604FD: mov ecx, dword ptr [ecx] */ 2968 goto L_47090300; /* 0x470604FF: jmp 0x47090300 */ 2969 L_47060504: 2970 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47060504: ret */ 2971 L_47090300: 2972 PUSH32(esp, ebp); /* 0x47090300: push ebp */ 2973 PUSH32(esp, esi); /* 0x47090301: push esi */ 2974 esi = ecx; /* 0x47090302: mov esi, ecx */ 2975 PUSH32(esp, edi); /* 0x47090304: push edi */ 2976 ebp = esi + 0x14; /* 0x47090305: lea ebp, [esi + 0x14] */ 2977 PUSH32(esp, ebp); /* 0x47090308: push ebp */ 2978 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47090309: call dword ptr [0x470ac180] */ 2979 RECOMP_FLAGS_IN(); 2980 eax = MEM32(esi + 0x3C); /* 0x4709030F: mov eax, dword ptr [esi + 0x3c] */ 2981 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2982 edx = 0; /* 0x47090312: xor edx, edx */ 2983 _cf = 0; 2984 _flag_k = FK_TEST; 2985 /* cmp eax, edx */ /* 0x47090314: cmp eax, edx */ 2986 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2987 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2988 _flag_k = FK_CMP; 2989 if (CMP_LE(_flag_a, _flag_b)) goto L_47090329; /* 0x47090316: jle 0x47090329 */ 2990 L_47090318: 2991 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2992 eax = eax - 1; /* 0x47090318: dec eax */ 2993 _flag_k = FK_DEC; 2994 PUSH32(esp, ebp); /* 0x47090319: push ebp */ 2995 MEM32(esi + 0x3C) = eax; /* 0x4709031A: mov dword ptr [esi + 0x3c], eax */ 2996 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709031D: call dword ptr [0x470ac190] */ 2997 RECOMP_FLAGS_IN(); 2998 edi = POP32_VAL(esp); /* 0x47090323: pop edi */ 2999 esi = POP32_VAL(esp); /* 0x47090324: pop esi */ 3000 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3001 eax = 0; /* 0x47090325: xor eax, eax */ 3002 _cf = 0; 3003 _flag_k = FK_TEST; 3004 ebp = POP32_VAL(esp); /* 0x47090327: pop ebp */ 3005 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090328: ret */ 3006 L_47090329: 3007 eax = MEM32(0x4710E900); /* 0x47090329: mov eax, dword ptr [0x4710e900] */ 3008 edi = esi + 0x4; /* 0x4709032E: lea edi, [esi + 4] */ 3009 MEM32(esi + 0x30) = eax; /* 0x47090331: mov dword ptr [esi + 0x30], eax */ 3010 eax = MEM32(edi); /* 0x47090334: mov eax, dword ptr [edi] */ 3011 /* cmp eax, edx */ /* 0x47090336: cmp eax, edx */ 3012 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3013 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3014 _flag_k = FK_CMP; 3015 MEM32(esi + 0x34) = edx; /* 0x47090338: mov dword ptr [esi + 0x34], edx */ 3016 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x4709033B: jne 0x47090352 */ 3017 L_4709033D: 3018 /* cmp MEM32(esi + 0xC), edx */ /* 0x4709033D: cmp dword ptr [esi + 0xc], edx */ 3019 _flag_a = (uint32_t)(MEM32(esi + 0xC)); _flag_b = (uint32_t)(edx); 3020 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3021 _flag_k = FK_CMP; 3022 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x47090340: jne 0x47090352 */ 3023 L_47090342: 3024 PUSH32(esp, ebp); /* 0x47090342: push ebp */ 3025 MEM32(esi + 0x40) = edx; /* 0x47090343: mov dword ptr [esi + 0x40], edx */ 3026 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47090346: call dword ptr [0x470ac190] */ 3027 RECOMP_FLAGS_IN(); 3028 edi = POP32_VAL(esp); /* 0x4709034C: pop edi */ 3029 esi = POP32_VAL(esp); /* 0x4709034D: pop esi */ 3030 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3031 eax = 0; /* 0x4709034E: xor eax, eax */ 3032 _cf = 0; 3033 _flag_k = FK_TEST; 3034 ebp = POP32_VAL(esp); /* 0x47090350: pop ebp */ 3035 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090351: ret */ 3036 L_47090352: 3037 /* cmp eax, edx */ /* 0x47090352: cmp eax, edx */ 3038 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3039 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3040 _flag_k = FK_CMP; 3041 ecx = 1; /* 0x47090354: mov ecx, 1 */ 3042 if (CMP_EQ(_flag_a, _flag_b)) goto L_47090364; /* 0x47090359: je 0x47090364 */ 3043 L_4709035B: 3044 MEM32(esi + 0x34) = 2; /* 0x4709035B: mov dword ptr [esi + 0x34], 2 */ 3045 goto L_4709036A; /* 0x47090362: jmp 0x4709036a */ 3046 L_47090364: 3047 MEM32(esi + 0x34) = ecx; /* 0x47090364: mov dword ptr [esi + 0x34], ecx */ 3048 edi = esi + 0xC; /* 0x47090367: lea edi, [esi + 0xc] */ 3049 L_4709036A: 3050 eax = MEM32(edi); /* 0x4709036A: mov eax, dword ptr [edi] */ 3051 MEM32(eax + 0x10) = ecx; /* 0x4709036C: mov dword ptr [eax + 0x10], ecx */ 3052 eax = MEM32(edi); /* 0x4709036F: mov eax, dword ptr [edi] */ 3053 PUSH32(esp, edx); /* 0x47090371: push edx */ 3054 PUSH32(esp, ecx); /* 0x47090372: push ecx */ 3055 ecx = MEM32(eax + 0x8); /* 0x47090373: mov ecx, dword ptr [eax + 8] */ 3056 PUSH32(esp, ecx); /* 0x47090376: push ecx */ 3057 RECOMP_ICALL(MEM32(0x470AC168)); /* 0x47090377: call dword ptr [0x470ac168] */ 3058 RECOMP_FLAGS_IN(); 3059 /* test eax, eax */ /* 0x4709037D: test eax, eax */ 3060 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3061 _cf = 0; 3062 _flag_k = FK_TEST; 3063 if (TEST_NZ(_flag_a, _flag_b)) goto L_47090393; /* 0x4709037F: jne 0x47090393 */ 3064 L_47090381: 3065 PUSH32(esp, ebx); /* 0x47090381: push ebx */ 3066 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47090382: call dword ptr [0x470ac3c8] */ 3067 RECOMP_FLAGS_IN(); 3068 ebx = eax; /* 0x47090388: mov ebx, eax */ 3069 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4709038A: call dword ptr [0x470ac150] */ 3070 RECOMP_FLAGS_IN(); 3071 MEM32(ebx) = eax; /* 0x47090390: mov dword ptr [ebx], eax */ 3072 ebx = POP32_VAL(esp); /* 0x47090392: pop ebx */ 3073 L_47090393: 3074 edx = MEM32(edi); /* 0x47090393: mov edx, dword ptr [edi] */ 3075 eax = MEM32(edx + 0x4); /* 0x47090395: mov eax, dword ptr [edx + 4] */ 3076 PUSH32(esp, ebp); /* 0x47090398: push ebp */ 3077 MEM32(esi + 0x30) = eax; /* 0x47090399: mov dword ptr [esi + 0x30], eax */ 3078 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709039C: call dword ptr [0x470ac190] */ 3079 RECOMP_FLAGS_IN(); 3080 edi = POP32_VAL(esp); /* 0x470903A2: pop edi */ 3081 esi = POP32_VAL(esp); /* 0x470903A3: pop esi */ 3082 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3083 eax = 0; /* 0x470903A4: xor eax, eax */ 3084 _cf = 0; 3085 _flag_k = FK_TEST; 3086 ebp = POP32_VAL(esp); /* 0x470903A6: pop ebp */ 3087 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470903A7: ret */ 3088 L_470A7CC0: 3089 ecx = ebp + (-0x14); /* 0x470A7CC0: lea ecx, [ebp - 0x14] */ 3090 RECOMP_BACKEDGE(); 3091 goto L_470604F0; /* 0x470A7CC3: jmp 0x470604f0 */ 3092 { RECOMP_REGS_OUT(); return; } /* end of function */ 3093 RECOMP_REGS_OUT(); 3094 } 3095 3096 void sub_470A7CC8(void) { 3097 int _fpu_cmp = 0; 3098 uint32_t _cf = 0; 3099 int _df = 1; 3100 uint32_t _flag_k = FK_NONE; 3101 uint32_t _flag_a = 0, _flag_b = 0; 3102 uint32_t _itail_tgt = 0; 3103 RECOMP_REGS_LOCALS 3104 RECOMP_ENTER(0x470A7CC8u); 3105 3106 goto L_470A7CC8; 3107 L_470A33EC: 3108 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 3109 L_470A7CC8: 3110 eax = 0x470B5880u; /* 0x470A7CC8: mov eax, 0x470b5880 */ 3111 L_470A7CCD: 3112 RECOMP_BACKEDGE(); 3113 goto L_470A33EC; /* 0x470A7CCD: jmp 0x470a33ec */ 3114 { RECOMP_REGS_OUT(); return; } /* end of function */ 3115 _ljump: 3116 switch (_itail_tgt) { 3117 case 0x470A33ECu: goto L_470A33EC; 3118 case 0x470A7CC8u: goto L_470A7CC8; 3119 case 0x470A7CCDu: goto L_470A7CCD; 3120 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3121 } 3122 RECOMP_REGS_OUT(); 3123 } 3124 3125 void sub_470A7CE0(void) { 3126 int _fpu_cmp = 0; 3127 uint32_t _cf = 0; 3128 int _df = 1; 3129 uint32_t _flag_k = FK_NONE; 3130 uint32_t _flag_a = 0, _flag_b = 0; 3131 uint32_t _itail_tgt = 0; 3132 RECOMP_REGS_LOCALS 3133 RECOMP_ENTER(0x470A7CE0u); 3134 3135 goto L_470A7CE0; 3136 L_470604F0: 3137 edx = MEM32(ecx + 0x4); /* 0x470604F0: mov edx, dword ptr [ecx + 4] */ 3138 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3139 eax = eax | 0xFFFFFFFFu; /* 0x470604F3: or eax, 0xffffffff */ 3140 _cf = 0; 3141 _flag_k = FK_TEST; 3142 /* cmp edx, eax */ /* 0x470604F6: cmp edx, eax */ 3143 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3144 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3145 _flag_k = FK_CMP; 3146 if (CMP_EQ(_flag_a, _flag_b)) goto L_47060504; /* 0x470604F8: je 0x47060504 */ 3147 L_470604FA: 3148 MEM32(ecx + 0x4) = eax; /* 0x470604FA: mov dword ptr [ecx + 4], eax */ 3149 ecx = MEM32(ecx); /* 0x470604FD: mov ecx, dword ptr [ecx] */ 3150 goto L_47090300; /* 0x470604FF: jmp 0x47090300 */ 3151 L_47060504: 3152 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47060504: ret */ 3153 L_47090300: 3154 PUSH32(esp, ebp); /* 0x47090300: push ebp */ 3155 PUSH32(esp, esi); /* 0x47090301: push esi */ 3156 esi = ecx; /* 0x47090302: mov esi, ecx */ 3157 PUSH32(esp, edi); /* 0x47090304: push edi */ 3158 ebp = esi + 0x14; /* 0x47090305: lea ebp, [esi + 0x14] */ 3159 PUSH32(esp, ebp); /* 0x47090308: push ebp */ 3160 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47090309: call dword ptr [0x470ac180] */ 3161 RECOMP_FLAGS_IN(); 3162 eax = MEM32(esi + 0x3C); /* 0x4709030F: mov eax, dword ptr [esi + 0x3c] */ 3163 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3164 edx = 0; /* 0x47090312: xor edx, edx */ 3165 _cf = 0; 3166 _flag_k = FK_TEST; 3167 /* cmp eax, edx */ /* 0x47090314: cmp eax, edx */ 3168 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3169 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3170 _flag_k = FK_CMP; 3171 if (CMP_LE(_flag_a, _flag_b)) goto L_47090329; /* 0x47090316: jle 0x47090329 */ 3172 L_47090318: 3173 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3174 eax = eax - 1; /* 0x47090318: dec eax */ 3175 _flag_k = FK_DEC; 3176 PUSH32(esp, ebp); /* 0x47090319: push ebp */ 3177 MEM32(esi + 0x3C) = eax; /* 0x4709031A: mov dword ptr [esi + 0x3c], eax */ 3178 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709031D: call dword ptr [0x470ac190] */ 3179 RECOMP_FLAGS_IN(); 3180 edi = POP32_VAL(esp); /* 0x47090323: pop edi */ 3181 esi = POP32_VAL(esp); /* 0x47090324: pop esi */ 3182 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3183 eax = 0; /* 0x47090325: xor eax, eax */ 3184 _cf = 0; 3185 _flag_k = FK_TEST; 3186 ebp = POP32_VAL(esp); /* 0x47090327: pop ebp */ 3187 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090328: ret */ 3188 L_47090329: 3189 eax = MEM32(0x4710E900); /* 0x47090329: mov eax, dword ptr [0x4710e900] */ 3190 edi = esi + 0x4; /* 0x4709032E: lea edi, [esi + 4] */ 3191 MEM32(esi + 0x30) = eax; /* 0x47090331: mov dword ptr [esi + 0x30], eax */ 3192 eax = MEM32(edi); /* 0x47090334: mov eax, dword ptr [edi] */ 3193 /* cmp eax, edx */ /* 0x47090336: cmp eax, edx */ 3194 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3195 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3196 _flag_k = FK_CMP; 3197 MEM32(esi + 0x34) = edx; /* 0x47090338: mov dword ptr [esi + 0x34], edx */ 3198 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x4709033B: jne 0x47090352 */ 3199 L_4709033D: 3200 /* cmp MEM32(esi + 0xC), edx */ /* 0x4709033D: cmp dword ptr [esi + 0xc], edx */ 3201 _flag_a = (uint32_t)(MEM32(esi + 0xC)); _flag_b = (uint32_t)(edx); 3202 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3203 _flag_k = FK_CMP; 3204 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x47090340: jne 0x47090352 */ 3205 L_47090342: 3206 PUSH32(esp, ebp); /* 0x47090342: push ebp */ 3207 MEM32(esi + 0x40) = edx; /* 0x47090343: mov dword ptr [esi + 0x40], edx */ 3208 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47090346: call dword ptr [0x470ac190] */ 3209 RECOMP_FLAGS_IN(); 3210 edi = POP32_VAL(esp); /* 0x4709034C: pop edi */ 3211 esi = POP32_VAL(esp); /* 0x4709034D: pop esi */ 3212 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3213 eax = 0; /* 0x4709034E: xor eax, eax */ 3214 _cf = 0; 3215 _flag_k = FK_TEST; 3216 ebp = POP32_VAL(esp); /* 0x47090350: pop ebp */ 3217 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090351: ret */ 3218 L_47090352: 3219 /* cmp eax, edx */ /* 0x47090352: cmp eax, edx */ 3220 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3221 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3222 _flag_k = FK_CMP; 3223 ecx = 1; /* 0x47090354: mov ecx, 1 */ 3224 if (CMP_EQ(_flag_a, _flag_b)) goto L_47090364; /* 0x47090359: je 0x47090364 */ 3225 L_4709035B: 3226 MEM32(esi + 0x34) = 2; /* 0x4709035B: mov dword ptr [esi + 0x34], 2 */ 3227 goto L_4709036A; /* 0x47090362: jmp 0x4709036a */ 3228 L_47090364: 3229 MEM32(esi + 0x34) = ecx; /* 0x47090364: mov dword ptr [esi + 0x34], ecx */ 3230 edi = esi + 0xC; /* 0x47090367: lea edi, [esi + 0xc] */ 3231 L_4709036A: 3232 eax = MEM32(edi); /* 0x4709036A: mov eax, dword ptr [edi] */ 3233 MEM32(eax + 0x10) = ecx; /* 0x4709036C: mov dword ptr [eax + 0x10], ecx */ 3234 eax = MEM32(edi); /* 0x4709036F: mov eax, dword ptr [edi] */ 3235 PUSH32(esp, edx); /* 0x47090371: push edx */ 3236 PUSH32(esp, ecx); /* 0x47090372: push ecx */ 3237 ecx = MEM32(eax + 0x8); /* 0x47090373: mov ecx, dword ptr [eax + 8] */ 3238 PUSH32(esp, ecx); /* 0x47090376: push ecx */ 3239 RECOMP_ICALL(MEM32(0x470AC168)); /* 0x47090377: call dword ptr [0x470ac168] */ 3240 RECOMP_FLAGS_IN(); 3241 /* test eax, eax */ /* 0x4709037D: test eax, eax */ 3242 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3243 _cf = 0; 3244 _flag_k = FK_TEST; 3245 if (TEST_NZ(_flag_a, _flag_b)) goto L_47090393; /* 0x4709037F: jne 0x47090393 */ 3246 L_47090381: 3247 PUSH32(esp, ebx); /* 0x47090381: push ebx */ 3248 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47090382: call dword ptr [0x470ac3c8] */ 3249 RECOMP_FLAGS_IN(); 3250 ebx = eax; /* 0x47090388: mov ebx, eax */ 3251 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4709038A: call dword ptr [0x470ac150] */ 3252 RECOMP_FLAGS_IN(); 3253 MEM32(ebx) = eax; /* 0x47090390: mov dword ptr [ebx], eax */ 3254 ebx = POP32_VAL(esp); /* 0x47090392: pop ebx */ 3255 L_47090393: 3256 edx = MEM32(edi); /* 0x47090393: mov edx, dword ptr [edi] */ 3257 eax = MEM32(edx + 0x4); /* 0x47090395: mov eax, dword ptr [edx + 4] */ 3258 PUSH32(esp, ebp); /* 0x47090398: push ebp */ 3259 MEM32(esi + 0x30) = eax; /* 0x47090399: mov dword ptr [esi + 0x30], eax */ 3260 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709039C: call dword ptr [0x470ac190] */ 3261 RECOMP_FLAGS_IN(); 3262 edi = POP32_VAL(esp); /* 0x470903A2: pop edi */ 3263 esi = POP32_VAL(esp); /* 0x470903A3: pop esi */ 3264 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3265 eax = 0; /* 0x470903A4: xor eax, eax */ 3266 _cf = 0; 3267 _flag_k = FK_TEST; 3268 ebp = POP32_VAL(esp); /* 0x470903A6: pop ebp */ 3269 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470903A7: ret */ 3270 L_470A7CE0: 3271 ecx = ebp + (-0x14); /* 0x470A7CE0: lea ecx, [ebp - 0x14] */ 3272 RECOMP_BACKEDGE(); 3273 goto L_470604F0; /* 0x470A7CE3: jmp 0x470604f0 */ 3274 { RECOMP_REGS_OUT(); return; } /* end of function */ 3275 RECOMP_REGS_OUT(); 3276 } 3277 3278 void sub_470A7CE8(void) { 3279 int _fpu_cmp = 0; 3280 uint32_t _cf = 0; 3281 int _df = 1; 3282 uint32_t _flag_k = FK_NONE; 3283 uint32_t _flag_a = 0, _flag_b = 0; 3284 uint32_t _itail_tgt = 0; 3285 RECOMP_REGS_LOCALS 3286 RECOMP_ENTER(0x470A7CE8u); 3287 3288 goto L_470A7CE8; 3289 L_470A33EC: 3290 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 3291 L_470A7CE8: 3292 eax = 0x470B58A8u; /* 0x470A7CE8: mov eax, 0x470b58a8 */ 3293 L_470A7CED: 3294 RECOMP_BACKEDGE(); 3295 goto L_470A33EC; /* 0x470A7CED: jmp 0x470a33ec */ 3296 { RECOMP_REGS_OUT(); return; } /* end of function */ 3297 _ljump: 3298 switch (_itail_tgt) { 3299 case 0x470A33ECu: goto L_470A33EC; 3300 case 0x470A7CE8u: goto L_470A7CE8; 3301 case 0x470A7CEDu: goto L_470A7CED; 3302 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3303 } 3304 RECOMP_REGS_OUT(); 3305 } 3306 3307 void sub_470A7D00(void) { 3308 int _fpu_cmp = 0; 3309 uint32_t _cf = 0; 3310 int _df = 1; 3311 uint32_t _flag_k = FK_NONE; 3312 uint32_t _flag_a = 0, _flag_b = 0; 3313 uint32_t _itail_tgt = 0; 3314 RECOMP_REGS_LOCALS 3315 RECOMP_ENTER(0x470A7D00u); 3316 3317 goto L_470A7D00; 3318 L_470604F0: 3319 edx = MEM32(ecx + 0x4); /* 0x470604F0: mov edx, dword ptr [ecx + 4] */ 3320 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3321 eax = eax | 0xFFFFFFFFu; /* 0x470604F3: or eax, 0xffffffff */ 3322 _cf = 0; 3323 _flag_k = FK_TEST; 3324 /* cmp edx, eax */ /* 0x470604F6: cmp edx, eax */ 3325 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3326 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3327 _flag_k = FK_CMP; 3328 if (CMP_EQ(_flag_a, _flag_b)) goto L_47060504; /* 0x470604F8: je 0x47060504 */ 3329 L_470604FA: 3330 MEM32(ecx + 0x4) = eax; /* 0x470604FA: mov dword ptr [ecx + 4], eax */ 3331 ecx = MEM32(ecx); /* 0x470604FD: mov ecx, dword ptr [ecx] */ 3332 goto L_47090300; /* 0x470604FF: jmp 0x47090300 */ 3333 L_47060504: 3334 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47060504: ret */ 3335 L_47090300: 3336 PUSH32(esp, ebp); /* 0x47090300: push ebp */ 3337 PUSH32(esp, esi); /* 0x47090301: push esi */ 3338 esi = ecx; /* 0x47090302: mov esi, ecx */ 3339 PUSH32(esp, edi); /* 0x47090304: push edi */ 3340 ebp = esi + 0x14; /* 0x47090305: lea ebp, [esi + 0x14] */ 3341 PUSH32(esp, ebp); /* 0x47090308: push ebp */ 3342 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47090309: call dword ptr [0x470ac180] */ 3343 RECOMP_FLAGS_IN(); 3344 eax = MEM32(esi + 0x3C); /* 0x4709030F: mov eax, dword ptr [esi + 0x3c] */ 3345 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3346 edx = 0; /* 0x47090312: xor edx, edx */ 3347 _cf = 0; 3348 _flag_k = FK_TEST; 3349 /* cmp eax, edx */ /* 0x47090314: cmp eax, edx */ 3350 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3351 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3352 _flag_k = FK_CMP; 3353 if (CMP_LE(_flag_a, _flag_b)) goto L_47090329; /* 0x47090316: jle 0x47090329 */ 3354 L_47090318: 3355 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3356 eax = eax - 1; /* 0x47090318: dec eax */ 3357 _flag_k = FK_DEC; 3358 PUSH32(esp, ebp); /* 0x47090319: push ebp */ 3359 MEM32(esi + 0x3C) = eax; /* 0x4709031A: mov dword ptr [esi + 0x3c], eax */ 3360 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709031D: call dword ptr [0x470ac190] */ 3361 RECOMP_FLAGS_IN(); 3362 edi = POP32_VAL(esp); /* 0x47090323: pop edi */ 3363 esi = POP32_VAL(esp); /* 0x47090324: pop esi */ 3364 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3365 eax = 0; /* 0x47090325: xor eax, eax */ 3366 _cf = 0; 3367 _flag_k = FK_TEST; 3368 ebp = POP32_VAL(esp); /* 0x47090327: pop ebp */ 3369 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090328: ret */ 3370 L_47090329: 3371 eax = MEM32(0x4710E900); /* 0x47090329: mov eax, dword ptr [0x4710e900] */ 3372 edi = esi + 0x4; /* 0x4709032E: lea edi, [esi + 4] */ 3373 MEM32(esi + 0x30) = eax; /* 0x47090331: mov dword ptr [esi + 0x30], eax */ 3374 eax = MEM32(edi); /* 0x47090334: mov eax, dword ptr [edi] */ 3375 /* cmp eax, edx */ /* 0x47090336: cmp eax, edx */ 3376 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3377 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3378 _flag_k = FK_CMP; 3379 MEM32(esi + 0x34) = edx; /* 0x47090338: mov dword ptr [esi + 0x34], edx */ 3380 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x4709033B: jne 0x47090352 */ 3381 L_4709033D: 3382 /* cmp MEM32(esi + 0xC), edx */ /* 0x4709033D: cmp dword ptr [esi + 0xc], edx */ 3383 _flag_a = (uint32_t)(MEM32(esi + 0xC)); _flag_b = (uint32_t)(edx); 3384 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3385 _flag_k = FK_CMP; 3386 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x47090340: jne 0x47090352 */ 3387 L_47090342: 3388 PUSH32(esp, ebp); /* 0x47090342: push ebp */ 3389 MEM32(esi + 0x40) = edx; /* 0x47090343: mov dword ptr [esi + 0x40], edx */ 3390 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47090346: call dword ptr [0x470ac190] */ 3391 RECOMP_FLAGS_IN(); 3392 edi = POP32_VAL(esp); /* 0x4709034C: pop edi */ 3393 esi = POP32_VAL(esp); /* 0x4709034D: pop esi */ 3394 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3395 eax = 0; /* 0x4709034E: xor eax, eax */ 3396 _cf = 0; 3397 _flag_k = FK_TEST; 3398 ebp = POP32_VAL(esp); /* 0x47090350: pop ebp */ 3399 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090351: ret */ 3400 L_47090352: 3401 /* cmp eax, edx */ /* 0x47090352: cmp eax, edx */ 3402 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3403 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3404 _flag_k = FK_CMP; 3405 ecx = 1; /* 0x47090354: mov ecx, 1 */ 3406 if (CMP_EQ(_flag_a, _flag_b)) goto L_47090364; /* 0x47090359: je 0x47090364 */ 3407 L_4709035B: 3408 MEM32(esi + 0x34) = 2; /* 0x4709035B: mov dword ptr [esi + 0x34], 2 */ 3409 goto L_4709036A; /* 0x47090362: jmp 0x4709036a */ 3410 L_47090364: 3411 MEM32(esi + 0x34) = ecx; /* 0x47090364: mov dword ptr [esi + 0x34], ecx */ 3412 edi = esi + 0xC; /* 0x47090367: lea edi, [esi + 0xc] */ 3413 L_4709036A: 3414 eax = MEM32(edi); /* 0x4709036A: mov eax, dword ptr [edi] */ 3415 MEM32(eax + 0x10) = ecx; /* 0x4709036C: mov dword ptr [eax + 0x10], ecx */ 3416 eax = MEM32(edi); /* 0x4709036F: mov eax, dword ptr [edi] */ 3417 PUSH32(esp, edx); /* 0x47090371: push edx */ 3418 PUSH32(esp, ecx); /* 0x47090372: push ecx */ 3419 ecx = MEM32(eax + 0x8); /* 0x47090373: mov ecx, dword ptr [eax + 8] */ 3420 PUSH32(esp, ecx); /* 0x47090376: push ecx */ 3421 RECOMP_ICALL(MEM32(0x470AC168)); /* 0x47090377: call dword ptr [0x470ac168] */ 3422 RECOMP_FLAGS_IN(); 3423 /* test eax, eax */ /* 0x4709037D: test eax, eax */ 3424 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3425 _cf = 0; 3426 _flag_k = FK_TEST; 3427 if (TEST_NZ(_flag_a, _flag_b)) goto L_47090393; /* 0x4709037F: jne 0x47090393 */ 3428 L_47090381: 3429 PUSH32(esp, ebx); /* 0x47090381: push ebx */ 3430 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47090382: call dword ptr [0x470ac3c8] */ 3431 RECOMP_FLAGS_IN(); 3432 ebx = eax; /* 0x47090388: mov ebx, eax */ 3433 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4709038A: call dword ptr [0x470ac150] */ 3434 RECOMP_FLAGS_IN(); 3435 MEM32(ebx) = eax; /* 0x47090390: mov dword ptr [ebx], eax */ 3436 ebx = POP32_VAL(esp); /* 0x47090392: pop ebx */ 3437 L_47090393: 3438 edx = MEM32(edi); /* 0x47090393: mov edx, dword ptr [edi] */ 3439 eax = MEM32(edx + 0x4); /* 0x47090395: mov eax, dword ptr [edx + 4] */ 3440 PUSH32(esp, ebp); /* 0x47090398: push ebp */ 3441 MEM32(esi + 0x30) = eax; /* 0x47090399: mov dword ptr [esi + 0x30], eax */ 3442 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709039C: call dword ptr [0x470ac190] */ 3443 RECOMP_FLAGS_IN(); 3444 edi = POP32_VAL(esp); /* 0x470903A2: pop edi */ 3445 esi = POP32_VAL(esp); /* 0x470903A3: pop esi */ 3446 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3447 eax = 0; /* 0x470903A4: xor eax, eax */ 3448 _cf = 0; 3449 _flag_k = FK_TEST; 3450 ebp = POP32_VAL(esp); /* 0x470903A6: pop ebp */ 3451 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470903A7: ret */ 3452 L_470A7D00: 3453 ecx = ebp + (-0xC); /* 0x470A7D00: lea ecx, [ebp - 0xc] */ 3454 RECOMP_BACKEDGE(); 3455 goto L_470604F0; /* 0x470A7D03: jmp 0x470604f0 */ 3456 { RECOMP_REGS_OUT(); return; } /* end of function */ 3457 RECOMP_REGS_OUT(); 3458 } 3459 3460 void sub_470A7D08(void) { 3461 int _fpu_cmp = 0; 3462 uint32_t _cf = 0; 3463 int _df = 1; 3464 uint32_t _flag_k = FK_NONE; 3465 uint32_t _flag_a = 0, _flag_b = 0; 3466 uint32_t _itail_tgt = 0; 3467 RECOMP_REGS_LOCALS 3468 RECOMP_ENTER(0x470A7D08u); 3469 3470 goto L_470A7D08; 3471 L_470A33EC: 3472 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 3473 L_470A7D08: 3474 eax = 0x470B58D0u; /* 0x470A7D08: mov eax, 0x470b58d0 */ 3475 L_470A7D0D: 3476 RECOMP_BACKEDGE(); 3477 goto L_470A33EC; /* 0x470A7D0D: jmp 0x470a33ec */ 3478 { RECOMP_REGS_OUT(); return; } /* end of function */ 3479 _ljump: 3480 switch (_itail_tgt) { 3481 case 0x470A33ECu: goto L_470A33EC; 3482 case 0x470A7D08u: goto L_470A7D08; 3483 case 0x470A7D0Du: goto L_470A7D0D; 3484 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3485 } 3486 RECOMP_REGS_OUT(); 3487 } 3488 3489 void sub_470A7D20(void) { 3490 int _fpu_cmp = 0; 3491 uint32_t _cf = 0; 3492 int _df = 1; 3493 uint32_t _flag_k = FK_NONE; 3494 uint32_t _flag_a = 0, _flag_b = 0; 3495 uint32_t _itail_tgt = 0; 3496 RECOMP_REGS_LOCALS 3497 RECOMP_ENTER(0x470A7D20u); 3498 3499 goto L_470A7D20; 3500 L_470604F0: 3501 edx = MEM32(ecx + 0x4); /* 0x470604F0: mov edx, dword ptr [ecx + 4] */ 3502 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3503 eax = eax | 0xFFFFFFFFu; /* 0x470604F3: or eax, 0xffffffff */ 3504 _cf = 0; 3505 _flag_k = FK_TEST; 3506 /* cmp edx, eax */ /* 0x470604F6: cmp edx, eax */ 3507 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3508 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3509 _flag_k = FK_CMP; 3510 if (CMP_EQ(_flag_a, _flag_b)) goto L_47060504; /* 0x470604F8: je 0x47060504 */ 3511 L_470604FA: 3512 MEM32(ecx + 0x4) = eax; /* 0x470604FA: mov dword ptr [ecx + 4], eax */ 3513 ecx = MEM32(ecx); /* 0x470604FD: mov ecx, dword ptr [ecx] */ 3514 goto L_47090300; /* 0x470604FF: jmp 0x47090300 */ 3515 L_47060504: 3516 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47060504: ret */ 3517 L_47090300: 3518 PUSH32(esp, ebp); /* 0x47090300: push ebp */ 3519 PUSH32(esp, esi); /* 0x47090301: push esi */ 3520 esi = ecx; /* 0x47090302: mov esi, ecx */ 3521 PUSH32(esp, edi); /* 0x47090304: push edi */ 3522 ebp = esi + 0x14; /* 0x47090305: lea ebp, [esi + 0x14] */ 3523 PUSH32(esp, ebp); /* 0x47090308: push ebp */ 3524 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47090309: call dword ptr [0x470ac180] */ 3525 RECOMP_FLAGS_IN(); 3526 eax = MEM32(esi + 0x3C); /* 0x4709030F: mov eax, dword ptr [esi + 0x3c] */ 3527 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3528 edx = 0; /* 0x47090312: xor edx, edx */ 3529 _cf = 0; 3530 _flag_k = FK_TEST; 3531 /* cmp eax, edx */ /* 0x47090314: cmp eax, edx */ 3532 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3533 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3534 _flag_k = FK_CMP; 3535 if (CMP_LE(_flag_a, _flag_b)) goto L_47090329; /* 0x47090316: jle 0x47090329 */ 3536 L_47090318: 3537 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3538 eax = eax - 1; /* 0x47090318: dec eax */ 3539 _flag_k = FK_DEC; 3540 PUSH32(esp, ebp); /* 0x47090319: push ebp */ 3541 MEM32(esi + 0x3C) = eax; /* 0x4709031A: mov dword ptr [esi + 0x3c], eax */ 3542 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709031D: call dword ptr [0x470ac190] */ 3543 RECOMP_FLAGS_IN(); 3544 edi = POP32_VAL(esp); /* 0x47090323: pop edi */ 3545 esi = POP32_VAL(esp); /* 0x47090324: pop esi */ 3546 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3547 eax = 0; /* 0x47090325: xor eax, eax */ 3548 _cf = 0; 3549 _flag_k = FK_TEST; 3550 ebp = POP32_VAL(esp); /* 0x47090327: pop ebp */ 3551 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090328: ret */ 3552 L_47090329: 3553 eax = MEM32(0x4710E900); /* 0x47090329: mov eax, dword ptr [0x4710e900] */ 3554 edi = esi + 0x4; /* 0x4709032E: lea edi, [esi + 4] */ 3555 MEM32(esi + 0x30) = eax; /* 0x47090331: mov dword ptr [esi + 0x30], eax */ 3556 eax = MEM32(edi); /* 0x47090334: mov eax, dword ptr [edi] */ 3557 /* cmp eax, edx */ /* 0x47090336: cmp eax, edx */ 3558 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3559 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3560 _flag_k = FK_CMP; 3561 MEM32(esi + 0x34) = edx; /* 0x47090338: mov dword ptr [esi + 0x34], edx */ 3562 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x4709033B: jne 0x47090352 */ 3563 L_4709033D: 3564 /* cmp MEM32(esi + 0xC), edx */ /* 0x4709033D: cmp dword ptr [esi + 0xc], edx */ 3565 _flag_a = (uint32_t)(MEM32(esi + 0xC)); _flag_b = (uint32_t)(edx); 3566 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3567 _flag_k = FK_CMP; 3568 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x47090340: jne 0x47090352 */ 3569 L_47090342: 3570 PUSH32(esp, ebp); /* 0x47090342: push ebp */ 3571 MEM32(esi + 0x40) = edx; /* 0x47090343: mov dword ptr [esi + 0x40], edx */ 3572 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47090346: call dword ptr [0x470ac190] */ 3573 RECOMP_FLAGS_IN(); 3574 edi = POP32_VAL(esp); /* 0x4709034C: pop edi */ 3575 esi = POP32_VAL(esp); /* 0x4709034D: pop esi */ 3576 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3577 eax = 0; /* 0x4709034E: xor eax, eax */ 3578 _cf = 0; 3579 _flag_k = FK_TEST; 3580 ebp = POP32_VAL(esp); /* 0x47090350: pop ebp */ 3581 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090351: ret */ 3582 L_47090352: 3583 /* cmp eax, edx */ /* 0x47090352: cmp eax, edx */ 3584 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3585 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3586 _flag_k = FK_CMP; 3587 ecx = 1; /* 0x47090354: mov ecx, 1 */ 3588 if (CMP_EQ(_flag_a, _flag_b)) goto L_47090364; /* 0x47090359: je 0x47090364 */ 3589 L_4709035B: 3590 MEM32(esi + 0x34) = 2; /* 0x4709035B: mov dword ptr [esi + 0x34], 2 */ 3591 goto L_4709036A; /* 0x47090362: jmp 0x4709036a */ 3592 L_47090364: 3593 MEM32(esi + 0x34) = ecx; /* 0x47090364: mov dword ptr [esi + 0x34], ecx */ 3594 edi = esi + 0xC; /* 0x47090367: lea edi, [esi + 0xc] */ 3595 L_4709036A: 3596 eax = MEM32(edi); /* 0x4709036A: mov eax, dword ptr [edi] */ 3597 MEM32(eax + 0x10) = ecx; /* 0x4709036C: mov dword ptr [eax + 0x10], ecx */ 3598 eax = MEM32(edi); /* 0x4709036F: mov eax, dword ptr [edi] */ 3599 PUSH32(esp, edx); /* 0x47090371: push edx */ 3600 PUSH32(esp, ecx); /* 0x47090372: push ecx */ 3601 ecx = MEM32(eax + 0x8); /* 0x47090373: mov ecx, dword ptr [eax + 8] */ 3602 PUSH32(esp, ecx); /* 0x47090376: push ecx */ 3603 RECOMP_ICALL(MEM32(0x470AC168)); /* 0x47090377: call dword ptr [0x470ac168] */ 3604 RECOMP_FLAGS_IN(); 3605 /* test eax, eax */ /* 0x4709037D: test eax, eax */ 3606 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3607 _cf = 0; 3608 _flag_k = FK_TEST; 3609 if (TEST_NZ(_flag_a, _flag_b)) goto L_47090393; /* 0x4709037F: jne 0x47090393 */ 3610 L_47090381: 3611 PUSH32(esp, ebx); /* 0x47090381: push ebx */ 3612 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47090382: call dword ptr [0x470ac3c8] */ 3613 RECOMP_FLAGS_IN(); 3614 ebx = eax; /* 0x47090388: mov ebx, eax */ 3615 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4709038A: call dword ptr [0x470ac150] */ 3616 RECOMP_FLAGS_IN(); 3617 MEM32(ebx) = eax; /* 0x47090390: mov dword ptr [ebx], eax */ 3618 ebx = POP32_VAL(esp); /* 0x47090392: pop ebx */ 3619 L_47090393: 3620 edx = MEM32(edi); /* 0x47090393: mov edx, dword ptr [edi] */ 3621 eax = MEM32(edx + 0x4); /* 0x47090395: mov eax, dword ptr [edx + 4] */ 3622 PUSH32(esp, ebp); /* 0x47090398: push ebp */ 3623 MEM32(esi + 0x30) = eax; /* 0x47090399: mov dword ptr [esi + 0x30], eax */ 3624 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709039C: call dword ptr [0x470ac190] */ 3625 RECOMP_FLAGS_IN(); 3626 edi = POP32_VAL(esp); /* 0x470903A2: pop edi */ 3627 esi = POP32_VAL(esp); /* 0x470903A3: pop esi */ 3628 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3629 eax = 0; /* 0x470903A4: xor eax, eax */ 3630 _cf = 0; 3631 _flag_k = FK_TEST; 3632 ebp = POP32_VAL(esp); /* 0x470903A6: pop ebp */ 3633 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470903A7: ret */ 3634 L_470A7D20: 3635 ecx = ebp + (-0x8); /* 0x470A7D20: lea ecx, [ebp - 8] */ 3636 RECOMP_BACKEDGE(); 3637 goto L_470604F0; /* 0x470A7D23: jmp 0x470604f0 */ 3638 { RECOMP_REGS_OUT(); return; } /* end of function */ 3639 RECOMP_REGS_OUT(); 3640 } 3641 3642 void sub_470A7D28(void) { 3643 int _fpu_cmp = 0; 3644 uint32_t _cf = 0; 3645 int _df = 1; 3646 uint32_t _flag_k = FK_NONE; 3647 uint32_t _flag_a = 0, _flag_b = 0; 3648 uint32_t _itail_tgt = 0; 3649 RECOMP_REGS_LOCALS 3650 RECOMP_ENTER(0x470A7D28u); 3651 3652 goto L_470A7D28; 3653 L_470A33EC: 3654 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 3655 L_470A7D28: 3656 eax = 0x470B58F8u; /* 0x470A7D28: mov eax, 0x470b58f8 */ 3657 L_470A7D2D: 3658 RECOMP_BACKEDGE(); 3659 goto L_470A33EC; /* 0x470A7D2D: jmp 0x470a33ec */ 3660 { RECOMP_REGS_OUT(); return; } /* end of function */ 3661 _ljump: 3662 switch (_itail_tgt) { 3663 case 0x470A33ECu: goto L_470A33EC; 3664 case 0x470A7D28u: goto L_470A7D28; 3665 case 0x470A7D2Du: goto L_470A7D2D; 3666 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3667 } 3668 RECOMP_REGS_OUT(); 3669 } 3670 3671 void sub_470A7D40(void) { 3672 int _fpu_cmp = 0; 3673 uint32_t _cf = 0; 3674 int _df = 1; 3675 uint32_t _flag_k = FK_NONE; 3676 uint32_t _flag_a = 0, _flag_b = 0; 3677 uint32_t _itail_tgt = 0; 3678 RECOMP_REGS_LOCALS 3679 RECOMP_ENTER(0x470A7D40u); 3680 3681 goto L_470A7D40; 3682 L_470604F0: 3683 edx = MEM32(ecx + 0x4); /* 0x470604F0: mov edx, dword ptr [ecx + 4] */ 3684 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3685 eax = eax | 0xFFFFFFFFu; /* 0x470604F3: or eax, 0xffffffff */ 3686 _cf = 0; 3687 _flag_k = FK_TEST; 3688 /* cmp edx, eax */ /* 0x470604F6: cmp edx, eax */ 3689 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3690 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3691 _flag_k = FK_CMP; 3692 if (CMP_EQ(_flag_a, _flag_b)) goto L_47060504; /* 0x470604F8: je 0x47060504 */ 3693 L_470604FA: 3694 MEM32(ecx + 0x4) = eax; /* 0x470604FA: mov dword ptr [ecx + 4], eax */ 3695 ecx = MEM32(ecx); /* 0x470604FD: mov ecx, dword ptr [ecx] */ 3696 goto L_47090300; /* 0x470604FF: jmp 0x47090300 */ 3697 L_47060504: 3698 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47060504: ret */ 3699 L_47090300: 3700 PUSH32(esp, ebp); /* 0x47090300: push ebp */ 3701 PUSH32(esp, esi); /* 0x47090301: push esi */ 3702 esi = ecx; /* 0x47090302: mov esi, ecx */ 3703 PUSH32(esp, edi); /* 0x47090304: push edi */ 3704 ebp = esi + 0x14; /* 0x47090305: lea ebp, [esi + 0x14] */ 3705 PUSH32(esp, ebp); /* 0x47090308: push ebp */ 3706 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47090309: call dword ptr [0x470ac180] */ 3707 RECOMP_FLAGS_IN(); 3708 eax = MEM32(esi + 0x3C); /* 0x4709030F: mov eax, dword ptr [esi + 0x3c] */ 3709 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3710 edx = 0; /* 0x47090312: xor edx, edx */ 3711 _cf = 0; 3712 _flag_k = FK_TEST; 3713 /* cmp eax, edx */ /* 0x47090314: cmp eax, edx */ 3714 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3715 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3716 _flag_k = FK_CMP; 3717 if (CMP_LE(_flag_a, _flag_b)) goto L_47090329; /* 0x47090316: jle 0x47090329 */ 3718 L_47090318: 3719 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3720 eax = eax - 1; /* 0x47090318: dec eax */ 3721 _flag_k = FK_DEC; 3722 PUSH32(esp, ebp); /* 0x47090319: push ebp */ 3723 MEM32(esi + 0x3C) = eax; /* 0x4709031A: mov dword ptr [esi + 0x3c], eax */ 3724 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709031D: call dword ptr [0x470ac190] */ 3725 RECOMP_FLAGS_IN(); 3726 edi = POP32_VAL(esp); /* 0x47090323: pop edi */ 3727 esi = POP32_VAL(esp); /* 0x47090324: pop esi */ 3728 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3729 eax = 0; /* 0x47090325: xor eax, eax */ 3730 _cf = 0; 3731 _flag_k = FK_TEST; 3732 ebp = POP32_VAL(esp); /* 0x47090327: pop ebp */ 3733 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090328: ret */ 3734 L_47090329: 3735 eax = MEM32(0x4710E900); /* 0x47090329: mov eax, dword ptr [0x4710e900] */ 3736 edi = esi + 0x4; /* 0x4709032E: lea edi, [esi + 4] */ 3737 MEM32(esi + 0x30) = eax; /* 0x47090331: mov dword ptr [esi + 0x30], eax */ 3738 eax = MEM32(edi); /* 0x47090334: mov eax, dword ptr [edi] */ 3739 /* cmp eax, edx */ /* 0x47090336: cmp eax, edx */ 3740 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3741 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3742 _flag_k = FK_CMP; 3743 MEM32(esi + 0x34) = edx; /* 0x47090338: mov dword ptr [esi + 0x34], edx */ 3744 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x4709033B: jne 0x47090352 */ 3745 L_4709033D: 3746 /* cmp MEM32(esi + 0xC), edx */ /* 0x4709033D: cmp dword ptr [esi + 0xc], edx */ 3747 _flag_a = (uint32_t)(MEM32(esi + 0xC)); _flag_b = (uint32_t)(edx); 3748 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3749 _flag_k = FK_CMP; 3750 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x47090340: jne 0x47090352 */ 3751 L_47090342: 3752 PUSH32(esp, ebp); /* 0x47090342: push ebp */ 3753 MEM32(esi + 0x40) = edx; /* 0x47090343: mov dword ptr [esi + 0x40], edx */ 3754 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47090346: call dword ptr [0x470ac190] */ 3755 RECOMP_FLAGS_IN(); 3756 edi = POP32_VAL(esp); /* 0x4709034C: pop edi */ 3757 esi = POP32_VAL(esp); /* 0x4709034D: pop esi */ 3758 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3759 eax = 0; /* 0x4709034E: xor eax, eax */ 3760 _cf = 0; 3761 _flag_k = FK_TEST; 3762 ebp = POP32_VAL(esp); /* 0x47090350: pop ebp */ 3763 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090351: ret */ 3764 L_47090352: 3765 /* cmp eax, edx */ /* 0x47090352: cmp eax, edx */ 3766 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3767 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3768 _flag_k = FK_CMP; 3769 ecx = 1; /* 0x47090354: mov ecx, 1 */ 3770 if (CMP_EQ(_flag_a, _flag_b)) goto L_47090364; /* 0x47090359: je 0x47090364 */ 3771 L_4709035B: 3772 MEM32(esi + 0x34) = 2; /* 0x4709035B: mov dword ptr [esi + 0x34], 2 */ 3773 goto L_4709036A; /* 0x47090362: jmp 0x4709036a */ 3774 L_47090364: 3775 MEM32(esi + 0x34) = ecx; /* 0x47090364: mov dword ptr [esi + 0x34], ecx */ 3776 edi = esi + 0xC; /* 0x47090367: lea edi, [esi + 0xc] */ 3777 L_4709036A: 3778 eax = MEM32(edi); /* 0x4709036A: mov eax, dword ptr [edi] */ 3779 MEM32(eax + 0x10) = ecx; /* 0x4709036C: mov dword ptr [eax + 0x10], ecx */ 3780 eax = MEM32(edi); /* 0x4709036F: mov eax, dword ptr [edi] */ 3781 PUSH32(esp, edx); /* 0x47090371: push edx */ 3782 PUSH32(esp, ecx); /* 0x47090372: push ecx */ 3783 ecx = MEM32(eax + 0x8); /* 0x47090373: mov ecx, dword ptr [eax + 8] */ 3784 PUSH32(esp, ecx); /* 0x47090376: push ecx */ 3785 RECOMP_ICALL(MEM32(0x470AC168)); /* 0x47090377: call dword ptr [0x470ac168] */ 3786 RECOMP_FLAGS_IN(); 3787 /* test eax, eax */ /* 0x4709037D: test eax, eax */ 3788 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3789 _cf = 0; 3790 _flag_k = FK_TEST; 3791 if (TEST_NZ(_flag_a, _flag_b)) goto L_47090393; /* 0x4709037F: jne 0x47090393 */ 3792 L_47090381: 3793 PUSH32(esp, ebx); /* 0x47090381: push ebx */ 3794 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47090382: call dword ptr [0x470ac3c8] */ 3795 RECOMP_FLAGS_IN(); 3796 ebx = eax; /* 0x47090388: mov ebx, eax */ 3797 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4709038A: call dword ptr [0x470ac150] */ 3798 RECOMP_FLAGS_IN(); 3799 MEM32(ebx) = eax; /* 0x47090390: mov dword ptr [ebx], eax */ 3800 ebx = POP32_VAL(esp); /* 0x47090392: pop ebx */ 3801 L_47090393: 3802 edx = MEM32(edi); /* 0x47090393: mov edx, dword ptr [edi] */ 3803 eax = MEM32(edx + 0x4); /* 0x47090395: mov eax, dword ptr [edx + 4] */ 3804 PUSH32(esp, ebp); /* 0x47090398: push ebp */ 3805 MEM32(esi + 0x30) = eax; /* 0x47090399: mov dword ptr [esi + 0x30], eax */ 3806 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709039C: call dword ptr [0x470ac190] */ 3807 RECOMP_FLAGS_IN(); 3808 edi = POP32_VAL(esp); /* 0x470903A2: pop edi */ 3809 esi = POP32_VAL(esp); /* 0x470903A3: pop esi */ 3810 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3811 eax = 0; /* 0x470903A4: xor eax, eax */ 3812 _cf = 0; 3813 _flag_k = FK_TEST; 3814 ebp = POP32_VAL(esp); /* 0x470903A6: pop ebp */ 3815 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470903A7: ret */ 3816 L_470A7D40: 3817 ecx = ebp + (-0x8); /* 0x470A7D40: lea ecx, [ebp - 8] */ 3818 RECOMP_BACKEDGE(); 3819 goto L_470604F0; /* 0x470A7D43: jmp 0x470604f0 */ 3820 { RECOMP_REGS_OUT(); return; } /* end of function */ 3821 RECOMP_REGS_OUT(); 3822 } 3823 3824 void sub_470A7D48(void) { 3825 int _fpu_cmp = 0; 3826 uint32_t _cf = 0; 3827 int _df = 1; 3828 uint32_t _flag_k = FK_NONE; 3829 uint32_t _flag_a = 0, _flag_b = 0; 3830 uint32_t _itail_tgt = 0; 3831 RECOMP_REGS_LOCALS 3832 RECOMP_ENTER(0x470A7D48u); 3833 3834 goto L_470A7D48; 3835 L_470A33EC: 3836 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 3837 L_470A7D48: 3838 eax = 0x470B5920u; /* 0x470A7D48: mov eax, 0x470b5920 */ 3839 L_470A7D4D: 3840 RECOMP_BACKEDGE(); 3841 goto L_470A33EC; /* 0x470A7D4D: jmp 0x470a33ec */ 3842 { RECOMP_REGS_OUT(); return; } /* end of function */ 3843 _ljump: 3844 switch (_itail_tgt) { 3845 case 0x470A33ECu: goto L_470A33EC; 3846 case 0x470A7D48u: goto L_470A7D48; 3847 case 0x470A7D4Du: goto L_470A7D4D; 3848 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3849 } 3850 RECOMP_REGS_OUT(); 3851 } 3852 3853 void sub_470A7D60(void) { 3854 int _fpu_cmp = 0; 3855 uint32_t _cf = 0; 3856 int _df = 1; 3857 uint32_t _flag_k = FK_NONE; 3858 uint32_t _flag_a = 0, _flag_b = 0; 3859 uint32_t _itail_tgt = 0; 3860 RECOMP_REGS_LOCALS 3861 RECOMP_ENTER(0x470A7D60u); 3862 3863 goto L_470A7D60; 3864 L_470604F0: 3865 edx = MEM32(ecx + 0x4); /* 0x470604F0: mov edx, dword ptr [ecx + 4] */ 3866 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3867 eax = eax | 0xFFFFFFFFu; /* 0x470604F3: or eax, 0xffffffff */ 3868 _cf = 0; 3869 _flag_k = FK_TEST; 3870 /* cmp edx, eax */ /* 0x470604F6: cmp edx, eax */ 3871 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3872 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3873 _flag_k = FK_CMP; 3874 if (CMP_EQ(_flag_a, _flag_b)) goto L_47060504; /* 0x470604F8: je 0x47060504 */ 3875 L_470604FA: 3876 MEM32(ecx + 0x4) = eax; /* 0x470604FA: mov dword ptr [ecx + 4], eax */ 3877 ecx = MEM32(ecx); /* 0x470604FD: mov ecx, dword ptr [ecx] */ 3878 goto L_47090300; /* 0x470604FF: jmp 0x47090300 */ 3879 L_47060504: 3880 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47060504: ret */ 3881 L_47090300: 3882 PUSH32(esp, ebp); /* 0x47090300: push ebp */ 3883 PUSH32(esp, esi); /* 0x47090301: push esi */ 3884 esi = ecx; /* 0x47090302: mov esi, ecx */ 3885 PUSH32(esp, edi); /* 0x47090304: push edi */ 3886 ebp = esi + 0x14; /* 0x47090305: lea ebp, [esi + 0x14] */ 3887 PUSH32(esp, ebp); /* 0x47090308: push ebp */ 3888 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47090309: call dword ptr [0x470ac180] */ 3889 RECOMP_FLAGS_IN(); 3890 eax = MEM32(esi + 0x3C); /* 0x4709030F: mov eax, dword ptr [esi + 0x3c] */ 3891 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3892 edx = 0; /* 0x47090312: xor edx, edx */ 3893 _cf = 0; 3894 _flag_k = FK_TEST; 3895 /* cmp eax, edx */ /* 0x47090314: cmp eax, edx */ 3896 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3897 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3898 _flag_k = FK_CMP; 3899 if (CMP_LE(_flag_a, _flag_b)) goto L_47090329; /* 0x47090316: jle 0x47090329 */ 3900 L_47090318: 3901 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3902 eax = eax - 1; /* 0x47090318: dec eax */ 3903 _flag_k = FK_DEC; 3904 PUSH32(esp, ebp); /* 0x47090319: push ebp */ 3905 MEM32(esi + 0x3C) = eax; /* 0x4709031A: mov dword ptr [esi + 0x3c], eax */ 3906 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709031D: call dword ptr [0x470ac190] */ 3907 RECOMP_FLAGS_IN(); 3908 edi = POP32_VAL(esp); /* 0x47090323: pop edi */ 3909 esi = POP32_VAL(esp); /* 0x47090324: pop esi */ 3910 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3911 eax = 0; /* 0x47090325: xor eax, eax */ 3912 _cf = 0; 3913 _flag_k = FK_TEST; 3914 ebp = POP32_VAL(esp); /* 0x47090327: pop ebp */ 3915 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090328: ret */ 3916 L_47090329: 3917 eax = MEM32(0x4710E900); /* 0x47090329: mov eax, dword ptr [0x4710e900] */ 3918 edi = esi + 0x4; /* 0x4709032E: lea edi, [esi + 4] */ 3919 MEM32(esi + 0x30) = eax; /* 0x47090331: mov dword ptr [esi + 0x30], eax */ 3920 eax = MEM32(edi); /* 0x47090334: mov eax, dword ptr [edi] */ 3921 /* cmp eax, edx */ /* 0x47090336: cmp eax, edx */ 3922 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3923 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3924 _flag_k = FK_CMP; 3925 MEM32(esi + 0x34) = edx; /* 0x47090338: mov dword ptr [esi + 0x34], edx */ 3926 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x4709033B: jne 0x47090352 */ 3927 L_4709033D: 3928 /* cmp MEM32(esi + 0xC), edx */ /* 0x4709033D: cmp dword ptr [esi + 0xc], edx */ 3929 _flag_a = (uint32_t)(MEM32(esi + 0xC)); _flag_b = (uint32_t)(edx); 3930 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3931 _flag_k = FK_CMP; 3932 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x47090340: jne 0x47090352 */ 3933 L_47090342: 3934 PUSH32(esp, ebp); /* 0x47090342: push ebp */ 3935 MEM32(esi + 0x40) = edx; /* 0x47090343: mov dword ptr [esi + 0x40], edx */ 3936 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47090346: call dword ptr [0x470ac190] */ 3937 RECOMP_FLAGS_IN(); 3938 edi = POP32_VAL(esp); /* 0x4709034C: pop edi */ 3939 esi = POP32_VAL(esp); /* 0x4709034D: pop esi */ 3940 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3941 eax = 0; /* 0x4709034E: xor eax, eax */ 3942 _cf = 0; 3943 _flag_k = FK_TEST; 3944 ebp = POP32_VAL(esp); /* 0x47090350: pop ebp */ 3945 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090351: ret */ 3946 L_47090352: 3947 /* cmp eax, edx */ /* 0x47090352: cmp eax, edx */ 3948 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3949 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3950 _flag_k = FK_CMP; 3951 ecx = 1; /* 0x47090354: mov ecx, 1 */ 3952 if (CMP_EQ(_flag_a, _flag_b)) goto L_47090364; /* 0x47090359: je 0x47090364 */ 3953 L_4709035B: 3954 MEM32(esi + 0x34) = 2; /* 0x4709035B: mov dword ptr [esi + 0x34], 2 */ 3955 goto L_4709036A; /* 0x47090362: jmp 0x4709036a */ 3956 L_47090364: 3957 MEM32(esi + 0x34) = ecx; /* 0x47090364: mov dword ptr [esi + 0x34], ecx */ 3958 edi = esi + 0xC; /* 0x47090367: lea edi, [esi + 0xc] */ 3959 L_4709036A: 3960 eax = MEM32(edi); /* 0x4709036A: mov eax, dword ptr [edi] */ 3961 MEM32(eax + 0x10) = ecx; /* 0x4709036C: mov dword ptr [eax + 0x10], ecx */ 3962 eax = MEM32(edi); /* 0x4709036F: mov eax, dword ptr [edi] */ 3963 PUSH32(esp, edx); /* 0x47090371: push edx */ 3964 PUSH32(esp, ecx); /* 0x47090372: push ecx */ 3965 ecx = MEM32(eax + 0x8); /* 0x47090373: mov ecx, dword ptr [eax + 8] */ 3966 PUSH32(esp, ecx); /* 0x47090376: push ecx */ 3967 RECOMP_ICALL(MEM32(0x470AC168)); /* 0x47090377: call dword ptr [0x470ac168] */ 3968 RECOMP_FLAGS_IN(); 3969 /* test eax, eax */ /* 0x4709037D: test eax, eax */ 3970 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3971 _cf = 0; 3972 _flag_k = FK_TEST; 3973 if (TEST_NZ(_flag_a, _flag_b)) goto L_47090393; /* 0x4709037F: jne 0x47090393 */ 3974 L_47090381: 3975 PUSH32(esp, ebx); /* 0x47090381: push ebx */ 3976 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47090382: call dword ptr [0x470ac3c8] */ 3977 RECOMP_FLAGS_IN(); 3978 ebx = eax; /* 0x47090388: mov ebx, eax */ 3979 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4709038A: call dword ptr [0x470ac150] */ 3980 RECOMP_FLAGS_IN(); 3981 MEM32(ebx) = eax; /* 0x47090390: mov dword ptr [ebx], eax */ 3982 ebx = POP32_VAL(esp); /* 0x47090392: pop ebx */ 3983 L_47090393: 3984 edx = MEM32(edi); /* 0x47090393: mov edx, dword ptr [edi] */ 3985 eax = MEM32(edx + 0x4); /* 0x47090395: mov eax, dword ptr [edx + 4] */ 3986 PUSH32(esp, ebp); /* 0x47090398: push ebp */ 3987 MEM32(esi + 0x30) = eax; /* 0x47090399: mov dword ptr [esi + 0x30], eax */ 3988 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709039C: call dword ptr [0x470ac190] */ 3989 RECOMP_FLAGS_IN(); 3990 edi = POP32_VAL(esp); /* 0x470903A2: pop edi */ 3991 esi = POP32_VAL(esp); /* 0x470903A3: pop esi */ 3992 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3993 eax = 0; /* 0x470903A4: xor eax, eax */ 3994 _cf = 0; 3995 _flag_k = FK_TEST; 3996 ebp = POP32_VAL(esp); /* 0x470903A6: pop ebp */ 3997 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470903A7: ret */ 3998 L_470A7D60: 3999 ecx = ebp + (-0x8); /* 0x470A7D60: lea ecx, [ebp - 8] */ 4000 RECOMP_BACKEDGE(); 4001 goto L_470604F0; /* 0x470A7D63: jmp 0x470604f0 */ 4002 { RECOMP_REGS_OUT(); return; } /* end of function */ 4003 RECOMP_REGS_OUT(); 4004 } 4005 4006 void sub_470A7D68(void) { 4007 int _fpu_cmp = 0; 4008 uint32_t _cf = 0; 4009 int _df = 1; 4010 uint32_t _flag_k = FK_NONE; 4011 uint32_t _flag_a = 0, _flag_b = 0; 4012 uint32_t _itail_tgt = 0; 4013 RECOMP_REGS_LOCALS 4014 RECOMP_ENTER(0x470A7D68u); 4015 4016 goto L_470A7D68; 4017 L_470A33EC: 4018 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 4019 L_470A7D68: 4020 eax = 0x470B5948u; /* 0x470A7D68: mov eax, 0x470b5948 */ 4021 L_470A7D6D: 4022 RECOMP_BACKEDGE(); 4023 goto L_470A33EC; /* 0x470A7D6D: jmp 0x470a33ec */ 4024 { RECOMP_REGS_OUT(); return; } /* end of function */ 4025 _ljump: 4026 switch (_itail_tgt) { 4027 case 0x470A33ECu: goto L_470A33EC; 4028 case 0x470A7D68u: goto L_470A7D68; 4029 case 0x470A7D6Du: goto L_470A7D6D; 4030 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4031 } 4032 RECOMP_REGS_OUT(); 4033 } 4034 4035 void sub_470A7D80(void) { 4036 int _fpu_cmp = 0; 4037 uint32_t _cf = 0; 4038 int _df = 1; 4039 uint32_t _flag_k = FK_NONE; 4040 uint32_t _flag_a = 0, _flag_b = 0; 4041 uint32_t _itail_tgt = 0; 4042 RECOMP_REGS_LOCALS 4043 RECOMP_ENTER(0x470A7D80u); 4044 4045 goto L_470A7D80; 4046 L_470604F0: 4047 edx = MEM32(ecx + 0x4); /* 0x470604F0: mov edx, dword ptr [ecx + 4] */ 4048 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 4049 eax = eax | 0xFFFFFFFFu; /* 0x470604F3: or eax, 0xffffffff */ 4050 _cf = 0; 4051 _flag_k = FK_TEST; 4052 /* cmp edx, eax */ /* 0x470604F6: cmp edx, eax */ 4053 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 4054 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4055 _flag_k = FK_CMP; 4056 if (CMP_EQ(_flag_a, _flag_b)) goto L_47060504; /* 0x470604F8: je 0x47060504 */ 4057 L_470604FA: 4058 MEM32(ecx + 0x4) = eax; /* 0x470604FA: mov dword ptr [ecx + 4], eax */ 4059 ecx = MEM32(ecx); /* 0x470604FD: mov ecx, dword ptr [ecx] */ 4060 goto L_47090300; /* 0x470604FF: jmp 0x47090300 */ 4061 L_47060504: 4062 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47060504: ret */ 4063 L_47090300: 4064 PUSH32(esp, ebp); /* 0x47090300: push ebp */ 4065 PUSH32(esp, esi); /* 0x47090301: push esi */ 4066 esi = ecx; /* 0x47090302: mov esi, ecx */ 4067 PUSH32(esp, edi); /* 0x47090304: push edi */ 4068 ebp = esi + 0x14; /* 0x47090305: lea ebp, [esi + 0x14] */ 4069 PUSH32(esp, ebp); /* 0x47090308: push ebp */ 4070 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47090309: call dword ptr [0x470ac180] */ 4071 RECOMP_FLAGS_IN(); 4072 eax = MEM32(esi + 0x3C); /* 0x4709030F: mov eax, dword ptr [esi + 0x3c] */ 4073 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4074 edx = 0; /* 0x47090312: xor edx, edx */ 4075 _cf = 0; 4076 _flag_k = FK_TEST; 4077 /* cmp eax, edx */ /* 0x47090314: cmp eax, edx */ 4078 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4079 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4080 _flag_k = FK_CMP; 4081 if (CMP_LE(_flag_a, _flag_b)) goto L_47090329; /* 0x47090316: jle 0x47090329 */ 4082 L_47090318: 4083 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4084 eax = eax - 1; /* 0x47090318: dec eax */ 4085 _flag_k = FK_DEC; 4086 PUSH32(esp, ebp); /* 0x47090319: push ebp */ 4087 MEM32(esi + 0x3C) = eax; /* 0x4709031A: mov dword ptr [esi + 0x3c], eax */ 4088 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709031D: call dword ptr [0x470ac190] */ 4089 RECOMP_FLAGS_IN(); 4090 edi = POP32_VAL(esp); /* 0x47090323: pop edi */ 4091 esi = POP32_VAL(esp); /* 0x47090324: pop esi */ 4092 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4093 eax = 0; /* 0x47090325: xor eax, eax */ 4094 _cf = 0; 4095 _flag_k = FK_TEST; 4096 ebp = POP32_VAL(esp); /* 0x47090327: pop ebp */ 4097 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090328: ret */ 4098 L_47090329: 4099 eax = MEM32(0x4710E900); /* 0x47090329: mov eax, dword ptr [0x4710e900] */ 4100 edi = esi + 0x4; /* 0x4709032E: lea edi, [esi + 4] */ 4101 MEM32(esi + 0x30) = eax; /* 0x47090331: mov dword ptr [esi + 0x30], eax */ 4102 eax = MEM32(edi); /* 0x47090334: mov eax, dword ptr [edi] */ 4103 /* cmp eax, edx */ /* 0x47090336: cmp eax, edx */ 4104 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4105 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4106 _flag_k = FK_CMP; 4107 MEM32(esi + 0x34) = edx; /* 0x47090338: mov dword ptr [esi + 0x34], edx */ 4108 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x4709033B: jne 0x47090352 */ 4109 L_4709033D: 4110 /* cmp MEM32(esi + 0xC), edx */ /* 0x4709033D: cmp dword ptr [esi + 0xc], edx */ 4111 _flag_a = (uint32_t)(MEM32(esi + 0xC)); _flag_b = (uint32_t)(edx); 4112 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4113 _flag_k = FK_CMP; 4114 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x47090340: jne 0x47090352 */ 4115 L_47090342: 4116 PUSH32(esp, ebp); /* 0x47090342: push ebp */ 4117 MEM32(esi + 0x40) = edx; /* 0x47090343: mov dword ptr [esi + 0x40], edx */ 4118 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47090346: call dword ptr [0x470ac190] */ 4119 RECOMP_FLAGS_IN(); 4120 edi = POP32_VAL(esp); /* 0x4709034C: pop edi */ 4121 esi = POP32_VAL(esp); /* 0x4709034D: pop esi */ 4122 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4123 eax = 0; /* 0x4709034E: xor eax, eax */ 4124 _cf = 0; 4125 _flag_k = FK_TEST; 4126 ebp = POP32_VAL(esp); /* 0x47090350: pop ebp */ 4127 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090351: ret */ 4128 L_47090352: 4129 /* cmp eax, edx */ /* 0x47090352: cmp eax, edx */ 4130 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4131 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4132 _flag_k = FK_CMP; 4133 ecx = 1; /* 0x47090354: mov ecx, 1 */ 4134 if (CMP_EQ(_flag_a, _flag_b)) goto L_47090364; /* 0x47090359: je 0x47090364 */ 4135 L_4709035B: 4136 MEM32(esi + 0x34) = 2; /* 0x4709035B: mov dword ptr [esi + 0x34], 2 */ 4137 goto L_4709036A; /* 0x47090362: jmp 0x4709036a */ 4138 L_47090364: 4139 MEM32(esi + 0x34) = ecx; /* 0x47090364: mov dword ptr [esi + 0x34], ecx */ 4140 edi = esi + 0xC; /* 0x47090367: lea edi, [esi + 0xc] */ 4141 L_4709036A: 4142 eax = MEM32(edi); /* 0x4709036A: mov eax, dword ptr [edi] */ 4143 MEM32(eax + 0x10) = ecx; /* 0x4709036C: mov dword ptr [eax + 0x10], ecx */ 4144 eax = MEM32(edi); /* 0x4709036F: mov eax, dword ptr [edi] */ 4145 PUSH32(esp, edx); /* 0x47090371: push edx */ 4146 PUSH32(esp, ecx); /* 0x47090372: push ecx */ 4147 ecx = MEM32(eax + 0x8); /* 0x47090373: mov ecx, dword ptr [eax + 8] */ 4148 PUSH32(esp, ecx); /* 0x47090376: push ecx */ 4149 RECOMP_ICALL(MEM32(0x470AC168)); /* 0x47090377: call dword ptr [0x470ac168] */ 4150 RECOMP_FLAGS_IN(); 4151 /* test eax, eax */ /* 0x4709037D: test eax, eax */ 4152 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4153 _cf = 0; 4154 _flag_k = FK_TEST; 4155 if (TEST_NZ(_flag_a, _flag_b)) goto L_47090393; /* 0x4709037F: jne 0x47090393 */ 4156 L_47090381: 4157 PUSH32(esp, ebx); /* 0x47090381: push ebx */ 4158 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47090382: call dword ptr [0x470ac3c8] */ 4159 RECOMP_FLAGS_IN(); 4160 ebx = eax; /* 0x47090388: mov ebx, eax */ 4161 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4709038A: call dword ptr [0x470ac150] */ 4162 RECOMP_FLAGS_IN(); 4163 MEM32(ebx) = eax; /* 0x47090390: mov dword ptr [ebx], eax */ 4164 ebx = POP32_VAL(esp); /* 0x47090392: pop ebx */ 4165 L_47090393: 4166 edx = MEM32(edi); /* 0x47090393: mov edx, dword ptr [edi] */ 4167 eax = MEM32(edx + 0x4); /* 0x47090395: mov eax, dword ptr [edx + 4] */ 4168 PUSH32(esp, ebp); /* 0x47090398: push ebp */ 4169 MEM32(esi + 0x30) = eax; /* 0x47090399: mov dword ptr [esi + 0x30], eax */ 4170 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709039C: call dword ptr [0x470ac190] */ 4171 RECOMP_FLAGS_IN(); 4172 edi = POP32_VAL(esp); /* 0x470903A2: pop edi */ 4173 esi = POP32_VAL(esp); /* 0x470903A3: pop esi */ 4174 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4175 eax = 0; /* 0x470903A4: xor eax, eax */ 4176 _cf = 0; 4177 _flag_k = FK_TEST; 4178 ebp = POP32_VAL(esp); /* 0x470903A6: pop ebp */ 4179 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470903A7: ret */ 4180 L_470A7D80: 4181 ecx = ebp + (-0x14); /* 0x470A7D80: lea ecx, [ebp - 0x14] */ 4182 RECOMP_BACKEDGE(); 4183 goto L_470604F0; /* 0x470A7D83: jmp 0x470604f0 */ 4184 { RECOMP_REGS_OUT(); return; } /* end of function */ 4185 RECOMP_REGS_OUT(); 4186 } 4187 4188 void sub_470A7D88(void) { 4189 int _fpu_cmp = 0; 4190 uint32_t _cf = 0; 4191 int _df = 1; 4192 uint32_t _flag_k = FK_NONE; 4193 uint32_t _flag_a = 0, _flag_b = 0; 4194 uint32_t _itail_tgt = 0; 4195 RECOMP_REGS_LOCALS 4196 RECOMP_ENTER(0x470A7D88u); 4197 4198 goto L_470A7D88; 4199 L_470A33EC: 4200 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 4201 L_470A7D88: 4202 eax = 0x470B5970u; /* 0x470A7D88: mov eax, 0x470b5970 */ 4203 L_470A7D8D: 4204 RECOMP_BACKEDGE(); 4205 goto L_470A33EC; /* 0x470A7D8D: jmp 0x470a33ec */ 4206 { RECOMP_REGS_OUT(); return; } /* end of function */ 4207 _ljump: 4208 switch (_itail_tgt) { 4209 case 0x470A33ECu: goto L_470A33EC; 4210 case 0x470A7D88u: goto L_470A7D88; 4211 case 0x470A7D8Du: goto L_470A7D8D; 4212 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4213 } 4214 RECOMP_REGS_OUT(); 4215 } 4216 4217 void sub_470A7DA0(void) { 4218 int _fpu_cmp = 0; 4219 uint32_t _cf = 0; 4220 int _df = 1; 4221 uint32_t _flag_k = FK_NONE; 4222 uint32_t _flag_a = 0, _flag_b = 0; 4223 uint32_t _itail_tgt = 0; 4224 RECOMP_REGS_LOCALS 4225 RECOMP_ENTER(0x470A7DA0u); 4226 4227 goto L_470A7DA0; 4228 L_470604F0: 4229 edx = MEM32(ecx + 0x4); /* 0x470604F0: mov edx, dword ptr [ecx + 4] */ 4230 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 4231 eax = eax | 0xFFFFFFFFu; /* 0x470604F3: or eax, 0xffffffff */ 4232 _cf = 0; 4233 _flag_k = FK_TEST; 4234 /* cmp edx, eax */ /* 0x470604F6: cmp edx, eax */ 4235 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 4236 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4237 _flag_k = FK_CMP; 4238 if (CMP_EQ(_flag_a, _flag_b)) goto L_47060504; /* 0x470604F8: je 0x47060504 */ 4239 L_470604FA: 4240 MEM32(ecx + 0x4) = eax; /* 0x470604FA: mov dword ptr [ecx + 4], eax */ 4241 ecx = MEM32(ecx); /* 0x470604FD: mov ecx, dword ptr [ecx] */ 4242 goto L_47090300; /* 0x470604FF: jmp 0x47090300 */ 4243 L_47060504: 4244 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47060504: ret */ 4245 L_47090300: 4246 PUSH32(esp, ebp); /* 0x47090300: push ebp */ 4247 PUSH32(esp, esi); /* 0x47090301: push esi */ 4248 esi = ecx; /* 0x47090302: mov esi, ecx */ 4249 PUSH32(esp, edi); /* 0x47090304: push edi */ 4250 ebp = esi + 0x14; /* 0x47090305: lea ebp, [esi + 0x14] */ 4251 PUSH32(esp, ebp); /* 0x47090308: push ebp */ 4252 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47090309: call dword ptr [0x470ac180] */ 4253 RECOMP_FLAGS_IN(); 4254 eax = MEM32(esi + 0x3C); /* 0x4709030F: mov eax, dword ptr [esi + 0x3c] */ 4255 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4256 edx = 0; /* 0x47090312: xor edx, edx */ 4257 _cf = 0; 4258 _flag_k = FK_TEST; 4259 /* cmp eax, edx */ /* 0x47090314: cmp eax, edx */ 4260 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4261 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4262 _flag_k = FK_CMP; 4263 if (CMP_LE(_flag_a, _flag_b)) goto L_47090329; /* 0x47090316: jle 0x47090329 */ 4264 L_47090318: 4265 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4266 eax = eax - 1; /* 0x47090318: dec eax */ 4267 _flag_k = FK_DEC; 4268 PUSH32(esp, ebp); /* 0x47090319: push ebp */ 4269 MEM32(esi + 0x3C) = eax; /* 0x4709031A: mov dword ptr [esi + 0x3c], eax */ 4270 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709031D: call dword ptr [0x470ac190] */ 4271 RECOMP_FLAGS_IN(); 4272 edi = POP32_VAL(esp); /* 0x47090323: pop edi */ 4273 esi = POP32_VAL(esp); /* 0x47090324: pop esi */ 4274 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4275 eax = 0; /* 0x47090325: xor eax, eax */ 4276 _cf = 0; 4277 _flag_k = FK_TEST; 4278 ebp = POP32_VAL(esp); /* 0x47090327: pop ebp */ 4279 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090328: ret */ 4280 L_47090329: 4281 eax = MEM32(0x4710E900); /* 0x47090329: mov eax, dword ptr [0x4710e900] */ 4282 edi = esi + 0x4; /* 0x4709032E: lea edi, [esi + 4] */ 4283 MEM32(esi + 0x30) = eax; /* 0x47090331: mov dword ptr [esi + 0x30], eax */ 4284 eax = MEM32(edi); /* 0x47090334: mov eax, dword ptr [edi] */ 4285 /* cmp eax, edx */ /* 0x47090336: cmp eax, edx */ 4286 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4287 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4288 _flag_k = FK_CMP; 4289 MEM32(esi + 0x34) = edx; /* 0x47090338: mov dword ptr [esi + 0x34], edx */ 4290 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x4709033B: jne 0x47090352 */ 4291 L_4709033D: 4292 /* cmp MEM32(esi + 0xC), edx */ /* 0x4709033D: cmp dword ptr [esi + 0xc], edx */ 4293 _flag_a = (uint32_t)(MEM32(esi + 0xC)); _flag_b = (uint32_t)(edx); 4294 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4295 _flag_k = FK_CMP; 4296 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x47090340: jne 0x47090352 */ 4297 L_47090342: 4298 PUSH32(esp, ebp); /* 0x47090342: push ebp */ 4299 MEM32(esi + 0x40) = edx; /* 0x47090343: mov dword ptr [esi + 0x40], edx */ 4300 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47090346: call dword ptr [0x470ac190] */ 4301 RECOMP_FLAGS_IN(); 4302 edi = POP32_VAL(esp); /* 0x4709034C: pop edi */ 4303 esi = POP32_VAL(esp); /* 0x4709034D: pop esi */ 4304 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4305 eax = 0; /* 0x4709034E: xor eax, eax */ 4306 _cf = 0; 4307 _flag_k = FK_TEST; 4308 ebp = POP32_VAL(esp); /* 0x47090350: pop ebp */ 4309 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090351: ret */ 4310 L_47090352: 4311 /* cmp eax, edx */ /* 0x47090352: cmp eax, edx */ 4312 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4313 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4314 _flag_k = FK_CMP; 4315 ecx = 1; /* 0x47090354: mov ecx, 1 */ 4316 if (CMP_EQ(_flag_a, _flag_b)) goto L_47090364; /* 0x47090359: je 0x47090364 */ 4317 L_4709035B: 4318 MEM32(esi + 0x34) = 2; /* 0x4709035B: mov dword ptr [esi + 0x34], 2 */ 4319 goto L_4709036A; /* 0x47090362: jmp 0x4709036a */ 4320 L_47090364: 4321 MEM32(esi + 0x34) = ecx; /* 0x47090364: mov dword ptr [esi + 0x34], ecx */ 4322 edi = esi + 0xC; /* 0x47090367: lea edi, [esi + 0xc] */ 4323 L_4709036A: 4324 eax = MEM32(edi); /* 0x4709036A: mov eax, dword ptr [edi] */ 4325 MEM32(eax + 0x10) = ecx; /* 0x4709036C: mov dword ptr [eax + 0x10], ecx */ 4326 eax = MEM32(edi); /* 0x4709036F: mov eax, dword ptr [edi] */ 4327 PUSH32(esp, edx); /* 0x47090371: push edx */ 4328 PUSH32(esp, ecx); /* 0x47090372: push ecx */ 4329 ecx = MEM32(eax + 0x8); /* 0x47090373: mov ecx, dword ptr [eax + 8] */ 4330 PUSH32(esp, ecx); /* 0x47090376: push ecx */ 4331 RECOMP_ICALL(MEM32(0x470AC168)); /* 0x47090377: call dword ptr [0x470ac168] */ 4332 RECOMP_FLAGS_IN(); 4333 /* test eax, eax */ /* 0x4709037D: test eax, eax */ 4334 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4335 _cf = 0; 4336 _flag_k = FK_TEST; 4337 if (TEST_NZ(_flag_a, _flag_b)) goto L_47090393; /* 0x4709037F: jne 0x47090393 */ 4338 L_47090381: 4339 PUSH32(esp, ebx); /* 0x47090381: push ebx */ 4340 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47090382: call dword ptr [0x470ac3c8] */ 4341 RECOMP_FLAGS_IN(); 4342 ebx = eax; /* 0x47090388: mov ebx, eax */ 4343 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4709038A: call dword ptr [0x470ac150] */ 4344 RECOMP_FLAGS_IN(); 4345 MEM32(ebx) = eax; /* 0x47090390: mov dword ptr [ebx], eax */ 4346 ebx = POP32_VAL(esp); /* 0x47090392: pop ebx */ 4347 L_47090393: 4348 edx = MEM32(edi); /* 0x47090393: mov edx, dword ptr [edi] */ 4349 eax = MEM32(edx + 0x4); /* 0x47090395: mov eax, dword ptr [edx + 4] */ 4350 PUSH32(esp, ebp); /* 0x47090398: push ebp */ 4351 MEM32(esi + 0x30) = eax; /* 0x47090399: mov dword ptr [esi + 0x30], eax */ 4352 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709039C: call dword ptr [0x470ac190] */ 4353 RECOMP_FLAGS_IN(); 4354 edi = POP32_VAL(esp); /* 0x470903A2: pop edi */ 4355 esi = POP32_VAL(esp); /* 0x470903A3: pop esi */ 4356 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4357 eax = 0; /* 0x470903A4: xor eax, eax */ 4358 _cf = 0; 4359 _flag_k = FK_TEST; 4360 ebp = POP32_VAL(esp); /* 0x470903A6: pop ebp */ 4361 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470903A7: ret */ 4362 L_470A7DA0: 4363 ecx = ebp + (-0x14); /* 0x470A7DA0: lea ecx, [ebp - 0x14] */ 4364 RECOMP_BACKEDGE(); 4365 goto L_470604F0; /* 0x470A7DA3: jmp 0x470604f0 */ 4366 { RECOMP_REGS_OUT(); return; } /* end of function */ 4367 RECOMP_REGS_OUT(); 4368 } 4369 4370 void sub_470A7DA8(void) { 4371 int _fpu_cmp = 0; 4372 uint32_t _cf = 0; 4373 int _df = 1; 4374 uint32_t _flag_k = FK_NONE; 4375 uint32_t _flag_a = 0, _flag_b = 0; 4376 uint32_t _itail_tgt = 0; 4377 RECOMP_REGS_LOCALS 4378 RECOMP_ENTER(0x470A7DA8u); 4379 4380 goto L_470A7DA8; 4381 L_470A33EC: 4382 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 4383 L_470A7DA8: 4384 eax = 0x470B5998u; /* 0x470A7DA8: mov eax, 0x470b5998 */ 4385 L_470A7DAD: 4386 RECOMP_BACKEDGE(); 4387 goto L_470A33EC; /* 0x470A7DAD: jmp 0x470a33ec */ 4388 { RECOMP_REGS_OUT(); return; } /* end of function */ 4389 _ljump: 4390 switch (_itail_tgt) { 4391 case 0x470A33ECu: goto L_470A33EC; 4392 case 0x470A7DA8u: goto L_470A7DA8; 4393 case 0x470A7DADu: goto L_470A7DAD; 4394 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4395 } 4396 RECOMP_REGS_OUT(); 4397 } 4398 4399 void sub_470A7DC0(void) { 4400 int _fpu_cmp = 0; 4401 uint32_t _cf = 0; 4402 int _df = 1; 4403 uint32_t _flag_k = FK_NONE; 4404 uint32_t _flag_a = 0, _flag_b = 0; 4405 uint32_t _itail_tgt = 0; 4406 RECOMP_REGS_LOCALS 4407 RECOMP_ENTER(0x470A7DC0u); 4408 4409 goto L_470A7DC0; 4410 L_470604F0: 4411 edx = MEM32(ecx + 0x4); /* 0x470604F0: mov edx, dword ptr [ecx + 4] */ 4412 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 4413 eax = eax | 0xFFFFFFFFu; /* 0x470604F3: or eax, 0xffffffff */ 4414 _cf = 0; 4415 _flag_k = FK_TEST; 4416 /* cmp edx, eax */ /* 0x470604F6: cmp edx, eax */ 4417 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 4418 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4419 _flag_k = FK_CMP; 4420 if (CMP_EQ(_flag_a, _flag_b)) goto L_47060504; /* 0x470604F8: je 0x47060504 */ 4421 L_470604FA: 4422 MEM32(ecx + 0x4) = eax; /* 0x470604FA: mov dword ptr [ecx + 4], eax */ 4423 ecx = MEM32(ecx); /* 0x470604FD: mov ecx, dword ptr [ecx] */ 4424 goto L_47090300; /* 0x470604FF: jmp 0x47090300 */ 4425 L_47060504: 4426 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47060504: ret */ 4427 L_47090300: 4428 PUSH32(esp, ebp); /* 0x47090300: push ebp */ 4429 PUSH32(esp, esi); /* 0x47090301: push esi */ 4430 esi = ecx; /* 0x47090302: mov esi, ecx */ 4431 PUSH32(esp, edi); /* 0x47090304: push edi */ 4432 ebp = esi + 0x14; /* 0x47090305: lea ebp, [esi + 0x14] */ 4433 PUSH32(esp, ebp); /* 0x47090308: push ebp */ 4434 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47090309: call dword ptr [0x470ac180] */ 4435 RECOMP_FLAGS_IN(); 4436 eax = MEM32(esi + 0x3C); /* 0x4709030F: mov eax, dword ptr [esi + 0x3c] */ 4437 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4438 edx = 0; /* 0x47090312: xor edx, edx */ 4439 _cf = 0; 4440 _flag_k = FK_TEST; 4441 /* cmp eax, edx */ /* 0x47090314: cmp eax, edx */ 4442 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4443 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4444 _flag_k = FK_CMP; 4445 if (CMP_LE(_flag_a, _flag_b)) goto L_47090329; /* 0x47090316: jle 0x47090329 */ 4446 L_47090318: 4447 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4448 eax = eax - 1; /* 0x47090318: dec eax */ 4449 _flag_k = FK_DEC; 4450 PUSH32(esp, ebp); /* 0x47090319: push ebp */ 4451 MEM32(esi + 0x3C) = eax; /* 0x4709031A: mov dword ptr [esi + 0x3c], eax */ 4452 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709031D: call dword ptr [0x470ac190] */ 4453 RECOMP_FLAGS_IN(); 4454 edi = POP32_VAL(esp); /* 0x47090323: pop edi */ 4455 esi = POP32_VAL(esp); /* 0x47090324: pop esi */ 4456 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4457 eax = 0; /* 0x47090325: xor eax, eax */ 4458 _cf = 0; 4459 _flag_k = FK_TEST; 4460 ebp = POP32_VAL(esp); /* 0x47090327: pop ebp */ 4461 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090328: ret */ 4462 L_47090329: 4463 eax = MEM32(0x4710E900); /* 0x47090329: mov eax, dword ptr [0x4710e900] */ 4464 edi = esi + 0x4; /* 0x4709032E: lea edi, [esi + 4] */ 4465 MEM32(esi + 0x30) = eax; /* 0x47090331: mov dword ptr [esi + 0x30], eax */ 4466 eax = MEM32(edi); /* 0x47090334: mov eax, dword ptr [edi] */ 4467 /* cmp eax, edx */ /* 0x47090336: cmp eax, edx */ 4468 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4469 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4470 _flag_k = FK_CMP; 4471 MEM32(esi + 0x34) = edx; /* 0x47090338: mov dword ptr [esi + 0x34], edx */ 4472 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x4709033B: jne 0x47090352 */ 4473 L_4709033D: 4474 /* cmp MEM32(esi + 0xC), edx */ /* 0x4709033D: cmp dword ptr [esi + 0xc], edx */ 4475 _flag_a = (uint32_t)(MEM32(esi + 0xC)); _flag_b = (uint32_t)(edx); 4476 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4477 _flag_k = FK_CMP; 4478 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x47090340: jne 0x47090352 */ 4479 L_47090342: 4480 PUSH32(esp, ebp); /* 0x47090342: push ebp */ 4481 MEM32(esi + 0x40) = edx; /* 0x47090343: mov dword ptr [esi + 0x40], edx */ 4482 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47090346: call dword ptr [0x470ac190] */ 4483 RECOMP_FLAGS_IN(); 4484 edi = POP32_VAL(esp); /* 0x4709034C: pop edi */ 4485 esi = POP32_VAL(esp); /* 0x4709034D: pop esi */ 4486 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4487 eax = 0; /* 0x4709034E: xor eax, eax */ 4488 _cf = 0; 4489 _flag_k = FK_TEST; 4490 ebp = POP32_VAL(esp); /* 0x47090350: pop ebp */ 4491 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090351: ret */ 4492 L_47090352: 4493 /* cmp eax, edx */ /* 0x47090352: cmp eax, edx */ 4494 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4495 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4496 _flag_k = FK_CMP; 4497 ecx = 1; /* 0x47090354: mov ecx, 1 */ 4498 if (CMP_EQ(_flag_a, _flag_b)) goto L_47090364; /* 0x47090359: je 0x47090364 */ 4499 L_4709035B: 4500 MEM32(esi + 0x34) = 2; /* 0x4709035B: mov dword ptr [esi + 0x34], 2 */ 4501 goto L_4709036A; /* 0x47090362: jmp 0x4709036a */ 4502 L_47090364: 4503 MEM32(esi + 0x34) = ecx; /* 0x47090364: mov dword ptr [esi + 0x34], ecx */ 4504 edi = esi + 0xC; /* 0x47090367: lea edi, [esi + 0xc] */ 4505 L_4709036A: 4506 eax = MEM32(edi); /* 0x4709036A: mov eax, dword ptr [edi] */ 4507 MEM32(eax + 0x10) = ecx; /* 0x4709036C: mov dword ptr [eax + 0x10], ecx */ 4508 eax = MEM32(edi); /* 0x4709036F: mov eax, dword ptr [edi] */ 4509 PUSH32(esp, edx); /* 0x47090371: push edx */ 4510 PUSH32(esp, ecx); /* 0x47090372: push ecx */ 4511 ecx = MEM32(eax + 0x8); /* 0x47090373: mov ecx, dword ptr [eax + 8] */ 4512 PUSH32(esp, ecx); /* 0x47090376: push ecx */ 4513 RECOMP_ICALL(MEM32(0x470AC168)); /* 0x47090377: call dword ptr [0x470ac168] */ 4514 RECOMP_FLAGS_IN(); 4515 /* test eax, eax */ /* 0x4709037D: test eax, eax */ 4516 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4517 _cf = 0; 4518 _flag_k = FK_TEST; 4519 if (TEST_NZ(_flag_a, _flag_b)) goto L_47090393; /* 0x4709037F: jne 0x47090393 */ 4520 L_47090381: 4521 PUSH32(esp, ebx); /* 0x47090381: push ebx */ 4522 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47090382: call dword ptr [0x470ac3c8] */ 4523 RECOMP_FLAGS_IN(); 4524 ebx = eax; /* 0x47090388: mov ebx, eax */ 4525 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4709038A: call dword ptr [0x470ac150] */ 4526 RECOMP_FLAGS_IN(); 4527 MEM32(ebx) = eax; /* 0x47090390: mov dword ptr [ebx], eax */ 4528 ebx = POP32_VAL(esp); /* 0x47090392: pop ebx */ 4529 L_47090393: 4530 edx = MEM32(edi); /* 0x47090393: mov edx, dword ptr [edi] */ 4531 eax = MEM32(edx + 0x4); /* 0x47090395: mov eax, dword ptr [edx + 4] */ 4532 PUSH32(esp, ebp); /* 0x47090398: push ebp */ 4533 MEM32(esi + 0x30) = eax; /* 0x47090399: mov dword ptr [esi + 0x30], eax */ 4534 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709039C: call dword ptr [0x470ac190] */ 4535 RECOMP_FLAGS_IN(); 4536 edi = POP32_VAL(esp); /* 0x470903A2: pop edi */ 4537 esi = POP32_VAL(esp); /* 0x470903A3: pop esi */ 4538 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4539 eax = 0; /* 0x470903A4: xor eax, eax */ 4540 _cf = 0; 4541 _flag_k = FK_TEST; 4542 ebp = POP32_VAL(esp); /* 0x470903A6: pop ebp */ 4543 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470903A7: ret */ 4544 L_470A7DC0: 4545 ecx = ebp + (-0x8); /* 0x470A7DC0: lea ecx, [ebp - 8] */ 4546 RECOMP_BACKEDGE(); 4547 goto L_470604F0; /* 0x470A7DC3: jmp 0x470604f0 */ 4548 { RECOMP_REGS_OUT(); return; } /* end of function */ 4549 RECOMP_REGS_OUT(); 4550 } 4551 4552 void sub_470A7DC8(void) { 4553 int _fpu_cmp = 0; 4554 uint32_t _cf = 0; 4555 int _df = 1; 4556 uint32_t _flag_k = FK_NONE; 4557 uint32_t _flag_a = 0, _flag_b = 0; 4558 uint32_t _itail_tgt = 0; 4559 RECOMP_REGS_LOCALS 4560 RECOMP_ENTER(0x470A7DC8u); 4561 4562 goto L_470A7DC8; 4563 L_470A33EC: 4564 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 4565 L_470A7DC8: 4566 eax = 0x470B59C0u; /* 0x470A7DC8: mov eax, 0x470b59c0 */ 4567 L_470A7DCD: 4568 RECOMP_BACKEDGE(); 4569 goto L_470A33EC; /* 0x470A7DCD: jmp 0x470a33ec */ 4570 { RECOMP_REGS_OUT(); return; } /* end of function */ 4571 _ljump: 4572 switch (_itail_tgt) { 4573 case 0x470A33ECu: goto L_470A33EC; 4574 case 0x470A7DC8u: goto L_470A7DC8; 4575 case 0x470A7DCDu: goto L_470A7DCD; 4576 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4577 } 4578 RECOMP_REGS_OUT(); 4579 } 4580 4581 void sub_470A7DE0(void) { 4582 int _fpu_cmp = 0; 4583 uint32_t _cf = 0; 4584 int _df = 1; 4585 uint32_t _flag_k = FK_NONE; 4586 uint32_t _flag_a = 0, _flag_b = 0; 4587 uint32_t _itail_tgt = 0; 4588 RECOMP_REGS_LOCALS 4589 RECOMP_ENTER(0x470A7DE0u); 4590 4591 goto L_470A7DE0; 4592 L_470604F0: 4593 edx = MEM32(ecx + 0x4); /* 0x470604F0: mov edx, dword ptr [ecx + 4] */ 4594 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 4595 eax = eax | 0xFFFFFFFFu; /* 0x470604F3: or eax, 0xffffffff */ 4596 _cf = 0; 4597 _flag_k = FK_TEST; 4598 /* cmp edx, eax */ /* 0x470604F6: cmp edx, eax */ 4599 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 4600 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4601 _flag_k = FK_CMP; 4602 if (CMP_EQ(_flag_a, _flag_b)) goto L_47060504; /* 0x470604F8: je 0x47060504 */ 4603 L_470604FA: 4604 MEM32(ecx + 0x4) = eax; /* 0x470604FA: mov dword ptr [ecx + 4], eax */ 4605 ecx = MEM32(ecx); /* 0x470604FD: mov ecx, dword ptr [ecx] */ 4606 goto L_47090300; /* 0x470604FF: jmp 0x47090300 */ 4607 L_47060504: 4608 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47060504: ret */ 4609 L_47090300: 4610 PUSH32(esp, ebp); /* 0x47090300: push ebp */ 4611 PUSH32(esp, esi); /* 0x47090301: push esi */ 4612 esi = ecx; /* 0x47090302: mov esi, ecx */ 4613 PUSH32(esp, edi); /* 0x47090304: push edi */ 4614 ebp = esi + 0x14; /* 0x47090305: lea ebp, [esi + 0x14] */ 4615 PUSH32(esp, ebp); /* 0x47090308: push ebp */ 4616 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47090309: call dword ptr [0x470ac180] */ 4617 RECOMP_FLAGS_IN(); 4618 eax = MEM32(esi + 0x3C); /* 0x4709030F: mov eax, dword ptr [esi + 0x3c] */ 4619 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4620 edx = 0; /* 0x47090312: xor edx, edx */ 4621 _cf = 0; 4622 _flag_k = FK_TEST; 4623 /* cmp eax, edx */ /* 0x47090314: cmp eax, edx */ 4624 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4625 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4626 _flag_k = FK_CMP; 4627 if (CMP_LE(_flag_a, _flag_b)) goto L_47090329; /* 0x47090316: jle 0x47090329 */ 4628 L_47090318: 4629 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4630 eax = eax - 1; /* 0x47090318: dec eax */ 4631 _flag_k = FK_DEC; 4632 PUSH32(esp, ebp); /* 0x47090319: push ebp */ 4633 MEM32(esi + 0x3C) = eax; /* 0x4709031A: mov dword ptr [esi + 0x3c], eax */ 4634 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709031D: call dword ptr [0x470ac190] */ 4635 RECOMP_FLAGS_IN(); 4636 edi = POP32_VAL(esp); /* 0x47090323: pop edi */ 4637 esi = POP32_VAL(esp); /* 0x47090324: pop esi */ 4638 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4639 eax = 0; /* 0x47090325: xor eax, eax */ 4640 _cf = 0; 4641 _flag_k = FK_TEST; 4642 ebp = POP32_VAL(esp); /* 0x47090327: pop ebp */ 4643 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090328: ret */ 4644 L_47090329: 4645 eax = MEM32(0x4710E900); /* 0x47090329: mov eax, dword ptr [0x4710e900] */ 4646 edi = esi + 0x4; /* 0x4709032E: lea edi, [esi + 4] */ 4647 MEM32(esi + 0x30) = eax; /* 0x47090331: mov dword ptr [esi + 0x30], eax */ 4648 eax = MEM32(edi); /* 0x47090334: mov eax, dword ptr [edi] */ 4649 /* cmp eax, edx */ /* 0x47090336: cmp eax, edx */ 4650 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4651 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4652 _flag_k = FK_CMP; 4653 MEM32(esi + 0x34) = edx; /* 0x47090338: mov dword ptr [esi + 0x34], edx */ 4654 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x4709033B: jne 0x47090352 */ 4655 L_4709033D: 4656 /* cmp MEM32(esi + 0xC), edx */ /* 0x4709033D: cmp dword ptr [esi + 0xc], edx */ 4657 _flag_a = (uint32_t)(MEM32(esi + 0xC)); _flag_b = (uint32_t)(edx); 4658 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4659 _flag_k = FK_CMP; 4660 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x47090340: jne 0x47090352 */ 4661 L_47090342: 4662 PUSH32(esp, ebp); /* 0x47090342: push ebp */ 4663 MEM32(esi + 0x40) = edx; /* 0x47090343: mov dword ptr [esi + 0x40], edx */ 4664 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47090346: call dword ptr [0x470ac190] */ 4665 RECOMP_FLAGS_IN(); 4666 edi = POP32_VAL(esp); /* 0x4709034C: pop edi */ 4667 esi = POP32_VAL(esp); /* 0x4709034D: pop esi */ 4668 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4669 eax = 0; /* 0x4709034E: xor eax, eax */ 4670 _cf = 0; 4671 _flag_k = FK_TEST; 4672 ebp = POP32_VAL(esp); /* 0x47090350: pop ebp */ 4673 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090351: ret */ 4674 L_47090352: 4675 /* cmp eax, edx */ /* 0x47090352: cmp eax, edx */ 4676 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4677 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4678 _flag_k = FK_CMP; 4679 ecx = 1; /* 0x47090354: mov ecx, 1 */ 4680 if (CMP_EQ(_flag_a, _flag_b)) goto L_47090364; /* 0x47090359: je 0x47090364 */ 4681 L_4709035B: 4682 MEM32(esi + 0x34) = 2; /* 0x4709035B: mov dword ptr [esi + 0x34], 2 */ 4683 goto L_4709036A; /* 0x47090362: jmp 0x4709036a */ 4684 L_47090364: 4685 MEM32(esi + 0x34) = ecx; /* 0x47090364: mov dword ptr [esi + 0x34], ecx */ 4686 edi = esi + 0xC; /* 0x47090367: lea edi, [esi + 0xc] */ 4687 L_4709036A: 4688 eax = MEM32(edi); /* 0x4709036A: mov eax, dword ptr [edi] */ 4689 MEM32(eax + 0x10) = ecx; /* 0x4709036C: mov dword ptr [eax + 0x10], ecx */ 4690 eax = MEM32(edi); /* 0x4709036F: mov eax, dword ptr [edi] */ 4691 PUSH32(esp, edx); /* 0x47090371: push edx */ 4692 PUSH32(esp, ecx); /* 0x47090372: push ecx */ 4693 ecx = MEM32(eax + 0x8); /* 0x47090373: mov ecx, dword ptr [eax + 8] */ 4694 PUSH32(esp, ecx); /* 0x47090376: push ecx */ 4695 RECOMP_ICALL(MEM32(0x470AC168)); /* 0x47090377: call dword ptr [0x470ac168] */ 4696 RECOMP_FLAGS_IN(); 4697 /* test eax, eax */ /* 0x4709037D: test eax, eax */ 4698 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4699 _cf = 0; 4700 _flag_k = FK_TEST; 4701 if (TEST_NZ(_flag_a, _flag_b)) goto L_47090393; /* 0x4709037F: jne 0x47090393 */ 4702 L_47090381: 4703 PUSH32(esp, ebx); /* 0x47090381: push ebx */ 4704 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47090382: call dword ptr [0x470ac3c8] */ 4705 RECOMP_FLAGS_IN(); 4706 ebx = eax; /* 0x47090388: mov ebx, eax */ 4707 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4709038A: call dword ptr [0x470ac150] */ 4708 RECOMP_FLAGS_IN(); 4709 MEM32(ebx) = eax; /* 0x47090390: mov dword ptr [ebx], eax */ 4710 ebx = POP32_VAL(esp); /* 0x47090392: pop ebx */ 4711 L_47090393: 4712 edx = MEM32(edi); /* 0x47090393: mov edx, dword ptr [edi] */ 4713 eax = MEM32(edx + 0x4); /* 0x47090395: mov eax, dword ptr [edx + 4] */ 4714 PUSH32(esp, ebp); /* 0x47090398: push ebp */ 4715 MEM32(esi + 0x30) = eax; /* 0x47090399: mov dword ptr [esi + 0x30], eax */ 4716 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709039C: call dword ptr [0x470ac190] */ 4717 RECOMP_FLAGS_IN(); 4718 edi = POP32_VAL(esp); /* 0x470903A2: pop edi */ 4719 esi = POP32_VAL(esp); /* 0x470903A3: pop esi */ 4720 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4721 eax = 0; /* 0x470903A4: xor eax, eax */ 4722 _cf = 0; 4723 _flag_k = FK_TEST; 4724 ebp = POP32_VAL(esp); /* 0x470903A6: pop ebp */ 4725 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470903A7: ret */ 4726 L_470A7DE0: 4727 ecx = ebp + (-0x8); /* 0x470A7DE0: lea ecx, [ebp - 8] */ 4728 RECOMP_BACKEDGE(); 4729 goto L_470604F0; /* 0x470A7DE3: jmp 0x470604f0 */ 4730 { RECOMP_REGS_OUT(); return; } /* end of function */ 4731 RECOMP_REGS_OUT(); 4732 } 4733 4734 void sub_470A7DE8(void) { 4735 int _fpu_cmp = 0; 4736 uint32_t _cf = 0; 4737 int _df = 1; 4738 uint32_t _flag_k = FK_NONE; 4739 uint32_t _flag_a = 0, _flag_b = 0; 4740 uint32_t _itail_tgt = 0; 4741 RECOMP_REGS_LOCALS 4742 RECOMP_ENTER(0x470A7DE8u); 4743 4744 goto L_470A7DE8; 4745 L_470A33EC: 4746 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 4747 L_470A7DE8: 4748 eax = 0x470B59E8u; /* 0x470A7DE8: mov eax, 0x470b59e8 */ 4749 L_470A7DED: 4750 RECOMP_BACKEDGE(); 4751 goto L_470A33EC; /* 0x470A7DED: jmp 0x470a33ec */ 4752 { RECOMP_REGS_OUT(); return; } /* end of function */ 4753 _ljump: 4754 switch (_itail_tgt) { 4755 case 0x470A33ECu: goto L_470A33EC; 4756 case 0x470A7DE8u: goto L_470A7DE8; 4757 case 0x470A7DEDu: goto L_470A7DED; 4758 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4759 } 4760 RECOMP_REGS_OUT(); 4761 } 4762 4763 void sub_470A7E00(void) { 4764 int _fpu_cmp = 0; 4765 uint32_t _cf = 0; 4766 int _df = 1; 4767 uint32_t _flag_k = FK_NONE; 4768 uint32_t _flag_a = 0, _flag_b = 0; 4769 uint32_t _itail_tgt = 0; 4770 RECOMP_REGS_LOCALS 4771 RECOMP_ENTER(0x470A7E00u); 4772 4773 goto L_470A7E00; 4774 L_470604F0: 4775 edx = MEM32(ecx + 0x4); /* 0x470604F0: mov edx, dword ptr [ecx + 4] */ 4776 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 4777 eax = eax | 0xFFFFFFFFu; /* 0x470604F3: or eax, 0xffffffff */ 4778 _cf = 0; 4779 _flag_k = FK_TEST; 4780 /* cmp edx, eax */ /* 0x470604F6: cmp edx, eax */ 4781 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 4782 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4783 _flag_k = FK_CMP; 4784 if (CMP_EQ(_flag_a, _flag_b)) goto L_47060504; /* 0x470604F8: je 0x47060504 */ 4785 L_470604FA: 4786 MEM32(ecx + 0x4) = eax; /* 0x470604FA: mov dword ptr [ecx + 4], eax */ 4787 ecx = MEM32(ecx); /* 0x470604FD: mov ecx, dword ptr [ecx] */ 4788 goto L_47090300; /* 0x470604FF: jmp 0x47090300 */ 4789 L_47060504: 4790 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47060504: ret */ 4791 L_47090300: 4792 PUSH32(esp, ebp); /* 0x47090300: push ebp */ 4793 PUSH32(esp, esi); /* 0x47090301: push esi */ 4794 esi = ecx; /* 0x47090302: mov esi, ecx */ 4795 PUSH32(esp, edi); /* 0x47090304: push edi */ 4796 ebp = esi + 0x14; /* 0x47090305: lea ebp, [esi + 0x14] */ 4797 PUSH32(esp, ebp); /* 0x47090308: push ebp */ 4798 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47090309: call dword ptr [0x470ac180] */ 4799 RECOMP_FLAGS_IN(); 4800 eax = MEM32(esi + 0x3C); /* 0x4709030F: mov eax, dword ptr [esi + 0x3c] */ 4801 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4802 edx = 0; /* 0x47090312: xor edx, edx */ 4803 _cf = 0; 4804 _flag_k = FK_TEST; 4805 /* cmp eax, edx */ /* 0x47090314: cmp eax, edx */ 4806 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4807 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4808 _flag_k = FK_CMP; 4809 if (CMP_LE(_flag_a, _flag_b)) goto L_47090329; /* 0x47090316: jle 0x47090329 */ 4810 L_47090318: 4811 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4812 eax = eax - 1; /* 0x47090318: dec eax */ 4813 _flag_k = FK_DEC; 4814 PUSH32(esp, ebp); /* 0x47090319: push ebp */ 4815 MEM32(esi + 0x3C) = eax; /* 0x4709031A: mov dword ptr [esi + 0x3c], eax */ 4816 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709031D: call dword ptr [0x470ac190] */ 4817 RECOMP_FLAGS_IN(); 4818 edi = POP32_VAL(esp); /* 0x47090323: pop edi */ 4819 esi = POP32_VAL(esp); /* 0x47090324: pop esi */ 4820 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4821 eax = 0; /* 0x47090325: xor eax, eax */ 4822 _cf = 0; 4823 _flag_k = FK_TEST; 4824 ebp = POP32_VAL(esp); /* 0x47090327: pop ebp */ 4825 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090328: ret */ 4826 L_47090329: 4827 eax = MEM32(0x4710E900); /* 0x47090329: mov eax, dword ptr [0x4710e900] */ 4828 edi = esi + 0x4; /* 0x4709032E: lea edi, [esi + 4] */ 4829 MEM32(esi + 0x30) = eax; /* 0x47090331: mov dword ptr [esi + 0x30], eax */ 4830 eax = MEM32(edi); /* 0x47090334: mov eax, dword ptr [edi] */ 4831 /* cmp eax, edx */ /* 0x47090336: cmp eax, edx */ 4832 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4833 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4834 _flag_k = FK_CMP; 4835 MEM32(esi + 0x34) = edx; /* 0x47090338: mov dword ptr [esi + 0x34], edx */ 4836 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x4709033B: jne 0x47090352 */ 4837 L_4709033D: 4838 /* cmp MEM32(esi + 0xC), edx */ /* 0x4709033D: cmp dword ptr [esi + 0xc], edx */ 4839 _flag_a = (uint32_t)(MEM32(esi + 0xC)); _flag_b = (uint32_t)(edx); 4840 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4841 _flag_k = FK_CMP; 4842 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x47090340: jne 0x47090352 */ 4843 L_47090342: 4844 PUSH32(esp, ebp); /* 0x47090342: push ebp */ 4845 MEM32(esi + 0x40) = edx; /* 0x47090343: mov dword ptr [esi + 0x40], edx */ 4846 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47090346: call dword ptr [0x470ac190] */ 4847 RECOMP_FLAGS_IN(); 4848 edi = POP32_VAL(esp); /* 0x4709034C: pop edi */ 4849 esi = POP32_VAL(esp); /* 0x4709034D: pop esi */ 4850 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4851 eax = 0; /* 0x4709034E: xor eax, eax */ 4852 _cf = 0; 4853 _flag_k = FK_TEST; 4854 ebp = POP32_VAL(esp); /* 0x47090350: pop ebp */ 4855 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090351: ret */ 4856 L_47090352: 4857 /* cmp eax, edx */ /* 0x47090352: cmp eax, edx */ 4858 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4859 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4860 _flag_k = FK_CMP; 4861 ecx = 1; /* 0x47090354: mov ecx, 1 */ 4862 if (CMP_EQ(_flag_a, _flag_b)) goto L_47090364; /* 0x47090359: je 0x47090364 */ 4863 L_4709035B: 4864 MEM32(esi + 0x34) = 2; /* 0x4709035B: mov dword ptr [esi + 0x34], 2 */ 4865 goto L_4709036A; /* 0x47090362: jmp 0x4709036a */ 4866 L_47090364: 4867 MEM32(esi + 0x34) = ecx; /* 0x47090364: mov dword ptr [esi + 0x34], ecx */ 4868 edi = esi + 0xC; /* 0x47090367: lea edi, [esi + 0xc] */ 4869 L_4709036A: 4870 eax = MEM32(edi); /* 0x4709036A: mov eax, dword ptr [edi] */ 4871 MEM32(eax + 0x10) = ecx; /* 0x4709036C: mov dword ptr [eax + 0x10], ecx */ 4872 eax = MEM32(edi); /* 0x4709036F: mov eax, dword ptr [edi] */ 4873 PUSH32(esp, edx); /* 0x47090371: push edx */ 4874 PUSH32(esp, ecx); /* 0x47090372: push ecx */ 4875 ecx = MEM32(eax + 0x8); /* 0x47090373: mov ecx, dword ptr [eax + 8] */ 4876 PUSH32(esp, ecx); /* 0x47090376: push ecx */ 4877 RECOMP_ICALL(MEM32(0x470AC168)); /* 0x47090377: call dword ptr [0x470ac168] */ 4878 RECOMP_FLAGS_IN(); 4879 /* test eax, eax */ /* 0x4709037D: test eax, eax */ 4880 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4881 _cf = 0; 4882 _flag_k = FK_TEST; 4883 if (TEST_NZ(_flag_a, _flag_b)) goto L_47090393; /* 0x4709037F: jne 0x47090393 */ 4884 L_47090381: 4885 PUSH32(esp, ebx); /* 0x47090381: push ebx */ 4886 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47090382: call dword ptr [0x470ac3c8] */ 4887 RECOMP_FLAGS_IN(); 4888 ebx = eax; /* 0x47090388: mov ebx, eax */ 4889 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4709038A: call dword ptr [0x470ac150] */ 4890 RECOMP_FLAGS_IN(); 4891 MEM32(ebx) = eax; /* 0x47090390: mov dword ptr [ebx], eax */ 4892 ebx = POP32_VAL(esp); /* 0x47090392: pop ebx */ 4893 L_47090393: 4894 edx = MEM32(edi); /* 0x47090393: mov edx, dword ptr [edi] */ 4895 eax = MEM32(edx + 0x4); /* 0x47090395: mov eax, dword ptr [edx + 4] */ 4896 PUSH32(esp, ebp); /* 0x47090398: push ebp */ 4897 MEM32(esi + 0x30) = eax; /* 0x47090399: mov dword ptr [esi + 0x30], eax */ 4898 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709039C: call dword ptr [0x470ac190] */ 4899 RECOMP_FLAGS_IN(); 4900 edi = POP32_VAL(esp); /* 0x470903A2: pop edi */ 4901 esi = POP32_VAL(esp); /* 0x470903A3: pop esi */ 4902 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4903 eax = 0; /* 0x470903A4: xor eax, eax */ 4904 _cf = 0; 4905 _flag_k = FK_TEST; 4906 ebp = POP32_VAL(esp); /* 0x470903A6: pop ebp */ 4907 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470903A7: ret */ 4908 L_470A7E00: 4909 ecx = ebp + (-0x14); /* 0x470A7E00: lea ecx, [ebp - 0x14] */ 4910 RECOMP_BACKEDGE(); 4911 goto L_470604F0; /* 0x470A7E03: jmp 0x470604f0 */ 4912 { RECOMP_REGS_OUT(); return; } /* end of function */ 4913 RECOMP_REGS_OUT(); 4914 } 4915 4916 void sub_470A7E08(void) { 4917 int _fpu_cmp = 0; 4918 uint32_t _cf = 0; 4919 int _df = 1; 4920 uint32_t _flag_k = FK_NONE; 4921 uint32_t _flag_a = 0, _flag_b = 0; 4922 uint32_t _itail_tgt = 0; 4923 RECOMP_REGS_LOCALS 4924 RECOMP_ENTER(0x470A7E08u); 4925 4926 goto L_470A7E08; 4927 L_470A33EC: 4928 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 4929 L_470A7E08: 4930 eax = 0x470B5A10u; /* 0x470A7E08: mov eax, 0x470b5a10 */ 4931 L_470A7E0D: 4932 RECOMP_BACKEDGE(); 4933 goto L_470A33EC; /* 0x470A7E0D: jmp 0x470a33ec */ 4934 { RECOMP_REGS_OUT(); return; } /* end of function */ 4935 _ljump: 4936 switch (_itail_tgt) { 4937 case 0x470A33ECu: goto L_470A33EC; 4938 case 0x470A7E08u: goto L_470A7E08; 4939 case 0x470A7E0Du: goto L_470A7E0D; 4940 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4941 } 4942 RECOMP_REGS_OUT(); 4943 } 4944 4945 void sub_470A7E20(void) { 4946 int _fpu_cmp = 0; 4947 uint32_t _cf = 0; 4948 int _df = 1; 4949 uint32_t _flag_k = FK_NONE; 4950 uint32_t _flag_a = 0, _flag_b = 0; 4951 uint32_t _itail_tgt = 0; 4952 RECOMP_REGS_LOCALS 4953 RECOMP_ENTER(0x470A7E20u); 4954 4955 goto L_470A7E20; 4956 L_470604F0: 4957 edx = MEM32(ecx + 0x4); /* 0x470604F0: mov edx, dword ptr [ecx + 4] */ 4958 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 4959 eax = eax | 0xFFFFFFFFu; /* 0x470604F3: or eax, 0xffffffff */ 4960 _cf = 0; 4961 _flag_k = FK_TEST; 4962 /* cmp edx, eax */ /* 0x470604F6: cmp edx, eax */ 4963 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 4964 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4965 _flag_k = FK_CMP; 4966 if (CMP_EQ(_flag_a, _flag_b)) goto L_47060504; /* 0x470604F8: je 0x47060504 */ 4967 L_470604FA: 4968 MEM32(ecx + 0x4) = eax; /* 0x470604FA: mov dword ptr [ecx + 4], eax */ 4969 ecx = MEM32(ecx); /* 0x470604FD: mov ecx, dword ptr [ecx] */ 4970 goto L_47090300; /* 0x470604FF: jmp 0x47090300 */ 4971 L_47060504: 4972 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47060504: ret */ 4973 L_47090300: 4974 PUSH32(esp, ebp); /* 0x47090300: push ebp */ 4975 PUSH32(esp, esi); /* 0x47090301: push esi */ 4976 esi = ecx; /* 0x47090302: mov esi, ecx */ 4977 PUSH32(esp, edi); /* 0x47090304: push edi */ 4978 ebp = esi + 0x14; /* 0x47090305: lea ebp, [esi + 0x14] */ 4979 PUSH32(esp, ebp); /* 0x47090308: push ebp */ 4980 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47090309: call dword ptr [0x470ac180] */ 4981 RECOMP_FLAGS_IN(); 4982 eax = MEM32(esi + 0x3C); /* 0x4709030F: mov eax, dword ptr [esi + 0x3c] */ 4983 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4984 edx = 0; /* 0x47090312: xor edx, edx */ 4985 _cf = 0; 4986 _flag_k = FK_TEST; 4987 /* cmp eax, edx */ /* 0x47090314: cmp eax, edx */ 4988 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4989 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4990 _flag_k = FK_CMP; 4991 if (CMP_LE(_flag_a, _flag_b)) goto L_47090329; /* 0x47090316: jle 0x47090329 */ 4992 L_47090318: 4993 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4994 eax = eax - 1; /* 0x47090318: dec eax */ 4995 _flag_k = FK_DEC; 4996 PUSH32(esp, ebp); /* 0x47090319: push ebp */ 4997 MEM32(esi + 0x3C) = eax; /* 0x4709031A: mov dword ptr [esi + 0x3c], eax */ 4998 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709031D: call dword ptr [0x470ac190] */ 4999 RECOMP_FLAGS_IN(); 5000 edi = POP32_VAL(esp); /* 0x47090323: pop edi */ 5001 esi = POP32_VAL(esp); /* 0x47090324: pop esi */ 5002 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5003 eax = 0; /* 0x47090325: xor eax, eax */ 5004 _cf = 0; 5005 _flag_k = FK_TEST; 5006 ebp = POP32_VAL(esp); /* 0x47090327: pop ebp */ 5007 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090328: ret */ 5008 L_47090329: 5009 eax = MEM32(0x4710E900); /* 0x47090329: mov eax, dword ptr [0x4710e900] */ 5010 edi = esi + 0x4; /* 0x4709032E: lea edi, [esi + 4] */ 5011 MEM32(esi + 0x30) = eax; /* 0x47090331: mov dword ptr [esi + 0x30], eax */ 5012 eax = MEM32(edi); /* 0x47090334: mov eax, dword ptr [edi] */ 5013 /* cmp eax, edx */ /* 0x47090336: cmp eax, edx */ 5014 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 5015 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5016 _flag_k = FK_CMP; 5017 MEM32(esi + 0x34) = edx; /* 0x47090338: mov dword ptr [esi + 0x34], edx */ 5018 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x4709033B: jne 0x47090352 */ 5019 L_4709033D: 5020 /* cmp MEM32(esi + 0xC), edx */ /* 0x4709033D: cmp dword ptr [esi + 0xc], edx */ 5021 _flag_a = (uint32_t)(MEM32(esi + 0xC)); _flag_b = (uint32_t)(edx); 5022 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5023 _flag_k = FK_CMP; 5024 if (CMP_NE(_flag_a, _flag_b)) goto L_47090352; /* 0x47090340: jne 0x47090352 */ 5025 L_47090342: 5026 PUSH32(esp, ebp); /* 0x47090342: push ebp */ 5027 MEM32(esi + 0x40) = edx; /* 0x47090343: mov dword ptr [esi + 0x40], edx */ 5028 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47090346: call dword ptr [0x470ac190] */ 5029 RECOMP_FLAGS_IN(); 5030 edi = POP32_VAL(esp); /* 0x4709034C: pop edi */ 5031 esi = POP32_VAL(esp); /* 0x4709034D: pop esi */ 5032 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5033 eax = 0; /* 0x4709034E: xor eax, eax */ 5034 _cf = 0; 5035 _flag_k = FK_TEST; 5036 ebp = POP32_VAL(esp); /* 0x47090350: pop ebp */ 5037 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47090351: ret */ 5038 L_47090352: 5039 /* cmp eax, edx */ /* 0x47090352: cmp eax, edx */ 5040 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 5041 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5042 _flag_k = FK_CMP; 5043 ecx = 1; /* 0x47090354: mov ecx, 1 */ 5044 if (CMP_EQ(_flag_a, _flag_b)) goto L_47090364; /* 0x47090359: je 0x47090364 */ 5045 L_4709035B: 5046 MEM32(esi + 0x34) = 2; /* 0x4709035B: mov dword ptr [esi + 0x34], 2 */ 5047 goto L_4709036A; /* 0x47090362: jmp 0x4709036a */ 5048 L_47090364: 5049 MEM32(esi + 0x34) = ecx; /* 0x47090364: mov dword ptr [esi + 0x34], ecx */ 5050 edi = esi + 0xC; /* 0x47090367: lea edi, [esi + 0xc] */ 5051 L_4709036A: 5052 eax = MEM32(edi); /* 0x4709036A: mov eax, dword ptr [edi] */ 5053 MEM32(eax + 0x10) = ecx; /* 0x4709036C: mov dword ptr [eax + 0x10], ecx */ 5054 eax = MEM32(edi); /* 0x4709036F: mov eax, dword ptr [edi] */ 5055 PUSH32(esp, edx); /* 0x47090371: push edx */ 5056 PUSH32(esp, ecx); /* 0x47090372: push ecx */ 5057 ecx = MEM32(eax + 0x8); /* 0x47090373: mov ecx, dword ptr [eax + 8] */ 5058 PUSH32(esp, ecx); /* 0x47090376: push ecx */ 5059 RECOMP_ICALL(MEM32(0x470AC168)); /* 0x47090377: call dword ptr [0x470ac168] */ 5060 RECOMP_FLAGS_IN(); 5061 /* test eax, eax */ /* 0x4709037D: test eax, eax */ 5062 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5063 _cf = 0; 5064 _flag_k = FK_TEST; 5065 if (TEST_NZ(_flag_a, _flag_b)) goto L_47090393; /* 0x4709037F: jne 0x47090393 */ 5066 L_47090381: 5067 PUSH32(esp, ebx); /* 0x47090381: push ebx */ 5068 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47090382: call dword ptr [0x470ac3c8] */ 5069 RECOMP_FLAGS_IN(); 5070 ebx = eax; /* 0x47090388: mov ebx, eax */ 5071 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4709038A: call dword ptr [0x470ac150] */ 5072 RECOMP_FLAGS_IN(); 5073 MEM32(ebx) = eax; /* 0x47090390: mov dword ptr [ebx], eax */ 5074 ebx = POP32_VAL(esp); /* 0x47090392: pop ebx */ 5075 L_47090393: 5076 edx = MEM32(edi); /* 0x47090393: mov edx, dword ptr [edi] */ 5077 eax = MEM32(edx + 0x4); /* 0x47090395: mov eax, dword ptr [edx + 4] */ 5078 PUSH32(esp, ebp); /* 0x47090398: push ebp */ 5079 MEM32(esi + 0x30) = eax; /* 0x47090399: mov dword ptr [esi + 0x30], eax */ 5080 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4709039C: call dword ptr [0x470ac190] */ 5081 RECOMP_FLAGS_IN(); 5082 edi = POP32_VAL(esp); /* 0x470903A2: pop edi */ 5083 esi = POP32_VAL(esp); /* 0x470903A3: pop esi */ 5084 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5085 eax = 0; /* 0x470903A4: xor eax, eax */ 5086 _cf = 0; 5087 _flag_k = FK_TEST; 5088 ebp = POP32_VAL(esp); /* 0x470903A6: pop ebp */ 5089 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470903A7: ret */ 5090 L_470A7E20: 5091 ecx = ebp + (-0x8); /* 0x470A7E20: lea ecx, [ebp - 8] */ 5092 RECOMP_BACKEDGE(); 5093 goto L_470604F0; /* 0x470A7E23: jmp 0x470604f0 */ 5094 { RECOMP_REGS_OUT(); return; } /* end of function */ 5095 RECOMP_REGS_OUT(); 5096 } 5097 5098 void sub_470A7E28(void) { 5099 int _fpu_cmp = 0; 5100 uint32_t _cf = 0; 5101 int _df = 1; 5102 uint32_t _flag_k = FK_NONE; 5103 uint32_t _flag_a = 0, _flag_b = 0; 5104 uint32_t _itail_tgt = 0; 5105 RECOMP_REGS_LOCALS 5106 RECOMP_ENTER(0x470A7E28u); 5107 5108 goto L_470A7E28; 5109 L_470A33EC: 5110 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 5111 L_470A7E28: 5112 eax = 0x470B5A38u; /* 0x470A7E28: mov eax, 0x470b5a38 */ 5113 L_470A7E2D: 5114 RECOMP_BACKEDGE(); 5115 goto L_470A33EC; /* 0x470A7E2D: jmp 0x470a33ec */ 5116 { RECOMP_REGS_OUT(); return; } /* end of function */ 5117 _ljump: 5118 switch (_itail_tgt) { 5119 case 0x470A33ECu: goto L_470A33EC; 5120 case 0x470A7E28u: goto L_470A7E28; 5121 case 0x470A7E2Du: goto L_470A7E2D; 5122 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5123 } 5124 RECOMP_REGS_OUT(); 5125 } 5126 5127 void sub_470A7E40(void) { 5128 int _fpu_cmp = 0; 5129 uint32_t _cf = 0; 5130 int _df = 1; 5131 uint32_t _flag_k = FK_NONE; 5132 uint32_t _flag_a = 0, _flag_b = 0; 5133 uint32_t _itail_tgt = 0; 5134 RECOMP_REGS_LOCALS 5135 RECOMP_ENTER(0x470A7E40u); 5136 5137 goto L_470A7E40; 5138 L_470041D0: 5139 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470041D0: ret */ 5140 L_470A7E40: 5141 ecx = ebp + (-0x54); /* 0x470A7E40: lea ecx, [ebp - 0x54] */ 5142 RECOMP_BACKEDGE(); 5143 goto L_470041D0; /* 0x470A7E43: jmp 0x470041d0 */ 5144 { RECOMP_REGS_OUT(); return; } /* end of function */ 5145 RECOMP_REGS_OUT(); 5146 } 5147 5148 void sub_470A7E48(void) { 5149 int _fpu_cmp = 0; 5150 uint32_t _cf = 0; 5151 int _df = 1; 5152 uint32_t _flag_k = FK_NONE; 5153 uint32_t _flag_a = 0, _flag_b = 0; 5154 uint32_t _itail_tgt = 0; 5155 RECOMP_REGS_LOCALS 5156 RECOMP_ENTER(0x470A7E48u); 5157 5158 goto L_470A7E48; 5159 L_470041D0: 5160 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470041D0: ret */ 5161 L_470A7E48: 5162 ecx = ebp + (-0x48); /* 0x470A7E48: lea ecx, [ebp - 0x48] */ 5163 RECOMP_BACKEDGE(); 5164 goto L_470041D0; /* 0x470A7E4B: jmp 0x470041d0 */ 5165 { RECOMP_REGS_OUT(); return; } /* end of function */ 5166 RECOMP_REGS_OUT(); 5167 } 5168 5169 void sub_470A7E50(void) { 5170 int _fpu_cmp = 0; 5171 uint32_t _cf = 0; 5172 int _df = 1; 5173 uint32_t _flag_k = FK_NONE; 5174 uint32_t _flag_a = 0, _flag_b = 0; 5175 uint32_t _itail_tgt = 0; 5176 RECOMP_REGS_LOCALS 5177 RECOMP_ENTER(0x470A7E50u); 5178 5179 goto L_470A7E50; 5180 L_470041D0: 5181 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470041D0: ret */ 5182 L_470A7E50: 5183 ecx = ebp + (-0x3C); /* 0x470A7E50: lea ecx, [ebp - 0x3c] */ 5184 RECOMP_BACKEDGE(); 5185 goto L_470041D0; /* 0x470A7E53: jmp 0x470041d0 */ 5186 { RECOMP_REGS_OUT(); return; } /* end of function */ 5187 RECOMP_REGS_OUT(); 5188 } 5189 5190 void sub_470A7E58(void) { 5191 int _fpu_cmp = 0; 5192 uint32_t _cf = 0; 5193 int _df = 1; 5194 uint32_t _flag_k = FK_NONE; 5195 uint32_t _flag_a = 0, _flag_b = 0; 5196 uint32_t _itail_tgt = 0; 5197 RECOMP_REGS_LOCALS 5198 RECOMP_ENTER(0x470A7E58u); 5199 5200 goto L_470A7E58; 5201 L_470041D0: 5202 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470041D0: ret */ 5203 L_470A7E58: 5204 ecx = ebp + (-0x30); /* 0x470A7E58: lea ecx, [ebp - 0x30] */ 5205 RECOMP_BACKEDGE(); 5206 goto L_470041D0; /* 0x470A7E5B: jmp 0x470041d0 */ 5207 { RECOMP_REGS_OUT(); return; } /* end of function */ 5208 RECOMP_REGS_OUT(); 5209 } 5210 5211 void sub_470A7E60(void) { 5212 int _fpu_cmp = 0; 5213 uint32_t _cf = 0; 5214 int _df = 1; 5215 uint32_t _flag_k = FK_NONE; 5216 uint32_t _flag_a = 0, _flag_b = 0; 5217 uint32_t _itail_tgt = 0; 5218 RECOMP_REGS_LOCALS 5219 RECOMP_ENTER(0x470A7E60u); 5220 5221 goto L_470A7E60; 5222 L_470041D0: 5223 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470041D0: ret */ 5224 L_470A7E60: 5225 ecx = ebp + (-0x24); /* 0x470A7E60: lea ecx, [ebp - 0x24] */ 5226 RECOMP_BACKEDGE(); 5227 goto L_470041D0; /* 0x470A7E63: jmp 0x470041d0 */ 5228 { RECOMP_REGS_OUT(); return; } /* end of function */ 5229 RECOMP_REGS_OUT(); 5230 } 5231 5232 void sub_470A7E68(void) { 5233 int _fpu_cmp = 0; 5234 uint32_t _cf = 0; 5235 int _df = 1; 5236 uint32_t _flag_k = FK_NONE; 5237 uint32_t _flag_a = 0, _flag_b = 0; 5238 uint32_t _itail_tgt = 0; 5239 RECOMP_REGS_LOCALS 5240 RECOMP_ENTER(0x470A7E68u); 5241 5242 goto L_470A7E68; 5243 L_470041D0: 5244 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470041D0: ret */ 5245 L_470A7E68: 5246 ecx = ebp + (-0x18); /* 0x470A7E68: lea ecx, [ebp - 0x18] */ 5247 RECOMP_BACKEDGE(); 5248 goto L_470041D0; /* 0x470A7E6B: jmp 0x470041d0 */ 5249 { RECOMP_REGS_OUT(); return; } /* end of function */ 5250 RECOMP_REGS_OUT(); 5251 } 5252 5253 void sub_470A7E70(void) { 5254 int _fpu_cmp = 0; 5255 uint32_t _cf = 0; 5256 int _df = 1; 5257 uint32_t _flag_k = FK_NONE; 5258 uint32_t _flag_a = 0, _flag_b = 0; 5259 uint32_t _itail_tgt = 0; 5260 RECOMP_REGS_LOCALS 5261 RECOMP_ENTER(0x470A7E70u); 5262 5263 goto L_470A7E70; 5264 L_470A33EC: 5265 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 5266 L_470A7E70: 5267 eax = 0x470B5A60u; /* 0x470A7E70: mov eax, 0x470b5a60 */ 5268 L_470A7E75: 5269 RECOMP_BACKEDGE(); 5270 goto L_470A33EC; /* 0x470A7E75: jmp 0x470a33ec */ 5271 { RECOMP_REGS_OUT(); return; } /* end of function */ 5272 _ljump: 5273 switch (_itail_tgt) { 5274 case 0x470A33ECu: goto L_470A33EC; 5275 case 0x470A7E70u: goto L_470A7E70; 5276 case 0x470A7E75u: goto L_470A7E75; 5277 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5278 } 5279 RECOMP_REGS_OUT(); 5280 } 5281 5282 void sub_470A7E80(void) { 5283 int _fpu_cmp = 0; 5284 uint32_t _cf = 0; 5285 int _df = 1; 5286 uint32_t _flag_k = FK_NONE; 5287 uint32_t _flag_a = 0, _flag_b = 0; 5288 uint32_t _itail_tgt = 0; 5289 RECOMP_REGS_LOCALS 5290 RECOMP_ENTER(0x470A7E80u); 5291 5292 goto L_470A7E80; 5293 L_470041D0: 5294 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470041D0: ret */ 5295 L_470A7E80: 5296 ecx = ebp + (-0x18); /* 0x470A7E80: lea ecx, [ebp - 0x18] */ 5297 RECOMP_BACKEDGE(); 5298 goto L_470041D0; /* 0x470A7E83: jmp 0x470041d0 */ 5299 { RECOMP_REGS_OUT(); return; } /* end of function */ 5300 RECOMP_REGS_OUT(); 5301 } 5302 5303 void sub_470A7E88(void) { 5304 int _fpu_cmp = 0; 5305 uint32_t _cf = 0; 5306 int _df = 1; 5307 uint32_t _flag_k = FK_NONE; 5308 uint32_t _flag_a = 0, _flag_b = 0; 5309 uint32_t _itail_tgt = 0; 5310 RECOMP_REGS_LOCALS 5311 RECOMP_ENTER(0x470A7E88u); 5312 5313 goto L_470A7E88; 5314 L_470A33EC: 5315 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 5316 L_470A7E88: 5317 eax = 0x470B5AB0u; /* 0x470A7E88: mov eax, 0x470b5ab0 */ 5318 L_470A7E8D: 5319 RECOMP_BACKEDGE(); 5320 goto L_470A33EC; /* 0x470A7E8D: jmp 0x470a33ec */ 5321 { RECOMP_REGS_OUT(); return; } /* end of function */ 5322 _ljump: 5323 switch (_itail_tgt) { 5324 case 0x470A33ECu: goto L_470A33EC; 5325 case 0x470A7E88u: goto L_470A7E88; 5326 case 0x470A7E8Du: goto L_470A7E8D; 5327 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5328 } 5329 RECOMP_REGS_OUT(); 5330 } 5331 5332 void sub_470A7EA0(void) { 5333 int _fpu_cmp = 0; 5334 uint32_t _cf = 0; 5335 int _df = 1; 5336 uint32_t _flag_k = FK_NONE; 5337 uint32_t _flag_a = 0, _flag_b = 0; 5338 uint32_t _itail_tgt = 0; 5339 RECOMP_REGS_LOCALS 5340 RECOMP_ENTER(0x470A7EA0u); 5341 5342 goto L_470A7EA0; 5343 L_470041D0: 5344 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470041D0: ret */ 5345 L_470A7EA0: 5346 ecx = ebp + (-0x18); /* 0x470A7EA0: lea ecx, [ebp - 0x18] */ 5347 RECOMP_BACKEDGE(); 5348 goto L_470041D0; /* 0x470A7EA3: jmp 0x470041d0 */ 5349 { RECOMP_REGS_OUT(); return; } /* end of function */ 5350 RECOMP_REGS_OUT(); 5351 } 5352 5353 void sub_470A7EA8(void) { 5354 int _fpu_cmp = 0; 5355 uint32_t _cf = 0; 5356 int _df = 1; 5357 uint32_t _flag_k = FK_NONE; 5358 uint32_t _flag_a = 0, _flag_b = 0; 5359 uint32_t _itail_tgt = 0; 5360 RECOMP_REGS_LOCALS 5361 RECOMP_ENTER(0x470A7EA8u); 5362 5363 goto L_470A7EA8; 5364 L_470A33EC: 5365 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 5366 L_470A7EA8: 5367 eax = 0x470B5AD8u; /* 0x470A7EA8: mov eax, 0x470b5ad8 */ 5368 L_470A7EAD: 5369 RECOMP_BACKEDGE(); 5370 goto L_470A33EC; /* 0x470A7EAD: jmp 0x470a33ec */ 5371 { RECOMP_REGS_OUT(); return; } /* end of function */ 5372 _ljump: 5373 switch (_itail_tgt) { 5374 case 0x470A33ECu: goto L_470A33EC; 5375 case 0x470A7EA8u: goto L_470A7EA8; 5376 case 0x470A7EADu: goto L_470A7EAD; 5377 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5378 } 5379 RECOMP_REGS_OUT(); 5380 } 5381 5382 void sub_470A7EC0(void) { 5383 int _fpu_cmp = 0; 5384 uint32_t _cf = 0; 5385 int _df = 1; 5386 uint32_t _flag_k = FK_NONE; 5387 uint32_t _flag_a = 0, _flag_b = 0; 5388 uint32_t _itail_tgt = 0; 5389 RECOMP_REGS_LOCALS 5390 RECOMP_ENTER(0x470A7EC0u); 5391 5392 goto L_470A7EC0; 5393 L_470041D0: 5394 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470041D0: ret */ 5395 L_470A7EC0: 5396 ecx = ebp + (-0x128); /* 0x470A7EC0: lea ecx, [ebp - 0x128] */ 5397 RECOMP_BACKEDGE(); 5398 goto L_470041D0; /* 0x470A7EC6: jmp 0x470041d0 */ 5399 { RECOMP_REGS_OUT(); return; } /* end of function */ 5400 RECOMP_REGS_OUT(); 5401 } 5402 5403 void sub_470A7ECB(void) { 5404 int _fpu_cmp = 0; 5405 uint32_t _cf = 0; 5406 int _df = 1; 5407 uint32_t _flag_k = FK_NONE; 5408 uint32_t _flag_a = 0, _flag_b = 0; 5409 uint32_t _itail_tgt = 0; 5410 RECOMP_REGS_LOCALS 5411 RECOMP_ENTER(0x470A7ECBu); 5412 5413 goto L_470A7ECB; 5414 L_470A33EC: 5415 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 5416 L_470A7ECB: 5417 eax = 0x470B5B00u; /* 0x470A7ECB: mov eax, 0x470b5b00 */ 5418 L_470A7ED0: 5419 RECOMP_BACKEDGE(); 5420 goto L_470A33EC; /* 0x470A7ED0: jmp 0x470a33ec */ 5421 { RECOMP_REGS_OUT(); return; } /* end of function */ 5422 _ljump: 5423 switch (_itail_tgt) { 5424 case 0x470A33ECu: goto L_470A33EC; 5425 case 0x470A7ECBu: goto L_470A7ECB; 5426 case 0x470A7ED0u: goto L_470A7ED0; 5427 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5428 } 5429 RECOMP_REGS_OUT(); 5430 } 5431 5432 void sub_470A7EE0(void) { 5433 int _fpu_cmp = 0; 5434 uint32_t _cf = 0; 5435 int _df = 1; 5436 uint32_t _flag_k = FK_NONE; 5437 uint32_t _flag_a = 0, _flag_b = 0; 5438 uint32_t _itail_tgt = 0; 5439 RECOMP_REGS_LOCALS 5440 RECOMP_ENTER(0x470A7EE0u); 5441 5442 goto L_470A7EE0; 5443 L_470041D0: 5444 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470041D0: ret */ 5445 L_470A7EE0: 5446 ecx = ebp + (-0x18); /* 0x470A7EE0: lea ecx, [ebp - 0x18] */ 5447 RECOMP_BACKEDGE(); 5448 goto L_470041D0; /* 0x470A7EE3: jmp 0x470041d0 */ 5449 { RECOMP_REGS_OUT(); return; } /* end of function */ 5450 RECOMP_REGS_OUT(); 5451 } 5452 5453 void sub_470A7EE8(void) { 5454 int _fpu_cmp = 0; 5455 uint32_t _cf = 0; 5456 int _df = 1; 5457 uint32_t _flag_k = FK_NONE; 5458 uint32_t _flag_a = 0, _flag_b = 0; 5459 uint32_t _itail_tgt = 0; 5460 RECOMP_REGS_LOCALS 5461 RECOMP_ENTER(0x470A7EE8u); 5462 5463 goto L_470A7EE8; 5464 L_470A33EC: 5465 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 5466 L_470A7EE8: 5467 eax = 0x470B5B28u; /* 0x470A7EE8: mov eax, 0x470b5b28 */ 5468 L_470A7EED: 5469 RECOMP_BACKEDGE(); 5470 goto L_470A33EC; /* 0x470A7EED: jmp 0x470a33ec */ 5471 { RECOMP_REGS_OUT(); return; } /* end of function */ 5472 _ljump: 5473 switch (_itail_tgt) { 5474 case 0x470A33ECu: goto L_470A33EC; 5475 case 0x470A7EE8u: goto L_470A7EE8; 5476 case 0x470A7EEDu: goto L_470A7EED; 5477 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5478 } 5479 RECOMP_REGS_OUT(); 5480 } 5481 5482 void sub_470A7F00(void) { 5483 int _fpu_cmp = 0; 5484 uint32_t _cf = 0; 5485 int _df = 1; 5486 uint32_t _flag_k = FK_NONE; 5487 uint32_t _flag_a = 0, _flag_b = 0; 5488 uint32_t _itail_tgt = 0; 5489 RECOMP_REGS_LOCALS 5490 RECOMP_ENTER(0x470A7F00u); 5491 5492 goto L_470A7F00; 5493 L_470041D0: 5494 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470041D0: ret */ 5495 L_470A7F00: 5496 ecx = ebp + (-0x4); /* 0x470A7F00: lea ecx, [ebp - 4] */ 5497 RECOMP_BACKEDGE(); 5498 goto L_470041D0; /* 0x470A7F03: jmp 0x470041d0 */ 5499 { RECOMP_REGS_OUT(); return; } /* end of function */ 5500 RECOMP_REGS_OUT(); 5501 } 5502 5503 void sub_470A7F08(void) { 5504 int _fpu_cmp = 0; 5505 uint32_t _cf = 0; 5506 int _df = 1; 5507 uint32_t _flag_k = FK_NONE; 5508 uint32_t _flag_a = 0, _flag_b = 0; 5509 uint32_t _itail_tgt = 0; 5510 RECOMP_REGS_LOCALS 5511 RECOMP_ENTER(0x470A7F08u); 5512 5513 goto L_470A7F08; 5514 L_470A33EC: 5515 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 5516 L_470A7F08: 5517 eax = 0x470B5B50u; /* 0x470A7F08: mov eax, 0x470b5b50 */ 5518 L_470A7F0D: 5519 RECOMP_BACKEDGE(); 5520 goto L_470A33EC; /* 0x470A7F0D: jmp 0x470a33ec */ 5521 { RECOMP_REGS_OUT(); return; } /* end of function */ 5522 _ljump: 5523 switch (_itail_tgt) { 5524 case 0x470A33ECu: goto L_470A33EC; 5525 case 0x470A7F08u: goto L_470A7F08; 5526 case 0x470A7F0Du: goto L_470A7F0D; 5527 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5528 } 5529 RECOMP_REGS_OUT(); 5530 } 5531 5532 void sub_470A7F20(void) { 5533 int _fpu_cmp = 0; 5534 uint32_t _cf = 0; 5535 int _df = 1; 5536 uint32_t _flag_k = FK_NONE; 5537 uint32_t _flag_a = 0, _flag_b = 0; 5538 uint32_t _itail_tgt = 0; 5539 RECOMP_REGS_LOCALS 5540 RECOMP_ENTER(0x470A7F20u); 5541 5542 goto L_470A7F20; 5543 L_470041D0: 5544 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470041D0: ret */ 5545 L_470A7F20: 5546 ecx = ebp + (-0x4); /* 0x470A7F20: lea ecx, [ebp - 4] */ 5547 RECOMP_BACKEDGE(); 5548 goto L_470041D0; /* 0x470A7F23: jmp 0x470041d0 */ 5549 { RECOMP_REGS_OUT(); return; } /* end of function */ 5550 RECOMP_REGS_OUT(); 5551 } 5552 5553 void sub_470A7F28(void) { 5554 int _fpu_cmp = 0; 5555 uint32_t _cf = 0; 5556 int _df = 1; 5557 uint32_t _flag_k = FK_NONE; 5558 uint32_t _flag_a = 0, _flag_b = 0; 5559 uint32_t _itail_tgt = 0; 5560 RECOMP_REGS_LOCALS 5561 RECOMP_ENTER(0x470A7F28u); 5562 5563 goto L_470A7F28; 5564 L_470A33EC: 5565 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 5566 L_470A7F28: 5567 eax = 0x470B5B78u; /* 0x470A7F28: mov eax, 0x470b5b78 */ 5568 L_470A7F2D: 5569 RECOMP_BACKEDGE(); 5570 goto L_470A33EC; /* 0x470A7F2D: jmp 0x470a33ec */ 5571 { RECOMP_REGS_OUT(); return; } /* end of function */ 5572 _ljump: 5573 switch (_itail_tgt) { 5574 case 0x470A33ECu: goto L_470A33EC; 5575 case 0x470A7F28u: goto L_470A7F28; 5576 case 0x470A7F2Du: goto L_470A7F2D; 5577 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5578 } 5579 RECOMP_REGS_OUT(); 5580 } 5581 5582 void sub_470A7F40(void) { 5583 int _fpu_cmp = 0; 5584 uint32_t _cf = 0; 5585 int _df = 1; 5586 uint32_t _flag_k = FK_NONE; 5587 uint32_t _flag_a = 0, _flag_b = 0; 5588 uint32_t _itail_tgt = 0; 5589 RECOMP_REGS_LOCALS 5590 RECOMP_ENTER(0x470A7F40u); 5591 5592 goto L_470A7F40; 5593 L_47009980: 5594 goto L_4703DCA0; /* 0x47009980: jmp 0x4703dca0 */ 5595 L_4703DCA0: 5596 MEM32(ecx) = 0x470AC538u; /* 0x4703DCA0: mov dword ptr [ecx], 0x470ac538 */ 5597 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703DCA6: ret */ 5598 L_470A7F40: 5599 ecx = MEM32(ebp + (-0x10)); /* 0x470A7F40: mov ecx, dword ptr [ebp - 0x10] */ 5600 RECOMP_BACKEDGE(); 5601 goto L_47009980; /* 0x470A7F43: jmp 0x47009980 */ 5602 { RECOMP_REGS_OUT(); return; } /* end of function */ 5603 RECOMP_REGS_OUT(); 5604 } 5605 5606 void sub_470A7F48(void) { 5607 int _fpu_cmp = 0; 5608 uint32_t _cf = 0; 5609 int _df = 1; 5610 uint32_t _flag_k = FK_NONE; 5611 uint32_t _flag_a = 0, _flag_b = 0; 5612 uint32_t _itail_tgt = 0; 5613 RECOMP_REGS_LOCALS 5614 RECOMP_ENTER(0x470A7F48u); 5615 5616 goto L_470A7F48; 5617 L_4705FFB0: 5618 MEM32(ecx) = 0x470AE21Cu; /* 0x4705FFB0: mov dword ptr [ecx], 0x470ae21c */ 5619 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705FFB6: ret */ 5620 L_470A7F48: 5621 ecx = MEM32(ebp + (-0x24)); /* 0x470A7F48: mov ecx, dword ptr [ebp - 0x24] */ 5622 RECOMP_BACKEDGE(); 5623 goto L_4705FFB0; /* 0x470A7F4B: jmp 0x4705ffb0 */ 5624 { RECOMP_REGS_OUT(); return; } /* end of function */ 5625 RECOMP_REGS_OUT(); 5626 } 5627 5628 void sub_470A7F50(void) { 5629 int _fpu_cmp = 0; 5630 uint32_t _cf = 0; 5631 int _df = 1; 5632 uint32_t _flag_k = FK_NONE; 5633 uint32_t _flag_a = 0, _flag_b = 0; 5634 uint32_t _itail_tgt = 0; 5635 RECOMP_REGS_LOCALS 5636 RECOMP_ENTER(0x470A7F50u); 5637 5638 goto L_470A7F50; 5639 L_470041D0: 5640 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470041D0: ret */ 5641 L_470A7F50: 5642 ecx = MEM32(ebp + (-0x24)); /* 0x470A7F50: mov ecx, dword ptr [ebp - 0x24] */ 5643 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1Cu); 5644 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5645 ecx = ecx + 0x1Cu; /* 0x470A7F53: add ecx, 0x1c */ 5646 _flag_k = FK_ADD; 5647 RECOMP_BACKEDGE(); 5648 goto L_470041D0; /* 0x470A7F56: jmp 0x470041d0 */ 5649 { RECOMP_REGS_OUT(); return; } /* end of function */ 5650 RECOMP_REGS_OUT(); 5651 } 5652 5653 void sub_470A7F5B(void) { 5654 int _fpu_cmp = 0; 5655 uint32_t _cf = 0; 5656 int _df = 1; 5657 uint32_t _flag_k = FK_NONE; 5658 uint32_t _flag_a = 0, _flag_b = 0; 5659 uint32_t _itail_tgt = 0; 5660 RECOMP_REGS_LOCALS 5661 RECOMP_ENTER(0x470A7F5Bu); 5662 5663 goto L_470A7F5B; 5664 L_4705FFC0: 5665 PUSH32(esp, esi); /* 0x4705FFC0: push esi */ 5666 esi = ecx; /* 0x4705FFC1: mov esi, ecx */ 5667 /* cmp MEM32(esi + 0x4), 2 */ /* 0x4705FFC3: cmp dword ptr [esi + 4], 2 */ 5668 _flag_a = (uint32_t)(MEM32(esi + 0x4)); _flag_b = (uint32_t)(2); 5669 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5670 _flag_k = FK_CMP; 5671 MEM32(esi) = 0x470ADEDCu; /* 0x4705FFC7: mov dword ptr [esi], 0x470adedc */ 5672 if (CMP_EQ(_flag_a, _flag_b)) goto L_4705FFEB; /* 0x4705FFCD: je 0x4705ffeb */ 5673 L_4705FFCF: 5674 eax = MEM32(esi + 0x8); /* 0x4705FFCF: mov eax, dword ptr [esi + 8] */ 5675 /* test eax, eax */ /* 0x4705FFD2: test eax, eax */ 5676 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5677 _cf = 0; 5678 _flag_k = FK_TEST; 5679 if (TEST_Z(_flag_a, _flag_b)) goto L_4705FFEB; /* 0x4705FFD4: je 0x4705ffeb */ 5680 L_4705FFD6: 5681 ecx = MEM32(eax); /* 0x4705FFD6: mov ecx, dword ptr [eax] */ 5682 PUSH32(esp, eax); /* 0x4705FFD8: push eax */ 5683 MEM32(esi + 0x8) = ecx; /* 0x4705FFD9: mov dword ptr [esi + 8], ecx */ 5684 RECOMP_ICALL(0x470A32A2u); /* 0x4705FFDC: call 0x470a32a2 */ /* not lifted */ 5685 RECOMP_FLAGS_IN(); 5686 eax = MEM32(esi + 0x8); /* 0x4705FFE1: mov eax, dword ptr [esi + 8] */ 5687 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5688 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5689 esp = esp + 4; /* 0x4705FFE4: add esp, 4 */ 5690 _flag_k = FK_ADD; 5691 /* test eax, eax */ /* 0x4705FFE7: test eax, eax */ 5692 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5693 _cf = 0; 5694 _flag_k = FK_TEST; 5695 RECOMP_BACKEDGE(); 5696 if (TEST_NZ(_flag_a, _flag_b)) goto L_4705FFD6; /* 0x4705FFE9: jne 0x4705ffd6 */ 5697 L_4705FFEB: 5698 MEM32(esi) = 0x470AE21Cu; /* 0x4705FFEB: mov dword ptr [esi], 0x470ae21c */ 5699 esi = POP32_VAL(esp); /* 0x4705FFF1: pop esi */ 5700 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705FFF2: ret */ 5701 L_470A7F5B: 5702 ecx = MEM32(ebp + (-0x10)); /* 0x470A7F5B: mov ecx, dword ptr [ebp - 0x10] */ 5703 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 5704 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5705 ecx = ecx + 8; /* 0x470A7F5E: add ecx, 8 */ 5706 _flag_k = FK_ADD; 5707 RECOMP_BACKEDGE(); 5708 goto L_4705FFC0; /* 0x470A7F61: jmp 0x4705ffc0 */ 5709 { RECOMP_REGS_OUT(); return; } /* end of function */ 5710 RECOMP_REGS_OUT(); 5711 } 5712 5713 void sub_470A7F66(void) { 5714 int _fpu_cmp = 0; 5715 uint32_t _cf = 0; 5716 int _df = 1; 5717 uint32_t _flag_k = FK_NONE; 5718 uint32_t _flag_a = 0, _flag_b = 0; 5719 uint32_t _itail_tgt = 0; 5720 RECOMP_REGS_LOCALS 5721 RECOMP_ENTER(0x470A7F66u); 5722 5723 goto L_470A7F66; 5724 L_470A33EC: 5725 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 5726 L_470A7F66: 5727 eax = 0x470B5BA0u; /* 0x470A7F66: mov eax, 0x470b5ba0 */ 5728 L_470A7F6B: 5729 RECOMP_BACKEDGE(); 5730 goto L_470A33EC; /* 0x470A7F6B: jmp 0x470a33ec */ 5731 { RECOMP_REGS_OUT(); return; } /* end of function */ 5732 _ljump: 5733 switch (_itail_tgt) { 5734 case 0x470A33ECu: goto L_470A33EC; 5735 case 0x470A7F66u: goto L_470A7F66; 5736 case 0x470A7F6Bu: goto L_470A7F6B; 5737 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5738 } 5739 RECOMP_REGS_OUT(); 5740 } 5741 5742 void sub_470A7F70(void) { 5743 int _fpu_cmp = 0; 5744 uint32_t _cf = 0; 5745 int _df = 1; 5746 uint32_t _flag_k = FK_NONE; 5747 uint32_t _flag_a = 0, _flag_b = 0; 5748 uint32_t _itail_tgt = 0; 5749 RECOMP_REGS_LOCALS 5750 RECOMP_ENTER(0x470A7F70u); 5751 5752 goto L_470A7F70; 5753 L_47087E30: 5754 eax = MEM32(ecx + 0x18); /* 0x47087E30: mov eax, dword ptr [ecx + 0x18] */ 5755 /* test eax, eax */ /* 0x47087E33: test eax, eax */ 5756 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5757 _cf = 0; 5758 _flag_k = FK_TEST; 5759 if (TEST_NZ(_flag_a, _flag_b)) goto L_47087E45; /* 0x47087E35: jne 0x47087e45 */ 5760 L_47087E37: 5761 PUSH32(esp, ecx); /* 0x47087E37: push ecx */ 5762 MEM32(ecx + 0x18) = 1; /* 0x47087E38: mov dword ptr [ecx + 0x18], 1 */ 5763 RECOMP_ICALL(MEM32(0x470AC19C)); /* 0x47087E3F: call dword ptr [0x470ac19c] */ 5764 RECOMP_FLAGS_IN(); 5765 L_47087E45: 5766 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47087E45: ret */ 5767 L_470A7F70: 5768 ecx = MEM32(ebp + (-0x10)); /* 0x470A7F70: mov ecx, dword ptr [ebp - 0x10] */ 5769 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 5770 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5771 ecx = ecx + 4; /* 0x470A7F73: add ecx, 4 */ 5772 _flag_k = FK_ADD; 5773 RECOMP_BACKEDGE(); 5774 goto L_47087E30; /* 0x470A7F76: jmp 0x47087e30 */ 5775 { RECOMP_REGS_OUT(); return; } /* end of function */ 5776 RECOMP_REGS_OUT(); 5777 } 5778 5779 void sub_470A7F7B(void) { 5780 int _fpu_cmp = 0; 5781 uint32_t _cf = 0; 5782 int _df = 1; 5783 uint32_t _flag_k = FK_NONE; 5784 uint32_t _flag_a = 0, _flag_b = 0; 5785 uint32_t _itail_tgt = 0; 5786 RECOMP_REGS_LOCALS 5787 RECOMP_ENTER(0x470A7F7Bu); 5788 5789 goto L_470A7F7B; 5790 L_470A33EC: 5791 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 5792 L_470A7F7B: 5793 eax = 0x470B5BE0u; /* 0x470A7F7B: mov eax, 0x470b5be0 */ 5794 L_470A7F80: 5795 RECOMP_BACKEDGE(); 5796 goto L_470A33EC; /* 0x470A7F80: jmp 0x470a33ec */ 5797 { RECOMP_REGS_OUT(); return; } /* end of function */ 5798 _ljump: 5799 switch (_itail_tgt) { 5800 case 0x470A33ECu: goto L_470A33EC; 5801 case 0x470A7F7Bu: goto L_470A7F7B; 5802 case 0x470A7F80u: goto L_470A7F80; 5803 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5804 } 5805 RECOMP_REGS_OUT(); 5806 } 5807 5808 void sub_470A7F90(void) { 5809 int _fpu_cmp = 0; 5810 uint32_t _cf = 0; 5811 int _df = 1; 5812 uint32_t _flag_k = FK_NONE; 5813 uint32_t _flag_a = 0, _flag_b = 0; 5814 uint32_t _itail_tgt = 0; 5815 RECOMP_REGS_LOCALS 5816 RECOMP_ENTER(0x470A7F90u); 5817 5818 goto L_470A7F90; 5819 L_47031440: 5820 edx = MEM32(ecx + 0x4); /* 0x47031440: mov edx, dword ptr [ecx + 4] */ 5821 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 5822 eax = eax | 0xFFFFFFFFu; /* 0x47031443: or eax, 0xffffffff */ 5823 _cf = 0; 5824 _flag_k = FK_TEST; 5825 /* cmp edx, eax */ /* 0x47031446: cmp edx, eax */ 5826 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 5827 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5828 _flag_k = FK_CMP; 5829 if (CMP_EQ(_flag_a, _flag_b)) goto L_47031454; /* 0x47031448: je 0x47031454 */ 5830 L_4703144A: 5831 MEM32(ecx + 0x4) = eax; /* 0x4703144A: mov dword ptr [ecx + 4], eax */ 5832 ecx = MEM32(ecx); /* 0x4703144D: mov ecx, dword ptr [ecx] */ 5833 goto L_470870E0; /* 0x4703144F: jmp 0x470870e0 */ 5834 L_47031454: 5835 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47031454: ret */ 5836 L_470870E0: 5837 PUSH32(esp, ecx); /* 0x470870E0: push ecx */ 5838 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470870E1: call dword ptr [0x470ac190] */ 5839 RECOMP_FLAGS_IN(); 5840 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5841 eax = 0; /* 0x470870E7: xor eax, eax */ 5842 _cf = 0; 5843 _flag_k = FK_TEST; 5844 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470870E9: ret */ 5845 L_470A7F90: 5846 ecx = ebp + (-0x1C); /* 0x470A7F90: lea ecx, [ebp - 0x1c] */ 5847 RECOMP_BACKEDGE(); 5848 goto L_47031440; /* 0x470A7F93: jmp 0x47031440 */ 5849 { RECOMP_REGS_OUT(); return; } /* end of function */ 5850 RECOMP_REGS_OUT(); 5851 } 5852 5853 void sub_470A7F98(void) { 5854 int _fpu_cmp = 0; 5855 uint32_t _cf = 0; 5856 int _df = 1; 5857 uint32_t _flag_k = FK_NONE; 5858 uint32_t _flag_a = 0, _flag_b = 0; 5859 uint32_t _itail_tgt = 0; 5860 RECOMP_REGS_LOCALS 5861 RECOMP_ENTER(0x470A7F98u); 5862 5863 goto L_470A7F98; 5864 L_470A33EC: 5865 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 5866 L_470A7F98: 5867 eax = 0x470B5C08u; /* 0x470A7F98: mov eax, 0x470b5c08 */ 5868 L_470A7F9D: 5869 RECOMP_BACKEDGE(); 5870 goto L_470A33EC; /* 0x470A7F9D: jmp 0x470a33ec */ 5871 { RECOMP_REGS_OUT(); return; } /* end of function */ 5872 _ljump: 5873 switch (_itail_tgt) { 5874 case 0x470A33ECu: goto L_470A33EC; 5875 case 0x470A7F98u: goto L_470A7F98; 5876 case 0x470A7F9Du: goto L_470A7F9D; 5877 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5878 } 5879 RECOMP_REGS_OUT(); 5880 } 5881 5882 void sub_470A7FB0(void) { 5883 int _fpu_cmp = 0; 5884 uint32_t _cf = 0; 5885 int _df = 1; 5886 uint32_t _flag_k = FK_NONE; 5887 uint32_t _flag_a = 0, _flag_b = 0; 5888 uint32_t _itail_tgt = 0; 5889 RECOMP_REGS_LOCALS 5890 RECOMP_ENTER(0x470A7FB0u); 5891 5892 goto L_470A7FB0; 5893 L_47031440: 5894 edx = MEM32(ecx + 0x4); /* 0x47031440: mov edx, dword ptr [ecx + 4] */ 5895 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 5896 eax = eax | 0xFFFFFFFFu; /* 0x47031443: or eax, 0xffffffff */ 5897 _cf = 0; 5898 _flag_k = FK_TEST; 5899 /* cmp edx, eax */ /* 0x47031446: cmp edx, eax */ 5900 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 5901 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5902 _flag_k = FK_CMP; 5903 if (CMP_EQ(_flag_a, _flag_b)) goto L_47031454; /* 0x47031448: je 0x47031454 */ 5904 L_4703144A: 5905 MEM32(ecx + 0x4) = eax; /* 0x4703144A: mov dword ptr [ecx + 4], eax */ 5906 ecx = MEM32(ecx); /* 0x4703144D: mov ecx, dword ptr [ecx] */ 5907 goto L_470870E0; /* 0x4703144F: jmp 0x470870e0 */ 5908 L_47031454: 5909 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47031454: ret */ 5910 L_470870E0: 5911 PUSH32(esp, ecx); /* 0x470870E0: push ecx */ 5912 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470870E1: call dword ptr [0x470ac190] */ 5913 RECOMP_FLAGS_IN(); 5914 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5915 eax = 0; /* 0x470870E7: xor eax, eax */ 5916 _cf = 0; 5917 _flag_k = FK_TEST; 5918 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470870E9: ret */ 5919 L_470A7FB0: 5920 ecx = ebp + (-0x14); /* 0x470A7FB0: lea ecx, [ebp - 0x14] */ 5921 RECOMP_BACKEDGE(); 5922 goto L_47031440; /* 0x470A7FB3: jmp 0x47031440 */ 5923 { RECOMP_REGS_OUT(); return; } /* end of function */ 5924 RECOMP_REGS_OUT(); 5925 } 5926 5927 void sub_470A7FB8(void) { 5928 int _fpu_cmp = 0; 5929 uint32_t _cf = 0; 5930 int _df = 1; 5931 uint32_t _flag_k = FK_NONE; 5932 uint32_t _flag_a = 0, _flag_b = 0; 5933 uint32_t _itail_tgt = 0; 5934 RECOMP_REGS_LOCALS 5935 RECOMP_ENTER(0x470A7FB8u); 5936 5937 goto L_470A7FB8; 5938 L_470A33EC: 5939 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 5940 L_470A7FB8: 5941 eax = 0x470B5C30u; /* 0x470A7FB8: mov eax, 0x470b5c30 */ 5942 L_470A7FBD: 5943 RECOMP_BACKEDGE(); 5944 goto L_470A33EC; /* 0x470A7FBD: jmp 0x470a33ec */ 5945 { RECOMP_REGS_OUT(); return; } /* end of function */ 5946 _ljump: 5947 switch (_itail_tgt) { 5948 case 0x470A33ECu: goto L_470A33EC; 5949 case 0x470A7FB8u: goto L_470A7FB8; 5950 case 0x470A7FBDu: goto L_470A7FBD; 5951 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5952 } 5953 RECOMP_REGS_OUT(); 5954 } 5955 5956 void sub_470A7FD0(void) { 5957 int _fpu_cmp = 0; 5958 uint32_t _cf = 0; 5959 int _df = 1; 5960 uint32_t _flag_k = FK_NONE; 5961 uint32_t _flag_a = 0, _flag_b = 0; 5962 uint32_t _itail_tgt = 0; 5963 RECOMP_REGS_LOCALS 5964 RECOMP_ENTER(0x470A7FD0u); 5965 5966 goto L_470A7FD0; 5967 L_47031440: 5968 edx = MEM32(ecx + 0x4); /* 0x47031440: mov edx, dword ptr [ecx + 4] */ 5969 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 5970 eax = eax | 0xFFFFFFFFu; /* 0x47031443: or eax, 0xffffffff */ 5971 _cf = 0; 5972 _flag_k = FK_TEST; 5973 /* cmp edx, eax */ /* 0x47031446: cmp edx, eax */ 5974 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 5975 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5976 _flag_k = FK_CMP; 5977 if (CMP_EQ(_flag_a, _flag_b)) goto L_47031454; /* 0x47031448: je 0x47031454 */ 5978 L_4703144A: 5979 MEM32(ecx + 0x4) = eax; /* 0x4703144A: mov dword ptr [ecx + 4], eax */ 5980 ecx = MEM32(ecx); /* 0x4703144D: mov ecx, dword ptr [ecx] */ 5981 goto L_470870E0; /* 0x4703144F: jmp 0x470870e0 */ 5982 L_47031454: 5983 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47031454: ret */ 5984 L_470870E0: 5985 PUSH32(esp, ecx); /* 0x470870E0: push ecx */ 5986 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470870E1: call dword ptr [0x470ac190] */ 5987 RECOMP_FLAGS_IN(); 5988 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5989 eax = 0; /* 0x470870E7: xor eax, eax */ 5990 _cf = 0; 5991 _flag_k = FK_TEST; 5992 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470870E9: ret */ 5993 L_470A7FD0: 5994 ecx = ebp + (-0x14); /* 0x470A7FD0: lea ecx, [ebp - 0x14] */ 5995 RECOMP_BACKEDGE(); 5996 goto L_47031440; /* 0x470A7FD3: jmp 0x47031440 */ 5997 { RECOMP_REGS_OUT(); return; } /* end of function */ 5998 RECOMP_REGS_OUT(); 5999 } 6000 6001 void sub_470A7FD8(void) { 6002 int _fpu_cmp = 0; 6003 uint32_t _cf = 0; 6004 int _df = 1; 6005 uint32_t _flag_k = FK_NONE; 6006 uint32_t _flag_a = 0, _flag_b = 0; 6007 uint32_t _itail_tgt = 0; 6008 RECOMP_REGS_LOCALS 6009 RECOMP_ENTER(0x470A7FD8u); 6010 6011 goto L_470A7FD8; 6012 L_470A33EC: 6013 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 6014 L_470A7FD8: 6015 eax = 0x470B5C58u; /* 0x470A7FD8: mov eax, 0x470b5c58 */ 6016 L_470A7FDD: 6017 RECOMP_BACKEDGE(); 6018 goto L_470A33EC; /* 0x470A7FDD: jmp 0x470a33ec */ 6019 { RECOMP_REGS_OUT(); return; } /* end of function */ 6020 _ljump: 6021 switch (_itail_tgt) { 6022 case 0x470A33ECu: goto L_470A33EC; 6023 case 0x470A7FD8u: goto L_470A7FD8; 6024 case 0x470A7FDDu: goto L_470A7FDD; 6025 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 6026 } 6027 RECOMP_REGS_OUT(); 6028 } 6029 6030 void sub_470A7FF0(void) { 6031 int _fpu_cmp = 0; 6032 uint32_t _cf = 0; 6033 int _df = 1; 6034 uint32_t _flag_k = FK_NONE; 6035 uint32_t _flag_a = 0, _flag_b = 0; 6036 uint32_t _itail_tgt = 0; 6037 RECOMP_REGS_LOCALS 6038 RECOMP_ENTER(0x470A7FF0u); 6039 6040 goto L_470A7FF0; 6041 L_47031440: 6042 edx = MEM32(ecx + 0x4); /* 0x47031440: mov edx, dword ptr [ecx + 4] */ 6043 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 6044 eax = eax | 0xFFFFFFFFu; /* 0x47031443: or eax, 0xffffffff */ 6045 _cf = 0; 6046 _flag_k = FK_TEST; 6047 /* cmp edx, eax */ /* 0x47031446: cmp edx, eax */ 6048 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 6049 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6050 _flag_k = FK_CMP; 6051 if (CMP_EQ(_flag_a, _flag_b)) goto L_47031454; /* 0x47031448: je 0x47031454 */ 6052 L_4703144A: 6053 MEM32(ecx + 0x4) = eax; /* 0x4703144A: mov dword ptr [ecx + 4], eax */ 6054 ecx = MEM32(ecx); /* 0x4703144D: mov ecx, dword ptr [ecx] */ 6055 goto L_470870E0; /* 0x4703144F: jmp 0x470870e0 */ 6056 L_47031454: 6057 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47031454: ret */ 6058 L_470870E0: 6059 PUSH32(esp, ecx); /* 0x470870E0: push ecx */ 6060 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470870E1: call dword ptr [0x470ac190] */ 6061 RECOMP_FLAGS_IN(); 6062 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6063 eax = 0; /* 0x470870E7: xor eax, eax */ 6064 _cf = 0; 6065 _flag_k = FK_TEST; 6066 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470870E9: ret */ 6067 L_470A7FF0: 6068 ecx = ebp + (-0x14); /* 0x470A7FF0: lea ecx, [ebp - 0x14] */ 6069 RECOMP_BACKEDGE(); 6070 goto L_47031440; /* 0x470A7FF3: jmp 0x47031440 */ 6071 { RECOMP_REGS_OUT(); return; } /* end of function */ 6072 RECOMP_REGS_OUT(); 6073 } 6074 6075 void sub_470A7FF8(void) { 6076 int _fpu_cmp = 0; 6077 uint32_t _cf = 0; 6078 int _df = 1; 6079 uint32_t _flag_k = FK_NONE; 6080 uint32_t _flag_a = 0, _flag_b = 0; 6081 uint32_t _itail_tgt = 0; 6082 RECOMP_REGS_LOCALS 6083 RECOMP_ENTER(0x470A7FF8u); 6084 6085 goto L_470A7FF8; 6086 L_470A33EC: 6087 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 6088 L_470A7FF8: 6089 eax = 0x470B5C80u; /* 0x470A7FF8: mov eax, 0x470b5c80 */ 6090 L_470A7FFD: 6091 RECOMP_BACKEDGE(); 6092 goto L_470A33EC; /* 0x470A7FFD: jmp 0x470a33ec */ 6093 { RECOMP_REGS_OUT(); return; } /* end of function */ 6094 _ljump: 6095 switch (_itail_tgt) { 6096 case 0x470A33ECu: goto L_470A33EC; 6097 case 0x470A7FF8u: goto L_470A7FF8; 6098 case 0x470A7FFDu: goto L_470A7FFD; 6099 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 6100 } 6101 RECOMP_REGS_OUT(); 6102 } 6103 6104 void sub_470A8010(void) { 6105 int _fpu_cmp = 0; 6106 uint32_t _cf = 0; 6107 int _df = 1; 6108 uint32_t _flag_k = FK_NONE; 6109 uint32_t _flag_a = 0, _flag_b = 0; 6110 uint32_t _itail_tgt = 0; 6111 RECOMP_REGS_LOCALS 6112 RECOMP_ENTER(0x470A8010u); 6113 6114 goto L_470A8010; 6115 L_47031440: 6116 edx = MEM32(ecx + 0x4); /* 0x47031440: mov edx, dword ptr [ecx + 4] */ 6117 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 6118 eax = eax | 0xFFFFFFFFu; /* 0x47031443: or eax, 0xffffffff */ 6119 _cf = 0; 6120 _flag_k = FK_TEST; 6121 /* cmp edx, eax */ /* 0x47031446: cmp edx, eax */ 6122 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 6123 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6124 _flag_k = FK_CMP; 6125 if (CMP_EQ(_flag_a, _flag_b)) goto L_47031454; /* 0x47031448: je 0x47031454 */ 6126 L_4703144A: 6127 MEM32(ecx + 0x4) = eax; /* 0x4703144A: mov dword ptr [ecx + 4], eax */ 6128 ecx = MEM32(ecx); /* 0x4703144D: mov ecx, dword ptr [ecx] */ 6129 goto L_470870E0; /* 0x4703144F: jmp 0x470870e0 */ 6130 L_47031454: 6131 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47031454: ret */ 6132 L_470870E0: 6133 PUSH32(esp, ecx); /* 0x470870E0: push ecx */ 6134 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470870E1: call dword ptr [0x470ac190] */ 6135 RECOMP_FLAGS_IN(); 6136 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6137 eax = 0; /* 0x470870E7: xor eax, eax */ 6138 _cf = 0; 6139 _flag_k = FK_TEST; 6140 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470870E9: ret */ 6141 L_470A8010: 6142 ecx = ebp + (-0x14); /* 0x470A8010: lea ecx, [ebp - 0x14] */ 6143 RECOMP_BACKEDGE(); 6144 goto L_47031440; /* 0x470A8013: jmp 0x47031440 */ 6145 { RECOMP_REGS_OUT(); return; } /* end of function */ 6146 RECOMP_REGS_OUT(); 6147 } 6148 6149 void sub_470A8018(void) { 6150 int _fpu_cmp = 0; 6151 uint32_t _cf = 0; 6152 int _df = 1; 6153 uint32_t _flag_k = FK_NONE; 6154 uint32_t _flag_a = 0, _flag_b = 0; 6155 uint32_t _itail_tgt = 0; 6156 RECOMP_REGS_LOCALS 6157 RECOMP_ENTER(0x470A8018u); 6158 6159 goto L_470A8018; 6160 L_470A33EC: 6161 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 6162 L_470A8018: 6163 eax = 0x470B5CA8u; /* 0x470A8018: mov eax, 0x470b5ca8 */ 6164 L_470A801D: 6165 RECOMP_BACKEDGE(); 6166 goto L_470A33EC; /* 0x470A801D: jmp 0x470a33ec */ 6167 { RECOMP_REGS_OUT(); return; } /* end of function */ 6168 _ljump: 6169 switch (_itail_tgt) { 6170 case 0x470A33ECu: goto L_470A33EC; 6171 case 0x470A8018u: goto L_470A8018; 6172 case 0x470A801Du: goto L_470A801D; 6173 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 6174 } 6175 RECOMP_REGS_OUT(); 6176 } 6177 6178 void sub_470A8030(void) { 6179 int _fpu_cmp = 0; 6180 uint32_t _cf = 0; 6181 int _df = 1; 6182 uint32_t _flag_k = FK_NONE; 6183 uint32_t _flag_a = 0, _flag_b = 0; 6184 uint32_t _itail_tgt = 0; 6185 RECOMP_REGS_LOCALS 6186 RECOMP_ENTER(0x470A8030u); 6187 6188 goto L_470A8030; 6189 L_47031440: 6190 edx = MEM32(ecx + 0x4); /* 0x47031440: mov edx, dword ptr [ecx + 4] */ 6191 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 6192 eax = eax | 0xFFFFFFFFu; /* 0x47031443: or eax, 0xffffffff */ 6193 _cf = 0; 6194 _flag_k = FK_TEST; 6195 /* cmp edx, eax */ /* 0x47031446: cmp edx, eax */ 6196 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 6197 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6198 _flag_k = FK_CMP; 6199 if (CMP_EQ(_flag_a, _flag_b)) goto L_47031454; /* 0x47031448: je 0x47031454 */ 6200 L_4703144A: 6201 MEM32(ecx + 0x4) = eax; /* 0x4703144A: mov dword ptr [ecx + 4], eax */ 6202 ecx = MEM32(ecx); /* 0x4703144D: mov ecx, dword ptr [ecx] */ 6203 goto L_470870E0; /* 0x4703144F: jmp 0x470870e0 */ 6204 L_47031454: 6205 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47031454: ret */ 6206 L_470870E0: 6207 PUSH32(esp, ecx); /* 0x470870E0: push ecx */ 6208 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470870E1: call dword ptr [0x470ac190] */ 6209 RECOMP_FLAGS_IN(); 6210 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6211 eax = 0; /* 0x470870E7: xor eax, eax */ 6212 _cf = 0; 6213 _flag_k = FK_TEST; 6214 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470870E9: ret */ 6215 L_470A8030: 6216 ecx = ebp + (-0x14); /* 0x470A8030: lea ecx, [ebp - 0x14] */ 6217 RECOMP_BACKEDGE(); 6218 goto L_47031440; /* 0x470A8033: jmp 0x47031440 */ 6219 { RECOMP_REGS_OUT(); return; } /* end of function */ 6220 RECOMP_REGS_OUT(); 6221 } 6222 6223 void sub_470A8038(void) { 6224 int _fpu_cmp = 0; 6225 uint32_t _cf = 0; 6226 int _df = 1; 6227 uint32_t _flag_k = FK_NONE; 6228 uint32_t _flag_a = 0, _flag_b = 0; 6229 uint32_t _itail_tgt = 0; 6230 RECOMP_REGS_LOCALS 6231 RECOMP_ENTER(0x470A8038u); 6232 6233 goto L_470A8038; 6234 L_470A33EC: 6235 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 6236 L_470A8038: 6237 eax = 0x470B5CD0u; /* 0x470A8038: mov eax, 0x470b5cd0 */ 6238 L_470A803D: 6239 RECOMP_BACKEDGE(); 6240 goto L_470A33EC; /* 0x470A803D: jmp 0x470a33ec */ 6241 { RECOMP_REGS_OUT(); return; } /* end of function */ 6242 _ljump: 6243 switch (_itail_tgt) { 6244 case 0x470A33ECu: goto L_470A33EC; 6245 case 0x470A8038u: goto L_470A8038; 6246 case 0x470A803Du: goto L_470A803D; 6247 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 6248 } 6249 RECOMP_REGS_OUT(); 6250 } 6251 6252 void sub_470A8050(void) { 6253 int _fpu_cmp = 0; 6254 uint32_t _cf = 0; 6255 int _df = 1; 6256 uint32_t _flag_k = FK_NONE; 6257 uint32_t _flag_a = 0, _flag_b = 0; 6258 uint32_t _itail_tgt = 0; 6259 RECOMP_REGS_LOCALS 6260 RECOMP_ENTER(0x470A8050u); 6261 6262 goto L_470A8050; 6263 L_47031440: 6264 edx = MEM32(ecx + 0x4); /* 0x47031440: mov edx, dword ptr [ecx + 4] */ 6265 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 6266 eax = eax | 0xFFFFFFFFu; /* 0x47031443: or eax, 0xffffffff */ 6267 _cf = 0; 6268 _flag_k = FK_TEST; 6269 /* cmp edx, eax */ /* 0x47031446: cmp edx, eax */ 6270 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 6271 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6272 _flag_k = FK_CMP; 6273 if (CMP_EQ(_flag_a, _flag_b)) goto L_47031454; /* 0x47031448: je 0x47031454 */ 6274 L_4703144A: 6275 MEM32(ecx + 0x4) = eax; /* 0x4703144A: mov dword ptr [ecx + 4], eax */ 6276 ecx = MEM32(ecx); /* 0x4703144D: mov ecx, dword ptr [ecx] */ 6277 goto L_470870E0; /* 0x4703144F: jmp 0x470870e0 */ 6278 L_47031454: 6279 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47031454: ret */ 6280 L_470870E0: 6281 PUSH32(esp, ecx); /* 0x470870E0: push ecx */ 6282 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470870E1: call dword ptr [0x470ac190] */ 6283 RECOMP_FLAGS_IN(); 6284 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6285 eax = 0; /* 0x470870E7: xor eax, eax */ 6286 _cf = 0; 6287 _flag_k = FK_TEST; 6288 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470870E9: ret */ 6289 L_470A8050: 6290 ecx = ebp + (-0x14); /* 0x470A8050: lea ecx, [ebp - 0x14] */ 6291 RECOMP_BACKEDGE(); 6292 goto L_47031440; /* 0x470A8053: jmp 0x47031440 */ 6293 { RECOMP_REGS_OUT(); return; } /* end of function */ 6294 RECOMP_REGS_OUT(); 6295 } 6296 6297 void sub_470A8058(void) { 6298 int _fpu_cmp = 0; 6299 uint32_t _cf = 0; 6300 int _df = 1; 6301 uint32_t _flag_k = FK_NONE; 6302 uint32_t _flag_a = 0, _flag_b = 0; 6303 uint32_t _itail_tgt = 0; 6304 RECOMP_REGS_LOCALS 6305 RECOMP_ENTER(0x470A8058u); 6306 6307 goto L_470A8058; 6308 L_470A33EC: 6309 { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; } 6310 L_470A8058: 6311 eax = 0x470B5CF8u; /* 0x470A8058: mov eax, 0x470b5cf8 */ 6312 L_470A805D: 6313 RECOMP_BACKEDGE(); 6314 goto L_470A33EC; /* 0x470A805D: jmp 0x470a33ec */ 6315 { RECOMP_REGS_OUT(); return; } /* end of function */ 6316 _ljump: 6317 switch (_itail_tgt) { 6318 case 0x470A33ECu: goto L_470A33EC; 6319 case 0x470A8058u: goto L_470A8058; 6320 case 0x470A805Du: goto L_470A805D; 6321 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 6322 } 6323 RECOMP_REGS_OUT(); 6324 } 6325 6326 void sub_470A8070(void) { 6327 int _fpu_cmp = 0; 6328 uint32_t _cf = 0; 6329 int _df = 1; 6330 uint32_t _flag_k = FK_NONE; 6331 uint32_t _flag_a = 0, _flag_b = 0; 6332 uint32_t _itail_tgt = 0; 6333 RECOMP_REGS_LOCALS 6334 RECOMP_ENTER(0x470A8070u); 6335 6336 L_470A8070: 6337 eax = MEM32(ebp + (-0x10)); /* 0x470A8070: mov eax, dword ptr [ebp - 0x10] */ 6338 PUSH32(esp, eax); /* 0x470A8073: push eax */ 6339 RECOMP_ICALL(0x470A32A2u); /* 0x470A8074: call 0x470a32a2 */ /* not lifted */ 6340 RECOMP_FLAGS_IN(); 6341 ecx = POP32_VAL(esp); /* 0x470A8079: pop ecx */ 6342 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A807A: ret */ 6343 RECOMP_REGS_OUT(); 6344 }