client/game/qqr.dll/lifted-0005.c (502302B)
1 #define RECOMP_GENERATED_CODE 2 #include "recomp_types.h" 3 #include <math.h> 4 #include <stdio.h> 5 #include <stdlib.h> 6 #include <string.h> 7 8 void sub_4200DDCC(void) { 9 int _fpu_cmp = 0; 10 uint32_t _cf = 0; 11 int _df = 1; 12 uint32_t _flag_k = FK_NONE; 13 uint32_t _flag_a = 0, _flag_b = 0; 14 uint32_t _itail_tgt = 0; 15 RECOMP_REGS_LOCALS 16 RECOMP_ENTER(0x4200DDCCu); 17 18 goto L_4200DDCC; 19 L_4200DC5D: 20 ecx = MEM32(eax + 0x4); /* 0x4200DC5D: mov ecx, dword ptr [eax + 4] */ 21 SET_LO8(edx, MEM8(ecx + 0x5C)); /* 0x4200DC60: mov dl, byte ptr [ecx + 0x5c] */ 22 /* test LO8(edx), LO8(edx) */ /* 0x4200DC63: test dl, dl */ 23 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 24 _cf = 0; 25 _flag_k = FK_NARROW(FK_TEST, 24); 26 if (TEST_NZ(_flag_a, _flag_b)) goto L_4200DDDD; /* 0x4200DC65: jne 0x4200dddd */ 27 L_4200DC6B: 28 edi = MEM32(ecx + 0x4); /* 0x4200DC6B: mov edi, dword ptr [ecx + 4] */ 29 edx = MEM32(edi); /* 0x4200DC6E: mov edx, dword ptr [edi] */ 30 /* cmp ecx, edx */ /* 0x4200DC70: cmp ecx, edx */ 31 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 32 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33 _flag_k = FK_CMP; 34 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DD39; /* 0x4200DC72: jne 0x4200dd39 */ 35 L_4200DC78: 36 edx = MEM32(edi + 0x8); /* 0x4200DC78: mov edx, dword ptr [edi + 8] */ 37 /* cmp MEM8(edx + 0x5C), 0 */ /* 0x4200DC7B: cmp byte ptr [edx + 0x5c], 0 */ 38 _flag_a = (uint32_t)(MEM8(edx + 0x5C)) << 24; _flag_b = (uint32_t)(0) << 24; 39 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 40 _flag_k = FK_NARROW(FK_CMP, 24); 41 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DC9C; /* 0x4200DC7F: jne 0x4200dc9c */ 42 L_4200DC81: 43 MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x4200DC81: mov byte ptr [ecx + 0x5c], bl */ 44 MEM8(edx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x4200DC84: mov byte ptr [edx + 0x5c], bl */ 45 ecx = MEM32(eax + 0x4); /* 0x4200DC87: mov ecx, dword ptr [eax + 4] */ 46 edx = MEM32(ecx + 0x4); /* 0x4200DC8A: mov edx, dword ptr [ecx + 4] */ 47 MEM8(edx + 0x5C) = (uint8_t)(0); /* 0x4200DC8D: mov byte ptr [edx + 0x5c], 0 */ 48 eax = MEM32(eax + 0x4); /* 0x4200DC91: mov eax, dword ptr [eax + 4] */ 49 eax = MEM32(eax + 0x4); /* 0x4200DC94: mov eax, dword ptr [eax + 4] */ 50 goto L_4200DDD1; /* 0x4200DC97: jmp 0x4200ddd1 */ 51 L_4200DC9C: 52 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x4200DC9C: cmp eax, dword ptr [ecx + 8] */ 53 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 54 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 55 _flag_k = FK_CMP; 56 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DCDB; /* 0x4200DC9F: jne 0x4200dcdb */ 57 L_4200DCA1: 58 eax = ecx; /* 0x4200DCA1: mov eax, ecx */ 59 ecx = MEM32(eax + 0x8); /* 0x4200DCA3: mov ecx, dword ptr [eax + 8] */ 60 edx = MEM32(ecx); /* 0x4200DCA6: mov edx, dword ptr [ecx] */ 61 MEM32(eax + 0x8) = edx; /* 0x4200DCA8: mov dword ptr [eax + 8], edx */ 62 edx = MEM32(ecx); /* 0x4200DCAB: mov edx, dword ptr [ecx] */ 63 /* cmp edx, MEM32(esi + 0x8) */ /* 0x4200DCAD: cmp edx, dword ptr [esi + 8] */ 64 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 65 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 66 _flag_k = FK_CMP; 67 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200DCB5; /* 0x4200DCB0: je 0x4200dcb5 */ 68 L_4200DCB2: 69 MEM32(edx + 0x4) = eax; /* 0x4200DCB2: mov dword ptr [edx + 4], eax */ 70 L_4200DCB5: 71 edx = MEM32(eax + 0x4); /* 0x4200DCB5: mov edx, dword ptr [eax + 4] */ 72 MEM32(ecx + 0x4) = edx; /* 0x4200DCB8: mov dword ptr [ecx + 4], edx */ 73 edx = MEM32(esi + 0x4); /* 0x4200DCBB: mov edx, dword ptr [esi + 4] */ 74 /* cmp eax, MEM32(edx + 0x4) */ /* 0x4200DCBE: cmp eax, dword ptr [edx + 4] */ 75 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 76 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 77 _flag_k = FK_CMP; 78 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DCC8; /* 0x4200DCC1: jne 0x4200dcc8 */ 79 L_4200DCC3: 80 MEM32(edx + 0x4) = ecx; /* 0x4200DCC3: mov dword ptr [edx + 4], ecx */ 81 goto L_4200DCD6; /* 0x4200DCC6: jmp 0x4200dcd6 */ 82 L_4200DCC8: 83 edx = MEM32(eax + 0x4); /* 0x4200DCC8: mov edx, dword ptr [eax + 4] */ 84 /* cmp eax, MEM32(edx) */ /* 0x4200DCCB: cmp eax, dword ptr [edx] */ 85 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 86 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 87 _flag_k = FK_CMP; 88 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DCD3; /* 0x4200DCCD: jne 0x4200dcd3 */ 89 L_4200DCCF: 90 MEM32(edx) = ecx; /* 0x4200DCCF: mov dword ptr [edx], ecx */ 91 goto L_4200DCD6; /* 0x4200DCD1: jmp 0x4200dcd6 */ 92 L_4200DCD3: 93 MEM32(edx + 0x8) = ecx; /* 0x4200DCD3: mov dword ptr [edx + 8], ecx */ 94 L_4200DCD6: 95 MEM32(ecx) = eax; /* 0x4200DCD6: mov dword ptr [ecx], eax */ 96 MEM32(eax + 0x4) = ecx; /* 0x4200DCD8: mov dword ptr [eax + 4], ecx */ 97 L_4200DCDB: 98 ecx = MEM32(eax + 0x4); /* 0x4200DCDB: mov ecx, dword ptr [eax + 4] */ 99 MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x4200DCDE: mov byte ptr [ecx + 0x5c], bl */ 100 edx = MEM32(eax + 0x4); /* 0x4200DCE1: mov edx, dword ptr [eax + 4] */ 101 ecx = MEM32(edx + 0x4); /* 0x4200DCE4: mov ecx, dword ptr [edx + 4] */ 102 MEM8(ecx + 0x5C) = (uint8_t)(0); /* 0x4200DCE7: mov byte ptr [ecx + 0x5c], 0 */ 103 edx = MEM32(eax + 0x4); /* 0x4200DCEB: mov edx, dword ptr [eax + 4] */ 104 ecx = MEM32(edx + 0x4); /* 0x4200DCEE: mov ecx, dword ptr [edx + 4] */ 105 edx = MEM32(ecx); /* 0x4200DCF1: mov edx, dword ptr [ecx] */ 106 edi = MEM32(edx + 0x8); /* 0x4200DCF3: mov edi, dword ptr [edx + 8] */ 107 MEM32(ecx) = edi; /* 0x4200DCF6: mov dword ptr [ecx], edi */ 108 edi = MEM32(edx + 0x8); /* 0x4200DCF8: mov edi, dword ptr [edx + 8] */ 109 /* cmp edi, MEM32(esi + 0x8) */ /* 0x4200DCFB: cmp edi, dword ptr [esi + 8] */ 110 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 111 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 112 _flag_k = FK_CMP; 113 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200DD03; /* 0x4200DCFE: je 0x4200dd03 */ 114 L_4200DD00: 115 MEM32(edi + 0x4) = ecx; /* 0x4200DD00: mov dword ptr [edi + 4], ecx */ 116 L_4200DD03: 117 edi = MEM32(ecx + 0x4); /* 0x4200DD03: mov edi, dword ptr [ecx + 4] */ 118 MEM32(edx + 0x4) = edi; /* 0x4200DD06: mov dword ptr [edx + 4], edi */ 119 edi = MEM32(esi + 0x4); /* 0x4200DD09: mov edi, dword ptr [esi + 4] */ 120 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x4200DD0C: cmp ecx, dword ptr [edi + 4] */ 121 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 122 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 123 _flag_k = FK_CMP; 124 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DD1C; /* 0x4200DD0F: jne 0x4200dd1c */ 125 L_4200DD11: 126 MEM32(edi + 0x4) = edx; /* 0x4200DD11: mov dword ptr [edi + 4], edx */ 127 MEM32(edx + 0x8) = ecx; /* 0x4200DD14: mov dword ptr [edx + 8], ecx */ 128 goto L_4200DDCE; /* 0x4200DD17: jmp 0x4200ddce */ 129 L_4200DD1C: 130 edi = MEM32(ecx + 0x4); /* 0x4200DD1C: mov edi, dword ptr [ecx + 4] */ 131 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x4200DD1F: cmp ecx, dword ptr [edi + 8] */ 132 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 133 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 134 _flag_k = FK_CMP; 135 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DD2F; /* 0x4200DD22: jne 0x4200dd2f */ 136 L_4200DD24: 137 MEM32(edi + 0x8) = edx; /* 0x4200DD24: mov dword ptr [edi + 8], edx */ 138 MEM32(edx + 0x8) = ecx; /* 0x4200DD27: mov dword ptr [edx + 8], ecx */ 139 goto L_4200DDCE; /* 0x4200DD2A: jmp 0x4200ddce */ 140 L_4200DD2F: 141 MEM32(edi) = edx; /* 0x4200DD2F: mov dword ptr [edi], edx */ 142 MEM32(edx + 0x8) = ecx; /* 0x4200DD31: mov dword ptr [edx + 8], ecx */ 143 goto L_4200DDCE; /* 0x4200DD34: jmp 0x4200ddce */ 144 L_4200DD39: 145 /* cmp MEM8(edx + 0x5C), 0 */ /* 0x4200DD39: cmp byte ptr [edx + 0x5c], 0 */ 146 _flag_a = (uint32_t)(MEM8(edx + 0x5C)) << 24; _flag_b = (uint32_t)(0) << 24; 147 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 148 _flag_k = FK_NARROW(FK_CMP, 24); 149 RECOMP_BACKEDGE(); 150 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200DC81; /* 0x4200DD3D: je 0x4200dc81 */ 151 L_4200DD43: 152 /* cmp eax, MEM32(ecx) */ /* 0x4200DD43: cmp eax, dword ptr [ecx] */ 153 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 154 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 155 _flag_k = FK_CMP; 156 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DD83; /* 0x4200DD45: jne 0x4200dd83 */ 157 L_4200DD47: 158 eax = ecx; /* 0x4200DD47: mov eax, ecx */ 159 ecx = MEM32(eax); /* 0x4200DD49: mov ecx, dword ptr [eax] */ 160 edx = MEM32(ecx + 0x8); /* 0x4200DD4B: mov edx, dword ptr [ecx + 8] */ 161 MEM32(eax) = edx; /* 0x4200DD4E: mov dword ptr [eax], edx */ 162 edx = MEM32(ecx + 0x8); /* 0x4200DD50: mov edx, dword ptr [ecx + 8] */ 163 /* cmp edx, MEM32(esi + 0x8) */ /* 0x4200DD53: cmp edx, dword ptr [esi + 8] */ 164 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 165 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 166 _flag_k = FK_CMP; 167 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200DD5B; /* 0x4200DD56: je 0x4200dd5b */ 168 L_4200DD58: 169 MEM32(edx + 0x4) = eax; /* 0x4200DD58: mov dword ptr [edx + 4], eax */ 170 L_4200DD5B: 171 edx = MEM32(eax + 0x4); /* 0x4200DD5B: mov edx, dword ptr [eax + 4] */ 172 MEM32(ecx + 0x4) = edx; /* 0x4200DD5E: mov dword ptr [ecx + 4], edx */ 173 edx = MEM32(esi + 0x4); /* 0x4200DD61: mov edx, dword ptr [esi + 4] */ 174 /* cmp eax, MEM32(edx + 0x4) */ /* 0x4200DD64: cmp eax, dword ptr [edx + 4] */ 175 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 176 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 177 _flag_k = FK_CMP; 178 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DD6E; /* 0x4200DD67: jne 0x4200dd6e */ 179 L_4200DD69: 180 MEM32(edx + 0x4) = ecx; /* 0x4200DD69: mov dword ptr [edx + 4], ecx */ 181 goto L_4200DD7D; /* 0x4200DD6C: jmp 0x4200dd7d */ 182 L_4200DD6E: 183 edx = MEM32(eax + 0x4); /* 0x4200DD6E: mov edx, dword ptr [eax + 4] */ 184 /* cmp eax, MEM32(edx + 0x8) */ /* 0x4200DD71: cmp eax, dword ptr [edx + 8] */ 185 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 186 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 187 _flag_k = FK_CMP; 188 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DD7B; /* 0x4200DD74: jne 0x4200dd7b */ 189 L_4200DD76: 190 MEM32(edx + 0x8) = ecx; /* 0x4200DD76: mov dword ptr [edx + 8], ecx */ 191 goto L_4200DD7D; /* 0x4200DD79: jmp 0x4200dd7d */ 192 L_4200DD7B: 193 MEM32(edx) = ecx; /* 0x4200DD7B: mov dword ptr [edx], ecx */ 194 L_4200DD7D: 195 MEM32(ecx + 0x8) = eax; /* 0x4200DD7D: mov dword ptr [ecx + 8], eax */ 196 MEM32(eax + 0x4) = ecx; /* 0x4200DD80: mov dword ptr [eax + 4], ecx */ 197 L_4200DD83: 198 ecx = MEM32(eax + 0x4); /* 0x4200DD83: mov ecx, dword ptr [eax + 4] */ 199 MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x4200DD86: mov byte ptr [ecx + 0x5c], bl */ 200 edx = MEM32(eax + 0x4); /* 0x4200DD89: mov edx, dword ptr [eax + 4] */ 201 ecx = MEM32(edx + 0x4); /* 0x4200DD8C: mov ecx, dword ptr [edx + 4] */ 202 MEM8(ecx + 0x5C) = (uint8_t)(0); /* 0x4200DD8F: mov byte ptr [ecx + 0x5c], 0 */ 203 edx = MEM32(eax + 0x4); /* 0x4200DD93: mov edx, dword ptr [eax + 4] */ 204 ecx = MEM32(edx + 0x4); /* 0x4200DD96: mov ecx, dword ptr [edx + 4] */ 205 edx = MEM32(ecx + 0x8); /* 0x4200DD99: mov edx, dword ptr [ecx + 8] */ 206 edi = MEM32(edx); /* 0x4200DD9C: mov edi, dword ptr [edx] */ 207 MEM32(ecx + 0x8) = edi; /* 0x4200DD9E: mov dword ptr [ecx + 8], edi */ 208 edi = MEM32(edx); /* 0x4200DDA1: mov edi, dword ptr [edx] */ 209 /* cmp edi, MEM32(esi + 0x8) */ /* 0x4200DDA3: cmp edi, dword ptr [esi + 8] */ 210 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 211 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 212 _flag_k = FK_CMP; 213 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200DDAB; /* 0x4200DDA6: je 0x4200ddab */ 214 L_4200DDA8: 215 MEM32(edi + 0x4) = ecx; /* 0x4200DDA8: mov dword ptr [edi + 4], ecx */ 216 L_4200DDAB: 217 edi = MEM32(ecx + 0x4); /* 0x4200DDAB: mov edi, dword ptr [ecx + 4] */ 218 MEM32(edx + 0x4) = edi; /* 0x4200DDAE: mov dword ptr [edx + 4], edi */ 219 edi = MEM32(esi + 0x4); /* 0x4200DDB1: mov edi, dword ptr [esi + 4] */ 220 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x4200DDB4: cmp ecx, dword ptr [edi + 4] */ 221 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 222 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 223 _flag_k = FK_CMP; 224 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DDBE; /* 0x4200DDB7: jne 0x4200ddbe */ 225 L_4200DDB9: 226 MEM32(edi + 0x4) = edx; /* 0x4200DDB9: mov dword ptr [edi + 4], edx */ 227 goto L_4200DDCC; /* 0x4200DDBC: jmp 0x4200ddcc */ 228 L_4200DDBE: 229 edi = MEM32(ecx + 0x4); /* 0x4200DDBE: mov edi, dword ptr [ecx + 4] */ 230 /* cmp ecx, MEM32(edi) */ /* 0x4200DDC1: cmp ecx, dword ptr [edi] */ 231 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 232 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 233 _flag_k = FK_CMP; 234 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DDC9; /* 0x4200DDC3: jne 0x4200ddc9 */ 235 L_4200DDC5: 236 MEM32(edi) = edx; /* 0x4200DDC5: mov dword ptr [edi], edx */ 237 goto L_4200DDCC; /* 0x4200DDC7: jmp 0x4200ddcc */ 238 L_4200DDC9: 239 MEM32(edi + 0x8) = edx; /* 0x4200DDC9: mov dword ptr [edi + 8], edx */ 240 L_4200DDCC: 241 MEM32(edx) = ecx; /* 0x4200DDCC: mov dword ptr [edx], ecx */ 242 L_4200DDCE: 243 MEM32(ecx + 0x4) = edx; /* 0x4200DDCE: mov dword ptr [ecx + 4], edx */ 244 L_4200DDD1: 245 ecx = MEM32(esi + 0x4); /* 0x4200DDD1: mov ecx, dword ptr [esi + 4] */ 246 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x4200DDD4: cmp eax, dword ptr [ecx + 4] */ 247 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 248 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 249 _flag_k = FK_CMP; 250 RECOMP_BACKEDGE(); 251 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DC5D; /* 0x4200DDD7: jne 0x4200dc5d */ 252 L_4200DDDD: 253 edx = MEM32(esi + 0x4); /* 0x4200DDDD: mov edx, dword ptr [esi + 4] */ 254 eax = MEM32(edx + 0x4); /* 0x4200DDE0: mov eax, dword ptr [edx + 4] */ 255 ecx = MEM32(ebp + (-0x4)); /* 0x4200DDE3: mov ecx, dword ptr [ebp - 4] */ 256 MEM8(eax + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x4200DDE6: mov byte ptr [eax + 0x5c], bl */ 257 eax = MEM32(ebp + 0x8); /* 0x4200DDE9: mov eax, dword ptr [ebp + 8] */ 258 edi = POP32_VAL(esp); /* 0x4200DDEC: pop edi */ 259 esi = POP32_VAL(esp); /* 0x4200DDED: pop esi */ 260 MEM32(eax) = ecx; /* 0x4200DDEE: mov dword ptr [eax], ecx */ 261 ebx = POP32_VAL(esp); /* 0x4200DDF0: pop ebx */ 262 esp = ebp; /* 0x4200DDF1: mov esp, ebp */ 263 ebp = POP32_VAL(esp); /* 0x4200DDF3: pop ebp */ 264 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4200DDF4: ret 0x10 */ 265 RECOMP_REGS_OUT(); 266 } 267 268 void sub_4200DDCE(void) { 269 int _fpu_cmp = 0; 270 uint32_t _cf = 0; 271 int _df = 1; 272 uint32_t _flag_k = FK_NONE; 273 uint32_t _flag_a = 0, _flag_b = 0; 274 uint32_t _itail_tgt = 0; 275 RECOMP_REGS_LOCALS 276 RECOMP_ENTER(0x4200DDCEu); 277 278 goto L_4200DDCE; 279 L_4200DC5D: 280 ecx = MEM32(eax + 0x4); /* 0x4200DC5D: mov ecx, dword ptr [eax + 4] */ 281 SET_LO8(edx, MEM8(ecx + 0x5C)); /* 0x4200DC60: mov dl, byte ptr [ecx + 0x5c] */ 282 /* test LO8(edx), LO8(edx) */ /* 0x4200DC63: test dl, dl */ 283 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 284 _cf = 0; 285 _flag_k = FK_NARROW(FK_TEST, 24); 286 if (TEST_NZ(_flag_a, _flag_b)) goto L_4200DDDD; /* 0x4200DC65: jne 0x4200dddd */ 287 L_4200DC6B: 288 edi = MEM32(ecx + 0x4); /* 0x4200DC6B: mov edi, dword ptr [ecx + 4] */ 289 edx = MEM32(edi); /* 0x4200DC6E: mov edx, dword ptr [edi] */ 290 /* cmp ecx, edx */ /* 0x4200DC70: cmp ecx, edx */ 291 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 292 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 293 _flag_k = FK_CMP; 294 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DD39; /* 0x4200DC72: jne 0x4200dd39 */ 295 L_4200DC78: 296 edx = MEM32(edi + 0x8); /* 0x4200DC78: mov edx, dword ptr [edi + 8] */ 297 /* cmp MEM8(edx + 0x5C), 0 */ /* 0x4200DC7B: cmp byte ptr [edx + 0x5c], 0 */ 298 _flag_a = (uint32_t)(MEM8(edx + 0x5C)) << 24; _flag_b = (uint32_t)(0) << 24; 299 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 300 _flag_k = FK_NARROW(FK_CMP, 24); 301 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DC9C; /* 0x4200DC7F: jne 0x4200dc9c */ 302 L_4200DC81: 303 MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x4200DC81: mov byte ptr [ecx + 0x5c], bl */ 304 MEM8(edx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x4200DC84: mov byte ptr [edx + 0x5c], bl */ 305 ecx = MEM32(eax + 0x4); /* 0x4200DC87: mov ecx, dword ptr [eax + 4] */ 306 edx = MEM32(ecx + 0x4); /* 0x4200DC8A: mov edx, dword ptr [ecx + 4] */ 307 MEM8(edx + 0x5C) = (uint8_t)(0); /* 0x4200DC8D: mov byte ptr [edx + 0x5c], 0 */ 308 eax = MEM32(eax + 0x4); /* 0x4200DC91: mov eax, dword ptr [eax + 4] */ 309 eax = MEM32(eax + 0x4); /* 0x4200DC94: mov eax, dword ptr [eax + 4] */ 310 goto L_4200DDD1; /* 0x4200DC97: jmp 0x4200ddd1 */ 311 L_4200DC9C: 312 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x4200DC9C: cmp eax, dword ptr [ecx + 8] */ 313 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 314 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 315 _flag_k = FK_CMP; 316 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DCDB; /* 0x4200DC9F: jne 0x4200dcdb */ 317 L_4200DCA1: 318 eax = ecx; /* 0x4200DCA1: mov eax, ecx */ 319 ecx = MEM32(eax + 0x8); /* 0x4200DCA3: mov ecx, dword ptr [eax + 8] */ 320 edx = MEM32(ecx); /* 0x4200DCA6: mov edx, dword ptr [ecx] */ 321 MEM32(eax + 0x8) = edx; /* 0x4200DCA8: mov dword ptr [eax + 8], edx */ 322 edx = MEM32(ecx); /* 0x4200DCAB: mov edx, dword ptr [ecx] */ 323 /* cmp edx, MEM32(esi + 0x8) */ /* 0x4200DCAD: cmp edx, dword ptr [esi + 8] */ 324 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 325 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 326 _flag_k = FK_CMP; 327 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200DCB5; /* 0x4200DCB0: je 0x4200dcb5 */ 328 L_4200DCB2: 329 MEM32(edx + 0x4) = eax; /* 0x4200DCB2: mov dword ptr [edx + 4], eax */ 330 L_4200DCB5: 331 edx = MEM32(eax + 0x4); /* 0x4200DCB5: mov edx, dword ptr [eax + 4] */ 332 MEM32(ecx + 0x4) = edx; /* 0x4200DCB8: mov dword ptr [ecx + 4], edx */ 333 edx = MEM32(esi + 0x4); /* 0x4200DCBB: mov edx, dword ptr [esi + 4] */ 334 /* cmp eax, MEM32(edx + 0x4) */ /* 0x4200DCBE: cmp eax, dword ptr [edx + 4] */ 335 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 336 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 337 _flag_k = FK_CMP; 338 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DCC8; /* 0x4200DCC1: jne 0x4200dcc8 */ 339 L_4200DCC3: 340 MEM32(edx + 0x4) = ecx; /* 0x4200DCC3: mov dword ptr [edx + 4], ecx */ 341 goto L_4200DCD6; /* 0x4200DCC6: jmp 0x4200dcd6 */ 342 L_4200DCC8: 343 edx = MEM32(eax + 0x4); /* 0x4200DCC8: mov edx, dword ptr [eax + 4] */ 344 /* cmp eax, MEM32(edx) */ /* 0x4200DCCB: cmp eax, dword ptr [edx] */ 345 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 346 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 347 _flag_k = FK_CMP; 348 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DCD3; /* 0x4200DCCD: jne 0x4200dcd3 */ 349 L_4200DCCF: 350 MEM32(edx) = ecx; /* 0x4200DCCF: mov dword ptr [edx], ecx */ 351 goto L_4200DCD6; /* 0x4200DCD1: jmp 0x4200dcd6 */ 352 L_4200DCD3: 353 MEM32(edx + 0x8) = ecx; /* 0x4200DCD3: mov dword ptr [edx + 8], ecx */ 354 L_4200DCD6: 355 MEM32(ecx) = eax; /* 0x4200DCD6: mov dword ptr [ecx], eax */ 356 MEM32(eax + 0x4) = ecx; /* 0x4200DCD8: mov dword ptr [eax + 4], ecx */ 357 L_4200DCDB: 358 ecx = MEM32(eax + 0x4); /* 0x4200DCDB: mov ecx, dword ptr [eax + 4] */ 359 MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x4200DCDE: mov byte ptr [ecx + 0x5c], bl */ 360 edx = MEM32(eax + 0x4); /* 0x4200DCE1: mov edx, dword ptr [eax + 4] */ 361 ecx = MEM32(edx + 0x4); /* 0x4200DCE4: mov ecx, dword ptr [edx + 4] */ 362 MEM8(ecx + 0x5C) = (uint8_t)(0); /* 0x4200DCE7: mov byte ptr [ecx + 0x5c], 0 */ 363 edx = MEM32(eax + 0x4); /* 0x4200DCEB: mov edx, dword ptr [eax + 4] */ 364 ecx = MEM32(edx + 0x4); /* 0x4200DCEE: mov ecx, dword ptr [edx + 4] */ 365 edx = MEM32(ecx); /* 0x4200DCF1: mov edx, dword ptr [ecx] */ 366 edi = MEM32(edx + 0x8); /* 0x4200DCF3: mov edi, dword ptr [edx + 8] */ 367 MEM32(ecx) = edi; /* 0x4200DCF6: mov dword ptr [ecx], edi */ 368 edi = MEM32(edx + 0x8); /* 0x4200DCF8: mov edi, dword ptr [edx + 8] */ 369 /* cmp edi, MEM32(esi + 0x8) */ /* 0x4200DCFB: cmp edi, dword ptr [esi + 8] */ 370 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 371 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 372 _flag_k = FK_CMP; 373 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200DD03; /* 0x4200DCFE: je 0x4200dd03 */ 374 L_4200DD00: 375 MEM32(edi + 0x4) = ecx; /* 0x4200DD00: mov dword ptr [edi + 4], ecx */ 376 L_4200DD03: 377 edi = MEM32(ecx + 0x4); /* 0x4200DD03: mov edi, dword ptr [ecx + 4] */ 378 MEM32(edx + 0x4) = edi; /* 0x4200DD06: mov dword ptr [edx + 4], edi */ 379 edi = MEM32(esi + 0x4); /* 0x4200DD09: mov edi, dword ptr [esi + 4] */ 380 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x4200DD0C: cmp ecx, dword ptr [edi + 4] */ 381 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 382 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 383 _flag_k = FK_CMP; 384 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DD1C; /* 0x4200DD0F: jne 0x4200dd1c */ 385 L_4200DD11: 386 MEM32(edi + 0x4) = edx; /* 0x4200DD11: mov dword ptr [edi + 4], edx */ 387 MEM32(edx + 0x8) = ecx; /* 0x4200DD14: mov dword ptr [edx + 8], ecx */ 388 goto L_4200DDCE; /* 0x4200DD17: jmp 0x4200ddce */ 389 L_4200DD1C: 390 edi = MEM32(ecx + 0x4); /* 0x4200DD1C: mov edi, dword ptr [ecx + 4] */ 391 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x4200DD1F: cmp ecx, dword ptr [edi + 8] */ 392 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 393 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 394 _flag_k = FK_CMP; 395 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DD2F; /* 0x4200DD22: jne 0x4200dd2f */ 396 L_4200DD24: 397 MEM32(edi + 0x8) = edx; /* 0x4200DD24: mov dword ptr [edi + 8], edx */ 398 MEM32(edx + 0x8) = ecx; /* 0x4200DD27: mov dword ptr [edx + 8], ecx */ 399 goto L_4200DDCE; /* 0x4200DD2A: jmp 0x4200ddce */ 400 L_4200DD2F: 401 MEM32(edi) = edx; /* 0x4200DD2F: mov dword ptr [edi], edx */ 402 MEM32(edx + 0x8) = ecx; /* 0x4200DD31: mov dword ptr [edx + 8], ecx */ 403 goto L_4200DDCE; /* 0x4200DD34: jmp 0x4200ddce */ 404 L_4200DD39: 405 /* cmp MEM8(edx + 0x5C), 0 */ /* 0x4200DD39: cmp byte ptr [edx + 0x5c], 0 */ 406 _flag_a = (uint32_t)(MEM8(edx + 0x5C)) << 24; _flag_b = (uint32_t)(0) << 24; 407 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 408 _flag_k = FK_NARROW(FK_CMP, 24); 409 RECOMP_BACKEDGE(); 410 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200DC81; /* 0x4200DD3D: je 0x4200dc81 */ 411 L_4200DD43: 412 /* cmp eax, MEM32(ecx) */ /* 0x4200DD43: cmp eax, dword ptr [ecx] */ 413 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 414 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 415 _flag_k = FK_CMP; 416 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DD83; /* 0x4200DD45: jne 0x4200dd83 */ 417 L_4200DD47: 418 eax = ecx; /* 0x4200DD47: mov eax, ecx */ 419 ecx = MEM32(eax); /* 0x4200DD49: mov ecx, dword ptr [eax] */ 420 edx = MEM32(ecx + 0x8); /* 0x4200DD4B: mov edx, dword ptr [ecx + 8] */ 421 MEM32(eax) = edx; /* 0x4200DD4E: mov dword ptr [eax], edx */ 422 edx = MEM32(ecx + 0x8); /* 0x4200DD50: mov edx, dword ptr [ecx + 8] */ 423 /* cmp edx, MEM32(esi + 0x8) */ /* 0x4200DD53: cmp edx, dword ptr [esi + 8] */ 424 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 425 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 426 _flag_k = FK_CMP; 427 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200DD5B; /* 0x4200DD56: je 0x4200dd5b */ 428 L_4200DD58: 429 MEM32(edx + 0x4) = eax; /* 0x4200DD58: mov dword ptr [edx + 4], eax */ 430 L_4200DD5B: 431 edx = MEM32(eax + 0x4); /* 0x4200DD5B: mov edx, dword ptr [eax + 4] */ 432 MEM32(ecx + 0x4) = edx; /* 0x4200DD5E: mov dword ptr [ecx + 4], edx */ 433 edx = MEM32(esi + 0x4); /* 0x4200DD61: mov edx, dword ptr [esi + 4] */ 434 /* cmp eax, MEM32(edx + 0x4) */ /* 0x4200DD64: cmp eax, dword ptr [edx + 4] */ 435 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 436 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 437 _flag_k = FK_CMP; 438 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DD6E; /* 0x4200DD67: jne 0x4200dd6e */ 439 L_4200DD69: 440 MEM32(edx + 0x4) = ecx; /* 0x4200DD69: mov dword ptr [edx + 4], ecx */ 441 goto L_4200DD7D; /* 0x4200DD6C: jmp 0x4200dd7d */ 442 L_4200DD6E: 443 edx = MEM32(eax + 0x4); /* 0x4200DD6E: mov edx, dword ptr [eax + 4] */ 444 /* cmp eax, MEM32(edx + 0x8) */ /* 0x4200DD71: cmp eax, dword ptr [edx + 8] */ 445 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 446 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 447 _flag_k = FK_CMP; 448 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DD7B; /* 0x4200DD74: jne 0x4200dd7b */ 449 L_4200DD76: 450 MEM32(edx + 0x8) = ecx; /* 0x4200DD76: mov dword ptr [edx + 8], ecx */ 451 goto L_4200DD7D; /* 0x4200DD79: jmp 0x4200dd7d */ 452 L_4200DD7B: 453 MEM32(edx) = ecx; /* 0x4200DD7B: mov dword ptr [edx], ecx */ 454 L_4200DD7D: 455 MEM32(ecx + 0x8) = eax; /* 0x4200DD7D: mov dword ptr [ecx + 8], eax */ 456 MEM32(eax + 0x4) = ecx; /* 0x4200DD80: mov dword ptr [eax + 4], ecx */ 457 L_4200DD83: 458 ecx = MEM32(eax + 0x4); /* 0x4200DD83: mov ecx, dword ptr [eax + 4] */ 459 MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x4200DD86: mov byte ptr [ecx + 0x5c], bl */ 460 edx = MEM32(eax + 0x4); /* 0x4200DD89: mov edx, dword ptr [eax + 4] */ 461 ecx = MEM32(edx + 0x4); /* 0x4200DD8C: mov ecx, dword ptr [edx + 4] */ 462 MEM8(ecx + 0x5C) = (uint8_t)(0); /* 0x4200DD8F: mov byte ptr [ecx + 0x5c], 0 */ 463 edx = MEM32(eax + 0x4); /* 0x4200DD93: mov edx, dword ptr [eax + 4] */ 464 ecx = MEM32(edx + 0x4); /* 0x4200DD96: mov ecx, dword ptr [edx + 4] */ 465 edx = MEM32(ecx + 0x8); /* 0x4200DD99: mov edx, dword ptr [ecx + 8] */ 466 edi = MEM32(edx); /* 0x4200DD9C: mov edi, dword ptr [edx] */ 467 MEM32(ecx + 0x8) = edi; /* 0x4200DD9E: mov dword ptr [ecx + 8], edi */ 468 edi = MEM32(edx); /* 0x4200DDA1: mov edi, dword ptr [edx] */ 469 /* cmp edi, MEM32(esi + 0x8) */ /* 0x4200DDA3: cmp edi, dword ptr [esi + 8] */ 470 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 471 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 472 _flag_k = FK_CMP; 473 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200DDAB; /* 0x4200DDA6: je 0x4200ddab */ 474 L_4200DDA8: 475 MEM32(edi + 0x4) = ecx; /* 0x4200DDA8: mov dword ptr [edi + 4], ecx */ 476 L_4200DDAB: 477 edi = MEM32(ecx + 0x4); /* 0x4200DDAB: mov edi, dword ptr [ecx + 4] */ 478 MEM32(edx + 0x4) = edi; /* 0x4200DDAE: mov dword ptr [edx + 4], edi */ 479 edi = MEM32(esi + 0x4); /* 0x4200DDB1: mov edi, dword ptr [esi + 4] */ 480 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x4200DDB4: cmp ecx, dword ptr [edi + 4] */ 481 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 482 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 483 _flag_k = FK_CMP; 484 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DDBE; /* 0x4200DDB7: jne 0x4200ddbe */ 485 L_4200DDB9: 486 MEM32(edi + 0x4) = edx; /* 0x4200DDB9: mov dword ptr [edi + 4], edx */ 487 goto L_4200DDCC; /* 0x4200DDBC: jmp 0x4200ddcc */ 488 L_4200DDBE: 489 edi = MEM32(ecx + 0x4); /* 0x4200DDBE: mov edi, dword ptr [ecx + 4] */ 490 /* cmp ecx, MEM32(edi) */ /* 0x4200DDC1: cmp ecx, dword ptr [edi] */ 491 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 492 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 493 _flag_k = FK_CMP; 494 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DDC9; /* 0x4200DDC3: jne 0x4200ddc9 */ 495 L_4200DDC5: 496 MEM32(edi) = edx; /* 0x4200DDC5: mov dword ptr [edi], edx */ 497 goto L_4200DDCC; /* 0x4200DDC7: jmp 0x4200ddcc */ 498 L_4200DDC9: 499 MEM32(edi + 0x8) = edx; /* 0x4200DDC9: mov dword ptr [edi + 8], edx */ 500 L_4200DDCC: 501 MEM32(edx) = ecx; /* 0x4200DDCC: mov dword ptr [edx], ecx */ 502 L_4200DDCE: 503 MEM32(ecx + 0x4) = edx; /* 0x4200DDCE: mov dword ptr [ecx + 4], edx */ 504 L_4200DDD1: 505 ecx = MEM32(esi + 0x4); /* 0x4200DDD1: mov ecx, dword ptr [esi + 4] */ 506 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x4200DDD4: cmp eax, dword ptr [ecx + 4] */ 507 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 508 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 509 _flag_k = FK_CMP; 510 RECOMP_BACKEDGE(); 511 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DC5D; /* 0x4200DDD7: jne 0x4200dc5d */ 512 L_4200DDDD: 513 edx = MEM32(esi + 0x4); /* 0x4200DDDD: mov edx, dword ptr [esi + 4] */ 514 eax = MEM32(edx + 0x4); /* 0x4200DDE0: mov eax, dword ptr [edx + 4] */ 515 ecx = MEM32(ebp + (-0x4)); /* 0x4200DDE3: mov ecx, dword ptr [ebp - 4] */ 516 MEM8(eax + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x4200DDE6: mov byte ptr [eax + 0x5c], bl */ 517 eax = MEM32(ebp + 0x8); /* 0x4200DDE9: mov eax, dword ptr [ebp + 8] */ 518 edi = POP32_VAL(esp); /* 0x4200DDEC: pop edi */ 519 esi = POP32_VAL(esp); /* 0x4200DDED: pop esi */ 520 MEM32(eax) = ecx; /* 0x4200DDEE: mov dword ptr [eax], ecx */ 521 ebx = POP32_VAL(esp); /* 0x4200DDF0: pop ebx */ 522 esp = ebp; /* 0x4200DDF1: mov esp, ebp */ 523 ebp = POP32_VAL(esp); /* 0x4200DDF3: pop ebp */ 524 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4200DDF4: ret 0x10 */ 525 RECOMP_REGS_OUT(); 526 } 527 528 void sub_4200DDD1(void) { 529 int _fpu_cmp = 0; 530 uint32_t _cf = 0; 531 int _df = 1; 532 uint32_t _flag_k = FK_NONE; 533 uint32_t _flag_a = 0, _flag_b = 0; 534 uint32_t _itail_tgt = 0; 535 RECOMP_REGS_LOCALS 536 RECOMP_ENTER(0x4200DDD1u); 537 538 goto L_4200DDD1; 539 L_4200DC5D: 540 ecx = MEM32(eax + 0x4); /* 0x4200DC5D: mov ecx, dword ptr [eax + 4] */ 541 SET_LO8(edx, MEM8(ecx + 0x5C)); /* 0x4200DC60: mov dl, byte ptr [ecx + 0x5c] */ 542 /* test LO8(edx), LO8(edx) */ /* 0x4200DC63: test dl, dl */ 543 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 544 _cf = 0; 545 _flag_k = FK_NARROW(FK_TEST, 24); 546 if (TEST_NZ(_flag_a, _flag_b)) goto L_4200DDDD; /* 0x4200DC65: jne 0x4200dddd */ 547 L_4200DC6B: 548 edi = MEM32(ecx + 0x4); /* 0x4200DC6B: mov edi, dword ptr [ecx + 4] */ 549 edx = MEM32(edi); /* 0x4200DC6E: mov edx, dword ptr [edi] */ 550 /* cmp ecx, edx */ /* 0x4200DC70: cmp ecx, edx */ 551 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 552 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 553 _flag_k = FK_CMP; 554 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DD39; /* 0x4200DC72: jne 0x4200dd39 */ 555 L_4200DC78: 556 edx = MEM32(edi + 0x8); /* 0x4200DC78: mov edx, dword ptr [edi + 8] */ 557 /* cmp MEM8(edx + 0x5C), 0 */ /* 0x4200DC7B: cmp byte ptr [edx + 0x5c], 0 */ 558 _flag_a = (uint32_t)(MEM8(edx + 0x5C)) << 24; _flag_b = (uint32_t)(0) << 24; 559 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 560 _flag_k = FK_NARROW(FK_CMP, 24); 561 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DC9C; /* 0x4200DC7F: jne 0x4200dc9c */ 562 L_4200DC81: 563 MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x4200DC81: mov byte ptr [ecx + 0x5c], bl */ 564 MEM8(edx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x4200DC84: mov byte ptr [edx + 0x5c], bl */ 565 ecx = MEM32(eax + 0x4); /* 0x4200DC87: mov ecx, dword ptr [eax + 4] */ 566 edx = MEM32(ecx + 0x4); /* 0x4200DC8A: mov edx, dword ptr [ecx + 4] */ 567 MEM8(edx + 0x5C) = (uint8_t)(0); /* 0x4200DC8D: mov byte ptr [edx + 0x5c], 0 */ 568 eax = MEM32(eax + 0x4); /* 0x4200DC91: mov eax, dword ptr [eax + 4] */ 569 eax = MEM32(eax + 0x4); /* 0x4200DC94: mov eax, dword ptr [eax + 4] */ 570 goto L_4200DDD1; /* 0x4200DC97: jmp 0x4200ddd1 */ 571 L_4200DC9C: 572 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x4200DC9C: cmp eax, dword ptr [ecx + 8] */ 573 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 574 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 575 _flag_k = FK_CMP; 576 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DCDB; /* 0x4200DC9F: jne 0x4200dcdb */ 577 L_4200DCA1: 578 eax = ecx; /* 0x4200DCA1: mov eax, ecx */ 579 ecx = MEM32(eax + 0x8); /* 0x4200DCA3: mov ecx, dword ptr [eax + 8] */ 580 edx = MEM32(ecx); /* 0x4200DCA6: mov edx, dword ptr [ecx] */ 581 MEM32(eax + 0x8) = edx; /* 0x4200DCA8: mov dword ptr [eax + 8], edx */ 582 edx = MEM32(ecx); /* 0x4200DCAB: mov edx, dword ptr [ecx] */ 583 /* cmp edx, MEM32(esi + 0x8) */ /* 0x4200DCAD: cmp edx, dword ptr [esi + 8] */ 584 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 585 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 586 _flag_k = FK_CMP; 587 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200DCB5; /* 0x4200DCB0: je 0x4200dcb5 */ 588 L_4200DCB2: 589 MEM32(edx + 0x4) = eax; /* 0x4200DCB2: mov dword ptr [edx + 4], eax */ 590 L_4200DCB5: 591 edx = MEM32(eax + 0x4); /* 0x4200DCB5: mov edx, dword ptr [eax + 4] */ 592 MEM32(ecx + 0x4) = edx; /* 0x4200DCB8: mov dword ptr [ecx + 4], edx */ 593 edx = MEM32(esi + 0x4); /* 0x4200DCBB: mov edx, dword ptr [esi + 4] */ 594 /* cmp eax, MEM32(edx + 0x4) */ /* 0x4200DCBE: cmp eax, dword ptr [edx + 4] */ 595 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 596 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 597 _flag_k = FK_CMP; 598 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DCC8; /* 0x4200DCC1: jne 0x4200dcc8 */ 599 L_4200DCC3: 600 MEM32(edx + 0x4) = ecx; /* 0x4200DCC3: mov dword ptr [edx + 4], ecx */ 601 goto L_4200DCD6; /* 0x4200DCC6: jmp 0x4200dcd6 */ 602 L_4200DCC8: 603 edx = MEM32(eax + 0x4); /* 0x4200DCC8: mov edx, dword ptr [eax + 4] */ 604 /* cmp eax, MEM32(edx) */ /* 0x4200DCCB: cmp eax, dword ptr [edx] */ 605 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 606 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 607 _flag_k = FK_CMP; 608 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DCD3; /* 0x4200DCCD: jne 0x4200dcd3 */ 609 L_4200DCCF: 610 MEM32(edx) = ecx; /* 0x4200DCCF: mov dword ptr [edx], ecx */ 611 goto L_4200DCD6; /* 0x4200DCD1: jmp 0x4200dcd6 */ 612 L_4200DCD3: 613 MEM32(edx + 0x8) = ecx; /* 0x4200DCD3: mov dword ptr [edx + 8], ecx */ 614 L_4200DCD6: 615 MEM32(ecx) = eax; /* 0x4200DCD6: mov dword ptr [ecx], eax */ 616 MEM32(eax + 0x4) = ecx; /* 0x4200DCD8: mov dword ptr [eax + 4], ecx */ 617 L_4200DCDB: 618 ecx = MEM32(eax + 0x4); /* 0x4200DCDB: mov ecx, dword ptr [eax + 4] */ 619 MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x4200DCDE: mov byte ptr [ecx + 0x5c], bl */ 620 edx = MEM32(eax + 0x4); /* 0x4200DCE1: mov edx, dword ptr [eax + 4] */ 621 ecx = MEM32(edx + 0x4); /* 0x4200DCE4: mov ecx, dword ptr [edx + 4] */ 622 MEM8(ecx + 0x5C) = (uint8_t)(0); /* 0x4200DCE7: mov byte ptr [ecx + 0x5c], 0 */ 623 edx = MEM32(eax + 0x4); /* 0x4200DCEB: mov edx, dword ptr [eax + 4] */ 624 ecx = MEM32(edx + 0x4); /* 0x4200DCEE: mov ecx, dword ptr [edx + 4] */ 625 edx = MEM32(ecx); /* 0x4200DCF1: mov edx, dword ptr [ecx] */ 626 edi = MEM32(edx + 0x8); /* 0x4200DCF3: mov edi, dword ptr [edx + 8] */ 627 MEM32(ecx) = edi; /* 0x4200DCF6: mov dword ptr [ecx], edi */ 628 edi = MEM32(edx + 0x8); /* 0x4200DCF8: mov edi, dword ptr [edx + 8] */ 629 /* cmp edi, MEM32(esi + 0x8) */ /* 0x4200DCFB: cmp edi, dword ptr [esi + 8] */ 630 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 631 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 632 _flag_k = FK_CMP; 633 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200DD03; /* 0x4200DCFE: je 0x4200dd03 */ 634 L_4200DD00: 635 MEM32(edi + 0x4) = ecx; /* 0x4200DD00: mov dword ptr [edi + 4], ecx */ 636 L_4200DD03: 637 edi = MEM32(ecx + 0x4); /* 0x4200DD03: mov edi, dword ptr [ecx + 4] */ 638 MEM32(edx + 0x4) = edi; /* 0x4200DD06: mov dword ptr [edx + 4], edi */ 639 edi = MEM32(esi + 0x4); /* 0x4200DD09: mov edi, dword ptr [esi + 4] */ 640 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x4200DD0C: cmp ecx, dword ptr [edi + 4] */ 641 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 642 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 643 _flag_k = FK_CMP; 644 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DD1C; /* 0x4200DD0F: jne 0x4200dd1c */ 645 L_4200DD11: 646 MEM32(edi + 0x4) = edx; /* 0x4200DD11: mov dword ptr [edi + 4], edx */ 647 MEM32(edx + 0x8) = ecx; /* 0x4200DD14: mov dword ptr [edx + 8], ecx */ 648 goto L_4200DDCE; /* 0x4200DD17: jmp 0x4200ddce */ 649 L_4200DD1C: 650 edi = MEM32(ecx + 0x4); /* 0x4200DD1C: mov edi, dword ptr [ecx + 4] */ 651 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x4200DD1F: cmp ecx, dword ptr [edi + 8] */ 652 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 653 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 654 _flag_k = FK_CMP; 655 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DD2F; /* 0x4200DD22: jne 0x4200dd2f */ 656 L_4200DD24: 657 MEM32(edi + 0x8) = edx; /* 0x4200DD24: mov dword ptr [edi + 8], edx */ 658 MEM32(edx + 0x8) = ecx; /* 0x4200DD27: mov dword ptr [edx + 8], ecx */ 659 goto L_4200DDCE; /* 0x4200DD2A: jmp 0x4200ddce */ 660 L_4200DD2F: 661 MEM32(edi) = edx; /* 0x4200DD2F: mov dword ptr [edi], edx */ 662 MEM32(edx + 0x8) = ecx; /* 0x4200DD31: mov dword ptr [edx + 8], ecx */ 663 goto L_4200DDCE; /* 0x4200DD34: jmp 0x4200ddce */ 664 L_4200DD39: 665 /* cmp MEM8(edx + 0x5C), 0 */ /* 0x4200DD39: cmp byte ptr [edx + 0x5c], 0 */ 666 _flag_a = (uint32_t)(MEM8(edx + 0x5C)) << 24; _flag_b = (uint32_t)(0) << 24; 667 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 668 _flag_k = FK_NARROW(FK_CMP, 24); 669 RECOMP_BACKEDGE(); 670 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200DC81; /* 0x4200DD3D: je 0x4200dc81 */ 671 L_4200DD43: 672 /* cmp eax, MEM32(ecx) */ /* 0x4200DD43: cmp eax, dword ptr [ecx] */ 673 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 674 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 675 _flag_k = FK_CMP; 676 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DD83; /* 0x4200DD45: jne 0x4200dd83 */ 677 L_4200DD47: 678 eax = ecx; /* 0x4200DD47: mov eax, ecx */ 679 ecx = MEM32(eax); /* 0x4200DD49: mov ecx, dword ptr [eax] */ 680 edx = MEM32(ecx + 0x8); /* 0x4200DD4B: mov edx, dword ptr [ecx + 8] */ 681 MEM32(eax) = edx; /* 0x4200DD4E: mov dword ptr [eax], edx */ 682 edx = MEM32(ecx + 0x8); /* 0x4200DD50: mov edx, dword ptr [ecx + 8] */ 683 /* cmp edx, MEM32(esi + 0x8) */ /* 0x4200DD53: cmp edx, dword ptr [esi + 8] */ 684 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 685 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 686 _flag_k = FK_CMP; 687 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200DD5B; /* 0x4200DD56: je 0x4200dd5b */ 688 L_4200DD58: 689 MEM32(edx + 0x4) = eax; /* 0x4200DD58: mov dword ptr [edx + 4], eax */ 690 L_4200DD5B: 691 edx = MEM32(eax + 0x4); /* 0x4200DD5B: mov edx, dword ptr [eax + 4] */ 692 MEM32(ecx + 0x4) = edx; /* 0x4200DD5E: mov dword ptr [ecx + 4], edx */ 693 edx = MEM32(esi + 0x4); /* 0x4200DD61: mov edx, dword ptr [esi + 4] */ 694 /* cmp eax, MEM32(edx + 0x4) */ /* 0x4200DD64: cmp eax, dword ptr [edx + 4] */ 695 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 696 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 697 _flag_k = FK_CMP; 698 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DD6E; /* 0x4200DD67: jne 0x4200dd6e */ 699 L_4200DD69: 700 MEM32(edx + 0x4) = ecx; /* 0x4200DD69: mov dword ptr [edx + 4], ecx */ 701 goto L_4200DD7D; /* 0x4200DD6C: jmp 0x4200dd7d */ 702 L_4200DD6E: 703 edx = MEM32(eax + 0x4); /* 0x4200DD6E: mov edx, dword ptr [eax + 4] */ 704 /* cmp eax, MEM32(edx + 0x8) */ /* 0x4200DD71: cmp eax, dword ptr [edx + 8] */ 705 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 706 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 707 _flag_k = FK_CMP; 708 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DD7B; /* 0x4200DD74: jne 0x4200dd7b */ 709 L_4200DD76: 710 MEM32(edx + 0x8) = ecx; /* 0x4200DD76: mov dword ptr [edx + 8], ecx */ 711 goto L_4200DD7D; /* 0x4200DD79: jmp 0x4200dd7d */ 712 L_4200DD7B: 713 MEM32(edx) = ecx; /* 0x4200DD7B: mov dword ptr [edx], ecx */ 714 L_4200DD7D: 715 MEM32(ecx + 0x8) = eax; /* 0x4200DD7D: mov dword ptr [ecx + 8], eax */ 716 MEM32(eax + 0x4) = ecx; /* 0x4200DD80: mov dword ptr [eax + 4], ecx */ 717 L_4200DD83: 718 ecx = MEM32(eax + 0x4); /* 0x4200DD83: mov ecx, dword ptr [eax + 4] */ 719 MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x4200DD86: mov byte ptr [ecx + 0x5c], bl */ 720 edx = MEM32(eax + 0x4); /* 0x4200DD89: mov edx, dword ptr [eax + 4] */ 721 ecx = MEM32(edx + 0x4); /* 0x4200DD8C: mov ecx, dword ptr [edx + 4] */ 722 MEM8(ecx + 0x5C) = (uint8_t)(0); /* 0x4200DD8F: mov byte ptr [ecx + 0x5c], 0 */ 723 edx = MEM32(eax + 0x4); /* 0x4200DD93: mov edx, dword ptr [eax + 4] */ 724 ecx = MEM32(edx + 0x4); /* 0x4200DD96: mov ecx, dword ptr [edx + 4] */ 725 edx = MEM32(ecx + 0x8); /* 0x4200DD99: mov edx, dword ptr [ecx + 8] */ 726 edi = MEM32(edx); /* 0x4200DD9C: mov edi, dword ptr [edx] */ 727 MEM32(ecx + 0x8) = edi; /* 0x4200DD9E: mov dword ptr [ecx + 8], edi */ 728 edi = MEM32(edx); /* 0x4200DDA1: mov edi, dword ptr [edx] */ 729 /* cmp edi, MEM32(esi + 0x8) */ /* 0x4200DDA3: cmp edi, dword ptr [esi + 8] */ 730 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 731 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 732 _flag_k = FK_CMP; 733 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200DDAB; /* 0x4200DDA6: je 0x4200ddab */ 734 L_4200DDA8: 735 MEM32(edi + 0x4) = ecx; /* 0x4200DDA8: mov dword ptr [edi + 4], ecx */ 736 L_4200DDAB: 737 edi = MEM32(ecx + 0x4); /* 0x4200DDAB: mov edi, dword ptr [ecx + 4] */ 738 MEM32(edx + 0x4) = edi; /* 0x4200DDAE: mov dword ptr [edx + 4], edi */ 739 edi = MEM32(esi + 0x4); /* 0x4200DDB1: mov edi, dword ptr [esi + 4] */ 740 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x4200DDB4: cmp ecx, dword ptr [edi + 4] */ 741 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 742 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 743 _flag_k = FK_CMP; 744 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DDBE; /* 0x4200DDB7: jne 0x4200ddbe */ 745 L_4200DDB9: 746 MEM32(edi + 0x4) = edx; /* 0x4200DDB9: mov dword ptr [edi + 4], edx */ 747 goto L_4200DDCC; /* 0x4200DDBC: jmp 0x4200ddcc */ 748 L_4200DDBE: 749 edi = MEM32(ecx + 0x4); /* 0x4200DDBE: mov edi, dword ptr [ecx + 4] */ 750 /* cmp ecx, MEM32(edi) */ /* 0x4200DDC1: cmp ecx, dword ptr [edi] */ 751 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 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_4200DDC9; /* 0x4200DDC3: jne 0x4200ddc9 */ 755 L_4200DDC5: 756 MEM32(edi) = edx; /* 0x4200DDC5: mov dword ptr [edi], edx */ 757 goto L_4200DDCC; /* 0x4200DDC7: jmp 0x4200ddcc */ 758 L_4200DDC9: 759 MEM32(edi + 0x8) = edx; /* 0x4200DDC9: mov dword ptr [edi + 8], edx */ 760 L_4200DDCC: 761 MEM32(edx) = ecx; /* 0x4200DDCC: mov dword ptr [edx], ecx */ 762 L_4200DDCE: 763 MEM32(ecx + 0x4) = edx; /* 0x4200DDCE: mov dword ptr [ecx + 4], edx */ 764 L_4200DDD1: 765 ecx = MEM32(esi + 0x4); /* 0x4200DDD1: mov ecx, dword ptr [esi + 4] */ 766 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x4200DDD4: cmp eax, dword ptr [ecx + 4] */ 767 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 768 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 769 _flag_k = FK_CMP; 770 RECOMP_BACKEDGE(); 771 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DC5D; /* 0x4200DDD7: jne 0x4200dc5d */ 772 L_4200DDDD: 773 edx = MEM32(esi + 0x4); /* 0x4200DDDD: mov edx, dword ptr [esi + 4] */ 774 eax = MEM32(edx + 0x4); /* 0x4200DDE0: mov eax, dword ptr [edx + 4] */ 775 ecx = MEM32(ebp + (-0x4)); /* 0x4200DDE3: mov ecx, dword ptr [ebp - 4] */ 776 MEM8(eax + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x4200DDE6: mov byte ptr [eax + 0x5c], bl */ 777 eax = MEM32(ebp + 0x8); /* 0x4200DDE9: mov eax, dword ptr [ebp + 8] */ 778 edi = POP32_VAL(esp); /* 0x4200DDEC: pop edi */ 779 esi = POP32_VAL(esp); /* 0x4200DDED: pop esi */ 780 MEM32(eax) = ecx; /* 0x4200DDEE: mov dword ptr [eax], ecx */ 781 ebx = POP32_VAL(esp); /* 0x4200DDF0: pop ebx */ 782 esp = ebp; /* 0x4200DDF1: mov esp, ebp */ 783 ebp = POP32_VAL(esp); /* 0x4200DDF3: pop ebp */ 784 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4200DDF4: ret 0x10 */ 785 RECOMP_REGS_OUT(); 786 } 787 788 void sub_4200DDDD(void) { 789 int _fpu_cmp = 0; 790 uint32_t _cf = 0; 791 int _df = 1; 792 uint32_t _flag_k = FK_NONE; 793 uint32_t _flag_a = 0, _flag_b = 0; 794 uint32_t _itail_tgt = 0; 795 RECOMP_REGS_LOCALS 796 RECOMP_ENTER(0x4200DDDDu); 797 798 L_4200DDDD: 799 edx = MEM32(esi + 0x4); /* 0x4200DDDD: mov edx, dword ptr [esi + 4] */ 800 eax = MEM32(edx + 0x4); /* 0x4200DDE0: mov eax, dword ptr [edx + 4] */ 801 ecx = MEM32(ebp + (-0x4)); /* 0x4200DDE3: mov ecx, dword ptr [ebp - 4] */ 802 MEM8(eax + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x4200DDE6: mov byte ptr [eax + 0x5c], bl */ 803 eax = MEM32(ebp + 0x8); /* 0x4200DDE9: mov eax, dword ptr [ebp + 8] */ 804 edi = POP32_VAL(esp); /* 0x4200DDEC: pop edi */ 805 esi = POP32_VAL(esp); /* 0x4200DDED: pop esi */ 806 MEM32(eax) = ecx; /* 0x4200DDEE: mov dword ptr [eax], ecx */ 807 ebx = POP32_VAL(esp); /* 0x4200DDF0: pop ebx */ 808 esp = ebp; /* 0x4200DDF1: mov esp, ebp */ 809 ebp = POP32_VAL(esp); /* 0x4200DDF3: pop ebp */ 810 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4200DDF4: ret 0x10 */ 811 RECOMP_REGS_OUT(); 812 } 813 814 void sub_4200DE00(void) { 815 int _fpu_cmp = 0; 816 uint32_t _cf = 0; 817 int _df = 1; 818 uint32_t _flag_k = FK_NONE; 819 uint32_t _flag_a = 0, _flag_b = 0; 820 uint32_t _itail_tgt = 0; 821 RECOMP_REGS_LOCALS 822 RECOMP_ENTER(0x4200DE00u); 823 824 L_4200DE00: 825 PUSH32(esp, ebp); /* 0x4200DE00: push ebp */ 826 ebp = esp; /* 0x4200DE01: mov ebp, esp */ 827 edx = MEM32(ebp + 0x8); /* 0x4200DE03: mov edx, dword ptr [ebp + 8] */ 828 eax = MEM32(edx + 0x8); /* 0x4200DE06: mov eax, dword ptr [edx + 8] */ 829 PUSH32(esp, esi); /* 0x4200DE09: push esi */ 830 esi = MEM32(eax); /* 0x4200DE0A: mov esi, dword ptr [eax] */ 831 MEM32(edx + 0x8) = esi; /* 0x4200DE0C: mov dword ptr [edx + 8], esi */ 832 esi = MEM32(eax); /* 0x4200DE0F: mov esi, dword ptr [eax] */ 833 /* cmp esi, MEM32(ecx + 0x8) */ /* 0x4200DE11: cmp esi, dword ptr [ecx + 8] */ 834 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 835 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 836 _flag_k = FK_CMP; 837 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200DE19; /* 0x4200DE14: je 0x4200de19 */ 838 L_4200DE16: 839 MEM32(esi + 0x4) = edx; /* 0x4200DE16: mov dword ptr [esi + 4], edx */ 840 L_4200DE19: 841 esi = MEM32(edx + 0x4); /* 0x4200DE19: mov esi, dword ptr [edx + 4] */ 842 MEM32(eax + 0x4) = esi; /* 0x4200DE1C: mov dword ptr [eax + 4], esi */ 843 ecx = MEM32(ecx + 0x4); /* 0x4200DE1F: mov ecx, dword ptr [ecx + 4] */ 844 /* cmp edx, MEM32(ecx + 0x4) */ /* 0x4200DE22: cmp edx, dword ptr [ecx + 4] */ 845 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 846 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 847 _flag_k = FK_CMP; 848 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DE34; /* 0x4200DE25: jne 0x4200de34 */ 849 L_4200DE27: 850 MEM32(ecx + 0x4) = eax; /* 0x4200DE27: mov dword ptr [ecx + 4], eax */ 851 MEM32(eax) = edx; /* 0x4200DE2A: mov dword ptr [eax], edx */ 852 MEM32(edx + 0x4) = eax; /* 0x4200DE2C: mov dword ptr [edx + 4], eax */ 853 esi = POP32_VAL(esp); /* 0x4200DE2F: pop esi */ 854 ebp = POP32_VAL(esp); /* 0x4200DE30: pop ebp */ 855 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4200DE31: ret 4 */ 856 L_4200DE34: 857 ecx = MEM32(edx + 0x4); /* 0x4200DE34: mov ecx, dword ptr [edx + 4] */ 858 /* cmp edx, MEM32(ecx) */ /* 0x4200DE37: cmp edx, dword ptr [ecx] */ 859 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx)); 860 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 861 _flag_k = FK_CMP; 862 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DE47; /* 0x4200DE39: jne 0x4200de47 */ 863 L_4200DE3B: 864 MEM32(ecx) = eax; /* 0x4200DE3B: mov dword ptr [ecx], eax */ 865 MEM32(eax) = edx; /* 0x4200DE3D: mov dword ptr [eax], edx */ 866 MEM32(edx + 0x4) = eax; /* 0x4200DE3F: mov dword ptr [edx + 4], eax */ 867 esi = POP32_VAL(esp); /* 0x4200DE42: pop esi */ 868 ebp = POP32_VAL(esp); /* 0x4200DE43: pop ebp */ 869 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4200DE44: ret 4 */ 870 L_4200DE47: 871 MEM32(ecx + 0x8) = eax; /* 0x4200DE47: mov dword ptr [ecx + 8], eax */ 872 MEM32(eax) = edx; /* 0x4200DE4A: mov dword ptr [eax], edx */ 873 MEM32(edx + 0x4) = eax; /* 0x4200DE4C: mov dword ptr [edx + 4], eax */ 874 esi = POP32_VAL(esp); /* 0x4200DE4F: pop esi */ 875 ebp = POP32_VAL(esp); /* 0x4200DE50: pop ebp */ 876 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4200DE51: ret 4 */ 877 RECOMP_REGS_OUT(); 878 } 879 880 void sub_4200DE60(void) { 881 int _fpu_cmp = 0; 882 uint32_t _cf = 0; 883 int _df = 1; 884 uint32_t _flag_k = FK_NONE; 885 uint32_t _flag_a = 0, _flag_b = 0; 886 uint32_t _itail_tgt = 0; 887 RECOMP_REGS_LOCALS 888 RECOMP_ENTER(0x4200DE60u); 889 890 L_4200DE60: 891 PUSH32(esp, ebp); /* 0x4200DE60: push ebp */ 892 ebp = esp; /* 0x4200DE61: mov ebp, esp */ 893 edx = MEM32(ebp + 0x8); /* 0x4200DE63: mov edx, dword ptr [ebp + 8] */ 894 eax = MEM32(edx); /* 0x4200DE66: mov eax, dword ptr [edx] */ 895 PUSH32(esp, esi); /* 0x4200DE68: push esi */ 896 esi = MEM32(eax + 0x8); /* 0x4200DE69: mov esi, dword ptr [eax + 8] */ 897 MEM32(edx) = esi; /* 0x4200DE6C: mov dword ptr [edx], esi */ 898 esi = MEM32(eax + 0x8); /* 0x4200DE6E: mov esi, dword ptr [eax + 8] */ 899 /* cmp esi, MEM32(ecx + 0x8) */ /* 0x4200DE71: cmp esi, dword ptr [ecx + 8] */ 900 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 901 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 902 _flag_k = FK_CMP; 903 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200DE79; /* 0x4200DE74: je 0x4200de79 */ 904 L_4200DE76: 905 MEM32(esi + 0x4) = edx; /* 0x4200DE76: mov dword ptr [esi + 4], edx */ 906 L_4200DE79: 907 esi = MEM32(edx + 0x4); /* 0x4200DE79: mov esi, dword ptr [edx + 4] */ 908 MEM32(eax + 0x4) = esi; /* 0x4200DE7C: mov dword ptr [eax + 4], esi */ 909 ecx = MEM32(ecx + 0x4); /* 0x4200DE7F: mov ecx, dword ptr [ecx + 4] */ 910 /* cmp edx, MEM32(ecx + 0x4) */ /* 0x4200DE82: cmp edx, dword ptr [ecx + 4] */ 911 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 912 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 913 _flag_k = FK_CMP; 914 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DE95; /* 0x4200DE85: jne 0x4200de95 */ 915 L_4200DE87: 916 MEM32(ecx + 0x4) = eax; /* 0x4200DE87: mov dword ptr [ecx + 4], eax */ 917 MEM32(eax + 0x8) = edx; /* 0x4200DE8A: mov dword ptr [eax + 8], edx */ 918 MEM32(edx + 0x4) = eax; /* 0x4200DE8D: mov dword ptr [edx + 4], eax */ 919 esi = POP32_VAL(esp); /* 0x4200DE90: pop esi */ 920 ebp = POP32_VAL(esp); /* 0x4200DE91: pop ebp */ 921 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4200DE92: ret 4 */ 922 L_4200DE95: 923 ecx = MEM32(edx + 0x4); /* 0x4200DE95: mov ecx, dword ptr [edx + 4] */ 924 /* cmp edx, MEM32(ecx + 0x8) */ /* 0x4200DE98: cmp edx, dword ptr [ecx + 8] */ 925 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 926 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 927 _flag_k = FK_CMP; 928 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DEAB; /* 0x4200DE9B: jne 0x4200deab */ 929 L_4200DE9D: 930 MEM32(ecx + 0x8) = eax; /* 0x4200DE9D: mov dword ptr [ecx + 8], eax */ 931 MEM32(eax + 0x8) = edx; /* 0x4200DEA0: mov dword ptr [eax + 8], edx */ 932 MEM32(edx + 0x4) = eax; /* 0x4200DEA3: mov dword ptr [edx + 4], eax */ 933 esi = POP32_VAL(esp); /* 0x4200DEA6: pop esi */ 934 ebp = POP32_VAL(esp); /* 0x4200DEA7: pop ebp */ 935 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4200DEA8: ret 4 */ 936 L_4200DEAB: 937 MEM32(ecx) = eax; /* 0x4200DEAB: mov dword ptr [ecx], eax */ 938 MEM32(eax + 0x8) = edx; /* 0x4200DEAD: mov dword ptr [eax + 8], edx */ 939 MEM32(edx + 0x4) = eax; /* 0x4200DEB0: mov dword ptr [edx + 4], eax */ 940 esi = POP32_VAL(esp); /* 0x4200DEB3: pop esi */ 941 ebp = POP32_VAL(esp); /* 0x4200DEB4: pop ebp */ 942 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4200DEB5: ret 4 */ 943 RECOMP_REGS_OUT(); 944 } 945 946 void sub_4200DEC0(void) { 947 int _fpu_cmp = 0; 948 uint32_t _cf = 0; 949 int _df = 1; 950 uint32_t _flag_k = FK_NONE; 951 uint32_t _flag_a = 0, _flag_b = 0; 952 uint32_t _itail_tgt = 0; 953 RECOMP_REGS_LOCALS 954 RECOMP_ENTER(0x4200DEC0u); 955 956 L_4200DEC0: 957 PUSH32(esp, ebp); /* 0x4200DEC0: push ebp */ 958 ebp = esp; /* 0x4200DEC1: mov ebp, esp */ 959 PUSH32(esp, 0x60u); /* 0x4200DEC3: push 0x60 */ 960 RECOMP_ICALL(0x42016F36u); /* 0x4200DEC5: call 0x42016f36 */ /* not lifted */ 961 RECOMP_FLAGS_IN(); 962 ecx = MEM32(ebp + 0x8); /* 0x4200DECA: mov ecx, dword ptr [ebp + 8] */ 963 SET_LO8(edx, MEM8(ebp + 0xC)); /* 0x4200DECD: mov dl, byte ptr [ebp + 0xc] */ 964 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 965 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 966 esp = esp + 4; /* 0x4200DED0: add esp, 4 */ 967 _flag_k = FK_ADD; 968 MEM32(eax + 0x4) = ecx; /* 0x4200DED3: mov dword ptr [eax + 4], ecx */ 969 MEM8(eax + 0x5C) = (uint8_t)(LO8(edx)); /* 0x4200DED6: mov byte ptr [eax + 0x5c], dl */ 970 MEM8(eax + 0x5D) = (uint8_t)(0); /* 0x4200DED9: mov byte ptr [eax + 0x5d], 0 */ 971 ebp = POP32_VAL(esp); /* 0x4200DEDD: pop ebp */ 972 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4200DEDE: ret 8 */ 973 RECOMP_REGS_OUT(); 974 } 975 976 void sub_4200DEF0(void) { 977 int _fpu_cmp = 0; 978 uint32_t _cf = 0; 979 int _df = 1; 980 uint32_t _flag_k = FK_NONE; 981 uint32_t _flag_a = 0, _flag_b = 0; 982 uint32_t _itail_tgt = 0; 983 RECOMP_REGS_LOCALS 984 RECOMP_ENTER(0x4200DEF0u); 985 986 L_4200DEF0: 987 PUSH32(esp, ebp); /* 0x4200DEF0: push ebp */ 988 ebp = esp; /* 0x4200DEF1: mov ebp, esp */ 989 PUSH32(esp, ebx); /* 0x4200DEF3: push ebx */ 990 PUSH32(esp, esi); /* 0x4200DEF4: push esi */ 991 esi = MEM32(ecx); /* 0x4200DEF5: mov esi, dword ptr [ecx] */ 992 edx = MEM32(esi + 0x8); /* 0x4200DEF7: mov edx, dword ptr [esi + 8] */ 993 SET_LO8(eax, MEM8(edx + 0x5D)); /* 0x4200DEFA: mov al, byte ptr [edx + 0x5d] */ 994 /* test LO8(eax), LO8(eax) */ /* 0x4200DEFD: test al, al */ 995 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 996 _cf = 0; 997 _flag_k = FK_NARROW(FK_TEST, 24); 998 if (TEST_NZ(_flag_a, _flag_b)) goto L_4200DF22; /* 0x4200DEFF: jne 0x4200df22 */ 999 L_4200DF01: 1000 eax = MEM32(edx); /* 0x4200DF01: mov eax, dword ptr [edx] */ 1001 SET_LO8(ebx, MEM8(eax + 0x5D)); /* 0x4200DF03: mov bl, byte ptr [eax + 0x5d] */ 1002 /* test LO8(ebx), LO8(ebx) */ /* 0x4200DF06: test bl, bl */ 1003 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1004 _cf = 0; 1005 _flag_k = FK_NARROW(FK_TEST, 24); 1006 if (TEST_NZ(_flag_a, _flag_b)) goto L_4200DF15; /* 0x4200DF08: jne 0x4200df15 */ 1007 L_4200DF0A: 1008 edx = eax; /* 0x4200DF0A: mov edx, eax */ 1009 eax = MEM32(edx); /* 0x4200DF0C: mov eax, dword ptr [edx] */ 1010 SET_LO8(ebx, MEM8(eax + 0x5D)); /* 0x4200DF0E: mov bl, byte ptr [eax + 0x5d] */ 1011 /* test LO8(ebx), LO8(ebx) */ /* 0x4200DF11: test bl, bl */ 1012 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1013 _cf = 0; 1014 _flag_k = FK_NARROW(FK_TEST, 24); 1015 RECOMP_BACKEDGE(); 1016 if (TEST_Z(_flag_a, _flag_b)) goto L_4200DF0A; /* 0x4200DF13: je 0x4200df0a */ 1017 L_4200DF15: 1018 eax = MEM32(ebp + 0x8); /* 0x4200DF15: mov eax, dword ptr [ebp + 8] */ 1019 MEM32(ecx) = edx; /* 0x4200DF18: mov dword ptr [ecx], edx */ 1020 MEM32(eax) = esi; /* 0x4200DF1A: mov dword ptr [eax], esi */ 1021 esi = POP32_VAL(esp); /* 0x4200DF1C: pop esi */ 1022 ebx = POP32_VAL(esp); /* 0x4200DF1D: pop ebx */ 1023 ebp = POP32_VAL(esp); /* 0x4200DF1E: pop ebp */ 1024 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4200DF1F: ret 8 */ 1025 L_4200DF22: 1026 eax = MEM32(esi + 0x4); /* 0x4200DF22: mov eax, dword ptr [esi + 4] */ 1027 edx = MEM32(ecx); /* 0x4200DF25: mov edx, dword ptr [ecx] */ 1028 /* cmp edx, MEM32(eax + 0x8) */ /* 0x4200DF27: cmp edx, dword ptr [eax + 8] */ 1029 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 1030 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1031 _flag_k = FK_CMP; 1032 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DF38; /* 0x4200DF2A: jne 0x4200df38 */ 1033 L_4200DF2C: 1034 MEM32(ecx) = eax; /* 0x4200DF2C: mov dword ptr [ecx], eax */ 1035 eax = MEM32(eax + 0x4); /* 0x4200DF2E: mov eax, dword ptr [eax + 4] */ 1036 edx = MEM32(ecx); /* 0x4200DF31: mov edx, dword ptr [ecx] */ 1037 /* cmp edx, MEM32(eax + 0x8) */ /* 0x4200DF33: cmp edx, dword ptr [eax + 8] */ 1038 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 1039 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1040 _flag_k = FK_CMP; 1041 RECOMP_BACKEDGE(); 1042 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200DF2C; /* 0x4200DF36: je 0x4200df2c */ 1043 L_4200DF38: 1044 edx = MEM32(ecx); /* 0x4200DF38: mov edx, dword ptr [ecx] */ 1045 /* cmp MEM32(edx + 0x8), eax */ /* 0x4200DF3A: cmp dword ptr [edx + 8], eax */ 1046 _flag_a = (uint32_t)(MEM32(edx + 0x8)); _flag_b = (uint32_t)(eax); 1047 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1048 _flag_k = FK_CMP; 1049 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200DF41; /* 0x4200DF3D: je 0x4200df41 */ 1050 L_4200DF3F: 1051 MEM32(ecx) = eax; /* 0x4200DF3F: mov dword ptr [ecx], eax */ 1052 L_4200DF41: 1053 eax = MEM32(ebp + 0x8); /* 0x4200DF41: mov eax, dword ptr [ebp + 8] */ 1054 MEM32(eax) = esi; /* 0x4200DF44: mov dword ptr [eax], esi */ 1055 esi = POP32_VAL(esp); /* 0x4200DF46: pop esi */ 1056 ebx = POP32_VAL(esp); /* 0x4200DF47: pop ebx */ 1057 ebp = POP32_VAL(esp); /* 0x4200DF48: pop ebp */ 1058 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4200DF49: ret 8 */ 1059 RECOMP_REGS_OUT(); 1060 } 1061 1062 void sub_4200DF50(void) { 1063 int _fpu_cmp = 0; 1064 uint32_t _cf = 0; 1065 int _df = 1; 1066 uint32_t _flag_k = FK_NONE; 1067 uint32_t _flag_a = 0, _flag_b = 0; 1068 uint32_t _itail_tgt = 0; 1069 RECOMP_REGS_LOCALS 1070 RECOMP_ENTER(0x4200DF50u); 1071 1072 L_4200DF50: 1073 PUSH32(esp, ebp); /* 0x4200DF50: push ebp */ 1074 ebp = esp; /* 0x4200DF51: mov ebp, esp */ 1075 eax = MEM32(ecx + 0x4); /* 0x4200DF53: mov eax, dword ptr [ecx + 4] */ 1076 edx = MEM32(eax + 0x4); /* 0x4200DF56: mov edx, dword ptr [eax + 4] */ 1077 ecx = MEM32(ecx + 0x8); /* 0x4200DF59: mov ecx, dword ptr [ecx + 8] */ 1078 /* cmp edx, ecx */ /* 0x4200DF5C: cmp edx, ecx */ 1079 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 1080 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1081 _flag_k = FK_CMP; 1082 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200DF79; /* 0x4200DF5E: je 0x4200df79 */ 1083 L_4200DF60: 1084 PUSH32(esp, esi); /* 0x4200DF60: push esi */ 1085 esi = MEM32(ebp + 0x8); /* 0x4200DF61: mov esi, dword ptr [ebp + 8] */ 1086 esi = MEM32(esi); /* 0x4200DF64: mov esi, dword ptr [esi] */ 1087 L_4200DF66: 1088 /* cmp MEM32(edx + 0xC), esi */ /* 0x4200DF66: cmp dword ptr [edx + 0xc], esi */ 1089 _flag_a = (uint32_t)(MEM32(edx + 0xC)); _flag_b = (uint32_t)(esi); 1090 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1091 _flag_k = FK_CMP; 1092 if (CMP_GE(_flag_a, _flag_b)) goto L_4200DF70; /* 0x4200DF69: jge 0x4200df70 */ 1093 L_4200DF6B: 1094 edx = MEM32(edx + 0x8); /* 0x4200DF6B: mov edx, dword ptr [edx + 8] */ 1095 goto L_4200DF74; /* 0x4200DF6E: jmp 0x4200df74 */ 1096 L_4200DF70: 1097 eax = edx; /* 0x4200DF70: mov eax, edx */ 1098 edx = MEM32(edx); /* 0x4200DF72: mov edx, dword ptr [edx] */ 1099 L_4200DF74: 1100 /* cmp edx, ecx */ /* 0x4200DF74: cmp edx, ecx */ 1101 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 1102 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1103 _flag_k = FK_CMP; 1104 RECOMP_BACKEDGE(); 1105 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DF66; /* 0x4200DF76: jne 0x4200df66 */ 1106 L_4200DF78: 1107 esi = POP32_VAL(esp); /* 0x4200DF78: pop esi */ 1108 L_4200DF79: 1109 ebp = POP32_VAL(esp); /* 0x4200DF79: pop ebp */ 1110 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4200DF7A: ret 4 */ 1111 RECOMP_REGS_OUT(); 1112 } 1113 1114 void sub_4200DF80(void) { 1115 int _fpu_cmp = 0; 1116 uint32_t _cf = 0; 1117 int _df = 1; 1118 uint32_t _flag_k = FK_NONE; 1119 uint32_t _flag_a = 0, _flag_b = 0; 1120 uint32_t _itail_tgt = 0; 1121 RECOMP_REGS_LOCALS 1122 RECOMP_ENTER(0x4200DF80u); 1123 1124 L_4200DF80: 1125 eax = MEM32(ecx); /* 0x4200DF80: mov eax, dword ptr [ecx] */ 1126 SET_LO8(edx, MEM8(eax + 0x5C)); /* 0x4200DF82: mov dl, byte ptr [eax + 0x5c] */ 1127 /* test LO8(edx), LO8(edx) */ /* 0x4200DF85: test dl, dl */ 1128 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 1129 _cf = 0; 1130 _flag_k = FK_NARROW(FK_TEST, 24); 1131 PUSH32(esp, ebx); /* 0x4200DF87: push ebx */ 1132 if (TEST_NZ(_flag_a, _flag_b)) goto L_4200DF99; /* 0x4200DF88: jne 0x4200df99 */ 1133 L_4200DF8A: 1134 edx = MEM32(eax + 0x4); /* 0x4200DF8A: mov edx, dword ptr [eax + 4] */ 1135 /* cmp MEM32(edx + 0x4), eax */ /* 0x4200DF8D: cmp dword ptr [edx + 4], eax */ 1136 _flag_a = (uint32_t)(MEM32(edx + 0x4)); _flag_b = (uint32_t)(eax); 1137 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1138 _flag_k = FK_CMP; 1139 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DF99; /* 0x4200DF90: jne 0x4200df99 */ 1140 L_4200DF92: 1141 eax = MEM32(eax + 0x8); /* 0x4200DF92: mov eax, dword ptr [eax + 8] */ 1142 MEM32(ecx) = eax; /* 0x4200DF95: mov dword ptr [ecx], eax */ 1143 ebx = POP32_VAL(esp); /* 0x4200DF97: pop ebx */ 1144 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200DF98: ret */ 1145 L_4200DF99: 1146 edx = MEM32(eax); /* 0x4200DF99: mov edx, dword ptr [eax] */ 1147 SET_LO8(ebx, MEM8(edx + 0x5D)); /* 0x4200DF9B: mov bl, byte ptr [edx + 0x5d] */ 1148 /* test LO8(ebx), LO8(ebx) */ /* 0x4200DF9E: test bl, bl */ 1149 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1150 _cf = 0; 1151 _flag_k = FK_NARROW(FK_TEST, 24); 1152 if (TEST_NZ(_flag_a, _flag_b)) goto L_4200DFBC; /* 0x4200DFA0: jne 0x4200dfbc */ 1153 L_4200DFA2: 1154 eax = MEM32(edx + 0x8); /* 0x4200DFA2: mov eax, dword ptr [edx + 8] */ 1155 SET_LO8(ebx, MEM8(eax + 0x5D)); /* 0x4200DFA5: mov bl, byte ptr [eax + 0x5d] */ 1156 /* test LO8(ebx), LO8(ebx) */ /* 0x4200DFA8: test bl, bl */ 1157 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1158 _cf = 0; 1159 _flag_k = FK_NARROW(FK_TEST, 24); 1160 if (TEST_NZ(_flag_a, _flag_b)) goto L_4200DFB8; /* 0x4200DFAA: jne 0x4200dfb8 */ 1161 L_4200DFAC: 1162 edx = eax; /* 0x4200DFAC: mov edx, eax */ 1163 eax = MEM32(edx + 0x8); /* 0x4200DFAE: mov eax, dword ptr [edx + 8] */ 1164 SET_LO8(ebx, MEM8(eax + 0x5D)); /* 0x4200DFB1: mov bl, byte ptr [eax + 0x5d] */ 1165 /* test LO8(ebx), LO8(ebx) */ /* 0x4200DFB4: test bl, bl */ 1166 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1167 _cf = 0; 1168 _flag_k = FK_NARROW(FK_TEST, 24); 1169 RECOMP_BACKEDGE(); 1170 if (TEST_Z(_flag_a, _flag_b)) goto L_4200DFAC; /* 0x4200DFB6: je 0x4200dfac */ 1171 L_4200DFB8: 1172 MEM32(ecx) = edx; /* 0x4200DFB8: mov dword ptr [ecx], edx */ 1173 ebx = POP32_VAL(esp); /* 0x4200DFBA: pop ebx */ 1174 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200DFBB: ret */ 1175 L_4200DFBC: 1176 eax = MEM32(eax + 0x4); /* 0x4200DFBC: mov eax, dword ptr [eax + 4] */ 1177 edx = MEM32(ecx); /* 0x4200DFBF: mov edx, dword ptr [ecx] */ 1178 /* cmp edx, MEM32(eax) */ /* 0x4200DFC1: cmp edx, dword ptr [eax] */ 1179 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax)); 1180 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1181 _flag_k = FK_CMP; 1182 if (CMP_NE(_flag_a, _flag_b)) goto L_4200DFD0; /* 0x4200DFC3: jne 0x4200dfd0 */ 1183 L_4200DFC5: 1184 MEM32(ecx) = eax; /* 0x4200DFC5: mov dword ptr [ecx], eax */ 1185 eax = MEM32(eax + 0x4); /* 0x4200DFC7: mov eax, dword ptr [eax + 4] */ 1186 edx = MEM32(ecx); /* 0x4200DFCA: mov edx, dword ptr [ecx] */ 1187 /* cmp edx, MEM32(eax) */ /* 0x4200DFCC: cmp edx, dword ptr [eax] */ 1188 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax)); 1189 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1190 _flag_k = FK_CMP; 1191 RECOMP_BACKEDGE(); 1192 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200DFC5; /* 0x4200DFCE: je 0x4200dfc5 */ 1193 L_4200DFD0: 1194 MEM32(ecx) = eax; /* 0x4200DFD0: mov dword ptr [ecx], eax */ 1195 ebx = POP32_VAL(esp); /* 0x4200DFD2: pop ebx */ 1196 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200DFD3: ret */ 1197 RECOMP_REGS_OUT(); 1198 } 1199 1200 void sub_4200DFE0(void) { 1201 int _fpu_cmp = 0; 1202 uint32_t _cf = 0; 1203 int _df = 1; 1204 uint32_t _flag_k = FK_NONE; 1205 uint32_t _flag_a = 0, _flag_b = 0; 1206 uint32_t _itail_tgt = 0; 1207 RECOMP_REGS_LOCALS 1208 RECOMP_ENTER(0x4200DFE0u); 1209 1210 L_4200DFE0: 1211 PUSH32(esp, ebp); /* 0x4200DFE0: push ebp */ 1212 ebp = esp; /* 0x4200DFE1: mov ebp, esp */ 1213 eax = MEM32(ebp + 0xC); /* 0x4200DFE3: mov eax, dword ptr [ebp + 0xc] */ 1214 /* test eax, eax */ /* 0x4200DFE6: test eax, eax */ 1215 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1216 _cf = 0; 1217 _flag_k = FK_TEST; 1218 if (TEST_Z(_flag_a, _flag_b)) goto L_4200E016; /* 0x4200DFE8: jbe 0x4200e016 */ 1219 L_4200DFEA: 1220 edx = MEM32(ebp + 0x10); /* 0x4200DFEA: mov edx, dword ptr [ebp + 0x10] */ 1221 PUSH32(esp, ebx); /* 0x4200DFED: push ebx */ 1222 PUSH32(esp, esi); /* 0x4200DFEE: push esi */ 1223 ecx = eax; /* 0x4200DFEF: mov ecx, eax */ 1224 eax = MEM32(ebp + 0x8); /* 0x4200DFF1: mov eax, dword ptr [ebp + 8] */ 1225 PUSH32(esp, edi); /* 0x4200DFF4: push edi */ 1226 L_4200DFF5: 1227 /* test eax, eax */ /* 0x4200DFF5: test eax, eax */ 1228 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1229 _cf = 0; 1230 _flag_k = FK_TEST; 1231 if (TEST_Z(_flag_a, _flag_b)) goto L_4200E00D; /* 0x4200DFF7: je 0x4200e00d */ 1232 L_4200DFF9: 1233 esi = edx; /* 0x4200DFF9: mov esi, edx */ 1234 ebx = MEM32(esi); /* 0x4200DFFB: mov ebx, dword ptr [esi] */ 1235 edi = eax; /* 0x4200DFFD: mov edi, eax */ 1236 MEM32(edi) = ebx; /* 0x4200DFFF: mov dword ptr [edi], ebx */ 1237 ebx = MEM32(esi + 0x4); /* 0x4200E001: mov ebx, dword ptr [esi + 4] */ 1238 MEM32(edi + 0x4) = ebx; /* 0x4200E004: mov dword ptr [edi + 4], ebx */ 1239 esi = MEM32(esi + 0x8); /* 0x4200E007: mov esi, dword ptr [esi + 8] */ 1240 MEM32(edi + 0x8) = esi; /* 0x4200E00A: mov dword ptr [edi + 8], esi */ 1241 L_4200E00D: 1242 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 1243 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1244 eax = eax + 0xCu; /* 0x4200E00D: add eax, 0xc */ 1245 _flag_k = FK_ADD; 1246 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1247 ecx = ecx - 1; /* 0x4200E010: dec ecx */ 1248 _flag_k = FK_DEC; 1249 RECOMP_BACKEDGE(); 1250 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_4200DFF5; /* 0x4200E011: jne 0x4200dff5 */ 1251 L_4200E013: 1252 edi = POP32_VAL(esp); /* 0x4200E013: pop edi */ 1253 esi = POP32_VAL(esp); /* 0x4200E014: pop esi */ 1254 ebx = POP32_VAL(esp); /* 0x4200E015: pop ebx */ 1255 L_4200E016: 1256 ebp = POP32_VAL(esp); /* 0x4200E016: pop ebp */ 1257 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4200E017: ret 0xc */ 1258 RECOMP_REGS_OUT(); 1259 } 1260 1261 void sub_4200E020(void) { 1262 int _fpu_cmp = 0; 1263 uint32_t _cf = 0; 1264 int _df = 1; 1265 uint32_t _flag_k = FK_NONE; 1266 uint32_t _flag_a = 0, _flag_b = 0; 1267 uint32_t _itail_tgt = 0; 1268 RECOMP_REGS_LOCALS 1269 RECOMP_ENTER(0x4200E020u); 1270 1271 L_4200E020: 1272 PUSH32(esp, ebp); /* 0x4200E020: push ebp */ 1273 ebp = esp; /* 0x4200E021: mov ebp, esp */ 1274 edx = MEM32(ebp + 0x8); /* 0x4200E023: mov edx, dword ptr [ebp + 8] */ 1275 PUSH32(esp, ebx); /* 0x4200E026: push ebx */ 1276 ebx = MEM32(ebp + 0xC); /* 0x4200E027: mov ebx, dword ptr [ebp + 0xc] */ 1277 /* cmp edx, ebx */ /* 0x4200E02A: cmp edx, ebx */ 1278 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 1279 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1280 _flag_k = FK_CMP; 1281 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200E04D; /* 0x4200E02C: je 0x4200e04d */ 1282 L_4200E02E: 1283 eax = MEM32(ebp + 0x10); /* 0x4200E02E: mov eax, dword ptr [ebp + 0x10] */ 1284 PUSH32(esp, esi); /* 0x4200E031: push esi */ 1285 PUSH32(esp, edi); /* 0x4200E032: push edi */ 1286 L_4200E033: 1287 esi = edx; /* 0x4200E033: mov esi, edx */ 1288 edi = eax; /* 0x4200E035: mov edi, eax */ 1289 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x18u); 1290 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1291 edx = edx + 0x18u; /* 0x4200E037: add edx, 0x18 */ 1292 _flag_k = FK_ADD; 1293 ecx = 6; /* 0x4200E03A: mov ecx, 6 */ 1294 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u); 1295 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1296 eax = eax + 0x18u; /* 0x4200E03F: add eax, 0x18 */ 1297 _flag_k = FK_ADD; 1298 /* cmp edx, ebx */ /* 0x4200E042: cmp edx, ebx */ 1299 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 1300 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1301 _flag_k = FK_CMP; 1302 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4200E044: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 1303 RECOMP_BACKEDGE(); 1304 if (CMP_NE(_flag_a, _flag_b)) goto L_4200E033; /* 0x4200E046: jne 0x4200e033 */ 1305 L_4200E048: 1306 edi = POP32_VAL(esp); /* 0x4200E048: pop edi */ 1307 esi = POP32_VAL(esp); /* 0x4200E049: pop esi */ 1308 ebx = POP32_VAL(esp); /* 0x4200E04A: pop ebx */ 1309 ebp = POP32_VAL(esp); /* 0x4200E04B: pop ebp */ 1310 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200E04C: ret */ 1311 L_4200E04D: 1312 eax = MEM32(ebp + 0x10); /* 0x4200E04D: mov eax, dword ptr [ebp + 0x10] */ 1313 ebx = POP32_VAL(esp); /* 0x4200E050: pop ebx */ 1314 ebp = POP32_VAL(esp); /* 0x4200E051: pop ebp */ 1315 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200E052: ret */ 1316 RECOMP_REGS_OUT(); 1317 } 1318 1319 void sub_4200E060(void) { 1320 int _fpu_cmp = 0; 1321 uint32_t _cf = 0; 1322 int _df = 1; 1323 uint32_t _flag_k = FK_NONE; 1324 uint32_t _flag_a = 0, _flag_b = 0; 1325 uint32_t _itail_tgt = 0; 1326 RECOMP_REGS_LOCALS 1327 RECOMP_ENTER(0x4200E060u); 1328 1329 L_4200E060: 1330 PUSH32(esp, ebp); /* 0x4200E060: push ebp */ 1331 ebp = esp; /* 0x4200E061: mov ebp, esp */ 1332 ecx = MEM32(ebp + 0x8); /* 0x4200E063: mov ecx, dword ptr [ebp + 8] */ 1333 edx = MEM32(ebp + 0xC); /* 0x4200E066: mov edx, dword ptr [ebp + 0xc] */ 1334 /* cmp ecx, edx */ /* 0x4200E069: cmp ecx, edx */ 1335 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1336 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1337 _flag_k = FK_CMP; 1338 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200E082; /* 0x4200E06B: je 0x4200e082 */ 1339 L_4200E06D: 1340 eax = MEM32(ebp + 0x10); /* 0x4200E06D: mov eax, dword ptr [ebp + 0x10] */ 1341 PUSH32(esp, esi); /* 0x4200E070: push esi */ 1342 L_4200E071: 1343 esi = MEM32(ecx); /* 0x4200E071: mov esi, dword ptr [ecx] */ 1344 MEM32(eax) = esi; /* 0x4200E073: mov dword ptr [eax], esi */ 1345 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 1346 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1347 ecx = ecx + 4; /* 0x4200E075: add ecx, 4 */ 1348 _flag_k = FK_ADD; 1349 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 1350 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1351 eax = eax + 4; /* 0x4200E078: add eax, 4 */ 1352 _flag_k = FK_ADD; 1353 /* cmp ecx, edx */ /* 0x4200E07B: cmp ecx, edx */ 1354 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1355 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1356 _flag_k = FK_CMP; 1357 RECOMP_BACKEDGE(); 1358 if (CMP_NE(_flag_a, _flag_b)) goto L_4200E071; /* 0x4200E07D: jne 0x4200e071 */ 1359 L_4200E07F: 1360 esi = POP32_VAL(esp); /* 0x4200E07F: pop esi */ 1361 ebp = POP32_VAL(esp); /* 0x4200E080: pop ebp */ 1362 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200E081: ret */ 1363 L_4200E082: 1364 eax = MEM32(ebp + 0x10); /* 0x4200E082: mov eax, dword ptr [ebp + 0x10] */ 1365 ebp = POP32_VAL(esp); /* 0x4200E085: pop ebp */ 1366 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200E086: ret */ 1367 RECOMP_REGS_OUT(); 1368 } 1369 1370 void sub_4200E090(void) { 1371 int _fpu_cmp = 0; 1372 uint32_t _cf = 0; 1373 int _df = 1; 1374 uint32_t _flag_k = FK_NONE; 1375 uint32_t _flag_a = 0, _flag_b = 0; 1376 uint32_t _itail_tgt = 0; 1377 RECOMP_REGS_LOCALS 1378 RECOMP_ENTER(0x4200E090u); 1379 1380 L_4200E090: 1381 PUSH32(esp, ebp); /* 0x4200E090: push ebp */ 1382 ebp = esp; /* 0x4200E091: mov ebp, esp */ 1383 PUSH32(esp, 0xFFFFFFFFu); /* 0x4200E093: push -1 */ 1384 PUSH32(esp, 0x420175E1u); /* 0x4200E095: push 0x420175e1 */ 1385 eax = MEM32(FS_BASE + (0)); /* 0x4200E09A: mov eax, dword ptr fs:[0] */ 1386 PUSH32(esp, eax); /* 0x4200E0A0: push eax */ 1387 MEM32(FS_BASE + (0)) = esp; /* 0x4200E0A1: mov dword ptr fs:[0], esp */ 1388 PUSH32(esp, ecx); /* 0x4200E0A8: push ecx */ 1389 PUSH32(esp, edi); /* 0x4200E0A9: push edi */ 1390 edi = MEM32(ebp + 0x8); /* 0x4200E0AA: mov edi, dword ptr [ebp + 8] */ 1391 MEM32(ebp + (-0x10)) = edi; /* 0x4200E0AD: mov dword ptr [ebp - 0x10], edi */ 1392 /* test edi, edi */ /* 0x4200E0B0: test edi, edi */ 1393 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 1394 _cf = 0; 1395 _flag_k = FK_TEST; 1396 MEM32(ebp + (-0x4)) = 0; /* 0x4200E0B2: mov dword ptr [ebp - 4], 0 */ 1397 if (TEST_Z(_flag_a, _flag_b)) goto L_4200E114; /* 0x4200E0B9: je 0x4200e114 */ 1398 L_4200E0BB: 1399 PUSH32(esp, esi); /* 0x4200E0BB: push esi */ 1400 esi = MEM32(ebp + 0xC); /* 0x4200E0BC: mov esi, dword ptr [ebp + 0xc] */ 1401 SET_LO8(eax, MEM8(esi)); /* 0x4200E0BF: mov al, byte ptr [esi] */ 1402 MEM8(edi) = (uint8_t)(LO8(eax)); /* 0x4200E0C1: mov byte ptr [edi], al */ 1403 ecx = MEM32(esi + 0x4); /* 0x4200E0C3: mov ecx, dword ptr [esi + 4] */ 1404 /* test ecx, ecx */ /* 0x4200E0C6: test ecx, ecx */ 1405 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1406 _cf = 0; 1407 _flag_k = FK_TEST; 1408 if (TEST_NZ(_flag_a, _flag_b)) goto L_4200E0CE; /* 0x4200E0C8: jne 0x4200e0ce */ 1409 L_4200E0CA: 1410 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1411 eax = 0; /* 0x4200E0CA: xor eax, eax */ 1412 _cf = 0; 1413 _flag_k = FK_TEST; 1414 goto L_4200E0D6; /* 0x4200E0CC: jmp 0x4200e0d6 */ 1415 L_4200E0CE: 1416 eax = MEM32(esi + 0x8); /* 0x4200E0CE: mov eax, dword ptr [esi + 8] */ 1417 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1418 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1419 eax = eax - ecx; /* 0x4200E0D1: sub eax, ecx */ 1420 _flag_k = FK_CMP; 1421 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x4200E0D3: sar eax, 2 */ 1422 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1423 eax = (uint32_t)((int32_t)eax >> 2u); 1424 L_4200E0D6: 1425 /* test eax, eax */ /* 0x4200E0D6: test eax, eax */ 1426 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1427 _cf = 0; 1428 _flag_k = FK_TEST; 1429 if (TEST_NS(_flag_a, _flag_b)) goto L_4200E0DC; /* 0x4200E0D8: jge 0x4200e0dc */ 1430 L_4200E0DA: 1431 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1432 eax = 0; /* 0x4200E0DA: xor eax, eax */ 1433 _cf = 0; 1434 _flag_k = FK_TEST; 1435 L_4200E0DC: 1436 ecx = eax * 4; /* 0x4200E0DC: lea ecx, [eax*4] */ 1437 PUSH32(esp, ecx); /* 0x4200E0E3: push ecx */ 1438 RECOMP_ICALL(0x42016F36u); /* 0x4200E0E4: call 0x42016f36 */ /* not lifted */ 1439 RECOMP_FLAGS_IN(); 1440 MEM32(edi + 0x4) = eax; /* 0x4200E0E9: mov dword ptr [edi + 4], eax */ 1441 edx = MEM32(esi + 0x8); /* 0x4200E0EC: mov edx, dword ptr [esi + 8] */ 1442 ecx = eax; /* 0x4200E0EF: mov ecx, eax */ 1443 eax = MEM32(esi + 0x4); /* 0x4200E0F1: mov eax, dword ptr [esi + 4] */ 1444 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1445 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1446 esp = esp + 4; /* 0x4200E0F4: add esp, 4 */ 1447 _flag_k = FK_ADD; 1448 /* cmp eax, edx */ /* 0x4200E0F7: cmp eax, edx */ 1449 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1450 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1451 _flag_k = FK_CMP; 1452 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200E10D; /* 0x4200E0F9: je 0x4200e10d */ 1453 L_4200E0FB: 1454 /* test ecx, ecx */ /* 0x4200E0FB: test ecx, ecx */ 1455 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1456 _cf = 0; 1457 _flag_k = FK_TEST; 1458 if (TEST_Z(_flag_a, _flag_b)) goto L_4200E103; /* 0x4200E0FD: je 0x4200e103 */ 1459 L_4200E0FF: 1460 esi = MEM32(eax); /* 0x4200E0FF: mov esi, dword ptr [eax] */ 1461 MEM32(ecx) = esi; /* 0x4200E101: mov dword ptr [ecx], esi */ 1462 L_4200E103: 1463 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 1464 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1465 eax = eax + 4; /* 0x4200E103: add eax, 4 */ 1466 _flag_k = FK_ADD; 1467 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 1468 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1469 ecx = ecx + 4; /* 0x4200E106: add ecx, 4 */ 1470 _flag_k = FK_ADD; 1471 /* cmp eax, edx */ /* 0x4200E109: cmp eax, edx */ 1472 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1473 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1474 _flag_k = FK_CMP; 1475 RECOMP_BACKEDGE(); 1476 if (CMP_NE(_flag_a, _flag_b)) goto L_4200E0FB; /* 0x4200E10B: jne 0x4200e0fb */ 1477 L_4200E10D: 1478 MEM32(edi + 0x8) = ecx; /* 0x4200E10D: mov dword ptr [edi + 8], ecx */ 1479 MEM32(edi + 0xC) = ecx; /* 0x4200E110: mov dword ptr [edi + 0xc], ecx */ 1480 esi = POP32_VAL(esp); /* 0x4200E113: pop esi */ 1481 L_4200E114: 1482 ecx = MEM32(ebp + (-0xC)); /* 0x4200E114: mov ecx, dword ptr [ebp - 0xc] */ 1483 edi = POP32_VAL(esp); /* 0x4200E117: pop edi */ 1484 MEM32(FS_BASE + (0)) = ecx; /* 0x4200E118: mov dword ptr fs:[0], ecx */ 1485 esp = ebp; /* 0x4200E11F: mov esp, ebp */ 1486 ebp = POP32_VAL(esp); /* 0x4200E121: pop ebp */ 1487 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200E122: ret */ 1488 RECOMP_REGS_OUT(); 1489 } 1490 1491 void sub_4200E130(void) { 1492 int _fpu_cmp = 0; 1493 uint32_t _cf = 0; 1494 int _df = 1; 1495 uint32_t _flag_k = FK_NONE; 1496 uint32_t _flag_a = 0, _flag_b = 0; 1497 uint32_t _itail_tgt = 0; 1498 RECOMP_REGS_LOCALS 1499 RECOMP_ENTER(0x4200E130u); 1500 1501 L_4200E130: 1502 PUSH32(esp, ebp); /* 0x4200E130: push ebp */ 1503 ebp = esp; /* 0x4200E131: mov ebp, esp */ 1504 eax = MEM32(ebp + 0x8); /* 0x4200E133: mov eax, dword ptr [ebp + 8] */ 1505 /* test eax, eax */ /* 0x4200E136: test eax, eax */ 1506 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1507 _cf = 0; 1508 _flag_k = FK_TEST; 1509 if (TEST_Z(_flag_a, _flag_b)) goto L_4200E14D; /* 0x4200E138: je 0x4200e14d */ 1510 L_4200E13A: 1511 ecx = MEM32(ebp + 0xC); /* 0x4200E13A: mov ecx, dword ptr [ebp + 0xc] */ 1512 edx = MEM32(ecx); /* 0x4200E13D: mov edx, dword ptr [ecx] */ 1513 MEM32(eax) = edx; /* 0x4200E13F: mov dword ptr [eax], edx */ 1514 edx = MEM32(ecx + 0x4); /* 0x4200E141: mov edx, dword ptr [ecx + 4] */ 1515 MEM32(eax + 0x4) = edx; /* 0x4200E144: mov dword ptr [eax + 4], edx */ 1516 ecx = MEM32(ecx + 0x8); /* 0x4200E147: mov ecx, dword ptr [ecx + 8] */ 1517 MEM32(eax + 0x8) = ecx; /* 0x4200E14A: mov dword ptr [eax + 8], ecx */ 1518 L_4200E14D: 1519 ebp = POP32_VAL(esp); /* 0x4200E14D: pop ebp */ 1520 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200E14E: ret */ 1521 RECOMP_REGS_OUT(); 1522 } 1523 1524 void sub_4200E150(void) { 1525 int _fpu_cmp = 0; 1526 uint32_t _cf = 0; 1527 int _df = 1; 1528 uint32_t _flag_k = FK_NONE; 1529 uint32_t _flag_a = 0, _flag_b = 0; 1530 uint32_t _itail_tgt = 0; 1531 RECOMP_REGS_LOCALS 1532 RECOMP_ENTER(0x4200E150u); 1533 1534 L_4200E150: 1535 PUSH32(esp, ebp); /* 0x4200E150: push ebp */ 1536 ebp = esp; /* 0x4200E151: mov ebp, esp */ 1537 PUSH32(esp, esi); /* 0x4200E153: push esi */ 1538 esi = ecx; /* 0x4200E154: mov esi, ecx */ 1539 RECOMP_ICALL(0x4200A0F0u); /* 0x4200E156: call 0x4200a0f0 */ /* not lifted */ 1540 RECOMP_FLAGS_IN(); 1541 /* test MEM8(ebp + 0x8), 1 */ /* 0x4200E15B: test byte ptr [ebp + 8], 1 */ 1542 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 1543 _cf = 0; 1544 _flag_k = FK_NARROW(FK_TEST, 24); 1545 if (TEST_Z(_flag_a, _flag_b)) goto L_4200E16A; /* 0x4200E15F: je 0x4200e16a */ 1546 L_4200E161: 1547 PUSH32(esp, esi); /* 0x4200E161: push esi */ 1548 RECOMP_ICALL(0x42016DD0u); /* 0x4200E162: call 0x42016dd0 */ /* not lifted */ 1549 RECOMP_FLAGS_IN(); 1550 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1551 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1552 esp = esp + 4; /* 0x4200E167: add esp, 4 */ 1553 _flag_k = FK_ADD; 1554 L_4200E16A: 1555 eax = esi; /* 0x4200E16A: mov eax, esi */ 1556 esi = POP32_VAL(esp); /* 0x4200E16C: pop esi */ 1557 ebp = POP32_VAL(esp); /* 0x4200E16D: pop ebp */ 1558 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4200E16E: ret 4 */ 1559 RECOMP_REGS_OUT(); 1560 } 1561 1562 void sub_4200E180(void) { 1563 int _fpu_cmp = 0; 1564 uint32_t _cf = 0; 1565 int _df = 1; 1566 uint32_t _flag_k = FK_NONE; 1567 uint32_t _flag_a = 0, _flag_b = 0; 1568 uint32_t _itail_tgt = 0; 1569 RECOMP_REGS_LOCALS 1570 RECOMP_ENTER(0x4200E180u); 1571 1572 L_4200E180: 1573 PUSH32(esp, ebp); /* 0x4200E180: push ebp */ 1574 ebp = esp; /* 0x4200E181: mov ebp, esp */ 1575 PUSH32(esp, ecx); /* 0x4200E183: push ecx */ 1576 edx = MEM32(ebp + 0xC); /* 0x4200E184: mov edx, dword ptr [ebp + 0xc] */ 1577 ecx = MEM32(ebp + 0x8); /* 0x4200E187: mov ecx, dword ptr [ebp + 8] */ 1578 eax = edx; /* 0x4200E18A: mov eax, edx */ 1579 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1580 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1581 eax = eax - ecx; /* 0x4200E18C: sub eax, ecx */ 1582 _flag_k = FK_CMP; 1583 PUSH32(esp, ebx); /* 0x4200E18E: push ebx */ 1584 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFCu); 1585 eax = eax & 0xFFFFFFFCu; /* 0x4200E18F: and eax, 0xfffffffc */ 1586 _cf = 0; 1587 _flag_k = FK_TEST; 1588 /* cmp eax, 0x40u */ /* 0x4200E192: cmp eax, 0x40 */ 1589 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x40u); 1590 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1591 _flag_k = FK_CMP; 1592 PUSH32(esp, esi); /* 0x4200E195: push esi */ 1593 PUSH32(esp, edi); /* 0x4200E196: push edi */ 1594 if (CMP_G(_flag_a, _flag_b)) goto L_4200E1F9; /* 0x4200E197: jg 0x4200e1f9 */ 1595 L_4200E199: 1596 /* cmp ecx, edx */ /* 0x4200E199: cmp ecx, edx */ 1597 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1598 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1599 _flag_k = FK_CMP; 1600 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200E342; /* 0x4200E19B: je 0x4200e342 */ 1601 L_4200E1A1: 1602 edi = ecx + 0x4; /* 0x4200E1A1: lea edi, [ecx + 4] */ 1603 /* cmp edi, edx */ /* 0x4200E1A4: cmp edi, edx */ 1604 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 1605 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1606 _flag_k = FK_CMP; 1607 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200E342; /* 0x4200E1A6: je 0x4200e342 */ 1608 L_4200E1AC: 1609 esi = MEM32(edi); /* 0x4200E1AC: mov esi, dword ptr [edi] */ 1610 /* cmp esi, MEM32(ecx) */ /* 0x4200E1AE: cmp esi, dword ptr [ecx] */ 1611 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx)); 1612 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1613 _flag_k = FK_CMP; 1614 if (CMP_L(_flag_a, _flag_b)) goto L_4200E1D6; /* 0x4200E1B0: jl 0x4200e1d6 */ 1615 L_4200E1B2: 1616 ecx = MEM32(edi + (-0x4)); /* 0x4200E1B2: mov ecx, dword ptr [edi - 4] */ 1617 /* cmp esi, ecx */ /* 0x4200E1B5: cmp esi, ecx */ 1618 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 1619 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1620 _flag_k = FK_CMP; 1621 eax = edi + (-0x4); /* 0x4200E1B7: lea eax, [edi - 4] */ 1622 edx = edi; /* 0x4200E1BA: mov edx, edi */ 1623 if (CMP_GE(_flag_a, _flag_b)) goto L_4200E1CC; /* 0x4200E1BC: jge 0x4200e1cc */ 1624 L_4200E1BE: 1625 MEM32(edx) = ecx; /* 0x4200E1BE: mov dword ptr [edx], ecx */ 1626 ecx = MEM32(eax + (-0x4)); /* 0x4200E1C0: mov ecx, dword ptr [eax - 4] */ 1627 edx = eax; /* 0x4200E1C3: mov edx, eax */ 1628 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 1629 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1630 eax = eax - 4; /* 0x4200E1C5: sub eax, 4 */ 1631 _flag_k = FK_CMP; 1632 /* cmp esi, ecx */ /* 0x4200E1C8: cmp esi, ecx */ 1633 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 1634 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1635 _flag_k = FK_CMP; 1636 RECOMP_BACKEDGE(); 1637 if (CMP_L(_flag_a, _flag_b)) goto L_4200E1BE; /* 0x4200E1CA: jl 0x4200e1be */ 1638 L_4200E1CC: 1639 ecx = MEM32(ebp + 0x8); /* 0x4200E1CC: mov ecx, dword ptr [ebp + 8] */ 1640 MEM32(edx) = esi; /* 0x4200E1CF: mov dword ptr [edx], esi */ 1641 edx = MEM32(ebp + 0xC); /* 0x4200E1D1: mov edx, dword ptr [ebp + 0xc] */ 1642 goto L_4200E1EB; /* 0x4200E1D4: jmp 0x4200e1eb */ 1643 L_4200E1D6: 1644 /* cmp ecx, edi */ /* 0x4200E1D6: cmp ecx, edi */ 1645 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 1646 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1647 _flag_k = FK_CMP; 1648 eax = edi; /* 0x4200E1D8: mov eax, edi */ 1649 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200E1E9; /* 0x4200E1DA: je 0x4200e1e9 */ 1650 L_4200E1DC: 1651 ebx = MEM32(eax + (-0x4)); /* 0x4200E1DC: mov ebx, dword ptr [eax - 4] */ 1652 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 1653 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1654 eax = eax - 4; /* 0x4200E1DF: sub eax, 4 */ 1655 _flag_k = FK_CMP; 1656 /* cmp eax, ecx */ /* 0x4200E1E2: cmp eax, ecx */ 1657 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1658 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1659 _flag_k = FK_CMP; 1660 MEM32(eax + 0x4) = ebx; /* 0x4200E1E4: mov dword ptr [eax + 4], ebx */ 1661 RECOMP_BACKEDGE(); 1662 if (CMP_NE(_flag_a, _flag_b)) goto L_4200E1DC; /* 0x4200E1E7: jne 0x4200e1dc */ 1663 L_4200E1E9: 1664 MEM32(ecx) = esi; /* 0x4200E1E9: mov dword ptr [ecx], esi */ 1665 L_4200E1EB: 1666 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 1667 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1668 edi = edi + 4; /* 0x4200E1EB: add edi, 4 */ 1669 _flag_k = FK_ADD; 1670 /* cmp edi, edx */ /* 0x4200E1EE: cmp edi, edx */ 1671 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 1672 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1673 _flag_k = FK_CMP; 1674 RECOMP_BACKEDGE(); 1675 if (CMP_NE(_flag_a, _flag_b)) goto L_4200E1AC; /* 0x4200E1F0: jne 0x4200e1ac */ 1676 L_4200E1F2: 1677 edi = POP32_VAL(esp); /* 0x4200E1F2: pop edi */ 1678 esi = POP32_VAL(esp); /* 0x4200E1F3: pop esi */ 1679 ebx = POP32_VAL(esp); /* 0x4200E1F4: pop ebx */ 1680 esp = ebp; /* 0x4200E1F5: mov esp, ebp */ 1681 ebp = POP32_VAL(esp); /* 0x4200E1F7: pop ebp */ 1682 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200E1F8: ret */ 1683 L_4200E1F9: 1684 /* cmp eax, 0x40u */ /* 0x4200E1F9: cmp eax, 0x40 */ 1685 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x40u); 1686 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1687 _flag_k = FK_CMP; 1688 ebx = edx; /* 0x4200E1FC: mov ebx, edx */ 1689 MEM32(ebp + (-0x4)) = ebx; /* 0x4200E1FE: mov dword ptr [ebp - 4], ebx */ 1690 edi = ecx; /* 0x4200E201: mov edi, ecx */ 1691 if (CMP_LE(_flag_a, _flag_b)) goto L_4200E2BA; /* 0x4200E203: jle 0x4200e2ba */ 1692 L_4200E209: 1693 ecx = MEM32(edi); /* 0x4200E209: mov ecx, dword ptr [edi] */ 1694 esi = MEM32(ebx + (-0x4)); /* 0x4200E20B: mov esi, dword ptr [ebx - 4] */ 1695 eax = ebx; /* 0x4200E20E: mov eax, ebx */ 1696 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 1697 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1698 eax = eax - edi; /* 0x4200E210: sub eax, edi */ 1699 _flag_k = FK_CMP; 1700 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x4200E212: sar eax, 2 */ 1701 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1702 eax = (uint32_t)((int32_t)eax >> 2u); 1703 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x4200E215: cdq */ 1704 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1705 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1706 eax = eax - edx; /* 0x4200E216: sub eax, edx */ 1707 _flag_k = FK_CMP; 1708 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x4200E218: sar eax, 1 */ 1709 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1710 eax = (uint32_t)((int32_t)eax >> 1u); 1711 eax = MEM32(edi + eax * 4); /* 0x4200E21A: mov eax, dword ptr [edi + eax*4] */ 1712 /* cmp ecx, eax */ /* 0x4200E21D: cmp ecx, eax */ 1713 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 1714 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1715 _flag_k = FK_CMP; 1716 if (CMP_GE(_flag_a, _flag_b)) goto L_4200E22D; /* 0x4200E21F: jge 0x4200e22d */ 1717 L_4200E221: 1718 /* cmp eax, esi */ /* 0x4200E221: cmp eax, esi */ 1719 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 1720 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1721 _flag_k = FK_CMP; 1722 if (CMP_L(_flag_a, _flag_b)) goto L_4200E237; /* 0x4200E223: jl 0x4200e237 */ 1723 L_4200E225: 1724 /* cmp ecx, esi */ /* 0x4200E225: cmp ecx, esi */ 1725 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 1726 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1727 _flag_k = FK_CMP; 1728 if (CMP_GE(_flag_a, _flag_b)) goto L_4200E239; /* 0x4200E227: jge 0x4200e239 */ 1729 L_4200E229: 1730 ecx = esi; /* 0x4200E229: mov ecx, esi */ 1731 goto L_4200E239; /* 0x4200E22B: jmp 0x4200e239 */ 1732 L_4200E22D: 1733 /* cmp ecx, esi */ /* 0x4200E22D: cmp ecx, esi */ 1734 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 1735 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1736 _flag_k = FK_CMP; 1737 if (CMP_L(_flag_a, _flag_b)) goto L_4200E239; /* 0x4200E22F: jl 0x4200e239 */ 1738 L_4200E231: 1739 /* cmp eax, esi */ /* 0x4200E231: cmp eax, esi */ 1740 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 1741 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1742 _flag_k = FK_CMP; 1743 ecx = esi; /* 0x4200E233: mov ecx, esi */ 1744 if (CMP_L(_flag_a, _flag_b)) goto L_4200E239; /* 0x4200E235: jl 0x4200e239 */ 1745 L_4200E237: 1746 ecx = eax; /* 0x4200E237: mov ecx, eax */ 1747 L_4200E239: 1748 eax = ebx; /* 0x4200E239: mov eax, ebx */ 1749 esi = edi; /* 0x4200E23B: mov esi, edi */ 1750 L_4200E23D: 1751 /* cmp MEM32(esi), ecx */ /* 0x4200E23D: cmp dword ptr [esi], ecx */ 1752 _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(ecx); 1753 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1754 _flag_k = FK_CMP; 1755 if (CMP_GE(_flag_a, _flag_b)) goto L_4200E24B; /* 0x4200E23F: jge 0x4200e24b */ 1756 L_4200E241: 1757 edx = MEM32(esi + 0x4); /* 0x4200E241: mov edx, dword ptr [esi + 4] */ 1758 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 1759 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1760 esi = esi + 4; /* 0x4200E244: add esi, 4 */ 1761 _flag_k = FK_ADD; 1762 /* cmp edx, ecx */ /* 0x4200E247: cmp edx, ecx */ 1763 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 1764 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1765 _flag_k = FK_CMP; 1766 RECOMP_BACKEDGE(); 1767 if (CMP_L(_flag_a, _flag_b)) goto L_4200E241; /* 0x4200E249: jl 0x4200e241 */ 1768 L_4200E24B: 1769 edx = MEM32(eax + (-0x4)); /* 0x4200E24B: mov edx, dword ptr [eax - 4] */ 1770 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 1771 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1772 eax = eax - 4; /* 0x4200E24E: sub eax, 4 */ 1773 _flag_k = FK_CMP; 1774 /* cmp ecx, edx */ /* 0x4200E251: cmp ecx, edx */ 1775 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1776 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1777 _flag_k = FK_CMP; 1778 if (CMP_GE(_flag_a, _flag_b)) goto L_4200E25F; /* 0x4200E253: jge 0x4200e25f */ 1779 L_4200E255: 1780 edx = MEM32(eax + (-0x4)); /* 0x4200E255: mov edx, dword ptr [eax - 4] */ 1781 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 1782 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1783 eax = eax - 4; /* 0x4200E258: sub eax, 4 */ 1784 _flag_k = FK_CMP; 1785 /* cmp ecx, edx */ /* 0x4200E25B: cmp ecx, edx */ 1786 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1787 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1788 _flag_k = FK_CMP; 1789 RECOMP_BACKEDGE(); 1790 if (CMP_L(_flag_a, _flag_b)) goto L_4200E255; /* 0x4200E25D: jl 0x4200e255 */ 1791 L_4200E25F: 1792 /* cmp eax, esi */ /* 0x4200E25F: cmp eax, esi */ 1793 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 1794 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1795 _flag_k = FK_CMP; 1796 if (CMP_BE(_flag_a, _flag_b)) goto L_4200E273; /* 0x4200E261: jbe 0x4200e273 */ 1797 L_4200E263: 1798 ebx = MEM32(eax); /* 0x4200E263: mov ebx, dword ptr [eax] */ 1799 edx = MEM32(esi); /* 0x4200E265: mov edx, dword ptr [esi] */ 1800 MEM32(esi) = ebx; /* 0x4200E267: mov dword ptr [esi], ebx */ 1801 ebx = MEM32(ebp + (-0x4)); /* 0x4200E269: mov ebx, dword ptr [ebp - 4] */ 1802 MEM32(eax) = edx; /* 0x4200E26C: mov dword ptr [eax], edx */ 1803 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 1804 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1805 esi = esi + 4; /* 0x4200E26E: add esi, 4 */ 1806 _flag_k = FK_ADD; 1807 RECOMP_BACKEDGE(); 1808 goto L_4200E23D; /* 0x4200E271: jmp 0x4200e23d */ 1809 L_4200E273: 1810 eax = ebx; /* 0x4200E273: mov eax, ebx */ 1811 ecx = esi; /* 0x4200E275: mov ecx, esi */ 1812 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 1813 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1814 eax = eax - esi; /* 0x4200E277: sub eax, esi */ 1815 _flag_k = FK_CMP; 1816 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 1817 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1818 ecx = ecx - edi; /* 0x4200E279: sub ecx, edi */ 1819 _flag_k = FK_CMP; 1820 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFCu); 1821 eax = eax & 0xFFFFFFFCu; /* 0x4200E27B: and eax, 0xfffffffc */ 1822 _cf = 0; 1823 _flag_k = FK_TEST; 1824 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFFCu); 1825 ecx = ecx & 0xFFFFFFFCu; /* 0x4200E27E: and ecx, 0xfffffffc */ 1826 _cf = 0; 1827 _flag_k = FK_TEST; 1828 /* cmp eax, ecx */ /* 0x4200E281: cmp eax, ecx */ 1829 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1830 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1831 _flag_k = FK_CMP; 1832 PUSH32(esp, 0); /* 0x4200E283: push 0 */ 1833 if (CMP_G(_flag_a, _flag_b)) goto L_4200E298; /* 0x4200E285: jg 0x4200e298 */ 1834 L_4200E287: 1835 PUSH32(esp, ebx); /* 0x4200E287: push ebx */ 1836 PUSH32(esp, esi); /* 0x4200E288: push esi */ 1837 RECOMP_ICALL(0x4200E350u); /* 0x4200E289: call 0x4200e350 */ /* not lifted */ 1838 RECOMP_FLAGS_IN(); 1839 ebx = esi; /* 0x4200E28E: mov ebx, esi */ 1840 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1841 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1842 esp = esp + 0xCu; /* 0x4200E290: add esp, 0xc */ 1843 _flag_k = FK_ADD; 1844 MEM32(ebp + (-0x4)) = ebx; /* 0x4200E293: mov dword ptr [ebp - 4], ebx */ 1845 goto L_4200E2A4; /* 0x4200E296: jmp 0x4200e2a4 */ 1846 L_4200E298: 1847 PUSH32(esp, esi); /* 0x4200E298: push esi */ 1848 PUSH32(esp, edi); /* 0x4200E299: push edi */ 1849 RECOMP_ICALL(0x4200E350u); /* 0x4200E29A: call 0x4200e350 */ /* not lifted */ 1850 RECOMP_FLAGS_IN(); 1851 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1852 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1853 esp = esp + 0xCu; /* 0x4200E29F: add esp, 0xc */ 1854 _flag_k = FK_ADD; 1855 edi = esi; /* 0x4200E2A2: mov edi, esi */ 1856 L_4200E2A4: 1857 edx = ebx; /* 0x4200E2A4: mov edx, ebx */ 1858 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 1859 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1860 edx = edx - edi; /* 0x4200E2A6: sub edx, edi */ 1861 _flag_k = FK_CMP; 1862 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFFCu); 1863 edx = edx & 0xFFFFFFFCu; /* 0x4200E2A8: and edx, 0xfffffffc */ 1864 _cf = 0; 1865 _flag_k = FK_TEST; 1866 /* cmp edx, 0x40u */ /* 0x4200E2AB: cmp edx, 0x40 */ 1867 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x40u); 1868 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1869 _flag_k = FK_CMP; 1870 RECOMP_BACKEDGE(); 1871 if (CMP_G(_flag_a, _flag_b)) goto L_4200E209; /* 0x4200E2AE: jg 0x4200e209 */ 1872 L_4200E2B4: 1873 ecx = MEM32(ebp + 0x8); /* 0x4200E2B4: mov ecx, dword ptr [ebp + 8] */ 1874 edx = MEM32(ebp + 0xC); /* 0x4200E2B7: mov edx, dword ptr [ebp + 0xc] */ 1875 L_4200E2BA: 1876 ebx = ecx + 0x40; /* 0x4200E2BA: lea ebx, [ecx + 0x40] */ 1877 /* cmp ecx, ebx */ /* 0x4200E2BD: cmp ecx, ebx */ 1878 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 1879 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1880 _flag_k = FK_CMP; 1881 MEM32(ebp + (-0x4)) = ebx; /* 0x4200E2BF: mov dword ptr [ebp - 4], ebx */ 1882 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200E314; /* 0x4200E2C2: je 0x4200e314 */ 1883 L_4200E2C4: 1884 edi = ecx + 0x4; /* 0x4200E2C4: lea edi, [ecx + 4] */ 1885 /* cmp edi, ebx */ /* 0x4200E2C7: cmp edi, ebx */ 1886 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1887 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1888 _flag_k = FK_CMP; 1889 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200E314; /* 0x4200E2C9: je 0x4200e314 */ 1890 L_4200E2CB: 1891 esi = MEM32(edi); /* 0x4200E2CB: mov esi, dword ptr [edi] */ 1892 /* cmp esi, MEM32(ecx) */ /* 0x4200E2CD: cmp esi, dword ptr [ecx] */ 1893 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx)); 1894 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1895 _flag_k = FK_CMP; 1896 if (CMP_L(_flag_a, _flag_b)) goto L_4200E2F5; /* 0x4200E2CF: jl 0x4200e2f5 */ 1897 L_4200E2D1: 1898 ecx = MEM32(edi + (-0x4)); /* 0x4200E2D1: mov ecx, dword ptr [edi - 4] */ 1899 /* cmp esi, ecx */ /* 0x4200E2D4: cmp esi, ecx */ 1900 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 1901 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1902 _flag_k = FK_CMP; 1903 eax = edi + (-0x4); /* 0x4200E2D6: lea eax, [edi - 4] */ 1904 edx = edi; /* 0x4200E2D9: mov edx, edi */ 1905 if (CMP_GE(_flag_a, _flag_b)) goto L_4200E2EB; /* 0x4200E2DB: jge 0x4200e2eb */ 1906 L_4200E2DD: 1907 MEM32(edx) = ecx; /* 0x4200E2DD: mov dword ptr [edx], ecx */ 1908 ecx = MEM32(eax + (-0x4)); /* 0x4200E2DF: mov ecx, dword ptr [eax - 4] */ 1909 edx = eax; /* 0x4200E2E2: mov edx, eax */ 1910 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 1911 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1912 eax = eax - 4; /* 0x4200E2E4: sub eax, 4 */ 1913 _flag_k = FK_CMP; 1914 /* cmp esi, ecx */ /* 0x4200E2E7: cmp esi, ecx */ 1915 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 1916 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1917 _flag_k = FK_CMP; 1918 RECOMP_BACKEDGE(); 1919 if (CMP_L(_flag_a, _flag_b)) goto L_4200E2DD; /* 0x4200E2E9: jl 0x4200e2dd */ 1920 L_4200E2EB: 1921 ecx = MEM32(ebp + 0x8); /* 0x4200E2EB: mov ecx, dword ptr [ebp + 8] */ 1922 MEM32(edx) = esi; /* 0x4200E2EE: mov dword ptr [edx], esi */ 1923 edx = MEM32(ebp + 0xC); /* 0x4200E2F0: mov edx, dword ptr [ebp + 0xc] */ 1924 goto L_4200E30D; /* 0x4200E2F3: jmp 0x4200e30d */ 1925 L_4200E2F5: 1926 /* cmp ecx, edi */ /* 0x4200E2F5: cmp ecx, edi */ 1927 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 1928 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1929 _flag_k = FK_CMP; 1930 eax = edi; /* 0x4200E2F7: mov eax, edi */ 1931 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200E30B; /* 0x4200E2F9: je 0x4200e30b */ 1932 L_4200E2FB: 1933 ebx = MEM32(eax + (-0x4)); /* 0x4200E2FB: mov ebx, dword ptr [eax - 4] */ 1934 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 1935 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1936 eax = eax - 4; /* 0x4200E2FE: sub eax, 4 */ 1937 _flag_k = FK_CMP; 1938 /* cmp eax, ecx */ /* 0x4200E301: cmp eax, ecx */ 1939 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1940 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1941 _flag_k = FK_CMP; 1942 MEM32(eax + 0x4) = ebx; /* 0x4200E303: mov dword ptr [eax + 4], ebx */ 1943 RECOMP_BACKEDGE(); 1944 if (CMP_NE(_flag_a, _flag_b)) goto L_4200E2FB; /* 0x4200E306: jne 0x4200e2fb */ 1945 L_4200E308: 1946 ebx = MEM32(ebp + (-0x4)); /* 0x4200E308: mov ebx, dword ptr [ebp - 4] */ 1947 L_4200E30B: 1948 MEM32(ecx) = esi; /* 0x4200E30B: mov dword ptr [ecx], esi */ 1949 L_4200E30D: 1950 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 1951 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1952 edi = edi + 4; /* 0x4200E30D: add edi, 4 */ 1953 _flag_k = FK_ADD; 1954 /* cmp edi, ebx */ /* 0x4200E310: cmp edi, ebx */ 1955 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1956 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1957 _flag_k = FK_CMP; 1958 RECOMP_BACKEDGE(); 1959 if (CMP_NE(_flag_a, _flag_b)) goto L_4200E2CB; /* 0x4200E312: jne 0x4200e2cb */ 1960 L_4200E314: 1961 edi = ebx; /* 0x4200E314: mov edi, ebx */ 1962 /* cmp edi, edx */ /* 0x4200E316: cmp edi, edx */ 1963 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 1964 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1965 _flag_k = FK_CMP; 1966 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200E342; /* 0x4200E318: je 0x4200e342 */ 1967 L_4200E31A: 1968 esi = MEM32(edi); /* 0x4200E31A: mov esi, dword ptr [edi] */ 1969 ecx = MEM32(edi + (-0x4)); /* 0x4200E31C: mov ecx, dword ptr [edi - 4] */ 1970 /* cmp esi, ecx */ /* 0x4200E31F: cmp esi, ecx */ 1971 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 1972 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1973 _flag_k = FK_CMP; 1974 eax = edi + (-0x4); /* 0x4200E321: lea eax, [edi - 4] */ 1975 edx = edi; /* 0x4200E324: mov edx, edi */ 1976 if (CMP_GE(_flag_a, _flag_b)) goto L_4200E336; /* 0x4200E326: jge 0x4200e336 */ 1977 L_4200E328: 1978 MEM32(edx) = ecx; /* 0x4200E328: mov dword ptr [edx], ecx */ 1979 ecx = MEM32(eax + (-0x4)); /* 0x4200E32A: mov ecx, dword ptr [eax - 4] */ 1980 edx = eax; /* 0x4200E32D: mov edx, eax */ 1981 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 1982 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1983 eax = eax - 4; /* 0x4200E32F: sub eax, 4 */ 1984 _flag_k = FK_CMP; 1985 /* cmp esi, ecx */ /* 0x4200E332: cmp esi, ecx */ 1986 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 1987 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1988 _flag_k = FK_CMP; 1989 RECOMP_BACKEDGE(); 1990 if (CMP_L(_flag_a, _flag_b)) goto L_4200E328; /* 0x4200E334: jl 0x4200e328 */ 1991 L_4200E336: 1992 eax = MEM32(ebp + 0xC); /* 0x4200E336: mov eax, dword ptr [ebp + 0xc] */ 1993 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 1994 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1995 edi = edi + 4; /* 0x4200E339: add edi, 4 */ 1996 _flag_k = FK_ADD; 1997 /* cmp edi, eax */ /* 0x4200E33C: cmp edi, eax */ 1998 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 1999 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2000 _flag_k = FK_CMP; 2001 MEM32(edx) = esi; /* 0x4200E33E: mov dword ptr [edx], esi */ 2002 RECOMP_BACKEDGE(); 2003 if (CMP_NE(_flag_a, _flag_b)) goto L_4200E31A; /* 0x4200E340: jne 0x4200e31a */ 2004 L_4200E342: 2005 edi = POP32_VAL(esp); /* 0x4200E342: pop edi */ 2006 esi = POP32_VAL(esp); /* 0x4200E343: pop esi */ 2007 ebx = POP32_VAL(esp); /* 0x4200E344: pop ebx */ 2008 esp = ebp; /* 0x4200E345: mov esp, ebp */ 2009 ebp = POP32_VAL(esp); /* 0x4200E347: pop ebp */ 2010 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200E348: ret */ 2011 RECOMP_REGS_OUT(); 2012 } 2013 2014 void sub_4200E350(void) { 2015 int _fpu_cmp = 0; 2016 uint32_t _cf = 0; 2017 int _df = 1; 2018 uint32_t _flag_k = FK_NONE; 2019 uint32_t _flag_a = 0, _flag_b = 0; 2020 uint32_t _itail_tgt = 0; 2021 RECOMP_REGS_LOCALS 2022 RECOMP_ENTER(0x4200E350u); 2023 2024 L_4200E350: 2025 PUSH32(esp, ebp); /* 0x4200E350: push ebp */ 2026 ebp = esp; /* 0x4200E351: mov ebp, esp */ 2027 PUSH32(esp, ebx); /* 0x4200E353: push ebx */ 2028 ebx = MEM32(ebp + 0xC); /* 0x4200E354: mov ebx, dword ptr [ebp + 0xc] */ 2029 PUSH32(esp, edi); /* 0x4200E357: push edi */ 2030 edi = MEM32(ebp + 0x8); /* 0x4200E358: mov edi, dword ptr [ebp + 8] */ 2031 eax = ebx; /* 0x4200E35B: mov eax, ebx */ 2032 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2033 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2034 eax = eax - edi; /* 0x4200E35D: sub eax, edi */ 2035 _flag_k = FK_CMP; 2036 ecx = eax; /* 0x4200E35F: mov ecx, eax */ 2037 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFFCu); 2038 ecx = ecx & 0xFFFFFFFCu; /* 0x4200E361: and ecx, 0xfffffffc */ 2039 _cf = 0; 2040 _flag_k = FK_TEST; 2041 /* cmp ecx, 0x40u */ /* 0x4200E364: cmp ecx, 0x40 */ 2042 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x40u); 2043 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2044 _flag_k = FK_CMP; 2045 if (CMP_LE(_flag_a, _flag_b)) goto L_4200E418; /* 0x4200E367: jle 0x4200e418 */ 2046 L_4200E36D: 2047 PUSH32(esp, esi); /* 0x4200E36D: push esi */ 2048 L_4200E36E: 2049 ecx = MEM32(edi); /* 0x4200E36E: mov ecx, dword ptr [edi] */ 2050 esi = MEM32(ebx + (-0x4)); /* 0x4200E370: mov esi, dword ptr [ebx - 4] */ 2051 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x4200E373: sar eax, 2 */ 2052 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2053 eax = (uint32_t)((int32_t)eax >> 2u); 2054 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x4200E376: cdq */ 2055 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2056 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2057 eax = eax - edx; /* 0x4200E377: sub eax, edx */ 2058 _flag_k = FK_CMP; 2059 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x4200E379: sar eax, 1 */ 2060 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2061 eax = (uint32_t)((int32_t)eax >> 1u); 2062 eax = MEM32(edi + eax * 4); /* 0x4200E37B: mov eax, dword ptr [edi + eax*4] */ 2063 /* cmp ecx, eax */ /* 0x4200E37E: cmp ecx, eax */ 2064 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2065 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2066 _flag_k = FK_CMP; 2067 if (CMP_GE(_flag_a, _flag_b)) goto L_4200E38E; /* 0x4200E380: jge 0x4200e38e */ 2068 L_4200E382: 2069 /* cmp eax, esi */ /* 0x4200E382: cmp eax, esi */ 2070 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 2071 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2072 _flag_k = FK_CMP; 2073 if (CMP_L(_flag_a, _flag_b)) goto L_4200E398; /* 0x4200E384: jl 0x4200e398 */ 2074 L_4200E386: 2075 /* cmp ecx, esi */ /* 0x4200E386: cmp ecx, esi */ 2076 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 2077 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2078 _flag_k = FK_CMP; 2079 if (CMP_GE(_flag_a, _flag_b)) goto L_4200E39A; /* 0x4200E388: jge 0x4200e39a */ 2080 L_4200E38A: 2081 ecx = esi; /* 0x4200E38A: mov ecx, esi */ 2082 goto L_4200E39A; /* 0x4200E38C: jmp 0x4200e39a */ 2083 L_4200E38E: 2084 /* cmp ecx, esi */ /* 0x4200E38E: cmp ecx, esi */ 2085 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 2086 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2087 _flag_k = FK_CMP; 2088 if (CMP_L(_flag_a, _flag_b)) goto L_4200E39A; /* 0x4200E390: jl 0x4200e39a */ 2089 L_4200E392: 2090 /* cmp eax, esi */ /* 0x4200E392: cmp eax, esi */ 2091 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 2092 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2093 _flag_k = FK_CMP; 2094 ecx = esi; /* 0x4200E394: mov ecx, esi */ 2095 if (CMP_L(_flag_a, _flag_b)) goto L_4200E39A; /* 0x4200E396: jl 0x4200e39a */ 2096 L_4200E398: 2097 ecx = eax; /* 0x4200E398: mov ecx, eax */ 2098 L_4200E39A: 2099 eax = ebx; /* 0x4200E39A: mov eax, ebx */ 2100 esi = edi; /* 0x4200E39C: mov esi, edi */ 2101 L_4200E39E: 2102 /* cmp MEM32(esi), ecx */ /* 0x4200E39E: cmp dword ptr [esi], ecx */ 2103 _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(ecx); 2104 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2105 _flag_k = FK_CMP; 2106 if (CMP_GE(_flag_a, _flag_b)) goto L_4200E3AC; /* 0x4200E3A0: jge 0x4200e3ac */ 2107 L_4200E3A2: 2108 edx = MEM32(esi + 0x4); /* 0x4200E3A2: mov edx, dword ptr [esi + 4] */ 2109 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 2110 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2111 esi = esi + 4; /* 0x4200E3A5: add esi, 4 */ 2112 _flag_k = FK_ADD; 2113 /* cmp edx, ecx */ /* 0x4200E3A8: cmp edx, ecx */ 2114 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 2115 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2116 _flag_k = FK_CMP; 2117 RECOMP_BACKEDGE(); 2118 if (CMP_L(_flag_a, _flag_b)) goto L_4200E3A2; /* 0x4200E3AA: jl 0x4200e3a2 */ 2119 L_4200E3AC: 2120 edx = MEM32(eax + (-0x4)); /* 0x4200E3AC: mov edx, dword ptr [eax - 4] */ 2121 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2122 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2123 eax = eax - 4; /* 0x4200E3AF: sub eax, 4 */ 2124 _flag_k = FK_CMP; 2125 /* cmp ecx, edx */ /* 0x4200E3B2: cmp ecx, edx */ 2126 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 2127 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2128 _flag_k = FK_CMP; 2129 if (CMP_GE(_flag_a, _flag_b)) goto L_4200E3C0; /* 0x4200E3B4: jge 0x4200e3c0 */ 2130 L_4200E3B6: 2131 edx = MEM32(eax + (-0x4)); /* 0x4200E3B6: mov edx, dword ptr [eax - 4] */ 2132 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2133 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2134 eax = eax - 4; /* 0x4200E3B9: sub eax, 4 */ 2135 _flag_k = FK_CMP; 2136 /* cmp ecx, edx */ /* 0x4200E3BC: cmp ecx, edx */ 2137 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 2138 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2139 _flag_k = FK_CMP; 2140 RECOMP_BACKEDGE(); 2141 if (CMP_L(_flag_a, _flag_b)) goto L_4200E3B6; /* 0x4200E3BE: jl 0x4200e3b6 */ 2142 L_4200E3C0: 2143 /* cmp eax, esi */ /* 0x4200E3C0: cmp eax, esi */ 2144 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 2145 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2146 _flag_k = FK_CMP; 2147 if (CMP_BE(_flag_a, _flag_b)) goto L_4200E3D4; /* 0x4200E3C2: jbe 0x4200e3d4 */ 2148 L_4200E3C4: 2149 ebx = MEM32(eax); /* 0x4200E3C4: mov ebx, dword ptr [eax] */ 2150 edx = MEM32(esi); /* 0x4200E3C6: mov edx, dword ptr [esi] */ 2151 MEM32(esi) = ebx; /* 0x4200E3C8: mov dword ptr [esi], ebx */ 2152 ebx = MEM32(ebp + 0xC); /* 0x4200E3CA: mov ebx, dword ptr [ebp + 0xc] */ 2153 MEM32(eax) = edx; /* 0x4200E3CD: mov dword ptr [eax], edx */ 2154 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 2155 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2156 esi = esi + 4; /* 0x4200E3CF: add esi, 4 */ 2157 _flag_k = FK_ADD; 2158 RECOMP_BACKEDGE(); 2159 goto L_4200E39E; /* 0x4200E3D2: jmp 0x4200e39e */ 2160 L_4200E3D4: 2161 edx = ebx; /* 0x4200E3D4: mov edx, ebx */ 2162 eax = esi; /* 0x4200E3D6: mov eax, esi */ 2163 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 2164 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2165 edx = edx - esi; /* 0x4200E3D8: sub edx, esi */ 2166 _flag_k = FK_CMP; 2167 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2168 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2169 eax = eax - edi; /* 0x4200E3DA: sub eax, edi */ 2170 _flag_k = FK_CMP; 2171 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFFCu); 2172 edx = edx & 0xFFFFFFFCu; /* 0x4200E3DC: and edx, 0xfffffffc */ 2173 _cf = 0; 2174 _flag_k = FK_TEST; 2175 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFCu); 2176 eax = eax & 0xFFFFFFFCu; /* 0x4200E3DF: and eax, 0xfffffffc */ 2177 _cf = 0; 2178 _flag_k = FK_TEST; 2179 /* cmp edx, eax */ /* 0x4200E3E2: cmp edx, eax */ 2180 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2181 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2182 _flag_k = FK_CMP; 2183 PUSH32(esp, 0); /* 0x4200E3E4: push 0 */ 2184 if (CMP_G(_flag_a, _flag_b)) goto L_4200E3F9; /* 0x4200E3E6: jg 0x4200e3f9 */ 2185 L_4200E3E8: 2186 PUSH32(esp, ebx); /* 0x4200E3E8: push ebx */ 2187 PUSH32(esp, esi); /* 0x4200E3E9: push esi */ 2188 RECOMP_ICALL(0x4200E350u); /* 0x4200E3EA: call 0x4200e350 */ /* not lifted */ 2189 RECOMP_FLAGS_IN(); 2190 ebx = esi; /* 0x4200E3EF: mov ebx, esi */ 2191 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2192 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2193 esp = esp + 0xCu; /* 0x4200E3F1: add esp, 0xc */ 2194 _flag_k = FK_ADD; 2195 MEM32(ebp + 0xC) = ebx; /* 0x4200E3F4: mov dword ptr [ebp + 0xc], ebx */ 2196 goto L_4200E405; /* 0x4200E3F7: jmp 0x4200e405 */ 2197 L_4200E3F9: 2198 PUSH32(esp, esi); /* 0x4200E3F9: push esi */ 2199 PUSH32(esp, edi); /* 0x4200E3FA: push edi */ 2200 RECOMP_ICALL(0x4200E350u); /* 0x4200E3FB: call 0x4200e350 */ /* not lifted */ 2201 RECOMP_FLAGS_IN(); 2202 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2203 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2204 esp = esp + 0xCu; /* 0x4200E400: add esp, 0xc */ 2205 _flag_k = FK_ADD; 2206 edi = esi; /* 0x4200E403: mov edi, esi */ 2207 L_4200E405: 2208 eax = ebx; /* 0x4200E405: mov eax, ebx */ 2209 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2210 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2211 eax = eax - edi; /* 0x4200E407: sub eax, edi */ 2212 _flag_k = FK_CMP; 2213 ecx = eax; /* 0x4200E409: mov ecx, eax */ 2214 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFFCu); 2215 ecx = ecx & 0xFFFFFFFCu; /* 0x4200E40B: and ecx, 0xfffffffc */ 2216 _cf = 0; 2217 _flag_k = FK_TEST; 2218 /* cmp ecx, 0x40u */ /* 0x4200E40E: cmp ecx, 0x40 */ 2219 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x40u); 2220 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2221 _flag_k = FK_CMP; 2222 RECOMP_BACKEDGE(); 2223 if (CMP_G(_flag_a, _flag_b)) goto L_4200E36E; /* 0x4200E411: jg 0x4200e36e */ 2224 L_4200E417: 2225 esi = POP32_VAL(esp); /* 0x4200E417: pop esi */ 2226 L_4200E418: 2227 edi = POP32_VAL(esp); /* 0x4200E418: pop edi */ 2228 ebx = POP32_VAL(esp); /* 0x4200E419: pop ebx */ 2229 ebp = POP32_VAL(esp); /* 0x4200E41A: pop ebp */ 2230 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200E41B: ret */ 2231 RECOMP_REGS_OUT(); 2232 } 2233 2234 void sub_4200E420(void) { 2235 int _fpu_cmp = 0; 2236 uint32_t _cf = 0; 2237 int _df = 1; 2238 uint32_t _flag_k = FK_NONE; 2239 uint32_t _flag_a = 0, _flag_b = 0; 2240 uint32_t _itail_tgt = 0; 2241 RECOMP_REGS_LOCALS 2242 RECOMP_ENTER(0x4200E420u); 2243 2244 L_4200E420: 2245 PUSH32(esp, ebp); /* 0x4200E420: push ebp */ 2246 ebp = esp; /* 0x4200E421: mov ebp, esp */ 2247 edx = MEM32(ebp + 0x8); /* 0x4200E423: mov edx, dword ptr [ebp + 8] */ 2248 ecx = MEM32(edx + (-0x4)); /* 0x4200E426: mov ecx, dword ptr [edx - 4] */ 2249 eax = edx + (-0x4); /* 0x4200E429: lea eax, [edx - 4] */ 2250 PUSH32(esp, esi); /* 0x4200E42C: push esi */ 2251 esi = MEM32(ebp + 0xC); /* 0x4200E42D: mov esi, dword ptr [ebp + 0xc] */ 2252 /* cmp esi, ecx */ /* 0x4200E430: cmp esi, ecx */ 2253 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 2254 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2255 _flag_k = FK_CMP; 2256 if (CMP_GE(_flag_a, _flag_b)) goto L_4200E442; /* 0x4200E432: jge 0x4200e442 */ 2257 L_4200E434: 2258 MEM32(edx) = ecx; /* 0x4200E434: mov dword ptr [edx], ecx */ 2259 ecx = MEM32(eax + (-0x4)); /* 0x4200E436: mov ecx, dword ptr [eax - 4] */ 2260 edx = eax; /* 0x4200E439: mov edx, eax */ 2261 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2262 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2263 eax = eax - 4; /* 0x4200E43B: sub eax, 4 */ 2264 _flag_k = FK_CMP; 2265 /* cmp esi, ecx */ /* 0x4200E43E: cmp esi, ecx */ 2266 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 2267 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2268 _flag_k = FK_CMP; 2269 RECOMP_BACKEDGE(); 2270 if (CMP_L(_flag_a, _flag_b)) goto L_4200E434; /* 0x4200E440: jl 0x4200e434 */ 2271 L_4200E442: 2272 MEM32(edx) = esi; /* 0x4200E442: mov dword ptr [edx], esi */ 2273 esi = POP32_VAL(esp); /* 0x4200E444: pop esi */ 2274 ebp = POP32_VAL(esp); /* 0x4200E445: pop ebp */ 2275 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200E446: ret */ 2276 RECOMP_REGS_OUT(); 2277 } 2278 2279 void sub_4200E450(void) { 2280 int _fpu_cmp = 0; 2281 uint32_t _cf = 0; 2282 int _df = 1; 2283 uint32_t _flag_k = FK_NONE; 2284 uint32_t _flag_a = 0, _flag_b = 0; 2285 uint32_t _itail_tgt = 0; 2286 RECOMP_REGS_LOCALS 2287 RECOMP_ENTER(0x4200E450u); 2288 2289 L_4200E450: 2290 PUSH32(esp, ebp); /* 0x4200E450: push ebp */ 2291 ebp = esp; /* 0x4200E451: mov ebp, esp */ 2292 ecx = MEM32(ebp + 0xC); /* 0x4200E453: mov ecx, dword ptr [ebp + 0xc] */ 2293 PUSH32(esp, ebx); /* 0x4200E456: push ebx */ 2294 ebx = MEM32(ebp + 0x8); /* 0x4200E457: mov ebx, dword ptr [ebp + 8] */ 2295 /* cmp ebx, ecx */ /* 0x4200E45A: cmp ebx, ecx */ 2296 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 2297 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2298 _flag_k = FK_CMP; 2299 PUSH32(esp, edi); /* 0x4200E45C: push edi */ 2300 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200E4AB; /* 0x4200E45D: je 0x4200e4ab */ 2301 L_4200E45F: 2302 edi = ebx + 0x4; /* 0x4200E45F: lea edi, [ebx + 4] */ 2303 /* cmp edi, ecx */ /* 0x4200E462: cmp edi, ecx */ 2304 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 2305 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2306 _flag_k = FK_CMP; 2307 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200E4AB; /* 0x4200E464: je 0x4200e4ab */ 2308 L_4200E466: 2309 PUSH32(esp, esi); /* 0x4200E466: push esi */ 2310 L_4200E467: 2311 esi = MEM32(edi); /* 0x4200E467: mov esi, dword ptr [edi] */ 2312 /* cmp esi, MEM32(ebx) */ /* 0x4200E469: cmp esi, dword ptr [ebx] */ 2313 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebx)); 2314 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2315 _flag_k = FK_CMP; 2316 if (CMP_L(_flag_a, _flag_b)) goto L_4200E48E; /* 0x4200E46B: jl 0x4200e48e */ 2317 L_4200E46D: 2318 ecx = MEM32(edi + (-0x4)); /* 0x4200E46D: mov ecx, dword ptr [edi - 4] */ 2319 /* cmp esi, ecx */ /* 0x4200E470: cmp esi, ecx */ 2320 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 2321 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2322 _flag_k = FK_CMP; 2323 eax = edi + (-0x4); /* 0x4200E472: lea eax, [edi - 4] */ 2324 edx = edi; /* 0x4200E475: mov edx, edi */ 2325 if (CMP_GE(_flag_a, _flag_b)) goto L_4200E487; /* 0x4200E477: jge 0x4200e487 */ 2326 L_4200E479: 2327 MEM32(edx) = ecx; /* 0x4200E479: mov dword ptr [edx], ecx */ 2328 ecx = MEM32(eax + (-0x4)); /* 0x4200E47B: mov ecx, dword ptr [eax - 4] */ 2329 edx = eax; /* 0x4200E47E: mov edx, eax */ 2330 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2331 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2332 eax = eax - 4; /* 0x4200E480: sub eax, 4 */ 2333 _flag_k = FK_CMP; 2334 /* cmp esi, ecx */ /* 0x4200E483: cmp esi, ecx */ 2335 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 2336 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2337 _flag_k = FK_CMP; 2338 RECOMP_BACKEDGE(); 2339 if (CMP_L(_flag_a, _flag_b)) goto L_4200E479; /* 0x4200E485: jl 0x4200e479 */ 2340 L_4200E487: 2341 ecx = MEM32(ebp + 0xC); /* 0x4200E487: mov ecx, dword ptr [ebp + 0xc] */ 2342 MEM32(edx) = esi; /* 0x4200E48A: mov dword ptr [edx], esi */ 2343 goto L_4200E4A3; /* 0x4200E48C: jmp 0x4200e4a3 */ 2344 L_4200E48E: 2345 /* cmp ebx, edi */ /* 0x4200E48E: cmp ebx, edi */ 2346 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 2347 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2348 _flag_k = FK_CMP; 2349 eax = edi; /* 0x4200E490: mov eax, edi */ 2350 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200E4A1; /* 0x4200E492: je 0x4200e4a1 */ 2351 L_4200E494: 2352 edx = MEM32(eax + (-0x4)); /* 0x4200E494: mov edx, dword ptr [eax - 4] */ 2353 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2354 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2355 eax = eax - 4; /* 0x4200E497: sub eax, 4 */ 2356 _flag_k = FK_CMP; 2357 /* cmp eax, ebx */ /* 0x4200E49A: cmp eax, ebx */ 2358 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2359 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2360 _flag_k = FK_CMP; 2361 MEM32(eax + 0x4) = edx; /* 0x4200E49C: mov dword ptr [eax + 4], edx */ 2362 RECOMP_BACKEDGE(); 2363 if (CMP_NE(_flag_a, _flag_b)) goto L_4200E494; /* 0x4200E49F: jne 0x4200e494 */ 2364 L_4200E4A1: 2365 MEM32(ebx) = esi; /* 0x4200E4A1: mov dword ptr [ebx], esi */ 2366 L_4200E4A3: 2367 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 2368 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2369 edi = edi + 4; /* 0x4200E4A3: add edi, 4 */ 2370 _flag_k = FK_ADD; 2371 /* cmp edi, ecx */ /* 0x4200E4A6: cmp edi, ecx */ 2372 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 2373 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2374 _flag_k = FK_CMP; 2375 RECOMP_BACKEDGE(); 2376 if (CMP_NE(_flag_a, _flag_b)) goto L_4200E467; /* 0x4200E4A8: jne 0x4200e467 */ 2377 L_4200E4AA: 2378 esi = POP32_VAL(esp); /* 0x4200E4AA: pop esi */ 2379 L_4200E4AB: 2380 edi = POP32_VAL(esp); /* 0x4200E4AB: pop edi */ 2381 ebx = POP32_VAL(esp); /* 0x4200E4AC: pop ebx */ 2382 ebp = POP32_VAL(esp); /* 0x4200E4AD: pop ebp */ 2383 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200E4AE: ret */ 2384 RECOMP_REGS_OUT(); 2385 } 2386 2387 void sub_4200E4B0(void) { 2388 int _fpu_cmp = 0; 2389 uint32_t _cf = 0; 2390 int _df = 1; 2391 uint32_t _flag_k = FK_NONE; 2392 uint32_t _flag_a = 0, _flag_b = 0; 2393 uint32_t _itail_tgt = 0; 2394 RECOMP_REGS_LOCALS 2395 RECOMP_ENTER(0x4200E4B0u); 2396 2397 L_4200E4B0: 2398 PUSH32(esp, ebp); /* 0x4200E4B0: push ebp */ 2399 ebp = esp; /* 0x4200E4B1: mov ebp, esp */ 2400 edx = MEM32(ebp + 0x10); /* 0x4200E4B3: mov edx, dword ptr [ebp + 0x10] */ 2401 ecx = MEM32(ebp + 0xC); /* 0x4200E4B6: mov ecx, dword ptr [ebp + 0xc] */ 2402 eax = MEM32(ebp + 0x8); /* 0x4200E4B9: mov eax, dword ptr [ebp + 8] */ 2403 PUSH32(esp, esi); /* 0x4200E4BC: push esi */ 2404 PUSH32(esp, edi); /* 0x4200E4BD: push edi */ 2405 L_4200E4BE: 2406 /* cmp MEM32(eax), edx */ /* 0x4200E4BE: cmp dword ptr [eax], edx */ 2407 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(edx); 2408 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2409 _flag_k = FK_CMP; 2410 if (CMP_GE(_flag_a, _flag_b)) goto L_4200E4CC; /* 0x4200E4C0: jge 0x4200e4cc */ 2411 L_4200E4C2: 2412 esi = MEM32(eax + 0x4); /* 0x4200E4C2: mov esi, dword ptr [eax + 4] */ 2413 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2414 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2415 eax = eax + 4; /* 0x4200E4C5: add eax, 4 */ 2416 _flag_k = FK_ADD; 2417 /* cmp esi, edx */ /* 0x4200E4C8: cmp esi, edx */ 2418 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 2419 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2420 _flag_k = FK_CMP; 2421 RECOMP_BACKEDGE(); 2422 if (CMP_L(_flag_a, _flag_b)) goto L_4200E4C2; /* 0x4200E4CA: jl 0x4200e4c2 */ 2423 L_4200E4CC: 2424 esi = MEM32(ecx + (-0x4)); /* 0x4200E4CC: mov esi, dword ptr [ecx - 4] */ 2425 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 2426 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2427 ecx = ecx - 4; /* 0x4200E4CF: sub ecx, 4 */ 2428 _flag_k = FK_CMP; 2429 /* cmp edx, esi */ /* 0x4200E4D2: cmp edx, esi */ 2430 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 2431 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2432 _flag_k = FK_CMP; 2433 if (CMP_GE(_flag_a, _flag_b)) goto L_4200E4E0; /* 0x4200E4D4: jge 0x4200e4e0 */ 2434 L_4200E4D6: 2435 esi = MEM32(ecx + (-0x4)); /* 0x4200E4D6: mov esi, dword ptr [ecx - 4] */ 2436 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 2437 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2438 ecx = ecx - 4; /* 0x4200E4D9: sub ecx, 4 */ 2439 _flag_k = FK_CMP; 2440 /* cmp edx, esi */ /* 0x4200E4DC: cmp edx, esi */ 2441 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 2442 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2443 _flag_k = FK_CMP; 2444 RECOMP_BACKEDGE(); 2445 if (CMP_L(_flag_a, _flag_b)) goto L_4200E4D6; /* 0x4200E4DE: jl 0x4200e4d6 */ 2446 L_4200E4E0: 2447 /* cmp ecx, eax */ /* 0x4200E4E0: cmp ecx, eax */ 2448 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2449 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2450 _flag_k = FK_CMP; 2451 if (CMP_BE(_flag_a, _flag_b)) goto L_4200E4F1; /* 0x4200E4E2: jbe 0x4200e4f1 */ 2452 L_4200E4E4: 2453 esi = MEM32(eax); /* 0x4200E4E4: mov esi, dword ptr [eax] */ 2454 edi = MEM32(ecx); /* 0x4200E4E6: mov edi, dword ptr [ecx] */ 2455 MEM32(eax) = edi; /* 0x4200E4E8: mov dword ptr [eax], edi */ 2456 MEM32(ecx) = esi; /* 0x4200E4EA: mov dword ptr [ecx], esi */ 2457 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2458 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2459 eax = eax + 4; /* 0x4200E4EC: add eax, 4 */ 2460 _flag_k = FK_ADD; 2461 RECOMP_BACKEDGE(); 2462 goto L_4200E4BE; /* 0x4200E4EF: jmp 0x4200e4be */ 2463 L_4200E4F1: 2464 edi = POP32_VAL(esp); /* 0x4200E4F1: pop edi */ 2465 esi = POP32_VAL(esp); /* 0x4200E4F2: pop esi */ 2466 ebp = POP32_VAL(esp); /* 0x4200E4F3: pop ebp */ 2467 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200E4F4: ret */ 2468 RECOMP_REGS_OUT(); 2469 } 2470 2471 void sub_4200E500(void) { 2472 int _fpu_cmp = 0; 2473 uint32_t _cf = 0; 2474 int _df = 1; 2475 uint32_t _flag_k = FK_NONE; 2476 uint32_t _flag_a = 0, _flag_b = 0; 2477 uint32_t _itail_tgt = 0; 2478 RECOMP_REGS_LOCALS 2479 RECOMP_ENTER(0x4200E500u); 2480 2481 L_4200E500: 2482 PUSH32(esp, ebp); /* 0x4200E500: push ebp */ 2483 ebp = esp; /* 0x4200E501: mov ebp, esp */ 2484 PUSH32(esp, esi); /* 0x4200E503: push esi */ 2485 PUSH32(esp, edi); /* 0x4200E504: push edi */ 2486 edi = MEM32(ebp + 0x8); /* 0x4200E505: mov edi, dword ptr [ebp + 8] */ 2487 esi = ecx; /* 0x4200E508: mov esi, ecx */ 2488 PUSH32(esp, edi); /* 0x4200E50A: push edi */ 2489 RECOMP_ICALL(0x42003CD0u); /* 0x4200E50B: call 0x42003cd0 */ /* not lifted */ 2490 RECOMP_FLAGS_IN(); 2491 eax = MEM32(edi + 0x24); /* 0x4200E510: mov eax, dword ptr [edi + 0x24] */ 2492 MEM32(esi + 0x24) = eax; /* 0x4200E513: mov dword ptr [esi + 0x24], eax */ 2493 ecx = MEM32(edi + 0x28); /* 0x4200E516: mov ecx, dword ptr [edi + 0x28] */ 2494 MEM32(esi + 0x28) = ecx; /* 0x4200E519: mov dword ptr [esi + 0x28], ecx */ 2495 edx = MEM32(edi + 0x2C); /* 0x4200E51C: mov edx, dword ptr [edi + 0x2c] */ 2496 MEM32(esi + 0x2C) = edx; /* 0x4200E51F: mov dword ptr [esi + 0x2c], edx */ 2497 eax = MEM32(edi + 0x30); /* 0x4200E522: mov eax, dword ptr [edi + 0x30] */ 2498 MEM32(esi + 0x30) = eax; /* 0x4200E525: mov dword ptr [esi + 0x30], eax */ 2499 ecx = MEM32(edi + 0x34); /* 0x4200E528: mov ecx, dword ptr [edi + 0x34] */ 2500 MEM32(esi + 0x34) = ecx; /* 0x4200E52B: mov dword ptr [esi + 0x34], ecx */ 2501 edx = MEM32(edi + 0x38); /* 0x4200E52E: mov edx, dword ptr [edi + 0x38] */ 2502 edi = POP32_VAL(esp); /* 0x4200E531: pop edi */ 2503 MEM32(esi + 0x38) = edx; /* 0x4200E532: mov dword ptr [esi + 0x38], edx */ 2504 MEM32(esi) = 0x42018524u; /* 0x4200E535: mov dword ptr [esi], 0x42018524 */ 2505 MEM32(esi + 0x4) = 0x4201851Cu; /* 0x4200E53B: mov dword ptr [esi + 4], 0x4201851c */ 2506 eax = esi; /* 0x4200E542: mov eax, esi */ 2507 esi = POP32_VAL(esp); /* 0x4200E544: pop esi */ 2508 ebp = POP32_VAL(esp); /* 0x4200E545: pop ebp */ 2509 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4200E546: ret 4 */ 2510 RECOMP_REGS_OUT(); 2511 } 2512 2513 void sub_4200E550(void) { 2514 int _fpu_cmp = 0; 2515 uint32_t _cf = 0; 2516 int _df = 1; 2517 uint32_t _flag_k = FK_NONE; 2518 uint32_t _flag_a = 0, _flag_b = 0; 2519 uint32_t _itail_tgt = 0; 2520 RECOMP_REGS_LOCALS 2521 RECOMP_ENTER(0x4200E550u); 2522 2523 L_4200E550: 2524 PUSH32(esp, ebp); /* 0x4200E550: push ebp */ 2525 ebp = esp; /* 0x4200E551: mov ebp, esp */ 2526 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2527 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2528 esp = esp - 0xCu; /* 0x4200E553: sub esp, 0xc */ 2529 _flag_k = FK_CMP; 2530 eax = MEM32(ebp + 0x8); /* 0x4200E556: mov eax, dword ptr [ebp + 8] */ 2531 SET_LO8(edx, MEM8(eax + 0x8)); /* 0x4200E559: mov dl, byte ptr [eax + 8] */ 2532 PUSH32(esp, ebx); /* 0x4200E55C: push ebx */ 2533 PUSH32(esp, esi); /* 0x4200E55D: push esi */ 2534 PUSH32(esp, edi); /* 0x4200E55E: push edi */ 2535 ebx = eax + 0xC; /* 0x4200E55F: lea ebx, [eax + 0xc] */ 2536 edi = ecx + 0xC; /* 0x4200E562: lea edi, [ecx + 0xc] */ 2537 /* cmp edi, ebx */ /* 0x4200E565: cmp edi, ebx */ 2538 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2539 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2540 _flag_k = FK_CMP; 2541 MEM32(ebp + (-0xC)) = ecx; /* 0x4200E567: mov dword ptr [ebp - 0xc], ecx */ 2542 MEM8(ecx + 0x8) = (uint8_t)(LO8(edx)); /* 0x4200E56A: mov byte ptr [ecx + 8], dl */ 2543 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200E615; /* 0x4200E56D: je 0x4200e615 */ 2544 L_4200E573: 2545 esi = MEM32(edi + 0x4); /* 0x4200E573: mov esi, dword ptr [edi + 4] */ 2546 ebx = MEM32(ebx + 0x4); /* 0x4200E576: mov ebx, dword ptr [ebx + 4] */ 2547 edx = MEM32(esi); /* 0x4200E579: mov edx, dword ptr [esi] */ 2548 /* cmp edx, esi */ /* 0x4200E57B: cmp edx, esi */ 2549 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 2550 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2551 _flag_k = FK_CMP; 2552 eax = MEM32(ebx); /* 0x4200E57D: mov eax, dword ptr [ebx] */ 2553 MEM32(ebp + (-0x8)) = ebx; /* 0x4200E57F: mov dword ptr [ebp - 8], ebx */ 2554 MEM32(ebp + (-0x4)) = eax; /* 0x4200E582: mov dword ptr [ebp - 4], eax */ 2555 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200E5A1; /* 0x4200E585: je 0x4200e5a1 */ 2556 L_4200E587: 2557 goto L_4200E58C; /* 0x4200E587: jmp 0x4200e58c */ 2558 L_4200E589: 2559 ebx = MEM32(ebp + (-0x8)); /* 0x4200E589: mov ebx, dword ptr [ebp - 8] */ 2560 L_4200E58C: 2561 /* cmp eax, ebx */ /* 0x4200E58C: cmp eax, ebx */ 2562 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2563 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2564 _flag_k = FK_CMP; 2565 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200E5A1; /* 0x4200E58E: je 0x4200e5a1 */ 2566 L_4200E590: 2567 ebx = MEM32(eax + 0x8); /* 0x4200E590: mov ebx, dword ptr [eax + 8] */ 2568 MEM32(edx + 0x8) = ebx; /* 0x4200E593: mov dword ptr [edx + 8], ebx */ 2569 edx = MEM32(edx); /* 0x4200E596: mov edx, dword ptr [edx] */ 2570 /* cmp edx, esi */ /* 0x4200E598: cmp edx, esi */ 2571 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 2572 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2573 _flag_k = FK_CMP; 2574 eax = MEM32(eax); /* 0x4200E59A: mov eax, dword ptr [eax] */ 2575 MEM32(ebp + (-0x4)) = eax; /* 0x4200E59C: mov dword ptr [ebp - 4], eax */ 2576 RECOMP_BACKEDGE(); 2577 if (CMP_NE(_flag_a, _flag_b)) goto L_4200E589; /* 0x4200E59F: jne 0x4200e589 */ 2578 L_4200E5A1: 2579 /* cmp edx, esi */ /* 0x4200E5A1: cmp edx, esi */ 2580 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 2581 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2582 _flag_k = FK_CMP; 2583 ebx = edx; /* 0x4200E5A3: mov ebx, edx */ 2584 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200E5D4; /* 0x4200E5A5: je 0x4200e5d4 */ 2585 L_4200E5A7: 2586 eax = ebx; /* 0x4200E5A7: mov eax, ebx */ 2587 ecx = MEM32(eax + 0x4); /* 0x4200E5A9: mov ecx, dword ptr [eax + 4] */ 2588 edx = MEM32(eax); /* 0x4200E5AC: mov edx, dword ptr [eax] */ 2589 ebx = MEM32(ebx); /* 0x4200E5AE: mov ebx, dword ptr [ebx] */ 2590 MEM32(ecx) = edx; /* 0x4200E5B0: mov dword ptr [ecx], edx */ 2591 ecx = MEM32(eax); /* 0x4200E5B2: mov ecx, dword ptr [eax] */ 2592 edx = MEM32(eax + 0x4); /* 0x4200E5B4: mov edx, dword ptr [eax + 4] */ 2593 PUSH32(esp, eax); /* 0x4200E5B7: push eax */ 2594 MEM32(ecx + 0x4) = edx; /* 0x4200E5B8: mov dword ptr [ecx + 4], edx */ 2595 RECOMP_ICALL(0x42016DD0u); /* 0x4200E5BB: call 0x42016dd0 */ /* not lifted */ 2596 RECOMP_FLAGS_IN(); 2597 ecx = MEM32(edi + 0x8); /* 0x4200E5C0: mov ecx, dword ptr [edi + 8] */ 2598 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2599 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2600 esp = esp + 4; /* 0x4200E5C3: add esp, 4 */ 2601 _flag_k = FK_ADD; 2602 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2603 ecx = ecx - 1; /* 0x4200E5C6: dec ecx */ 2604 _flag_k = FK_DEC; 2605 /* cmp ebx, esi */ /* 0x4200E5C7: cmp ebx, esi */ 2606 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 2607 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2608 _flag_k = FK_CMP; 2609 MEM32(edi + 0x8) = ecx; /* 0x4200E5C9: mov dword ptr [edi + 8], ecx */ 2610 RECOMP_BACKEDGE(); 2611 if (CMP_NE(_flag_a, _flag_b)) goto L_4200E5A7; /* 0x4200E5CC: jne 0x4200e5a7 */ 2612 L_4200E5CE: 2613 ecx = MEM32(ebp + (-0xC)); /* 0x4200E5CE: mov ecx, dword ptr [ebp - 0xc] */ 2614 eax = MEM32(ebp + (-0x4)); /* 0x4200E5D1: mov eax, dword ptr [ebp - 4] */ 2615 L_4200E5D4: 2616 /* cmp eax, MEM32(ebp + (-0x8)) */ /* 0x4200E5D4: cmp eax, dword ptr [ebp - 8] */ 2617 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x8))); 2618 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2619 _flag_k = FK_CMP; 2620 ebx = eax; /* 0x4200E5D7: mov ebx, eax */ 2621 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200E612; /* 0x4200E5D9: je 0x4200e612 */ 2622 L_4200E5DB: 2623 eax = MEM32(esi + 0x4); /* 0x4200E5DB: mov eax, dword ptr [esi + 4] */ 2624 PUSH32(esp, eax); /* 0x4200E5DE: push eax */ 2625 PUSH32(esp, esi); /* 0x4200E5DF: push esi */ 2626 ecx = edi; /* 0x4200E5E0: mov ecx, edi */ 2627 RECOMP_ICALL(0x42005D10u); /* 0x4200E5E2: call 0x42005d10 */ /* not lifted */ 2628 RECOMP_FLAGS_IN(); 2629 MEM32(esi + 0x4) = eax; /* 0x4200E5E7: mov dword ptr [esi + 4], eax */ 2630 ecx = MEM32(eax + 0x4); /* 0x4200E5EA: mov ecx, dword ptr [eax + 4] */ 2631 edx = ebx + 0x8; /* 0x4200E5ED: lea edx, [ebx + 8] */ 2632 MEM32(ecx) = eax; /* 0x4200E5F0: mov dword ptr [ecx], eax */ 2633 PUSH32(esp, edx); /* 0x4200E5F2: push edx */ 2634 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 2635 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2636 eax = eax + 8; /* 0x4200E5F3: add eax, 8 */ 2637 _flag_k = FK_ADD; 2638 PUSH32(esp, eax); /* 0x4200E5F6: push eax */ 2639 RECOMP_ICALL(0x42004A70u); /* 0x4200E5F7: call 0x42004a70 */ /* not lifted */ 2640 RECOMP_FLAGS_IN(); 2641 ecx = MEM32(edi + 0x8); /* 0x4200E5FC: mov ecx, dword ptr [edi + 8] */ 2642 eax = MEM32(ebp + (-0x8)); /* 0x4200E5FF: mov eax, dword ptr [ebp - 8] */ 2643 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2644 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2645 esp = esp + 8; /* 0x4200E602: add esp, 8 */ 2646 _flag_k = FK_ADD; 2647 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2648 ecx = ecx + 1; /* 0x4200E605: inc ecx */ 2649 _flag_k = FK_INC; 2650 MEM32(edi + 0x8) = ecx; /* 0x4200E606: mov dword ptr [edi + 8], ecx */ 2651 ebx = MEM32(ebx); /* 0x4200E609: mov ebx, dword ptr [ebx] */ 2652 /* cmp ebx, eax */ /* 0x4200E60B: cmp ebx, eax */ 2653 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 2654 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2655 _flag_k = FK_CMP; 2656 RECOMP_BACKEDGE(); 2657 if (CMP_NE(_flag_a, _flag_b)) goto L_4200E5DB; /* 0x4200E60D: jne 0x4200e5db */ 2658 L_4200E60F: 2659 ecx = MEM32(ebp + (-0xC)); /* 0x4200E60F: mov ecx, dword ptr [ebp - 0xc] */ 2660 L_4200E612: 2661 eax = MEM32(ebp + 0x8); /* 0x4200E612: mov eax, dword ptr [ebp + 8] */ 2662 L_4200E615: 2663 edx = MEM32(eax + 0x18); /* 0x4200E615: mov edx, dword ptr [eax + 0x18] */ 2664 MEM32(ecx + 0x18) = edx; /* 0x4200E618: mov dword ptr [ecx + 0x18], edx */ 2665 edx = MEM32(eax + 0x1C); /* 0x4200E61B: mov edx, dword ptr [eax + 0x1c] */ 2666 MEM32(ecx + 0x1C) = edx; /* 0x4200E61E: mov dword ptr [ecx + 0x1c], edx */ 2667 edx = MEM32(eax + 0x20); /* 0x4200E621: mov edx, dword ptr [eax + 0x20] */ 2668 MEM32(ecx + 0x20) = edx; /* 0x4200E624: mov dword ptr [ecx + 0x20], edx */ 2669 edx = MEM32(eax + 0x24); /* 0x4200E627: mov edx, dword ptr [eax + 0x24] */ 2670 MEM32(ecx + 0x24) = edx; /* 0x4200E62A: mov dword ptr [ecx + 0x24], edx */ 2671 edx = MEM32(eax + 0x28); /* 0x4200E62D: mov edx, dword ptr [eax + 0x28] */ 2672 MEM32(ecx + 0x28) = edx; /* 0x4200E630: mov dword ptr [ecx + 0x28], edx */ 2673 edx = MEM32(eax + 0x2C); /* 0x4200E633: mov edx, dword ptr [eax + 0x2c] */ 2674 MEM32(ecx + 0x2C) = edx; /* 0x4200E636: mov dword ptr [ecx + 0x2c], edx */ 2675 edx = MEM32(eax + 0x30); /* 0x4200E639: mov edx, dword ptr [eax + 0x30] */ 2676 MEM32(ecx + 0x30) = edx; /* 0x4200E63C: mov dword ptr [ecx + 0x30], edx */ 2677 edx = MEM32(eax + 0x34); /* 0x4200E63F: mov edx, dword ptr [eax + 0x34] */ 2678 edi = POP32_VAL(esp); /* 0x4200E642: pop edi */ 2679 MEM32(ecx + 0x34) = edx; /* 0x4200E643: mov dword ptr [ecx + 0x34], edx */ 2680 eax = MEM32(eax + 0x38); /* 0x4200E646: mov eax, dword ptr [eax + 0x38] */ 2681 esi = POP32_VAL(esp); /* 0x4200E649: pop esi */ 2682 MEM32(ecx + 0x38) = eax; /* 0x4200E64A: mov dword ptr [ecx + 0x38], eax */ 2683 eax = ecx; /* 0x4200E64D: mov eax, ecx */ 2684 ebx = POP32_VAL(esp); /* 0x4200E64F: pop ebx */ 2685 esp = ebp; /* 0x4200E650: mov esp, ebp */ 2686 ebp = POP32_VAL(esp); /* 0x4200E652: pop ebp */ 2687 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4200E653: ret 4 */ 2688 RECOMP_REGS_OUT(); 2689 } 2690 2691 void sub_4200E660(void) { 2692 int _fpu_cmp = 0; 2693 uint32_t _cf = 0; 2694 int _df = 1; 2695 uint32_t _flag_k = FK_NONE; 2696 uint32_t _flag_a = 0, _flag_b = 0; 2697 uint32_t _itail_tgt = 0; 2698 RECOMP_REGS_LOCALS 2699 RECOMP_ENTER(0x4200E660u); 2700 2701 L_4200E660: 2702 PUSH32(esp, ebp); /* 0x4200E660: push ebp */ 2703 ebp = esp; /* 0x4200E661: mov ebp, esp */ 2704 PUSH32(esp, ebx); /* 0x4200E663: push ebx */ 2705 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x4200E664: mov bl, byte ptr [ebp + 8] */ 2706 /* test LO8(ebx), 2 */ /* 0x4200E667: test bl, 2 */ 2707 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 2708 _cf = 0; 2709 _flag_k = FK_NARROW(FK_TEST, 24); 2710 PUSH32(esp, esi); /* 0x4200E66A: push esi */ 2711 esi = ecx; /* 0x4200E66B: mov esi, ecx */ 2712 if (TEST_Z(_flag_a, _flag_b)) goto L_4200E69B; /* 0x4200E66D: je 0x4200e69b */ 2713 L_4200E66F: 2714 eax = MEM32(esi + (-0x4)); /* 0x4200E66F: mov eax, dword ptr [esi - 4] */ 2715 PUSH32(esp, edi); /* 0x4200E672: push edi */ 2716 PUSH32(esp, 0x4200E920u); /* 0x4200E673: push 0x4200e920 */ 2717 edi = esi + (-0x4); /* 0x4200E678: lea edi, [esi - 4] */ 2718 PUSH32(esp, eax); /* 0x4200E67B: push eax */ 2719 PUSH32(esp, 0x3Cu); /* 0x4200E67C: push 0x3c */ 2720 PUSH32(esp, esi); /* 0x4200E67E: push esi */ 2721 RECOMP_ICALL(0x42016E3Cu); /* 0x4200E67F: call 0x42016e3c */ /* not lifted */ 2722 RECOMP_FLAGS_IN(); 2723 /* test LO8(ebx), 1 */ /* 0x4200E684: test bl, 1 */ 2724 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2725 _cf = 0; 2726 _flag_k = FK_NARROW(FK_TEST, 24); 2727 if (TEST_Z(_flag_a, _flag_b)) goto L_4200E692; /* 0x4200E687: je 0x4200e692 */ 2728 L_4200E689: 2729 PUSH32(esp, edi); /* 0x4200E689: push edi */ 2730 RECOMP_ICALL(0x42016DD0u); /* 0x4200E68A: call 0x42016dd0 */ /* not lifted */ 2731 RECOMP_FLAGS_IN(); 2732 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2733 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2734 esp = esp + 4; /* 0x4200E68F: add esp, 4 */ 2735 _flag_k = FK_ADD; 2736 L_4200E692: 2737 eax = edi; /* 0x4200E692: mov eax, edi */ 2738 edi = POP32_VAL(esp); /* 0x4200E694: pop edi */ 2739 esi = POP32_VAL(esp); /* 0x4200E695: pop esi */ 2740 ebx = POP32_VAL(esp); /* 0x4200E696: pop ebx */ 2741 ebp = POP32_VAL(esp); /* 0x4200E697: pop ebp */ 2742 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4200E698: ret 4 */ 2743 L_4200E69B: 2744 ecx = esi; /* 0x4200E69B: mov ecx, esi */ 2745 RECOMP_ICALL(0x4200E920u); /* 0x4200E69D: call 0x4200e920 */ /* not lifted */ 2746 RECOMP_FLAGS_IN(); 2747 /* test LO8(ebx), 1 */ /* 0x4200E6A2: test bl, 1 */ 2748 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2749 _cf = 0; 2750 _flag_k = FK_NARROW(FK_TEST, 24); 2751 if (TEST_Z(_flag_a, _flag_b)) goto L_4200E6B0; /* 0x4200E6A5: je 0x4200e6b0 */ 2752 L_4200E6A7: 2753 PUSH32(esp, esi); /* 0x4200E6A7: push esi */ 2754 RECOMP_ICALL(0x42016DD0u); /* 0x4200E6A8: call 0x42016dd0 */ /* not lifted */ 2755 RECOMP_FLAGS_IN(); 2756 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2757 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2758 esp = esp + 4; /* 0x4200E6AD: add esp, 4 */ 2759 _flag_k = FK_ADD; 2760 L_4200E6B0: 2761 eax = esi; /* 0x4200E6B0: mov eax, esi */ 2762 esi = POP32_VAL(esp); /* 0x4200E6B2: pop esi */ 2763 ebx = POP32_VAL(esp); /* 0x4200E6B3: pop ebx */ 2764 ebp = POP32_VAL(esp); /* 0x4200E6B4: pop ebp */ 2765 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4200E6B5: ret 4 */ 2766 RECOMP_REGS_OUT(); 2767 } 2768 2769 void sub_4200E6C0(void) { 2770 int _fpu_cmp = 0; 2771 uint32_t _cf = 0; 2772 int _df = 1; 2773 uint32_t _flag_k = FK_NONE; 2774 uint32_t _flag_a = 0, _flag_b = 0; 2775 uint32_t _itail_tgt = 0; 2776 RECOMP_REGS_LOCALS 2777 RECOMP_ENTER(0x4200E6C0u); 2778 2779 L_4200E6C0: 2780 RECOMP_ICALL(0x4200E6D0u); /* 0x4200E6C0: call 0x4200e6d0 */ /* not lifted */ 2781 RECOMP_FLAGS_IN(); 2782 goto L_4200E6E0; /* 0x4200E6C5: jmp 0x4200e6e0 */ 2783 L_4200E6E0: 2784 PUSH32(esp, 0x4200E6F0u); /* 0x4200E6E0: push 0x4200e6f0 */ 2785 RECOMP_ICALL(0x42016E07u); /* 0x4200E6E5: call 0x42016e07 */ /* not lifted */ 2786 RECOMP_FLAGS_IN(); 2787 ecx = POP32_VAL(esp); /* 0x4200E6EA: pop ecx */ 2788 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200E6EB: ret */ 2789 RECOMP_REGS_OUT(); 2790 } 2791 2792 void sub_4200E6D0(void) { 2793 int _fpu_cmp = 0; 2794 uint32_t _cf = 0; 2795 int _df = 1; 2796 uint32_t _flag_k = FK_NONE; 2797 uint32_t _flag_a = 0, _flag_b = 0; 2798 uint32_t _itail_tgt = 0; 2799 RECOMP_REGS_LOCALS 2800 RECOMP_ENTER(0x4200E6D0u); 2801 2802 L_4200E6D0: 2803 ecx = 0x42023211u; /* 0x4200E6D0: mov ecx, 0x42023211 */ 2804 L_4200E6D5: 2805 { _itail_tgt = (uint32_t)(MEM32(0x42018014)); goto _ljump; } 2806 { RECOMP_REGS_OUT(); return; } /* end of function */ 2807 _ljump: 2808 switch (_itail_tgt) { 2809 case 0x4200E6D0u: goto L_4200E6D0; 2810 case 0x4200E6D5u: goto L_4200E6D5; 2811 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2812 } 2813 RECOMP_REGS_OUT(); 2814 } 2815 2816 void sub_4200E6E0(void) { 2817 int _fpu_cmp = 0; 2818 uint32_t _cf = 0; 2819 int _df = 1; 2820 uint32_t _flag_k = FK_NONE; 2821 uint32_t _flag_a = 0, _flag_b = 0; 2822 uint32_t _itail_tgt = 0; 2823 RECOMP_REGS_LOCALS 2824 RECOMP_ENTER(0x4200E6E0u); 2825 2826 L_4200E6E0: 2827 PUSH32(esp, 0x4200E6F0u); /* 0x4200E6E0: push 0x4200e6f0 */ 2828 RECOMP_ICALL(0x42016E07u); /* 0x4200E6E5: call 0x42016e07 */ /* not lifted */ 2829 RECOMP_FLAGS_IN(); 2830 ecx = POP32_VAL(esp); /* 0x4200E6EA: pop ecx */ 2831 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200E6EB: ret */ 2832 RECOMP_REGS_OUT(); 2833 } 2834 2835 void sub_4200E6F0(void) { 2836 int _fpu_cmp = 0; 2837 uint32_t _cf = 0; 2838 int _df = 1; 2839 uint32_t _flag_k = FK_NONE; 2840 uint32_t _flag_a = 0, _flag_b = 0; 2841 uint32_t _itail_tgt = 0; 2842 RECOMP_REGS_LOCALS 2843 RECOMP_ENTER(0x4200E6F0u); 2844 2845 L_4200E6F0: 2846 ecx = 0x42023211u; /* 0x4200E6F0: mov ecx, 0x42023211 */ 2847 L_4200E6F5: 2848 { _itail_tgt = (uint32_t)(MEM32(0x42018010)); goto _ljump; } 2849 { RECOMP_REGS_OUT(); return; } /* end of function */ 2850 _ljump: 2851 switch (_itail_tgt) { 2852 case 0x4200E6F0u: goto L_4200E6F0; 2853 case 0x4200E6F5u: goto L_4200E6F5; 2854 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2855 } 2856 RECOMP_REGS_OUT(); 2857 } 2858 2859 void sub_4200E700(void) { 2860 int _fpu_cmp = 0; 2861 uint32_t _cf = 0; 2862 int _df = 1; 2863 uint32_t _flag_k = FK_NONE; 2864 uint32_t _flag_a = 0, _flag_b = 0; 2865 uint32_t _itail_tgt = 0; 2866 RECOMP_REGS_LOCALS 2867 RECOMP_ENTER(0x4200E700u); 2868 2869 L_4200E700: 2870 RECOMP_ICALL(0x4200E710u); /* 0x4200E700: call 0x4200e710 */ /* not lifted */ 2871 RECOMP_FLAGS_IN(); 2872 goto L_4200E720; /* 0x4200E705: jmp 0x4200e720 */ 2873 L_4200E720: 2874 PUSH32(esp, 0x4200E730u); /* 0x4200E720: push 0x4200e730 */ 2875 RECOMP_ICALL(0x42016E07u); /* 0x4200E725: call 0x42016e07 */ /* not lifted */ 2876 RECOMP_FLAGS_IN(); 2877 ecx = POP32_VAL(esp); /* 0x4200E72A: pop ecx */ 2878 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200E72B: ret */ 2879 RECOMP_REGS_OUT(); 2880 } 2881 2882 void sub_4200E710(void) { 2883 int _fpu_cmp = 0; 2884 uint32_t _cf = 0; 2885 int _df = 1; 2886 uint32_t _flag_k = FK_NONE; 2887 uint32_t _flag_a = 0, _flag_b = 0; 2888 uint32_t _itail_tgt = 0; 2889 RECOMP_REGS_LOCALS 2890 RECOMP_ENTER(0x4200E710u); 2891 2892 L_4200E710: 2893 ecx = 0x42023210u; /* 0x4200E710: mov ecx, 0x42023210 */ 2894 L_4200E715: 2895 { _itail_tgt = (uint32_t)(MEM32(0x42018008)); goto _ljump; } 2896 { RECOMP_REGS_OUT(); return; } /* end of function */ 2897 _ljump: 2898 switch (_itail_tgt) { 2899 case 0x4200E710u: goto L_4200E710; 2900 case 0x4200E715u: goto L_4200E715; 2901 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2902 } 2903 RECOMP_REGS_OUT(); 2904 } 2905 2906 void sub_4200E720(void) { 2907 int _fpu_cmp = 0; 2908 uint32_t _cf = 0; 2909 int _df = 1; 2910 uint32_t _flag_k = FK_NONE; 2911 uint32_t _flag_a = 0, _flag_b = 0; 2912 uint32_t _itail_tgt = 0; 2913 RECOMP_REGS_LOCALS 2914 RECOMP_ENTER(0x4200E720u); 2915 2916 L_4200E720: 2917 PUSH32(esp, 0x4200E730u); /* 0x4200E720: push 0x4200e730 */ 2918 RECOMP_ICALL(0x42016E07u); /* 0x4200E725: call 0x42016e07 */ /* not lifted */ 2919 RECOMP_FLAGS_IN(); 2920 ecx = POP32_VAL(esp); /* 0x4200E72A: pop ecx */ 2921 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200E72B: ret */ 2922 RECOMP_REGS_OUT(); 2923 } 2924 2925 void sub_4200E730(void) { 2926 int _fpu_cmp = 0; 2927 uint32_t _cf = 0; 2928 int _df = 1; 2929 uint32_t _flag_k = FK_NONE; 2930 uint32_t _flag_a = 0, _flag_b = 0; 2931 uint32_t _itail_tgt = 0; 2932 RECOMP_REGS_LOCALS 2933 RECOMP_ENTER(0x4200E730u); 2934 2935 L_4200E730: 2936 ecx = 0x42023210u; /* 0x4200E730: mov ecx, 0x42023210 */ 2937 L_4200E735: 2938 { _itail_tgt = (uint32_t)(MEM32(0x4201800C)); goto _ljump; } 2939 { RECOMP_REGS_OUT(); return; } /* end of function */ 2940 _ljump: 2941 switch (_itail_tgt) { 2942 case 0x4200E730u: goto L_4200E730; 2943 case 0x4200E735u: goto L_4200E735; 2944 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2945 } 2946 RECOMP_REGS_OUT(); 2947 } 2948 2949 void sub_4200E740(void) { 2950 int _fpu_cmp = 0; 2951 uint32_t _cf = 0; 2952 int _df = 1; 2953 uint32_t _flag_k = FK_NONE; 2954 uint32_t _flag_a = 0, _flag_b = 0; 2955 uint32_t _itail_tgt = 0; 2956 RECOMP_REGS_LOCALS 2957 RECOMP_ENTER(0x4200E740u); 2958 2959 L_4200E740: 2960 PUSH32(esp, ebp); /* 0x4200E740: push ebp */ 2961 ebp = esp; /* 0x4200E741: mov ebp, esp */ 2962 PUSH32(esp, 0xFFFFFFFFu); /* 0x4200E743: push -1 */ 2963 PUSH32(esp, 0x420175F8u); /* 0x4200E745: push 0x420175f8 */ 2964 eax = MEM32(FS_BASE + (0)); /* 0x4200E74A: mov eax, dword ptr fs:[0] */ 2965 PUSH32(esp, eax); /* 0x4200E750: push eax */ 2966 MEM32(FS_BASE + (0)) = esp; /* 0x4200E751: mov dword ptr fs:[0], esp */ 2967 PUSH32(esp, ecx); /* 0x4200E758: push ecx */ 2968 PUSH32(esp, ebx); /* 0x4200E759: push ebx */ 2969 ebx = MEM32(ebp + 0x8); /* 0x4200E75A: mov ebx, dword ptr [ebp + 8] */ 2970 eax = MEM32(ebp + 0x14); /* 0x4200E75D: mov eax, dword ptr [ebp + 0x14] */ 2971 edx = ebx; /* 0x4200E760: mov edx, ebx */ 2972 edx = (uint32_t)((int32_t)edx * (int32_t)MEM32(ebp + 0xC)); /* 0x4200E762: imul edx, dword ptr [ebp + 0xc] */ 2973 PUSH32(esp, esi); /* 0x4200E766: push esi */ 2974 PUSH32(esp, edi); /* 0x4200E767: push edi */ 2975 edi = MEM32(ebp + 0x18); /* 0x4200E768: mov edi, dword ptr [ebp + 0x18] */ 2976 edx = (uint32_t)((int32_t)edx * (int32_t)edi); /* 0x4200E76B: imul edx, edi */ 2977 edx = (uint32_t)((int32_t)edx * (int32_t)edi); /* 0x4200E76E: imul edx, edi */ 2978 esi = ecx; /* 0x4200E771: mov esi, ecx */ 2979 ecx = MEM32(ebp + 0x10); /* 0x4200E773: mov ecx, dword ptr [ebp + 0x10] */ 2980 PUSH32(esp, eax); /* 0x4200E776: push eax */ 2981 PUSH32(esp, ecx); /* 0x4200E777: push ecx */ 2982 PUSH32(esp, edx); /* 0x4200E778: push edx */ 2983 ecx = esi; /* 0x4200E779: mov ecx, esi */ 2984 MEM32(ebp + (-0x10)) = esi; /* 0x4200E77B: mov dword ptr [ebp - 0x10], esi */ 2985 RECOMP_ICALL(0x42003BE0u); /* 0x4200E77E: call 0x42003be0 */ /* not lifted */ 2986 RECOMP_FLAGS_IN(); 2987 ebx = (uint32_t)((int32_t)ebx * (int32_t)edi); /* 0x4200E783: imul ebx, edi */ 2988 eax = MEM32(ebp + 0xC); /* 0x4200E786: mov eax, dword ptr [ebp + 0xc] */ 2989 eax = (uint32_t)((int32_t)eax * (int32_t)edi); /* 0x4200E789: imul eax, edi */ 2990 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2991 ecx = 0; /* 0x4200E78C: xor ecx, ecx */ 2992 _cf = 0; 2993 _flag_k = FK_TEST; 2994 MEM32(ebp + (-0x4)) = ecx; /* 0x4200E78E: mov dword ptr [ebp - 4], ecx */ 2995 MEM32(esi + 0x38) = ecx; /* 0x4200E791: mov dword ptr [esi + 0x38], ecx */ 2996 ecx = esi; /* 0x4200E794: mov ecx, esi */ 2997 MEM32(esi) = 0x42018524u; /* 0x4200E796: mov dword ptr [esi], 0x42018524 */ 2998 MEM32(esi + 0x4) = 0x4201851Cu; /* 0x4200E79C: mov dword ptr [esi + 4], 0x4201851c */ 2999 MEM32(esi + 0x24) = ebx; /* 0x4200E7A3: mov dword ptr [esi + 0x24], ebx */ 3000 MEM32(esi + 0x28) = eax; /* 0x4200E7A6: mov dword ptr [esi + 0x28], eax */ 3001 MEM32(esi + 0x34) = edi; /* 0x4200E7A9: mov dword ptr [esi + 0x34], edi */ 3002 RECOMP_ICALL(0x42004870u); /* 0x4200E7AC: call 0x42004870 */ /* not lifted */ 3003 RECOMP_FLAGS_IN(); 3004 ecx = MEM32(ebp + (-0xC)); /* 0x4200E7B1: mov ecx, dword ptr [ebp - 0xc] */ 3005 edi = POP32_VAL(esp); /* 0x4200E7B4: pop edi */ 3006 eax = esi; /* 0x4200E7B5: mov eax, esi */ 3007 esi = POP32_VAL(esp); /* 0x4200E7B7: pop esi */ 3008 ebx = POP32_VAL(esp); /* 0x4200E7B8: pop ebx */ 3009 MEM32(FS_BASE + (0)) = ecx; /* 0x4200E7B9: mov dword ptr fs:[0], ecx */ 3010 esp = ebp; /* 0x4200E7C0: mov esp, ebp */ 3011 ebp = POP32_VAL(esp); /* 0x4200E7C2: pop ebp */ 3012 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x4200E7C3: ret 0x14 */ 3013 RECOMP_REGS_OUT(); 3014 } 3015 3016 void sub_4200E7D0(void) { 3017 int _fpu_cmp = 0; 3018 uint32_t _cf = 0; 3019 int _df = 1; 3020 uint32_t _flag_k = FK_NONE; 3021 uint32_t _flag_a = 0, _flag_b = 0; 3022 uint32_t _itail_tgt = 0; 3023 RECOMP_REGS_LOCALS 3024 RECOMP_ENTER(0x4200E7D0u); 3025 3026 L_4200E7D0: 3027 PUSH32(esp, ebp); /* 0x4200E7D0: push ebp */ 3028 ebp = esp; /* 0x4200E7D1: mov ebp, esp */ 3029 PUSH32(esp, ebx); /* 0x4200E7D3: push ebx */ 3030 PUSH32(esp, esi); /* 0x4200E7D4: push esi */ 3031 esi = MEM32(ecx + 0x24); /* 0x4200E7D5: mov esi, dword ptr [ecx + 0x24] */ 3032 PUSH32(esp, edi); /* 0x4200E7D8: push edi */ 3033 edi = MEM32(ebp + 0x8); /* 0x4200E7D9: mov edi, dword ptr [ebp + 8] */ 3034 eax = edi; /* 0x4200E7DC: mov eax, edi */ 3035 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x4200E7DE: cdq */ 3036 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)esi; /* 0x4200E7DF: idiv esi */ 3037 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 3038 else { eax = 0; edx = 0; } } 3039 ecx = MEM32(ecx + 0x34); /* 0x4200E7E1: mov ecx, dword ptr [ecx + 0x34] */ 3040 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x4200E7E4: cdq */ 3041 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x4200E7E5: idiv ecx */ 3042 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 3043 else { eax = 0; edx = 0; } } 3044 ebx = eax; /* 0x4200E7E7: mov ebx, eax */ 3045 eax = esi; /* 0x4200E7E9: mov eax, esi */ 3046 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x4200E7EB: cdq */ 3047 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x4200E7EC: idiv ecx */ 3048 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 3049 else { eax = 0; edx = 0; } } 3050 ebx = (uint32_t)((int32_t)ebx * (int32_t)eax); /* 0x4200E7EE: imul ebx, eax */ 3051 eax = edi; /* 0x4200E7F1: mov eax, edi */ 3052 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x4200E7F3: cdq */ 3053 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)esi; /* 0x4200E7F4: idiv esi */ 3054 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 3055 else { eax = 0; edx = 0; } } 3056 edi = POP32_VAL(esp); /* 0x4200E7F6: pop edi */ 3057 esi = POP32_VAL(esp); /* 0x4200E7F7: pop esi */ 3058 eax = edx; /* 0x4200E7F8: mov eax, edx */ 3059 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x4200E7FA: cdq */ 3060 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x4200E7FB: idiv ecx */ 3061 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 3062 else { eax = 0; edx = 0; } } 3063 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3064 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3065 eax = eax + ebx; /* 0x4200E7FD: add eax, ebx */ 3066 _flag_k = FK_ADD; 3067 ebx = POP32_VAL(esp); /* 0x4200E7FF: pop ebx */ 3068 ebp = POP32_VAL(esp); /* 0x4200E800: pop ebp */ 3069 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4200E801: ret 4 */ 3070 RECOMP_REGS_OUT(); 3071 } 3072 3073 void sub_4200E810(void) { 3074 int _fpu_cmp = 0; 3075 uint32_t _cf = 0; 3076 int _df = 1; 3077 uint32_t _flag_k = FK_NONE; 3078 uint32_t _flag_a = 0, _flag_b = 0; 3079 uint32_t _itail_tgt = 0; 3080 RECOMP_REGS_LOCALS 3081 RECOMP_ENTER(0x4200E810u); 3082 3083 L_4200E810: 3084 PUSH32(esp, ebp); /* 0x4200E810: push ebp */ 3085 ebp = esp; /* 0x4200E811: mov ebp, esp */ 3086 PUSH32(esp, 0xFFFFFFFFu); /* 0x4200E813: push -1 */ 3087 PUSH32(esp, 0x4201762Eu); /* 0x4200E815: push 0x4201762e */ 3088 eax = MEM32(FS_BASE + (0)); /* 0x4200E81A: mov eax, dword ptr fs:[0] */ 3089 PUSH32(esp, eax); /* 0x4200E820: push eax */ 3090 MEM32(FS_BASE + (0)) = esp; /* 0x4200E821: mov dword ptr fs:[0], esp */ 3091 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3092 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3093 esp = esp - 0xCu; /* 0x4200E828: sub esp, 0xc */ 3094 _flag_k = FK_CMP; 3095 PUSH32(esp, ebx); /* 0x4200E82B: push ebx */ 3096 PUSH32(esp, esi); /* 0x4200E82C: push esi */ 3097 PUSH32(esp, edi); /* 0x4200E82D: push edi */ 3098 edi = ecx; /* 0x4200E82E: mov edi, ecx */ 3099 eax = MEM32(edi + 0x24); /* 0x4200E830: mov eax, dword ptr [edi + 0x24] */ 3100 MEM32(ebp + (-0x14)) = eax; /* 0x4200E833: mov dword ptr [ebp - 0x14], eax */ 3101 fp_push((double)(int32_t)MEM32(ebp + (-0x14))); /* 0x4200E836: fild dword ptr [ebp - 0x14] */ 3102 esi = MEM32(edi + 0x28); /* 0x4200E839: mov esi, dword ptr [edi + 0x28] */ 3103 MEM32(ebp + (-0x14)) = esi; /* 0x4200E83C: mov dword ptr [ebp - 0x14], esi */ 3104 esi = (uint32_t)((int32_t)esi * (int32_t)eax); /* 0x4200E83F: imul esi, eax */ 3105 _st[0] = (double)*(float*)ADDR(edi + 0x1C) / _st[0]; /* 0x4200E842: fdivr dword ptr [edi + 0x1c] */ 3106 eax = esi + esi * 4; /* 0x4200E845: lea eax, [esi + esi*4] */ 3107 ecx = eax * 8 + 0x4; /* 0x4200E848: lea ecx, [eax*8 + 4] */ 3108 PUSH32(esp, ecx); /* 0x4200E84F: push ecx */ 3109 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x2C) = _v; } /* 0x4200E850: fstp dword ptr [edi + 0x2c] */ 3110 fp_push((double)(int32_t)MEM32(ebp + (-0x14))); /* 0x4200E853: fild dword ptr [ebp - 0x14] */ 3111 _st[0] = (double)*(float*)ADDR(edi + 0x20) / _st[0]; /* 0x4200E856: fdivr dword ptr [edi + 0x20] */ 3112 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x30) = _v; } /* 0x4200E859: fstp dword ptr [edi + 0x30] */ 3113 RECOMP_ICALL(0x42016F36u); /* 0x4200E85C: call 0x42016f36 */ /* not lifted */ 3114 RECOMP_FLAGS_IN(); 3115 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3116 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3117 esp = esp + 4; /* 0x4200E861: add esp, 4 */ 3118 _flag_k = FK_ADD; 3119 MEM32(ebp + (-0x14)) = eax; /* 0x4200E864: mov dword ptr [ebp - 0x14], eax */ 3120 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3121 ebx = 0; /* 0x4200E867: xor ebx, ebx */ 3122 _cf = 0; 3123 _flag_k = FK_TEST; 3124 /* cmp eax, ebx */ /* 0x4200E869: cmp eax, ebx */ 3125 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3126 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3127 _flag_k = FK_CMP; 3128 MEM32(ebp + (-0x4)) = ebx; /* 0x4200E86B: mov dword ptr [ebp - 4], ebx */ 3129 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200E888; /* 0x4200E86E: je 0x4200e888 */ 3130 L_4200E870: 3131 PUSH32(esp, 0x42004F60u); /* 0x4200E870: push 0x42004f60 */ 3132 PUSH32(esp, 0x42004F30u); /* 0x4200E875: push 0x42004f30 */ 3133 PUSH32(esp, esi); /* 0x4200E87A: push esi */ 3134 ebx = eax + 0x4; /* 0x4200E87B: lea ebx, [eax + 4] */ 3135 PUSH32(esp, 0x28u); /* 0x4200E87E: push 0x28 */ 3136 PUSH32(esp, ebx); /* 0x4200E880: push ebx */ 3137 MEM32(eax) = esi; /* 0x4200E881: mov dword ptr [eax], esi */ 3138 RECOMP_ICALL(0x42016F48u); /* 0x4200E883: call 0x42016f48 */ /* not lifted */ 3139 RECOMP_FLAGS_IN(); 3140 L_4200E888: 3141 edx = MEM32(edi + 0x28); /* 0x4200E888: mov edx, dword ptr [edi + 0x28] */ 3142 edx = (uint32_t)((int32_t)edx * (int32_t)MEM32(edi + 0x24)); /* 0x4200E88B: imul edx, dword ptr [edi + 0x24] */ 3143 MEM32(edi + 0x38) = ebx; /* 0x4200E88F: mov dword ptr [edi + 0x38], ebx */ 3144 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3145 ebx = 0; /* 0x4200E892: xor ebx, ebx */ 3146 _cf = 0; 3147 _flag_k = FK_TEST; 3148 /* test edx, edx */ /* 0x4200E894: test edx, edx */ 3149 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 3150 _cf = 0; 3151 _flag_k = FK_TEST; 3152 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x4200E896: mov dword ptr [ebp - 4], 0xffffffff */ 3153 if (TEST_LE(_flag_a, _flag_b)) goto L_4200E90C; /* 0x4200E89D: jle 0x4200e90c */ 3154 L_4200E89F: 3155 MEM32(ebp + (-0x14)) = ebx; /* 0x4200E89F: mov dword ptr [ebp - 0x14], ebx */ 3156 L_4200E8A2: 3157 PUSH32(esp, 0xCu); /* 0x4200E8A2: push 0xc */ 3158 RECOMP_ICALL(0x42016F36u); /* 0x4200E8A4: call 0x42016f36 */ /* not lifted */ 3159 RECOMP_FLAGS_IN(); 3160 esi = eax; /* 0x4200E8A9: mov esi, eax */ 3161 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3162 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3163 esp = esp + 4; /* 0x4200E8AB: add esp, 4 */ 3164 _flag_k = FK_ADD; 3165 MEM32(ebp + (-0x18)) = esi; /* 0x4200E8AE: mov dword ptr [ebp - 0x18], esi */ 3166 /* test esi, esi */ /* 0x4200E8B1: test esi, esi */ 3167 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3168 _cf = 0; 3169 _flag_k = FK_TEST; 3170 MEM32(ebp + (-0x4)) = 1; /* 0x4200E8B3: mov dword ptr [ebp - 4], 1 */ 3171 if (TEST_Z(_flag_a, _flag_b)) goto L_4200E8E7; /* 0x4200E8BA: je 0x4200e8e7 */ 3172 L_4200E8BC: 3173 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x4200E8BC: mov al, byte ptr [ebp - 0xd] */ 3174 PUSH32(esp, 0x14u); /* 0x4200E8BF: push 0x14 */ 3175 MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x4200E8C1: mov byte ptr [esi], al */ 3176 RECOMP_ICALL(0x42016F36u); /* 0x4200E8C3: call 0x42016f36 */ /* not lifted */ 3177 RECOMP_FLAGS_IN(); 3178 MEM32(eax) = eax; /* 0x4200E8C8: mov dword ptr [eax], eax */ 3179 MEM32(eax + 0x4) = eax; /* 0x4200E8CA: mov dword ptr [eax + 4], eax */ 3180 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3181 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3182 esp = esp + 4; /* 0x4200E8CD: add esp, 4 */ 3183 _flag_k = FK_ADD; 3184 MEM32(esi + 0x4) = eax; /* 0x4200E8D0: mov dword ptr [esi + 4], eax */ 3185 MEM32(esi + 0x8) = 0; /* 0x4200E8D3: mov dword ptr [esi + 8], 0 */ 3186 ecx = esi; /* 0x4200E8DA: mov ecx, esi */ 3187 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x4200E8DC: mov byte ptr [ebp - 4], 2 */ 3188 RECOMP_ICALL(0x42005DC0u); /* 0x4200E8E0: call 0x42005dc0 */ /* not lifted */ 3189 RECOMP_FLAGS_IN(); 3190 goto L_4200E8E9; /* 0x4200E8E5: jmp 0x4200e8e9 */ 3191 L_4200E8E7: 3192 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3193 esi = 0; /* 0x4200E8E7: xor esi, esi */ 3194 _cf = 0; 3195 _flag_k = FK_TEST; 3196 L_4200E8E9: 3197 eax = MEM32(ebp + (-0x14)); /* 0x4200E8E9: mov eax, dword ptr [ebp - 0x14] */ 3198 ecx = MEM32(edi + 0x38); /* 0x4200E8EC: mov ecx, dword ptr [edi + 0x38] */ 3199 MEM32(ecx + eax + 0x20) = esi; /* 0x4200E8EF: mov dword ptr [ecx + eax + 0x20], esi */ 3200 edx = MEM32(edi + 0x28); /* 0x4200E8F3: mov edx, dword ptr [edi + 0x28] */ 3201 edx = (uint32_t)((int32_t)edx * (int32_t)MEM32(edi + 0x24)); /* 0x4200E8F6: imul edx, dword ptr [edi + 0x24] */ 3202 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 3203 ebx = ebx + 1; /* 0x4200E8FA: inc ebx */ 3204 _flag_k = FK_INC; 3205 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x28u); 3206 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3207 eax = eax + 0x28u; /* 0x4200E8FB: add eax, 0x28 */ 3208 _flag_k = FK_ADD; 3209 /* cmp ebx, edx */ /* 0x4200E8FE: cmp ebx, edx */ 3210 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 3211 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3212 _flag_k = FK_CMP; 3213 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x4200E900: mov dword ptr [ebp - 4], 0xffffffff */ 3214 MEM32(ebp + (-0x14)) = eax; /* 0x4200E907: mov dword ptr [ebp - 0x14], eax */ 3215 RECOMP_BACKEDGE(); 3216 if (CMP_L(_flag_a, _flag_b)) goto L_4200E8A2; /* 0x4200E90A: jl 0x4200e8a2 */ 3217 L_4200E90C: 3218 ecx = MEM32(ebp + (-0xC)); /* 0x4200E90C: mov ecx, dword ptr [ebp - 0xc] */ 3219 edi = POP32_VAL(esp); /* 0x4200E90F: pop edi */ 3220 esi = POP32_VAL(esp); /* 0x4200E910: pop esi */ 3221 ebx = POP32_VAL(esp); /* 0x4200E911: pop ebx */ 3222 MEM32(FS_BASE + (0)) = ecx; /* 0x4200E912: mov dword ptr fs:[0], ecx */ 3223 esp = ebp; /* 0x4200E919: mov esp, ebp */ 3224 ebp = POP32_VAL(esp); /* 0x4200E91B: pop ebp */ 3225 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4200E91C: ret 0x10 */ 3226 RECOMP_REGS_OUT(); 3227 } 3228 3229 void sub_4200E920(void) { 3230 int _fpu_cmp = 0; 3231 uint32_t _cf = 0; 3232 int _df = 1; 3233 uint32_t _flag_k = FK_NONE; 3234 uint32_t _flag_a = 0, _flag_b = 0; 3235 uint32_t _itail_tgt = 0; 3236 RECOMP_REGS_LOCALS 3237 RECOMP_ENTER(0x4200E920u); 3238 3239 L_4200E920: 3240 PUSH32(esp, ebp); /* 0x4200E920: push ebp */ 3241 ebp = esp; /* 0x4200E921: mov ebp, esp */ 3242 PUSH32(esp, 0xFFFFFFFFu); /* 0x4200E923: push -1 */ 3243 PUSH32(esp, 0x42017648u); /* 0x4200E925: push 0x42017648 */ 3244 eax = MEM32(FS_BASE + (0)); /* 0x4200E92A: mov eax, dword ptr fs:[0] */ 3245 PUSH32(esp, eax); /* 0x4200E930: push eax */ 3246 MEM32(FS_BASE + (0)) = esp; /* 0x4200E931: mov dword ptr fs:[0], esp */ 3247 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 3248 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3249 esp = esp - 0x14u; /* 0x4200E938: sub esp, 0x14 */ 3250 _flag_k = FK_CMP; 3251 PUSH32(esp, ebx); /* 0x4200E93B: push ebx */ 3252 ebx = ecx; /* 0x4200E93C: mov ebx, ecx */ 3253 PUSH32(esp, esi); /* 0x4200E93E: push esi */ 3254 MEM32(ebp + (-0x1C)) = ebx; /* 0x4200E93F: mov dword ptr [ebp - 0x1c], ebx */ 3255 MEM32(ebx) = 0x42018524u; /* 0x4200E942: mov dword ptr [ebx], 0x42018524 */ 3256 MEM32(ebx + 0x4) = 0x4201851Cu; /* 0x4200E948: mov dword ptr [ebx + 4], 0x4201851c */ 3257 eax = MEM32(ebx + 0x28); /* 0x4200E94F: mov eax, dword ptr [ebx + 0x28] */ 3258 eax = (uint32_t)((int32_t)eax * (int32_t)MEM32(ebx + 0x24)); /* 0x4200E952: imul eax, dword ptr [ebx + 0x24] */ 3259 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3260 edx = 0; /* 0x4200E956: xor edx, edx */ 3261 _cf = 0; 3262 _flag_k = FK_TEST; 3263 /* test eax, eax */ /* 0x4200E958: test eax, eax */ 3264 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3265 _cf = 0; 3266 _flag_k = FK_TEST; 3267 MEM32(ebp + (-0x4)) = edx; /* 0x4200E95A: mov dword ptr [ebp - 4], edx */ 3268 MEM32(ebp + (-0x10)) = edx; /* 0x4200E95D: mov dword ptr [ebp - 0x10], edx */ 3269 if (TEST_LE(_flag_a, _flag_b)) goto L_4200E9D3; /* 0x4200E960: jle 0x4200e9d3 */ 3270 L_4200E962: 3271 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3272 eax = 0; /* 0x4200E962: xor eax, eax */ 3273 _cf = 0; 3274 _flag_k = FK_TEST; 3275 PUSH32(esp, edi); /* 0x4200E964: push edi */ 3276 MEM32(ebp + (-0x14)) = eax; /* 0x4200E965: mov dword ptr [ebp - 0x14], eax */ 3277 L_4200E968: 3278 ecx = MEM32(ebx + 0x38); /* 0x4200E968: mov ecx, dword ptr [ebx + 0x38] */ 3279 edi = MEM32(eax + ecx + 0x20); /* 0x4200E96B: mov edi, dword ptr [eax + ecx + 0x20] */ 3280 /* cmp edi, edx */ /* 0x4200E96F: cmp edi, edx */ 3281 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 3282 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3283 _flag_k = FK_CMP; 3284 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200E9B3; /* 0x4200E971: je 0x4200e9b3 */ 3285 L_4200E973: 3286 eax = MEM32(edi + 0x4); /* 0x4200E973: mov eax, dword ptr [edi + 4] */ 3287 esi = MEM32(eax); /* 0x4200E976: mov esi, dword ptr [eax] */ 3288 /* cmp esi, eax */ /* 0x4200E978: cmp esi, eax */ 3289 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 3290 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3291 _flag_k = FK_CMP; 3292 MEM32(ebp + (-0x18)) = eax; /* 0x4200E97A: mov dword ptr [ebp - 0x18], eax */ 3293 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200E994; /* 0x4200E97D: je 0x4200e994 */ 3294 L_4200E97F: 3295 eax = esi; /* 0x4200E97F: mov eax, esi */ 3296 esi = MEM32(esi); /* 0x4200E981: mov esi, dword ptr [esi] */ 3297 PUSH32(esp, eax); /* 0x4200E983: push eax */ 3298 edx = ebp + (-0x20); /* 0x4200E984: lea edx, [ebp - 0x20] */ 3299 PUSH32(esp, edx); /* 0x4200E987: push edx */ 3300 ecx = edi; /* 0x4200E988: mov ecx, edi */ 3301 RECOMP_ICALL(0x42005C70u); /* 0x4200E98A: call 0x42005c70 */ /* not lifted */ 3302 RECOMP_FLAGS_IN(); 3303 /* cmp esi, MEM32(ebp + (-0x18)) */ /* 0x4200E98F: cmp esi, dword ptr [ebp - 0x18] */ 3304 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 3305 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3306 _flag_k = FK_CMP; 3307 RECOMP_BACKEDGE(); 3308 if (CMP_NE(_flag_a, _flag_b)) goto L_4200E97F; /* 0x4200E992: jne 0x4200e97f */ 3309 L_4200E994: 3310 eax = MEM32(edi + 0x4); /* 0x4200E994: mov eax, dword ptr [edi + 4] */ 3311 PUSH32(esp, eax); /* 0x4200E997: push eax */ 3312 RECOMP_ICALL(0x42016DD0u); /* 0x4200E998: call 0x42016dd0 */ /* not lifted */ 3313 RECOMP_FLAGS_IN(); 3314 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3315 eax = 0; /* 0x4200E99D: xor eax, eax */ 3316 _cf = 0; 3317 _flag_k = FK_TEST; 3318 PUSH32(esp, edi); /* 0x4200E99F: push edi */ 3319 MEM32(edi + 0x4) = eax; /* 0x4200E9A0: mov dword ptr [edi + 4], eax */ 3320 MEM32(edi + 0x8) = eax; /* 0x4200E9A3: mov dword ptr [edi + 8], eax */ 3321 RECOMP_ICALL(0x42016DD0u); /* 0x4200E9A6: call 0x42016dd0 */ /* not lifted */ 3322 RECOMP_FLAGS_IN(); 3323 eax = MEM32(ebp + (-0x14)); /* 0x4200E9AB: mov eax, dword ptr [ebp - 0x14] */ 3324 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3325 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3326 esp = esp + 8; /* 0x4200E9AE: add esp, 8 */ 3327 _flag_k = FK_ADD; 3328 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3329 edx = 0; /* 0x4200E9B1: xor edx, edx */ 3330 _cf = 0; 3331 _flag_k = FK_TEST; 3332 L_4200E9B3: 3333 ecx = MEM32(ebx + 0x38); /* 0x4200E9B3: mov ecx, dword ptr [ebx + 0x38] */ 3334 MEM32(eax + ecx + 0x20) = edx; /* 0x4200E9B6: mov dword ptr [eax + ecx + 0x20], edx */ 3335 esi = MEM32(ebx + 0x28); /* 0x4200E9BA: mov esi, dword ptr [ebx + 0x28] */ 3336 esi = (uint32_t)((int32_t)esi * (int32_t)MEM32(ebx + 0x24)); /* 0x4200E9BD: imul esi, dword ptr [ebx + 0x24] */ 3337 ecx = MEM32(ebp + (-0x10)); /* 0x4200E9C1: mov ecx, dword ptr [ebp - 0x10] */ 3338 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3339 ecx = ecx + 1; /* 0x4200E9C4: inc ecx */ 3340 _flag_k = FK_INC; 3341 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x28u); 3342 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3343 eax = eax + 0x28u; /* 0x4200E9C5: add eax, 0x28 */ 3344 _flag_k = FK_ADD; 3345 /* cmp ecx, esi */ /* 0x4200E9C8: cmp ecx, esi */ 3346 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 3347 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3348 _flag_k = FK_CMP; 3349 MEM32(ebp + (-0x10)) = ecx; /* 0x4200E9CA: mov dword ptr [ebp - 0x10], ecx */ 3350 MEM32(ebp + (-0x14)) = eax; /* 0x4200E9CD: mov dword ptr [ebp - 0x14], eax */ 3351 RECOMP_BACKEDGE(); 3352 if (CMP_L(_flag_a, _flag_b)) goto L_4200E968; /* 0x4200E9D0: jl 0x4200e968 */ 3353 L_4200E9D2: 3354 edi = POP32_VAL(esp); /* 0x4200E9D2: pop edi */ 3355 L_4200E9D3: 3356 eax = MEM32(ebx + 0x38); /* 0x4200E9D3: mov eax, dword ptr [ebx + 0x38] */ 3357 /* cmp eax, edx */ /* 0x4200E9D6: cmp eax, edx */ 3358 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3359 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3360 _flag_k = FK_CMP; 3361 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200E9F7; /* 0x4200E9D8: je 0x4200e9f7 */ 3362 L_4200E9DA: 3363 edx = MEM32(eax + (-0x4)); /* 0x4200E9DA: mov edx, dword ptr [eax - 4] */ 3364 esi = eax + (-0x4); /* 0x4200E9DD: lea esi, [eax - 4] */ 3365 PUSH32(esp, 0x42004F60u); /* 0x4200E9E0: push 0x42004f60 */ 3366 PUSH32(esp, edx); /* 0x4200E9E5: push edx */ 3367 PUSH32(esp, 0x28u); /* 0x4200E9E6: push 0x28 */ 3368 PUSH32(esp, eax); /* 0x4200E9E8: push eax */ 3369 RECOMP_ICALL(0x42016E3Cu); /* 0x4200E9E9: call 0x42016e3c */ /* not lifted */ 3370 RECOMP_FLAGS_IN(); 3371 PUSH32(esp, esi); /* 0x4200E9EE: push esi */ 3372 RECOMP_ICALL(0x42016DD0u); /* 0x4200E9EF: call 0x42016dd0 */ /* not lifted */ 3373 RECOMP_FLAGS_IN(); 3374 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3375 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3376 esp = esp + 4; /* 0x4200E9F4: add esp, 4 */ 3377 _flag_k = FK_ADD; 3378 L_4200E9F7: 3379 ecx = ebx; /* 0x4200E9F7: mov ecx, ebx */ 3380 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x4200E9F9: mov dword ptr [ebp - 4], 0xffffffff */ 3381 RECOMP_ICALL(0x42003DA0u); /* 0x4200EA00: call 0x42003da0 */ /* not lifted */ 3382 RECOMP_FLAGS_IN(); 3383 ecx = MEM32(ebp + (-0xC)); /* 0x4200EA05: mov ecx, dword ptr [ebp - 0xc] */ 3384 esi = POP32_VAL(esp); /* 0x4200EA08: pop esi */ 3385 ebx = POP32_VAL(esp); /* 0x4200EA09: pop ebx */ 3386 MEM32(FS_BASE + (0)) = ecx; /* 0x4200EA0A: mov dword ptr fs:[0], ecx */ 3387 esp = ebp; /* 0x4200EA11: mov esp, ebp */ 3388 ebp = POP32_VAL(esp); /* 0x4200EA13: pop ebp */ 3389 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200EA14: ret */ 3390 RECOMP_REGS_OUT(); 3391 } 3392 3393 void sub_4200EA20(void) { 3394 int _fpu_cmp = 0; 3395 uint32_t _cf = 0; 3396 int _df = 1; 3397 uint32_t _flag_k = FK_NONE; 3398 uint32_t _flag_a = 0, _flag_b = 0; 3399 uint32_t _itail_tgt = 0; 3400 RECOMP_REGS_LOCALS 3401 RECOMP_ENTER(0x4200EA20u); 3402 3403 L_4200EA20: 3404 PUSH32(esp, ebp); /* 0x4200EA20: push ebp */ 3405 ebp = esp; /* 0x4200EA21: mov ebp, esp */ 3406 PUSH32(esp, ebx); /* 0x4200EA23: push ebx */ 3407 ebx = MEM32(ebp + 0x8); /* 0x4200EA24: mov ebx, dword ptr [ebp + 8] */ 3408 PUSH32(esp, esi); /* 0x4200EA27: push esi */ 3409 PUSH32(esp, edi); /* 0x4200EA28: push edi */ 3410 esi = ecx; /* 0x4200EA29: mov esi, ecx */ 3411 eax = MEM32(esi); /* 0x4200EA2B: mov eax, dword ptr [esi] */ 3412 PUSH32(esp, ebx); /* 0x4200EA2D: push ebx */ 3413 RECOMP_ICALL(MEM32(eax + 0x7C)); /* 0x4200EA2E: call dword ptr [eax + 0x7c] */ 3414 RECOMP_FLAGS_IN(); 3415 ecx = MEM32(eax + 0x8); /* 0x4200EA31: mov ecx, dword ptr [eax + 8] */ 3416 edx = MEM32(esi); /* 0x4200EA34: mov edx, dword ptr [esi] */ 3417 MEM32(ebp + 0x8) = ecx; /* 0x4200EA36: mov dword ptr [ebp + 8], ecx */ 3418 PUSH32(esp, ebx); /* 0x4200EA39: push ebx */ 3419 ecx = esi; /* 0x4200EA3A: mov ecx, esi */ 3420 RECOMP_ICALL(MEM32(edx + 0x7C)); /* 0x4200EA3C: call dword ptr [edx + 0x7c] */ 3421 RECOMP_FLAGS_IN(); 3422 edi = MEM32(eax + 0x4); /* 0x4200EA3F: mov edi, dword ptr [eax + 4] */ 3423 eax = MEM32(ebp + 0x8); /* 0x4200EA42: mov eax, dword ptr [ebp + 8] */ 3424 /* cmp edi, eax */ /* 0x4200EA45: cmp edi, eax */ 3425 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3426 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3427 _flag_k = FK_CMP; 3428 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200EA57; /* 0x4200EA47: je 0x4200ea57 */ 3429 L_4200EA49: 3430 ecx = MEM32(ebp + 0xC); /* 0x4200EA49: mov ecx, dword ptr [ebp + 0xc] */ 3431 /* cmp MEM32(edi), ecx */ /* 0x4200EA4C: cmp dword ptr [edi], ecx */ 3432 _flag_a = (uint32_t)(MEM32(edi)); _flag_b = (uint32_t)(ecx); 3433 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3434 _flag_k = FK_CMP; 3435 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200EA57; /* 0x4200EA4E: je 0x4200ea57 */ 3436 L_4200EA50: 3437 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 3438 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3439 edi = edi + 4; /* 0x4200EA50: add edi, 4 */ 3440 _flag_k = FK_ADD; 3441 /* cmp edi, eax */ /* 0x4200EA53: cmp edi, eax */ 3442 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3443 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3444 _flag_k = FK_CMP; 3445 RECOMP_BACKEDGE(); 3446 if (CMP_NE(_flag_a, _flag_b)) goto L_4200EA49; /* 0x4200EA55: jne 0x4200ea49 */ 3447 L_4200EA57: 3448 edx = MEM32(esi); /* 0x4200EA57: mov edx, dword ptr [esi] */ 3449 PUSH32(esp, ebx); /* 0x4200EA59: push ebx */ 3450 ecx = esi; /* 0x4200EA5A: mov ecx, esi */ 3451 RECOMP_ICALL(MEM32(edx + 0x7C)); /* 0x4200EA5C: call dword ptr [edx + 0x7c] */ 3452 RECOMP_FLAGS_IN(); 3453 /* cmp edi, MEM32(eax + 0x8) */ /* 0x4200EA5F: cmp edi, dword ptr [eax + 8] */ 3454 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 3455 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3456 _flag_k = FK_CMP; 3457 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200EAB3; /* 0x4200EA62: je 0x4200eab3 */ 3458 L_4200EA64: 3459 eax = MEM32(esi); /* 0x4200EA64: mov eax, dword ptr [esi] */ 3460 PUSH32(esp, ebx); /* 0x4200EA66: push ebx */ 3461 ecx = esi; /* 0x4200EA67: mov ecx, esi */ 3462 RECOMP_ICALL(MEM32(eax + 0x7C)); /* 0x4200EA69: call dword ptr [eax + 0x7c] */ 3463 RECOMP_FLAGS_IN(); 3464 edx = MEM32(eax + 0x8); /* 0x4200EA6C: mov edx, dword ptr [eax + 8] */ 3465 ecx = edi + 0x4; /* 0x4200EA6F: lea ecx, [edi + 4] */ 3466 /* cmp ecx, edx */ /* 0x4200EA72: cmp ecx, edx */ 3467 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 3468 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3469 _flag_k = FK_CMP; 3470 MEM32(ebp + 0x8) = edx; /* 0x4200EA74: mov dword ptr [ebp + 8], edx */ 3471 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200EA8A; /* 0x4200EA77: je 0x4200ea8a */ 3472 L_4200EA79: 3473 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 3474 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3475 edi = edi - ecx; /* 0x4200EA79: sub edi, ecx */ 3476 _flag_k = FK_CMP; 3477 L_4200EA7B: 3478 edx = MEM32(ecx); /* 0x4200EA7B: mov edx, dword ptr [ecx] */ 3479 MEM32(edi + ecx) = edx; /* 0x4200EA7D: mov dword ptr [edi + ecx], edx */ 3480 edx = MEM32(ebp + 0x8); /* 0x4200EA80: mov edx, dword ptr [ebp + 8] */ 3481 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 3482 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3483 ecx = ecx + 4; /* 0x4200EA83: add ecx, 4 */ 3484 _flag_k = FK_ADD; 3485 /* cmp ecx, edx */ /* 0x4200EA86: cmp ecx, edx */ 3486 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 3487 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3488 _flag_k = FK_CMP; 3489 RECOMP_BACKEDGE(); 3490 if (CMP_NE(_flag_a, _flag_b)) goto L_4200EA7B; /* 0x4200EA88: jne 0x4200ea7b */ 3491 L_4200EA8A: 3492 ecx = MEM32(eax + 0x8); /* 0x4200EA8A: mov ecx, dword ptr [eax + 8] */ 3493 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFFCu); 3494 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3495 ecx = ecx + 0xFFFFFFFCu; /* 0x4200EA8D: add ecx, -4 */ 3496 _flag_k = FK_ADD; 3497 MEM32(eax + 0x8) = ecx; /* 0x4200EA90: mov dword ptr [eax + 8], ecx */ 3498 eax = MEM32(ebp + 0xC); /* 0x4200EA93: mov eax, dword ptr [ebp + 0xc] */ 3499 edx = MEM32(esi); /* 0x4200EA96: mov edx, dword ptr [esi] */ 3500 PUSH32(esp, eax); /* 0x4200EA98: push eax */ 3501 MEM32(ebp + 0x8) = ecx; /* 0x4200EA99: mov dword ptr [ebp + 8], ecx */ 3502 PUSH32(esp, ebx); /* 0x4200EA9C: push ebx */ 3503 ecx = esi; /* 0x4200EA9D: mov ecx, esi */ 3504 RECOMP_ICALL(MEM32(edx + 0x7C)); /* 0x4200EA9F: call dword ptr [edx + 0x7c] */ 3505 RECOMP_FLAGS_IN(); 3506 ecx = MEM32(eax + 0x20); /* 0x4200EAA2: mov ecx, dword ptr [eax + 0x20] */ 3507 RECOMP_ICALL(0x42005F50u); /* 0x4200EAA5: call 0x42005f50 */ /* not lifted */ 3508 RECOMP_FLAGS_IN(); 3509 edi = POP32_VAL(esp); /* 0x4200EAAA: pop edi */ 3510 esi = POP32_VAL(esp); /* 0x4200EAAB: pop esi */ 3511 SET_LO8(eax, 1); /* 0x4200EAAC: mov al, 1 */ 3512 ebx = POP32_VAL(esp); /* 0x4200EAAE: pop ebx */ 3513 ebp = POP32_VAL(esp); /* 0x4200EAAF: pop ebp */ 3514 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4200EAB0: ret 8 */ 3515 L_4200EAB3: 3516 edi = POP32_VAL(esp); /* 0x4200EAB3: pop edi */ 3517 esi = POP32_VAL(esp); /* 0x4200EAB4: pop esi */ 3518 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 3519 SET_LO8(eax, 0); /* 0x4200EAB5: xor al, al */ 3520 _cf = 0; 3521 _flag_k = FK_NARROW(FK_TEST, 24); 3522 ebx = POP32_VAL(esp); /* 0x4200EAB7: pop ebx */ 3523 ebp = POP32_VAL(esp); /* 0x4200EAB8: pop ebp */ 3524 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4200EAB9: ret 8 */ 3525 RECOMP_REGS_OUT(); 3526 } 3527 3528 void sub_4200EAC0(void) { 3529 int _fpu_cmp = 0; 3530 uint32_t _cf = 0; 3531 int _df = 1; 3532 uint32_t _flag_k = FK_NONE; 3533 uint32_t _flag_a = 0, _flag_b = 0; 3534 uint32_t _itail_tgt = 0; 3535 RECOMP_REGS_LOCALS 3536 RECOMP_ENTER(0x4200EAC0u); 3537 3538 L_4200EAC0: 3539 PUSH32(esp, ebp); /* 0x4200EAC0: push ebp */ 3540 ebp = esp; /* 0x4200EAC1: mov ebp, esp */ 3541 PUSH32(esp, ebx); /* 0x4200EAC3: push ebx */ 3542 PUSH32(esp, esi); /* 0x4200EAC4: push esi */ 3543 PUSH32(esp, edi); /* 0x4200EAC5: push edi */ 3544 edi = MEM32(ebp + 0x8); /* 0x4200EAC6: mov edi, dword ptr [ebp + 8] */ 3545 esi = ecx; /* 0x4200EAC9: mov esi, ecx */ 3546 eax = MEM32(esi); /* 0x4200EACB: mov eax, dword ptr [esi] */ 3547 PUSH32(esp, edi); /* 0x4200EACD: push edi */ 3548 RECOMP_ICALL(MEM32(eax + 0x7C)); /* 0x4200EACE: call dword ptr [eax + 0x7c] */ 3549 RECOMP_FLAGS_IN(); 3550 edx = MEM32(esi); /* 0x4200EAD1: mov edx, dword ptr [esi] */ 3551 ebx = MEM32(eax + 0x18); /* 0x4200EAD3: mov ebx, dword ptr [eax + 0x18] */ 3552 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 3553 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3554 eax = eax + 0x10u; /* 0x4200EAD6: add eax, 0x10 */ 3555 _flag_k = FK_ADD; 3556 PUSH32(esp, edi); /* 0x4200EAD9: push edi */ 3557 ecx = esi; /* 0x4200EADA: mov ecx, esi */ 3558 RECOMP_ICALL(MEM32(edx + 0x7C)); /* 0x4200EADC: call dword ptr [edx + 0x7c] */ 3559 RECOMP_FLAGS_IN(); 3560 edi = MEM32(eax + 0x14); /* 0x4200EADF: mov edi, dword ptr [eax + 0x14] */ 3561 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 3562 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3563 eax = eax + 0x10u; /* 0x4200EAE2: add eax, 0x10 */ 3564 _flag_k = FK_ADD; 3565 /* cmp edi, ebx */ /* 0x4200EAE5: cmp edi, ebx */ 3566 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 3567 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3568 _flag_k = FK_CMP; 3569 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200EAF7; /* 0x4200EAE7: je 0x4200eaf7 */ 3570 L_4200EAE9: 3571 eax = MEM32(ebp + 0xC); /* 0x4200EAE9: mov eax, dword ptr [ebp + 0xc] */ 3572 /* cmp MEM32(edi), eax */ /* 0x4200EAEC: cmp dword ptr [edi], eax */ 3573 _flag_a = (uint32_t)(MEM32(edi)); _flag_b = (uint32_t)(eax); 3574 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3575 _flag_k = FK_CMP; 3576 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200EAF7; /* 0x4200EAEE: je 0x4200eaf7 */ 3577 L_4200EAF0: 3578 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 3579 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3580 edi = edi + 4; /* 0x4200EAF0: add edi, 4 */ 3581 _flag_k = FK_ADD; 3582 /* cmp edi, ebx */ /* 0x4200EAF3: cmp edi, ebx */ 3583 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 3584 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3585 _flag_k = FK_CMP; 3586 RECOMP_BACKEDGE(); 3587 if (CMP_NE(_flag_a, _flag_b)) goto L_4200EAE9; /* 0x4200EAF5: jne 0x4200eae9 */ 3588 L_4200EAF7: 3589 ebx = MEM32(ebp + 0x8); /* 0x4200EAF7: mov ebx, dword ptr [ebp + 8] */ 3590 edx = MEM32(esi); /* 0x4200EAFA: mov edx, dword ptr [esi] */ 3591 PUSH32(esp, ebx); /* 0x4200EAFC: push ebx */ 3592 ecx = esi; /* 0x4200EAFD: mov ecx, esi */ 3593 RECOMP_ICALL(MEM32(edx + 0x7C)); /* 0x4200EAFF: call dword ptr [edx + 0x7c] */ 3594 RECOMP_FLAGS_IN(); 3595 ecx = MEM32(eax + 0x18); /* 0x4200EB02: mov ecx, dword ptr [eax + 0x18] */ 3596 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 3597 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3598 eax = eax + 0x10u; /* 0x4200EB05: add eax, 0x10 */ 3599 _flag_k = FK_ADD; 3600 /* cmp edi, ecx */ /* 0x4200EB08: cmp edi, ecx */ 3601 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 3602 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3603 _flag_k = FK_CMP; 3604 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200EB64; /* 0x4200EB0A: je 0x4200eb64 */ 3605 L_4200EB0C: 3606 eax = MEM32(esi); /* 0x4200EB0C: mov eax, dword ptr [esi] */ 3607 PUSH32(esp, ebx); /* 0x4200EB0E: push ebx */ 3608 ecx = esi; /* 0x4200EB0F: mov ecx, esi */ 3609 RECOMP_ICALL(MEM32(eax + 0x7C)); /* 0x4200EB11: call dword ptr [eax + 0x7c] */ 3610 RECOMP_FLAGS_IN(); 3611 edx = MEM32(eax + 0x18); /* 0x4200EB14: mov edx, dword ptr [eax + 0x18] */ 3612 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 3613 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3614 eax = eax + 0x10u; /* 0x4200EB17: add eax, 0x10 */ 3615 _flag_k = FK_ADD; 3616 ecx = edi + 0x4; /* 0x4200EB1A: lea ecx, [edi + 4] */ 3617 /* cmp ecx, edx */ /* 0x4200EB1D: cmp ecx, edx */ 3618 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 3619 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3620 _flag_k = FK_CMP; 3621 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200EB32; /* 0x4200EB1F: je 0x4200eb32 */ 3622 L_4200EB21: 3623 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 3624 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3625 edi = edi - ecx; /* 0x4200EB21: sub edi, ecx */ 3626 _flag_k = FK_CMP; 3627 L_4200EB23: 3628 ebx = MEM32(ecx); /* 0x4200EB23: mov ebx, dword ptr [ecx] */ 3629 MEM32(edi + ecx) = ebx; /* 0x4200EB25: mov dword ptr [edi + ecx], ebx */ 3630 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 3631 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3632 ecx = ecx + 4; /* 0x4200EB28: add ecx, 4 */ 3633 _flag_k = FK_ADD; 3634 /* cmp ecx, edx */ /* 0x4200EB2B: cmp ecx, edx */ 3635 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 3636 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3637 _flag_k = FK_CMP; 3638 RECOMP_BACKEDGE(); 3639 if (CMP_NE(_flag_a, _flag_b)) goto L_4200EB23; /* 0x4200EB2D: jne 0x4200eb23 */ 3640 L_4200EB2F: 3641 ebx = MEM32(ebp + 0x8); /* 0x4200EB2F: mov ebx, dword ptr [ebp + 8] */ 3642 L_4200EB32: 3643 ecx = MEM32(eax + 0x8); /* 0x4200EB32: mov ecx, dword ptr [eax + 8] */ 3644 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFFCu); 3645 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3646 ecx = ecx + 0xFFFFFFFCu; /* 0x4200EB35: add ecx, -4 */ 3647 _flag_k = FK_ADD; 3648 MEM32(eax + 0x8) = ecx; /* 0x4200EB38: mov dword ptr [eax + 8], ecx */ 3649 MEM32(ebp + 0x8) = ecx; /* 0x4200EB3B: mov dword ptr [ebp + 8], ecx */ 3650 ecx = MEM32(ebp + 0xC); /* 0x4200EB3E: mov ecx, dword ptr [ebp + 0xc] */ 3651 edx = MEM32(ecx); /* 0x4200EB41: mov edx, dword ptr [ecx] */ 3652 RECOMP_ICALL(MEM32(edx + 0x3C)); /* 0x4200EB43: call dword ptr [edx + 0x3c] */ 3653 RECOMP_FLAGS_IN(); 3654 /* test LO8(eax), LO8(eax) */ /* 0x4200EB46: test al, al */ 3655 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3656 _cf = 0; 3657 _flag_k = FK_NARROW(FK_TEST, 24); 3658 if (TEST_Z(_flag_a, _flag_b)) goto L_4200EB5B; /* 0x4200EB48: je 0x4200eb5b */ 3659 L_4200EB4A: 3660 eax = MEM32(esi); /* 0x4200EB4A: mov eax, dword ptr [esi] */ 3661 PUSH32(esp, ebx); /* 0x4200EB4C: push ebx */ 3662 ecx = esi; /* 0x4200EB4D: mov ecx, esi */ 3663 RECOMP_ICALL(MEM32(eax + 0x7C)); /* 0x4200EB4F: call dword ptr [eax + 0x7c] */ 3664 RECOMP_FLAGS_IN(); 3665 ecx = MEM32(eax + 0x24); /* 0x4200EB52: mov ecx, dword ptr [eax + 0x24] */ 3666 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x24u); 3667 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3668 eax = eax + 0x24u; /* 0x4200EB55: add eax, 0x24 */ 3669 _flag_k = FK_ADD; 3670 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3671 ecx = ecx - 1; /* 0x4200EB58: dec ecx */ 3672 _flag_k = FK_DEC; 3673 MEM32(eax) = ecx; /* 0x4200EB59: mov dword ptr [eax], ecx */ 3674 L_4200EB5B: 3675 edi = POP32_VAL(esp); /* 0x4200EB5B: pop edi */ 3676 esi = POP32_VAL(esp); /* 0x4200EB5C: pop esi */ 3677 SET_LO8(eax, 1); /* 0x4200EB5D: mov al, 1 */ 3678 ebx = POP32_VAL(esp); /* 0x4200EB5F: pop ebx */ 3679 ebp = POP32_VAL(esp); /* 0x4200EB60: pop ebp */ 3680 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4200EB61: ret 8 */ 3681 L_4200EB64: 3682 edi = POP32_VAL(esp); /* 0x4200EB64: pop edi */ 3683 esi = POP32_VAL(esp); /* 0x4200EB65: pop esi */ 3684 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 3685 SET_LO8(eax, 0); /* 0x4200EB66: xor al, al */ 3686 _cf = 0; 3687 _flag_k = FK_NARROW(FK_TEST, 24); 3688 ebx = POP32_VAL(esp); /* 0x4200EB68: pop ebx */ 3689 ebp = POP32_VAL(esp); /* 0x4200EB69: pop ebp */ 3690 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4200EB6A: ret 8 */ 3691 RECOMP_REGS_OUT(); 3692 } 3693 3694 void sub_4200EB70(void) { 3695 int _fpu_cmp = 0; 3696 uint32_t _cf = 0; 3697 int _df = 1; 3698 uint32_t _flag_k = FK_NONE; 3699 uint32_t _flag_a = 0, _flag_b = 0; 3700 uint32_t _itail_tgt = 0; 3701 RECOMP_REGS_LOCALS 3702 RECOMP_ENTER(0x4200EB70u); 3703 3704 L_4200EB70: 3705 PUSH32(esp, ebp); /* 0x4200EB70: push ebp */ 3706 ebp = esp; /* 0x4200EB71: mov ebp, esp */ 3707 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3708 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3709 esp = esp - 0x10u; /* 0x4200EB73: sub esp, 0x10 */ 3710 _flag_k = FK_CMP; 3711 PUSH32(esp, ebx); /* 0x4200EB76: push ebx */ 3712 ebx = ecx; /* 0x4200EB77: mov ebx, ecx */ 3713 ecx = MEM32(ebp + 0x8); /* 0x4200EB79: mov ecx, dword ptr [ebp + 8] */ 3714 eax = MEM32(ebx); /* 0x4200EB7C: mov eax, dword ptr [ebx] */ 3715 PUSH32(esp, esi); /* 0x4200EB7E: push esi */ 3716 PUSH32(esp, edi); /* 0x4200EB7F: push edi */ 3717 PUSH32(esp, ecx); /* 0x4200EB80: push ecx */ 3718 ecx = ebx; /* 0x4200EB81: mov ecx, ebx */ 3719 MEM32(ebp + (-0x10)) = ebx; /* 0x4200EB83: mov dword ptr [ebp - 0x10], ebx */ 3720 RECOMP_ICALL(MEM32(eax + 0x7C)); /* 0x4200EB86: call dword ptr [eax + 0x7c] */ 3721 RECOMP_FLAGS_IN(); 3722 esi = eax; /* 0x4200EB89: mov esi, eax */ 3723 eax = MEM32(esi + 0x8); /* 0x4200EB8B: mov eax, dword ptr [esi + 8] */ 3724 edx = MEM32(esi + 0xC); /* 0x4200EB8E: mov edx, dword ptr [esi + 0xc] */ 3725 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3726 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3727 edx = edx - eax; /* 0x4200EB91: sub edx, eax */ 3728 _flag_k = FK_CMP; 3729 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x4200EB93: sar edx, 2 */ 3730 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3731 edx = (uint32_t)((int32_t)edx >> 2u); 3732 /* cmp edx, 1 */ /* 0x4200EB96: cmp edx, 1 */ 3733 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 3734 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3735 _flag_k = FK_CMP; 3736 edi = eax; /* 0x4200EB99: mov edi, eax */ 3737 if (CMP_AE(_flag_a, _flag_b)) goto L_4200EC85; /* 0x4200EB9B: jae 0x4200ec85 */ 3738 L_4200EBA1: 3739 edx = MEM32(esi + 0x4); /* 0x4200EBA1: mov edx, dword ptr [esi + 4] */ 3740 /* test edx, edx */ /* 0x4200EBA4: test edx, edx */ 3741 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 3742 _cf = 0; 3743 _flag_k = FK_TEST; 3744 if (TEST_Z(_flag_a, _flag_b)) goto L_4200EBB4; /* 0x4200EBA6: je 0x4200ebb4 */ 3745 L_4200EBA8: 3746 ecx = eax; /* 0x4200EBA8: mov ecx, eax */ 3747 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 3748 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3749 ecx = ecx - edx; /* 0x4200EBAA: sub ecx, edx */ 3750 _flag_k = FK_CMP; 3751 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4200EBAC: sar ecx, 2 */ 3752 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3753 ecx = (uint32_t)((int32_t)ecx >> 2u); 3754 /* cmp ecx, 1 */ /* 0x4200EBAF: cmp ecx, 1 */ 3755 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3756 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3757 _flag_k = FK_CMP; 3758 if (CMP_A(_flag_a, _flag_b)) goto L_4200EBB9; /* 0x4200EBB2: ja 0x4200ebb9 */ 3759 L_4200EBB4: 3760 ecx = 1; /* 0x4200EBB4: mov ecx, 1 */ 3761 L_4200EBB9: 3762 /* test edx, edx */ /* 0x4200EBB9: test edx, edx */ 3763 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 3764 _cf = 0; 3765 _flag_k = FK_TEST; 3766 if (TEST_NZ(_flag_a, _flag_b)) goto L_4200EBC1; /* 0x4200EBBB: jne 0x4200ebc1 */ 3767 L_4200EBBD: 3768 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3769 eax = 0; /* 0x4200EBBD: xor eax, eax */ 3770 _cf = 0; 3771 _flag_k = FK_TEST; 3772 goto L_4200EBC6; /* 0x4200EBBF: jmp 0x4200ebc6 */ 3773 L_4200EBC1: 3774 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3775 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3776 eax = eax - edx; /* 0x4200EBC1: sub eax, edx */ 3777 _flag_k = FK_CMP; 3778 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x4200EBC3: sar eax, 2 */ 3779 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3780 eax = (uint32_t)((int32_t)eax >> 2u); 3781 L_4200EBC6: 3782 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3783 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3784 eax = eax + ecx; /* 0x4200EBC6: add eax, ecx */ 3785 _flag_k = FK_ADD; 3786 /* test eax, eax */ /* 0x4200EBC8: test eax, eax */ 3787 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3788 _cf = 0; 3789 _flag_k = FK_TEST; 3790 MEM32(ebp + (-0xC)) = eax; /* 0x4200EBCA: mov dword ptr [ebp - 0xc], eax */ 3791 if (TEST_NS(_flag_a, _flag_b)) goto L_4200EBD1; /* 0x4200EBCD: jge 0x4200ebd1 */ 3792 L_4200EBCF: 3793 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3794 eax = 0; /* 0x4200EBCF: xor eax, eax */ 3795 _cf = 0; 3796 _flag_k = FK_TEST; 3797 L_4200EBD1: 3798 if (2u) _cf = (((eax) >> 30) & 1u); /* 0x4200EBD1: shl eax, 2 */ 3799 if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3800 eax = eax << 2u; /* 0x4200EBD1: shl eax, 2 */ 3801 PUSH32(esp, eax); /* 0x4200EBD4: push eax */ 3802 RECOMP_ICALL(0x42016F36u); /* 0x4200EBD5: call 0x42016f36 */ /* not lifted */ 3803 RECOMP_FLAGS_IN(); 3804 MEM32(ebp + (-0x8)) = eax; /* 0x4200EBDA: mov dword ptr [ebp - 8], eax */ 3805 ebx = eax; /* 0x4200EBDD: mov ebx, eax */ 3806 eax = MEM32(esi + 0x4); /* 0x4200EBDF: mov eax, dword ptr [esi + 4] */ 3807 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3808 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3809 esp = esp + 4; /* 0x4200EBE2: add esp, 4 */ 3810 _flag_k = FK_ADD; 3811 /* cmp eax, edi */ /* 0x4200EBE5: cmp eax, edi */ 3812 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3813 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3814 _flag_k = FK_CMP; 3815 MEM32(ebp + (-0x4)) = eax; /* 0x4200EBE7: mov dword ptr [ebp - 4], eax */ 3816 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200EC0B; /* 0x4200EBEA: je 0x4200ec0b */ 3817 L_4200EBEC: 3818 goto L_4200EBF1; /* 0x4200EBEC: jmp 0x4200ebf1 */ 3819 L_4200EBEE: 3820 eax = MEM32(ebp + (-0x4)); /* 0x4200EBEE: mov eax, dword ptr [ebp - 4] */ 3821 L_4200EBF1: 3822 PUSH32(esp, eax); /* 0x4200EBF1: push eax */ 3823 PUSH32(esp, ebx); /* 0x4200EBF2: push ebx */ 3824 RECOMP_ICALL(0x42004A70u); /* 0x4200EBF3: call 0x42004a70 */ /* not lifted */ 3825 RECOMP_FLAGS_IN(); 3826 eax = MEM32(ebp + (-0x4)); /* 0x4200EBF8: mov eax, dword ptr [ebp - 4] */ 3827 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 3828 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3829 eax = eax + 4; /* 0x4200EBFB: add eax, 4 */ 3830 _flag_k = FK_ADD; 3831 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3832 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3833 esp = esp + 8; /* 0x4200EBFE: add esp, 8 */ 3834 _flag_k = FK_ADD; 3835 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 3836 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3837 ebx = ebx + 4; /* 0x4200EC01: add ebx, 4 */ 3838 _flag_k = FK_ADD; 3839 /* cmp eax, edi */ /* 0x4200EC04: cmp eax, edi */ 3840 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3841 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3842 _flag_k = FK_CMP; 3843 MEM32(ebp + (-0x4)) = eax; /* 0x4200EC06: mov dword ptr [ebp - 4], eax */ 3844 RECOMP_BACKEDGE(); 3845 if (CMP_NE(_flag_a, _flag_b)) goto L_4200EBEE; /* 0x4200EC09: jne 0x4200ebee */ 3846 L_4200EC0B: 3847 ecx = ebp + 0xC; /* 0x4200EC0B: lea ecx, [ebp + 0xc] */ 3848 PUSH32(esp, ecx); /* 0x4200EC0E: push ecx */ 3849 PUSH32(esp, 1); /* 0x4200EC0F: push 1 */ 3850 PUSH32(esp, ebx); /* 0x4200EC11: push ebx */ 3851 ecx = esi; /* 0x4200EC12: mov ecx, esi */ 3852 RECOMP_ICALL(0x42005CE0u); /* 0x4200EC14: call 0x42005ce0 */ /* not lifted */ 3853 RECOMP_FLAGS_IN(); 3854 edx = MEM32(esi + 0x8); /* 0x4200EC19: mov edx, dword ptr [esi + 8] */ 3855 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 3856 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3857 ebx = ebx + 4; /* 0x4200EC1C: add ebx, 4 */ 3858 _flag_k = FK_ADD; 3859 PUSH32(esp, ebx); /* 0x4200EC1F: push ebx */ 3860 PUSH32(esp, edx); /* 0x4200EC20: push edx */ 3861 PUSH32(esp, edi); /* 0x4200EC21: push edi */ 3862 ecx = esi; /* 0x4200EC22: mov ecx, esi */ 3863 RECOMP_ICALL(0x42005CB0u); /* 0x4200EC24: call 0x42005cb0 */ /* not lifted */ 3864 RECOMP_FLAGS_IN(); 3865 eax = MEM32(esi + 0x8); /* 0x4200EC29: mov eax, dword ptr [esi + 8] */ 3866 ecx = MEM32(esi + 0x4); /* 0x4200EC2C: mov ecx, dword ptr [esi + 4] */ 3867 PUSH32(esp, eax); /* 0x4200EC2F: push eax */ 3868 PUSH32(esp, ecx); /* 0x4200EC30: push ecx */ 3869 ecx = esi; /* 0x4200EC31: mov ecx, esi */ 3870 RECOMP_ICALL(0x42002690u); /* 0x4200EC33: call 0x42002690 */ /* not lifted */ 3871 RECOMP_FLAGS_IN(); 3872 edx = MEM32(esi + 0x4); /* 0x4200EC38: mov edx, dword ptr [esi + 4] */ 3873 PUSH32(esp, edx); /* 0x4200EC3B: push edx */ 3874 RECOMP_ICALL(0x42016DD0u); /* 0x4200EC3C: call 0x42016dd0 */ /* not lifted */ 3875 RECOMP_FLAGS_IN(); 3876 eax = MEM32(ebp + (-0xC)); /* 0x4200EC41: mov eax, dword ptr [ebp - 0xc] */ 3877 edx = MEM32(ebp + (-0x8)); /* 0x4200EC44: mov edx, dword ptr [ebp - 8] */ 3878 ecx = edx + eax * 4; /* 0x4200EC47: lea ecx, [edx + eax*4] */ 3879 eax = MEM32(esi + 0x4); /* 0x4200EC4A: mov eax, dword ptr [esi + 4] */ 3880 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3881 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3882 esp = esp + 4; /* 0x4200EC4D: add esp, 4 */ 3883 _flag_k = FK_ADD; 3884 /* test eax, eax */ /* 0x4200EC50: test eax, eax */ 3885 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3886 _cf = 0; 3887 _flag_k = FK_TEST; 3888 MEM32(esi + 0xC) = ecx; /* 0x4200EC52: mov dword ptr [esi + 0xc], ecx */ 3889 if (TEST_NZ(_flag_a, _flag_b)) goto L_4200EC6B; /* 0x4200EC55: jne 0x4200ec6b */ 3890 L_4200EC57: 3891 ebx = MEM32(ebp + (-0x10)); /* 0x4200EC57: mov ebx, dword ptr [ebp - 0x10] */ 3892 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3893 ecx = 0; /* 0x4200EC5A: xor ecx, ecx */ 3894 _cf = 0; 3895 _flag_k = FK_TEST; 3896 eax = edx + ecx * 4 + 0x4; /* 0x4200EC5C: lea eax, [edx + ecx*4 + 4] */ 3897 MEM32(esi + 0x8) = eax; /* 0x4200EC60: mov dword ptr [esi + 8], eax */ 3898 MEM32(esi + 0x4) = edx; /* 0x4200EC63: mov dword ptr [esi + 4], edx */ 3899 goto L_4200ED0E; /* 0x4200EC66: jmp 0x4200ed0e */ 3900 L_4200EC6B: 3901 ecx = MEM32(esi + 0x8); /* 0x4200EC6B: mov ecx, dword ptr [esi + 8] */ 3902 ebx = MEM32(ebp + (-0x10)); /* 0x4200EC6E: mov ebx, dword ptr [ebp - 0x10] */ 3903 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3904 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3905 ecx = ecx - eax; /* 0x4200EC71: sub ecx, eax */ 3906 _flag_k = FK_CMP; 3907 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4200EC73: sar ecx, 2 */ 3908 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3909 ecx = (uint32_t)((int32_t)ecx >> 2u); 3910 eax = edx + ecx * 4 + 0x4; /* 0x4200EC76: lea eax, [edx + ecx*4 + 4] */ 3911 MEM32(esi + 0x8) = eax; /* 0x4200EC7A: mov dword ptr [esi + 8], eax */ 3912 MEM32(esi + 0x4) = edx; /* 0x4200EC7D: mov dword ptr [esi + 4], edx */ 3913 goto L_4200ED0E; /* 0x4200EC80: jmp 0x4200ed0e */ 3914 L_4200EC85: 3915 ecx = eax; /* 0x4200EC85: mov ecx, eax */ 3916 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 3917 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3918 ecx = ecx - edi; /* 0x4200EC87: sub ecx, edi */ 3919 _flag_k = FK_CMP; 3920 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4200EC89: sar ecx, 2 */ 3921 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3922 ecx = (uint32_t)((int32_t)ecx >> 2u); 3923 /* cmp ecx, 1 */ /* 0x4200EC8C: cmp ecx, 1 */ 3924 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3925 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3926 _flag_k = FK_CMP; 3927 if (CMP_AE(_flag_a, _flag_b)) goto L_4200ECD1; /* 0x4200EC8F: jae 0x4200ecd1 */ 3928 L_4200EC91: 3929 edx = edi + 0x4; /* 0x4200EC91: lea edx, [edi + 4] */ 3930 PUSH32(esp, edx); /* 0x4200EC94: push edx */ 3931 PUSH32(esp, eax); /* 0x4200EC95: push eax */ 3932 PUSH32(esp, edi); /* 0x4200EC96: push edi */ 3933 ecx = esi; /* 0x4200EC97: mov ecx, esi */ 3934 RECOMP_ICALL(0x42005CB0u); /* 0x4200EC99: call 0x42005cb0 */ /* not lifted */ 3935 RECOMP_FLAGS_IN(); 3936 eax = MEM32(esi + 0x8); /* 0x4200EC9E: mov eax, dword ptr [esi + 8] */ 3937 edx = eax; /* 0x4200ECA1: mov edx, eax */ 3938 ecx = ebp + 0xC; /* 0x4200ECA3: lea ecx, [ebp + 0xc] */ 3939 PUSH32(esp, ecx); /* 0x4200ECA6: push ecx */ 3940 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 3941 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3942 edx = edx - edi; /* 0x4200ECA7: sub edx, edi */ 3943 _flag_k = FK_CMP; 3944 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x4200ECA9: sar edx, 2 */ 3945 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3946 edx = (uint32_t)((int32_t)edx >> 2u); 3947 ecx = 1; /* 0x4200ECAC: mov ecx, 1 */ 3948 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 3949 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3950 ecx = ecx - edx; /* 0x4200ECB1: sub ecx, edx */ 3951 _flag_k = FK_CMP; 3952 PUSH32(esp, ecx); /* 0x4200ECB3: push ecx */ 3953 PUSH32(esp, eax); /* 0x4200ECB4: push eax */ 3954 ecx = esi; /* 0x4200ECB5: mov ecx, esi */ 3955 RECOMP_ICALL(0x42005CE0u); /* 0x4200ECB7: call 0x42005ce0 */ /* not lifted */ 3956 RECOMP_FLAGS_IN(); 3957 eax = MEM32(esi + 0x8); /* 0x4200ECBC: mov eax, dword ptr [esi + 8] */ 3958 /* cmp edi, eax */ /* 0x4200ECBF: cmp edi, eax */ 3959 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3960 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3961 _flag_k = FK_CMP; 3962 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200ED0A; /* 0x4200ECC1: je 0x4200ed0a */ 3963 L_4200ECC3: 3964 edx = MEM32(ebp + 0xC); /* 0x4200ECC3: mov edx, dword ptr [ebp + 0xc] */ 3965 MEM32(edi) = edx; /* 0x4200ECC6: mov dword ptr [edi], edx */ 3966 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 3967 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3968 edi = edi + 4; /* 0x4200ECC8: add edi, 4 */ 3969 _flag_k = FK_ADD; 3970 /* cmp edi, eax */ /* 0x4200ECCB: cmp edi, eax */ 3971 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3972 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3973 _flag_k = FK_CMP; 3974 RECOMP_BACKEDGE(); 3975 if (CMP_NE(_flag_a, _flag_b)) goto L_4200ECC3; /* 0x4200ECCD: jne 0x4200ecc3 */ 3976 L_4200ECCF: 3977 goto L_4200ED0A; /* 0x4200ECCF: jmp 0x4200ed0a */ 3978 L_4200ECD1: 3979 PUSH32(esp, eax); /* 0x4200ECD1: push eax */ 3980 PUSH32(esp, eax); /* 0x4200ECD2: push eax */ 3981 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFCu); 3982 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3983 eax = eax + 0xFFFFFFFCu; /* 0x4200ECD3: add eax, -4 */ 3984 _flag_k = FK_ADD; 3985 PUSH32(esp, eax); /* 0x4200ECD6: push eax */ 3986 ecx = esi; /* 0x4200ECD7: mov ecx, esi */ 3987 RECOMP_ICALL(0x42005CB0u); /* 0x4200ECD9: call 0x42005cb0 */ /* not lifted */ 3988 RECOMP_FLAGS_IN(); 3989 ecx = MEM32(esi + 0x8); /* 0x4200ECDE: mov ecx, dword ptr [esi + 8] */ 3990 eax = ecx + (-0x4); /* 0x4200ECE1: lea eax, [ecx - 4] */ 3991 /* cmp edi, eax */ /* 0x4200ECE4: cmp edi, eax */ 3992 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3993 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3994 _flag_k = FK_CMP; 3995 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200ECF7; /* 0x4200ECE6: je 0x4200ecf7 */ 3996 L_4200ECE8: 3997 edx = MEM32(eax + (-0x4)); /* 0x4200ECE8: mov edx, dword ptr [eax - 4] */ 3998 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 3999 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4000 eax = eax - 4; /* 0x4200ECEB: sub eax, 4 */ 4001 _flag_k = FK_CMP; 4002 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 4003 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4004 ecx = ecx - 4; /* 0x4200ECEE: sub ecx, 4 */ 4005 _flag_k = FK_CMP; 4006 /* cmp eax, edi */ /* 0x4200ECF1: cmp eax, edi */ 4007 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4008 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4009 _flag_k = FK_CMP; 4010 MEM32(ecx) = edx; /* 0x4200ECF3: mov dword ptr [ecx], edx */ 4011 RECOMP_BACKEDGE(); 4012 if (CMP_NE(_flag_a, _flag_b)) goto L_4200ECE8; /* 0x4200ECF5: jne 0x4200ece8 */ 4013 L_4200ECF7: 4014 eax = edi + 0x4; /* 0x4200ECF7: lea eax, [edi + 4] */ 4015 /* cmp edi, eax */ /* 0x4200ECFA: cmp edi, eax */ 4016 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4017 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4018 _flag_k = FK_CMP; 4019 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200ED0A; /* 0x4200ECFC: je 0x4200ed0a */ 4020 L_4200ECFE: 4021 ecx = MEM32(ebp + 0xC); /* 0x4200ECFE: mov ecx, dword ptr [ebp + 0xc] */ 4022 MEM32(edi) = ecx; /* 0x4200ED01: mov dword ptr [edi], ecx */ 4023 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 4024 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4025 edi = edi + 4; /* 0x4200ED03: add edi, 4 */ 4026 _flag_k = FK_ADD; 4027 /* cmp edi, eax */ /* 0x4200ED06: cmp edi, eax */ 4028 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4029 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4030 _flag_k = FK_CMP; 4031 RECOMP_BACKEDGE(); 4032 if (CMP_NE(_flag_a, _flag_b)) goto L_4200ECFE; /* 0x4200ED08: jne 0x4200ecfe */ 4033 L_4200ED0A: 4034 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(4); 4035 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4036 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 4; /* 0x4200ED0A: add dword ptr [esi + 8], 4 */ 4037 _flag_k = FK_ADD; 4038 L_4200ED0E: 4039 ecx = MEM32(ebp + 0xC); /* 0x4200ED0E: mov ecx, dword ptr [ebp + 0xc] */ 4040 edx = MEM32(ecx); /* 0x4200ED11: mov edx, dword ptr [ecx] */ 4041 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4200ED13: call dword ptr [edx + 0xc] */ 4042 RECOMP_FLAGS_IN(); 4043 ecx = MEM32(ebp + 0xC); /* 0x4200ED16: mov ecx, dword ptr [ebp + 0xc] */ 4044 esi = eax; /* 0x4200ED19: mov esi, eax */ 4045 eax = MEM32(ecx); /* 0x4200ED1B: mov eax, dword ptr [ecx] */ 4046 RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x4200ED1D: call dword ptr [eax + 0x14] */ 4047 RECOMP_FLAGS_IN(); 4048 _st[0] += _st[0]; /* 0x4200ED20: fadd st(0), st(0) */ 4049 PUSH32(esp, ecx); /* 0x4200ED22: push ecx */ 4050 ecx = MEM32(ebp + 0xC); /* 0x4200ED23: mov ecx, dword ptr [ebp + 0xc] */ 4051 edx = MEM32(ecx); /* 0x4200ED26: mov edx, dword ptr [ecx] */ 4052 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x4200ED28: fstp dword ptr [esp] */ 4053 RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x4200ED2B: call dword ptr [edx + 0x14] */ 4054 RECOMP_FLAGS_IN(); 4055 _st[0] = (double)*(float*)ADDR(esi) - _st[0]; /* 0x4200ED2E: fsubr dword ptr [esi] */ 4056 eax = MEM32(ebp + 0xC); /* 0x4200ED30: mov eax, dword ptr [ebp + 0xc] */ 4057 edx = MEM32(ebx); /* 0x4200ED33: mov edx, dword ptr [ebx] */ 4058 PUSH32(esp, ecx); /* 0x4200ED35: push ecx */ 4059 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x4200ED36: fstp dword ptr [esp] */ 4060 PUSH32(esp, eax); /* 0x4200ED39: push eax */ 4061 eax = MEM32(ebp + 0x8); /* 0x4200ED3A: mov eax, dword ptr [ebp + 8] */ 4062 PUSH32(esp, eax); /* 0x4200ED3D: push eax */ 4063 ecx = ebx; /* 0x4200ED3E: mov ecx, ebx */ 4064 RECOMP_ICALL(MEM32(edx + 0x7C)); /* 0x4200ED40: call dword ptr [edx + 0x7c] */ 4065 RECOMP_FLAGS_IN(); 4066 ecx = MEM32(eax + 0x20); /* 0x4200ED43: mov ecx, dword ptr [eax + 0x20] */ 4067 RECOMP_ICALL(0x42005EB0u); /* 0x4200ED46: call 0x42005eb0 */ /* not lifted */ 4068 RECOMP_FLAGS_IN(); 4069 edi = POP32_VAL(esp); /* 0x4200ED4B: pop edi */ 4070 esi = POP32_VAL(esp); /* 0x4200ED4C: pop esi */ 4071 ebx = POP32_VAL(esp); /* 0x4200ED4D: pop ebx */ 4072 esp = ebp; /* 0x4200ED4E: mov esp, ebp */ 4073 ebp = POP32_VAL(esp); /* 0x4200ED50: pop ebp */ 4074 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4200ED51: ret 8 */ 4075 RECOMP_REGS_OUT(); 4076 } 4077 4078 void sub_4200ED0E(void) { 4079 int _fpu_cmp = 0; 4080 uint32_t _cf = 0; 4081 int _df = 1; 4082 uint32_t _flag_k = FK_NONE; 4083 uint32_t _flag_a = 0, _flag_b = 0; 4084 uint32_t _itail_tgt = 0; 4085 RECOMP_REGS_LOCALS 4086 RECOMP_ENTER(0x4200ED0Eu); 4087 4088 L_4200ED0E: 4089 ecx = MEM32(ebp + 0xC); /* 0x4200ED0E: mov ecx, dword ptr [ebp + 0xc] */ 4090 edx = MEM32(ecx); /* 0x4200ED11: mov edx, dword ptr [ecx] */ 4091 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4200ED13: call dword ptr [edx + 0xc] */ 4092 RECOMP_FLAGS_IN(); 4093 ecx = MEM32(ebp + 0xC); /* 0x4200ED16: mov ecx, dword ptr [ebp + 0xc] */ 4094 esi = eax; /* 0x4200ED19: mov esi, eax */ 4095 eax = MEM32(ecx); /* 0x4200ED1B: mov eax, dword ptr [ecx] */ 4096 RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x4200ED1D: call dword ptr [eax + 0x14] */ 4097 RECOMP_FLAGS_IN(); 4098 _st[0] += _st[0]; /* 0x4200ED20: fadd st(0), st(0) */ 4099 PUSH32(esp, ecx); /* 0x4200ED22: push ecx */ 4100 ecx = MEM32(ebp + 0xC); /* 0x4200ED23: mov ecx, dword ptr [ebp + 0xc] */ 4101 edx = MEM32(ecx); /* 0x4200ED26: mov edx, dword ptr [ecx] */ 4102 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x4200ED28: fstp dword ptr [esp] */ 4103 RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x4200ED2B: call dword ptr [edx + 0x14] */ 4104 RECOMP_FLAGS_IN(); 4105 _st[0] = (double)*(float*)ADDR(esi) - _st[0]; /* 0x4200ED2E: fsubr dword ptr [esi] */ 4106 eax = MEM32(ebp + 0xC); /* 0x4200ED30: mov eax, dword ptr [ebp + 0xc] */ 4107 edx = MEM32(ebx); /* 0x4200ED33: mov edx, dword ptr [ebx] */ 4108 PUSH32(esp, ecx); /* 0x4200ED35: push ecx */ 4109 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x4200ED36: fstp dword ptr [esp] */ 4110 PUSH32(esp, eax); /* 0x4200ED39: push eax */ 4111 eax = MEM32(ebp + 0x8); /* 0x4200ED3A: mov eax, dword ptr [ebp + 8] */ 4112 PUSH32(esp, eax); /* 0x4200ED3D: push eax */ 4113 ecx = ebx; /* 0x4200ED3E: mov ecx, ebx */ 4114 RECOMP_ICALL(MEM32(edx + 0x7C)); /* 0x4200ED40: call dword ptr [edx + 0x7c] */ 4115 RECOMP_FLAGS_IN(); 4116 ecx = MEM32(eax + 0x20); /* 0x4200ED43: mov ecx, dword ptr [eax + 0x20] */ 4117 RECOMP_ICALL(0x42005EB0u); /* 0x4200ED46: call 0x42005eb0 */ /* not lifted */ 4118 RECOMP_FLAGS_IN(); 4119 edi = POP32_VAL(esp); /* 0x4200ED4B: pop edi */ 4120 esi = POP32_VAL(esp); /* 0x4200ED4C: pop esi */ 4121 ebx = POP32_VAL(esp); /* 0x4200ED4D: pop ebx */ 4122 esp = ebp; /* 0x4200ED4E: mov esp, ebp */ 4123 ebp = POP32_VAL(esp); /* 0x4200ED50: pop ebp */ 4124 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4200ED51: ret 8 */ 4125 RECOMP_REGS_OUT(); 4126 } 4127 4128 void sub_4200ED60(void) { 4129 int _fpu_cmp = 0; 4130 uint32_t _cf = 0; 4131 int _df = 1; 4132 uint32_t _flag_k = FK_NONE; 4133 uint32_t _flag_a = 0, _flag_b = 0; 4134 uint32_t _itail_tgt = 0; 4135 RECOMP_REGS_LOCALS 4136 RECOMP_ENTER(0x4200ED60u); 4137 4138 L_4200ED60: 4139 PUSH32(esp, ebp); /* 0x4200ED60: push ebp */ 4140 ebp = esp; /* 0x4200ED61: mov ebp, esp */ 4141 eax = MEM32(ebp + 0x8); /* 0x4200ED63: mov eax, dword ptr [ebp + 8] */ 4142 ecx = MEM32(ecx + 0x38); /* 0x4200ED66: mov ecx, dword ptr [ecx + 0x38] */ 4143 eax = eax + eax * 4; /* 0x4200ED69: lea eax, [eax + eax*4] */ 4144 eax = ecx + eax * 8; /* 0x4200ED6C: lea eax, [ecx + eax*8] */ 4145 ebp = POP32_VAL(esp); /* 0x4200ED6F: pop ebp */ 4146 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4200ED70: ret 4 */ 4147 RECOMP_REGS_OUT(); 4148 } 4149 4150 void sub_4200ED80(void) { 4151 int _fpu_cmp = 0; 4152 uint32_t _cf = 0; 4153 int _df = 1; 4154 uint32_t _flag_k = FK_NONE; 4155 uint32_t _flag_a = 0, _flag_b = 0; 4156 uint32_t _itail_tgt = 0; 4157 RECOMP_REGS_LOCALS 4158 RECOMP_ENTER(0x4200ED80u); 4159 4160 L_4200ED80: 4161 PUSH32(esp, ebp); /* 0x4200ED80: push ebp */ 4162 ebp = esp; /* 0x4200ED81: mov ebp, esp */ 4163 eax = MEM32(ebp + 0x14); /* 0x4200ED83: mov eax, dword ptr [ebp + 0x14] */ 4164 edx = MEM32(ebp + 0x10); /* 0x4200ED86: mov edx, dword ptr [ebp + 0x10] */ 4165 PUSH32(esp, eax); /* 0x4200ED89: push eax */ 4166 eax = MEM32(ebp + 0xC); /* 0x4200ED8A: mov eax, dword ptr [ebp + 0xc] */ 4167 PUSH32(esp, edx); /* 0x4200ED8D: push edx */ 4168 PUSH32(esp, eax); /* 0x4200ED8E: push eax */ 4169 eax = MEM32(ebp + 0x8); /* 0x4200ED8F: mov eax, dword ptr [ebp + 8] */ 4170 edx = eax + eax * 4; /* 0x4200ED92: lea edx, [eax + eax*4] */ 4171 eax = MEM32(ecx + 0x38); /* 0x4200ED95: mov eax, dword ptr [ecx + 0x38] */ 4172 ecx = MEM32(eax + edx * 8 + 0x20); /* 0x4200ED98: mov ecx, dword ptr [eax + edx*8 + 0x20] */ 4173 RECOMP_ICALL(0x42005FA0u); /* 0x4200ED9C: call 0x42005fa0 */ /* not lifted */ 4174 RECOMP_FLAGS_IN(); 4175 ebp = POP32_VAL(esp); /* 0x4200EDA1: pop ebp */ 4176 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4200EDA2: ret 0x10 */ 4177 RECOMP_REGS_OUT(); 4178 } 4179 4180 void sub_4200EDB0(void) { 4181 int _fpu_cmp = 0; 4182 uint32_t _cf = 0; 4183 int _df = 1; 4184 uint32_t _flag_k = FK_NONE; 4185 uint32_t _flag_a = 0, _flag_b = 0; 4186 uint32_t _itail_tgt = 0; 4187 RECOMP_REGS_LOCALS 4188 RECOMP_ENTER(0x4200EDB0u); 4189 4190 L_4200EDB0: 4191 PUSH32(esp, ebp); /* 0x4200EDB0: push ebp */ 4192 ebp = esp; /* 0x4200EDB1: mov ebp, esp */ 4193 PUSH32(esp, 0xFFFFFFFFu); /* 0x4200EDB3: push -1 */ 4194 PUSH32(esp, 0x42017668u); /* 0x4200EDB5: push 0x42017668 */ 4195 eax = MEM32(FS_BASE + (0)); /* 0x4200EDBA: mov eax, dword ptr fs:[0] */ 4196 PUSH32(esp, eax); /* 0x4200EDC0: push eax */ 4197 MEM32(FS_BASE + (0)) = esp; /* 0x4200EDC1: mov dword ptr fs:[0], esp */ 4198 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u); 4199 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4200 esp = esp - 0x38u; /* 0x4200EDC8: sub esp, 0x38 */ 4201 _flag_k = FK_CMP; 4202 PUSH32(esp, ebx); /* 0x4200EDCB: push ebx */ 4203 PUSH32(esp, esi); /* 0x4200EDCC: push esi */ 4204 esi = ecx; /* 0x4200EDCD: mov esi, ecx */ 4205 PUSH32(esp, edi); /* 0x4200EDCF: push edi */ 4206 MEM32(ebp + (-0x14)) = esi; /* 0x4200EDD0: mov dword ptr [ebp - 0x14], esi */ 4207 MEM32(ebp + (-0x34)) = esi; /* 0x4200EDD3: mov dword ptr [ebp - 0x34], esi */ 4208 RECOMP_ICALL(0x42004850u); /* 0x4200EDD6: call 0x42004850 */ /* not lifted */ 4209 RECOMP_FLAGS_IN(); 4210 eax = MEM32(esi + 0x28); /* 0x4200EDDB: mov eax, dword ptr [esi + 0x28] */ 4211 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4212 edi = 0; /* 0x4200EDDE: xor edi, edi */ 4213 _cf = 0; 4214 _flag_k = FK_TEST; 4215 /* cmp eax, edi */ /* 0x4200EDE0: cmp eax, edi */ 4216 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4217 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4218 _flag_k = FK_CMP; 4219 MEM32(ebp + (-0x4)) = edi; /* 0x4200EDE2: mov dword ptr [ebp - 4], edi */ 4220 MEM32(ebp + (-0x2C)) = edi; /* 0x4200EDE5: mov dword ptr [ebp - 0x2c], edi */ 4221 MEM32(ebp + (-0x1C)) = edi; /* 0x4200EDE8: mov dword ptr [ebp - 0x1c], edi */ 4222 if (CMP_LE(_flag_a, _flag_b)) goto L_4200EFAC; /* 0x4200EDEB: jle 0x4200efac */ 4223 L_4200EDF1: 4224 ebx = MEM32(ebp + 0x8); /* 0x4200EDF1: mov ebx, dword ptr [ebp + 8] */ 4225 L_4200EDF4: 4226 ecx = MEM32(esi + 0x24); /* 0x4200EDF4: mov ecx, dword ptr [esi + 0x24] */ 4227 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4228 eax = 0; /* 0x4200EDF7: xor eax, eax */ 4229 _cf = 0; 4230 _flag_k = FK_TEST; 4231 /* test ecx, ecx */ /* 0x4200EDF9: test ecx, ecx */ 4232 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4233 _cf = 0; 4234 _flag_k = FK_TEST; 4235 MEM32(ebp + (-0x10)) = eax; /* 0x4200EDFB: mov dword ptr [ebp - 0x10], eax */ 4236 if (TEST_LE(_flag_a, _flag_b)) goto L_4200EF92; /* 0x4200EDFE: jle 0x4200ef92 */ 4237 L_4200EE04: 4238 edi = edi + edi * 4; /* 0x4200EE04: lea edi, [edi + edi*4] */ 4239 if (3u) _cf = (((edi) >> 29) & 1u); /* 0x4200EE07: shl edi, 3 */ 4240 if (3u) { _flag_a = recomp_flags_pack((edi << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4241 edi = edi << 3u; /* 0x4200EE07: shl edi, 3 */ 4242 MEM32(ebp + (-0x18)) = edi; /* 0x4200EE0A: mov dword ptr [ebp - 0x18], edi */ 4243 goto L_4200EE12; /* 0x4200EE0D: jmp 0x4200ee12 */ 4244 L_4200EE0F: 4245 edi = MEM32(ebp + (-0x18)); /* 0x4200EE0F: mov edi, dword ptr [ebp - 0x18] */ 4246 L_4200EE12: 4247 edx = MEM32(esi + 0x38); /* 0x4200EE12: mov edx, dword ptr [esi + 0x38] */ 4248 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 4249 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4250 edi = edi + edx; /* 0x4200EE15: add edi, edx */ 4251 _flag_k = FK_ADD; 4252 edx = MEM32(edi + 0x4); /* 0x4200EE17: mov edx, dword ptr [edi + 4] */ 4253 /* test edx, edx */ /* 0x4200EE1A: test edx, edx */ 4254 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 4255 _cf = 0; 4256 _flag_k = FK_TEST; 4257 MEM32(ebp + (-0x28)) = edi; /* 0x4200EE1C: mov dword ptr [ebp - 0x28], edi */ 4258 if (TEST_Z(_flag_a, _flag_b)) goto L_4200EF77; /* 0x4200EE1F: je 0x4200ef77 */ 4259 L_4200EE25: 4260 edi = MEM32(edi + 0x8); /* 0x4200EE25: mov edi, dword ptr [edi + 8] */ 4261 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 4262 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4263 edi = edi - edx; /* 0x4200EE28: sub edi, edx */ 4264 _flag_k = FK_CMP; 4265 /* test edi, 0xFFFFFFFCu */ /* 0x4200EE2A: test edi, 0xfffffffc */ 4266 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFCu); 4267 _cf = 0; 4268 _flag_k = FK_TEST; 4269 if (TEST_Z(_flag_a, _flag_b)) goto L_4200EF77; /* 0x4200EE30: je 0x4200ef77 */ 4270 L_4200EE36: 4271 edx = MEM32(ebp + (-0x1C)); /* 0x4200EE36: mov edx, dword ptr [ebp - 0x1c] */ 4272 edi = edx + 0x1; /* 0x4200EE39: lea edi, [edx + 1] */ 4273 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4274 edx = 0; /* 0x4200EE3C: xor edx, edx */ 4275 _cf = 0; 4276 _flag_k = FK_TEST; 4277 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4278 eax = eax + 1; /* 0x4200EE3E: inc eax */ 4279 _flag_k = FK_INC; 4280 /* cmp eax, ecx */ /* 0x4200EE3F: cmp eax, ecx */ 4281 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4282 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4283 _flag_k = FK_CMP; 4284 MEM32(ebp + 0x8) = edx; /* 0x4200EE41: mov dword ptr [ebp + 8], edx */ 4285 if (CMP_GE(_flag_a, _flag_b)) goto L_4200EE5B; /* 0x4200EE44: jge 0x4200ee5b */ 4286 L_4200EE46: 4287 edx = ecx; /* 0x4200EE46: mov edx, ecx */ 4288 edx = (uint32_t)((int32_t)edx * (int32_t)MEM32(ebp + (-0x1C))); /* 0x4200EE48: imul edx, dword ptr [ebp - 0x1c] */ 4289 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 4290 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4291 edx = edx + eax; /* 0x4200EE4C: add edx, eax */ 4292 _flag_k = FK_ADD; 4293 MEM32(ebp + 0x8) = 1; /* 0x4200EE4E: mov dword ptr [ebp + 8], 1 */ 4294 MEM32(ebp + (-0x44)) = edx; /* 0x4200EE55: mov dword ptr [ebp - 0x44], edx */ 4295 edx = MEM32(ebp + 0x8); /* 0x4200EE58: mov edx, dword ptr [ebp + 8] */ 4296 L_4200EE5B: 4297 /* cmp edi, MEM32(esi + 0x28) */ /* 0x4200EE5B: cmp edi, dword ptr [esi + 0x28] */ 4298 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x28)); 4299 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4300 _flag_k = FK_CMP; 4301 if (CMP_GE(_flag_a, _flag_b)) goto L_4200EE93; /* 0x4200EE5E: jge 0x4200ee93 */ 4302 L_4200EE60: 4303 eax = ecx; /* 0x4200EE60: mov eax, ecx */ 4304 eax = (uint32_t)((int32_t)eax * (int32_t)edi); /* 0x4200EE62: imul eax, edi */ 4305 edi = MEM32(ebp + (-0x10)); /* 0x4200EE65: mov edi, dword ptr [ebp - 0x10] */ 4306 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4307 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4308 edi = edi + eax; /* 0x4200EE68: add edi, eax */ 4309 _flag_k = FK_ADD; 4310 MEM32(ebp + edx * 4 + (-0x44)) = edi; /* 0x4200EE6A: mov dword ptr [ebp + edx*4 - 0x44], edi */ 4311 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4312 edx = edx + 1; /* 0x4200EE6E: inc edx */ 4313 _flag_k = FK_INC; 4314 /* cmp MEM32(ebp + (-0x10)), 0 */ /* 0x4200EE6F: cmp dword ptr [ebp - 0x10], 0 */ 4315 _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(0); 4316 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4317 _flag_k = FK_CMP; 4318 MEM32(ebp + 0x8) = edx; /* 0x4200EE73: mov dword ptr [ebp + 8], edx */ 4319 if (CMP_LE(_flag_a, _flag_b)) goto L_4200EE81; /* 0x4200EE76: jle 0x4200ee81 */ 4320 L_4200EE78: 4321 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 4322 edi = edi - 1; /* 0x4200EE78: dec edi */ 4323 _flag_k = FK_DEC; 4324 MEM32(ebp + edx * 4 + (-0x44)) = edi; /* 0x4200EE79: mov dword ptr [ebp + edx*4 - 0x44], edi */ 4325 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4326 edx = edx + 1; /* 0x4200EE7D: inc edx */ 4327 _flag_k = FK_INC; 4328 MEM32(ebp + 0x8) = edx; /* 0x4200EE7E: mov dword ptr [ebp + 8], edx */ 4329 L_4200EE81: 4330 edi = MEM32(ebp + (-0x10)); /* 0x4200EE81: mov edi, dword ptr [ebp - 0x10] */ 4331 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 4332 edi = edi + 1; /* 0x4200EE84: inc edi */ 4333 _flag_k = FK_INC; 4334 /* cmp edi, ecx */ /* 0x4200EE85: cmp edi, ecx */ 4335 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 4336 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4337 _flag_k = FK_CMP; 4338 if (CMP_GE(_flag_a, _flag_b)) goto L_4200EE93; /* 0x4200EE87: jge 0x4200ee93 */ 4339 L_4200EE89: 4340 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4341 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4342 eax = eax + edi; /* 0x4200EE89: add eax, edi */ 4343 _flag_k = FK_ADD; 4344 MEM32(ebp + edx * 4 + (-0x44)) = eax; /* 0x4200EE8B: mov dword ptr [ebp + edx*4 - 0x44], eax */ 4345 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4346 edx = edx + 1; /* 0x4200EE8F: inc edx */ 4347 _flag_k = FK_INC; 4348 MEM32(ebp + 0x8) = edx; /* 0x4200EE90: mov dword ptr [ebp + 8], edx */ 4349 L_4200EE93: 4350 ecx = MEM32(ebp + (-0x28)); /* 0x4200EE93: mov ecx, dword ptr [ebp - 0x28] */ 4351 eax = MEM32(ecx + 0x8); /* 0x4200EE96: mov eax, dword ptr [ecx + 8] */ 4352 edi = MEM32(ecx + 0x4); /* 0x4200EE99: mov edi, dword ptr [ecx + 4] */ 4353 /* cmp edi, eax */ /* 0x4200EE9C: cmp edi, eax */ 4354 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4355 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4356 _flag_k = FK_CMP; 4357 MEM32(ebp + (-0x24)) = eax; /* 0x4200EE9E: mov dword ptr [ebp - 0x24], eax */ 4358 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200EEE3; /* 0x4200EEA1: je 0x4200eee3 */ 4359 L_4200EEA3: 4360 esi = edi + 0x4; /* 0x4200EEA3: lea esi, [edi + 4] */ 4361 /* cmp esi, eax */ /* 0x4200EEA6: cmp esi, eax */ 4362 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 4363 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4364 _flag_k = FK_CMP; 4365 MEM32(ebp + (-0x28)) = esi; /* 0x4200EEA8: mov dword ptr [ebp - 0x28], esi */ 4366 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200EEDA; /* 0x4200EEAB: je 0x4200eeda */ 4367 L_4200EEAD: 4368 ecx = MEM32(esi); /* 0x4200EEAD: mov ecx, dword ptr [esi] */ 4369 edx = MEM32(edi); /* 0x4200EEAF: mov edx, dword ptr [edi] */ 4370 eax = MEM32(ebx); /* 0x4200EEB1: mov eax, dword ptr [ebx] */ 4371 PUSH32(esp, ecx); /* 0x4200EEB3: push ecx */ 4372 PUSH32(esp, edx); /* 0x4200EEB4: push edx */ 4373 ecx = ebx; /* 0x4200EEB5: mov ecx, ebx */ 4374 RECOMP_ICALL(MEM32(eax)); /* 0x4200EEB7: call dword ptr [eax] */ 4375 RECOMP_FLAGS_IN(); 4376 /* cmp eax, 1 */ /* 0x4200EEB9: cmp eax, 1 */ 4377 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4378 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4379 _flag_k = FK_CMP; 4380 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200EED1; /* 0x4200EEBC: je 0x4200eed1 */ 4381 L_4200EEBE: 4382 /* cmp eax, 2 */ /* 0x4200EEBE: cmp eax, 2 */ 4383 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 4384 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4385 _flag_k = FK_CMP; 4386 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200EFD4; /* 0x4200EEC1: je 0x4200efd4 */ 4387 L_4200EEC7: 4388 eax = MEM32(ebp + (-0x24)); /* 0x4200EEC7: mov eax, dword ptr [ebp - 0x24] */ 4389 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 4390 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4391 esi = esi + 4; /* 0x4200EECA: add esi, 4 */ 4392 _flag_k = FK_ADD; 4393 /* cmp esi, eax */ /* 0x4200EECD: cmp esi, eax */ 4394 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 4395 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4396 _flag_k = FK_CMP; 4397 RECOMP_BACKEDGE(); 4398 if (CMP_NE(_flag_a, _flag_b)) goto L_4200EEAD; /* 0x4200EECF: jne 0x4200eead */ 4399 L_4200EED1: 4400 eax = MEM32(ebp + (-0x24)); /* 0x4200EED1: mov eax, dword ptr [ebp - 0x24] */ 4401 edx = MEM32(ebp + 0x8); /* 0x4200EED4: mov edx, dword ptr [ebp + 8] */ 4402 esi = MEM32(ebp + (-0x28)); /* 0x4200EED7: mov esi, dword ptr [ebp - 0x28] */ 4403 L_4200EEDA: 4404 edi = esi; /* 0x4200EEDA: mov edi, esi */ 4405 /* cmp edi, eax */ /* 0x4200EEDC: cmp edi, eax */ 4406 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4407 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4408 _flag_k = FK_CMP; 4409 RECOMP_BACKEDGE(); 4410 if (CMP_NE(_flag_a, _flag_b)) goto L_4200EEA3; /* 0x4200EEDE: jne 0x4200eea3 */ 4411 L_4200EEE0: 4412 esi = MEM32(ebp + (-0x14)); /* 0x4200EEE0: mov esi, dword ptr [ebp - 0x14] */ 4413 L_4200EEE3: 4414 ecx = MEM32(ebp + (-0x18)); /* 0x4200EEE3: mov ecx, dword ptr [ebp - 0x18] */ 4415 eax = MEM32(esi + 0x38); /* 0x4200EEE6: mov eax, dword ptr [esi + 0x38] */ 4416 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4417 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4418 eax = eax + ecx; /* 0x4200EEE9: add eax, ecx */ 4419 _flag_k = FK_ADD; 4420 ecx = MEM32(eax + 0x8); /* 0x4200EEEB: mov ecx, dword ptr [eax + 8] */ 4421 eax = MEM32(eax + 0x4); /* 0x4200EEEE: mov eax, dword ptr [eax + 4] */ 4422 /* cmp eax, ecx */ /* 0x4200EEF1: cmp eax, ecx */ 4423 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4424 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4425 _flag_k = FK_CMP; 4426 MEM32(ebp + (-0x30)) = ecx; /* 0x4200EEF3: mov dword ptr [ebp - 0x30], ecx */ 4427 MEM32(ebp + (-0x24)) = eax; /* 0x4200EEF6: mov dword ptr [ebp - 0x24], eax */ 4428 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200EF74; /* 0x4200EEF9: je 0x4200ef74 */ 4429 L_4200EEFB: 4430 /* test edx, edx */ /* 0x4200EEFB: test edx, edx */ 4431 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 4432 _cf = 0; 4433 _flag_k = FK_TEST; 4434 MEM32(ebp + (-0x28)) = 0; /* 0x4200EEFD: mov dword ptr [ebp - 0x28], 0 */ 4435 if (TEST_LE(_flag_a, _flag_b)) goto L_4200EF6A; /* 0x4200EF04: jle 0x4200ef6a */ 4436 L_4200EF06: 4437 eax = ebp + (-0x44); /* 0x4200EF06: lea eax, [ebp - 0x44] */ 4438 MEM32(ebp + (-0x20)) = eax; /* 0x4200EF09: mov dword ptr [ebp - 0x20], eax */ 4439 L_4200EF0C: 4440 ecx = MEM32(ebp + (-0x20)); /* 0x4200EF0C: mov ecx, dword ptr [ebp - 0x20] */ 4441 eax = MEM32(ecx); /* 0x4200EF0F: mov eax, dword ptr [ecx] */ 4442 ecx = MEM32(esi + 0x38); /* 0x4200EF11: mov ecx, dword ptr [esi + 0x38] */ 4443 eax = eax + eax * 4; /* 0x4200EF14: lea eax, [eax + eax*4] */ 4444 edi = MEM32(ecx + eax * 8 + 0x8); /* 0x4200EF17: mov edi, dword ptr [ecx + eax*8 + 8] */ 4445 esi = MEM32(ecx + eax * 8 + 0x4); /* 0x4200EF1B: mov esi, dword ptr [ecx + eax*8 + 4] */ 4446 /* cmp esi, edi */ /* 0x4200EF1F: cmp esi, edi */ 4447 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 4448 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4449 _flag_k = FK_CMP; 4450 eax = ecx + eax * 8; /* 0x4200EF21: lea eax, [ecx + eax*8] */ 4451 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200EF4D; /* 0x4200EF24: je 0x4200ef4d */ 4452 L_4200EF26: 4453 eax = MEM32(esi); /* 0x4200EF26: mov eax, dword ptr [esi] */ 4454 ecx = MEM32(ebp + (-0x24)); /* 0x4200EF28: mov ecx, dword ptr [ebp - 0x24] */ 4455 edx = MEM32(ebx); /* 0x4200EF2B: mov edx, dword ptr [ebx] */ 4456 PUSH32(esp, eax); /* 0x4200EF2D: push eax */ 4457 eax = MEM32(ecx); /* 0x4200EF2E: mov eax, dword ptr [ecx] */ 4458 PUSH32(esp, eax); /* 0x4200EF30: push eax */ 4459 ecx = ebx; /* 0x4200EF31: mov ecx, ebx */ 4460 RECOMP_ICALL(MEM32(edx)); /* 0x4200EF33: call dword ptr [edx] */ 4461 RECOMP_FLAGS_IN(); 4462 /* cmp eax, 1 */ /* 0x4200EF35: cmp eax, 1 */ 4463 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4464 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4465 _flag_k = FK_CMP; 4466 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200EF4A; /* 0x4200EF38: je 0x4200ef4a */ 4467 L_4200EF3A: 4468 /* cmp eax, 2 */ /* 0x4200EF3A: cmp eax, 2 */ 4469 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 4470 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4471 _flag_k = FK_CMP; 4472 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200EFD4; /* 0x4200EF3D: je 0x4200efd4 */ 4473 L_4200EF43: 4474 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 4475 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4476 esi = esi + 4; /* 0x4200EF43: add esi, 4 */ 4477 _flag_k = FK_ADD; 4478 /* cmp esi, edi */ /* 0x4200EF46: cmp esi, edi */ 4479 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 4480 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4481 _flag_k = FK_CMP; 4482 RECOMP_BACKEDGE(); 4483 if (CMP_NE(_flag_a, _flag_b)) goto L_4200EF26; /* 0x4200EF48: jne 0x4200ef26 */ 4484 L_4200EF4A: 4485 edx = MEM32(ebp + 0x8); /* 0x4200EF4A: mov edx, dword ptr [ebp + 8] */ 4486 L_4200EF4D: 4487 eax = MEM32(ebp + (-0x28)); /* 0x4200EF4D: mov eax, dword ptr [ebp - 0x28] */ 4488 esi = MEM32(ebp + (-0x20)); /* 0x4200EF50: mov esi, dword ptr [ebp - 0x20] */ 4489 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 4490 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4491 esi = esi + 4; /* 0x4200EF53: add esi, 4 */ 4492 _flag_k = FK_ADD; 4493 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4494 eax = eax + 1; /* 0x4200EF56: inc eax */ 4495 _flag_k = FK_INC; 4496 /* cmp eax, edx */ /* 0x4200EF57: cmp eax, edx */ 4497 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4498 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4499 _flag_k = FK_CMP; 4500 MEM32(ebp + (-0x20)) = esi; /* 0x4200EF59: mov dword ptr [ebp - 0x20], esi */ 4501 esi = MEM32(ebp + (-0x14)); /* 0x4200EF5C: mov esi, dword ptr [ebp - 0x14] */ 4502 MEM32(ebp + (-0x28)) = eax; /* 0x4200EF5F: mov dword ptr [ebp - 0x28], eax */ 4503 RECOMP_BACKEDGE(); 4504 if (CMP_L(_flag_a, _flag_b)) goto L_4200EF0C; /* 0x4200EF62: jl 0x4200ef0c */ 4505 L_4200EF64: 4506 ecx = MEM32(ebp + (-0x30)); /* 0x4200EF64: mov ecx, dword ptr [ebp - 0x30] */ 4507 eax = MEM32(ebp + (-0x24)); /* 0x4200EF67: mov eax, dword ptr [ebp - 0x24] */ 4508 L_4200EF6A: 4509 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 4510 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4511 eax = eax + 4; /* 0x4200EF6A: add eax, 4 */ 4512 _flag_k = FK_ADD; 4513 /* cmp eax, ecx */ /* 0x4200EF6D: cmp eax, ecx */ 4514 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4515 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4516 _flag_k = FK_CMP; 4517 MEM32(ebp + (-0x24)) = eax; /* 0x4200EF6F: mov dword ptr [ebp - 0x24], eax */ 4518 RECOMP_BACKEDGE(); 4519 if (CMP_NE(_flag_a, _flag_b)) goto L_4200EEFB; /* 0x4200EF72: jne 0x4200eefb */ 4520 L_4200EF74: 4521 eax = MEM32(ebp + (-0x10)); /* 0x4200EF74: mov eax, dword ptr [ebp - 0x10] */ 4522 L_4200EF77: 4523 edi = MEM32(ebp + (-0x18)); /* 0x4200EF77: mov edi, dword ptr [ebp - 0x18] */ 4524 ecx = MEM32(esi + 0x24); /* 0x4200EF7A: mov ecx, dword ptr [esi + 0x24] */ 4525 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4526 eax = eax + 1; /* 0x4200EF7D: inc eax */ 4527 _flag_k = FK_INC; 4528 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x28u); 4529 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4530 edi = edi + 0x28u; /* 0x4200EF7E: add edi, 0x28 */ 4531 _flag_k = FK_ADD; 4532 /* cmp eax, ecx */ /* 0x4200EF81: cmp eax, ecx */ 4533 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4534 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4535 _flag_k = FK_CMP; 4536 MEM32(ebp + (-0x10)) = eax; /* 0x4200EF83: mov dword ptr [ebp - 0x10], eax */ 4537 MEM32(ebp + (-0x18)) = edi; /* 0x4200EF86: mov dword ptr [ebp - 0x18], edi */ 4538 RECOMP_BACKEDGE(); 4539 if (CMP_L(_flag_a, _flag_b)) goto L_4200EE0F; /* 0x4200EF89: jl 0x4200ee0f */ 4540 L_4200EF8F: 4541 edi = MEM32(ebp + (-0x2C)); /* 0x4200EF8F: mov edi, dword ptr [ebp - 0x2c] */ 4542 L_4200EF92: 4543 eax = MEM32(ebp + (-0x1C)); /* 0x4200EF92: mov eax, dword ptr [ebp - 0x1c] */ 4544 edx = MEM32(esi + 0x24); /* 0x4200EF95: mov edx, dword ptr [esi + 0x24] */ 4545 ecx = MEM32(esi + 0x28); /* 0x4200EF98: mov ecx, dword ptr [esi + 0x28] */ 4546 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4547 eax = eax + 1; /* 0x4200EF9B: inc eax */ 4548 _flag_k = FK_INC; 4549 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 4550 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4551 edi = edi + edx; /* 0x4200EF9C: add edi, edx */ 4552 _flag_k = FK_ADD; 4553 /* cmp eax, ecx */ /* 0x4200EF9E: cmp eax, ecx */ 4554 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4555 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4556 _flag_k = FK_CMP; 4557 MEM32(ebp + (-0x1C)) = eax; /* 0x4200EFA0: mov dword ptr [ebp - 0x1c], eax */ 4558 MEM32(ebp + (-0x2C)) = edi; /* 0x4200EFA3: mov dword ptr [ebp - 0x2c], edi */ 4559 RECOMP_BACKEDGE(); 4560 if (CMP_L(_flag_a, _flag_b)) goto L_4200EDF4; /* 0x4200EFA6: jl 0x4200edf4 */ 4561 L_4200EFAC: 4562 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x4200EFAC: mov dword ptr [ebp - 4], 0xffffffff */ 4563 L_4200EFB3: 4564 ecx = esi; /* 0x4200EFB3: mov ecx, esi */ 4565 RECOMP_ICALL(0x42004870u); /* 0x4200EFB5: call 0x42004870 */ /* not lifted */ 4566 RECOMP_FLAGS_IN(); 4567 ecx = esi; /* 0x4200EFBA: mov ecx, esi */ 4568 RECOMP_ICALL(0x420048E0u); /* 0x4200EFBC: call 0x420048e0 */ /* not lifted */ 4569 RECOMP_FLAGS_IN(); 4570 ecx = MEM32(ebp + (-0xC)); /* 0x4200EFC1: mov ecx, dword ptr [ebp - 0xc] */ 4571 edi = POP32_VAL(esp); /* 0x4200EFC4: pop edi */ 4572 esi = POP32_VAL(esp); /* 0x4200EFC5: pop esi */ 4573 ebx = POP32_VAL(esp); /* 0x4200EFC6: pop ebx */ 4574 MEM32(FS_BASE + (0)) = ecx; /* 0x4200EFC7: mov dword ptr fs:[0], ecx */ 4575 esp = ebp; /* 0x4200EFCE: mov esp, ebp */ 4576 ebp = POP32_VAL(esp); /* 0x4200EFD0: pop ebp */ 4577 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4200EFD1: ret 4 */ 4578 L_4200EFD4: 4579 esi = MEM32(ebp + (-0x14)); /* 0x4200EFD4: mov esi, dword ptr [ebp - 0x14] */ 4580 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x4200EFD7: mov dword ptr [ebp - 4], 0xffffffff */ 4581 RECOMP_BACKEDGE(); 4582 goto L_4200EFB3; /* 0x4200EFDE: jmp 0x4200efb3 */ 4583 { RECOMP_REGS_OUT(); return; } /* end of function */ 4584 RECOMP_REGS_OUT(); 4585 } 4586 4587 void sub_4200EFE0(void) { 4588 int _fpu_cmp = 0; 4589 uint32_t _cf = 0; 4590 int _df = 1; 4591 uint32_t _flag_k = FK_NONE; 4592 uint32_t _flag_a = 0, _flag_b = 0; 4593 uint32_t _itail_tgt = 0; 4594 RECOMP_REGS_LOCALS 4595 RECOMP_ENTER(0x4200EFE0u); 4596 4597 L_4200EFE0: 4598 PUSH32(esp, ebp); /* 0x4200EFE0: push ebp */ 4599 ebp = esp; /* 0x4200EFE1: mov ebp, esp */ 4600 PUSH32(esp, 0xFFFFFFFFu); /* 0x4200EFE3: push -1 */ 4601 PUSH32(esp, 0x42017688u); /* 0x4200EFE5: push 0x42017688 */ 4602 eax = MEM32(FS_BASE + (0)); /* 0x4200EFEA: mov eax, dword ptr fs:[0] */ 4603 PUSH32(esp, eax); /* 0x4200EFF0: push eax */ 4604 MEM32(FS_BASE + (0)) = esp; /* 0x4200EFF1: mov dword ptr fs:[0], esp */ 4605 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4606 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4607 esp = esp - 0xCu; /* 0x4200EFF8: sub esp, 0xc */ 4608 _flag_k = FK_CMP; 4609 PUSH32(esp, esi); /* 0x4200EFFB: push esi */ 4610 esi = ecx; /* 0x4200EFFC: mov esi, ecx */ 4611 PUSH32(esp, edi); /* 0x4200EFFE: push edi */ 4612 MEM32(ebp + (-0x18)) = esi; /* 0x4200EFFF: mov dword ptr [ebp - 0x18], esi */ 4613 RECOMP_ICALL(0x42004850u); /* 0x4200F002: call 0x42004850 */ /* not lifted */ 4614 RECOMP_FLAGS_IN(); 4615 eax = MEM32(esi + 0x28); /* 0x4200F007: mov eax, dword ptr [esi + 0x28] */ 4616 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4617 edi = 0; /* 0x4200F00A: xor edi, edi */ 4618 _cf = 0; 4619 _flag_k = FK_TEST; 4620 /* cmp eax, edi */ /* 0x4200F00C: cmp eax, edi */ 4621 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4622 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4623 _flag_k = FK_CMP; 4624 MEM32(ebp + (-0x4)) = edi; /* 0x4200F00E: mov dword ptr [ebp - 4], edi */ 4625 MEM32(ebp + (-0x14)) = edi; /* 0x4200F011: mov dword ptr [ebp - 0x14], edi */ 4626 MEM32(ebp + (-0x10)) = edi; /* 0x4200F014: mov dword ptr [ebp - 0x10], edi */ 4627 if (CMP_LE(_flag_a, _flag_b)) goto L_4200F076; /* 0x4200F017: jle 0x4200f076 */ 4628 L_4200F019: 4629 PUSH32(esp, ebx); /* 0x4200F019: push ebx */ 4630 L_4200F01A: 4631 eax = MEM32(esi + 0x24); /* 0x4200F01A: mov eax, dword ptr [esi + 0x24] */ 4632 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4633 ebx = 0; /* 0x4200F01D: xor ebx, ebx */ 4634 _cf = 0; 4635 _flag_k = FK_TEST; 4636 /* test eax, eax */ /* 0x4200F01F: test eax, eax */ 4637 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4638 _cf = 0; 4639 _flag_k = FK_TEST; 4640 if (TEST_LE(_flag_a, _flag_b)) goto L_4200F05F; /* 0x4200F021: jle 0x4200f05f */ 4641 L_4200F023: 4642 edi = edi + edi * 4; /* 0x4200F023: lea edi, [edi + edi*4] */ 4643 if (3u) _cf = (((edi) >> 29) & 1u); /* 0x4200F026: shl edi, 3 */ 4644 if (3u) { _flag_a = recomp_flags_pack((edi << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4645 edi = edi << 3u; /* 0x4200F026: shl edi, 3 */ 4646 L_4200F029: 4647 eax = MEM32(esi + 0x38); /* 0x4200F029: mov eax, dword ptr [esi + 0x38] */ 4648 ecx = MEM32(eax + edi + 0x4); /* 0x4200F02C: mov ecx, dword ptr [eax + edi + 4] */ 4649 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4650 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4651 eax = eax + edi; /* 0x4200F030: add eax, edi */ 4652 _flag_k = FK_ADD; 4653 /* test ecx, ecx */ /* 0x4200F032: test ecx, ecx */ 4654 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4655 _cf = 0; 4656 _flag_k = FK_TEST; 4657 if (TEST_Z(_flag_a, _flag_b)) goto L_4200F051; /* 0x4200F034: je 0x4200f051 */ 4658 L_4200F036: 4659 edx = MEM32(eax + 0x8); /* 0x4200F036: mov edx, dword ptr [eax + 8] */ 4660 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 4661 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4662 edx = edx - ecx; /* 0x4200F039: sub edx, ecx */ 4663 _flag_k = FK_CMP; 4664 /* test edx, 0xFFFFFFFCu */ /* 0x4200F03B: test edx, 0xfffffffc */ 4665 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFFCu); 4666 _cf = 0; 4667 _flag_k = FK_TEST; 4668 if (TEST_Z(_flag_a, _flag_b)) goto L_4200F051; /* 0x4200F041: je 0x4200f051 */ 4669 L_4200F043: 4670 ecx = MEM32(ebp + 0x8); /* 0x4200F043: mov ecx, dword ptr [ebp + 8] */ 4671 eax = MEM32(eax + 0x20); /* 0x4200F046: mov eax, dword ptr [eax + 0x20] */ 4672 PUSH32(esp, ecx); /* 0x4200F049: push ecx */ 4673 ecx = eax; /* 0x4200F04A: mov ecx, eax */ 4674 RECOMP_ICALL(0x420061D0u); /* 0x4200F04C: call 0x420061d0 */ /* not lifted */ 4675 RECOMP_FLAGS_IN(); 4676 L_4200F051: 4677 eax = MEM32(esi + 0x24); /* 0x4200F051: mov eax, dword ptr [esi + 0x24] */ 4678 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 4679 ebx = ebx + 1; /* 0x4200F054: inc ebx */ 4680 _flag_k = FK_INC; 4681 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x28u); 4682 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4683 edi = edi + 0x28u; /* 0x4200F055: add edi, 0x28 */ 4684 _flag_k = FK_ADD; 4685 /* cmp ebx, eax */ /* 0x4200F058: cmp ebx, eax */ 4686 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 4687 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4688 _flag_k = FK_CMP; 4689 RECOMP_BACKEDGE(); 4690 if (CMP_L(_flag_a, _flag_b)) goto L_4200F029; /* 0x4200F05A: jl 0x4200f029 */ 4691 L_4200F05C: 4692 edi = MEM32(ebp + (-0x14)); /* 0x4200F05C: mov edi, dword ptr [ebp - 0x14] */ 4693 L_4200F05F: 4694 eax = MEM32(ebp + (-0x10)); /* 0x4200F05F: mov eax, dword ptr [ebp - 0x10] */ 4695 edx = MEM32(esi + 0x24); /* 0x4200F062: mov edx, dword ptr [esi + 0x24] */ 4696 ecx = MEM32(esi + 0x28); /* 0x4200F065: mov ecx, dword ptr [esi + 0x28] */ 4697 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4698 eax = eax + 1; /* 0x4200F068: inc eax */ 4699 _flag_k = FK_INC; 4700 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 4701 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4702 edi = edi + edx; /* 0x4200F069: add edi, edx */ 4703 _flag_k = FK_ADD; 4704 /* cmp eax, ecx */ /* 0x4200F06B: cmp eax, ecx */ 4705 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4706 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4707 _flag_k = FK_CMP; 4708 MEM32(ebp + (-0x10)) = eax; /* 0x4200F06D: mov dword ptr [ebp - 0x10], eax */ 4709 MEM32(ebp + (-0x14)) = edi; /* 0x4200F070: mov dword ptr [ebp - 0x14], edi */ 4710 RECOMP_BACKEDGE(); 4711 if (CMP_L(_flag_a, _flag_b)) goto L_4200F01A; /* 0x4200F073: jl 0x4200f01a */ 4712 L_4200F075: 4713 ebx = POP32_VAL(esp); /* 0x4200F075: pop ebx */ 4714 L_4200F076: 4715 ecx = esi; /* 0x4200F076: mov ecx, esi */ 4716 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x4200F078: mov dword ptr [ebp - 4], 0xffffffff */ 4717 RECOMP_ICALL(0x42004870u); /* 0x4200F07F: call 0x42004870 */ /* not lifted */ 4718 RECOMP_FLAGS_IN(); 4719 ecx = esi; /* 0x4200F084: mov ecx, esi */ 4720 RECOMP_ICALL(0x420048E0u); /* 0x4200F086: call 0x420048e0 */ /* not lifted */ 4721 RECOMP_FLAGS_IN(); 4722 ecx = MEM32(ebp + (-0xC)); /* 0x4200F08B: mov ecx, dword ptr [ebp - 0xc] */ 4723 edi = POP32_VAL(esp); /* 0x4200F08E: pop edi */ 4724 esi = POP32_VAL(esp); /* 0x4200F08F: pop esi */ 4725 MEM32(FS_BASE + (0)) = ecx; /* 0x4200F090: mov dword ptr fs:[0], ecx */ 4726 esp = ebp; /* 0x4200F097: mov esp, ebp */ 4727 ebp = POP32_VAL(esp); /* 0x4200F099: pop ebp */ 4728 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4200F09A: ret 4 */ 4729 RECOMP_REGS_OUT(); 4730 } 4731 4732 void sub_4200F0A0(void) { 4733 int _fpu_cmp = 0; 4734 uint32_t _cf = 0; 4735 int _df = 1; 4736 uint32_t _flag_k = FK_NONE; 4737 uint32_t _flag_a = 0, _flag_b = 0; 4738 uint32_t _itail_tgt = 0; 4739 RECOMP_REGS_LOCALS 4740 RECOMP_ENTER(0x4200F0A0u); 4741 4742 L_4200F0A0: 4743 PUSH32(esp, ebp); /* 0x4200F0A0: push ebp */ 4744 ebp = esp; /* 0x4200F0A1: mov ebp, esp */ 4745 PUSH32(esp, 0xFFFFFFFFu); /* 0x4200F0A3: push -1 */ 4746 PUSH32(esp, 0x420176A8u); /* 0x4200F0A5: push 0x420176a8 */ 4747 eax = MEM32(FS_BASE + (0)); /* 0x4200F0AA: mov eax, dword ptr fs:[0] */ 4748 PUSH32(esp, eax); /* 0x4200F0B0: push eax */ 4749 MEM32(FS_BASE + (0)) = esp; /* 0x4200F0B1: mov dword ptr fs:[0], esp */ 4750 PUSH32(esp, ecx); /* 0x4200F0B8: push ecx */ 4751 PUSH32(esp, esi); /* 0x4200F0B9: push esi */ 4752 esi = ecx; /* 0x4200F0BA: mov esi, ecx */ 4753 MEM32(ebp + (-0x10)) = esi; /* 0x4200F0BC: mov dword ptr [ebp - 0x10], esi */ 4754 RECOMP_ICALL(0x42004850u); /* 0x4200F0BF: call 0x42004850 */ /* not lifted */ 4755 RECOMP_FLAGS_IN(); 4756 eax = MEM32(ebp + 0x8); /* 0x4200F0C4: mov eax, dword ptr [ebp + 8] */ 4757 ecx = MEM32(esi + 0x38); /* 0x4200F0C7: mov ecx, dword ptr [esi + 0x38] */ 4758 edx = MEM32(ebp + 0xC); /* 0x4200F0CA: mov edx, dword ptr [ebp + 0xc] */ 4759 eax = eax + eax * 4; /* 0x4200F0CD: lea eax, [eax + eax*4] */ 4760 ecx = MEM32(ecx + eax * 8 + 0x20); /* 0x4200F0D0: mov ecx, dword ptr [ecx + eax*8 + 0x20] */ 4761 PUSH32(esp, edx); /* 0x4200F0D4: push edx */ 4762 MEM32(ebp + (-0x4)) = 0; /* 0x4200F0D5: mov dword ptr [ebp - 4], 0 */ 4763 RECOMP_ICALL(0x420061D0u); /* 0x4200F0DC: call 0x420061d0 */ /* not lifted */ 4764 RECOMP_FLAGS_IN(); 4765 ecx = esi; /* 0x4200F0E1: mov ecx, esi */ 4766 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x4200F0E3: mov dword ptr [ebp - 4], 0xffffffff */ 4767 RECOMP_ICALL(0x42004870u); /* 0x4200F0EA: call 0x42004870 */ /* not lifted */ 4768 RECOMP_FLAGS_IN(); 4769 ecx = esi; /* 0x4200F0EF: mov ecx, esi */ 4770 RECOMP_ICALL(0x420048E0u); /* 0x4200F0F1: call 0x420048e0 */ /* not lifted */ 4771 RECOMP_FLAGS_IN(); 4772 ecx = MEM32(ebp + (-0xC)); /* 0x4200F0F6: mov ecx, dword ptr [ebp - 0xc] */ 4773 esi = POP32_VAL(esp); /* 0x4200F0F9: pop esi */ 4774 MEM32(FS_BASE + (0)) = ecx; /* 0x4200F0FA: mov dword ptr fs:[0], ecx */ 4775 esp = ebp; /* 0x4200F101: mov esp, ebp */ 4776 ebp = POP32_VAL(esp); /* 0x4200F103: pop ebp */ 4777 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4200F104: ret 8 */ 4778 RECOMP_REGS_OUT(); 4779 } 4780 4781 void sub_4200F110(void) { 4782 int _fpu_cmp = 0; 4783 uint32_t _cf = 0; 4784 int _df = 1; 4785 uint32_t _flag_k = FK_NONE; 4786 uint32_t _flag_a = 0, _flag_b = 0; 4787 uint32_t _itail_tgt = 0; 4788 RECOMP_REGS_LOCALS 4789 RECOMP_ENTER(0x4200F110u); 4790 4791 L_4200F110: 4792 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4200F110: ret 8 */ 4793 RECOMP_REGS_OUT(); 4794 } 4795 4796 void sub_4200F120(void) { 4797 int _fpu_cmp = 0; 4798 uint32_t _cf = 0; 4799 int _df = 1; 4800 uint32_t _flag_k = FK_NONE; 4801 uint32_t _flag_a = 0, _flag_b = 0; 4802 uint32_t _itail_tgt = 0; 4803 RECOMP_REGS_LOCALS 4804 RECOMP_ENTER(0x4200F120u); 4805 4806 L_4200F120: 4807 PUSH32(esp, ebp); /* 0x4200F120: push ebp */ 4808 ebp = esp; /* 0x4200F121: mov ebp, esp */ 4809 eax = MEM32(ebp + 0x8); /* 0x4200F123: mov eax, dword ptr [ebp + 8] */ 4810 ecx = MEM32(ecx + 0x38); /* 0x4200F126: mov ecx, dword ptr [ecx + 0x38] */ 4811 eax = eax + eax * 4; /* 0x4200F129: lea eax, [eax + eax*4] */ 4812 PUSH32(esp, ebx); /* 0x4200F12C: push ebx */ 4813 eax = ecx + eax * 8; /* 0x4200F12D: lea eax, [ecx + eax*8] */ 4814 ecx = MEM32(eax + 0x4); /* 0x4200F130: mov ecx, dword ptr [eax + 4] */ 4815 /* test ecx, ecx */ /* 0x4200F133: test ecx, ecx */ 4816 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4817 _cf = 0; 4818 _flag_k = FK_TEST; 4819 PUSH32(esp, esi); /* 0x4200F135: push esi */ 4820 PUSH32(esp, edi); /* 0x4200F136: push edi */ 4821 if (TEST_Z(_flag_a, _flag_b)) goto L_4200F167; /* 0x4200F137: je 0x4200f167 */ 4822 L_4200F139: 4823 edx = MEM32(eax + 0x8); /* 0x4200F139: mov edx, dword ptr [eax + 8] */ 4824 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 4825 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4826 edx = edx - ecx; /* 0x4200F13C: sub edx, ecx */ 4827 _flag_k = FK_CMP; 4828 /* test edx, 0xFFFFFFFCu */ /* 0x4200F13E: test edx, 0xfffffffc */ 4829 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFFCu); 4830 _cf = 0; 4831 _flag_k = FK_TEST; 4832 if (TEST_Z(_flag_a, _flag_b)) goto L_4200F167; /* 0x4200F144: je 0x4200f167 */ 4833 L_4200F146: 4834 ebx = MEM32(eax + 0x8); /* 0x4200F146: mov ebx, dword ptr [eax + 8] */ 4835 esi = ecx; /* 0x4200F149: mov esi, ecx */ 4836 /* cmp esi, ebx */ /* 0x4200F14B: cmp esi, ebx */ 4837 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 4838 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4839 _flag_k = FK_CMP; 4840 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200F167; /* 0x4200F14D: je 0x4200f167 */ 4841 L_4200F14F: 4842 edi = MEM32(ebp + 0xC); /* 0x4200F14F: mov edi, dword ptr [ebp + 0xc] */ 4843 L_4200F152: 4844 ecx = MEM32(esi); /* 0x4200F152: mov ecx, dword ptr [esi] */ 4845 eax = MEM32(edi); /* 0x4200F154: mov eax, dword ptr [edi] */ 4846 PUSH32(esp, ecx); /* 0x4200F156: push ecx */ 4847 ecx = edi; /* 0x4200F157: mov ecx, edi */ 4848 RECOMP_ICALL(MEM32(eax)); /* 0x4200F159: call dword ptr [eax] */ 4849 RECOMP_FLAGS_IN(); 4850 /* cmp eax, 1 */ /* 0x4200F15B: cmp eax, 1 */ 4851 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4852 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4853 _flag_k = FK_CMP; 4854 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200F167; /* 0x4200F15E: je 0x4200f167 */ 4855 L_4200F160: 4856 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 4857 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4858 esi = esi + 4; /* 0x4200F160: add esi, 4 */ 4859 _flag_k = FK_ADD; 4860 /* cmp esi, ebx */ /* 0x4200F163: cmp esi, ebx */ 4861 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 4862 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4863 _flag_k = FK_CMP; 4864 RECOMP_BACKEDGE(); 4865 if (CMP_NE(_flag_a, _flag_b)) goto L_4200F152; /* 0x4200F165: jne 0x4200f152 */ 4866 L_4200F167: 4867 edi = POP32_VAL(esp); /* 0x4200F167: pop edi */ 4868 esi = POP32_VAL(esp); /* 0x4200F168: pop esi */ 4869 ebx = POP32_VAL(esp); /* 0x4200F169: pop ebx */ 4870 ebp = POP32_VAL(esp); /* 0x4200F16A: pop ebp */ 4871 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4200F16B: ret 8 */ 4872 RECOMP_REGS_OUT(); 4873 } 4874 4875 void sub_4200F170(void) { 4876 int _fpu_cmp = 0; 4877 uint32_t _cf = 0; 4878 int _df = 1; 4879 uint32_t _flag_k = FK_NONE; 4880 uint32_t _flag_a = 0, _flag_b = 0; 4881 uint32_t _itail_tgt = 0; 4882 RECOMP_REGS_LOCALS 4883 RECOMP_ENTER(0x4200F170u); 4884 4885 L_4200F170: 4886 PUSH32(esp, ebp); /* 0x4200F170: push ebp */ 4887 ebp = esp; /* 0x4200F171: mov ebp, esp */ 4888 PUSH32(esp, 0xFFFFFFFFu); /* 0x4200F173: push -1 */ 4889 PUSH32(esp, 0x420176C8u); /* 0x4200F175: push 0x420176c8 */ 4890 eax = MEM32(FS_BASE + (0)); /* 0x4200F17A: mov eax, dword ptr fs:[0] */ 4891 PUSH32(esp, eax); /* 0x4200F180: push eax */ 4892 MEM32(FS_BASE + (0)) = esp; /* 0x4200F181: mov dword ptr fs:[0], esp */ 4893 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 4894 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4895 esp = esp - 0x14u; /* 0x4200F188: sub esp, 0x14 */ 4896 _flag_k = FK_CMP; 4897 PUSH32(esp, ebx); /* 0x4200F18B: push ebx */ 4898 PUSH32(esp, esi); /* 0x4200F18C: push esi */ 4899 ebx = ecx; /* 0x4200F18D: mov ebx, ecx */ 4900 PUSH32(esp, edi); /* 0x4200F18F: push edi */ 4901 MEM32(ebp + (-0x20)) = ebx; /* 0x4200F190: mov dword ptr [ebp - 0x20], ebx */ 4902 RECOMP_ICALL(0x42004850u); /* 0x4200F193: call 0x42004850 */ /* not lifted */ 4903 RECOMP_FLAGS_IN(); 4904 ecx = MEM32(ebx + 0x28); /* 0x4200F198: mov ecx, dword ptr [ebx + 0x28] */ 4905 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4906 eax = 0; /* 0x4200F19B: xor eax, eax */ 4907 _cf = 0; 4908 _flag_k = FK_TEST; 4909 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4910 edx = 0; /* 0x4200F19D: xor edx, edx */ 4911 _cf = 0; 4912 _flag_k = FK_TEST; 4913 /* cmp ecx, eax */ /* 0x4200F19F: cmp ecx, eax */ 4914 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4915 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4916 _flag_k = FK_CMP; 4917 MEM32(ebp + (-0x4)) = eax; /* 0x4200F1A1: mov dword ptr [ebp - 4], eax */ 4918 MEM32(ebp + (-0x1C)) = edx; /* 0x4200F1A4: mov dword ptr [ebp - 0x1c], edx */ 4919 MEM32(ebp + (-0x18)) = eax; /* 0x4200F1A7: mov dword ptr [ebp - 0x18], eax */ 4920 if (CMP_LE(_flag_a, _flag_b)) goto L_4200F22A; /* 0x4200F1AA: jle 0x4200f22a */ 4921 L_4200F1AC: 4922 goto L_4200F1B0; /* 0x4200F1AC: jmp 0x4200f1b0 */ 4923 L_4200F1AE: 4924 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4925 eax = 0; /* 0x4200F1AE: xor eax, eax */ 4926 _cf = 0; 4927 _flag_k = FK_TEST; 4928 L_4200F1B0: 4929 /* cmp MEM32(ebx + 0x24), eax */ /* 0x4200F1B0: cmp dword ptr [ebx + 0x24], eax */ 4930 _flag_a = (uint32_t)(MEM32(ebx + 0x24)); _flag_b = (uint32_t)(eax); 4931 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4932 _flag_k = FK_CMP; 4933 MEM32(ebp + (-0x10)) = eax; /* 0x4200F1B3: mov dword ptr [ebp - 0x10], eax */ 4934 if (CMP_LE(_flag_a, _flag_b)) goto L_4200F214; /* 0x4200F1B6: jle 0x4200f214 */ 4935 L_4200F1B8: 4936 edx = edx + edx * 4; /* 0x4200F1B8: lea edx, [edx + edx*4] */ 4937 if (3u) _cf = (((edx) >> 29) & 1u); /* 0x4200F1BB: shl edx, 3 */ 4938 if (3u) { _flag_a = recomp_flags_pack((edx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4939 edx = edx << 3u; /* 0x4200F1BB: shl edx, 3 */ 4940 MEM32(ebp + (-0x14)) = edx; /* 0x4200F1BE: mov dword ptr [ebp - 0x14], edx */ 4941 L_4200F1C1: 4942 eax = MEM32(ebx + 0x38); /* 0x4200F1C1: mov eax, dword ptr [ebx + 0x38] */ 4943 ecx = MEM32(eax + edx + 0x4); /* 0x4200F1C4: mov ecx, dword ptr [eax + edx + 4] */ 4944 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4945 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4946 eax = eax + edx; /* 0x4200F1C8: add eax, edx */ 4947 _flag_k = FK_ADD; 4948 /* test ecx, ecx */ /* 0x4200F1CA: test ecx, ecx */ 4949 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4950 _cf = 0; 4951 _flag_k = FK_TEST; 4952 if (TEST_Z(_flag_a, _flag_b)) goto L_4200F1FD; /* 0x4200F1CC: je 0x4200f1fd */ 4953 L_4200F1CE: 4954 esi = MEM32(eax + 0x8); /* 0x4200F1CE: mov esi, dword ptr [eax + 8] */ 4955 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 4956 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4957 esi = esi - ecx; /* 0x4200F1D1: sub esi, ecx */ 4958 _flag_k = FK_CMP; 4959 /* test esi, 0xFFFFFFFCu */ /* 0x4200F1D3: test esi, 0xfffffffc */ 4960 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFCu); 4961 _cf = 0; 4962 _flag_k = FK_TEST; 4963 if (TEST_Z(_flag_a, _flag_b)) goto L_4200F1FD; /* 0x4200F1D9: je 0x4200f1fd */ 4964 L_4200F1DB: 4965 edi = MEM32(eax + 0x8); /* 0x4200F1DB: mov edi, dword ptr [eax + 8] */ 4966 esi = ecx; /* 0x4200F1DE: mov esi, ecx */ 4967 /* cmp esi, edi */ /* 0x4200F1E0: cmp esi, edi */ 4968 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 4969 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4970 _flag_k = FK_CMP; 4971 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200F1FD; /* 0x4200F1E2: je 0x4200f1fd */ 4972 L_4200F1E4: 4973 ecx = MEM32(ebp + 0x8); /* 0x4200F1E4: mov ecx, dword ptr [ebp + 8] */ 4974 eax = MEM32(esi); /* 0x4200F1E7: mov eax, dword ptr [esi] */ 4975 edx = MEM32(ecx); /* 0x4200F1E9: mov edx, dword ptr [ecx] */ 4976 PUSH32(esp, eax); /* 0x4200F1EB: push eax */ 4977 RECOMP_ICALL(MEM32(edx)); /* 0x4200F1EC: call dword ptr [edx] */ 4978 RECOMP_FLAGS_IN(); 4979 /* cmp eax, 1 */ /* 0x4200F1EE: cmp eax, 1 */ 4980 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4981 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4982 _flag_k = FK_CMP; 4983 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200F22A; /* 0x4200F1F1: je 0x4200f22a */ 4984 L_4200F1F3: 4985 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 4986 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4987 esi = esi + 4; /* 0x4200F1F3: add esi, 4 */ 4988 _flag_k = FK_ADD; 4989 /* cmp esi, edi */ /* 0x4200F1F6: cmp esi, edi */ 4990 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 4991 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4992 _flag_k = FK_CMP; 4993 RECOMP_BACKEDGE(); 4994 if (CMP_NE(_flag_a, _flag_b)) goto L_4200F1E4; /* 0x4200F1F8: jne 0x4200f1e4 */ 4995 L_4200F1FA: 4996 edx = MEM32(ebp + (-0x14)); /* 0x4200F1FA: mov edx, dword ptr [ebp - 0x14] */ 4997 L_4200F1FD: 4998 eax = MEM32(ebp + (-0x10)); /* 0x4200F1FD: mov eax, dword ptr [ebp - 0x10] */ 4999 ecx = MEM32(ebx + 0x24); /* 0x4200F200: mov ecx, dword ptr [ebx + 0x24] */ 5000 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5001 eax = eax + 1; /* 0x4200F203: inc eax */ 5002 _flag_k = FK_INC; 5003 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x28u); 5004 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5005 edx = edx + 0x28u; /* 0x4200F204: add edx, 0x28 */ 5006 _flag_k = FK_ADD; 5007 /* cmp eax, ecx */ /* 0x4200F207: cmp eax, ecx */ 5008 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5009 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5010 _flag_k = FK_CMP; 5011 MEM32(ebp + (-0x10)) = eax; /* 0x4200F209: mov dword ptr [ebp - 0x10], eax */ 5012 MEM32(ebp + (-0x14)) = edx; /* 0x4200F20C: mov dword ptr [ebp - 0x14], edx */ 5013 RECOMP_BACKEDGE(); 5014 if (CMP_L(_flag_a, _flag_b)) goto L_4200F1C1; /* 0x4200F20F: jl 0x4200f1c1 */ 5015 L_4200F211: 5016 edx = MEM32(ebp + (-0x1C)); /* 0x4200F211: mov edx, dword ptr [ebp - 0x1c] */ 5017 L_4200F214: 5018 eax = MEM32(ebp + (-0x18)); /* 0x4200F214: mov eax, dword ptr [ebp - 0x18] */ 5019 esi = MEM32(ebx + 0x24); /* 0x4200F217: mov esi, dword ptr [ebx + 0x24] */ 5020 ecx = MEM32(ebx + 0x28); /* 0x4200F21A: mov ecx, dword ptr [ebx + 0x28] */ 5021 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5022 eax = eax + 1; /* 0x4200F21D: inc eax */ 5023 _flag_k = FK_INC; 5024 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 5025 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5026 edx = edx + esi; /* 0x4200F21E: add edx, esi */ 5027 _flag_k = FK_ADD; 5028 /* cmp eax, ecx */ /* 0x4200F220: cmp eax, ecx */ 5029 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5030 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5031 _flag_k = FK_CMP; 5032 MEM32(ebp + (-0x18)) = eax; /* 0x4200F222: mov dword ptr [ebp - 0x18], eax */ 5033 MEM32(ebp + (-0x1C)) = edx; /* 0x4200F225: mov dword ptr [ebp - 0x1c], edx */ 5034 RECOMP_BACKEDGE(); 5035 if (CMP_L(_flag_a, _flag_b)) goto L_4200F1AE; /* 0x4200F228: jl 0x4200f1ae */ 5036 L_4200F22A: 5037 ecx = ebx; /* 0x4200F22A: mov ecx, ebx */ 5038 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x4200F22C: mov dword ptr [ebp - 4], 0xffffffff */ 5039 RECOMP_ICALL(0x42004870u); /* 0x4200F233: call 0x42004870 */ /* not lifted */ 5040 RECOMP_FLAGS_IN(); 5041 ecx = ebx; /* 0x4200F238: mov ecx, ebx */ 5042 RECOMP_ICALL(0x420048E0u); /* 0x4200F23A: call 0x420048e0 */ /* not lifted */ 5043 RECOMP_FLAGS_IN(); 5044 ecx = MEM32(ebp + (-0xC)); /* 0x4200F23F: mov ecx, dword ptr [ebp - 0xc] */ 5045 edi = POP32_VAL(esp); /* 0x4200F242: pop edi */ 5046 esi = POP32_VAL(esp); /* 0x4200F243: pop esi */ 5047 ebx = POP32_VAL(esp); /* 0x4200F244: pop ebx */ 5048 MEM32(FS_BASE + (0)) = ecx; /* 0x4200F245: mov dword ptr fs:[0], ecx */ 5049 esp = ebp; /* 0x4200F24C: mov esp, ebp */ 5050 ebp = POP32_VAL(esp); /* 0x4200F24E: pop ebp */ 5051 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4200F24F: ret 4 */ 5052 RECOMP_REGS_OUT(); 5053 } 5054 5055 void sub_4200F260(void) { 5056 int _fpu_cmp = 0; 5057 uint32_t _cf = 0; 5058 int _df = 1; 5059 uint32_t _flag_k = FK_NONE; 5060 uint32_t _flag_a = 0, _flag_b = 0; 5061 uint32_t _itail_tgt = 0; 5062 RECOMP_REGS_LOCALS 5063 RECOMP_ENTER(0x4200F260u); 5064 5065 L_4200F260: 5066 PUSH32(esp, ebp); /* 0x4200F260: push ebp */ 5067 ebp = esp; /* 0x4200F261: mov ebp, esp */ 5068 PUSH32(esp, 0xFFFFFFFFu); /* 0x4200F263: push -1 */ 5069 PUSH32(esp, 0x420176E8u); /* 0x4200F265: push 0x420176e8 */ 5070 eax = MEM32(FS_BASE + (0)); /* 0x4200F26A: mov eax, dword ptr fs:[0] */ 5071 PUSH32(esp, eax); /* 0x4200F270: push eax */ 5072 MEM32(FS_BASE + (0)) = esp; /* 0x4200F271: mov dword ptr fs:[0], esp */ 5073 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 5074 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5075 esp = esp - 0x24u; /* 0x4200F278: sub esp, 0x24 */ 5076 _flag_k = FK_CMP; 5077 PUSH32(esp, ebx); /* 0x4200F27B: push ebx */ 5078 PUSH32(esp, esi); /* 0x4200F27C: push esi */ 5079 PUSH32(esp, edi); /* 0x4200F27D: push edi */ 5080 edi = ecx; /* 0x4200F27E: mov edi, ecx */ 5081 MEM32(ebp + (-0x18)) = edi; /* 0x4200F280: mov dword ptr [ebp - 0x18], edi */ 5082 RECOMP_ICALL(0x42004850u); /* 0x4200F283: call 0x42004850 */ /* not lifted */ 5083 RECOMP_FLAGS_IN(); 5084 ebx = MEM32(ebp + 0x8); /* 0x4200F288: mov ebx, dword ptr [ebp + 8] */ 5085 fp_push(*(float*)&MEM32(ebx)); /* 0x4200F28B: fld dword ptr [ebx] */ 5086 esi = MEM32(edi + 0x24); /* 0x4200F28D: mov esi, dword ptr [edi + 0x24] */ 5087 _st[0] /= (double)*(float*)ADDR(edi + 0x2C); /* 0x4200F290: fdiv dword ptr [edi + 0x2c] */ 5088 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5089 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5090 esp = esp - 8; /* 0x4200F293: sub esp, 8 */ 5091 _flag_k = FK_CMP; 5092 MEM32(ebp + (-0x4)) = 0; /* 0x4200F296: mov dword ptr [ebp - 4], 0 */ 5093 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 5094 esi = esi - 1; /* 0x4200F29D: dec esi */ 5095 _flag_k = FK_DEC; 5096 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x4200F29E: fstp qword ptr [esp] */ 5097 RECOMP_ICALL(MEM32(0x42018054)); /* 0x4200F2A1: call dword ptr [0x42018054] */ 5098 RECOMP_FLAGS_IN(); 5099 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5100 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5101 esp = esp + 8; /* 0x4200F2A7: add esp, 8 */ 5102 _flag_k = FK_ADD; 5103 RECOMP_ICALL(0x42016F3Cu); /* 0x4200F2AA: call 0x42016f3c */ /* not lifted */ 5104 RECOMP_FLAGS_IN(); 5105 /* test eax, eax */ /* 0x4200F2AF: test eax, eax */ 5106 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5107 _cf = 0; 5108 _flag_k = FK_TEST; 5109 if (TEST_G(_flag_a, _flag_b)) goto L_4200F2BC; /* 0x4200F2B1: jg 0x4200f2bc */ 5110 L_4200F2B3: 5111 MEM32(ebp + 0x8) = 0; /* 0x4200F2B3: mov dword ptr [ebp + 8], 0 */ 5112 goto L_4200F2C6; /* 0x4200F2BA: jmp 0x4200f2c6 */ 5113 L_4200F2BC: 5114 /* cmp eax, esi */ /* 0x4200F2BC: cmp eax, esi */ 5115 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 5116 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5117 _flag_k = FK_CMP; 5118 MEM32(ebp + 0x8) = esi; /* 0x4200F2BE: mov dword ptr [ebp + 8], esi */ 5119 if (CMP_GE(_flag_a, _flag_b)) goto L_4200F2C6; /* 0x4200F2C1: jge 0x4200f2c6 */ 5120 L_4200F2C3: 5121 MEM32(ebp + 0x8) = eax; /* 0x4200F2C3: mov dword ptr [ebp + 8], eax */ 5122 L_4200F2C6: 5123 fp_push(*(float*)&MEM32(ebx + 0x8)); /* 0x4200F2C6: fld dword ptr [ebx + 8] */ 5124 esi = MEM32(edi + 0x28); /* 0x4200F2C9: mov esi, dword ptr [edi + 0x28] */ 5125 _st[0] /= (double)*(float*)ADDR(edi + 0x30); /* 0x4200F2CC: fdiv dword ptr [edi + 0x30] */ 5126 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5127 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5128 esp = esp - 8; /* 0x4200F2CF: sub esp, 8 */ 5129 _flag_k = FK_CMP; 5130 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 5131 esi = esi - 1; /* 0x4200F2D2: dec esi */ 5132 _flag_k = FK_DEC; 5133 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x4200F2D3: fstp qword ptr [esp] */ 5134 RECOMP_ICALL(MEM32(0x42018054)); /* 0x4200F2D6: call dword ptr [0x42018054] */ 5135 RECOMP_FLAGS_IN(); 5136 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5137 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5138 esp = esp + 8; /* 0x4200F2DC: add esp, 8 */ 5139 _flag_k = FK_ADD; 5140 RECOMP_ICALL(0x42016F3Cu); /* 0x4200F2DF: call 0x42016f3c */ /* not lifted */ 5141 RECOMP_FLAGS_IN(); 5142 /* test eax, eax */ /* 0x4200F2E4: test eax, eax */ 5143 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5144 _cf = 0; 5145 _flag_k = FK_TEST; 5146 if (TEST_G(_flag_a, _flag_b)) goto L_4200F2EC; /* 0x4200F2E6: jg 0x4200f2ec */ 5147 L_4200F2E8: 5148 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5149 eax = 0; /* 0x4200F2E8: xor eax, eax */ 5150 _cf = 0; 5151 _flag_k = FK_TEST; 5152 goto L_4200F2F2; /* 0x4200F2EA: jmp 0x4200f2f2 */ 5153 L_4200F2EC: 5154 /* cmp eax, esi */ /* 0x4200F2EC: cmp eax, esi */ 5155 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 5156 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5157 _flag_k = FK_CMP; 5158 if (CMP_L(_flag_a, _flag_b)) goto L_4200F2F2; /* 0x4200F2EE: jl 0x4200f2f2 */ 5159 L_4200F2F0: 5160 eax = esi; /* 0x4200F2F0: mov eax, esi */ 5161 L_4200F2F2: 5162 eax = (uint32_t)((int32_t)eax * (int32_t)MEM32(edi + 0x24)); /* 0x4200F2F2: imul eax, dword ptr [edi + 0x24] */ 5163 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + 0x8)); 5164 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5165 eax = eax + MEM32(ebp + 0x8); /* 0x4200F2F6: add eax, dword ptr [ebp + 8] */ 5166 _flag_k = FK_ADD; 5167 PUSH32(esp, 1); /* 0x4200F2F9: push 1 */ 5168 esi = eax; /* 0x4200F2FB: mov esi, eax */ 5169 eax = MEM32(edi); /* 0x4200F2FD: mov eax, dword ptr [edi] */ 5170 PUSH32(esp, 0x42023148u); /* 0x4200F2FF: push 0x42023148 */ 5171 PUSH32(esp, esi); /* 0x4200F304: push esi */ 5172 ecx = edi; /* 0x4200F305: mov ecx, edi */ 5173 MEM32(ebp + (-0x14)) = esi; /* 0x4200F307: mov dword ptr [ebp - 0x14], esi */ 5174 RECOMP_ICALL(MEM32(eax + 0x84)); /* 0x4200F30A: call dword ptr [eax + 0x84] */ 5175 RECOMP_FLAGS_IN(); 5176 MEM32(ebp + (-0x10)) = eax; /* 0x4200F310: mov dword ptr [ebp - 0x10], eax */ 5177 fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x4200F313: fld dword ptr [ebp + 0xc] */ 5178 eax = MEM32(edi + 0x18); /* 0x4200F316: mov eax, dword ptr [edi + 0x18] */ 5179 /* cmp esi, eax */ /* 0x4200F319: cmp esi, eax */ 5180 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 5181 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5182 _flag_k = FK_CMP; 5183 _st[0] *= (double)*(float*)ADDR(ebp + 0xC); /* 0x4200F31B: fmul dword ptr [ebp + 0xc] */ 5184 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x4200F31E: fstp dword ptr [ebp + 8] */ 5185 if (CMP_GE(_flag_a, _flag_b)) goto L_4200F3D7; /* 0x4200F321: jge 0x4200f3d7 */ 5186 L_4200F327: 5187 ecx = MEM32(edi + 0x38); /* 0x4200F327: mov ecx, dword ptr [edi + 0x38] */ 5188 eax = esi + esi * 4; /* 0x4200F32A: lea eax, [esi + esi*4] */ 5189 if (3u) _cf = (((eax) >> 29) & 1u); /* 0x4200F32D: shl eax, 3 */ 5190 if (3u) { _flag_a = recomp_flags_pack((eax << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5191 eax = eax << 3u; /* 0x4200F32D: shl eax, 3 */ 5192 esi = MEM32(eax + ecx + 0x4); /* 0x4200F330: mov esi, dword ptr [eax + ecx + 4] */ 5193 MEM32(ebp + 0xC) = eax; /* 0x4200F334: mov dword ptr [ebp + 0xc], eax */ 5194 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5195 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5196 eax = eax + ecx; /* 0x4200F337: add eax, ecx */ 5197 _flag_k = FK_ADD; 5198 /* cmp esi, MEM32(eax + 0x8) */ /* 0x4200F339: cmp esi, dword ptr [eax + 8] */ 5199 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 5200 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5201 _flag_k = FK_CMP; 5202 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200F3D7; /* 0x4200F33C: je 0x4200f3d7 */ 5203 L_4200F342: 5204 ecx = MEM32(esi); /* 0x4200F342: mov ecx, dword ptr [esi] */ 5205 edx = MEM32(ecx); /* 0x4200F344: mov edx, dword ptr [ecx] */ 5206 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4200F346: call dword ptr [edx + 0xc] */ 5207 RECOMP_FLAGS_IN(); 5208 ecx = MEM32(eax); /* 0x4200F349: mov ecx, dword ptr [eax] */ 5209 edx = MEM32(eax + 0x4); /* 0x4200F34B: mov edx, dword ptr [eax + 4] */ 5210 eax = MEM32(eax + 0x8); /* 0x4200F34E: mov eax, dword ptr [eax + 8] */ 5211 MEM32(ebp + (-0x24)) = ecx; /* 0x4200F351: mov dword ptr [ebp - 0x24], ecx */ 5212 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x4200F354: fld dword ptr [ebp - 0x24] */ 5213 _st[0] -= (double)*(float*)ADDR(ebx); /* 0x4200F357: fsub dword ptr [ebx] */ 5214 MEM32(ebp + (-0x20)) = edx; /* 0x4200F359: mov dword ptr [ebp - 0x20], edx */ 5215 MEM32(ebp + (-0x1C)) = eax; /* 0x4200F35C: mov dword ptr [ebp - 0x1c], eax */ 5216 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x4200F35F: fstp dword ptr [ebp - 0x24] */ 5217 ecx = MEM32(ebp + (-0x24)); /* 0x4200F362: mov ecx, dword ptr [ebp - 0x24] */ 5218 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x4200F365: fld dword ptr [ebp - 0x20] */ 5219 MEM32(ebp + (-0x30)) = ecx; /* 0x4200F368: mov dword ptr [ebp - 0x30], ecx */ 5220 _st[0] -= (double)*(float*)ADDR(ebx + 0x4); /* 0x4200F36B: fsub dword ptr [ebx + 4] */ 5221 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x4200F36E: fstp dword ptr [ebp - 0x20] */ 5222 edx = MEM32(ebp + (-0x20)); /* 0x4200F371: mov edx, dword ptr [ebp - 0x20] */ 5223 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x4200F374: fld dword ptr [ebp - 0x1c] */ 5224 MEM32(ebp + (-0x2C)) = edx; /* 0x4200F377: mov dword ptr [ebp - 0x2c], edx */ 5225 _st[0] -= (double)*(float*)ADDR(ebx + 0x8); /* 0x4200F37A: fsub dword ptr [ebx + 8] */ 5226 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x4200F37D: fstp dword ptr [ebp - 0x1c] */ 5227 eax = MEM32(ebp + (-0x1C)); /* 0x4200F380: mov eax, dword ptr [ebp - 0x1c] */ 5228 MEM32(ebp + (-0x28)) = eax; /* 0x4200F383: mov dword ptr [ebp - 0x28], eax */ 5229 SET_LO8(eax, MEM8(ebp + 0x14)); /* 0x4200F386: mov al, byte ptr [ebp + 0x14] */ 5230 /* test LO8(eax), LO8(eax) */ /* 0x4200F389: test al, al */ 5231 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5232 _cf = 0; 5233 _flag_k = FK_NARROW(FK_TEST, 24); 5234 if (TEST_Z(_flag_a, _flag_b)) goto L_4200F395; /* 0x4200F38B: je 0x4200f395 */ 5235 L_4200F38D: 5236 fp_push(*(float*)&MEM32(0x420180F8)); /* 0x4200F38D: fld dword ptr [0x420180f8] */ 5237 goto L_4200F398; /* 0x4200F393: jmp 0x4200f398 */ 5238 L_4200F395: 5239 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x4200F395: fld dword ptr [ebp - 0x2c] */ 5240 L_4200F398: 5241 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x4200F398: fld dword ptr [ebp - 0x28] */ 5242 _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x4200F39B: fmul dword ptr [ebp - 0x28] */ 5243 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x4200F39E: fld dword ptr [ebp - 0x30] */ 5244 _st[0] *= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x4200F3A1: fmul dword ptr [ebp - 0x30] */ 5245 { double _v = fp_pop(); _st[0] += _v; } /* 0x4200F3A4: faddp st(1) */ 5246 fp_push(_st[1]); /* 0x4200F3A6: fld st(1) */ 5247 _st[0] *= _st[2]; /* 0x4200F3A8: fmul st(2) */ 5248 { double _v = fp_pop(); _st[0] += _v; } /* 0x4200F3AA: faddp st(1) */ 5249 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x8)); /* 0x4200F3AC: fcomp dword ptr [ebp + 8] */ 5250 fp_pop(); 5251 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4200F3AF: fnstsw ax */ 5252 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x4200F3B1: fstp st(0) */ 5253 /* test HI8(eax), 1 */ /* 0x4200F3B3: test ah, 1 */ 5254 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 5255 _cf = 0; 5256 _flag_k = FK_NARROW(FK_TEST, 24); 5257 if (TEST_Z(_flag_a, _flag_b)) goto L_4200F3C2; /* 0x4200F3B6: je 0x4200f3c2 */ 5258 L_4200F3B8: 5259 ecx = MEM32(ebp + 0x10); /* 0x4200F3B8: mov ecx, dword ptr [ebp + 0x10] */ 5260 eax = MEM32(esi); /* 0x4200F3BB: mov eax, dword ptr [esi] */ 5261 edx = MEM32(ecx); /* 0x4200F3BD: mov edx, dword ptr [ecx] */ 5262 PUSH32(esp, eax); /* 0x4200F3BF: push eax */ 5263 RECOMP_ICALL(MEM32(edx)); /* 0x4200F3C0: call dword ptr [edx] */ 5264 RECOMP_FLAGS_IN(); 5265 L_4200F3C2: 5266 ecx = MEM32(edi + 0x38); /* 0x4200F3C2: mov ecx, dword ptr [edi + 0x38] */ 5267 edx = MEM32(ebp + 0xC); /* 0x4200F3C5: mov edx, dword ptr [ebp + 0xc] */ 5268 eax = MEM32(ecx + edx + 0x8); /* 0x4200F3C8: mov eax, dword ptr [ecx + edx + 8] */ 5269 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 5270 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5271 esi = esi + 4; /* 0x4200F3CC: add esi, 4 */ 5272 _flag_k = FK_ADD; 5273 /* cmp esi, eax */ /* 0x4200F3CF: cmp esi, eax */ 5274 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 5275 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5276 _flag_k = FK_CMP; 5277 RECOMP_BACKEDGE(); 5278 if (CMP_NE(_flag_a, _flag_b)) goto L_4200F342; /* 0x4200F3D1: jne 0x4200f342 */ 5279 L_4200F3D7: 5280 eax = MEM32(ebp + (-0x10)); /* 0x4200F3D7: mov eax, dword ptr [ebp - 0x10] */ 5281 ecx = 0x42023148u; /* 0x4200F3DA: mov ecx, 0x42023148 */ 5282 /* cmp eax, ecx */ /* 0x4200F3DF: cmp eax, ecx */ 5283 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5284 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5285 _flag_k = FK_CMP; 5286 MEM32(ebp + 0xC) = ecx; /* 0x4200F3E1: mov dword ptr [ebp + 0xc], ecx */ 5287 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200F4B9; /* 0x4200F3E4: je 0x4200f4b9 */ 5288 L_4200F3EA: 5289 eax = MEM32(ecx); /* 0x4200F3EA: mov eax, dword ptr [ecx] */ 5290 /* cmp eax, MEM32(ebp + (-0x14)) */ /* 0x4200F3EC: cmp eax, dword ptr [ebp - 0x14] */ 5291 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x14))); 5292 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5293 _flag_k = FK_CMP; 5294 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200F4A8; /* 0x4200F3EF: je 0x4200f4a8 */ 5295 L_4200F3F5: 5296 edx = MEM32(edi + 0x38); /* 0x4200F3F5: mov edx, dword ptr [edi + 0x38] */ 5297 eax = eax + eax * 4; /* 0x4200F3F8: lea eax, [eax + eax*4] */ 5298 esi = MEM32(edx + eax * 8 + 0x4); /* 0x4200F3FB: mov esi, dword ptr [edx + eax*8 + 4] */ 5299 eax = edx + eax * 8; /* 0x4200F3FF: lea eax, [edx + eax*8] */ 5300 /* cmp esi, MEM32(eax + 0x8) */ /* 0x4200F402: cmp esi, dword ptr [eax + 8] */ 5301 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 5302 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5303 _flag_k = FK_CMP; 5304 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200F4A8; /* 0x4200F405: je 0x4200f4a8 */ 5305 L_4200F40B: 5306 ecx = MEM32(esi); /* 0x4200F40B: mov ecx, dword ptr [esi] */ 5307 eax = MEM32(ecx); /* 0x4200F40D: mov eax, dword ptr [ecx] */ 5308 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x4200F40F: call dword ptr [eax + 0xc] */ 5309 RECOMP_FLAGS_IN(); 5310 ecx = MEM32(eax); /* 0x4200F412: mov ecx, dword ptr [eax] */ 5311 edx = MEM32(eax + 0x4); /* 0x4200F414: mov edx, dword ptr [eax + 4] */ 5312 eax = MEM32(eax + 0x8); /* 0x4200F417: mov eax, dword ptr [eax + 8] */ 5313 MEM32(ebp + (-0x24)) = ecx; /* 0x4200F41A: mov dword ptr [ebp - 0x24], ecx */ 5314 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x4200F41D: fld dword ptr [ebp - 0x24] */ 5315 _st[0] -= (double)*(float*)ADDR(ebx); /* 0x4200F420: fsub dword ptr [ebx] */ 5316 MEM32(ebp + (-0x20)) = edx; /* 0x4200F422: mov dword ptr [ebp - 0x20], edx */ 5317 MEM32(ebp + (-0x1C)) = eax; /* 0x4200F425: mov dword ptr [ebp - 0x1c], eax */ 5318 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x4200F428: fstp dword ptr [ebp - 0x24] */ 5319 ecx = MEM32(ebp + (-0x24)); /* 0x4200F42B: mov ecx, dword ptr [ebp - 0x24] */ 5320 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x4200F42E: fld dword ptr [ebp - 0x20] */ 5321 MEM32(ebp + (-0x30)) = ecx; /* 0x4200F431: mov dword ptr [ebp - 0x30], ecx */ 5322 _st[0] -= (double)*(float*)ADDR(ebx + 0x4); /* 0x4200F434: fsub dword ptr [ebx + 4] */ 5323 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x4200F437: fstp dword ptr [ebp - 0x20] */ 5324 edx = MEM32(ebp + (-0x20)); /* 0x4200F43A: mov edx, dword ptr [ebp - 0x20] */ 5325 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x4200F43D: fld dword ptr [ebp - 0x1c] */ 5326 MEM32(ebp + (-0x2C)) = edx; /* 0x4200F440: mov dword ptr [ebp - 0x2c], edx */ 5327 _st[0] -= (double)*(float*)ADDR(ebx + 0x8); /* 0x4200F443: fsub dword ptr [ebx + 8] */ 5328 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x4200F446: fstp dword ptr [ebp - 0x1c] */ 5329 eax = MEM32(ebp + (-0x1C)); /* 0x4200F449: mov eax, dword ptr [ebp - 0x1c] */ 5330 MEM32(ebp + (-0x28)) = eax; /* 0x4200F44C: mov dword ptr [ebp - 0x28], eax */ 5331 SET_LO8(eax, MEM8(ebp + 0x14)); /* 0x4200F44F: mov al, byte ptr [ebp + 0x14] */ 5332 /* test LO8(eax), LO8(eax) */ /* 0x4200F452: test al, al */ 5333 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5334 _cf = 0; 5335 _flag_k = FK_NARROW(FK_TEST, 24); 5336 if (TEST_Z(_flag_a, _flag_b)) goto L_4200F45E; /* 0x4200F454: je 0x4200f45e */ 5337 L_4200F456: 5338 fp_push(*(float*)&MEM32(0x420180F8)); /* 0x4200F456: fld dword ptr [0x420180f8] */ 5339 goto L_4200F461; /* 0x4200F45C: jmp 0x4200f461 */ 5340 L_4200F45E: 5341 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x4200F45E: fld dword ptr [ebp - 0x2c] */ 5342 L_4200F461: 5343 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x4200F461: fld dword ptr [ebp - 0x28] */ 5344 _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x4200F464: fmul dword ptr [ebp - 0x28] */ 5345 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x4200F467: fld dword ptr [ebp - 0x30] */ 5346 _st[0] *= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x4200F46A: fmul dword ptr [ebp - 0x30] */ 5347 { double _v = fp_pop(); _st[0] += _v; } /* 0x4200F46D: faddp st(1) */ 5348 fp_push(_st[1]); /* 0x4200F46F: fld st(1) */ 5349 _st[0] *= _st[2]; /* 0x4200F471: fmul st(2) */ 5350 { double _v = fp_pop(); _st[0] += _v; } /* 0x4200F473: faddp st(1) */ 5351 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x8)); /* 0x4200F475: fcomp dword ptr [ebp + 8] */ 5352 fp_pop(); 5353 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4200F478: fnstsw ax */ 5354 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x4200F47A: fstp st(0) */ 5355 /* test HI8(eax), 1 */ /* 0x4200F47C: test ah, 1 */ 5356 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 5357 _cf = 0; 5358 _flag_k = FK_NARROW(FK_TEST, 24); 5359 if (TEST_Z(_flag_a, _flag_b)) goto L_4200F48B; /* 0x4200F47F: je 0x4200f48b */ 5360 L_4200F481: 5361 ecx = MEM32(ebp + 0x10); /* 0x4200F481: mov ecx, dword ptr [ebp + 0x10] */ 5362 eax = MEM32(esi); /* 0x4200F484: mov eax, dword ptr [esi] */ 5363 edx = MEM32(ecx); /* 0x4200F486: mov edx, dword ptr [ecx] */ 5364 PUSH32(esp, eax); /* 0x4200F488: push eax */ 5365 RECOMP_ICALL(MEM32(edx)); /* 0x4200F489: call dword ptr [edx] */ 5366 RECOMP_FLAGS_IN(); 5367 L_4200F48B: 5368 ecx = MEM32(ebp + 0xC); /* 0x4200F48B: mov ecx, dword ptr [ebp + 0xc] */ 5369 eax = MEM32(ecx); /* 0x4200F48E: mov eax, dword ptr [ecx] */ 5370 edx = eax + eax * 4; /* 0x4200F490: lea edx, [eax + eax*4] */ 5371 eax = MEM32(edi + 0x38); /* 0x4200F493: mov eax, dword ptr [edi + 0x38] */ 5372 ecx = MEM32(eax + edx * 8 + 0x8); /* 0x4200F496: mov ecx, dword ptr [eax + edx*8 + 8] */ 5373 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 5374 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5375 esi = esi + 4; /* 0x4200F49A: add esi, 4 */ 5376 _flag_k = FK_ADD; 5377 /* cmp esi, ecx */ /* 0x4200F49D: cmp esi, ecx */ 5378 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 5379 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5380 _flag_k = FK_CMP; 5381 RECOMP_BACKEDGE(); 5382 if (CMP_NE(_flag_a, _flag_b)) goto L_4200F40B; /* 0x4200F49F: jne 0x4200f40b */ 5383 L_4200F4A5: 5384 ecx = MEM32(ebp + 0xC); /* 0x4200F4A5: mov ecx, dword ptr [ebp + 0xc] */ 5385 L_4200F4A8: 5386 eax = MEM32(ebp + (-0x10)); /* 0x4200F4A8: mov eax, dword ptr [ebp - 0x10] */ 5387 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 5388 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5389 ecx = ecx + 4; /* 0x4200F4AB: add ecx, 4 */ 5390 _flag_k = FK_ADD; 5391 /* cmp ecx, eax */ /* 0x4200F4AE: cmp ecx, eax */ 5392 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 5393 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5394 _flag_k = FK_CMP; 5395 MEM32(ebp + 0xC) = ecx; /* 0x4200F4B0: mov dword ptr [ebp + 0xc], ecx */ 5396 RECOMP_BACKEDGE(); 5397 if (CMP_NE(_flag_a, _flag_b)) goto L_4200F3EA; /* 0x4200F4B3: jne 0x4200f3ea */ 5398 L_4200F4B9: 5399 ecx = edi; /* 0x4200F4B9: mov ecx, edi */ 5400 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x4200F4BB: mov dword ptr [ebp - 4], 0xffffffff */ 5401 RECOMP_ICALL(0x42004870u); /* 0x4200F4C2: call 0x42004870 */ /* not lifted */ 5402 RECOMP_FLAGS_IN(); 5403 ecx = edi; /* 0x4200F4C7: mov ecx, edi */ 5404 RECOMP_ICALL(0x420048E0u); /* 0x4200F4C9: call 0x420048e0 */ /* not lifted */ 5405 RECOMP_FLAGS_IN(); 5406 ecx = MEM32(ebp + (-0xC)); /* 0x4200F4CE: mov ecx, dword ptr [ebp - 0xc] */ 5407 edi = POP32_VAL(esp); /* 0x4200F4D1: pop edi */ 5408 esi = POP32_VAL(esp); /* 0x4200F4D2: pop esi */ 5409 ebx = POP32_VAL(esp); /* 0x4200F4D3: pop ebx */ 5410 MEM32(FS_BASE + (0)) = ecx; /* 0x4200F4D4: mov dword ptr fs:[0], ecx */ 5411 esp = ebp; /* 0x4200F4DB: mov esp, ebp */ 5412 ebp = POP32_VAL(esp); /* 0x4200F4DD: pop ebp */ 5413 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4200F4DE: ret 0x10 */ 5414 RECOMP_REGS_OUT(); 5415 } 5416 5417 void sub_4200F4F0(void) { 5418 int _fpu_cmp = 0; 5419 uint32_t _cf = 0; 5420 int _df = 1; 5421 uint32_t _flag_k = FK_NONE; 5422 uint32_t _flag_a = 0, _flag_b = 0; 5423 uint32_t _itail_tgt = 0; 5424 RECOMP_REGS_LOCALS 5425 RECOMP_ENTER(0x4200F4F0u); 5426 5427 L_4200F4F0: 5428 PUSH32(esp, ebp); /* 0x4200F4F0: push ebp */ 5429 ebp = esp; /* 0x4200F4F1: mov ebp, esp */ 5430 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u); 5431 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5432 esp = esp - 0x38u; /* 0x4200F4F3: sub esp, 0x38 */ 5433 _flag_k = FK_CMP; 5434 PUSH32(esp, ebx); /* 0x4200F4F6: push ebx */ 5435 PUSH32(esp, esi); /* 0x4200F4F7: push esi */ 5436 esi = MEM32(ecx + 0x24); /* 0x4200F4F8: mov esi, dword ptr [ecx + 0x24] */ 5437 PUSH32(esp, edi); /* 0x4200F4FB: push edi */ 5438 edi = MEM32(ebp + 0x8); /* 0x4200F4FC: mov edi, dword ptr [ebp + 8] */ 5439 eax = edi; /* 0x4200F4FF: mov eax, edi */ 5440 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x4200F501: cdq */ 5441 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)esi; /* 0x4200F502: idiv esi */ 5442 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 5443 else { eax = 0; edx = 0; } } 5444 eax = edi; /* 0x4200F504: mov eax, edi */ 5445 MEM32(ebp + (-0x10)) = 0; /* 0x4200F506: mov dword ptr [ebp - 0x10], 0 */ 5446 MEM32(ebp + (-0x1C)) = 0; /* 0x4200F50D: mov dword ptr [ebp - 0x1c], 0 */ 5447 ebx = edx; /* 0x4200F514: mov ebx, edx */ 5448 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x4200F516: cdq */ 5449 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)esi; /* 0x4200F517: idiv esi */ 5450 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 5451 else { eax = 0; edx = 0; } } 5452 MEM32(ebp + (-0x4)) = ebx; /* 0x4200F519: mov dword ptr [ebp - 4], ebx */ 5453 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 5454 ebx = ebx + 1; /* 0x4200F51C: inc ebx */ 5455 _flag_k = FK_INC; 5456 MEM32(ebp + 0x8) = ebx; /* 0x4200F51D: mov dword ptr [ebp + 8], ebx */ 5457 ebx = MEM32(ebp + 0xC); /* 0x4200F520: mov ebx, dword ptr [ebp + 0xc] */ 5458 fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x4200F523: fild dword ptr [ebp + 8] */ 5459 _st[0] *= (double)*(float*)ADDR(ecx + 0x2C); /* 0x4200F526: fmul dword ptr [ecx + 0x2c] */ 5460 _st[0] -= (double)*(float*)ADDR(0x4201841C); /* 0x4200F529: fsub dword ptr [0x4201841c] */ 5461 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x4200F52F: fstp dword ptr [ebp - 0x20] */ 5462 MEM32(ebp + (-0x8)) = eax; /* 0x4200F532: mov dword ptr [ebp - 8], eax */ 5463 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5464 eax = eax + 1; /* 0x4200F535: inc eax */ 5465 _flag_k = FK_INC; 5466 MEM32(ebp + 0x8) = eax; /* 0x4200F536: mov dword ptr [ebp + 8], eax */ 5467 fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x4200F539: fild dword ptr [ebp + 8] */ 5468 _st[0] *= (double)*(float*)ADDR(ecx + 0x30); /* 0x4200F53C: fmul dword ptr [ecx + 0x30] */ 5469 _st[0] -= (double)*(float*)ADDR(0x4201841C); /* 0x4200F53F: fsub dword ptr [0x4201841c] */ 5470 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x4200F545: fstp dword ptr [ebp - 0x18] */ 5471 fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x4200F548: fild dword ptr [ebp - 4] */ 5472 _st[0] *= (double)*(float*)ADDR(ecx + 0x2C); /* 0x4200F54B: fmul dword ptr [ecx + 0x2c] */ 5473 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x4200F54E: fstp dword ptr [ebp - 0x14] */ 5474 fp_push((double)(int32_t)MEM32(ebp + (-0x8))); /* 0x4200F551: fild dword ptr [ebp - 8] */ 5475 eax = MEM32(ebp + (-0x14)); /* 0x4200F554: mov eax, dword ptr [ebp - 0x14] */ 5476 MEM32(ebp + (-0x38)) = eax; /* 0x4200F557: mov dword ptr [ebp - 0x38], eax */ 5477 eax = MEM32(ebp + (-0x20)); /* 0x4200F55A: mov eax, dword ptr [ebp - 0x20] */ 5478 _st[0] *= (double)*(float*)ADDR(ecx + 0x30); /* 0x4200F55D: fmul dword ptr [ecx + 0x30] */ 5479 ecx = MEM32(ebp + (-0x10)); /* 0x4200F560: mov ecx, dword ptr [ebp - 0x10] */ 5480 MEM32(ebp + (-0x34)) = ecx; /* 0x4200F563: mov dword ptr [ebp - 0x34], ecx */ 5481 ecx = MEM32(ebp + (-0x1C)); /* 0x4200F566: mov ecx, dword ptr [ebp - 0x1c] */ 5482 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x4200F569: fstp dword ptr [ebp - 0xc] */ 5483 edx = MEM32(ebp + (-0xC)); /* 0x4200F56C: mov edx, dword ptr [ebp - 0xc] */ 5484 MEM32(ebp + (-0x30)) = edx; /* 0x4200F56F: mov dword ptr [ebp - 0x30], edx */ 5485 edx = MEM32(ebp + (-0x18)); /* 0x4200F572: mov edx, dword ptr [ebp - 0x18] */ 5486 MEM32(ebp + (-0x24)) = edx; /* 0x4200F575: mov dword ptr [ebp - 0x24], edx */ 5487 edx = MEM32(ebx + 0xC); /* 0x4200F578: mov edx, dword ptr [ebx + 0xc] */ 5488 MEM32(ebp + (-0x2C)) = eax; /* 0x4200F57B: mov dword ptr [ebp - 0x2c], eax */ 5489 MEM32(ebp + (-0x28)) = ecx; /* 0x4200F57E: mov dword ptr [ebp - 0x28], ecx */ 5490 ecx = MEM32(ebx + 0x8); /* 0x4200F581: mov ecx, dword ptr [ebx + 8] */ 5491 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 5492 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5493 edx = edx - ecx; /* 0x4200F584: sub edx, ecx */ 5494 _flag_k = FK_CMP; 5495 eax = 0x2AAAAAABu; /* 0x4200F586: mov eax, 0x2aaaaaab */ 5496 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x4200F58B: imul edx */ 5497 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 5498 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 5499 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x4200F58D: sar edx, 2 */ 5500 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5501 edx = (uint32_t)((int32_t)edx >> 2u); 5502 eax = edx; /* 0x4200F590: mov eax, edx */ 5503 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x4200F592: shr eax, 0x1f */ 5504 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5505 eax = eax >> 31u; /* 0x4200F592: shr eax, 0x1f */ 5506 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 5507 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5508 edx = edx + eax; /* 0x4200F595: add edx, eax */ 5509 _flag_k = FK_ADD; 5510 /* cmp edx, 1 */ /* 0x4200F597: cmp edx, 1 */ 5511 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 5512 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5513 _flag_k = FK_CMP; 5514 esi = ecx; /* 0x4200F59A: mov esi, ecx */ 5515 MEM32(ebp + 0x8) = esi; /* 0x4200F59C: mov dword ptr [ebp + 8], esi */ 5516 if (CMP_AE(_flag_a, _flag_b)) goto L_4200F67F; /* 0x4200F59F: jae 0x4200f67f */ 5517 L_4200F5A5: 5518 edi = MEM32(ebx + 0x4); /* 0x4200F5A5: mov edi, dword ptr [ebx + 4] */ 5519 /* test edi, edi */ /* 0x4200F5A8: test edi, edi */ 5520 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5521 _cf = 0; 5522 _flag_k = FK_TEST; 5523 if (TEST_Z(_flag_a, _flag_b)) goto L_4200F5C9; /* 0x4200F5AA: je 0x4200f5c9 */ 5524 L_4200F5AC: 5525 edx = ecx; /* 0x4200F5AC: mov edx, ecx */ 5526 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 5527 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5528 edx = edx - edi; /* 0x4200F5AE: sub edx, edi */ 5529 _flag_k = FK_CMP; 5530 eax = 0x2AAAAAABu; /* 0x4200F5B0: mov eax, 0x2aaaaaab */ 5531 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x4200F5B5: imul edx */ 5532 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 5533 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 5534 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x4200F5B7: sar edx, 2 */ 5535 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5536 edx = (uint32_t)((int32_t)edx >> 2u); 5537 eax = edx; /* 0x4200F5BA: mov eax, edx */ 5538 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x4200F5BC: shr eax, 0x1f */ 5539 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5540 eax = eax >> 31u; /* 0x4200F5BC: shr eax, 0x1f */ 5541 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 5542 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5543 edx = edx + eax; /* 0x4200F5BF: add edx, eax */ 5544 _flag_k = FK_ADD; 5545 /* cmp edx, 1 */ /* 0x4200F5C1: cmp edx, 1 */ 5546 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 5547 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5548 _flag_k = FK_CMP; 5549 MEM32(ebp + 0x8) = edx; /* 0x4200F5C4: mov dword ptr [ebp + 8], edx */ 5550 if (CMP_A(_flag_a, _flag_b)) goto L_4200F5D0; /* 0x4200F5C7: ja 0x4200f5d0 */ 5551 L_4200F5C9: 5552 MEM32(ebp + 0x8) = 1; /* 0x4200F5C9: mov dword ptr [ebp + 8], 1 */ 5553 L_4200F5D0: 5554 /* test edi, edi */ /* 0x4200F5D0: test edi, edi */ 5555 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5556 _cf = 0; 5557 _flag_k = FK_TEST; 5558 if (TEST_NZ(_flag_a, _flag_b)) goto L_4200F5D8; /* 0x4200F5D2: jne 0x4200f5d8 */ 5559 L_4200F5D4: 5560 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5561 edx = 0; /* 0x4200F5D4: xor edx, edx */ 5562 _cf = 0; 5563 _flag_k = FK_TEST; 5564 goto L_4200F5EB; /* 0x4200F5D6: jmp 0x4200f5eb */ 5565 L_4200F5D8: 5566 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 5567 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5568 ecx = ecx - edi; /* 0x4200F5D8: sub ecx, edi */ 5569 _flag_k = FK_CMP; 5570 eax = 0x2AAAAAABu; /* 0x4200F5DA: mov eax, 0x2aaaaaab */ 5571 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x4200F5DF: imul ecx */ 5572 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 5573 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 5574 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x4200F5E1: sar edx, 2 */ 5575 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5576 edx = (uint32_t)((int32_t)edx >> 2u); 5577 ecx = edx; /* 0x4200F5E4: mov ecx, edx */ 5578 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x4200F5E6: shr ecx, 0x1f */ 5579 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5580 ecx = ecx >> 31u; /* 0x4200F5E6: shr ecx, 0x1f */ 5581 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 5582 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5583 edx = edx + ecx; /* 0x4200F5E9: add edx, ecx */ 5584 _flag_k = FK_ADD; 5585 L_4200F5EB: 5586 eax = MEM32(ebp + 0x8); /* 0x4200F5EB: mov eax, dword ptr [ebp + 8] */ 5587 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 5588 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5589 eax = eax + edx; /* 0x4200F5EE: add eax, edx */ 5590 _flag_k = FK_ADD; 5591 /* test eax, eax */ /* 0x4200F5F0: test eax, eax */ 5592 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5593 _cf = 0; 5594 _flag_k = FK_TEST; 5595 MEM32(ebp + 0xC) = eax; /* 0x4200F5F2: mov dword ptr [ebp + 0xc], eax */ 5596 if (TEST_NS(_flag_a, _flag_b)) goto L_4200F5F9; /* 0x4200F5F5: jge 0x4200f5f9 */ 5597 L_4200F5F7: 5598 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5599 eax = 0; /* 0x4200F5F7: xor eax, eax */ 5600 _cf = 0; 5601 _flag_k = FK_TEST; 5602 L_4200F5F9: 5603 ecx = eax + eax * 2; /* 0x4200F5F9: lea ecx, [eax + eax*2] */ 5604 if (3u) _cf = (((ecx) >> 29) & 1u); /* 0x4200F5FC: shl ecx, 3 */ 5605 if (3u) { _flag_a = recomp_flags_pack((ecx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5606 ecx = ecx << 3u; /* 0x4200F5FC: shl ecx, 3 */ 5607 PUSH32(esp, ecx); /* 0x4200F5FF: push ecx */ 5608 RECOMP_ICALL(0x42016F36u); /* 0x4200F600: call 0x42016f36 */ /* not lifted */ 5609 RECOMP_FLAGS_IN(); 5610 edx = MEM32(ebx + 0x4); /* 0x4200F605: mov edx, dword ptr [ebx + 4] */ 5611 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5612 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5613 esp = esp + 4; /* 0x4200F608: add esp, 4 */ 5614 _flag_k = FK_ADD; 5615 edi = eax; /* 0x4200F60B: mov edi, eax */ 5616 PUSH32(esp, edi); /* 0x4200F60D: push edi */ 5617 PUSH32(esp, esi); /* 0x4200F60E: push esi */ 5618 PUSH32(esp, edx); /* 0x4200F60F: push edx */ 5619 ecx = ebx; /* 0x4200F610: mov ecx, ebx */ 5620 RECOMP_ICALL(0x420026D0u); /* 0x4200F612: call 0x420026d0 */ /* not lifted */ 5621 RECOMP_FLAGS_IN(); 5622 ecx = ebp + (-0x38); /* 0x4200F617: lea ecx, [ebp - 0x38] */ 5623 PUSH32(esp, ecx); /* 0x4200F61A: push ecx */ 5624 PUSH32(esp, 1); /* 0x4200F61B: push 1 */ 5625 PUSH32(esp, eax); /* 0x4200F61D: push eax */ 5626 ecx = ebx; /* 0x4200F61E: mov ecx, ebx */ 5627 MEM32(ebp + 0x8) = eax; /* 0x4200F620: mov dword ptr [ebp + 8], eax */ 5628 RECOMP_ICALL(0x42002710u); /* 0x4200F623: call 0x42002710 */ /* not lifted */ 5629 RECOMP_FLAGS_IN(); 5630 edx = MEM32(ebp + 0x8); /* 0x4200F628: mov edx, dword ptr [ebp + 8] */ 5631 eax = MEM32(ebx + 0x8); /* 0x4200F62B: mov eax, dword ptr [ebx + 8] */ 5632 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x18u); 5633 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5634 edx = edx + 0x18u; /* 0x4200F62E: add edx, 0x18 */ 5635 _flag_k = FK_ADD; 5636 PUSH32(esp, edx); /* 0x4200F631: push edx */ 5637 PUSH32(esp, eax); /* 0x4200F632: push eax */ 5638 PUSH32(esp, esi); /* 0x4200F633: push esi */ 5639 ecx = ebx; /* 0x4200F634: mov ecx, ebx */ 5640 RECOMP_ICALL(0x420026D0u); /* 0x4200F636: call 0x420026d0 */ /* not lifted */ 5641 RECOMP_FLAGS_IN(); 5642 ecx = MEM32(ebx + 0x8); /* 0x4200F63B: mov ecx, dword ptr [ebx + 8] */ 5643 edx = MEM32(ebx + 0x4); /* 0x4200F63E: mov edx, dword ptr [ebx + 4] */ 5644 PUSH32(esp, ecx); /* 0x4200F641: push ecx */ 5645 PUSH32(esp, edx); /* 0x4200F642: push edx */ 5646 ecx = ebx; /* 0x4200F643: mov ecx, ebx */ 5647 RECOMP_ICALL(0x42002690u); /* 0x4200F645: call 0x42002690 */ /* not lifted */ 5648 RECOMP_FLAGS_IN(); 5649 eax = MEM32(ebx + 0x4); /* 0x4200F64A: mov eax, dword ptr [ebx + 4] */ 5650 PUSH32(esp, eax); /* 0x4200F64D: push eax */ 5651 RECOMP_ICALL(0x42016DD0u); /* 0x4200F64E: call 0x42016dd0 */ /* not lifted */ 5652 RECOMP_FLAGS_IN(); 5653 eax = MEM32(ebp + 0xC); /* 0x4200F653: mov eax, dword ptr [ebp + 0xc] */ 5654 ecx = eax + eax * 2; /* 0x4200F656: lea ecx, [eax + eax*2] */ 5655 edx = edi + ecx * 8; /* 0x4200F659: lea edx, [edi + ecx*8] */ 5656 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5657 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5658 esp = esp + 4; /* 0x4200F65C: add esp, 4 */ 5659 _flag_k = FK_ADD; 5660 ecx = ebx; /* 0x4200F65F: mov ecx, ebx */ 5661 MEM32(ebx + 0xC) = edx; /* 0x4200F661: mov dword ptr [ebx + 0xc], edx */ 5662 RECOMP_ICALL(0x420026A0u); /* 0x4200F664: call 0x420026a0 */ /* not lifted */ 5663 RECOMP_FLAGS_IN(); 5664 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5665 eax = eax + 1; /* 0x4200F669: inc eax */ 5666 _flag_k = FK_INC; 5667 eax = eax + eax * 2; /* 0x4200F66A: lea eax, [eax + eax*2] */ 5668 ecx = edi + eax * 8; /* 0x4200F66D: lea ecx, [edi + eax*8] */ 5669 MEM32(ebx + 0x4) = edi; /* 0x4200F670: mov dword ptr [ebx + 4], edi */ 5670 edi = POP32_VAL(esp); /* 0x4200F673: pop edi */ 5671 esi = POP32_VAL(esp); /* 0x4200F674: pop esi */ 5672 MEM32(ebx + 0x8) = ecx; /* 0x4200F675: mov dword ptr [ebx + 8], ecx */ 5673 ebx = POP32_VAL(esp); /* 0x4200F678: pop ebx */ 5674 esp = ebp; /* 0x4200F679: mov esp, ebp */ 5675 ebp = POP32_VAL(esp); /* 0x4200F67B: pop ebp */ 5676 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4200F67C: ret 8 */ 5677 L_4200F67F: 5678 edx = ecx; /* 0x4200F67F: mov edx, ecx */ 5679 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 5680 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5681 edx = edx - esi; /* 0x4200F681: sub edx, esi */ 5682 _flag_k = FK_CMP; 5683 eax = 0x2AAAAAABu; /* 0x4200F683: mov eax, 0x2aaaaaab */ 5684 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x4200F688: imul edx */ 5685 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 5686 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 5687 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x4200F68A: sar edx, 2 */ 5688 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5689 edx = (uint32_t)((int32_t)edx >> 2u); 5690 eax = edx; /* 0x4200F68D: mov eax, edx */ 5691 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x4200F68F: shr eax, 0x1f */ 5692 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5693 eax = eax >> 31u; /* 0x4200F68F: shr eax, 0x1f */ 5694 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 5695 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5696 edx = edx + eax; /* 0x4200F692: add edx, eax */ 5697 _flag_k = FK_ADD; 5698 /* cmp edx, 1 */ /* 0x4200F694: cmp edx, 1 */ 5699 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 5700 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5701 _flag_k = FK_CMP; 5702 if (CMP_AE(_flag_a, _flag_b)) goto L_4200F700; /* 0x4200F697: jae 0x4200f700 */ 5703 L_4200F699: 5704 edx = esi + 0x18; /* 0x4200F699: lea edx, [esi + 0x18] */ 5705 PUSH32(esp, edx); /* 0x4200F69C: push edx */ 5706 PUSH32(esp, ecx); /* 0x4200F69D: push ecx */ 5707 PUSH32(esp, esi); /* 0x4200F69E: push esi */ 5708 ecx = ebx; /* 0x4200F69F: mov ecx, ebx */ 5709 RECOMP_ICALL(0x420026D0u); /* 0x4200F6A1: call 0x420026d0 */ /* not lifted */ 5710 RECOMP_FLAGS_IN(); 5711 edi = MEM32(ebx + 0x8); /* 0x4200F6A6: mov edi, dword ptr [ebx + 8] */ 5712 eax = ebp + (-0x38); /* 0x4200F6A9: lea eax, [ebp - 0x38] */ 5713 PUSH32(esp, eax); /* 0x4200F6AC: push eax */ 5714 ecx = edi; /* 0x4200F6AD: mov ecx, edi */ 5715 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 5716 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5717 ecx = ecx - esi; /* 0x4200F6AF: sub ecx, esi */ 5718 _flag_k = FK_CMP; 5719 eax = 0x2AAAAAABu; /* 0x4200F6B1: mov eax, 0x2aaaaaab */ 5720 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x4200F6B6: imul ecx */ 5721 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 5722 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 5723 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x4200F6B8: sar edx, 2 */ 5724 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5725 edx = (uint32_t)((int32_t)edx >> 2u); 5726 ecx = edx; /* 0x4200F6BB: mov ecx, edx */ 5727 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x4200F6BD: shr ecx, 0x1f */ 5728 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5729 ecx = ecx >> 31u; /* 0x4200F6BD: shr ecx, 0x1f */ 5730 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 5731 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5732 edx = edx + ecx; /* 0x4200F6C0: add edx, ecx */ 5733 _flag_k = FK_ADD; 5734 eax = 1; /* 0x4200F6C2: mov eax, 1 */ 5735 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 5736 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5737 eax = eax - edx; /* 0x4200F6C7: sub eax, edx */ 5738 _flag_k = FK_CMP; 5739 PUSH32(esp, eax); /* 0x4200F6C9: push eax */ 5740 PUSH32(esp, edi); /* 0x4200F6CA: push edi */ 5741 ecx = ebx; /* 0x4200F6CB: mov ecx, ebx */ 5742 RECOMP_ICALL(0x42002710u); /* 0x4200F6CD: call 0x42002710 */ /* not lifted */ 5743 RECOMP_FLAGS_IN(); 5744 edx = MEM32(ebx + 0x8); /* 0x4200F6D2: mov edx, dword ptr [ebx + 8] */ 5745 /* cmp esi, edx */ /* 0x4200F6D5: cmp esi, edx */ 5746 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 5747 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5748 _flag_k = FK_CMP; 5749 eax = esi; /* 0x4200F6D7: mov eax, esi */ 5750 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200F74D; /* 0x4200F6D9: je 0x4200f74d */ 5751 L_4200F6DB: 5752 edi = eax; /* 0x4200F6DB: mov edi, eax */ 5753 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u); 5754 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5755 eax = eax + 0x18u; /* 0x4200F6DD: add eax, 0x18 */ 5756 _flag_k = FK_ADD; 5757 /* cmp eax, edx */ /* 0x4200F6E0: cmp eax, edx */ 5758 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 5759 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5760 _flag_k = FK_CMP; 5761 ecx = 6; /* 0x4200F6E2: mov ecx, 6 */ 5762 esi = ebp + (-0x38); /* 0x4200F6E7: lea esi, [ebp - 0x38] */ 5763 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4200F6EA: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 5764 RECOMP_BACKEDGE(); 5765 if (CMP_NE(_flag_a, _flag_b)) goto L_4200F6DB; /* 0x4200F6EC: jne 0x4200f6db */ 5766 L_4200F6EE: 5767 eax = MEM32(ebx + 0x8); /* 0x4200F6EE: mov eax, dword ptr [ebx + 8] */ 5768 edi = POP32_VAL(esp); /* 0x4200F6F1: pop edi */ 5769 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u); 5770 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5771 eax = eax + 0x18u; /* 0x4200F6F2: add eax, 0x18 */ 5772 _flag_k = FK_ADD; 5773 esi = POP32_VAL(esp); /* 0x4200F6F5: pop esi */ 5774 MEM32(ebx + 0x8) = eax; /* 0x4200F6F6: mov dword ptr [ebx + 8], eax */ 5775 ebx = POP32_VAL(esp); /* 0x4200F6F9: pop ebx */ 5776 esp = ebp; /* 0x4200F6FA: mov esp, ebp */ 5777 ebp = POP32_VAL(esp); /* 0x4200F6FC: pop ebp */ 5778 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4200F6FD: ret 8 */ 5779 L_4200F700: 5780 PUSH32(esp, ecx); /* 0x4200F700: push ecx */ 5781 PUSH32(esp, ecx); /* 0x4200F701: push ecx */ 5782 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFE8u); 5783 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5784 ecx = ecx + 0xFFFFFFE8u; /* 0x4200F702: add ecx, -0x18 */ 5785 _flag_k = FK_ADD; 5786 PUSH32(esp, ecx); /* 0x4200F705: push ecx */ 5787 ecx = ebx; /* 0x4200F706: mov ecx, ebx */ 5788 RECOMP_ICALL(0x420026D0u); /* 0x4200F708: call 0x420026d0 */ /* not lifted */ 5789 RECOMP_FLAGS_IN(); 5790 edx = MEM32(ebx + 0x8); /* 0x4200F70D: mov edx, dword ptr [ebx + 8] */ 5791 eax = edx + (-0x18); /* 0x4200F710: lea eax, [edx - 0x18] */ 5792 /* cmp esi, eax */ /* 0x4200F713: cmp esi, eax */ 5793 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 5794 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5795 _flag_k = FK_CMP; 5796 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200F731; /* 0x4200F715: je 0x4200f731 */ 5797 L_4200F717: 5798 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u); 5799 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5800 eax = eax - 0x18u; /* 0x4200F717: sub eax, 0x18 */ 5801 _flag_k = FK_CMP; 5802 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x18u); 5803 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5804 edx = edx - 0x18u; /* 0x4200F71A: sub edx, 0x18 */ 5805 _flag_k = FK_CMP; 5806 ecx = 6; /* 0x4200F71D: mov ecx, 6 */ 5807 esi = eax; /* 0x4200F722: mov esi, eax */ 5808 edi = edx; /* 0x4200F724: mov edi, edx */ 5809 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4200F726: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 5810 ecx = MEM32(ebp + 0x8); /* 0x4200F728: mov ecx, dword ptr [ebp + 8] */ 5811 /* cmp eax, ecx */ /* 0x4200F72B: cmp eax, ecx */ 5812 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5813 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5814 _flag_k = FK_CMP; 5815 RECOMP_BACKEDGE(); 5816 if (CMP_NE(_flag_a, _flag_b)) goto L_4200F717; /* 0x4200F72D: jne 0x4200f717 */ 5817 L_4200F72F: 5818 esi = ecx; /* 0x4200F72F: mov esi, ecx */ 5819 L_4200F731: 5820 edx = esi + 0x18; /* 0x4200F731: lea edx, [esi + 0x18] */ 5821 /* cmp esi, edx */ /* 0x4200F734: cmp esi, edx */ 5822 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 5823 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5824 _flag_k = FK_CMP; 5825 eax = esi; /* 0x4200F736: mov eax, esi */ 5826 if (CMP_EQ(_flag_a, _flag_b)) goto L_4200F74D; /* 0x4200F738: je 0x4200f74d */ 5827 L_4200F73A: 5828 edi = eax; /* 0x4200F73A: mov edi, eax */ 5829 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u); 5830 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5831 eax = eax + 0x18u; /* 0x4200F73C: add eax, 0x18 */ 5832 _flag_k = FK_ADD; 5833 /* cmp eax, edx */ /* 0x4200F73F: cmp eax, edx */ 5834 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 5835 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5836 _flag_k = FK_CMP; 5837 ecx = 6; /* 0x4200F741: mov ecx, 6 */ 5838 esi = ebp + (-0x38); /* 0x4200F746: lea esi, [ebp - 0x38] */ 5839 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4200F749: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 5840 RECOMP_BACKEDGE(); 5841 if (CMP_NE(_flag_a, _flag_b)) goto L_4200F73A; /* 0x4200F74B: jne 0x4200f73a */ 5842 L_4200F74D: 5843 eax = MEM32(ebx + 0x8); /* 0x4200F74D: mov eax, dword ptr [ebx + 8] */ 5844 edi = POP32_VAL(esp); /* 0x4200F750: pop edi */ 5845 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u); 5846 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5847 eax = eax + 0x18u; /* 0x4200F751: add eax, 0x18 */ 5848 _flag_k = FK_ADD; 5849 esi = POP32_VAL(esp); /* 0x4200F754: pop esi */ 5850 MEM32(ebx + 0x8) = eax; /* 0x4200F755: mov dword ptr [ebx + 8], eax */ 5851 ebx = POP32_VAL(esp); /* 0x4200F758: pop ebx */ 5852 esp = ebp; /* 0x4200F759: mov esp, ebp */ 5853 ebp = POP32_VAL(esp); /* 0x4200F75B: pop ebp */ 5854 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4200F75C: ret 8 */ 5855 RECOMP_REGS_OUT(); 5856 } 5857 5858 void sub_4200F760(void) { 5859 int _fpu_cmp = 0; 5860 uint32_t _cf = 0; 5861 int _df = 1; 5862 uint32_t _flag_k = FK_NONE; 5863 uint32_t _flag_a = 0, _flag_b = 0; 5864 uint32_t _itail_tgt = 0; 5865 RECOMP_REGS_LOCALS 5866 RECOMP_ENTER(0x4200F760u); 5867 5868 L_4200F760: 5869 PUSH32(esp, ebp); /* 0x4200F760: push ebp */ 5870 ebp = esp; /* 0x4200F761: mov ebp, esp */ 5871 PUSH32(esp, 0xFFFFFFFFu); /* 0x4200F763: push -1 */ 5872 PUSH32(esp, 0x42017708u); /* 0x4200F765: push 0x42017708 */ 5873 eax = MEM32(FS_BASE + (0)); /* 0x4200F76A: mov eax, dword ptr fs:[0] */ 5874 PUSH32(esp, eax); /* 0x4200F770: push eax */ 5875 MEM32(FS_BASE + (0)) = esp; /* 0x4200F771: mov dword ptr fs:[0], esp */ 5876 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x40u); 5877 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5878 esp = esp - 0x40u; /* 0x4200F778: sub esp, 0x40 */ 5879 _flag_k = FK_CMP; 5880 PUSH32(esp, ebx); /* 0x4200F77B: push ebx */ 5881 PUSH32(esp, esi); /* 0x4200F77C: push esi */ 5882 esi = ecx; /* 0x4200F77D: mov esi, ecx */ 5883 PUSH32(esp, edi); /* 0x4200F77F: push edi */ 5884 MEM32(ebp + (-0x34)) = esi; /* 0x4200F780: mov dword ptr [ebp - 0x34], esi */ 5885 RECOMP_ICALL(0x42004850u); /* 0x4200F783: call 0x42004850 */ /* not lifted */ 5886 RECOMP_FLAGS_IN(); 5887 eax = MEM32(ebp + 0x8); /* 0x4200F788: mov eax, dword ptr [ebp + 8] */ 5888 ecx = MEM32(eax); /* 0x4200F78B: mov ecx, dword ptr [eax] */ 5889 edx = MEM32(eax + 0x4); /* 0x4200F78D: mov edx, dword ptr [eax + 4] */ 5890 eax = MEM32(eax + 0x8); /* 0x4200F790: mov eax, dword ptr [eax + 8] */ 5891 MEM32(ebp + (-0x40)) = ecx; /* 0x4200F793: mov dword ptr [ebp - 0x40], ecx */ 5892 ecx = MEM32(ebp + 0xC); /* 0x4200F796: mov ecx, dword ptr [ebp + 0xc] */ 5893 MEM32(ebp + (-0x3C)) = edx; /* 0x4200F799: mov dword ptr [ebp - 0x3c], edx */ 5894 edx = MEM32(ecx); /* 0x4200F79C: mov edx, dword ptr [ecx] */ 5895 MEM32(ebp + (-0x38)) = eax; /* 0x4200F79E: mov dword ptr [ebp - 0x38], eax */ 5896 eax = MEM32(ecx + 0x4); /* 0x4200F7A1: mov eax, dword ptr [ecx + 4] */ 5897 ecx = MEM32(ecx + 0x8); /* 0x4200F7A4: mov ecx, dword ptr [ecx + 8] */ 5898 MEM32(ebp + (-0x48)) = eax; /* 0x4200F7A7: mov dword ptr [ebp - 0x48], eax */ 5899 eax = ebp + (-0x40); /* 0x4200F7AA: lea eax, [ebp - 0x40] */ 5900 PUSH32(esp, eax); /* 0x4200F7AD: push eax */ 5901 MEM32(ebp + (-0x4C)) = edx; /* 0x4200F7AE: mov dword ptr [ebp - 0x4c], edx */ 5902 edx = MEM32(esi); /* 0x4200F7B1: mov edx, dword ptr [esi] */ 5903 MEM32(ebp + (-0x44)) = ecx; /* 0x4200F7B3: mov dword ptr [ebp - 0x44], ecx */ 5904 PUSH32(esp, 0xFFFFFFFFu); /* 0x4200F7B6: push -1 */ 5905 ecx = esi; /* 0x4200F7B8: mov ecx, esi */ 5906 MEM32(ebp + (-0x4)) = 0; /* 0x4200F7BA: mov dword ptr [ebp - 4], 0 */ 5907 RECOMP_ICALL(MEM32(edx + 0x70)); /* 0x4200F7C1: call dword ptr [edx + 0x70] */ 5908 RECOMP_FLAGS_IN(); 5909 edx = MEM32(esi); /* 0x4200F7C4: mov edx, dword ptr [esi] */ 5910 edi = eax; /* 0x4200F7C6: mov edi, eax */ 5911 eax = ebp + (-0x4C); /* 0x4200F7C8: lea eax, [ebp - 0x4c] */ 5912 PUSH32(esp, eax); /* 0x4200F7CB: push eax */ 5913 PUSH32(esp, 0xFFFFFFFFu); /* 0x4200F7CC: push -1 */ 5914 ecx = esi; /* 0x4200F7CE: mov ecx, esi */ 5915 RECOMP_ICALL(MEM32(edx + 0x70)); /* 0x4200F7D0: call dword ptr [edx + 0x70] */ 5916 RECOMP_FLAGS_IN(); 5917 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x4200F7D3: fld dword ptr [ebp - 0x40] */ 5918 ecx = MEM32(esi + 0x24); /* 0x4200F7D6: mov ecx, dword ptr [esi + 0x24] */ 5919 _st[0] /= (double)*(float*)ADDR(esi + 0x2C); /* 0x4200F7D9: fdiv dword ptr [esi + 0x2c] */ 5920 ebx = eax; /* 0x4200F7DC: mov ebx, eax */ 5921 eax = edi; /* 0x4200F7DE: mov eax, edi */ 5922 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x4200F7E0: cdq */ 5923 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x4200F7E1: idiv ecx */ 5924 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 5925 else { eax = 0; edx = 0; } } 5926 eax = edi; /* 0x4200F7E3: mov eax, edi */ 5927 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x4200F7E5: fst dword ptr [ebp - 0x20] */ 5928 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x4200F7E8: fld dword ptr [ebp - 0x38] */ 5929 _st[0] /= (double)*(float*)ADDR(esi + 0x2C); /* 0x4200F7EB: fdiv dword ptr [esi + 0x2c] */ 5930 MEM32(ebp + (-0x2C)) = edx; /* 0x4200F7EE: mov dword ptr [ebp - 0x2c], edx */ 5931 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x4200F7F1: cdq */ 5932 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x4200F7F2: idiv ecx */ 5933 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 5934 else { eax = 0; edx = 0; } } 5935 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x4200F7F4: fstp dword ptr [ebp + 0xc] */ 5936 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x4200F7F7: fld dword ptr [ebp - 0x4c] */ 5937 _st[0] /= (double)*(float*)ADDR(esi + 0x2C); /* 0x4200F7FA: fdiv dword ptr [esi + 0x2c] */ 5938 edi = eax; /* 0x4200F7FD: mov edi, eax */ 5939 eax = ebx; /* 0x4200F7FF: mov eax, ebx */ 5940 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x4200F801: cdq */ 5941 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x4200F802: idiv ecx */ 5942 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 5943 else { eax = 0; edx = 0; } } 5944 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x4200F804: fld dword ptr [ebp - 0x44] */ 5945 _st[0] /= (double)*(float*)ADDR(esi + 0x2C); /* 0x4200F807: fdiv dword ptr [esi + 0x2c] */ 5946 eax = ebx; /* 0x4200F80A: mov eax, ebx */ 5947 ebx = 1; /* 0x4200F80C: mov ebx, 1 */ 5948 MEM32(ebp + (-0x28)) = edx; /* 0x4200F811: mov dword ptr [ebp - 0x28], edx */ 5949 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x4200F814: cdq */ 5950 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x4200F815: idiv ecx */ 5951 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 5952 else { eax = 0; edx = 0; } } 5953 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x4200F817: fstp dword ptr [ebp + 8] */ 5954 _st[0] -= _st[1]; /* 0x4200F81A: fsub st(1) */ 5955 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x4200F81C: fld dword ptr [ebp + 8] */ 5956 _st[0] -= (double)*(float*)ADDR(ebp + 0xC); /* 0x4200F81F: fsub dword ptr [ebp + 0xc] */ 5957 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x4200F822: fstp dword ptr [ebp + 8] */ 5958 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x420180F8)); /* 0x4200F825: fcom dword ptr [0x420180f8] */ 5959 MEM32(ebp + (-0x30)) = eax; /* 0x4200F82B: mov dword ptr [ebp - 0x30], eax */ 5960 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4200F82E: fnstsw ax */ 5961 /* test LO8(ebx), HI8(eax) */ /* 0x4200F830: test bl, ah */ 5962 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(HI8(eax)) << 24; 5963 _cf = 0; 5964 _flag_k = FK_NARROW(FK_TEST, 24); 5965 if (TEST_NZ(_flag_a, _flag_b)) goto L_4200F85E; /* 0x4200F832: jne 0x4200f85e */ 5966 L_4200F834: 5967 fp_push(*(float*)&MEM32(0x42018430)); /* 0x4200F834: fld dword ptr [0x42018430] */ 5968 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5969 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5970 esp = esp - 8; /* 0x4200F83A: sub esp, 8 */ 5971 _flag_k = FK_CMP; 5972 _st[0] /= _st[1]; /* 0x4200F83D: fdiv st(1) */ 5973 MEM32(ebp + (-0x18)) = ebx; /* 0x4200F83F: mov dword ptr [ebp - 0x18], ebx */ 5974 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x4200F842: fstp dword ptr [ebp - 0x10] */ 5975 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x4200F845: fstp st(0) */ 5976 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x4200F847: fstp qword ptr [esp] */ 5977 RECOMP_ICALL(MEM32(0x42018054)); /* 0x4200F84A: call dword ptr [0x42018054] */ 5978 RECOMP_FLAGS_IN(); 5979 _st[0] += *(double*)ADDR(0x42018428); /* 0x4200F850: fadd qword ptr [0x42018428] */ 5980 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5981 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5982 esp = esp + 8; /* 0x4200F856: add esp, 8 */ 5983 _flag_k = FK_ADD; 5984 _st[0] -= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x4200F859: fsub dword ptr [ebp - 0x20] */ 5985 goto L_4200F889; /* 0x4200F85C: jmp 0x4200f889 */ 5986 L_4200F85E: 5987 fp_push(*(float*)&MEM32(0x42018420)); /* 0x4200F85E: fld dword ptr [0x42018420] */ 5988 MEM32(ebp + (-0x18)) = 0xFFFFFFFFu; /* 0x4200F864: mov dword ptr [ebp - 0x18], 0xffffffff */ 5989 _st[0] /= _st[1]; /* 0x4200F86B: fdiv st(1) */ 5990 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x4200F86D: fstp dword ptr [ebp - 0x10] */ 5991 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x4200F870: fstp st(0) */ 5992 { double _v = fp_pop(); *(double*)ADDR(ebp + (-0x24)) = _v; } /* 0x4200F872: fstp qword ptr [ebp - 0x24] */ 5993 ecx = MEM32(ebp + (-0x20)); /* 0x4200F875: mov ecx, dword ptr [ebp - 0x20] */ 5994 edx = MEM32(ebp + (-0x24)); /* 0x4200F878: mov edx, dword ptr [ebp - 0x24] */ 5995 PUSH32(esp, ecx); /* 0x4200F87B: push ecx */ 5996 PUSH32(esp, edx); /* 0x4200F87C: push edx */ 5997 RECOMP_ICALL(MEM32(0x42018054)); /* 0x4200F87D: call dword ptr [0x42018054] */ 5998 RECOMP_FLAGS_IN(); 5999 _st[0] = *(double*)ADDR(ebp + (-0x24)) - _st[0]; /* 0x4200F883: fsubr qword ptr [ebp - 0x24] */ 6000 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6001 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6002 esp = esp + 8; /* 0x4200F886: add esp, 8 */ 6003 _flag_k = FK_ADD; 6004 L_4200F889: 6005 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x4200F889: fmul dword ptr [ebp - 0x10] */ 6006 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x4200F88C: fstp dword ptr [ebp - 0x14] */ 6007 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x4200F88F: fld dword ptr [ebp + 8] */ 6008 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x420180F8)); /* 0x4200F892: fcomp dword ptr [0x420180f8] */ 6009 fp_pop(); 6010 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4200F898: fnstsw ax */ 6011 /* test HI8(eax), 1 */ /* 0x4200F89A: test ah, 1 */ 6012 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 6013 _cf = 0; 6014 _flag_k = FK_NARROW(FK_TEST, 24); 6015 if (TEST_NZ(_flag_a, _flag_b)) goto L_4200F8CB; /* 0x4200F89D: jne 0x4200f8cb */ 6016 L_4200F89F: 6017 fp_push(*(float*)&MEM32(0x42018430)); /* 0x4200F89F: fld dword ptr [0x42018430] */ 6018 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6019 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6020 esp = esp - 8; /* 0x4200F8A5: sub esp, 8 */ 6021 _flag_k = FK_CMP; 6022 _st[0] /= (double)*(float*)ADDR(ebp + 0x8); /* 0x4200F8A8: fdiv dword ptr [ebp + 8] */ 6023 MEM32(ebp + (-0x1C)) = ebx; /* 0x4200F8AB: mov dword ptr [ebp - 0x1c], ebx */ 6024 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x4200F8AE: fstp dword ptr [ebp + 8] */ 6025 fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x4200F8B1: fld dword ptr [ebp + 0xc] */ 6026 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x4200F8B4: fstp qword ptr [esp] */ 6027 RECOMP_ICALL(MEM32(0x42018054)); /* 0x4200F8B7: call dword ptr [0x42018054] */ 6028 RECOMP_FLAGS_IN(); 6029 _st[0] += *(double*)ADDR(0x42018428); /* 0x4200F8BD: fadd qword ptr [0x42018428] */ 6030 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6031 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6032 esp = esp + 8; /* 0x4200F8C3: add esp, 8 */ 6033 _flag_k = FK_ADD; 6034 _st[0] -= (double)*(float*)ADDR(ebp + 0xC); /* 0x4200F8C6: fsub dword ptr [ebp + 0xc] */ 6035 goto L_4200F8F8; /* 0x4200F8C9: jmp 0x4200f8f8 */ 6036 L_4200F8CB: 6037 fp_push(*(float*)&MEM32(0x42018420)); /* 0x4200F8CB: fld dword ptr [0x42018420] */ 6038 MEM32(ebp + (-0x1C)) = 0xFFFFFFFFu; /* 0x4200F8D1: mov dword ptr [ebp - 0x1c], 0xffffffff */ 6039 _st[0] /= (double)*(float*)ADDR(ebp + 0x8); /* 0x4200F8D8: fdiv dword ptr [ebp + 8] */ 6040 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x4200F8DB: fstp dword ptr [ebp + 8] */ 6041 fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x4200F8DE: fld dword ptr [ebp + 0xc] */ 6042 { double _v = fp_pop(); *(double*)ADDR(ebp + (-0x24)) = _v; } /* 0x4200F8E1: fstp qword ptr [ebp - 0x24] */ 6043 eax = MEM32(ebp + (-0x20)); /* 0x4200F8E4: mov eax, dword ptr [ebp - 0x20] */ 6044 ecx = MEM32(ebp + (-0x24)); /* 0x4200F8E7: mov ecx, dword ptr [ebp - 0x24] */ 6045 PUSH32(esp, eax); /* 0x4200F8EA: push eax */ 6046 PUSH32(esp, ecx); /* 0x4200F8EB: push ecx */ 6047 RECOMP_ICALL(MEM32(0x42018054)); /* 0x4200F8EC: call dword ptr [0x42018054] */ 6048 RECOMP_FLAGS_IN(); 6049 _st[0] = *(double*)ADDR(ebp + (-0x24)) - _st[0]; /* 0x4200F8F2: fsubr qword ptr [ebp - 0x24] */ 6050 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6051 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6052 esp = esp + 8; /* 0x4200F8F5: add esp, 8 */ 6053 _flag_k = FK_ADD; 6054 L_4200F8F8: 6055 eax = MEM32(ebp + (-0x28)); /* 0x4200F8F8: mov eax, dword ptr [ebp - 0x28] */ 6056 ebx = MEM32(ebp + (-0x2C)); /* 0x4200F8FB: mov ebx, dword ptr [ebp - 0x2c] */ 6057 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 6058 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6059 eax = eax - ebx; /* 0x4200F8FE: sub eax, ebx */ 6060 _flag_k = FK_CMP; 6061 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x4200F900: cdq */ 6062 ecx = eax; /* 0x4200F901: mov ecx, eax */ 6063 eax = MEM32(ebp + (-0x30)); /* 0x4200F903: mov eax, dword ptr [ebp - 0x30] */ 6064 _flag_a = (uint32_t)((ecx ^ edx)); _flag_b = (uint32_t)((ecx ^ edx)); 6065 ecx = ecx ^ edx; /* 0x4200F906: xor ecx, edx */ 6066 _cf = 0; 6067 _flag_k = FK_TEST; 6068 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 6069 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6070 eax = eax - edi; /* 0x4200F908: sub eax, edi */ 6071 _flag_k = FK_CMP; 6072 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 6073 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6074 ecx = ecx - edx; /* 0x4200F90A: sub ecx, edx */ 6075 _flag_k = FK_CMP; 6076 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x4200F90C: cdq */ 6077 _flag_a = (uint32_t)((eax ^ edx)); _flag_b = (uint32_t)((eax ^ edx)); 6078 eax = eax ^ edx; /* 0x4200F90D: xor eax, edx */ 6079 _cf = 0; 6080 _flag_k = FK_TEST; 6081 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 6082 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6083 eax = eax - edx; /* 0x4200F90F: sub eax, edx */ 6084 _flag_k = FK_CMP; 6085 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 6086 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6087 ecx = ecx + eax; /* 0x4200F911: add ecx, eax */ 6088 _flag_k = FK_ADD; 6089 _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x4200F913: fmul dword ptr [ebp + 8] */ 6090 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x4200F916: fstp dword ptr [ebp + 0xc] */ 6091 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_S)) goto L_4200F95F; /* 0x4200F919: js 0x4200f95f */ 6092 L_4200F91B: 6093 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6094 ecx = ecx + 1; /* 0x4200F91B: inc ecx */ 6095 _flag_k = FK_INC; 6096 MEM32(ebp + (-0x20)) = ecx; /* 0x4200F91C: mov dword ptr [ebp - 0x20], ecx */ 6097 L_4200F91F: 6098 ecx = MEM32(ebp + 0x10); /* 0x4200F91F: mov ecx, dword ptr [ebp + 0x10] */ 6099 edx = MEM32(ecx); /* 0x4200F922: mov edx, dword ptr [ecx] */ 6100 eax = edi; /* 0x4200F924: mov eax, edi */ 6101 eax = (uint32_t)((int32_t)eax * (int32_t)MEM32(esi + 0x24)); /* 0x4200F926: imul eax, dword ptr [esi + 0x24] */ 6102 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 6103 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6104 eax = eax + ebx; /* 0x4200F92A: add eax, ebx */ 6105 _flag_k = FK_ADD; 6106 PUSH32(esp, eax); /* 0x4200F92C: push eax */ 6107 RECOMP_ICALL(MEM32(edx)); /* 0x4200F92D: call dword ptr [edx] */ 6108 RECOMP_FLAGS_IN(); 6109 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x4200F92F: fld dword ptr [ebp - 0x14] */ 6110 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0xC)); /* 0x4200F932: fcomp dword ptr [ebp + 0xc] */ 6111 fp_pop(); 6112 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4200F935: fnstsw ax */ 6113 /* test HI8(eax), 1 */ /* 0x4200F937: test ah, 1 */ 6114 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 6115 _cf = 0; 6116 _flag_k = FK_NARROW(FK_TEST, 24); 6117 if (TEST_Z(_flag_a, _flag_b)) goto L_4200F94C; /* 0x4200F93A: je 0x4200f94c */ 6118 L_4200F93C: 6119 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x4200F93C: fld dword ptr [ebp - 0x14] */ 6120 eax = MEM32(ebp + (-0x18)); /* 0x4200F93F: mov eax, dword ptr [ebp - 0x18] */ 6121 _st[0] += (double)*(float*)ADDR(ebp + (-0x10)); /* 0x4200F942: fadd dword ptr [ebp - 0x10] */ 6122 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 6123 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6124 ebx = ebx + eax; /* 0x4200F945: add ebx, eax */ 6125 _flag_k = FK_ADD; 6126 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x4200F947: fstp dword ptr [ebp - 0x14] */ 6127 goto L_4200F95A; /* 0x4200F94A: jmp 0x4200f95a */ 6128 L_4200F94C: 6129 fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x4200F94C: fld dword ptr [ebp + 0xc] */ 6130 eax = MEM32(ebp + (-0x1C)); /* 0x4200F94F: mov eax, dword ptr [ebp - 0x1c] */ 6131 _st[0] += (double)*(float*)ADDR(ebp + 0x8); /* 0x4200F952: fadd dword ptr [ebp + 8] */ 6132 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6133 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6134 edi = edi + eax; /* 0x4200F955: add edi, eax */ 6135 _flag_k = FK_ADD; 6136 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x4200F957: fstp dword ptr [ebp + 0xc] */ 6137 L_4200F95A: 6138 _flag_a = (uint32_t)(MEM32(ebp + (-0x20))); _flag_b = (uint32_t)(1); 6139 MEM32(ebp + (-0x20)) = MEM32(ebp + (-0x20)) - 1; /* 0x4200F95A: dec dword ptr [ebp - 0x20] */ 6140 _flag_k = FK_DEC; 6141 RECOMP_BACKEDGE(); 6142 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_4200F91F; /* 0x4200F95D: jne 0x4200f91f */ 6143 L_4200F95F: 6144 ecx = esi; /* 0x4200F95F: mov ecx, esi */ 6145 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x4200F961: mov dword ptr [ebp - 4], 0xffffffff */ 6146 RECOMP_ICALL(0x42004870u); /* 0x4200F968: call 0x42004870 */ /* not lifted */ 6147 RECOMP_FLAGS_IN(); 6148 ecx = esi; /* 0x4200F96D: mov ecx, esi */ 6149 RECOMP_ICALL(0x420048E0u); /* 0x4200F96F: call 0x420048e0 */ /* not lifted */ 6150 RECOMP_FLAGS_IN(); 6151 ecx = MEM32(ebp + (-0xC)); /* 0x4200F974: mov ecx, dword ptr [ebp - 0xc] */ 6152 edi = POP32_VAL(esp); /* 0x4200F977: pop edi */ 6153 esi = POP32_VAL(esp); /* 0x4200F978: pop esi */ 6154 ebx = POP32_VAL(esp); /* 0x4200F979: pop ebx */ 6155 MEM32(FS_BASE + (0)) = ecx; /* 0x4200F97A: mov dword ptr fs:[0], ecx */ 6156 esp = ebp; /* 0x4200F981: mov esp, ebp */ 6157 ebp = POP32_VAL(esp); /* 0x4200F983: pop ebp */ 6158 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4200F984: ret 0xc */ 6159 RECOMP_REGS_OUT(); 6160 } 6161 6162 void sub_4200F990(void) { 6163 uint32_t _cf = 0, _flag_k = FK_NONE, _flag_a = 0, _flag_b = 0; 6164 RECOMP_REGS_LOCALS 6165 RECOMP_ENTER(0x4200F990u); 6166 6167 /* qqr.dll!GridSpace_t::IterateCellsAlongLine, RVA 0xF990. 6168 * Keep the guest frame and callback ABI; the final extent argument is unused. */ 6169 PUSH32(esp, ebp); 6170 ebp = esp; 6171 esp -= 0x18; 6172 PUSH32(esp, ebx); 6173 PUSH32(esp, esi); 6174 PUSH32(esp, edi); 6175 uint32_t start = MEM32(ebp + 8), end = MEM32(ebp + 12); 6176 uint32_t worker = MEM32(ebp + 16); 6177 int32_t width = MEM32(ebp + 20), height = MEM32(ebp + 24); 6178 6179 /* Preserve the float stores and the unrounded end Z used by the x87 code. 6180 * Cell indices truncate toward zero, even for negative fractional positions. */ 6181 double cell_size = (double)*(float *)ADDR(ebp + 28) / width; 6182 float start_x = (float)(*(float *)ADDR(start) / cell_size); 6183 float start_z = (float)(*(float *)ADDR(start + 8) / cell_size); 6184 float end_x = (float)(*(float *)ADDR(end) / cell_size); 6185 double end_z = *(float *)ADDR(end + 8) / cell_size; 6186 ebx = (uint32_t)(int64_t)trunc(start_x); 6187 esi = (uint32_t)(int64_t)trunc(start_z); 6188 uint32_t distance_x = (uint32_t)(int64_t)trunc(end_x) - ebx; 6189 uint32_t distance_z = (uint32_t)(int64_t)trunc(end_z) - esi; 6190 if ((int32_t)distance_x < 0) distance_x = 0u - distance_x; 6191 if ((int32_t)distance_z < 0) distance_z = 0u - distance_z; 6192 uint32_t remaining = distance_x + distance_z; 6193 6194 /* Crossing distances use percentages. Ties visit the Z neighbor first. */ 6195 float dx = (float)((double)end_x - start_x); 6196 float dz = (float)(end_z - start_z); 6197 int32_t step_x = dx >= 0 ? 1 : -1, step_z = dz >= 0 ? 1 : -1; 6198 float delta_x = (float)((step_x > 0 ? 100.0 : -100.0) / dx); 6199 float delta_z = (float)((step_z > 0 ? 100.0 : -100.0) / dz); 6200 float next_x = (float)((step_x > 0 ? floor(start_x) + 1 - start_x : 6201 start_x - floor(start_x)) * delta_x); 6202 float next_z = (float)((step_z > 0 ? floor(start_z) + 1 - start_z : 6203 start_z - floor(start_z)) * delta_z); 6204 edi = esi * (uint32_t)width; 6205 uint32_t row_step = (uint32_t)step_z * (uint32_t)width; 6206 6207 while ((int32_t)remaining >= 0 && (int32_t)ebx >= 0 && (int32_t)esi >= 0 && 6208 (int32_t)ebx < width && (int32_t)esi < height) { 6209 ecx = worker; 6210 PUSH32(esp, edi + ebx); 6211 RECOMP_ICALL(MEM32(MEM32(worker))); 6212 RECOMP_FLAGS_IN(); 6213 6214 /* x87's C0 branch also takes X when the comparison is unordered. */ 6215 if (!(next_x >= next_z)) { 6216 ebx += step_x; 6217 next_x = (float)((double)next_x + delta_x); 6218 } else { 6219 esi += step_z; 6220 edi += row_step; 6221 next_z = (float)((double)next_z + delta_z); 6222 } 6223 --remaining; 6224 RECOMP_BACKEDGE(); 6225 } 6226 6227 edi = POP32_VAL(esp); 6228 esi = POP32_VAL(esp); 6229 ebx = POP32_VAL(esp); 6230 esp = ebp; 6231 ebp = POP32_VAL(esp); 6232 esp += 4; 6233 RECOMP_REGS_OUT(); 6234 } 6235 6236 void sub_4200FB70(void) { 6237 int _fpu_cmp = 0; 6238 uint32_t _cf = 0; 6239 int _df = 1; 6240 uint32_t _flag_k = FK_NONE; 6241 uint32_t _flag_a = 0, _flag_b = 0; 6242 uint32_t _itail_tgt = 0; 6243 RECOMP_REGS_LOCALS 6244 RECOMP_ENTER(0x4200FB70u); 6245 6246 L_4200FB70: 6247 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4200FB70: ret 4 */ 6248 RECOMP_REGS_OUT(); 6249 } 6250 6251 void sub_4200FB80(void) { 6252 int _fpu_cmp = 0; 6253 uint32_t _cf = 0; 6254 int _df = 1; 6255 uint32_t _flag_k = FK_NONE; 6256 uint32_t _flag_a = 0, _flag_b = 0; 6257 uint32_t _itail_tgt = 0; 6258 RECOMP_REGS_LOCALS 6259 RECOMP_ENTER(0x4200FB80u); 6260 6261 L_4200FB80: 6262 PUSH32(esp, ebp); /* 0x4200FB80: push ebp */ 6263 ebp = esp; /* 0x4200FB81: mov ebp, esp */ 6264 PUSH32(esp, ebx); /* 0x4200FB83: push ebx */ 6265 PUSH32(esp, edi); /* 0x4200FB84: push edi */ 6266 edi = ecx; /* 0x4200FB85: mov edi, ecx */ 6267 eax = MEM32(edi + 0x28); /* 0x4200FB87: mov eax, dword ptr [edi + 0x28] */ 6268 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6269 ebx = 0; /* 0x4200FB8A: xor ebx, ebx */ 6270 _cf = 0; 6271 _flag_k = FK_TEST; 6272 /* test eax, eax */ /* 0x4200FB8C: test eax, eax */ 6273 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6274 _cf = 0; 6275 _flag_k = FK_TEST; 6276 if (TEST_LE(_flag_a, _flag_b)) goto L_4200FBD5; /* 0x4200FB8E: jle 0x4200fbd5 */ 6277 L_4200FB90: 6278 PUSH32(esp, esi); /* 0x4200FB90: push esi */ 6279 L_4200FB91: 6280 eax = MEM32(edi + 0x24); /* 0x4200FB91: mov eax, dword ptr [edi + 0x24] */ 6281 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6282 esi = 0; /* 0x4200FB94: xor esi, esi */ 6283 _cf = 0; 6284 _flag_k = FK_TEST; 6285 /* test eax, eax */ /* 0x4200FB96: test eax, eax */ 6286 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6287 _cf = 0; 6288 _flag_k = FK_TEST; 6289 if (TEST_LE(_flag_a, _flag_b)) goto L_4200FBCC; /* 0x4200FB98: jle 0x4200fbcc */ 6290 L_4200FB9A: 6291 edx = MEM32(edi + 0x38); /* 0x4200FB9A: mov edx, dword ptr [edi + 0x38] */ 6292 eax = (uint32_t)((int32_t)eax * (int32_t)ebx); /* 0x4200FB9D: imul eax, ebx */ 6293 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 6294 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6295 eax = eax + esi; /* 0x4200FBA0: add eax, esi */ 6296 _flag_k = FK_ADD; 6297 ecx = eax + eax * 4; /* 0x4200FBA2: lea ecx, [eax + eax*4] */ 6298 ecx = edx + ecx * 8; /* 0x4200FBA5: lea ecx, [edx + ecx*8] */ 6299 edx = MEM32(ecx + 0x4); /* 0x4200FBA8: mov edx, dword ptr [ecx + 4] */ 6300 /* test edx, edx */ /* 0x4200FBAB: test edx, edx */ 6301 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 6302 _cf = 0; 6303 _flag_k = FK_TEST; 6304 if (TEST_Z(_flag_a, _flag_b)) goto L_4200FBC4; /* 0x4200FBAD: je 0x4200fbc4 */ 6305 L_4200FBAF: 6306 ecx = MEM32(ecx + 0x8); /* 0x4200FBAF: mov ecx, dword ptr [ecx + 8] */ 6307 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 6308 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6309 ecx = ecx - edx; /* 0x4200FBB2: sub ecx, edx */ 6310 _flag_k = FK_CMP; 6311 /* test ecx, 0xFFFFFFFCu */ /* 0x4200FBB4: test ecx, 0xfffffffc */ 6312 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFFCu); 6313 _cf = 0; 6314 _flag_k = FK_TEST; 6315 if (TEST_Z(_flag_a, _flag_b)) goto L_4200FBC4; /* 0x4200FBBA: je 0x4200fbc4 */ 6316 L_4200FBBC: 6317 ecx = MEM32(ebp + 0x8); /* 0x4200FBBC: mov ecx, dword ptr [ebp + 8] */ 6318 edx = MEM32(ecx); /* 0x4200FBBF: mov edx, dword ptr [ecx] */ 6319 PUSH32(esp, eax); /* 0x4200FBC1: push eax */ 6320 RECOMP_ICALL(MEM32(edx)); /* 0x4200FBC2: call dword ptr [edx] */ 6321 RECOMP_FLAGS_IN(); 6322 L_4200FBC4: 6323 eax = MEM32(edi + 0x24); /* 0x4200FBC4: mov eax, dword ptr [edi + 0x24] */ 6324 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 6325 esi = esi + 1; /* 0x4200FBC7: inc esi */ 6326 _flag_k = FK_INC; 6327 /* cmp esi, eax */ /* 0x4200FBC8: cmp esi, eax */ 6328 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 6329 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6330 _flag_k = FK_CMP; 6331 RECOMP_BACKEDGE(); 6332 if (CMP_L(_flag_a, _flag_b)) goto L_4200FB9A; /* 0x4200FBCA: jl 0x4200fb9a */ 6333 L_4200FBCC: 6334 eax = MEM32(edi + 0x28); /* 0x4200FBCC: mov eax, dword ptr [edi + 0x28] */ 6335 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 6336 ebx = ebx + 1; /* 0x4200FBCF: inc ebx */ 6337 _flag_k = FK_INC; 6338 /* cmp ebx, eax */ /* 0x4200FBD0: cmp ebx, eax */ 6339 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 6340 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6341 _flag_k = FK_CMP; 6342 RECOMP_BACKEDGE(); 6343 if (CMP_L(_flag_a, _flag_b)) goto L_4200FB91; /* 0x4200FBD2: jl 0x4200fb91 */ 6344 L_4200FBD4: 6345 esi = POP32_VAL(esp); /* 0x4200FBD4: pop esi */ 6346 L_4200FBD5: 6347 edi = POP32_VAL(esp); /* 0x4200FBD5: pop edi */ 6348 ebx = POP32_VAL(esp); /* 0x4200FBD6: pop ebx */ 6349 ebp = POP32_VAL(esp); /* 0x4200FBD7: pop ebp */ 6350 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4200FBD8: ret 4 */ 6351 RECOMP_REGS_OUT(); 6352 } 6353 6354 void sub_4200FBE0(void) { 6355 int _fpu_cmp = 0; 6356 uint32_t _cf = 0; 6357 int _df = 1; 6358 uint32_t _flag_k = FK_NONE; 6359 uint32_t _flag_a = 0, _flag_b = 0; 6360 uint32_t _itail_tgt = 0; 6361 RECOMP_REGS_LOCALS 6362 RECOMP_ENTER(0x4200FBE0u); 6363 6364 L_4200FBE0: 6365 RECOMP_ICALL(0x4200FBF0u); /* 0x4200FBE0: call 0x4200fbf0 */ /* not lifted */ 6366 RECOMP_FLAGS_IN(); 6367 goto L_4200FC00; /* 0x4200FBE5: jmp 0x4200fc00 */ 6368 L_4200FC00: 6369 PUSH32(esp, 0x4200FC10u); /* 0x4200FC00: push 0x4200fc10 */ 6370 RECOMP_ICALL(0x42016E07u); /* 0x4200FC05: call 0x42016e07 */ /* not lifted */ 6371 RECOMP_FLAGS_IN(); 6372 ecx = POP32_VAL(esp); /* 0x4200FC0A: pop ecx */ 6373 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200FC0B: ret */ 6374 RECOMP_REGS_OUT(); 6375 } 6376 6377 void sub_4200FBF0(void) { 6378 int _fpu_cmp = 0; 6379 uint32_t _cf = 0; 6380 int _df = 1; 6381 uint32_t _flag_k = FK_NONE; 6382 uint32_t _flag_a = 0, _flag_b = 0; 6383 uint32_t _itail_tgt = 0; 6384 RECOMP_REGS_LOCALS 6385 RECOMP_ENTER(0x4200FBF0u); 6386 6387 L_4200FBF0: 6388 ecx = 0x4202324Du; /* 0x4200FBF0: mov ecx, 0x4202324d */ 6389 L_4200FBF5: 6390 { _itail_tgt = (uint32_t)(MEM32(0x42018014)); goto _ljump; } 6391 { RECOMP_REGS_OUT(); return; } /* end of function */ 6392 _ljump: 6393 switch (_itail_tgt) { 6394 case 0x4200FBF0u: goto L_4200FBF0; 6395 case 0x4200FBF5u: goto L_4200FBF5; 6396 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 6397 } 6398 RECOMP_REGS_OUT(); 6399 } 6400 6401 void sub_4200FC00(void) { 6402 int _fpu_cmp = 0; 6403 uint32_t _cf = 0; 6404 int _df = 1; 6405 uint32_t _flag_k = FK_NONE; 6406 uint32_t _flag_a = 0, _flag_b = 0; 6407 uint32_t _itail_tgt = 0; 6408 RECOMP_REGS_LOCALS 6409 RECOMP_ENTER(0x4200FC00u); 6410 6411 L_4200FC00: 6412 PUSH32(esp, 0x4200FC10u); /* 0x4200FC00: push 0x4200fc10 */ 6413 RECOMP_ICALL(0x42016E07u); /* 0x4200FC05: call 0x42016e07 */ /* not lifted */ 6414 RECOMP_FLAGS_IN(); 6415 ecx = POP32_VAL(esp); /* 0x4200FC0A: pop ecx */ 6416 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200FC0B: ret */ 6417 RECOMP_REGS_OUT(); 6418 } 6419 6420 void sub_4200FC10(void) { 6421 int _fpu_cmp = 0; 6422 uint32_t _cf = 0; 6423 int _df = 1; 6424 uint32_t _flag_k = FK_NONE; 6425 uint32_t _flag_a = 0, _flag_b = 0; 6426 uint32_t _itail_tgt = 0; 6427 RECOMP_REGS_LOCALS 6428 RECOMP_ENTER(0x4200FC10u); 6429 6430 L_4200FC10: 6431 ecx = 0x4202324Du; /* 0x4200FC10: mov ecx, 0x4202324d */ 6432 L_4200FC15: 6433 { _itail_tgt = (uint32_t)(MEM32(0x42018010)); goto _ljump; } 6434 { RECOMP_REGS_OUT(); return; } /* end of function */ 6435 _ljump: 6436 switch (_itail_tgt) { 6437 case 0x4200FC10u: goto L_4200FC10; 6438 case 0x4200FC15u: goto L_4200FC15; 6439 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 6440 } 6441 RECOMP_REGS_OUT(); 6442 } 6443 6444 void sub_4200FC20(void) { 6445 int _fpu_cmp = 0; 6446 uint32_t _cf = 0; 6447 int _df = 1; 6448 uint32_t _flag_k = FK_NONE; 6449 uint32_t _flag_a = 0, _flag_b = 0; 6450 uint32_t _itail_tgt = 0; 6451 RECOMP_REGS_LOCALS 6452 RECOMP_ENTER(0x4200FC20u); 6453 6454 L_4200FC20: 6455 RECOMP_ICALL(0x4200FC30u); /* 0x4200FC20: call 0x4200fc30 */ /* not lifted */ 6456 RECOMP_FLAGS_IN(); 6457 goto L_4200FC40; /* 0x4200FC25: jmp 0x4200fc40 */ 6458 L_4200FC40: 6459 PUSH32(esp, 0x4200FC50u); /* 0x4200FC40: push 0x4200fc50 */ 6460 RECOMP_ICALL(0x42016E07u); /* 0x4200FC45: call 0x42016e07 */ /* not lifted */ 6461 RECOMP_FLAGS_IN(); 6462 ecx = POP32_VAL(esp); /* 0x4200FC4A: pop ecx */ 6463 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200FC4B: ret */ 6464 RECOMP_REGS_OUT(); 6465 } 6466 6467 void sub_4200FC30(void) { 6468 int _fpu_cmp = 0; 6469 uint32_t _cf = 0; 6470 int _df = 1; 6471 uint32_t _flag_k = FK_NONE; 6472 uint32_t _flag_a = 0, _flag_b = 0; 6473 uint32_t _itail_tgt = 0; 6474 RECOMP_REGS_LOCALS 6475 RECOMP_ENTER(0x4200FC30u); 6476 6477 L_4200FC30: 6478 ecx = 0x4202324Cu; /* 0x4200FC30: mov ecx, 0x4202324c */ 6479 L_4200FC35: 6480 { _itail_tgt = (uint32_t)(MEM32(0x42018008)); goto _ljump; } 6481 { RECOMP_REGS_OUT(); return; } /* end of function */ 6482 _ljump: 6483 switch (_itail_tgt) { 6484 case 0x4200FC30u: goto L_4200FC30; 6485 case 0x4200FC35u: goto L_4200FC35; 6486 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 6487 } 6488 RECOMP_REGS_OUT(); 6489 } 6490 6491 void sub_4200FC40(void) { 6492 int _fpu_cmp = 0; 6493 uint32_t _cf = 0; 6494 int _df = 1; 6495 uint32_t _flag_k = FK_NONE; 6496 uint32_t _flag_a = 0, _flag_b = 0; 6497 uint32_t _itail_tgt = 0; 6498 RECOMP_REGS_LOCALS 6499 RECOMP_ENTER(0x4200FC40u); 6500 6501 L_4200FC40: 6502 PUSH32(esp, 0x4200FC50u); /* 0x4200FC40: push 0x4200fc50 */ 6503 RECOMP_ICALL(0x42016E07u); /* 0x4200FC45: call 0x42016e07 */ /* not lifted */ 6504 RECOMP_FLAGS_IN(); 6505 ecx = POP32_VAL(esp); /* 0x4200FC4A: pop ecx */ 6506 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200FC4B: ret */ 6507 RECOMP_REGS_OUT(); 6508 } 6509 6510 void sub_4200FC50(void) { 6511 int _fpu_cmp = 0; 6512 uint32_t _cf = 0; 6513 int _df = 1; 6514 uint32_t _flag_k = FK_NONE; 6515 uint32_t _flag_a = 0, _flag_b = 0; 6516 uint32_t _itail_tgt = 0; 6517 RECOMP_REGS_LOCALS 6518 RECOMP_ENTER(0x4200FC50u); 6519 6520 L_4200FC50: 6521 ecx = 0x4202324Cu; /* 0x4200FC50: mov ecx, 0x4202324c */ 6522 L_4200FC55: 6523 { _itail_tgt = (uint32_t)(MEM32(0x4201800C)); goto _ljump; } 6524 { RECOMP_REGS_OUT(); return; } /* end of function */ 6525 _ljump: 6526 switch (_itail_tgt) { 6527 case 0x4200FC50u: goto L_4200FC50; 6528 case 0x4200FC55u: goto L_4200FC55; 6529 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 6530 } 6531 RECOMP_REGS_OUT(); 6532 } 6533 6534 void sub_4200FC60(void) { 6535 int _fpu_cmp = 0; 6536 uint32_t _cf = 0; 6537 int _df = 1; 6538 uint32_t _flag_k = FK_NONE; 6539 uint32_t _flag_a = 0, _flag_b = 0; 6540 uint32_t _itail_tgt = 0; 6541 RECOMP_REGS_LOCALS 6542 RECOMP_ENTER(0x4200FC60u); 6543 6544 L_4200FC60: 6545 eax = ecx; /* 0x4200FC60: mov eax, ecx */ 6546 MEM32(eax) = 0x420185B4u; /* 0x4200FC62: mov dword ptr [eax], 0x420185b4 */ 6547 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4200FC68: ret 4 */ 6548 RECOMP_REGS_OUT(); 6549 } 6550 6551 void sub_4200FC70(void) { 6552 int _fpu_cmp = 0; 6553 uint32_t _cf = 0; 6554 int _df = 1; 6555 uint32_t _flag_k = FK_NONE; 6556 uint32_t _flag_a = 0, _flag_b = 0; 6557 uint32_t _itail_tgt = 0; 6558 RECOMP_REGS_LOCALS 6559 RECOMP_ENTER(0x4200FC70u); 6560 6561 L_4200FC70: 6562 goto L_4200FC80; /* 0x4200FC70: jmp 0x4200fc80 */ 6563 L_4200FC80: 6564 PUSH32(esp, ebp); /* 0x4200FC80: push ebp */ 6565 ebp = esp; /* 0x4200FC81: mov ebp, esp */ 6566 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6567 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6568 esp = esp - 0xCu; /* 0x4200FC83: sub esp, 0xc */ 6569 _flag_k = FK_CMP; 6570 MEM32(ebp + (-0xC)) = 0; /* 0x4200FC86: mov dword ptr [ebp - 0xc], 0 */ 6571 eax = MEM32(ebp + (-0xC)); /* 0x4200FC8D: mov eax, dword ptr [ebp - 0xc] */ 6572 MEM32(ebp + (-0x8)) = 0; /* 0x4200FC90: mov dword ptr [ebp - 8], 0 */ 6573 ecx = MEM32(ebp + (-0x8)); /* 0x4200FC97: mov ecx, dword ptr [ebp - 8] */ 6574 MEM32(ebp + (-0x4)) = 0x3F800000u; /* 0x4200FC9A: mov dword ptr [ebp - 4], 0x3f800000 */ 6575 edx = MEM32(ebp + (-0x4)); /* 0x4200FCA1: mov edx, dword ptr [ebp - 4] */ 6576 MEM32(0x42023218) = eax; /* 0x4200FCA4: mov dword ptr [0x42023218], eax */ 6577 MEM32(0x4202321C) = ecx; /* 0x4200FCA9: mov dword ptr [0x4202321c], ecx */ 6578 MEM32(0x42023220) = edx; /* 0x4200FCAF: mov dword ptr [0x42023220], edx */ 6579 esp = ebp; /* 0x4200FCB5: mov esp, ebp */ 6580 ebp = POP32_VAL(esp); /* 0x4200FCB7: pop ebp */ 6581 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200FCB8: ret */ 6582 RECOMP_REGS_OUT(); 6583 } 6584 6585 void sub_4200FC80(void) { 6586 int _fpu_cmp = 0; 6587 uint32_t _cf = 0; 6588 int _df = 1; 6589 uint32_t _flag_k = FK_NONE; 6590 uint32_t _flag_a = 0, _flag_b = 0; 6591 uint32_t _itail_tgt = 0; 6592 RECOMP_REGS_LOCALS 6593 RECOMP_ENTER(0x4200FC80u); 6594 6595 L_4200FC80: 6596 PUSH32(esp, ebp); /* 0x4200FC80: push ebp */ 6597 ebp = esp; /* 0x4200FC81: mov ebp, esp */ 6598 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6599 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6600 esp = esp - 0xCu; /* 0x4200FC83: sub esp, 0xc */ 6601 _flag_k = FK_CMP; 6602 MEM32(ebp + (-0xC)) = 0; /* 0x4200FC86: mov dword ptr [ebp - 0xc], 0 */ 6603 eax = MEM32(ebp + (-0xC)); /* 0x4200FC8D: mov eax, dword ptr [ebp - 0xc] */ 6604 MEM32(ebp + (-0x8)) = 0; /* 0x4200FC90: mov dword ptr [ebp - 8], 0 */ 6605 ecx = MEM32(ebp + (-0x8)); /* 0x4200FC97: mov ecx, dword ptr [ebp - 8] */ 6606 MEM32(ebp + (-0x4)) = 0x3F800000u; /* 0x4200FC9A: mov dword ptr [ebp - 4], 0x3f800000 */ 6607 edx = MEM32(ebp + (-0x4)); /* 0x4200FCA1: mov edx, dword ptr [ebp - 4] */ 6608 MEM32(0x42023218) = eax; /* 0x4200FCA4: mov dword ptr [0x42023218], eax */ 6609 MEM32(0x4202321C) = ecx; /* 0x4200FCA9: mov dword ptr [0x4202321c], ecx */ 6610 MEM32(0x42023220) = edx; /* 0x4200FCAF: mov dword ptr [0x42023220], edx */ 6611 esp = ebp; /* 0x4200FCB5: mov esp, ebp */ 6612 ebp = POP32_VAL(esp); /* 0x4200FCB7: pop ebp */ 6613 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200FCB8: ret */ 6614 RECOMP_REGS_OUT(); 6615 } 6616 6617 void sub_4200FCC0(void) { 6618 int _fpu_cmp = 0; 6619 uint32_t _cf = 0; 6620 int _df = 1; 6621 uint32_t _flag_k = FK_NONE; 6622 uint32_t _flag_a = 0, _flag_b = 0; 6623 uint32_t _itail_tgt = 0; 6624 RECOMP_REGS_LOCALS 6625 RECOMP_ENTER(0x4200FCC0u); 6626 6627 L_4200FCC0: 6628 goto L_4200FCD0; /* 0x4200FCC0: jmp 0x4200fcd0 */ 6629 L_4200FCD0: 6630 PUSH32(esp, ebp); /* 0x4200FCD0: push ebp */ 6631 ebp = esp; /* 0x4200FCD1: mov ebp, esp */ 6632 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6633 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6634 esp = esp - 0xCu; /* 0x4200FCD3: sub esp, 0xc */ 6635 _flag_k = FK_CMP; 6636 MEM32(ebp + (-0xC)) = 0; /* 0x4200FCD6: mov dword ptr [ebp - 0xc], 0 */ 6637 eax = MEM32(ebp + (-0xC)); /* 0x4200FCDD: mov eax, dword ptr [ebp - 0xc] */ 6638 MEM32(ebp + (-0x8)) = 0x3F800000u; /* 0x4200FCE0: mov dword ptr [ebp - 8], 0x3f800000 */ 6639 ecx = MEM32(ebp + (-0x8)); /* 0x4200FCE7: mov ecx, dword ptr [ebp - 8] */ 6640 MEM32(ebp + (-0x4)) = 0; /* 0x4200FCEA: mov dword ptr [ebp - 4], 0 */ 6641 edx = MEM32(ebp + (-0x4)); /* 0x4200FCF1: mov edx, dword ptr [ebp - 4] */ 6642 MEM32(0x42023258) = eax; /* 0x4200FCF4: mov dword ptr [0x42023258], eax */ 6643 MEM32(0x4202325C) = ecx; /* 0x4200FCF9: mov dword ptr [0x4202325c], ecx */ 6644 MEM32(0x42023260) = edx; /* 0x4200FCFF: mov dword ptr [0x42023260], edx */ 6645 esp = ebp; /* 0x4200FD05: mov esp, ebp */ 6646 ebp = POP32_VAL(esp); /* 0x4200FD07: pop ebp */ 6647 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200FD08: ret */ 6648 RECOMP_REGS_OUT(); 6649 } 6650 6651 void sub_4200FCD0(void) { 6652 int _fpu_cmp = 0; 6653 uint32_t _cf = 0; 6654 int _df = 1; 6655 uint32_t _flag_k = FK_NONE; 6656 uint32_t _flag_a = 0, _flag_b = 0; 6657 uint32_t _itail_tgt = 0; 6658 RECOMP_REGS_LOCALS 6659 RECOMP_ENTER(0x4200FCD0u); 6660 6661 L_4200FCD0: 6662 PUSH32(esp, ebp); /* 0x4200FCD0: push ebp */ 6663 ebp = esp; /* 0x4200FCD1: mov ebp, esp */ 6664 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6665 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6666 esp = esp - 0xCu; /* 0x4200FCD3: sub esp, 0xc */ 6667 _flag_k = FK_CMP; 6668 MEM32(ebp + (-0xC)) = 0; /* 0x4200FCD6: mov dword ptr [ebp - 0xc], 0 */ 6669 eax = MEM32(ebp + (-0xC)); /* 0x4200FCDD: mov eax, dword ptr [ebp - 0xc] */ 6670 MEM32(ebp + (-0x8)) = 0x3F800000u; /* 0x4200FCE0: mov dword ptr [ebp - 8], 0x3f800000 */ 6671 ecx = MEM32(ebp + (-0x8)); /* 0x4200FCE7: mov ecx, dword ptr [ebp - 8] */ 6672 MEM32(ebp + (-0x4)) = 0; /* 0x4200FCEA: mov dword ptr [ebp - 4], 0 */ 6673 edx = MEM32(ebp + (-0x4)); /* 0x4200FCF1: mov edx, dword ptr [ebp - 4] */ 6674 MEM32(0x42023258) = eax; /* 0x4200FCF4: mov dword ptr [0x42023258], eax */ 6675 MEM32(0x4202325C) = ecx; /* 0x4200FCF9: mov dword ptr [0x4202325c], ecx */ 6676 MEM32(0x42023260) = edx; /* 0x4200FCFF: mov dword ptr [0x42023260], edx */ 6677 esp = ebp; /* 0x4200FD05: mov esp, ebp */ 6678 ebp = POP32_VAL(esp); /* 0x4200FD07: pop ebp */ 6679 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200FD08: ret */ 6680 RECOMP_REGS_OUT(); 6681 } 6682 6683 void sub_4200FD10(void) { 6684 int _fpu_cmp = 0; 6685 uint32_t _cf = 0; 6686 int _df = 1; 6687 uint32_t _flag_k = FK_NONE; 6688 uint32_t _flag_a = 0, _flag_b = 0; 6689 uint32_t _itail_tgt = 0; 6690 RECOMP_REGS_LOCALS 6691 RECOMP_ENTER(0x4200FD10u); 6692 6693 L_4200FD10: 6694 PUSH32(esp, ebp); /* 0x4200FD10: push ebp */ 6695 ebp = esp; /* 0x4200FD11: mov ebp, esp */ 6696 PUSH32(esp, ecx); /* 0x4200FD13: push ecx */ 6697 SET_LO8(ecx, MEM8(0x42023256)); /* 0x4200FD14: mov cl, byte ptr [0x42023256] */ 6698 SET_LO8(eax, 1); /* 0x4200FD1A: mov al, 1 */ 6699 /* test LO8(eax), LO8(ecx) */ /* 0x4200FD1C: test al, cl */ 6700 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 6701 _cf = 0; 6702 _flag_k = FK_NARROW(FK_TEST, 24); 6703 if (TEST_NZ(_flag_a, _flag_b)) goto L_4200FD44; /* 0x4200FD1E: jne 0x4200fd44 */ 6704 L_4200FD20: 6705 _flag_a = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; 6706 SET_LO8(ecx, LO8(ecx) | LO8(eax)); /* 0x4200FD20: or cl, al */ 6707 _cf = 0; 6708 _flag_k = FK_NARROW(FK_TEST, 24); 6709 MEM8(0x42023256) = (uint8_t)(LO8(ecx)); /* 0x4200FD22: mov byte ptr [0x42023256], cl */ 6710 PUSH32(esp, 0x42023268u); /* 0x4200FD28: push 0x42023268 */ 6711 ecx = 0x42023250u; /* 0x4200FD2D: mov ecx, 0x42023250 */ 6712 RECOMP_ICALL(0x4200FDD0u); /* 0x4200FD32: call 0x4200fdd0 */ /* not lifted */ 6713 RECOMP_FLAGS_IN(); 6714 PUSH32(esp, 0x4200FDF0u); /* 0x4200FD37: push 0x4200fdf0 */ 6715 RECOMP_ICALL(0x42016E07u); /* 0x4200FD3C: call 0x42016e07 */ /* not lifted */ 6716 RECOMP_FLAGS_IN(); 6717 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6718 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6719 esp = esp + 4; /* 0x4200FD41: add esp, 4 */ 6720 _flag_k = FK_ADD; 6721 L_4200FD44: 6722 ecx = MEM32(0x42023268); /* 0x4200FD44: mov ecx, dword ptr [0x42023268] */ 6723 /* test ecx, ecx */ /* 0x4200FD4A: test ecx, ecx */ 6724 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6725 _cf = 0; 6726 _flag_k = FK_TEST; 6727 if (TEST_Z(_flag_a, _flag_b)) goto L_4200FD65; /* 0x4200FD4C: je 0x4200fd65 */ 6728 L_4200FD4E: 6729 eax = MEM32(0x4202326C); /* 0x4200FD4E: mov eax, dword ptr [0x4202326c] */ 6730 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6731 eax = eax + 1; /* 0x4200FD53: inc eax */ 6732 _flag_k = FK_INC; 6733 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x3FFu); 6734 eax = eax & 0x3FFu; /* 0x4200FD54: and eax, 0x3ff */ 6735 _cf = 0; 6736 _flag_k = FK_TEST; 6737 MEM32(0x4202326C) = eax; /* 0x4200FD59: mov dword ptr [0x4202326c], eax */ 6738 fp_push(*(float*)&MEM32(ecx + eax * 4)); /* 0x4200FD5E: fld dword ptr [ecx + eax*4] */ 6739 esp = ebp; /* 0x4200FD61: mov esp, ebp */ 6740 ebp = POP32_VAL(esp); /* 0x4200FD63: pop ebp */ 6741 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200FD64: ret */ 6742 L_4200FD65: 6743 PUSH32(esp, esi); /* 0x4200FD65: push esi */ 6744 PUSH32(esp, 0x1000u); /* 0x4200FD66: push 0x1000 */ 6745 RECOMP_ICALL(0x42016F36u); /* 0x4200FD6B: call 0x42016f36 */ /* not lifted */ 6746 RECOMP_FLAGS_IN(); 6747 ecx = eax + 0xFFC; /* 0x4200FD70: lea ecx, [eax + 0xffc] */ 6748 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6749 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6750 esp = esp + 4; /* 0x4200FD76: add esp, 4 */ 6751 _flag_k = FK_ADD; 6752 /* cmp eax, ecx */ /* 0x4200FD79: cmp eax, ecx */ 6753 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6754 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6755 _flag_k = FK_CMP; 6756 MEM32(0x42023268) = eax; /* 0x4200FD7B: mov dword ptr [0x42023268], eax */ 6757 esi = eax; /* 0x4200FD80: mov esi, eax */ 6758 if (CMP_AE(_flag_a, _flag_b)) goto L_4200FDAF; /* 0x4200FD82: jae 0x4200fdaf */ 6759 L_4200FD84: 6760 PUSH32(esp, edi); /* 0x4200FD84: push edi */ 6761 edi = MEM32(0x42018044); /* 0x4200FD85: mov edi, dword ptr [0x42018044] */ 6762 L_4200FD8B: 6763 RECOMP_ICALL(edi); /* 0x4200FD8B: call edi */ 6764 RECOMP_FLAGS_IN(); 6765 MEM32(ebp + (-0x4)) = eax; /* 0x4200FD8D: mov dword ptr [ebp - 4], eax */ 6766 fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x4200FD90: fild dword ptr [ebp - 4] */ 6767 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 6768 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6769 esi = esi + 4; /* 0x4200FD93: add esi, 4 */ 6770 _flag_k = FK_ADD; 6771 _st[0] *= (double)*(float*)ADDR(0x420185C8); /* 0x4200FD96: fmul dword ptr [0x420185c8] */ 6772 { float _v = (float)fp_pop(); *(float*)ADDR(esi + (-0x4)) = _v; } /* 0x4200FD9C: fstp dword ptr [esi - 4] */ 6773 eax = MEM32(0x42023268); /* 0x4200FD9F: mov eax, dword ptr [0x42023268] */ 6774 edx = eax + 0xFFC; /* 0x4200FDA4: lea edx, [eax + 0xffc] */ 6775 /* cmp esi, edx */ /* 0x4200FDAA: cmp esi, edx */ 6776 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 6777 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6778 _flag_k = FK_CMP; 6779 RECOMP_BACKEDGE(); 6780 if (CMP_B(_flag_a, _flag_b)) goto L_4200FD8B; /* 0x4200FDAC: jb 0x4200fd8b */ 6781 L_4200FDAE: 6782 edi = POP32_VAL(esp); /* 0x4200FDAE: pop edi */ 6783 L_4200FDAF: 6784 ecx = MEM32(0x4202326C); /* 0x4200FDAF: mov ecx, dword ptr [0x4202326c] */ 6785 fp_push(*(float*)&MEM32(eax + ecx * 4)); /* 0x4200FDB5: fld dword ptr [eax + ecx*4] */ 6786 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6787 ecx = ecx + 1; /* 0x4200FDB8: inc ecx */ 6788 _flag_k = FK_INC; 6789 MEM32(0x4202326C) = ecx; /* 0x4200FDB9: mov dword ptr [0x4202326c], ecx */ 6790 esi = POP32_VAL(esp); /* 0x4200FDBF: pop esi */ 6791 esp = ebp; /* 0x4200FDC0: mov esp, ebp */ 6792 ebp = POP32_VAL(esp); /* 0x4200FDC2: pop ebp */ 6793 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200FDC3: ret */ 6794 RECOMP_REGS_OUT(); 6795 } 6796 6797 void sub_4200FDD0(void) { 6798 int _fpu_cmp = 0; 6799 uint32_t _cf = 0; 6800 int _df = 1; 6801 uint32_t _flag_k = FK_NONE; 6802 uint32_t _flag_a = 0, _flag_b = 0; 6803 uint32_t _itail_tgt = 0; 6804 RECOMP_REGS_LOCALS 6805 RECOMP_ENTER(0x4200FDD0u); 6806 6807 L_4200FDD0: 6808 PUSH32(esp, ebp); /* 0x4200FDD0: push ebp */ 6809 ebp = esp; /* 0x4200FDD1: mov ebp, esp */ 6810 eax = ecx; /* 0x4200FDD3: mov eax, ecx */ 6811 ecx = MEM32(ebp + 0x8); /* 0x4200FDD5: mov ecx, dword ptr [ebp + 8] */ 6812 MEM32(eax) = ecx; /* 0x4200FDD8: mov dword ptr [eax], ecx */ 6813 ebp = POP32_VAL(esp); /* 0x4200FDDA: pop ebp */ 6814 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4200FDDB: ret 4 */ 6815 RECOMP_REGS_OUT(); 6816 } 6817 6818 void sub_4200FDE0(void) { 6819 int _fpu_cmp = 0; 6820 uint32_t _cf = 0; 6821 int _df = 1; 6822 uint32_t _flag_k = FK_NONE; 6823 uint32_t _flag_a = 0, _flag_b = 0; 6824 uint32_t _itail_tgt = 0; 6825 RECOMP_REGS_LOCALS 6826 RECOMP_ENTER(0x4200FDE0u); 6827 6828 L_4200FDE0: 6829 eax = MEM32(ecx); /* 0x4200FDE0: mov eax, dword ptr [ecx] */ 6830 ecx = MEM32(eax); /* 0x4200FDE2: mov ecx, dword ptr [eax] */ 6831 PUSH32(esp, ecx); /* 0x4200FDE4: push ecx */ 6832 RECOMP_ICALL(0x42016DD0u); /* 0x4200FDE5: call 0x42016dd0 */ /* not lifted */ 6833 RECOMP_FLAGS_IN(); 6834 ecx = POP32_VAL(esp); /* 0x4200FDEA: pop ecx */ 6835 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200FDEB: ret */ 6836 RECOMP_REGS_OUT(); 6837 } 6838 6839 void sub_4200FDF0(void) { 6840 int _fpu_cmp = 0; 6841 uint32_t _cf = 0; 6842 int _df = 1; 6843 uint32_t _flag_k = FK_NONE; 6844 uint32_t _flag_a = 0, _flag_b = 0; 6845 uint32_t _itail_tgt = 0; 6846 RECOMP_REGS_LOCALS 6847 RECOMP_ENTER(0x4200FDF0u); 6848 6849 goto L_4200FDF0; 6850 L_4200FDE0: 6851 eax = MEM32(ecx); /* 0x4200FDE0: mov eax, dword ptr [ecx] */ 6852 ecx = MEM32(eax); /* 0x4200FDE2: mov ecx, dword ptr [eax] */ 6853 PUSH32(esp, ecx); /* 0x4200FDE4: push ecx */ 6854 RECOMP_ICALL(0x42016DD0u); /* 0x4200FDE5: call 0x42016dd0 */ /* not lifted */ 6855 RECOMP_FLAGS_IN(); 6856 ecx = POP32_VAL(esp); /* 0x4200FDEA: pop ecx */ 6857 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200FDEB: ret */ 6858 L_4200FDF0: 6859 ecx = 0x42023250u; /* 0x4200FDF0: mov ecx, 0x42023250 */ 6860 RECOMP_BACKEDGE(); 6861 goto L_4200FDE0; /* 0x4200FDF5: jmp 0x4200fde0 */ 6862 { RECOMP_REGS_OUT(); return; } /* end of function */ 6863 RECOMP_REGS_OUT(); 6864 } 6865 6866 void sub_4200FE00(void) { 6867 int _fpu_cmp = 0; 6868 uint32_t _cf = 0; 6869 int _df = 1; 6870 uint32_t _flag_k = FK_NONE; 6871 uint32_t _flag_a = 0, _flag_b = 0; 6872 uint32_t _itail_tgt = 0; 6873 RECOMP_REGS_LOCALS 6874 RECOMP_ENTER(0x4200FE00u); 6875 6876 L_4200FE00: 6877 PUSH32(esp, ebp); /* 0x4200FE00: push ebp */ 6878 ebp = esp; /* 0x4200FE01: mov ebp, esp */ 6879 PUSH32(esp, 0xFFFFFFFFu); /* 0x4200FE03: push -1 */ 6880 PUSH32(esp, 0x42017729u); /* 0x4200FE05: push 0x42017729 */ 6881 eax = MEM32(FS_BASE + (0)); /* 0x4200FE0A: mov eax, dword ptr fs:[0] */ 6882 PUSH32(esp, eax); /* 0x4200FE10: push eax */ 6883 MEM32(FS_BASE + (0)) = esp; /* 0x4200FE11: mov dword ptr fs:[0], esp */ 6884 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x50u); 6885 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6886 esp = esp - 0x50u; /* 0x4200FE18: sub esp, 0x50 */ 6887 _flag_k = FK_CMP; 6888 edx = MEM32(ebp + 0x10); /* 0x4200FE1B: mov edx, dword ptr [ebp + 0x10] */ 6889 eax = edx; /* 0x4200FE1E: mov eax, edx */ 6890 ecx = MEM32(eax); /* 0x4200FE20: mov ecx, dword ptr [eax] */ 6891 MEM32(ebp + (-0x18)) = ecx; /* 0x4200FE22: mov dword ptr [ebp - 0x18], ecx */ 6892 ecx = MEM32(eax + 0x4); /* 0x4200FE25: mov ecx, dword ptr [eax + 4] */ 6893 eax = MEM32(eax + 0x8); /* 0x4200FE28: mov eax, dword ptr [eax + 8] */ 6894 MEM32(ebp + (-0x14)) = ecx; /* 0x4200FE2B: mov dword ptr [ebp - 0x14], ecx */ 6895 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x4200FE2E: fld dword ptr [ebp - 0x14] */ 6896 ecx = MEM32(ebp + 0xC); /* 0x4200FE31: mov ecx, dword ptr [ebp + 0xc] */ 6897 _st[0] *= (double)*(float*)ADDR(ecx + 0x8); /* 0x4200FE34: fmul dword ptr [ecx + 8] */ 6898 MEM32(ebp + (-0x10)) = eax; /* 0x4200FE37: mov dword ptr [ebp - 0x10], eax */ 6899 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x4200FE3A: fld dword ptr [ebp - 0x10] */ 6900 PUSH32(esp, esi); /* 0x4200FE3D: push esi */ 6901 _st[0] *= (double)*(float*)ADDR(ecx + 0x4); /* 0x4200FE3E: fmul dword ptr [ecx + 4] */ 6902 esi = MEM32(ebp + 0x8); /* 0x4200FE41: mov esi, dword ptr [ebp + 8] */ 6903 { double _v = fp_pop(); _st[0] -= _v; } /* 0x4200FE44: fsubp st(1) */ 6904 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x10) = _v; } /* 0x4200FE46: fstp dword ptr [ebp + 0x10] */ 6905 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x4200FE49: fld dword ptr [ebp - 0x10] */ 6906 _st[0] *= (double)*(float*)ADDR(ecx); /* 0x4200FE4C: fmul dword ptr [ecx] */ 6907 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x4200FE4E: fld dword ptr [ebp - 0x18] */ 6908 _st[0] *= (double)*(float*)ADDR(ecx + 0x8); /* 0x4200FE51: fmul dword ptr [ecx + 8] */ 6909 { double _v = fp_pop(); _st[0] -= _v; } /* 0x4200FE54: fsubp st(1) */ 6910 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x4200FE56: fstp dword ptr [ebp + 0xc] */ 6911 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x4200FE59: fld dword ptr [ebp - 0x18] */ 6912 _st[0] *= (double)*(float*)ADDR(ecx + 0x4); /* 0x4200FE5C: fmul dword ptr [ecx + 4] */ 6913 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x4200FE5F: fld dword ptr [ebp - 0x14] */ 6914 _st[0] *= (double)*(float*)ADDR(ecx); /* 0x4200FE62: fmul dword ptr [ecx] */ 6915 { double _v = fp_pop(); _st[0] -= _v; } /* 0x4200FE64: fsubp st(1) */ 6916 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x4200FE66: fstp dword ptr [ebp - 0x10] */ 6917 fp_push(*(float*)&MEM32(ebp + 0x10)); /* 0x4200FE69: fld dword ptr [ebp + 0x10] */ 6918 _st[0] += (double)*(float*)ADDR(ecx + 0x8); /* 0x4200FE6C: fadd dword ptr [ecx + 8] */ 6919 _st[0] += (double)*(float*)ADDR(edx + 0x4); /* 0x4200FE6F: fadd dword ptr [edx + 4] */ 6920 _st[0] += (double)*(float*)ADDR(0x42018118); /* 0x4200FE72: fadd dword ptr [0x42018118] */ 6921 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0xC) = _v; } /* 0x4200FE78: fstp dword ptr [esi + 0xc] */ 6922 fp_push(*(float*)&MEM32(edx + 0x8)); /* 0x4200FE7B: fld dword ptr [edx + 8] */ 6923 _st[0] -= (double)*(float*)ADDR(ecx + 0x4); /* 0x4200FE7E: fsub dword ptr [ecx + 4] */ 6924 { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x4200FE81: fstp dword ptr [esi] */ 6925 fp_push(*(float*)&MEM32(ecx)); /* 0x4200FE83: fld dword ptr [ecx] */ 6926 _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x4200FE85: fsub dword ptr [ebp - 0x10] */ 6927 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x4200FE88: fstp dword ptr [esi + 4] */ 6928 fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x4200FE8B: fld dword ptr [ebp + 0xc] */ 6929 _st[0] -= (double)*(float*)ADDR(edx); /* 0x4200FE8E: fsub dword ptr [edx] */ 6930 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x8) = _v; } /* 0x4200FE90: fst dword ptr [esi + 8] */ 6931 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x4200FE93: fld dword ptr [esi + 0xc] */ 6932 fp_push(*(float*)&MEM32(esi + 0x4)); /* 0x4200FE96: fld dword ptr [esi + 4] */ 6933 fp_push(*(float*)&MEM32(esi)); /* 0x4200FE99: fld dword ptr [esi] */ 6934 fp_push(_st[0]); /* 0x4200FE9B: fld st(0) */ 6935 _st[0] *= _st[1]; /* 0x4200FE9D: fmul st(1) */ 6936 fp_push(_st[2]); /* 0x4200FE9F: fld st(2) */ 6937 _st[0] *= _st[3]; /* 0x4200FEA1: fmul st(3) */ 6938 { double _v = fp_pop(); _st[0] += _v; } /* 0x4200FEA3: faddp st(1) */ 6939 fp_push(_st[3]); /* 0x4200FEA5: fld st(3) */ 6940 _st[0] *= _st[4]; /* 0x4200FEA7: fmul st(4) */ 6941 { double _v = fp_pop(); _st[0] += _v; } /* 0x4200FEA9: faddp st(1) */ 6942 fp_push(_st[4]); /* 0x4200FEAB: fld st(4) */ 6943 _st[0] *= _st[5]; /* 0x4200FEAD: fmul st(5) */ 6944 { double _v = fp_pop(); _st[0] += _v; } /* 0x4200FEAF: faddp st(1) */ 6945 { _st[4] = _st[0]; g_st_i64[4] = g_st_i64[0]; fp_pop(); } /* 0x4200FEB1: fstp st(4) */ 6946 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x4200FEB3: fstp st(0) */ 6947 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x4200FEB5: fstp st(0) */ 6948 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x4200FEB7: fstp st(0) */ 6949 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x420185D0)); /* 0x4200FEB9: fcom qword ptr [0x420185d0] */ 6950 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4200FEBF: fnstsw ax */ 6951 /* test HI8(eax), 0x41u */ /* 0x4200FEC1: test ah, 0x41 */ 6952 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 6953 _cf = 0; 6954 _flag_k = FK_NARROW(FK_TEST, 24); 6955 if (TEST_NZ(_flag_a, _flag_b)) goto L_4200FEF7; /* 0x4200FEC4: jne 0x4200fef7 */ 6956 L_4200FEC6: 6957 _st[0] = sqrt(_st[0]); /* 0x4200FEC6: fsqrt */ 6958 fp_push(*(float*)&MEM32(esi)); /* 0x4200FEC8: fld dword ptr [esi] */ 6959 _st[0] /= _st[1]; /* 0x4200FECA: fdiv st(1) */ 6960 { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x4200FECC: fstp dword ptr [esi] */ 6961 fp_push(*(float*)&MEM32(esi + 0x4)); /* 0x4200FECE: fld dword ptr [esi + 4] */ 6962 _st[0] /= _st[1]; /* 0x4200FED1: fdiv st(1) */ 6963 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x4200FED3: fstp dword ptr [esi + 4] */ 6964 fp_push(*(float*)&MEM32(esi + 0x8)); /* 0x4200FED6: fld dword ptr [esi + 8] */ 6965 _st[0] /= _st[1]; /* 0x4200FED9: fdiv st(1) */ 6966 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x4200FEDB: fstp dword ptr [esi + 8] */ 6967 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x4200FEDE: fld dword ptr [esi + 0xc] */ 6968 _st[0] /= _st[1]; /* 0x4200FEE1: fdiv st(1) */ 6969 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0xC) = _v; } /* 0x4200FEE3: fstp dword ptr [esi + 0xc] */ 6970 esi = POP32_VAL(esp); /* 0x4200FEE6: pop esi */ 6971 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x4200FEE7: fstp st(0) */ 6972 ecx = MEM32(ebp + (-0xC)); /* 0x4200FEE9: mov ecx, dword ptr [ebp - 0xc] */ 6973 MEM32(FS_BASE + (0)) = ecx; /* 0x4200FEEC: mov dword ptr fs:[0], ecx */ 6974 esp = ebp; /* 0x4200FEF3: mov esp, ebp */ 6975 ebp = POP32_VAL(esp); /* 0x4200FEF5: pop ebp */ 6976 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200FEF6: ret */ 6977 L_4200FEF7: 6978 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x4200FEF7: fstp st(0) */ 6979 eax = MEM32(ebp + (-0x10)); /* 0x4200FEF9: mov eax, dword ptr [ebp - 0x10] */ 6980 fp_push(*(float*)&MEM32(ecx + 0x8)); /* 0x4200FEFC: fld dword ptr [ecx + 8] */ 6981 MEM32(ebp + (-0x54)) = eax; /* 0x4200FEFF: mov dword ptr [ebp - 0x54], eax */ 6982 fp_push(*(float*)&MEM32(ecx + 0x4)); /* 0x4200FF02: fld dword ptr [ecx + 4] */ 6983 MEM32(ebp + (-0x50)) = 0; /* 0x4200FF05: mov dword ptr [ebp - 0x50], 0 */ 6984 fp_push(*(float*)&MEM32(ecx)); /* 0x4200FF0C: fld dword ptr [ecx] */ 6985 ecx = MEM32(ebp + 0x10); /* 0x4200FF0E: mov ecx, dword ptr [ebp + 0x10] */ 6986 fp_push(*(float*)&MEM32(edx + 0x8)); /* 0x4200FF11: fld dword ptr [edx + 8] */ 6987 MEM32(ebp + (-0x5C)) = ecx; /* 0x4200FF14: mov dword ptr [ebp - 0x5c], ecx */ 6988 fp_push(*(float*)&MEM32(edx + 0x4)); /* 0x4200FF17: fld dword ptr [edx + 4] */ 6989 MEM32(ebp + (-0x40)) = 0; /* 0x4200FF1A: mov dword ptr [ebp - 0x40], 0 */ 6990 fp_push(*(float*)&MEM32(edx)); /* 0x4200FF21: fld dword ptr [edx] */ 6991 edx = MEM32(ebp + 0xC); /* 0x4200FF23: mov edx, dword ptr [ebp + 0xc] */ 6992 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x4200FF26: fstp dword ptr [ebp - 0x4c] */ 6993 MEM32(ebp + (-0x58)) = edx; /* 0x4200FF29: mov dword ptr [ebp - 0x58], edx */ 6994 MEM32(ebp + (-0x30)) = 0; /* 0x4200FF2C: mov dword ptr [ebp - 0x30], 0 */ 6995 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x4200FF33: fstp dword ptr [ebp - 0x48] */ 6996 MEM32(ebp + (-0x2C)) = 0; /* 0x4200FF36: mov dword ptr [ebp - 0x2c], 0 */ 6997 MEM32(ebp + (-0x28)) = 0; /* 0x4200FF3D: mov dword ptr [ebp - 0x28], 0 */ 6998 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x4200FF44: fstp dword ptr [ebp - 0x44] */ 6999 MEM32(ebp + (-0x24)) = 0; /* 0x4200FF47: mov dword ptr [ebp - 0x24], 0 */ 7000 MEM32(ebp + (-0x20)) = 0x3F800000u; /* 0x4200FF4E: mov dword ptr [ebp - 0x20], 0x3f800000 */ 7001 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x4200FF55: fstp dword ptr [ebp - 0x3c] */ 7002 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x4200FF58: fstp dword ptr [ebp - 0x38] */ 7003 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x4200FF5B: fstp dword ptr [ebp - 0x34] */ 7004 ecx = ebp + (-0x5C); /* 0x4200FF5E: lea ecx, [ebp - 0x5c] */ 7005 PUSH32(esp, ecx); /* 0x4200FF61: push ecx */ 7006 ecx = ebp + (-0x1C); /* 0x4200FF62: lea ecx, [ebp - 0x1c] */ 7007 MEM32(ebp + (-0x4)) = 0; /* 0x4200FF65: mov dword ptr [ebp - 4], 0 */ 7008 RECOMP_ICALL(MEM32(0x42018078)); /* 0x4200FF6C: call dword ptr [0x42018078] */ 7009 RECOMP_FLAGS_IN(); 7010 edx = MEM32(eax); /* 0x4200FF72: mov edx, dword ptr [eax] */ 7011 MEM32(esi) = edx; /* 0x4200FF74: mov dword ptr [esi], edx */ 7012 ecx = MEM32(eax + 0x4); /* 0x4200FF76: mov ecx, dword ptr [eax + 4] */ 7013 MEM32(esi + 0x4) = ecx; /* 0x4200FF79: mov dword ptr [esi + 4], ecx */ 7014 edx = MEM32(eax + 0x8); /* 0x4200FF7C: mov edx, dword ptr [eax + 8] */ 7015 ecx = MEM32(ebp + (-0xC)); /* 0x4200FF7F: mov ecx, dword ptr [ebp - 0xc] */ 7016 MEM32(esi + 0x8) = edx; /* 0x4200FF82: mov dword ptr [esi + 8], edx */ 7017 eax = MEM32(eax + 0xC); /* 0x4200FF85: mov eax, dword ptr [eax + 0xc] */ 7018 MEM32(esi + 0xC) = eax; /* 0x4200FF88: mov dword ptr [esi + 0xc], eax */ 7019 esi = POP32_VAL(esp); /* 0x4200FF8B: pop esi */ 7020 MEM32(FS_BASE + (0)) = ecx; /* 0x4200FF8C: mov dword ptr fs:[0], ecx */ 7021 esp = ebp; /* 0x4200FF93: mov esp, ebp */ 7022 ebp = POP32_VAL(esp); /* 0x4200FF95: pop ebp */ 7023 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200FF96: ret */ 7024 RECOMP_REGS_OUT(); 7025 } 7026 7027 void sub_4200FFA0(void) { 7028 int _fpu_cmp = 0; 7029 uint32_t _cf = 0; 7030 int _df = 1; 7031 uint32_t _flag_k = FK_NONE; 7032 uint32_t _flag_a = 0, _flag_b = 0; 7033 uint32_t _itail_tgt = 0; 7034 RECOMP_REGS_LOCALS 7035 RECOMP_ENTER(0x4200FFA0u); 7036 7037 L_4200FFA0: 7038 PUSH32(esp, ebp); /* 0x4200FFA0: push ebp */ 7039 ebp = esp; /* 0x4200FFA1: mov ebp, esp */ 7040 PUSH32(esp, 0xFFFFFFFFu); /* 0x4200FFA3: push -1 */ 7041 PUSH32(esp, 0x42017756u); /* 0x4200FFA5: push 0x42017756 */ 7042 eax = MEM32(FS_BASE + (0)); /* 0x4200FFAA: mov eax, dword ptr fs:[0] */ 7043 PUSH32(esp, eax); /* 0x4200FFB0: push eax */ 7044 MEM32(FS_BASE + (0)) = esp; /* 0x4200FFB1: mov dword ptr fs:[0], esp */ 7045 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x2Cu); 7046 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7047 esp = esp - 0x2Cu; /* 0x4200FFB8: sub esp, 0x2c */ 7048 _flag_k = FK_CMP; 7049 PUSH32(esp, ebx); /* 0x4200FFBB: push ebx */ 7050 PUSH32(esp, esi); /* 0x4200FFBC: push esi */ 7051 esi = ecx; /* 0x4200FFBD: mov esi, ecx */ 7052 MEM32(ebp + (-0x10)) = esi; /* 0x4200FFBF: mov dword ptr [ebp - 0x10], esi */ 7053 RECOMP_ICALL(0x42006690u); /* 0x4200FFC2: call 0x42006690 */ /* not lifted */ 7054 RECOMP_FLAGS_IN(); 7055 MEM32(esi + 0x20) = 0x4201866Cu; /* 0x4200FFC7: mov dword ptr [esi + 0x20], 0x4201866c */ 7056 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7057 ebx = 0; /* 0x4200FFCE: xor ebx, ebx */ 7058 _cf = 0; 7059 _flag_k = FK_TEST; 7060 MEM8(esi + 0x24) = (uint8_t)(LO8(ebx)); /* 0x4200FFD0: mov byte ptr [esi + 0x24], bl */ 7061 MEM32(esi + 0x28) = ebx; /* 0x4200FFD3: mov dword ptr [esi + 0x28], ebx */ 7062 MEM32(esi + 0x2C) = ebx; /* 0x4200FFD6: mov dword ptr [esi + 0x2c], ebx */ 7063 MEM32(esi + 0x30) = ebx; /* 0x4200FFD9: mov dword ptr [esi + 0x30], ebx */ 7064 MEM32(esi + 0x34) = ebx; /* 0x4200FFDC: mov dword ptr [esi + 0x34], ebx */ 7065 MEM32(esi + 0x38) = ebx; /* 0x4200FFDF: mov dword ptr [esi + 0x38], ebx */ 7066 MEM32(esi + 0x3C) = ebx; /* 0x4200FFE2: mov dword ptr [esi + 0x3c], ebx */ 7067 MEM32(esi + 0x40) = ebx; /* 0x4200FFE5: mov dword ptr [esi + 0x40], ebx */ 7068 MEM32(esi + 0x44) = ebx; /* 0x4200FFE8: mov dword ptr [esi + 0x44], ebx */ 7069 MEM32(esi + 0x48) = 0x3E4CCCCDu; /* 0x4200FFEB: mov dword ptr [esi + 0x48], 0x3e4ccccd */ 7070 MEM8(esi + 0x4C) = (uint8_t)(LO8(ebx)); /* 0x4200FFF2: mov byte ptr [esi + 0x4c], bl */ 7071 MEM8(esi + 0x4D) = (uint8_t)(1); /* 0x4200FFF5: mov byte ptr [esi + 0x4d], 1 */ 7072 MEM8(esi + 0x4E) = (uint8_t)(LO8(ebx)); /* 0x4200FFF9: mov byte ptr [esi + 0x4e], bl */ 7073 MEM32(esi + 0x50) = ebx; /* 0x4200FFFC: mov dword ptr [esi + 0x50], ebx */ 7074 MEM32(esi + 0x54) = ebx; /* 0x4200FFFF: mov dword ptr [esi + 0x54], ebx */ 7075 MEM32(esi + 0x58) = ebx; /* 0x42010002: mov dword ptr [esi + 0x58], ebx */ 7076 MEM32(esi + 0x5C) = ebx; /* 0x42010005: mov dword ptr [esi + 0x5c], ebx */ 7077 MEM32(esi + 0x60) = ebx; /* 0x42010008: mov dword ptr [esi + 0x60], ebx */ 7078 MEM32(esi + 0x64) = ebx; /* 0x4201000B: mov dword ptr [esi + 0x64], ebx */ 7079 MEM32(esi + 0x68) = ebx; /* 0x4201000E: mov dword ptr [esi + 0x68], ebx */ 7080 MEM32(esi + 0x6C) = ebx; /* 0x42010011: mov dword ptr [esi + 0x6c], ebx */ 7081 MEM32(esi + 0x70) = ebx; /* 0x42010014: mov dword ptr [esi + 0x70], ebx */ 7082 MEM32(esi + 0x74) = ebx; /* 0x42010017: mov dword ptr [esi + 0x74], ebx */ 7083 eax = 0x3F800000u; /* 0x4201001A: mov eax, 0x3f800000 */ 7084 MEM32(esi + 0x78) = eax; /* 0x4201001F: mov dword ptr [esi + 0x78], eax */ 7085 MEM32(esi + 0x7C) = ebx; /* 0x42010022: mov dword ptr [esi + 0x7c], ebx */ 7086 MEM32(esi + 0x80) = ebx; /* 0x42010025: mov dword ptr [esi + 0x80], ebx */ 7087 MEM32(esi + 0x84) = ebx; /* 0x4201002B: mov dword ptr [esi + 0x84], ebx */ 7088 MEM32(esi + 0x88) = eax; /* 0x42010031: mov dword ptr [esi + 0x88], eax */ 7089 MEM32(esi + 0x8C) = 1; /* 0x42010037: mov dword ptr [esi + 0x8c], 1 */ 7090 MEM32(esi + 0x90) = ebx; /* 0x42010041: mov dword ptr [esi + 0x90], ebx */ 7091 MEM32(esi + 0x94) = ebx; /* 0x42010047: mov dword ptr [esi + 0x94], ebx */ 7092 MEM32(esi + 0x98) = ebx; /* 0x4201004D: mov dword ptr [esi + 0x98], ebx */ 7093 MEM32(esi + 0x9C) = ebx; /* 0x42010053: mov dword ptr [esi + 0x9c], ebx */ 7094 MEM32(esi + 0xA0) = ebx; /* 0x42010059: mov dword ptr [esi + 0xa0], ebx */ 7095 MEM32(esi + 0xA4) = ebx; /* 0x4201005F: mov dword ptr [esi + 0xa4], ebx */ 7096 MEM32(esi + 0xA8) = ebx; /* 0x42010065: mov dword ptr [esi + 0xa8], ebx */ 7097 MEM32(esi + 0xAC) = ebx; /* 0x4201006B: mov dword ptr [esi + 0xac], ebx */ 7098 MEM32(esi + 0xB0) = ebx; /* 0x42010071: mov dword ptr [esi + 0xb0], ebx */ 7099 MEM32(esi + 0xB4) = ebx; /* 0x42010077: mov dword ptr [esi + 0xb4], ebx */ 7100 MEM32(esi + 0xB8) = ebx; /* 0x4201007D: mov dword ptr [esi + 0xb8], ebx */ 7101 MEM32(esi + 0xBC) = ebx; /* 0x42010083: mov dword ptr [esi + 0xbc], ebx */ 7102 MEM32(esi + 0xC0) = ebx; /* 0x42010089: mov dword ptr [esi + 0xc0], ebx */ 7103 MEM32(esi + 0xC4) = ebx; /* 0x4201008F: mov dword ptr [esi + 0xc4], ebx */ 7104 MEM32(esi + 0xC8) = ebx; /* 0x42010095: mov dword ptr [esi + 0xc8], ebx */ 7105 MEM32(esi + 0xCC) = ebx; /* 0x4201009B: mov dword ptr [esi + 0xcc], ebx */ 7106 MEM32(esi + 0xD0) = ebx; /* 0x420100A1: mov dword ptr [esi + 0xd0], ebx */ 7107 MEM32(esi + 0xD4) = ebx; /* 0x420100A7: mov dword ptr [esi + 0xd4], ebx */ 7108 MEM32(esi + 0xD8) = ebx; /* 0x420100AD: mov dword ptr [esi + 0xd8], ebx */ 7109 MEM32(esi + 0xDC) = ebx; /* 0x420100B3: mov dword ptr [esi + 0xdc], ebx */ 7110 MEM32(esi + 0xE0) = ebx; /* 0x420100B9: mov dword ptr [esi + 0xe0], ebx */ 7111 MEM32(esi + 0xE4) = ebx; /* 0x420100BF: mov dword ptr [esi + 0xe4], ebx */ 7112 MEM32(esi + 0xE8) = ebx; /* 0x420100C5: mov dword ptr [esi + 0xe8], ebx */ 7113 MEM32(esi + 0xEC) = ebx; /* 0x420100CB: mov dword ptr [esi + 0xec], ebx */ 7114 MEM32(esi + 0xF0) = ebx; /* 0x420100D1: mov dword ptr [esi + 0xf0], ebx */ 7115 MEM32(esi + 0xF4) = ebx; /* 0x420100D7: mov dword ptr [esi + 0xf4], ebx */ 7116 MEM32(esi + 0xF8) = ebx; /* 0x420100DD: mov dword ptr [esi + 0xf8], ebx */ 7117 MEM32(esi + 0xFC) = ebx; /* 0x420100E3: mov dword ptr [esi + 0xfc], ebx */ 7118 MEM32(esi + 0x100) = eax; /* 0x420100E9: mov dword ptr [esi + 0x100], eax */ 7119 ecx = esi + 0x10C; /* 0x420100EF: lea ecx, [esi + 0x10c] */ 7120 MEM32(ebp + (-0x4)) = ebx; /* 0x420100F5: mov dword ptr [ebp - 4], ebx */ 7121 MEM32(esi + 0x104) = ebx; /* 0x420100F8: mov dword ptr [esi + 0x104], ebx */ 7122 MEM32(esi + 0x108) = 0x3ECCCCCDu; /* 0x420100FE: mov dword ptr [esi + 0x108], 0x3ecccccd */ 7123 RECOMP_ICALL(0x42006390u); /* 0x42010108: call 0x42006390 */ /* not lifted */ 7124 RECOMP_FLAGS_IN(); 7125 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x4201010D: mov byte ptr [ebp - 4], 1 */ 7126 MEM8(esi + 0x124) = (uint8_t)(LO8(ebx)); /* 0x42010111: mov byte ptr [esi + 0x124], bl */ 7127 MEM32(esi + 0x128) = 0xBD4CCCCDu; /* 0x42010117: mov dword ptr [esi + 0x128], 0xbd4ccccd */ 7128 MEM32(esi + 0x12C) = ebx; /* 0x42010121: mov dword ptr [esi + 0x12c], ebx */ 7129 MEM32(esi) = 0x420185ECu; /* 0x42010127: mov dword ptr [esi], 0x420185ec */ 7130 MEM32(esi + 0x20) = 0x420185E4u; /* 0x4201012D: mov dword ptr [esi + 0x20], 0x420185e4 */ 7131 MEM32(ebp + (-0x1C)) = ebx; /* 0x42010134: mov dword ptr [ebp - 0x1c], ebx */ 7132 MEM32(ebp + (-0x18)) = ebx; /* 0x42010137: mov dword ptr [ebp - 0x18], ebx */ 7133 PUSH32(esp, 0x3DCCCCCDu); /* 0x4201013A: push 0x3dcccccd */ 7134 PUSH32(esp, 0x3DCCCCCDu); /* 0x4201013F: push 0x3dcccccd */ 7135 PUSH32(esp, 0x3C23D70Au); /* 0x42010144: push 0x3c23d70a */ 7136 PUSH32(esp, 0x40000000u); /* 0x42010149: push 0x40000000 */ 7137 PUSH32(esp, 0x40000000u); /* 0x4201014E: push 0x40000000 */ 7138 eax = ebp + (-0x1C); /* 0x42010153: lea eax, [ebp - 0x1c] */ 7139 PUSH32(esp, eax); /* 0x42010156: push eax */ 7140 ecx = ebp + (-0x38); /* 0x42010157: lea ecx, [ebp - 0x38] */ 7141 PUSH32(esp, ecx); /* 0x4201015A: push ecx */ 7142 edx = ebp + (-0x28); /* 0x4201015B: lea edx, [ebp - 0x28] */ 7143 PUSH32(esp, edx); /* 0x4201015E: push edx */ 7144 PUSH32(esp, 0x42480000u); /* 0x4201015F: push 0x42480000 */ 7145 ecx = esi; /* 0x42010164: mov ecx, esi */ 7146 MEM32(ebp + (-0x14)) = ebx; /* 0x42010166: mov dword ptr [ebp - 0x14], ebx */ 7147 MEM32(ebp + (-0x38)) = ebx; /* 0x42010169: mov dword ptr [ebp - 0x38], ebx */ 7148 MEM32(ebp + (-0x34)) = ebx; /* 0x4201016C: mov dword ptr [ebp - 0x34], ebx */ 7149 MEM32(ebp + (-0x30)) = ebx; /* 0x4201016F: mov dword ptr [ebp - 0x30], ebx */ 7150 MEM32(ebp + (-0x2C)) = 0x3F800000u; /* 0x42010172: mov dword ptr [ebp - 0x2c], 0x3f800000 */ 7151 MEM32(ebp + (-0x28)) = ebx; /* 0x42010179: mov dword ptr [ebp - 0x28], ebx */ 7152 MEM32(ebp + (-0x24)) = ebx; /* 0x4201017C: mov dword ptr [ebp - 0x24], ebx */ 7153 MEM32(ebp + (-0x20)) = ebx; /* 0x4201017F: mov dword ptr [ebp - 0x20], ebx */ 7154 RECOMP_ICALL(0x42010320u); /* 0x42010182: call 0x42010320 */ /* not lifted */ 7155 RECOMP_FLAGS_IN(); 7156 ecx = MEM32(ebp + (-0xC)); /* 0x42010187: mov ecx, dword ptr [ebp - 0xc] */ 7157 eax = esi; /* 0x4201018A: mov eax, esi */ 7158 esi = POP32_VAL(esp); /* 0x4201018C: pop esi */ 7159 ebx = POP32_VAL(esp); /* 0x4201018D: pop ebx */ 7160 MEM32(FS_BASE + (0)) = ecx; /* 0x4201018E: mov dword ptr fs:[0], ecx */ 7161 esp = ebp; /* 0x42010195: mov esp, ebp */ 7162 ebp = POP32_VAL(esp); /* 0x42010197: pop ebp */ 7163 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42010198: ret */ 7164 RECOMP_REGS_OUT(); 7165 } 7166 7167 void sub_420101A0(void) { 7168 int _fpu_cmp = 0; 7169 uint32_t _cf = 0; 7170 int _df = 1; 7171 uint32_t _flag_k = FK_NONE; 7172 uint32_t _flag_a = 0, _flag_b = 0; 7173 uint32_t _itail_tgt = 0; 7174 RECOMP_REGS_LOCALS 7175 RECOMP_ENTER(0x420101A0u); 7176 7177 L_420101A0: 7178 PUSH32(esp, ebp); /* 0x420101A0: push ebp */ 7179 ebp = esp; /* 0x420101A1: mov ebp, esp */ 7180 PUSH32(esp, ebx); /* 0x420101A3: push ebx */ 7181 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x420101A4: mov bl, byte ptr [ebp + 8] */ 7182 /* test LO8(ebx), 2 */ /* 0x420101A7: test bl, 2 */ 7183 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 7184 _cf = 0; 7185 _flag_k = FK_NARROW(FK_TEST, 24); 7186 PUSH32(esp, esi); /* 0x420101AA: push esi */ 7187 esi = ecx; /* 0x420101AB: mov esi, ecx */ 7188 if (TEST_Z(_flag_a, _flag_b)) goto L_420101DE; /* 0x420101AD: je 0x420101de */ 7189 L_420101AF: 7190 eax = MEM32(esi + (-0x4)); /* 0x420101AF: mov eax, dword ptr [esi - 4] */ 7191 PUSH32(esp, edi); /* 0x420101B2: push edi */ 7192 PUSH32(esp, 0x42010200u); /* 0x420101B3: push 0x42010200 */ 7193 edi = esi + (-0x4); /* 0x420101B8: lea edi, [esi - 4] */ 7194 PUSH32(esp, eax); /* 0x420101BB: push eax */ 7195 PUSH32(esp, 0x130u); /* 0x420101BC: push 0x130 */ 7196 PUSH32(esp, esi); /* 0x420101C1: push esi */ 7197 RECOMP_ICALL(0x42016E3Cu); /* 0x420101C2: call 0x42016e3c */ /* not lifted */ 7198 RECOMP_FLAGS_IN(); 7199 /* test LO8(ebx), 1 */ /* 0x420101C7: test bl, 1 */ 7200 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 7201 _cf = 0; 7202 _flag_k = FK_NARROW(FK_TEST, 24); 7203 if (TEST_Z(_flag_a, _flag_b)) goto L_420101D5; /* 0x420101CA: je 0x420101d5 */ 7204 L_420101CC: 7205 PUSH32(esp, edi); /* 0x420101CC: push edi */ 7206 RECOMP_ICALL(0x42016DD0u); /* 0x420101CD: call 0x42016dd0 */ /* not lifted */ 7207 RECOMP_FLAGS_IN(); 7208 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7209 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7210 esp = esp + 4; /* 0x420101D2: add esp, 4 */ 7211 _flag_k = FK_ADD; 7212 L_420101D5: 7213 eax = edi; /* 0x420101D5: mov eax, edi */ 7214 edi = POP32_VAL(esp); /* 0x420101D7: pop edi */ 7215 esi = POP32_VAL(esp); /* 0x420101D8: pop esi */ 7216 ebx = POP32_VAL(esp); /* 0x420101D9: pop ebx */ 7217 ebp = POP32_VAL(esp); /* 0x420101DA: pop ebp */ 7218 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x420101DB: ret 4 */ 7219 L_420101DE: 7220 ecx = esi; /* 0x420101DE: mov ecx, esi */ 7221 RECOMP_ICALL(0x42010200u); /* 0x420101E0: call 0x42010200 */ /* not lifted */ 7222 RECOMP_FLAGS_IN(); 7223 /* test LO8(ebx), 1 */ /* 0x420101E5: test bl, 1 */ 7224 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 7225 _cf = 0; 7226 _flag_k = FK_NARROW(FK_TEST, 24); 7227 if (TEST_Z(_flag_a, _flag_b)) goto L_420101F3; /* 0x420101E8: je 0x420101f3 */ 7228 L_420101EA: 7229 PUSH32(esp, esi); /* 0x420101EA: push esi */ 7230 RECOMP_ICALL(0x42016DD0u); /* 0x420101EB: call 0x42016dd0 */ /* not lifted */ 7231 RECOMP_FLAGS_IN(); 7232 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7233 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7234 esp = esp + 4; /* 0x420101F0: add esp, 4 */ 7235 _flag_k = FK_ADD; 7236 L_420101F3: 7237 eax = esi; /* 0x420101F3: mov eax, esi */ 7238 esi = POP32_VAL(esp); /* 0x420101F5: pop esi */ 7239 ebx = POP32_VAL(esp); /* 0x420101F6: pop ebx */ 7240 ebp = POP32_VAL(esp); /* 0x420101F7: pop ebp */ 7241 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x420101F8: ret 4 */ 7242 RECOMP_REGS_OUT(); 7243 } 7244 7245 void sub_42010200(void) { 7246 int _fpu_cmp = 0; 7247 uint32_t _cf = 0; 7248 int _df = 1; 7249 uint32_t _flag_k = FK_NONE; 7250 uint32_t _flag_a = 0, _flag_b = 0; 7251 uint32_t _itail_tgt = 0; 7252 RECOMP_REGS_LOCALS 7253 RECOMP_ENTER(0x42010200u); 7254 7255 L_42010200: 7256 PUSH32(esp, ebp); /* 0x42010200: push ebp */ 7257 ebp = esp; /* 0x42010201: mov ebp, esp */ 7258 PUSH32(esp, 0xFFFFFFFFu); /* 0x42010203: push -1 */ 7259 PUSH32(esp, 0x42017776u); /* 0x42010205: push 0x42017776 */ 7260 eax = MEM32(FS_BASE + (0)); /* 0x4201020A: mov eax, dword ptr fs:[0] */ 7261 PUSH32(esp, eax); /* 0x42010210: push eax */ 7262 MEM32(FS_BASE + (0)) = esp; /* 0x42010211: mov dword ptr fs:[0], esp */ 7263 PUSH32(esp, ecx); /* 0x42010218: push ecx */ 7264 PUSH32(esp, esi); /* 0x42010219: push esi */ 7265 esi = ecx; /* 0x4201021A: mov esi, ecx */ 7266 edx = esi + 0x20; /* 0x4201021C: lea edx, [esi + 0x20] */ 7267 MEM32(ebp + (-0x10)) = esi; /* 0x4201021F: mov dword ptr [ebp - 0x10], esi */ 7268 MEM32(esi) = 0x420185ECu; /* 0x42010222: mov dword ptr [esi], 0x420185ec */ 7269 MEM32(edx) = 0x420185E4u; /* 0x42010228: mov dword ptr [edx], 0x420185e4 */ 7270 ecx = MEM32(esi + 0x28); /* 0x4201022E: mov ecx, dword ptr [esi + 0x28] */ 7271 /* test ecx, ecx */ /* 0x42010231: test ecx, ecx */ 7272 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 7273 _cf = 0; 7274 _flag_k = FK_TEST; 7275 MEM32(ebp + (-0x4)) = 1; /* 0x42010233: mov dword ptr [ebp - 4], 1 */ 7276 if (TEST_Z(_flag_a, _flag_b)) goto L_4201024A; /* 0x4201023A: je 0x4201024a */ 7277 L_4201023C: 7278 eax = esi; /* 0x4201023C: mov eax, esi */ 7279 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 7280 _cf = (eax) != 0; 7281 eax = (uint32_t)(-(int32_t)eax); /* 0x4201023E: neg eax */ 7282 _flag_k = FK_CMP; 7283 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x42010240: sbb eax, eax */ 7284 eax = _sc ? 0xFFFFFFFFu : 0; 7285 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 7286 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 7287 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 7288 eax = eax & edx; /* 0x42010242: and eax, edx */ 7289 _cf = 0; 7290 _flag_k = FK_TEST; 7291 PUSH32(esp, eax); /* 0x42010244: push eax */ 7292 RECOMP_ICALL(0x42006980u); /* 0x42010245: call 0x42006980 */ /* not lifted */ 7293 RECOMP_FLAGS_IN(); 7294 L_4201024A: 7295 ecx = MEM32(esi + 0xAC); /* 0x4201024A: mov ecx, dword ptr [esi + 0xac] */ 7296 /* test ecx, ecx */ /* 0x42010250: test ecx, ecx */ 7297 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 7298 _cf = 0; 7299 _flag_k = FK_TEST; 7300 if (TEST_Z(_flag_a, _flag_b)) goto L_4201025A; /* 0x42010252: je 0x4201025a */ 7301 L_42010254: 7302 eax = MEM32(ecx); /* 0x42010254: mov eax, dword ptr [ecx] */ 7303 PUSH32(esp, 1); /* 0x42010256: push 1 */ 7304 RECOMP_ICALL(MEM32(eax)); /* 0x42010258: call dword ptr [eax] */ 7305 RECOMP_FLAGS_IN(); 7306 L_4201025A: 7307 ecx = esi + 0x10C; /* 0x4201025A: lea ecx, [esi + 0x10c] */ 7308 MEM32(esi + 0xAC) = 0; /* 0x42010260: mov dword ptr [esi + 0xac], 0 */ 7309 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x4201026A: mov byte ptr [ebp - 4], 0 */ 7310 RECOMP_ICALL(0x420063C0u); /* 0x4201026E: call 0x420063c0 */ /* not lifted */ 7311 RECOMP_FLAGS_IN(); 7312 ecx = esi; /* 0x42010273: mov ecx, esi */ 7313 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x42010275: mov dword ptr [ebp - 4], 0xffffffff */ 7314 RECOMP_ICALL(0x42006780u); /* 0x4201027C: call 0x42006780 */ /* not lifted */ 7315 RECOMP_FLAGS_IN(); 7316 ecx = MEM32(ebp + (-0xC)); /* 0x42010281: mov ecx, dword ptr [ebp - 0xc] */ 7317 esi = POP32_VAL(esp); /* 0x42010284: pop esi */ 7318 MEM32(FS_BASE + (0)) = ecx; /* 0x42010285: mov dword ptr fs:[0], ecx */ 7319 esp = ebp; /* 0x4201028C: mov esp, ebp */ 7320 ebp = POP32_VAL(esp); /* 0x4201028E: pop ebp */ 7321 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4201028F: ret */ 7322 RECOMP_REGS_OUT(); 7323 } 7324 7325 void sub_42010290(void) { 7326 int _fpu_cmp = 0; 7327 uint32_t _cf = 0; 7328 int _df = 1; 7329 uint32_t _flag_k = FK_NONE; 7330 uint32_t _flag_a = 0, _flag_b = 0; 7331 uint32_t _itail_tgt = 0; 7332 RECOMP_REGS_LOCALS 7333 RECOMP_ENTER(0x42010290u); 7334 7335 L_42010290: 7336 MEM8(ecx + 0x4D) = (uint8_t)(1); /* 0x42010290: mov byte ptr [ecx + 0x4d], 1 */ 7337 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42010294: ret */ 7338 RECOMP_REGS_OUT(); 7339 } 7340 7341 void sub_420102A0(void) { 7342 int _fpu_cmp = 0; 7343 uint32_t _cf = 0; 7344 int _df = 1; 7345 uint32_t _flag_k = FK_NONE; 7346 uint32_t _flag_a = 0, _flag_b = 0; 7347 uint32_t _itail_tgt = 0; 7348 RECOMP_REGS_LOCALS 7349 RECOMP_ENTER(0x420102A0u); 7350 7351 L_420102A0: 7352 MEM8(ecx + 0x4D) = (uint8_t)(0); /* 0x420102A0: mov byte ptr [ecx + 0x4d], 0 */ 7353 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x420102A4: ret */ 7354 RECOMP_REGS_OUT(); 7355 } 7356 7357 void sub_420102B0(void) { 7358 int _fpu_cmp = 0; 7359 uint32_t _cf = 0; 7360 int _df = 1; 7361 uint32_t _flag_k = FK_NONE; 7362 uint32_t _flag_a = 0, _flag_b = 0; 7363 uint32_t _itail_tgt = 0; 7364 RECOMP_REGS_LOCALS 7365 RECOMP_ENTER(0x420102B0u); 7366 7367 L_420102B0: 7368 MEM8(ecx + 0x4C) = (uint8_t)(1); /* 0x420102B0: mov byte ptr [ecx + 0x4c], 1 */ 7369 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x420102B4: ret */ 7370 RECOMP_REGS_OUT(); 7371 } 7372 7373 void sub_420102C0(void) { 7374 int _fpu_cmp = 0; 7375 uint32_t _cf = 0; 7376 int _df = 1; 7377 uint32_t _flag_k = FK_NONE; 7378 uint32_t _flag_a = 0, _flag_b = 0; 7379 uint32_t _itail_tgt = 0; 7380 RECOMP_REGS_LOCALS 7381 RECOMP_ENTER(0x420102C0u); 7382 7383 L_420102C0: 7384 MEM8(ecx + 0x4C) = (uint8_t)(0); /* 0x420102C0: mov byte ptr [ecx + 0x4c], 0 */ 7385 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x420102C4: ret */ 7386 RECOMP_REGS_OUT(); 7387 } 7388 7389 void sub_420102D0(void) { 7390 int _fpu_cmp = 0; 7391 uint32_t _cf = 0; 7392 int _df = 1; 7393 uint32_t _flag_k = FK_NONE; 7394 uint32_t _flag_a = 0, _flag_b = 0; 7395 uint32_t _itail_tgt = 0; 7396 RECOMP_REGS_LOCALS 7397 RECOMP_ENTER(0x420102D0u); 7398 7399 L_420102D0: 7400 PUSH32(esp, ebp); /* 0x420102D0: push ebp */ 7401 ebp = esp; /* 0x420102D1: mov ebp, esp */ 7402 PUSH32(esp, esi); /* 0x420102D3: push esi */ 7403 esi = ecx; /* 0x420102D4: mov esi, ecx */ 7404 ecx = MEM32(esi + 0xAC); /* 0x420102D6: mov ecx, dword ptr [esi + 0xac] */ 7405 /* test ecx, ecx */ /* 0x420102DC: test ecx, ecx */ 7406 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 7407 _cf = 0; 7408 _flag_k = FK_TEST; 7409 if (TEST_Z(_flag_a, _flag_b)) goto L_420102FE; /* 0x420102DE: je 0x420102fe */ 7410 L_420102E0: 7411 eax = MEM32(ecx); /* 0x420102E0: mov eax, dword ptr [ecx] */ 7412 PUSH32(esp, 1); /* 0x420102E2: push 1 */ 7413 RECOMP_ICALL(MEM32(eax)); /* 0x420102E4: call dword ptr [eax] */ 7414 RECOMP_FLAGS_IN(); 7415 ecx = MEM32(ebp + 0x8); /* 0x420102E6: mov ecx, dword ptr [ebp + 8] */ 7416 MEM32(esi + 0xAC) = ecx; /* 0x420102E9: mov dword ptr [esi + 0xac], ecx */ 7417 MEM32(esi + 0xA8) = 0; /* 0x420102EF: mov dword ptr [esi + 0xa8], 0 */ 7418 esi = POP32_VAL(esp); /* 0x420102F9: pop esi */ 7419 ebp = POP32_VAL(esp); /* 0x420102FA: pop ebp */ 7420 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x420102FB: ret 4 */ 7421 L_420102FE: 7422 edx = MEM32(ebp + 0x8); /* 0x420102FE: mov edx, dword ptr [ebp + 8] */ 7423 MEM32(esi + 0xAC) = edx; /* 0x42010301: mov dword ptr [esi + 0xac], edx */ 7424 MEM32(esi + 0xA8) = 0; /* 0x42010307: mov dword ptr [esi + 0xa8], 0 */ 7425 esi = POP32_VAL(esp); /* 0x42010311: pop esi */ 7426 ebp = POP32_VAL(esp); /* 0x42010312: pop ebp */ 7427 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42010313: ret 4 */ 7428 RECOMP_REGS_OUT(); 7429 } 7430 7431 void sub_42010320(void) { 7432 int _fpu_cmp = 0; 7433 uint32_t _cf = 0; 7434 int _df = 1; 7435 uint32_t _flag_k = FK_NONE; 7436 uint32_t _flag_a = 0, _flag_b = 0; 7437 uint32_t _itail_tgt = 0; 7438 RECOMP_REGS_LOCALS 7439 RECOMP_ENTER(0x42010320u); 7440 7441 L_42010320: 7442 PUSH32(esp, ebp); /* 0x42010320: push ebp */ 7443 ebp = esp; /* 0x42010321: mov ebp, esp */ 7444 edx = MEM32(ebp + 0x1C); /* 0x42010323: mov edx, dword ptr [ebp + 0x1c] */ 7445 eax = MEM32(ebp + 0x8); /* 0x42010326: mov eax, dword ptr [ebp + 8] */ 7446 PUSH32(esp, ebx); /* 0x42010329: push ebx */ 7447 PUSH32(esp, esi); /* 0x4201032A: push esi */ 7448 esi = ecx; /* 0x4201032B: mov esi, ecx */ 7449 ecx = MEM32(ebp + 0x18); /* 0x4201032D: mov ecx, dword ptr [ebp + 0x18] */ 7450 PUSH32(esp, edi); /* 0x42010330: push edi */ 7451 MEM32(esi + 0x34) = ecx; /* 0x42010331: mov dword ptr [esi + 0x34], ecx */ 7452 PUSH32(esp, edx); /* 0x42010334: push edx */ 7453 ecx = esi; /* 0x42010335: mov ecx, esi */ 7454 MEM32(esi + 0x30) = eax; /* 0x42010337: mov dword ptr [esi + 0x30], eax */ 7455 RECOMP_ICALL(0x42011C40u); /* 0x4201033A: call 0x42011c40 */ /* not lifted */ 7456 RECOMP_FLAGS_IN(); 7457 eax = MEM32(ebp + 0x20); /* 0x4201033F: mov eax, dword ptr [ebp + 0x20] */ 7458 ecx = MEM32(ebp + 0x24); /* 0x42010342: mov ecx, dword ptr [ebp + 0x24] */ 7459 MEM32(esi + 0x3C) = ecx; /* 0x42010345: mov dword ptr [esi + 0x3c], ecx */ 7460 edi = MEM32(ebp + 0x10); /* 0x42010348: mov edi, dword ptr [ebp + 0x10] */ 7461 MEM32(esi + 0x48) = eax; /* 0x4201034B: mov dword ptr [esi + 0x48], eax */ 7462 eax = MEM32(ebp + 0xC); /* 0x4201034E: mov eax, dword ptr [ebp + 0xc] */ 7463 MEM32(esi + 0x40) = 0x3F800000u; /* 0x42010351: mov dword ptr [esi + 0x40], 0x3f800000 */ 7464 ecx = MEM32(eax); /* 0x42010358: mov ecx, dword ptr [eax] */ 7465 edx = esi + 0x54; /* 0x4201035A: lea edx, [esi + 0x54] */ 7466 MEM32(edx) = ecx; /* 0x4201035D: mov dword ptr [edx], ecx */ 7467 ecx = MEM32(eax + 0x4); /* 0x4201035F: mov ecx, dword ptr [eax + 4] */ 7468 MEM32(edx + 0x4) = ecx; /* 0x42010362: mov dword ptr [edx + 4], ecx */ 7469 eax = MEM32(eax + 0x8); /* 0x42010365: mov eax, dword ptr [eax + 8] */ 7470 MEM32(edx + 0x8) = eax; /* 0x42010368: mov dword ptr [edx + 8], eax */ 7471 edx = MEM32(ebp + 0x14); /* 0x4201036B: mov edx, dword ptr [ebp + 0x14] */ 7472 eax = MEM32(edx); /* 0x4201036E: mov eax, dword ptr [edx] */ 7473 ecx = esi + 0x60; /* 0x42010370: lea ecx, [esi + 0x60] */ 7474 MEM32(ecx) = eax; /* 0x42010373: mov dword ptr [ecx], eax */ 7475 eax = MEM32(edx + 0x4); /* 0x42010375: mov eax, dword ptr [edx + 4] */ 7476 MEM32(ecx + 0x4) = eax; /* 0x42010378: mov dword ptr [ecx + 4], eax */ 7477 edx = MEM32(edx + 0x8); /* 0x4201037B: mov edx, dword ptr [edx + 8] */ 7478 MEM32(ecx + 0x8) = edx; /* 0x4201037E: mov dword ptr [ecx + 8], edx */ 7479 ebx = esi + 0x7C; /* 0x42010381: lea ebx, [esi + 0x7c] */ 7480 eax = edi; /* 0x42010384: mov eax, edi */ 7481 edx = MEM32(eax); /* 0x42010386: mov edx, dword ptr [eax] */ 7482 ecx = ebx; /* 0x42010388: mov ecx, ebx */ 7483 MEM32(ecx) = edx; /* 0x4201038A: mov dword ptr [ecx], edx */ 7484 edx = MEM32(eax + 0x4); /* 0x4201038C: mov edx, dword ptr [eax + 4] */ 7485 MEM32(ecx + 0x4) = edx; /* 0x4201038F: mov dword ptr [ecx + 4], edx */ 7486 edx = MEM32(eax + 0x8); /* 0x42010392: mov edx, dword ptr [eax + 8] */ 7487 MEM32(ecx + 0x8) = edx; /* 0x42010395: mov dword ptr [ecx + 8], edx */ 7488 eax = MEM32(eax + 0xC); /* 0x42010398: mov eax, dword ptr [eax + 0xc] */ 7489 MEM32(ecx + 0xC) = eax; /* 0x4201039B: mov dword ptr [ecx + 0xc], eax */ 7490 PUSH32(esp, 0); /* 0x4201039E: push 0 */ 7491 ecx = esi; /* 0x420103A0: mov ecx, esi */ 7492 RECOMP_ICALL(0x420112C0u); /* 0x420103A2: call 0x420112c0 */ /* not lifted */ 7493 RECOMP_FLAGS_IN(); 7494 eax = MEM32(0x42023258); /* 0x420103A7: mov eax, dword ptr [0x42023258] */ 7495 ecx = esi + 0xB4; /* 0x420103AC: lea ecx, [esi + 0xb4] */ 7496 edx = ecx; /* 0x420103B2: mov edx, ecx */ 7497 MEM32(edx) = eax; /* 0x420103B4: mov dword ptr [edx], eax */ 7498 eax = MEM32(0x4202325C); /* 0x420103B6: mov eax, dword ptr [0x4202325c] */ 7499 MEM32(edx + 0x4) = eax; /* 0x420103BB: mov dword ptr [edx + 4], eax */ 7500 eax = MEM32(0x42023260); /* 0x420103BE: mov eax, dword ptr [0x42023260] */ 7501 MEM32(edx + 0x8) = eax; /* 0x420103C3: mov dword ptr [edx + 8], eax */ 7502 fp_push(*(float*)&MEM32(edi + 0xC)); /* 0x420103C6: fld dword ptr [edi + 0xc] */ 7503 fp_push(*(float*)&MEM32(edi + 0x8)); /* 0x420103C9: fld dword ptr [edi + 8] */ 7504 fp_push(*(float*)&MEM32(edi + 0x4)); /* 0x420103CC: fld dword ptr [edi + 4] */ 7505 fp_push(*(float*)&MEM32(edi)); /* 0x420103CF: fld dword ptr [edi] */ 7506 fp_push(_st[0]); /* 0x420103D1: fld st(0) */ 7507 _st[0] *= _st[1]; /* 0x420103D3: fmul st(1) */ 7508 fp_push(_st[2]); /* 0x420103D5: fld st(2) */ 7509 _st[0] *= _st[3]; /* 0x420103D7: fmul st(3) */ 7510 { double _v = fp_pop(); _st[0] += _v; } /* 0x420103D9: faddp st(1) */ 7511 fp_push(_st[3]); /* 0x420103DB: fld st(3) */ 7512 _st[0] *= _st[4]; /* 0x420103DD: fmul st(4) */ 7513 { double _v = fp_pop(); _st[0] += _v; } /* 0x420103DF: faddp st(1) */ 7514 fp_push(_st[4]); /* 0x420103E1: fld st(4) */ 7515 _st[0] *= _st[5]; /* 0x420103E3: fmul st(5) */ 7516 { double _v = fp_pop(); _st[0] += _v; } /* 0x420103E5: faddp st(1) */ 7517 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x420180D8)); /* 0x420103E7: fcomp qword ptr [0x420180d8] */ 7518 fp_pop(); 7519 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x420103ED: fstp st(0) */ 7520 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x420103EF: fstp st(0) */ 7521 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x420103F1: fnstsw ax */ 7522 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x420103F3: fstp st(0) */ 7523 /* test HI8(eax), 0x40u */ /* 0x420103F5: test ah, 0x40 */ 7524 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 7525 _cf = 0; 7526 _flag_k = FK_NARROW(FK_TEST, 24); 7527 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x420103F8: fstp st(0) */ 7528 if (TEST_Z(_flag_a, _flag_b)) goto L_42010441; /* 0x420103FA: je 0x42010441 */ 7529 L_420103FC: 7530 edx = MEM32(ebp + 0x14); /* 0x420103FC: mov edx, dword ptr [ebp + 0x14] */ 7531 fp_push(*(float*)&MEM32(edx)); /* 0x420103FF: fld dword ptr [edx] */ 7532 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x420180F8)); /* 0x42010401: fcomp dword ptr [0x420180f8] */ 7533 fp_pop(); 7534 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42010407: fnstsw ax */ 7535 /* test HI8(eax), 0x40u */ /* 0x42010409: test ah, 0x40 */ 7536 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 7537 _cf = 0; 7538 _flag_k = FK_NARROW(FK_TEST, 24); 7539 if (TEST_Z(_flag_a, _flag_b)) goto L_42010436; /* 0x4201040C: je 0x42010436 */ 7540 L_4201040E: 7541 fp_push(*(float*)&MEM32(edx + 0x4)); /* 0x4201040E: fld dword ptr [edx + 4] */ 7542 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x420180F8)); /* 0x42010411: fcomp dword ptr [0x420180f8] */ 7543 fp_pop(); 7544 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42010417: fnstsw ax */ 7545 /* test HI8(eax), 0x40u */ /* 0x42010419: test ah, 0x40 */ 7546 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 7547 _cf = 0; 7548 _flag_k = FK_NARROW(FK_TEST, 24); 7549 if (TEST_Z(_flag_a, _flag_b)) goto L_42010436; /* 0x4201041C: je 0x42010436 */ 7550 L_4201041E: 7551 fp_push(*(float*)&MEM32(edx + 0x8)); /* 0x4201041E: fld dword ptr [edx + 8] */ 7552 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x420180F8)); /* 0x42010421: fcomp dword ptr [0x420180f8] */ 7553 fp_pop(); 7554 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42010427: fnstsw ax */ 7555 /* test HI8(eax), 0x40u */ /* 0x42010429: test ah, 0x40 */ 7556 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 7557 _cf = 0; 7558 _flag_k = FK_NARROW(FK_TEST, 24); 7559 if (TEST_Z(_flag_a, _flag_b)) goto L_42010436; /* 0x4201042C: je 0x42010436 */ 7560 L_4201042E: 7561 PUSH32(esp, ecx); /* 0x4201042E: push ecx */ 7562 PUSH32(esp, 0x42023218u); /* 0x4201042F: push 0x42023218 */ 7563 goto L_42010438; /* 0x42010434: jmp 0x42010438 */ 7564 L_42010436: 7565 PUSH32(esp, ecx); /* 0x42010436: push ecx */ 7566 PUSH32(esp, edx); /* 0x42010437: push edx */ 7567 L_42010438: 7568 PUSH32(esp, ebx); /* 0x42010438: push ebx */ 7569 RECOMP_ICALL(0x4200FE00u); /* 0x42010439: call 0x4200fe00 */ /* not lifted */ 7570 RECOMP_FLAGS_IN(); 7571 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7572 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7573 esp = esp + 0xCu; /* 0x4201043E: add esp, 0xc */ 7574 _flag_k = FK_ADD; 7575 L_42010441: 7576 edx = MEM32(ebx); /* 0x42010441: mov edx, dword ptr [ebx] */ 7577 eax = MEM32(ebx + 0x4); /* 0x42010443: mov eax, dword ptr [ebx + 4] */ 7578 ecx = esi + 0x6C; /* 0x42010446: lea ecx, [esi + 0x6c] */ 7579 MEM32(ecx) = edx; /* 0x42010449: mov dword ptr [ecx], edx */ 7580 edx = MEM32(ebx + 0x8); /* 0x4201044B: mov edx, dword ptr [ebx + 8] */ 7581 MEM32(ecx + 0x4) = eax; /* 0x4201044E: mov dword ptr [ecx + 4], eax */ 7582 eax = MEM32(ebx + 0xC); /* 0x42010451: mov eax, dword ptr [ebx + 0xc] */ 7583 MEM32(ecx + 0x8) = edx; /* 0x42010454: mov dword ptr [ecx + 8], edx */ 7584 MEM32(ecx + 0xC) = eax; /* 0x42010457: mov dword ptr [ecx + 0xc], eax */ 7585 ecx = esi; /* 0x4201045A: mov ecx, esi */ 7586 RECOMP_ICALL(0x42011850u); /* 0x4201045C: call 0x42011850 */ /* not lifted */ 7587 RECOMP_FLAGS_IN(); 7588 edi = POP32_VAL(esp); /* 0x42010461: pop edi */ 7589 esi = POP32_VAL(esp); /* 0x42010462: pop esi */ 7590 ebx = POP32_VAL(esp); /* 0x42010463: pop ebx */ 7591 ebp = POP32_VAL(esp); /* 0x42010464: pop ebp */ 7592 RECOMP_FLAGS_OUT(); esp += 40; { RECOMP_REGS_OUT(); return; } /* 0x42010465: ret 0x24 */ 7593 RECOMP_REGS_OUT(); 7594 } 7595 7596 void sub_42010470(void) { 7597 int _fpu_cmp = 0; 7598 uint32_t _cf = 0; 7599 int _df = 1; 7600 uint32_t _flag_k = FK_NONE; 7601 uint32_t _flag_a = 0, _flag_b = 0; 7602 uint32_t _itail_tgt = 0; 7603 RECOMP_REGS_LOCALS 7604 RECOMP_ENTER(0x42010470u); 7605 7606 L_42010470: 7607 PUSH32(esp, ebp); /* 0x42010470: push ebp */ 7608 ebp = esp; /* 0x42010471: mov ebp, esp */ 7609 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x34u); 7610 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7611 esp = esp - 0x34u; /* 0x42010473: sub esp, 0x34 */ 7612 _flag_k = FK_CMP; 7613 PUSH32(esp, ebx); /* 0x42010476: push ebx */ 7614 PUSH32(esp, esi); /* 0x42010477: push esi */ 7615 PUSH32(esp, edi); /* 0x42010478: push edi */ 7616 edi = ecx; /* 0x42010479: mov edi, ecx */ 7617 ecx = MEM32(edi + 0x28); /* 0x4201047B: mov ecx, dword ptr [edi + 0x28] */ 7618 /* test ecx, ecx */ /* 0x4201047E: test ecx, ecx */ 7619 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 7620 _cf = 0; 7621 _flag_k = FK_TEST; 7622 if (TEST_Z(_flag_a, _flag_b)) goto L_42010567; /* 0x42010480: je 0x42010567 */ 7623 L_42010486: 7624 /* test edi, edi */ /* 0x42010486: test edi, edi */ 7625 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 7626 _cf = 0; 7627 _flag_k = FK_TEST; 7628 if (TEST_Z(_flag_a, _flag_b)) goto L_4201048F; /* 0x42010488: je 0x4201048f */ 7629 L_4201048A: 7630 eax = edi + 0x20; /* 0x4201048A: lea eax, [edi + 0x20] */ 7631 goto L_42010491; /* 0x4201048D: jmp 0x42010491 */ 7632 L_4201048F: 7633 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7634 eax = 0; /* 0x4201048F: xor eax, eax */ 7635 _cf = 0; 7636 _flag_k = FK_TEST; 7637 L_42010491: 7638 PUSH32(esp, eax); /* 0x42010491: push eax */ 7639 RECOMP_ICALL(0x42006980u); /* 0x42010492: call 0x42006980 */ /* not lifted */ 7640 RECOMP_FLAGS_IN(); 7641 fp_push(*(float*)&MEM32(edi + 0xD8)); /* 0x42010497: fld dword ptr [edi + 0xd8] */ 7642 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x420180D8)); /* 0x4201049D: fcomp qword ptr [0x420180d8] */ 7643 fp_pop(); 7644 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x420104A3: fnstsw ax */ 7645 /* test HI8(eax), 0x40u */ /* 0x420104A5: test ah, 0x40 */ 7646 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 7647 _cf = 0; 7648 _flag_k = FK_NARROW(FK_TEST, 24); 7649 if (TEST_NZ(_flag_a, _flag_b)) goto L_42010567; /* 0x420104A8: jne 0x42010567 */ 7650 L_420104AE: 7651 ecx = MEM32(edi + 0x28); /* 0x420104AE: mov ecx, dword ptr [edi + 0x28] */ 7652 RECOMP_ICALL(0x42011220u); /* 0x420104B1: call 0x42011220 */ /* not lifted */ 7653 RECOMP_FLAGS_IN(); 7654 esi = eax; /* 0x420104B6: mov esi, eax */ 7655 ecx = MEM32(eax); /* 0x420104B8: mov ecx, dword ptr [eax] */ 7656 edx = MEM32(eax + 0x4); /* 0x420104BA: mov edx, dword ptr [eax + 4] */ 7657 eax = MEM32(eax + 0x8); /* 0x420104BD: mov eax, dword ptr [eax + 8] */ 7658 ebx = edi + 0x60; /* 0x420104C0: lea ebx, [edi + 0x60] */ 7659 MEM32(ebp + (-0x24)) = ecx; /* 0x420104C3: mov dword ptr [ebp - 0x24], ecx */ 7660 PUSH32(esp, ebx); /* 0x420104C6: push ebx */ 7661 ecx = ebp + (-0x24); /* 0x420104C7: lea ecx, [ebp - 0x24] */ 7662 MEM32(ebp + (-0x20)) = edx; /* 0x420104CA: mov dword ptr [ebp - 0x20], edx */ 7663 MEM32(ebp + (-0x1C)) = eax; /* 0x420104CD: mov dword ptr [ebp - 0x1c], eax */ 7664 RECOMP_ICALL(MEM32(0x420180A4)); /* 0x420104D0: call dword ptr [0x420180a4] */ 7665 RECOMP_FLAGS_IN(); 7666 ecx = MEM32(eax); /* 0x420104D6: mov ecx, dword ptr [eax] */ 7667 MEM32(ebp + (-0xC)) = ecx; /* 0x420104D8: mov dword ptr [ebp - 0xc], ecx */ 7668 edx = MEM32(eax + 0x4); /* 0x420104DB: mov edx, dword ptr [eax + 4] */ 7669 MEM32(ebp + (-0x8)) = edx; /* 0x420104DE: mov dword ptr [ebp - 8], edx */ 7670 eax = MEM32(eax + 0x8); /* 0x420104E1: mov eax, dword ptr [eax + 8] */ 7671 ecx = esi; /* 0x420104E4: mov ecx, esi */ 7672 edx = MEM32(ecx); /* 0x420104E6: mov edx, dword ptr [ecx] */ 7673 MEM32(ebp + (-0x4)) = eax; /* 0x420104E8: mov dword ptr [ebp - 4], eax */ 7674 eax = MEM32(ecx + 0x4); /* 0x420104EB: mov eax, dword ptr [ecx + 4] */ 7675 ecx = MEM32(ecx + 0x8); /* 0x420104EE: mov ecx, dword ptr [ecx + 8] */ 7676 MEM32(ebp + (-0x24)) = edx; /* 0x420104F1: mov dword ptr [ebp - 0x24], edx */ 7677 edx = ebp + (-0xC); /* 0x420104F4: lea edx, [ebp - 0xc] */ 7678 MEM32(ebp + (-0x1C)) = ecx; /* 0x420104F7: mov dword ptr [ebp - 0x1c], ecx */ 7679 PUSH32(esp, edx); /* 0x420104FA: push edx */ 7680 ecx = ebp + (-0x24); /* 0x420104FB: lea ecx, [ebp - 0x24] */ 7681 MEM32(ebp + (-0x20)) = eax; /* 0x420104FE: mov dword ptr [ebp - 0x20], eax */ 7682 RECOMP_ICALL(MEM32(0x420180A4)); /* 0x42010501: call dword ptr [0x420180a4] */ 7683 RECOMP_FLAGS_IN(); 7684 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x42010507: fld dword ptr [esi + 0xc] */ 7685 ecx = MEM32(eax); /* 0x4201050A: mov ecx, dword ptr [eax] */ 7686 _st[0] += _st[0]; /* 0x4201050C: fadd st(0), st(0) */ 7687 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x4201050E: fld dword ptr [ebp - 0xc] */ 7688 MEM32(ebp + (-0x18)) = ecx; /* 0x42010511: mov dword ptr [ebp - 0x18], ecx */ 7689 edx = MEM32(eax + 0x4); /* 0x42010514: mov edx, dword ptr [eax + 4] */ 7690 _st[0] *= _st[1]; /* 0x42010517: fmul st(1) */ 7691 MEM32(ebp + (-0x14)) = edx; /* 0x42010519: mov dword ptr [ebp - 0x14], edx */ 7692 eax = MEM32(eax + 0x8); /* 0x4201051C: mov eax, dword ptr [eax + 8] */ 7693 MEM32(ebp + (-0x10)) = eax; /* 0x4201051F: mov dword ptr [ebp - 0x10], eax */ 7694 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x42010522: fstp dword ptr [ebp - 0xc] */ 7695 ecx = ebp + (-0xC); /* 0x42010525: lea ecx, [ebp - 0xc] */ 7696 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x42010528: fld dword ptr [ebp - 8] */ 7697 PUSH32(esp, ecx); /* 0x4201052B: push ecx */ 7698 _st[0] *= _st[1]; /* 0x4201052C: fmul st(1) */ 7699 ecx = ebx; /* 0x4201052E: mov ecx, ebx */ 7700 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x42010530: fstp dword ptr [ebp - 8] */ 7701 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x42010533: fld dword ptr [ebp - 4] */ 7702 _st[0] *= _st[1]; /* 0x42010536: fmul st(1) */ 7703 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x42010538: fstp dword ptr [ebp - 4] */ 7704 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x4201053B: fstp st(0) */ 7705 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x4201053D: fld dword ptr [ebp - 0x18] */ 7706 _st[0] += _st[0]; /* 0x42010540: fadd st(0), st(0) */ 7707 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x42010542: fstp dword ptr [ebp - 0x18] */ 7708 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x42010545: fld dword ptr [ebp - 0x14] */ 7709 _st[0] += _st[0]; /* 0x42010548: fadd st(0), st(0) */ 7710 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x4201054A: fstp dword ptr [ebp - 0x14] */ 7711 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x4201054D: fld dword ptr [ebp - 0x10] */ 7712 _st[0] += _st[0]; /* 0x42010550: fadd st(0), st(0) */ 7713 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x42010552: fstp dword ptr [ebp - 0x10] */ 7714 RECOMP_ICALL(MEM32(0x4201808C)); /* 0x42010555: call dword ptr [0x4201808c] */ 7715 RECOMP_FLAGS_IN(); 7716 edx = ebp + (-0x18); /* 0x4201055B: lea edx, [ebp - 0x18] */ 7717 PUSH32(esp, edx); /* 0x4201055E: push edx */ 7718 ecx = ebx; /* 0x4201055F: mov ecx, ebx */ 7719 RECOMP_ICALL(MEM32(0x4201808C)); /* 0x42010561: call dword ptr [0x4201808c] */ 7720 RECOMP_FLAGS_IN(); 7721 L_42010567: 7722 ecx = MEM32(ebp + 0x8); /* 0x42010567: mov ecx, dword ptr [ebp + 8] */ 7723 /* test ecx, ecx */ /* 0x4201056A: test ecx, ecx */ 7724 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 7725 _cf = 0; 7726 _flag_k = FK_TEST; 7727 MEM32(edi + 0x28) = ecx; /* 0x4201056C: mov dword ptr [edi + 0x28], ecx */ 7728 if (TEST_Z(_flag_a, _flag_b)) goto L_420106A7; /* 0x4201056F: je 0x420106a7 */ 7729 L_42010575: 7730 PUSH32(esp, edi); /* 0x42010575: push edi */ 7731 RECOMP_ICALL(0x420106C0u); /* 0x42010576: call 0x420106c0 */ /* not lifted */ 7732 RECOMP_FLAGS_IN(); 7733 fp_push(*(float*)&MEM32(edi + 0xD8)); /* 0x4201057B: fld dword ptr [edi + 0xd8] */ 7734 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x420180D8)); /* 0x42010581: fcomp qword ptr [0x420180d8] */ 7735 fp_pop(); 7736 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42010587: fnstsw ax */ 7737 /* test HI8(eax), 0x40u */ /* 0x42010589: test ah, 0x40 */ 7738 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 7739 _cf = 0; 7740 _flag_k = FK_NARROW(FK_TEST, 24); 7741 if (TEST_NZ(_flag_a, _flag_b)) goto L_420106A7; /* 0x4201058C: jne 0x420106a7 */ 7742 L_42010592: 7743 ecx = MEM32(edi + 0x28); /* 0x42010592: mov ecx, dword ptr [edi + 0x28] */ 7744 RECOMP_ICALL(0x42011220u); /* 0x42010595: call 0x42011220 */ /* not lifted */ 7745 RECOMP_FLAGS_IN(); 7746 edx = MEM32(eax + 0x4); /* 0x4201059A: mov edx, dword ptr [eax + 4] */ 7747 ecx = MEM32(eax); /* 0x4201059D: mov ecx, dword ptr [eax] */ 7748 MEM32(ebp + (-0x30)) = edx; /* 0x4201059F: mov dword ptr [ebp - 0x30], edx */ 7749 edx = MEM32(eax + 0xC); /* 0x420105A2: mov edx, dword ptr [eax + 0xc] */ 7750 MEM32(ebp + (-0x34)) = ecx; /* 0x420105A5: mov dword ptr [ebp - 0x34], ecx */ 7751 ecx = MEM32(eax + 0x8); /* 0x420105A8: mov ecx, dword ptr [eax + 8] */ 7752 MEM32(ebp + (-0x28)) = edx; /* 0x420105AB: mov dword ptr [ebp - 0x28], edx */ 7753 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x420105AE: fld dword ptr [ebp - 0x28] */ 7754 _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x420105B1: fmul dword ptr [ebp - 0x28] */ 7755 MEM32(ebp + (-0x2C)) = ecx; /* 0x420105B4: mov dword ptr [ebp - 0x2c], ecx */ 7756 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x420105B7: fld dword ptr [ebp - 0x2c] */ 7757 esi = edi + 0x60; /* 0x420105BA: lea esi, [edi + 0x60] */ 7758 _st[0] *= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x420105BD: fmul dword ptr [ebp - 0x2c] */ 7759 PUSH32(esp, esi); /* 0x420105C0: push esi */ 7760 { double _v = fp_pop(); _st[0] += _v; } /* 0x420105C1: faddp st(1) */ 7761 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x420105C3: fld dword ptr [ebp - 0x30] */ 7762 _st[0] *= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x420105C6: fmul dword ptr [ebp - 0x30] */ 7763 { double _v = fp_pop(); _st[0] += _v; } /* 0x420105C9: faddp st(1) */ 7764 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x420105CB: fld dword ptr [ebp - 0x34] */ 7765 _st[0] *= (double)*(float*)ADDR(ebp + (-0x34)); /* 0x420105CE: fmul dword ptr [ebp - 0x34] */ 7766 { double _v = fp_pop(); _st[0] += _v; } /* 0x420105D1: faddp st(1) */ 7767 _st[0] = (double)*(float*)ADDR(0x42018118) / _st[0]; /* 0x420105D3: fdivr dword ptr [0x42018118] */ 7768 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x420105D9: fld dword ptr [ebp - 0x34] */ 7769 _st[0] *= _st[1]; /* 0x420105DC: fmul st(1) */ 7770 _st[0] = -_st[0]; /* 0x420105DE: fchs */ 7771 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x420105E0: fstp dword ptr [ebp - 0x34] */ 7772 ebx = MEM32(ebp + (-0x34)); /* 0x420105E3: mov ebx, dword ptr [ebp - 0x34] */ 7773 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x420105E6: fld dword ptr [ebp - 0x30] */ 7774 MEM32(ebp + (-0x24)) = ebx; /* 0x420105E9: mov dword ptr [ebp - 0x24], ebx */ 7775 _st[0] *= _st[1]; /* 0x420105EC: fmul st(1) */ 7776 _st[0] = -_st[0]; /* 0x420105EE: fchs */ 7777 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x420105F0: fstp dword ptr [ebp - 0x30] */ 7778 eax = MEM32(ebp + (-0x30)); /* 0x420105F3: mov eax, dword ptr [ebp - 0x30] */ 7779 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x420105F6: fld dword ptr [ebp - 0x2c] */ 7780 MEM32(ebp + (-0x20)) = eax; /* 0x420105F9: mov dword ptr [ebp - 0x20], eax */ 7781 _st[0] *= _st[1]; /* 0x420105FC: fmul st(1) */ 7782 _st[0] = -_st[0]; /* 0x420105FE: fchs */ 7783 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x42010600: fstp dword ptr [ebp - 0x2c] */ 7784 ecx = MEM32(ebp + (-0x2C)); /* 0x42010603: mov ecx, dword ptr [ebp - 0x2c] */ 7785 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x42010606: fld dword ptr [ebp - 0x28] */ 7786 MEM32(ebp + (-0x1C)) = ecx; /* 0x42010609: mov dword ptr [ebp - 0x1c], ecx */ 7787 _st[0] *= _st[1]; /* 0x4201060C: fmul st(1) */ 7788 ecx = ebp + (-0x24); /* 0x4201060E: lea ecx, [ebp - 0x24] */ 7789 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x42010611: fstp dword ptr [ebp - 0x28] */ 7790 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42010614: fstp st(0) */ 7791 RECOMP_ICALL(MEM32(0x420180A4)); /* 0x42010616: call dword ptr [0x420180a4] */ 7792 RECOMP_FLAGS_IN(); 7793 edx = MEM32(eax); /* 0x4201061C: mov edx, dword ptr [eax] */ 7794 MEM32(ebp + (-0xC)) = edx; /* 0x4201061E: mov dword ptr [ebp - 0xc], edx */ 7795 ecx = MEM32(eax + 0x4); /* 0x42010621: mov ecx, dword ptr [eax + 4] */ 7796 MEM32(ebp + (-0x8)) = ecx; /* 0x42010624: mov dword ptr [ebp - 8], ecx */ 7797 edx = MEM32(eax + 0x8); /* 0x42010627: mov edx, dword ptr [eax + 8] */ 7798 ecx = MEM32(ebp + (-0x2C)); /* 0x4201062A: mov ecx, dword ptr [ebp - 0x2c] */ 7799 eax = MEM32(ebp + (-0x30)); /* 0x4201062D: mov eax, dword ptr [ebp - 0x30] */ 7800 MEM32(ebp + (-0x4)) = edx; /* 0x42010630: mov dword ptr [ebp - 4], edx */ 7801 edx = ebp + (-0xC); /* 0x42010633: lea edx, [ebp - 0xc] */ 7802 MEM32(ebp + (-0x1C)) = ecx; /* 0x42010636: mov dword ptr [ebp - 0x1c], ecx */ 7803 PUSH32(esp, edx); /* 0x42010639: push edx */ 7804 ecx = ebp + (-0x24); /* 0x4201063A: lea ecx, [ebp - 0x24] */ 7805 MEM32(ebp + (-0x24)) = ebx; /* 0x4201063D: mov dword ptr [ebp - 0x24], ebx */ 7806 MEM32(ebp + (-0x20)) = eax; /* 0x42010640: mov dword ptr [ebp - 0x20], eax */ 7807 RECOMP_ICALL(MEM32(0x420180A4)); /* 0x42010643: call dword ptr [0x420180a4] */ 7808 RECOMP_FLAGS_IN(); 7809 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x42010649: fld dword ptr [ebp - 0x28] */ 7810 ecx = MEM32(eax); /* 0x4201064C: mov ecx, dword ptr [eax] */ 7811 _st[0] += _st[0]; /* 0x4201064E: fadd st(0), st(0) */ 7812 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x42010650: fld dword ptr [ebp - 0xc] */ 7813 edx = MEM32(eax + 0x4); /* 0x42010653: mov edx, dword ptr [eax + 4] */ 7814 eax = MEM32(eax + 0x8); /* 0x42010656: mov eax, dword ptr [eax + 8] */ 7815 _st[0] *= _st[1]; /* 0x42010659: fmul st(1) */ 7816 MEM32(ebp + (-0x18)) = ecx; /* 0x4201065B: mov dword ptr [ebp - 0x18], ecx */ 7817 MEM32(ebp + (-0x14)) = edx; /* 0x4201065E: mov dword ptr [ebp - 0x14], edx */ 7818 MEM32(ebp + (-0x10)) = eax; /* 0x42010661: mov dword ptr [ebp - 0x10], eax */ 7819 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x42010664: fstp dword ptr [ebp - 0xc] */ 7820 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x42010667: fld dword ptr [ebp - 8] */ 7821 _st[0] *= _st[1]; /* 0x4201066A: fmul st(1) */ 7822 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x4201066C: fstp dword ptr [ebp - 8] */ 7823 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x4201066F: fmul dword ptr [ebp - 4] */ 7824 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x42010672: fld dword ptr [ebp - 0x18] */ 7825 _st[0] += _st[0]; /* 0x42010675: fadd st(0), st(0) */ 7826 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x42010677: fld dword ptr [ebp - 0x14] */ 7827 _st[0] += _st[0]; /* 0x4201067A: fadd st(0), st(0) */ 7828 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x4201067C: fstp dword ptr [ebp - 0x14] */ 7829 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x4201067F: fld dword ptr [ebp - 0x10] */ 7830 _st[0] += _st[0]; /* 0x42010682: fadd st(0), st(0) */ 7831 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x42010684: fstp dword ptr [ebp - 0x10] */ 7832 _st[0] += (double)*(float*)ADDR(esi); /* 0x42010687: fadd dword ptr [esi] */ 7833 _st[0] += (double)*(float*)ADDR(ebp + (-0xC)); /* 0x42010689: fadd dword ptr [ebp - 0xc] */ 7834 { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x4201068C: fstp dword ptr [esi] */ 7835 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x4201068E: fld dword ptr [ebp - 0x14] */ 7836 _st[0] += (double)*(float*)ADDR(esi + 0x4); /* 0x42010691: fadd dword ptr [esi + 4] */ 7837 _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x42010694: fadd dword ptr [ebp - 8] */ 7838 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x42010697: fstp dword ptr [esi + 4] */ 7839 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x4201069A: fld dword ptr [ebp - 0x10] */ 7840 _st[0] += (double)*(float*)ADDR(esi + 0x8); /* 0x4201069D: fadd dword ptr [esi + 8] */ 7841 _st[0] += _st[1]; /* 0x420106A0: fadd st(1) */ 7842 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x420106A2: fstp dword ptr [esi + 8] */ 7843 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x420106A5: fstp st(0) */ 7844 L_420106A7: 7845 ecx = ebp + 0xC; /* 0x420106A7: lea ecx, [ebp + 0xc] */ 7846 PUSH32(esp, ecx); /* 0x420106AA: push ecx */ 7847 ecx = edi; /* 0x420106AB: mov ecx, edi */ 7848 RECOMP_ICALL(0x420108F0u); /* 0x420106AD: call 0x420108f0 */ /* not lifted */ 7849 RECOMP_FLAGS_IN(); 7850 edi = POP32_VAL(esp); /* 0x420106B2: pop edi */ 7851 esi = POP32_VAL(esp); /* 0x420106B3: pop esi */ 7852 ebx = POP32_VAL(esp); /* 0x420106B4: pop ebx */ 7853 esp = ebp; /* 0x420106B5: mov esp, ebp */ 7854 ebp = POP32_VAL(esp); /* 0x420106B7: pop ebp */ 7855 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x420106B8: ret 0x10 */ 7856 RECOMP_REGS_OUT(); 7857 } 7858 7859 void sub_420106C0(void) { 7860 int _fpu_cmp = 0; 7861 uint32_t _cf = 0; 7862 int _df = 1; 7863 uint32_t _flag_k = FK_NONE; 7864 uint32_t _flag_a = 0, _flag_b = 0; 7865 uint32_t _itail_tgt = 0; 7866 RECOMP_REGS_LOCALS 7867 RECOMP_ENTER(0x420106C0u); 7868 7869 L_420106C0: 7870 PUSH32(esp, ebp); /* 0x420106C0: push ebp */ 7871 ebp = esp; /* 0x420106C1: mov ebp, esp */ 7872 eax = MEM32(ebp + 0x8); /* 0x420106C3: mov eax, dword ptr [ebp + 8] */ 7873 /* test eax, eax */ /* 0x420106C6: test eax, eax */ 7874 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7875 _cf = 0; 7876 _flag_k = FK_TEST; 7877 PUSH32(esp, esi); /* 0x420106C8: push esi */ 7878 esi = ecx; /* 0x420106C9: mov esi, ecx */ 7879 if (TEST_Z(_flag_a, _flag_b)) goto L_420106D2; /* 0x420106CB: je 0x420106d2 */ 7880 L_420106CD: 7881 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x20u); 7882 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7883 eax = eax + 0x20u; /* 0x420106CD: add eax, 0x20 */ 7884 _flag_k = FK_ADD; 7885 goto L_420106D4; /* 0x420106D0: jmp 0x420106d4 */ 7886 L_420106D2: 7887 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7888 eax = 0; /* 0x420106D2: xor eax, eax */ 7889 _cf = 0; 7890 _flag_k = FK_TEST; 7891 L_420106D4: 7892 PUSH32(esp, eax); /* 0x420106D4: push eax */ 7893 ecx = esi; /* 0x420106D5: mov ecx, esi */ 7894 RECOMP_ICALL(0x420067C0u); /* 0x420106D7: call 0x420067c0 */ /* not lifted */ 7895 RECOMP_FLAGS_IN(); 7896 _flag_a = (uint32_t)(MEM32(esi + 0x12C)); _flag_b = (uint32_t)(1); 7897 MEM32(esi + 0x12C) = MEM32(esi + 0x12C) + 1; /* 0x420106DC: inc dword ptr [esi + 0x12c] */ 7898 _flag_k = FK_INC; 7899 esi = POP32_VAL(esp); /* 0x420106E2: pop esi */ 7900 ebp = POP32_VAL(esp); /* 0x420106E3: pop ebp */ 7901 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x420106E4: ret 4 */ 7902 RECOMP_REGS_OUT(); 7903 } 7904 7905 void sub_420106F0(void) { 7906 int _fpu_cmp = 0; 7907 uint32_t _cf = 0; 7908 int _df = 1; 7909 uint32_t _flag_k = FK_NONE; 7910 uint32_t _flag_a = 0, _flag_b = 0; 7911 uint32_t _itail_tgt = 0; 7912 RECOMP_REGS_LOCALS 7913 RECOMP_ENTER(0x420106F0u); 7914 7915 L_420106F0: 7916 PUSH32(esp, ebp); /* 0x420106F0: push ebp */ 7917 ebp = esp; /* 0x420106F1: mov ebp, esp */ 7918 eax = MEM32(ebp + 0x8); /* 0x420106F3: mov eax, dword ptr [ebp + 8] */ 7919 /* test eax, eax */ /* 0x420106F6: test eax, eax */ 7920 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7921 _cf = 0; 7922 _flag_k = FK_TEST; 7923 PUSH32(esp, esi); /* 0x420106F8: push esi */ 7924 esi = ecx; /* 0x420106F9: mov esi, ecx */ 7925 if (TEST_Z(_flag_a, _flag_b)) goto L_42010702; /* 0x420106FB: je 0x42010702 */ 7926 L_420106FD: 7927 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x20u); 7928 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7929 eax = eax + 0x20u; /* 0x420106FD: add eax, 0x20 */ 7930 _flag_k = FK_ADD; 7931 goto L_42010704; /* 0x42010700: jmp 0x42010704 */ 7932 L_42010702: 7933 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7934 eax = 0; /* 0x42010702: xor eax, eax */ 7935 _cf = 0; 7936 _flag_k = FK_TEST; 7937 L_42010704: 7938 PUSH32(esp, eax); /* 0x42010704: push eax */ 7939 ecx = esi; /* 0x42010705: mov ecx, esi */ 7940 RECOMP_ICALL(0x42006980u); /* 0x42010707: call 0x42006980 */ /* not lifted */ 7941 RECOMP_FLAGS_IN(); 7942 _flag_a = (uint32_t)(MEM32(esi + 0x12C)); _flag_b = (uint32_t)(1); 7943 MEM32(esi + 0x12C) = MEM32(esi + 0x12C) - 1; /* 0x4201070C: dec dword ptr [esi + 0x12c] */ 7944 _flag_k = FK_DEC; 7945 esi = POP32_VAL(esp); /* 0x42010712: pop esi */ 7946 ebp = POP32_VAL(esp); /* 0x42010713: pop ebp */ 7947 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42010714: ret 4 */ 7948 RECOMP_REGS_OUT(); 7949 } 7950 7951 void sub_42010720(void) { 7952 int _fpu_cmp = 0; 7953 uint32_t _cf = 0; 7954 int _df = 1; 7955 uint32_t _flag_k = FK_NONE; 7956 uint32_t _flag_a = 0, _flag_b = 0; 7957 uint32_t _itail_tgt = 0; 7958 RECOMP_REGS_LOCALS 7959 RECOMP_ENTER(0x42010720u); 7960 7961 L_42010720: 7962 PUSH32(esp, ebp); /* 0x42010720: push ebp */ 7963 ebp = esp; /* 0x42010721: mov ebp, esp */ 7964 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x2Cu); 7965 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7966 esp = esp - 0x2Cu; /* 0x42010723: sub esp, 0x2c */ 7967 _flag_k = FK_CMP; 7968 PUSH32(esp, esi); /* 0x42010726: push esi */ 7969 esi = ecx; /* 0x42010727: mov esi, ecx */ 7970 ecx = MEM32(esi + 0x28); /* 0x42010729: mov ecx, dword ptr [esi + 0x28] */ 7971 /* test ecx, ecx */ /* 0x4201072C: test ecx, ecx */ 7972 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 7973 _cf = 0; 7974 _flag_k = FK_TEST; 7975 if (TEST_Z(_flag_a, _flag_b)) goto L_42010864; /* 0x4201072E: je 0x42010864 */ 7976 L_42010734: 7977 fp_push(*(float*)&MEM32(esi + 0xD8)); /* 0x42010734: fld dword ptr [esi + 0xd8] */ 7978 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x420180D8)); /* 0x4201073A: fcomp qword ptr [0x420180d8] */ 7979 fp_pop(); 7980 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42010740: fnstsw ax */ 7981 /* test HI8(eax), 0x40u */ /* 0x42010742: test ah, 0x40 */ 7982 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 7983 _cf = 0; 7984 _flag_k = FK_NARROW(FK_TEST, 24); 7985 if (TEST_NZ(_flag_a, _flag_b)) goto L_4201085B; /* 0x42010745: jne 0x4201085b */ 7986 L_4201074B: 7987 RECOMP_ICALL(0x42011220u); /* 0x4201074B: call 0x42011220 */ /* not lifted */ 7988 RECOMP_FLAGS_IN(); 7989 ecx = eax; /* 0x42010750: mov ecx, eax */ 7990 edx = MEM32(ecx); /* 0x42010752: mov edx, dword ptr [ecx] */ 7991 MEM32(ebp + (-0x14)) = edx; /* 0x42010754: mov dword ptr [ebp - 0x14], edx */ 7992 edx = MEM32(ecx + 0x4); /* 0x42010757: mov edx, dword ptr [ecx + 4] */ 7993 ecx = MEM32(ecx + 0x8); /* 0x4201075A: mov ecx, dword ptr [ecx + 8] */ 7994 MEM32(ebp + (-0x10)) = edx; /* 0x4201075D: mov dword ptr [ebp - 0x10], edx */ 7995 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x42010760: fld dword ptr [ebp - 0x10] */ 7996 _st[0] *= (double)*(float*)ADDR(esi + 0x68); /* 0x42010763: fmul dword ptr [esi + 0x68] */ 7997 MEM32(ebp + (-0xC)) = ecx; /* 0x42010766: mov dword ptr [ebp - 0xc], ecx */ 7998 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x42010769: fld dword ptr [ebp - 0xc] */ 7999 _st[0] *= (double)*(float*)ADDR(esi + 0x64); /* 0x4201076C: fmul dword ptr [esi + 0x64] */ 8000 { double _v = fp_pop(); _st[0] -= _v; } /* 0x4201076F: fsubp st(1) */ 8001 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x42010771: fld dword ptr [ebp - 0xc] */ 8002 _st[0] *= (double)*(float*)ADDR(esi + 0x60); /* 0x42010774: fmul dword ptr [esi + 0x60] */ 8003 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x42010777: fld dword ptr [ebp - 0x14] */ 8004 _st[0] *= (double)*(float*)ADDR(esi + 0x68); /* 0x4201077A: fmul dword ptr [esi + 0x68] */ 8005 { double _v = fp_pop(); _st[0] -= _v; } /* 0x4201077D: fsubp st(1) */ 8006 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x4201077F: fld dword ptr [ebp - 0x14] */ 8007 _st[0] *= (double)*(float*)ADDR(esi + 0x64); /* 0x42010782: fmul dword ptr [esi + 0x64] */ 8008 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x42010785: fld dword ptr [ebp - 0x10] */ 8009 _st[0] *= (double)*(float*)ADDR(esi + 0x60); /* 0x42010788: fmul dword ptr [esi + 0x60] */ 8010 { double _v = fp_pop(); _st[0] -= _v; } /* 0x4201078B: fsubp st(1) */ 8011 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x4201078D: fstp dword ptr [ebp - 0xc] */ 8012 fp_push(_st[1]); /* 0x42010790: fld st(1) */ 8013 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x42010792: fstp dword ptr [ebp - 0x14] */ 8014 edx = MEM32(ebp + (-0x14)); /* 0x42010795: mov edx, dword ptr [ebp - 0x14] */ 8015 MEM32(ebp + (-0x2C)) = edx; /* 0x42010798: mov dword ptr [ebp - 0x2c], edx */ 8016 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x4201079B: fst dword ptr [ebp - 0x10] */ 8017 ecx = MEM32(ebp + (-0x10)); /* 0x4201079E: mov ecx, dword ptr [ebp - 0x10] */ 8018 edx = MEM32(ebp + (-0xC)); /* 0x420107A1: mov edx, dword ptr [ebp - 0xc] */ 8019 MEM32(ebp + (-0x28)) = ecx; /* 0x420107A4: mov dword ptr [ebp - 0x28], ecx */ 8020 MEM32(ebp + (-0x24)) = edx; /* 0x420107A7: mov dword ptr [ebp - 0x24], edx */ 8021 ecx = eax; /* 0x420107AA: mov ecx, eax */ 8022 edx = MEM32(ecx); /* 0x420107AC: mov edx, dword ptr [ecx] */ 8023 MEM32(ebp + (-0x20)) = edx; /* 0x420107AE: mov dword ptr [ebp - 0x20], edx */ 8024 edx = MEM32(ecx + 0x4); /* 0x420107B1: mov edx, dword ptr [ecx + 4] */ 8025 ecx = MEM32(ecx + 0x8); /* 0x420107B4: mov ecx, dword ptr [ecx + 8] */ 8026 MEM32(ebp + (-0x1C)) = edx; /* 0x420107B7: mov dword ptr [ebp - 0x1c], edx */ 8027 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x420107BA: fld dword ptr [ebp - 0x1c] */ 8028 _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x420107BD: fmul dword ptr [ebp - 0xc] */ 8029 MEM32(ebp + (-0x18)) = ecx; /* 0x420107C0: mov dword ptr [ebp - 0x18], ecx */ 8030 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x420107C3: fld dword ptr [ebp - 0x18] */ 8031 _st[0] *= _st[2]; /* 0x420107C6: fmul st(2) */ 8032 { double _v = fp_pop(); _st[0] -= _v; } /* 0x420107C8: fsubp st(1) */ 8033 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x420107CA: fstp dword ptr [ebp - 8] */ 8034 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x420107CD: fld dword ptr [ebp - 0x18] */ 8035 edx = MEM32(ebp + (-0x8)); /* 0x420107D0: mov edx, dword ptr [ebp - 8] */ 8036 _st[0] *= _st[2]; /* 0x420107D3: fmul st(2) */ 8037 ecx = edx; /* 0x420107D5: mov ecx, edx */ 8038 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x420107D7: fld dword ptr [ebp - 0xc] */ 8039 MEM32(ebp + (-0x14)) = ecx; /* 0x420107DA: mov dword ptr [ebp - 0x14], ecx */ 8040 _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x420107DD: fmul dword ptr [ebp - 0x20] */ 8041 { double _v = fp_pop(); _st[0] -= _v; } /* 0x420107E0: fsubp st(1) */ 8042 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x420107E2: fld dword ptr [ebp - 0x20] */ 8043 MEM32(ebp + (-0x20)) = edx; /* 0x420107E5: mov dword ptr [ebp - 0x20], edx */ 8044 _st[0] *= _st[2]; /* 0x420107E8: fmul st(2) */ 8045 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x420107EA: fld dword ptr [ebp - 0x1c] */ 8046 _st[0] *= _st[4]; /* 0x420107ED: fmul st(4) */ 8047 { double _v = fp_pop(); _st[0] -= _v; } /* 0x420107EF: fsubp st(1) */ 8048 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x420107F1: fstp dword ptr [ebp - 0x18] */ 8049 ecx = MEM32(ebp + (-0x18)); /* 0x420107F4: mov ecx, dword ptr [ebp - 0x18] */ 8050 MEM32(ebp + (-0xC)) = ecx; /* 0x420107F7: mov dword ptr [ebp - 0xc], ecx */ 8051 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x420107FA: fstp dword ptr [ebp - 0x1c] */ 8052 edx = MEM32(ebp + (-0x1C)); /* 0x420107FD: mov edx, dword ptr [ebp - 0x1c] */ 8053 MEM32(ebp + (-0x10)) = edx; /* 0x42010800: mov dword ptr [ebp - 0x10], edx */ 8054 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42010803: fstp st(0) */ 8055 fp_push(*(float*)&MEM32(eax + 0xC)); /* 0x42010805: fld dword ptr [eax + 0xc] */ 8056 _st[0] += _st[0]; /* 0x42010808: fadd st(0), st(0) */ 8057 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x4201080A: fstp dword ptr [ebp - 4] */ 8058 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x4201080D: fmul dword ptr [ebp - 4] */ 8059 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x42010810: fld dword ptr [ebp - 0x28] */ 8060 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x42010813: fmul dword ptr [ebp - 4] */ 8061 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x42010816: fstp dword ptr [ebp - 0x28] */ 8062 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x42010819: fld dword ptr [ebp - 0x24] */ 8063 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x4201081C: fmul dword ptr [ebp - 4] */ 8064 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x4201081F: fstp dword ptr [ebp - 0x24] */ 8065 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x42010822: fld dword ptr [ebp - 8] */ 8066 _st[0] += _st[0]; /* 0x42010825: fadd st(0), st(0) */ 8067 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x42010827: fld dword ptr [ebp - 0x10] */ 8068 _st[0] += _st[0]; /* 0x4201082A: fadd st(0), st(0) */ 8069 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x4201082C: fstp dword ptr [ebp - 0x10] */ 8070 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x4201082F: fld dword ptr [ebp - 0xc] */ 8071 _st[0] += _st[0]; /* 0x42010832: fadd st(0), st(0) */ 8072 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x42010834: fstp dword ptr [ebp - 0xc] */ 8073 fp_xch(1); /* 0x42010837: fxch st(1) */ 8074 _st[0] += (double)*(float*)ADDR(esi + 0x60); /* 0x42010839: fadd dword ptr [esi + 0x60] */ 8075 _st[0] += _st[1]; /* 0x4201083C: fadd st(1) */ 8076 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x60) = _v; } /* 0x4201083E: fstp dword ptr [esi + 0x60] */ 8077 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42010841: fstp st(0) */ 8078 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x42010843: fld dword ptr [ebp - 0x10] */ 8079 _st[0] += (double)*(float*)ADDR(esi + 0x64); /* 0x42010846: fadd dword ptr [esi + 0x64] */ 8080 _st[0] += (double)*(float*)ADDR(ebp + (-0x28)); /* 0x42010849: fadd dword ptr [ebp - 0x28] */ 8081 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x64) = _v; } /* 0x4201084C: fstp dword ptr [esi + 0x64] */ 8082 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x4201084F: fld dword ptr [ebp - 0xc] */ 8083 _st[0] += (double)*(float*)ADDR(esi + 0x68); /* 0x42010852: fadd dword ptr [esi + 0x68] */ 8084 _st[0] += (double)*(float*)ADDR(ebp + (-0x24)); /* 0x42010855: fadd dword ptr [ebp - 0x24] */ 8085 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x68) = _v; } /* 0x42010858: fstp dword ptr [esi + 0x68] */ 8086 L_4201085B: 8087 ecx = MEM32(esi + 0x28); /* 0x4201085B: mov ecx, dword ptr [esi + 0x28] */ 8088 PUSH32(esp, esi); /* 0x4201085E: push esi */ 8089 RECOMP_ICALL(0x420106F0u); /* 0x4201085F: call 0x420106f0 */ /* not lifted */ 8090 RECOMP_FLAGS_IN(); 8091 L_42010864: 8092 MEM32(esi + 0x28) = 0; /* 0x42010864: mov dword ptr [esi + 0x28], 0 */ 8093 esi = POP32_VAL(esp); /* 0x4201086B: pop esi */ 8094 esp = ebp; /* 0x4201086C: mov esp, ebp */ 8095 ebp = POP32_VAL(esp); /* 0x4201086E: pop ebp */ 8096 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4201086F: ret */ 8097 RECOMP_REGS_OUT(); 8098 } 8099 8100 void sub_42010870(void) { 8101 int _fpu_cmp = 0; 8102 uint32_t _cf = 0; 8103 int _df = 1; 8104 uint32_t _flag_k = FK_NONE; 8105 uint32_t _flag_a = 0, _flag_b = 0; 8106 uint32_t _itail_tgt = 0; 8107 RECOMP_REGS_LOCALS 8108 RECOMP_ENTER(0x42010870u); 8109 8110 L_42010870: 8111 PUSH32(esp, ebp); /* 0x42010870: push ebp */ 8112 ebp = esp; /* 0x42010871: mov ebp, esp */ 8113 eax = MEM32(ebp + 0x8); /* 0x42010873: mov eax, dword ptr [ebp + 8] */ 8114 MEM32(ecx + 0x2C) = eax; /* 0x42010876: mov dword ptr [ecx + 0x2c], eax */ 8115 ebp = POP32_VAL(esp); /* 0x42010879: pop ebp */ 8116 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4201087A: ret 4 */ 8117 RECOMP_REGS_OUT(); 8118 } 8119 8120 void sub_42010880(void) { 8121 int _fpu_cmp = 0; 8122 uint32_t _cf = 0; 8123 int _df = 1; 8124 uint32_t _flag_k = FK_NONE; 8125 uint32_t _flag_a = 0, _flag_b = 0; 8126 uint32_t _itail_tgt = 0; 8127 RECOMP_REGS_LOCALS 8128 RECOMP_ENTER(0x42010880u); 8129 8130 L_42010880: 8131 eax = MEM32(ecx + 0x2C); /* 0x42010880: mov eax, dword ptr [ecx + 0x2c] */ 8132 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42010883: ret */ 8133 RECOMP_REGS_OUT(); 8134 } 8135 8136 void sub_42010890(void) { 8137 int _fpu_cmp = 0; 8138 uint32_t _cf = 0; 8139 int _df = 1; 8140 uint32_t _flag_k = FK_NONE; 8141 uint32_t _flag_a = 0, _flag_b = 0; 8142 uint32_t _itail_tgt = 0; 8143 RECOMP_REGS_LOCALS 8144 RECOMP_ENTER(0x42010890u); 8145 8146 L_42010890: 8147 eax = MEM32(ecx + 0x8C); /* 0x42010890: mov eax, dword ptr [ecx + 0x8c] */ 8148 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42010896: ret */ 8149 RECOMP_REGS_OUT(); 8150 } 8151 8152 void sub_420108A0(void) { 8153 int _fpu_cmp = 0; 8154 uint32_t _cf = 0; 8155 int _df = 1; 8156 uint32_t _flag_k = FK_NONE; 8157 uint32_t _flag_a = 0, _flag_b = 0; 8158 uint32_t _itail_tgt = 0; 8159 RECOMP_REGS_LOCALS 8160 RECOMP_ENTER(0x420108A0u); 8161 8162 L_420108A0: 8163 goto L_42010D40; /* 0x420108A0: jmp 0x42010d40 */ 8164 L_42010D40: 8165 PUSH32(esp, ebp); /* 0x42010D40: push ebp */ 8166 ebp = esp; /* 0x42010D41: mov ebp, esp */ 8167 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x6Cu); 8168 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8169 esp = esp - 0x6Cu; /* 0x42010D43: sub esp, 0x6c */ 8170 _flag_k = FK_CMP; 8171 PUSH32(esp, edi); /* 0x42010D46: push edi */ 8172 edi = ecx; /* 0x42010D47: mov edi, ecx */ 8173 ecx = MEM32(edi + 0x28); /* 0x42010D49: mov ecx, dword ptr [edi + 0x28] */ 8174 /* test ecx, ecx */ /* 0x42010D4C: test ecx, ecx */ 8175 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8176 _cf = 0; 8177 _flag_k = FK_TEST; 8178 if (TEST_Z(_flag_a, _flag_b)) goto L_42010F52; /* 0x42010D4E: je 0x42010f52 */ 8179 L_42010D54: 8180 PUSH32(esp, esi); /* 0x42010D54: push esi */ 8181 RECOMP_ICALL(0x42011220u); /* 0x42010D55: call 0x42011220 */ /* not lifted */ 8182 RECOMP_FLAGS_IN(); 8183 esi = eax; /* 0x42010D5A: mov esi, eax */ 8184 eax = edi + 0x54; /* 0x42010D5C: lea eax, [edi + 0x54] */ 8185 ecx = MEM32(eax); /* 0x42010D5F: mov ecx, dword ptr [eax] */ 8186 edx = MEM32(eax + 0x4); /* 0x42010D61: mov edx, dword ptr [eax + 4] */ 8187 eax = MEM32(eax + 0x8); /* 0x42010D64: mov eax, dword ptr [eax + 8] */ 8188 MEM32(ebp + (-0x38)) = ecx; /* 0x42010D67: mov dword ptr [ebp - 0x38], ecx */ 8189 MEM32(ebp + (-0x34)) = edx; /* 0x42010D6A: mov dword ptr [ebp - 0x34], edx */ 8190 ecx = esi; /* 0x42010D6D: mov ecx, esi */ 8191 edx = MEM32(ecx); /* 0x42010D6F: mov edx, dword ptr [ecx] */ 8192 MEM32(ebp + (-0x30)) = eax; /* 0x42010D71: mov dword ptr [ebp - 0x30], eax */ 8193 eax = MEM32(ecx + 0x4); /* 0x42010D74: mov eax, dword ptr [ecx + 4] */ 8194 ecx = MEM32(ecx + 0x8); /* 0x42010D77: mov ecx, dword ptr [ecx + 8] */ 8195 MEM32(ebp + (-0x50)) = edx; /* 0x42010D7A: mov dword ptr [ebp - 0x50], edx */ 8196 edx = ebp + (-0x38); /* 0x42010D7D: lea edx, [ebp - 0x38] */ 8197 MEM32(ebp + (-0x48)) = ecx; /* 0x42010D80: mov dword ptr [ebp - 0x48], ecx */ 8198 PUSH32(esp, edx); /* 0x42010D83: push edx */ 8199 ecx = ebp + (-0x50); /* 0x42010D84: lea ecx, [ebp - 0x50] */ 8200 MEM32(ebp + (-0x4C)) = eax; /* 0x42010D87: mov dword ptr [ebp - 0x4c], eax */ 8201 RECOMP_ICALL(MEM32(0x420180A4)); /* 0x42010D8A: call dword ptr [0x420180a4] */ 8202 RECOMP_FLAGS_IN(); 8203 ecx = MEM32(eax); /* 0x42010D90: mov ecx, dword ptr [eax] */ 8204 MEM32(ebp + (-0x20)) = ecx; /* 0x42010D92: mov dword ptr [ebp - 0x20], ecx */ 8205 edx = MEM32(eax + 0x4); /* 0x42010D95: mov edx, dword ptr [eax + 4] */ 8206 MEM32(ebp + (-0x1C)) = edx; /* 0x42010D98: mov dword ptr [ebp - 0x1c], edx */ 8207 eax = MEM32(eax + 0x8); /* 0x42010D9B: mov eax, dword ptr [eax + 8] */ 8208 ecx = esi; /* 0x42010D9E: mov ecx, esi */ 8209 edx = MEM32(ecx); /* 0x42010DA0: mov edx, dword ptr [ecx] */ 8210 MEM32(ebp + (-0x18)) = eax; /* 0x42010DA2: mov dword ptr [ebp - 0x18], eax */ 8211 eax = MEM32(ecx + 0x4); /* 0x42010DA5: mov eax, dword ptr [ecx + 4] */ 8212 ecx = MEM32(ecx + 0x8); /* 0x42010DA8: mov ecx, dword ptr [ecx + 8] */ 8213 MEM32(ebp + (-0x5C)) = edx; /* 0x42010DAB: mov dword ptr [ebp - 0x5c], edx */ 8214 edx = ebp + (-0x20); /* 0x42010DAE: lea edx, [ebp - 0x20] */ 8215 MEM32(ebp + (-0x54)) = ecx; /* 0x42010DB1: mov dword ptr [ebp - 0x54], ecx */ 8216 PUSH32(esp, edx); /* 0x42010DB4: push edx */ 8217 ecx = ebp + (-0x5C); /* 0x42010DB5: lea ecx, [ebp - 0x5c] */ 8218 MEM32(ebp + (-0x58)) = eax; /* 0x42010DB8: mov dword ptr [ebp - 0x58], eax */ 8219 RECOMP_ICALL(MEM32(0x420180A4)); /* 0x42010DBB: call dword ptr [0x420180a4] */ 8220 RECOMP_FLAGS_IN(); 8221 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x42010DC1: fld dword ptr [esi + 0xc] */ 8222 ecx = MEM32(eax); /* 0x42010DC4: mov ecx, dword ptr [eax] */ 8223 _st[0] += _st[0]; /* 0x42010DC6: fadd st(0), st(0) */ 8224 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x42010DC8: fld dword ptr [ebp - 0x20] */ 8225 MEM32(ebp + (-0x2C)) = ecx; /* 0x42010DCB: mov dword ptr [ebp - 0x2c], ecx */ 8226 edx = MEM32(eax + 0x4); /* 0x42010DCE: mov edx, dword ptr [eax + 4] */ 8227 _st[0] *= _st[1]; /* 0x42010DD1: fmul st(1) */ 8228 MEM32(ebp + (-0x28)) = edx; /* 0x42010DD3: mov dword ptr [ebp - 0x28], edx */ 8229 eax = MEM32(eax + 0x8); /* 0x42010DD6: mov eax, dword ptr [eax + 8] */ 8230 MEM32(ebp + (-0x24)) = eax; /* 0x42010DD9: mov dword ptr [ebp - 0x24], eax */ 8231 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x42010DDC: fstp dword ptr [ebp - 0x20] */ 8232 ecx = ebp + (-0x20); /* 0x42010DDF: lea ecx, [ebp - 0x20] */ 8233 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x42010DE2: fld dword ptr [ebp - 0x1c] */ 8234 PUSH32(esp, ecx); /* 0x42010DE5: push ecx */ 8235 _st[0] *= _st[1]; /* 0x42010DE6: fmul st(1) */ 8236 ecx = ebp + (-0x38); /* 0x42010DE8: lea ecx, [ebp - 0x38] */ 8237 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x42010DEB: fstp dword ptr [ebp - 0x1c] */ 8238 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x42010DEE: fld dword ptr [ebp - 0x18] */ 8239 _st[0] *= _st[1]; /* 0x42010DF1: fmul st(1) */ 8240 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x42010DF3: fstp dword ptr [ebp - 0x18] */ 8241 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42010DF6: fstp st(0) */ 8242 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x42010DF8: fld dword ptr [ebp - 0x2c] */ 8243 _st[0] += _st[0]; /* 0x42010DFB: fadd st(0), st(0) */ 8244 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x42010DFD: fstp dword ptr [ebp - 0x2c] */ 8245 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x42010E00: fld dword ptr [ebp - 0x28] */ 8246 _st[0] += _st[0]; /* 0x42010E03: fadd st(0), st(0) */ 8247 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x42010E05: fstp dword ptr [ebp - 0x28] */ 8248 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x42010E08: fld dword ptr [ebp - 0x24] */ 8249 _st[0] += _st[0]; /* 0x42010E0B: fadd st(0), st(0) */ 8250 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x42010E0D: fstp dword ptr [ebp - 0x24] */ 8251 RECOMP_ICALL(MEM32(0x4201808C)); /* 0x42010E10: call dword ptr [0x4201808c] */ 8252 RECOMP_FLAGS_IN(); 8253 edx = ebp + (-0x2C); /* 0x42010E16: lea edx, [ebp - 0x2c] */ 8254 PUSH32(esp, edx); /* 0x42010E19: push edx */ 8255 ecx = ebp + (-0x38); /* 0x42010E1A: lea ecx, [ebp - 0x38] */ 8256 RECOMP_ICALL(MEM32(0x4201808C)); /* 0x42010E1D: call dword ptr [0x4201808c] */ 8257 RECOMP_FLAGS_IN(); 8258 ecx = MEM32(ebp + (-0x34)); /* 0x42010E23: mov ecx, dword ptr [ebp - 0x34] */ 8259 eax = MEM32(ebp + (-0x38)); /* 0x42010E26: mov eax, dword ptr [ebp - 0x38] */ 8260 edx = MEM32(ebp + (-0x30)); /* 0x42010E29: mov edx, dword ptr [ebp - 0x30] */ 8261 MEM32(ebp + (-0x40)) = ecx; /* 0x42010E2C: mov dword ptr [ebp - 0x40], ecx */ 8262 ecx = MEM32(edi + 0x28); /* 0x42010E2F: mov ecx, dword ptr [edi + 0x28] */ 8263 MEM32(ebp + (-0x44)) = eax; /* 0x42010E32: mov dword ptr [ebp - 0x44], eax */ 8264 MEM32(ebp + (-0x3C)) = edx; /* 0x42010E35: mov dword ptr [ebp - 0x3c], edx */ 8265 RECOMP_ICALL(0x42011200u); /* 0x42010E38: call 0x42011200 */ /* not lifted */ 8266 RECOMP_FLAGS_IN(); 8267 ecx = MEM32(eax); /* 0x42010E3D: mov ecx, dword ptr [eax] */ 8268 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x42010E3F: fld dword ptr [ebp - 0x44] */ 8269 edx = MEM32(eax + 0x4); /* 0x42010E42: mov edx, dword ptr [eax + 4] */ 8270 eax = MEM32(eax + 0x8); /* 0x42010E45: mov eax, dword ptr [eax + 8] */ 8271 MEM32(ebp + (-0x14)) = ecx; /* 0x42010E48: mov dword ptr [ebp - 0x14], ecx */ 8272 _st[0] += (double)*(float*)ADDR(ebp + (-0x14)); /* 0x42010E4B: fadd dword ptr [ebp - 0x14] */ 8273 MEM32(ebp + (-0x10)) = edx; /* 0x42010E4E: mov dword ptr [ebp - 0x10], edx */ 8274 MEM32(ebp + (-0xC)) = eax; /* 0x42010E51: mov dword ptr [ebp - 0xc], eax */ 8275 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x42010E54: fstp dword ptr [ebp - 0x14] */ 8276 edx = MEM32(ebp + (-0x14)); /* 0x42010E57: mov edx, dword ptr [ebp - 0x14] */ 8277 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x42010E5A: fld dword ptr [ebp - 0x40] */ 8278 ecx = edi + 0xE8; /* 0x42010E5D: lea ecx, [edi + 0xe8] */ 8279 _st[0] += (double)*(float*)ADDR(ebp + (-0x10)); /* 0x42010E63: fadd dword ptr [ebp - 0x10] */ 8280 MEM32(ecx) = edx; /* 0x42010E66: mov dword ptr [ecx], edx */ 8281 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x42010E68: fstp dword ptr [ebp - 0x10] */ 8282 eax = MEM32(ebp + (-0x10)); /* 0x42010E6B: mov eax, dword ptr [ebp - 0x10] */ 8283 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x42010E6E: fld dword ptr [ebp - 0x3c] */ 8284 MEM32(ecx + 0x4) = eax; /* 0x42010E71: mov dword ptr [ecx + 4], eax */ 8285 _st[0] += (double)*(float*)ADDR(ebp + (-0xC)); /* 0x42010E74: fadd dword ptr [ebp - 0xc] */ 8286 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x42010E77: fstp dword ptr [ebp - 0xc] */ 8287 edx = MEM32(ebp + (-0xC)); /* 0x42010E7A: mov edx, dword ptr [ebp - 0xc] */ 8288 MEM32(ecx + 0x8) = edx; /* 0x42010E7D: mov dword ptr [ecx + 8], edx */ 8289 ecx = edi; /* 0x42010E80: mov ecx, edi */ 8290 RECOMP_ICALL(0x42011250u); /* 0x42010E82: call 0x42011250 */ /* not lifted */ 8291 RECOMP_FLAGS_IN(); 8292 ecx = MEM32(edi + 0x28); /* 0x42010E87: mov ecx, dword ptr [edi + 0x28] */ 8293 esi = eax; /* 0x42010E8A: mov esi, eax */ 8294 RECOMP_ICALL(0x42011220u); /* 0x42010E8C: call 0x42011220 */ /* not lifted */ 8295 RECOMP_FLAGS_IN(); 8296 edx = MEM32(eax + 0x4); /* 0x42010E91: mov edx, dword ptr [eax + 4] */ 8297 ecx = MEM32(eax); /* 0x42010E94: mov ecx, dword ptr [eax] */ 8298 MEM32(ebp + (-0x5C)) = edx; /* 0x42010E96: mov dword ptr [ebp - 0x5c], edx */ 8299 edx = MEM32(eax + 0xC); /* 0x42010E99: mov edx, dword ptr [eax + 0xc] */ 8300 MEM32(ebp + (-0x60)) = ecx; /* 0x42010E9C: mov dword ptr [ebp - 0x60], ecx */ 8301 ecx = MEM32(eax + 0x8); /* 0x42010E9F: mov ecx, dword ptr [eax + 8] */ 8302 MEM32(ebp + (-0x54)) = edx; /* 0x42010EA2: mov dword ptr [ebp - 0x54], edx */ 8303 fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x42010EA5: fld dword ptr [ebp - 0x54] */ 8304 _st[0] *= (double)*(float*)ADDR(esi); /* 0x42010EA8: fmul dword ptr [esi] */ 8305 MEM32(ebp + (-0x58)) = ecx; /* 0x42010EAA: mov dword ptr [ebp - 0x58], ecx */ 8306 fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x42010EAD: fld dword ptr [ebp - 0x58] */ 8307 _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x42010EB0: fmul dword ptr [esi + 4] */ 8308 { double _v = fp_pop(); _st[0] += _v; } /* 0x42010EB3: faddp st(1) */ 8309 fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x42010EB5: fld dword ptr [ebp - 0x5c] */ 8310 _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x42010EB8: fmul dword ptr [esi + 8] */ 8311 { double _v = fp_pop(); _st[0] -= _v; } /* 0x42010EBB: fsubp st(1) */ 8312 fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x42010EBD: fld dword ptr [ebp - 0x60] */ 8313 _st[0] *= (double)*(float*)ADDR(esi + 0xC); /* 0x42010EC0: fmul dword ptr [esi + 0xc] */ 8314 { double _v = fp_pop(); _st[0] += _v; } /* 0x42010EC3: faddp st(1) */ 8315 fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x42010EC5: fld dword ptr [ebp - 0x5c] */ 8316 _st[0] *= (double)*(float*)ADDR(esi + 0xC); /* 0x42010EC8: fmul dword ptr [esi + 0xc] */ 8317 fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x42010ECB: fld dword ptr [ebp - 0x58] */ 8318 _st[0] *= (double)*(float*)ADDR(esi); /* 0x42010ECE: fmul dword ptr [esi] */ 8319 { double _v = fp_pop(); _st[0] -= _v; } /* 0x42010ED0: fsubp st(1) */ 8320 fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x42010ED2: fld dword ptr [ebp - 0x54] */ 8321 _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x42010ED5: fmul dword ptr [esi + 4] */ 8322 { double _v = fp_pop(); _st[0] += _v; } /* 0x42010ED8: faddp st(1) */ 8323 fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x42010EDA: fld dword ptr [ebp - 0x60] */ 8324 _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x42010EDD: fmul dword ptr [esi + 8] */ 8325 { double _v = fp_pop(); _st[0] += _v; } /* 0x42010EE0: faddp st(1) */ 8326 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x42010EE2: fstp dword ptr [ebp - 4] */ 8327 fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x42010EE5: fld dword ptr [ebp - 0x5c] */ 8328 _st[0] *= (double)*(float*)ADDR(esi); /* 0x42010EE8: fmul dword ptr [esi] */ 8329 fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x42010EEA: fld dword ptr [ebp - 0x60] */ 8330 _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x42010EED: fmul dword ptr [esi + 4] */ 8331 { double _v = fp_pop(); _st[0] -= _v; } /* 0x42010EF0: fsubp st(1) */ 8332 fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x42010EF2: fld dword ptr [ebp - 0x58] */ 8333 _st[0] *= (double)*(float*)ADDR(esi + 0xC); /* 0x42010EF5: fmul dword ptr [esi + 0xc] */ 8334 { double _v = fp_pop(); _st[0] += _v; } /* 0x42010EF8: faddp st(1) */ 8335 fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x42010EFA: fld dword ptr [ebp - 0x54] */ 8336 _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x42010EFD: fmul dword ptr [esi + 8] */ 8337 { double _v = fp_pop(); _st[0] += _v; } /* 0x42010F00: faddp st(1) */ 8338 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x42010F02: fstp dword ptr [ebp - 8] */ 8339 fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x42010F05: fld dword ptr [ebp - 0x54] */ 8340 _st[0] *= (double)*(float*)ADDR(esi + 0xC); /* 0x42010F08: fmul dword ptr [esi + 0xc] */ 8341 fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x42010F0B: fld dword ptr [ebp - 0x60] */ 8342 _st[0] *= (double)*(float*)ADDR(esi); /* 0x42010F0E: fmul dword ptr [esi] */ 8343 fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x42010F10: fld dword ptr [ebp - 0x5c] */ 8344 _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x42010F13: fmul dword ptr [esi + 4] */ 8345 { double _v = fp_pop(); _st[0] += _v; } /* 0x42010F16: faddp st(1) */ 8346 fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x42010F18: fld dword ptr [ebp - 0x58] */ 8347 _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x42010F1B: fmul dword ptr [esi + 8] */ 8348 { double _v = fp_pop(); _st[0] += _v; } /* 0x42010F1E: faddp st(1) */ 8349 { double _v = fp_pop(); _st[0] -= _v; } /* 0x42010F20: fsubp st(1) */ 8350 eax = MEM32(ebp + (-0x4)); /* 0x42010F22: mov eax, dword ptr [ebp - 4] */ 8351 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x42010F25: fstp dword ptr [ebp - 0x54] */ 8352 ecx = MEM32(ebp + (-0x8)); /* 0x42010F28: mov ecx, dword ptr [ebp - 8] */ 8353 MEM32(ebp + (-0x5C)) = eax; /* 0x42010F2B: mov dword ptr [ebp - 0x5c], eax */ 8354 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x42010F2E: fstp dword ptr [ebp - 0x60] */ 8355 eax = MEM32(ebp + (-0x60)); /* 0x42010F31: mov eax, dword ptr [ebp - 0x60] */ 8356 MEM32(ebp + (-0x58)) = ecx; /* 0x42010F34: mov dword ptr [ebp - 0x58], ecx */ 8357 ecx = MEM32(ebp + (-0x5C)); /* 0x42010F37: mov ecx, dword ptr [ebp - 0x5c] */ 8358 edx = edi + 0xF4; /* 0x42010F3A: lea edx, [edi + 0xf4] */ 8359 MEM32(edx) = eax; /* 0x42010F40: mov dword ptr [edx], eax */ 8360 eax = MEM32(ebp + (-0x58)); /* 0x42010F42: mov eax, dword ptr [ebp - 0x58] */ 8361 MEM32(edx + 0x4) = ecx; /* 0x42010F45: mov dword ptr [edx + 4], ecx */ 8362 ecx = MEM32(ebp + (-0x54)); /* 0x42010F48: mov ecx, dword ptr [ebp - 0x54] */ 8363 MEM32(edx + 0x8) = eax; /* 0x42010F4B: mov dword ptr [edx + 8], eax */ 8364 MEM32(edx + 0xC) = ecx; /* 0x42010F4E: mov dword ptr [edx + 0xc], ecx */ 8365 esi = POP32_VAL(esp); /* 0x42010F51: pop esi */ 8366 L_42010F52: 8367 ecx = edi; /* 0x42010F52: mov ecx, edi */ 8368 RECOMP_ICALL(0x42011220u); /* 0x42010F54: call 0x42011220 */ /* not lifted */ 8369 RECOMP_FLAGS_IN(); 8370 PUSH32(esp, eax); /* 0x42010F59: push eax */ 8371 ecx = edi; /* 0x42010F5A: mov ecx, edi */ 8372 RECOMP_ICALL(0x42011200u); /* 0x42010F5C: call 0x42011200 */ /* not lifted */ 8373 RECOMP_FLAGS_IN(); 8374 PUSH32(esp, eax); /* 0x42010F61: push eax */ 8375 PUSH32(esp, edi); /* 0x42010F62: push edi */ 8376 ecx = ebp + (-0x6C); /* 0x42010F63: lea ecx, [ebp - 0x6c] */ 8377 RECOMP_ICALL(0x420063D0u); /* 0x42010F66: call 0x420063d0 */ /* not lifted */ 8378 RECOMP_FLAGS_IN(); 8379 edx = ebp + (-0x6C); /* 0x42010F6B: lea edx, [ebp - 0x6c] */ 8380 PUSH32(esp, edx); /* 0x42010F6E: push edx */ 8381 ecx = edi; /* 0x42010F6F: mov ecx, edi */ 8382 RECOMP_ICALL(0x420069D0u); /* 0x42010F71: call 0x420069d0 */ /* not lifted */ 8383 RECOMP_FLAGS_IN(); 8384 edi = POP32_VAL(esp); /* 0x42010F76: pop edi */ 8385 esp = ebp; /* 0x42010F77: mov esp, ebp */ 8386 ebp = POP32_VAL(esp); /* 0x42010F79: pop ebp */ 8387 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42010F7A: ret */ 8388 RECOMP_REGS_OUT(); 8389 } 8390 8391 void sub_420108B0(void) { 8392 int _fpu_cmp = 0; 8393 uint32_t _cf = 0; 8394 int _df = 1; 8395 uint32_t _flag_k = FK_NONE; 8396 uint32_t _flag_a = 0, _flag_b = 0; 8397 uint32_t _itail_tgt = 0; 8398 RECOMP_REGS_LOCALS 8399 RECOMP_ENTER(0x420108B0u); 8400 8401 L_420108B0: 8402 PUSH32(esp, ebp); /* 0x420108B0: push ebp */ 8403 ebp = esp; /* 0x420108B1: mov ebp, esp */ 8404 eax = MEM32(ebp + 0x8); /* 0x420108B3: mov eax, dword ptr [ebp + 8] */ 8405 PUSH32(esp, esi); /* 0x420108B6: push esi */ 8406 PUSH32(esp, edi); /* 0x420108B7: push edi */ 8407 edx = ecx + 0x54; /* 0x420108B8: lea edx, [ecx + 0x54] */ 8408 esi = eax; /* 0x420108BB: mov esi, eax */ 8409 edi = MEM32(esi); /* 0x420108BD: mov edi, dword ptr [esi] */ 8410 MEM32(edx) = edi; /* 0x420108BF: mov dword ptr [edx], edi */ 8411 edi = MEM32(esi + 0x4); /* 0x420108C1: mov edi, dword ptr [esi + 4] */ 8412 MEM32(edx + 0x4) = edi; /* 0x420108C4: mov dword ptr [edx + 4], edi */ 8413 esi = MEM32(esi + 0x8); /* 0x420108C7: mov esi, dword ptr [esi + 8] */ 8414 MEM32(edx + 0x8) = esi; /* 0x420108CA: mov dword ptr [edx + 8], esi */ 8415 edx = MEM32(eax); /* 0x420108CD: mov edx, dword ptr [eax] */ 8416 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xDCu); 8417 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8418 ecx = ecx + 0xDCu; /* 0x420108CF: add ecx, 0xdc */ 8419 _flag_k = FK_ADD; 8420 MEM32(ecx) = edx; /* 0x420108D5: mov dword ptr [ecx], edx */ 8421 edx = MEM32(eax + 0x4); /* 0x420108D7: mov edx, dword ptr [eax + 4] */ 8422 MEM32(ecx + 0x4) = edx; /* 0x420108DA: mov dword ptr [ecx + 4], edx */ 8423 eax = MEM32(eax + 0x8); /* 0x420108DD: mov eax, dword ptr [eax + 8] */ 8424 edi = POP32_VAL(esp); /* 0x420108E0: pop edi */ 8425 MEM32(ecx + 0x8) = eax; /* 0x420108E1: mov dword ptr [ecx + 8], eax */ 8426 esi = POP32_VAL(esp); /* 0x420108E4: pop esi */ 8427 ebp = POP32_VAL(esp); /* 0x420108E5: pop ebp */ 8428 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x420108E6: ret 4 */ 8429 RECOMP_REGS_OUT(); 8430 } 8431 8432 void sub_420108F0(void) { 8433 int _fpu_cmp = 0; 8434 uint32_t _cf = 0; 8435 int _df = 1; 8436 uint32_t _flag_k = FK_NONE; 8437 uint32_t _flag_a = 0, _flag_b = 0; 8438 uint32_t _itail_tgt = 0; 8439 RECOMP_REGS_LOCALS 8440 RECOMP_ENTER(0x420108F0u); 8441 8442 L_420108F0: 8443 PUSH32(esp, ebp); /* 0x420108F0: push ebp */ 8444 ebp = esp; /* 0x420108F1: mov ebp, esp */ 8445 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8446 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8447 esp = esp - 0xCu; /* 0x420108F3: sub esp, 0xc */ 8448 _flag_k = FK_CMP; 8449 edx = MEM32(ebp + 0x8); /* 0x420108F6: mov edx, dword ptr [ebp + 8] */ 8450 fp_push(*(float*)&MEM32(edx)); /* 0x420108F9: fld dword ptr [edx] */ 8451 PUSH32(esp, esi); /* 0x420108FB: push esi */ 8452 esi = ecx; /* 0x420108FC: mov esi, ecx */ 8453 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0x54)); /* 0x420108FE: fcomp dword ptr [esi + 0x54] */ 8454 fp_pop(); 8455 ecx = esi + 0x54; /* 0x42010901: lea ecx, [esi + 0x54] */ 8456 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42010904: fnstsw ax */ 8457 /* test HI8(eax), 0x40u */ /* 0x42010906: test ah, 0x40 */ 8458 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 8459 _cf = 0; 8460 _flag_k = FK_NARROW(FK_TEST, 24); 8461 if (TEST_Z(_flag_a, _flag_b)) goto L_42010925; /* 0x42010909: je 0x42010925 */ 8462 L_4201090B: 8463 fp_push(*(float*)&MEM32(edx + 0x4)); /* 0x4201090B: fld dword ptr [edx + 4] */ 8464 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x4)); /* 0x4201090E: fcomp dword ptr [ecx + 4] */ 8465 fp_pop(); 8466 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42010911: fnstsw ax */ 8467 /* test HI8(eax), 0x40u */ /* 0x42010913: test ah, 0x40 */ 8468 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 8469 _cf = 0; 8470 _flag_k = FK_NARROW(FK_TEST, 24); 8471 if (TEST_Z(_flag_a, _flag_b)) goto L_42010925; /* 0x42010916: je 0x42010925 */ 8472 L_42010918: 8473 fp_push(*(float*)&MEM32(edx + 0x8)); /* 0x42010918: fld dword ptr [edx + 8] */ 8474 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x8)); /* 0x4201091B: fcomp dword ptr [ecx + 8] */ 8475 fp_pop(); 8476 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4201091E: fnstsw ax */ 8477 /* test HI8(eax), 0x40u */ /* 0x42010920: test ah, 0x40 */ 8478 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 8479 _cf = 0; 8480 _flag_k = FK_NARROW(FK_TEST, 24); 8481 if (TEST_NZ(_flag_a, _flag_b)) goto L_42010976; /* 0x42010923: jne 0x42010976 */ 8482 L_42010925: 8483 PUSH32(esp, edi); /* 0x42010925: push edi */ 8484 eax = ecx; /* 0x42010926: mov eax, ecx */ 8485 edi = MEM32(eax); /* 0x42010928: mov edi, dword ptr [eax] */ 8486 MEM32(ebp + (-0xC)) = edi; /* 0x4201092A: mov dword ptr [ebp - 0xc], edi */ 8487 edi = MEM32(eax + 0x4); /* 0x4201092D: mov edi, dword ptr [eax + 4] */ 8488 eax = MEM32(eax + 0x8); /* 0x42010930: mov eax, dword ptr [eax + 8] */ 8489 MEM32(ebp + (-0x4)) = eax; /* 0x42010933: mov dword ptr [ebp - 4], eax */ 8490 eax = edx; /* 0x42010936: mov eax, edx */ 8491 MEM32(ebp + (-0x8)) = edi; /* 0x42010938: mov dword ptr [ebp - 8], edi */ 8492 edi = MEM32(eax); /* 0x4201093B: mov edi, dword ptr [eax] */ 8493 MEM32(ecx) = edi; /* 0x4201093D: mov dword ptr [ecx], edi */ 8494 edi = MEM32(eax + 0x4); /* 0x4201093F: mov edi, dword ptr [eax + 4] */ 8495 MEM32(ecx + 0x4) = edi; /* 0x42010942: mov dword ptr [ecx + 4], edi */ 8496 eax = MEM32(eax + 0x8); /* 0x42010945: mov eax, dword ptr [eax + 8] */ 8497 MEM32(ecx + 0x8) = eax; /* 0x42010948: mov dword ptr [ecx + 8], eax */ 8498 eax = MEM32(edx); /* 0x4201094B: mov eax, dword ptr [edx] */ 8499 ecx = esi + 0xDC; /* 0x4201094D: lea ecx, [esi + 0xdc] */ 8500 MEM32(ecx) = eax; /* 0x42010953: mov dword ptr [ecx], eax */ 8501 eax = MEM32(edx + 0x4); /* 0x42010955: mov eax, dword ptr [edx + 4] */ 8502 MEM32(ecx + 0x4) = eax; /* 0x42010958: mov dword ptr [ecx + 4], eax */ 8503 edx = MEM32(edx + 0x8); /* 0x4201095B: mov edx, dword ptr [edx + 8] */ 8504 PUSH32(esp, 1); /* 0x4201095E: push 1 */ 8505 eax = ebp + (-0xC); /* 0x42010960: lea eax, [ebp - 0xc] */ 8506 MEM32(ecx + 0x8) = edx; /* 0x42010963: mov dword ptr [ecx + 8], edx */ 8507 PUSH32(esp, eax); /* 0x42010966: push eax */ 8508 ecx = esi; /* 0x42010967: mov ecx, esi */ 8509 RECOMP_ICALL(0x42012A50u); /* 0x42010969: call 0x42012a50 */ /* not lifted */ 8510 RECOMP_FLAGS_IN(); 8511 ecx = esi; /* 0x4201096E: mov ecx, esi */ 8512 RECOMP_ICALL(0x42010D40u); /* 0x42010970: call 0x42010d40 */ /* not lifted */ 8513 RECOMP_FLAGS_IN(); 8514 edi = POP32_VAL(esp); /* 0x42010975: pop edi */ 8515 L_42010976: 8516 esi = POP32_VAL(esp); /* 0x42010976: pop esi */ 8517 esp = ebp; /* 0x42010977: mov esp, ebp */ 8518 ebp = POP32_VAL(esp); /* 0x42010979: pop ebp */ 8519 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4201097A: ret 4 */ 8520 RECOMP_REGS_OUT(); 8521 } 8522 8523 void sub_42010980(void) { 8524 int _fpu_cmp = 0; 8525 uint32_t _cf = 0; 8526 int _df = 1; 8527 uint32_t _flag_k = FK_NONE; 8528 uint32_t _flag_a = 0, _flag_b = 0; 8529 uint32_t _itail_tgt = 0; 8530 RECOMP_REGS_LOCALS 8531 RECOMP_ENTER(0x42010980u); 8532 8533 L_42010980: 8534 PUSH32(esp, ebp); /* 0x42010980: push ebp */ 8535 ebp = esp; /* 0x42010981: mov ebp, esp */ 8536 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 8537 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8538 esp = esp - 0x18u; /* 0x42010983: sub esp, 0x18 */ 8539 _flag_k = FK_CMP; 8540 edx = MEM32(ebp + 0x8); /* 0x42010986: mov edx, dword ptr [ebp + 8] */ 8541 fp_push(*(float*)&MEM32(edx)); /* 0x42010989: fld dword ptr [edx] */ 8542 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x54)); /* 0x4201098B: fcomp dword ptr [ecx + 0x54] */ 8543 fp_pop(); 8544 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4201098E: fnstsw ax */ 8545 /* test HI8(eax), 0x40u */ /* 0x42010990: test ah, 0x40 */ 8546 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 8547 _cf = 0; 8548 _flag_k = FK_NARROW(FK_TEST, 24); 8549 if (TEST_Z(_flag_a, _flag_b)) goto L_420109AF; /* 0x42010993: je 0x420109af */ 8550 L_42010995: 8551 fp_push(*(float*)&MEM32(edx + 0x4)); /* 0x42010995: fld dword ptr [edx + 4] */ 8552 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x58)); /* 0x42010998: fcomp dword ptr [ecx + 0x58] */ 8553 fp_pop(); 8554 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4201099B: fnstsw ax */ 8555 /* test HI8(eax), 0x40u */ /* 0x4201099D: test ah, 0x40 */ 8556 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 8557 _cf = 0; 8558 _flag_k = FK_NARROW(FK_TEST, 24); 8559 if (TEST_Z(_flag_a, _flag_b)) goto L_420109AF; /* 0x420109A0: je 0x420109af */ 8560 L_420109A2: 8561 fp_push(*(float*)&MEM32(edx + 0x8)); /* 0x420109A2: fld dword ptr [edx + 8] */ 8562 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x5C)); /* 0x420109A5: fcomp dword ptr [ecx + 0x5c] */ 8563 fp_pop(); 8564 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x420109A8: fnstsw ax */ 8565 /* test HI8(eax), 0x40u */ /* 0x420109AA: test ah, 0x40 */ 8566 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 8567 _cf = 0; 8568 _flag_k = FK_NARROW(FK_TEST, 24); 8569 if (TEST_NZ(_flag_a, _flag_b)) goto L_42010A1C; /* 0x420109AD: jne 0x42010a1c */ 8570 L_420109AF: 8571 PUSH32(esp, esi); /* 0x420109AF: push esi */ 8572 eax = edx; /* 0x420109B0: mov eax, edx */ 8573 esi = MEM32(eax); /* 0x420109B2: mov esi, dword ptr [eax] */ 8574 MEM32(ecx + 0x54) = esi; /* 0x420109B4: mov dword ptr [ecx + 0x54], esi */ 8575 esi = MEM32(eax + 0x4); /* 0x420109B7: mov esi, dword ptr [eax + 4] */ 8576 MEM32(ecx + 0x58) = esi; /* 0x420109BA: mov dword ptr [ecx + 0x58], esi */ 8577 eax = MEM32(eax + 0x8); /* 0x420109BD: mov eax, dword ptr [eax + 8] */ 8578 MEM32(ecx + 0x5C) = eax; /* 0x420109C0: mov dword ptr [ecx + 0x5c], eax */ 8579 esi = edx; /* 0x420109C3: mov esi, edx */ 8580 PUSH32(esp, edi); /* 0x420109C5: push edi */ 8581 edi = MEM32(esi); /* 0x420109C6: mov edi, dword ptr [esi] */ 8582 eax = ecx + 0xDC; /* 0x420109C8: lea eax, [ecx + 0xdc] */ 8583 MEM32(eax) = edi; /* 0x420109CE: mov dword ptr [eax], edi */ 8584 edi = MEM32(esi + 0x4); /* 0x420109D0: mov edi, dword ptr [esi + 4] */ 8585 MEM32(eax + 0x4) = edi; /* 0x420109D3: mov dword ptr [eax + 4], edi */ 8586 esi = MEM32(esi + 0x8); /* 0x420109D6: mov esi, dword ptr [esi + 8] */ 8587 MEM32(eax + 0x8) = esi; /* 0x420109D9: mov dword ptr [eax + 8], esi */ 8588 eax = MEM32(edx); /* 0x420109DC: mov eax, dword ptr [edx] */ 8589 MEM32(ebp + (-0xC)) = eax; /* 0x420109DE: mov dword ptr [ebp - 0xc], eax */ 8590 eax = MEM32(edx + 0x4); /* 0x420109E1: mov eax, dword ptr [edx + 4] */ 8591 edx = MEM32(edx + 0x8); /* 0x420109E4: mov edx, dword ptr [edx + 8] */ 8592 MEM32(ebp + (-0x8)) = eax; /* 0x420109E7: mov dword ptr [ebp - 8], eax */ 8593 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x420109EA: fld dword ptr [ebp - 8] */ 8594 _st[0] += (double)*(float*)ADDR(0x42018670); /* 0x420109ED: fadd dword ptr [0x42018670] */ 8595 eax = MEM32(ebp + (-0xC)); /* 0x420109F3: mov eax, dword ptr [ebp - 0xc] */ 8596 MEM32(ebp + (-0x4)) = edx; /* 0x420109F6: mov dword ptr [ebp - 4], edx */ 8597 MEM32(ebp + (-0x4)) = edx; /* 0x420109F9: mov dword ptr [ebp - 4], edx */ 8598 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x420109FC: fstp dword ptr [ebp - 8] */ 8599 edx = MEM32(ebp + (-0x8)); /* 0x420109FF: mov edx, dword ptr [ebp - 8] */ 8600 MEM32(ebp + (-0x14)) = edx; /* 0x42010A02: mov dword ptr [ebp - 0x14], edx */ 8601 MEM32(ebp + (-0xC)) = eax; /* 0x42010A05: mov dword ptr [ebp - 0xc], eax */ 8602 MEM32(ebp + (-0x18)) = eax; /* 0x42010A08: mov dword ptr [ebp - 0x18], eax */ 8603 eax = MEM32(ebp + (-0x4)); /* 0x42010A0B: mov eax, dword ptr [ebp - 4] */ 8604 edx = ebp + (-0x18); /* 0x42010A0E: lea edx, [ebp - 0x18] */ 8605 PUSH32(esp, edx); /* 0x42010A11: push edx */ 8606 MEM32(ebp + (-0x10)) = eax; /* 0x42010A12: mov dword ptr [ebp - 0x10], eax */ 8607 RECOMP_ICALL(0x420108F0u); /* 0x42010A15: call 0x420108f0 */ /* not lifted */ 8608 RECOMP_FLAGS_IN(); 8609 edi = POP32_VAL(esp); /* 0x42010A1A: pop edi */ 8610 esi = POP32_VAL(esp); /* 0x42010A1B: pop esi */ 8611 L_42010A1C: 8612 esp = ebp; /* 0x42010A1C: mov esp, ebp */ 8613 ebp = POP32_VAL(esp); /* 0x42010A1E: pop ebp */ 8614 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42010A1F: ret 4 */ 8615 RECOMP_REGS_OUT(); 8616 } 8617 8618 void sub_42010A30(void) { 8619 int _fpu_cmp = 0; 8620 uint32_t _cf = 0; 8621 int _df = 1; 8622 uint32_t _flag_k = FK_NONE; 8623 uint32_t _flag_a = 0, _flag_b = 0; 8624 uint32_t _itail_tgt = 0; 8625 RECOMP_REGS_LOCALS 8626 RECOMP_ENTER(0x42010A30u); 8627 8628 L_42010A30: 8629 PUSH32(esp, ebp); /* 0x42010A30: push ebp */ 8630 ebp = esp; /* 0x42010A31: mov ebp, esp */ 8631 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 8632 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8633 esp = esp - 0x24u; /* 0x42010A33: sub esp, 0x24 */ 8634 _flag_k = FK_CMP; 8635 PUSH32(esp, ebx); /* 0x42010A36: push ebx */ 8636 PUSH32(esp, esi); /* 0x42010A37: push esi */ 8637 esi = ecx; /* 0x42010A38: mov esi, ecx */ 8638 ecx = MEM32(ebp + 0xC); /* 0x42010A3A: mov ecx, dword ptr [ebp + 0xc] */ 8639 fp_push(*(float*)&MEM32(ecx + 0xC)); /* 0x42010A3D: fld dword ptr [ecx + 0xc] */ 8640 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 8641 SET_LO8(ebx, 0); /* 0x42010A40: xor bl, bl */ 8642 _cf = 0; 8643 _flag_k = FK_NARROW(FK_TEST, 24); 8644 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0x88)); /* 0x42010A42: fcomp dword ptr [esi + 0x88] */ 8645 fp_pop(); 8646 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42010A48: fnstsw ax */ 8647 /* test HI8(eax), 0x40u */ /* 0x42010A4A: test ah, 0x40 */ 8648 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 8649 _cf = 0; 8650 _flag_k = FK_NARROW(FK_TEST, 24); 8651 if (TEST_Z(_flag_a, _flag_b)) goto L_42010A7F; /* 0x42010A4D: je 0x42010a7f */ 8652 L_42010A4F: 8653 fp_push(*(float*)&MEM32(ecx)); /* 0x42010A4F: fld dword ptr [ecx] */ 8654 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0x7C)); /* 0x42010A51: fcomp dword ptr [esi + 0x7c] */ 8655 fp_pop(); 8656 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42010A54: fnstsw ax */ 8657 /* test HI8(eax), 0x40u */ /* 0x42010A56: test ah, 0x40 */ 8658 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 8659 _cf = 0; 8660 _flag_k = FK_NARROW(FK_TEST, 24); 8661 if (TEST_Z(_flag_a, _flag_b)) goto L_42010A7F; /* 0x42010A59: je 0x42010a7f */ 8662 L_42010A5B: 8663 fp_push(*(float*)&MEM32(ecx + 0x4)); /* 0x42010A5B: fld dword ptr [ecx + 4] */ 8664 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0x80)); /* 0x42010A5E: fcomp dword ptr [esi + 0x80] */ 8665 fp_pop(); 8666 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42010A64: fnstsw ax */ 8667 /* test HI8(eax), 0x40u */ /* 0x42010A66: test ah, 0x40 */ 8668 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 8669 _cf = 0; 8670 _flag_k = FK_NARROW(FK_TEST, 24); 8671 if (TEST_Z(_flag_a, _flag_b)) goto L_42010A7F; /* 0x42010A69: je 0x42010a7f */ 8672 L_42010A6B: 8673 fp_push(*(float*)&MEM32(ecx + 0x8)); /* 0x42010A6B: fld dword ptr [ecx + 8] */ 8674 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0x84)); /* 0x42010A6E: fcomp dword ptr [esi + 0x84] */ 8675 fp_pop(); 8676 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42010A74: fnstsw ax */ 8677 /* test HI8(eax), 0x40u */ /* 0x42010A76: test ah, 0x40 */ 8678 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 8679 _cf = 0; 8680 _flag_k = FK_NARROW(FK_TEST, 24); 8681 if (TEST_NZ(_flag_a, _flag_b)) goto L_42010B60; /* 0x42010A79: jne 0x42010b60 */ 8682 L_42010A7F: 8683 eax = ecx; /* 0x42010A7F: mov eax, ecx */ 8684 edx = MEM32(eax); /* 0x42010A81: mov edx, dword ptr [eax] */ 8685 MEM32(esi + 0x7C) = edx; /* 0x42010A83: mov dword ptr [esi + 0x7c], edx */ 8686 edx = MEM32(eax + 0x4); /* 0x42010A86: mov edx, dword ptr [eax + 4] */ 8687 MEM32(esi + 0x80) = edx; /* 0x42010A89: mov dword ptr [esi + 0x80], edx */ 8688 edx = MEM32(eax + 0x8); /* 0x42010A8F: mov edx, dword ptr [eax + 8] */ 8689 MEM32(esi + 0x84) = edx; /* 0x42010A92: mov dword ptr [esi + 0x84], edx */ 8690 eax = MEM32(eax + 0xC); /* 0x42010A98: mov eax, dword ptr [eax + 0xc] */ 8691 MEM32(esi + 0x88) = eax; /* 0x42010A9B: mov dword ptr [esi + 0x88], eax */ 8692 eax = MEM32(ecx); /* 0x42010AA1: mov eax, dword ptr [ecx] */ 8693 edx = esi + 0x6C; /* 0x42010AA3: lea edx, [esi + 0x6c] */ 8694 MEM32(edx) = eax; /* 0x42010AA6: mov dword ptr [edx], eax */ 8695 eax = MEM32(ecx + 0x4); /* 0x42010AA8: mov eax, dword ptr [ecx + 4] */ 8696 MEM32(edx + 0x4) = eax; /* 0x42010AAB: mov dword ptr [edx + 4], eax */ 8697 eax = MEM32(ecx + 0x8); /* 0x42010AAE: mov eax, dword ptr [ecx + 8] */ 8698 MEM32(edx + 0x8) = eax; /* 0x42010AB1: mov dword ptr [edx + 8], eax */ 8699 ecx = MEM32(ecx + 0xC); /* 0x42010AB4: mov ecx, dword ptr [ecx + 0xc] */ 8700 MEM32(edx + 0xC) = ecx; /* 0x42010AB7: mov dword ptr [edx + 0xc], ecx */ 8701 PUSH32(esp, 0); /* 0x42010ABA: push 0 */ 8702 ecx = esi; /* 0x42010ABC: mov ecx, esi */ 8703 RECOMP_ICALL(0x420112C0u); /* 0x42010ABE: call 0x420112c0 */ /* not lifted */ 8704 RECOMP_FLAGS_IN(); 8705 fp_push(*(float*)&MEM32(esi + 0x68)); /* 0x42010AC3: fld dword ptr [esi + 0x68] */ 8706 fp_push(*(float*)&MEM32(esi + 0x64)); /* 0x42010AC6: fld dword ptr [esi + 0x64] */ 8707 ecx = esi; /* 0x42010AC9: mov ecx, esi */ 8708 fp_push(*(float*)&MEM32(esi + 0x60)); /* 0x42010ACB: fld dword ptr [esi + 0x60] */ 8709 fp_push(_st[0]); /* 0x42010ACE: fld st(0) */ 8710 _st[0] *= _st[1]; /* 0x42010AD0: fmul st(1) */ 8711 fp_push(_st[2]); /* 0x42010AD2: fld st(2) */ 8712 _st[0] *= _st[3]; /* 0x42010AD4: fmul st(3) */ 8713 { double _v = fp_pop(); _st[0] += _v; } /* 0x42010AD6: faddp st(1) */ 8714 fp_push(_st[3]); /* 0x42010AD8: fld st(3) */ 8715 _st[0] *= _st[4]; /* 0x42010ADA: fmul st(4) */ 8716 { double _v = fp_pop(); _st[0] += _v; } /* 0x42010ADC: faddp st(1) */ 8717 _st[0] = sqrt(_st[0]); /* 0x42010ADE: fsqrt */ 8718 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x42010AE0: fstp dword ptr [ebp + 0xc] */ 8719 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42010AE3: fstp st(0) */ 8720 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42010AE5: fstp st(0) */ 8721 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42010AE7: fstp st(0) */ 8722 RECOMP_ICALL(0x42011260u); /* 0x42010AE9: call 0x42011260 */ /* not lifted */ 8723 RECOMP_FLAGS_IN(); 8724 edx = MEM32(eax); /* 0x42010AEE: mov edx, dword ptr [eax] */ 8725 ecx = MEM32(eax + 0x4); /* 0x42010AF0: mov ecx, dword ptr [eax + 4] */ 8726 MEM32(ebp + (-0xC)) = edx; /* 0x42010AF3: mov dword ptr [ebp - 0xc], edx */ 8727 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x42010AF6: fld dword ptr [ebp - 0xc] */ 8728 _st[0] *= (double)*(float*)ADDR(ebp + 0xC); /* 0x42010AF9: fmul dword ptr [ebp + 0xc] */ 8729 edx = MEM32(eax + 0x8); /* 0x42010AFC: mov edx, dword ptr [eax + 8] */ 8730 MEM32(ebp + (-0x8)) = ecx; /* 0x42010AFF: mov dword ptr [ebp - 8], ecx */ 8731 MEM32(ebp + (-0x4)) = edx; /* 0x42010B02: mov dword ptr [ebp - 4], edx */ 8732 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x42010B05: fstp dword ptr [ebp - 0xc] */ 8733 eax = MEM32(ebp + (-0xC)); /* 0x42010B08: mov eax, dword ptr [ebp - 0xc] */ 8734 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x42010B0B: fld dword ptr [ebp - 8] */ 8735 MEM32(ebp + (-0x18)) = eax; /* 0x42010B0E: mov dword ptr [ebp - 0x18], eax */ 8736 _st[0] *= (double)*(float*)ADDR(ebp + 0xC); /* 0x42010B11: fmul dword ptr [ebp + 0xc] */ 8737 SET_LO8(ebx, 1); /* 0x42010B14: mov bl, 1 */ 8738 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x42010B16: fstp dword ptr [ebp - 8] */ 8739 ecx = MEM32(ebp + (-0x8)); /* 0x42010B19: mov ecx, dword ptr [ebp - 8] */ 8740 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x42010B1C: fld dword ptr [ebp - 4] */ 8741 MEM32(ebp + (-0x14)) = ecx; /* 0x42010B1F: mov dword ptr [ebp - 0x14], ecx */ 8742 _st[0] *= (double)*(float*)ADDR(ebp + 0xC); /* 0x42010B22: fmul dword ptr [ebp + 0xc] */ 8743 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x42010B25: fstp dword ptr [ebp - 4] */ 8744 edx = MEM32(ebp + (-0x4)); /* 0x42010B28: mov edx, dword ptr [ebp - 4] */ 8745 fp_push((double)(int32_t)MEM32(esi + 0x8C)); /* 0x42010B2B: fild dword ptr [esi + 0x8c] */ 8746 MEM32(ebp + (-0x10)) = edx; /* 0x42010B31: mov dword ptr [ebp - 0x10], edx */ 8747 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x42010B34: fld dword ptr [ebp - 0xc] */ 8748 _st[0] *= _st[1]; /* 0x42010B37: fmul st(1) */ 8749 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x42010B39: fstp dword ptr [ebp - 0x18] */ 8750 eax = MEM32(ebp + (-0x18)); /* 0x42010B3C: mov eax, dword ptr [ebp - 0x18] */ 8751 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x42010B3F: fld dword ptr [ebp - 0x14] */ 8752 MEM32(esi + 0x60) = eax; /* 0x42010B42: mov dword ptr [esi + 0x60], eax */ 8753 _st[0] *= _st[1]; /* 0x42010B45: fmul st(1) */ 8754 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x42010B47: fstp dword ptr [ebp - 0x14] */ 8755 ecx = MEM32(ebp + (-0x14)); /* 0x42010B4A: mov ecx, dword ptr [ebp - 0x14] */ 8756 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x42010B4D: fld dword ptr [ebp - 0x10] */ 8757 MEM32(esi + 0x64) = ecx; /* 0x42010B50: mov dword ptr [esi + 0x64], ecx */ 8758 _st[0] *= _st[1]; /* 0x42010B53: fmul st(1) */ 8759 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x42010B55: fstp dword ptr [ebp - 0x10] */ 8760 edx = MEM32(ebp + (-0x10)); /* 0x42010B58: mov edx, dword ptr [ebp - 0x10] */ 8761 MEM32(esi + 0x68) = edx; /* 0x42010B5B: mov dword ptr [esi + 0x68], edx */ 8762 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42010B5E: fstp st(0) */ 8763 L_42010B60: 8764 ecx = esi + 0x54; /* 0x42010B60: lea ecx, [esi + 0x54] */ 8765 eax = ecx; /* 0x42010B63: mov eax, ecx */ 8766 edx = MEM32(eax); /* 0x42010B65: mov edx, dword ptr [eax] */ 8767 MEM32(ebp + (-0x24)) = edx; /* 0x42010B67: mov dword ptr [ebp - 0x24], edx */ 8768 edx = MEM32(eax + 0x4); /* 0x42010B6A: mov edx, dword ptr [eax + 4] */ 8769 eax = MEM32(eax + 0x8); /* 0x42010B6D: mov eax, dword ptr [eax + 8] */ 8770 MEM32(ebp + (-0x20)) = edx; /* 0x42010B70: mov dword ptr [ebp - 0x20], edx */ 8771 edx = MEM32(ebp + 0x8); /* 0x42010B73: mov edx, dword ptr [ebp + 8] */ 8772 fp_push(*(float*)&MEM32(edx)); /* 0x42010B76: fld dword ptr [edx] */ 8773 MEM32(ebp + (-0x1C)) = eax; /* 0x42010B78: mov dword ptr [ebp - 0x1c], eax */ 8774 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx)); /* 0x42010B7B: fcomp dword ptr [ecx] */ 8775 fp_pop(); 8776 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42010B7D: fnstsw ax */ 8777 /* test HI8(eax), 0x40u */ /* 0x42010B7F: test ah, 0x40 */ 8778 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 8779 _cf = 0; 8780 _flag_k = FK_NARROW(FK_TEST, 24); 8781 if (TEST_Z(_flag_a, _flag_b)) goto L_42010B9E; /* 0x42010B82: je 0x42010b9e */ 8782 L_42010B84: 8783 fp_push(*(float*)&MEM32(edx + 0x4)); /* 0x42010B84: fld dword ptr [edx + 4] */ 8784 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x4)); /* 0x42010B87: fcomp dword ptr [ecx + 4] */ 8785 fp_pop(); 8786 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42010B8A: fnstsw ax */ 8787 /* test HI8(eax), 0x40u */ /* 0x42010B8C: test ah, 0x40 */ 8788 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 8789 _cf = 0; 8790 _flag_k = FK_NARROW(FK_TEST, 24); 8791 if (TEST_Z(_flag_a, _flag_b)) goto L_42010B9E; /* 0x42010B8F: je 0x42010b9e */ 8792 L_42010B91: 8793 fp_push(*(float*)&MEM32(edx + 0x8)); /* 0x42010B91: fld dword ptr [edx + 8] */ 8794 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x8)); /* 0x42010B94: fcomp dword ptr [ecx + 8] */ 8795 fp_pop(); 8796 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42010B97: fnstsw ax */ 8797 /* test HI8(eax), 0x40u */ /* 0x42010B99: test ah, 0x40 */ 8798 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 8799 _cf = 0; 8800 _flag_k = FK_NARROW(FK_TEST, 24); 8801 if (TEST_NZ(_flag_a, _flag_b)) goto L_42010BCA; /* 0x42010B9C: jne 0x42010bca */ 8802 L_42010B9E: 8803 PUSH32(esp, edi); /* 0x42010B9E: push edi */ 8804 eax = edx; /* 0x42010B9F: mov eax, edx */ 8805 edi = MEM32(eax); /* 0x42010BA1: mov edi, dword ptr [eax] */ 8806 MEM32(ecx) = edi; /* 0x42010BA3: mov dword ptr [ecx], edi */ 8807 edi = MEM32(eax + 0x4); /* 0x42010BA5: mov edi, dword ptr [eax + 4] */ 8808 MEM32(ecx + 0x4) = edi; /* 0x42010BA8: mov dword ptr [ecx + 4], edi */ 8809 eax = MEM32(eax + 0x8); /* 0x42010BAB: mov eax, dword ptr [eax + 8] */ 8810 MEM32(ecx + 0x8) = eax; /* 0x42010BAE: mov dword ptr [ecx + 8], eax */ 8811 eax = MEM32(edx); /* 0x42010BB1: mov eax, dword ptr [edx] */ 8812 ecx = esi + 0xDC; /* 0x42010BB3: lea ecx, [esi + 0xdc] */ 8813 MEM32(ecx) = eax; /* 0x42010BB9: mov dword ptr [ecx], eax */ 8814 eax = MEM32(edx + 0x4); /* 0x42010BBB: mov eax, dword ptr [edx + 4] */ 8815 MEM32(ecx + 0x4) = eax; /* 0x42010BBE: mov dword ptr [ecx + 4], eax */ 8816 edx = MEM32(edx + 0x8); /* 0x42010BC1: mov edx, dword ptr [edx + 8] */ 8817 MEM32(ecx + 0x8) = edx; /* 0x42010BC4: mov dword ptr [ecx + 8], edx */ 8818 edi = POP32_VAL(esp); /* 0x42010BC7: pop edi */ 8819 goto L_42010BD2; /* 0x42010BC8: jmp 0x42010bd2 */ 8820 L_42010BCA: 8821 /* test LO8(ebx), LO8(ebx) */ /* 0x42010BCA: test bl, bl */ 8822 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8823 _cf = 0; 8824 _flag_k = FK_NARROW(FK_TEST, 24); 8825 if (TEST_Z(_flag_a, _flag_b)) goto L_42010C81; /* 0x42010BCC: je 0x42010c81 */ 8826 L_42010BD2: 8827 PUSH32(esp, 1); /* 0x42010BD2: push 1 */ 8828 eax = ebp + (-0x24); /* 0x42010BD4: lea eax, [ebp - 0x24] */ 8829 PUSH32(esp, eax); /* 0x42010BD7: push eax */ 8830 ecx = esi; /* 0x42010BD8: mov ecx, esi */ 8831 RECOMP_ICALL(0x42012A50u); /* 0x42010BDA: call 0x42012a50 */ /* not lifted */ 8832 RECOMP_FLAGS_IN(); 8833 fp_push(*(float*)&MEM32(esi + 0x68)); /* 0x42010BDF: fld dword ptr [esi + 0x68] */ 8834 fp_push(*(float*)&MEM32(esi + 0x64)); /* 0x42010BE2: fld dword ptr [esi + 0x64] */ 8835 ecx = esi; /* 0x42010BE5: mov ecx, esi */ 8836 fp_push(*(float*)&MEM32(esi + 0x60)); /* 0x42010BE7: fld dword ptr [esi + 0x60] */ 8837 fp_push(_st[0]); /* 0x42010BEA: fld st(0) */ 8838 _st[0] *= _st[1]; /* 0x42010BEC: fmul st(1) */ 8839 fp_push(_st[2]); /* 0x42010BEE: fld st(2) */ 8840 _st[0] *= _st[3]; /* 0x42010BF0: fmul st(3) */ 8841 { double _v = fp_pop(); _st[0] += _v; } /* 0x42010BF2: faddp st(1) */ 8842 fp_push(_st[3]); /* 0x42010BF4: fld st(3) */ 8843 _st[0] *= _st[4]; /* 0x42010BF6: fmul st(4) */ 8844 { double _v = fp_pop(); _st[0] += _v; } /* 0x42010BF8: faddp st(1) */ 8845 _st[0] = sqrt(_st[0]); /* 0x42010BFA: fsqrt */ 8846 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x42010BFC: fstp dword ptr [ebp + 0xc] */ 8847 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42010BFF: fstp st(0) */ 8848 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42010C01: fstp st(0) */ 8849 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42010C03: fstp st(0) */ 8850 RECOMP_ICALL(0x42011260u); /* 0x42010C05: call 0x42011260 */ /* not lifted */ 8851 RECOMP_FLAGS_IN(); 8852 ecx = MEM32(eax); /* 0x42010C0A: mov ecx, dword ptr [eax] */ 8853 edx = MEM32(eax + 0x4); /* 0x42010C0C: mov edx, dword ptr [eax + 4] */ 8854 eax = MEM32(eax + 0x8); /* 0x42010C0F: mov eax, dword ptr [eax + 8] */ 8855 MEM32(ebp + (-0xC)) = ecx; /* 0x42010C12: mov dword ptr [ebp - 0xc], ecx */ 8856 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x42010C15: fld dword ptr [ebp - 0xc] */ 8857 _st[0] *= (double)*(float*)ADDR(ebp + 0xC); /* 0x42010C18: fmul dword ptr [ebp + 0xc] */ 8858 MEM32(ebp + (-0x8)) = edx; /* 0x42010C1B: mov dword ptr [ebp - 8], edx */ 8859 MEM32(ebp + (-0x4)) = eax; /* 0x42010C1E: mov dword ptr [ebp - 4], eax */ 8860 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x42010C21: fstp dword ptr [ebp - 0xc] */ 8861 ecx = MEM32(ebp + (-0xC)); /* 0x42010C24: mov ecx, dword ptr [ebp - 0xc] */ 8862 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x42010C27: fld dword ptr [ebp - 8] */ 8863 MEM32(ebp + (-0x18)) = ecx; /* 0x42010C2A: mov dword ptr [ebp - 0x18], ecx */ 8864 _st[0] *= (double)*(float*)ADDR(ebp + 0xC); /* 0x42010C2D: fmul dword ptr [ebp + 0xc] */ 8865 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x42010C30: fstp dword ptr [ebp - 8] */ 8866 edx = MEM32(ebp + (-0x8)); /* 0x42010C33: mov edx, dword ptr [ebp - 8] */ 8867 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x42010C36: fld dword ptr [ebp - 4] */ 8868 MEM32(ebp + (-0x14)) = edx; /* 0x42010C39: mov dword ptr [ebp - 0x14], edx */ 8869 _st[0] *= (double)*(float*)ADDR(ebp + 0xC); /* 0x42010C3C: fmul dword ptr [ebp + 0xc] */ 8870 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x42010C3F: fstp dword ptr [ebp - 4] */ 8871 eax = MEM32(ebp + (-0x4)); /* 0x42010C42: mov eax, dword ptr [ebp - 4] */ 8872 fp_push((double)(int32_t)MEM32(esi + 0x8C)); /* 0x42010C45: fild dword ptr [esi + 0x8c] */ 8873 MEM32(ebp + (-0x10)) = eax; /* 0x42010C4B: mov dword ptr [ebp - 0x10], eax */ 8874 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x42010C4E: fld dword ptr [ebp - 0xc] */ 8875 _st[0] *= _st[1]; /* 0x42010C51: fmul st(1) */ 8876 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x42010C53: fstp dword ptr [ebp - 0x18] */ 8877 ecx = MEM32(ebp + (-0x18)); /* 0x42010C56: mov ecx, dword ptr [ebp - 0x18] */ 8878 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x42010C59: fld dword ptr [ebp - 0x14] */ 8879 MEM32(esi + 0x60) = ecx; /* 0x42010C5C: mov dword ptr [esi + 0x60], ecx */ 8880 _st[0] *= _st[1]; /* 0x42010C5F: fmul st(1) */ 8881 ecx = esi; /* 0x42010C61: mov ecx, esi */ 8882 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x42010C63: fstp dword ptr [ebp - 0x14] */ 8883 edx = MEM32(ebp + (-0x14)); /* 0x42010C66: mov edx, dword ptr [ebp - 0x14] */ 8884 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x42010C69: fld dword ptr [ebp - 0x10] */ 8885 MEM32(esi + 0x64) = edx; /* 0x42010C6C: mov dword ptr [esi + 0x64], edx */ 8886 _st[0] *= _st[1]; /* 0x42010C6F: fmul st(1) */ 8887 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x42010C71: fstp dword ptr [ebp - 0x10] */ 8888 eax = MEM32(ebp + (-0x10)); /* 0x42010C74: mov eax, dword ptr [ebp - 0x10] */ 8889 MEM32(esi + 0x68) = eax; /* 0x42010C77: mov dword ptr [esi + 0x68], eax */ 8890 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42010C7A: fstp st(0) */ 8891 RECOMP_ICALL(0x42010D40u); /* 0x42010C7C: call 0x42010d40 */ /* not lifted */ 8892 RECOMP_FLAGS_IN(); 8893 L_42010C81: 8894 esi = POP32_VAL(esp); /* 0x42010C81: pop esi */ 8895 ebx = POP32_VAL(esp); /* 0x42010C82: pop ebx */ 8896 esp = ebp; /* 0x42010C83: mov esp, ebp */ 8897 ebp = POP32_VAL(esp); /* 0x42010C85: pop ebp */ 8898 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x42010C86: ret 8 */ 8899 RECOMP_REGS_OUT(); 8900 } 8901 8902 void sub_42010C90(void) { 8903 int _fpu_cmp = 0; 8904 uint32_t _cf = 0; 8905 int _df = 1; 8906 uint32_t _flag_k = FK_NONE; 8907 uint32_t _flag_a = 0, _flag_b = 0; 8908 uint32_t _itail_tgt = 0; 8909 RECOMP_REGS_LOCALS 8910 RECOMP_ENTER(0x42010C90u); 8911 8912 L_42010C90: 8913 eax = ecx + 0xDC; /* 0x42010C90: lea eax, [ecx + 0xdc] */ 8914 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42010C96: ret */ 8915 RECOMP_REGS_OUT(); 8916 } 8917 8918 void sub_42010CA0(void) { 8919 int _fpu_cmp = 0; 8920 uint32_t _cf = 0; 8921 int _df = 1; 8922 uint32_t _flag_k = FK_NONE; 8923 uint32_t _flag_a = 0, _flag_b = 0; 8924 uint32_t _itail_tgt = 0; 8925 RECOMP_REGS_LOCALS 8926 RECOMP_ENTER(0x42010CA0u); 8927 8928 L_42010CA0: 8929 PUSH32(esp, esi); /* 0x42010CA0: push esi */ 8930 esi = ecx; /* 0x42010CA1: mov esi, ecx */ 8931 SET_LO8(ecx, MEM8(0x42023254)); /* 0x42010CA3: mov cl, byte ptr [0x42023254] */ 8932 SET_LO8(eax, 1); /* 0x42010CA9: mov al, 1 */ 8933 /* test LO8(eax), LO8(ecx) */ /* 0x42010CAB: test al, cl */ 8934 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 8935 _cf = 0; 8936 _flag_k = FK_NARROW(FK_TEST, 24); 8937 if (TEST_NZ(_flag_a, _flag_b)) goto L_42010D02; /* 0x42010CAD: jne 0x42010d02 */ 8938 L_42010CAF: 8939 SET_LO8(edx, LO8(ecx)); /* 0x42010CAF: mov dl, cl */ 8940 _flag_a = (uint32_t)((LO8(edx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(edx) | LO8(eax))) << 24; 8941 SET_LO8(edx, LO8(edx) | LO8(eax)); /* 0x42010CB1: or dl, al */ 8942 _cf = 0; 8943 _flag_k = FK_NARROW(FK_TEST, 24); 8944 PUSH32(esp, 0x42010D30u); /* 0x42010CB3: push 0x42010d30 */ 8945 MEM8(0x42023254) = (uint8_t)(LO8(edx)); /* 0x42010CB8: mov byte ptr [0x42023254], dl */ 8946 MEM32(0x42023228) = 0; /* 0x42010CBE: mov dword ptr [0x42023228], 0 */ 8947 MEM32(0x4202322C) = 0; /* 0x42010CC8: mov dword ptr [0x4202322c], 0 */ 8948 MEM32(0x42023230) = 0; /* 0x42010CD2: mov dword ptr [0x42023230], 0 */ 8949 MEM32(0x42023234) = 0; /* 0x42010CDC: mov dword ptr [0x42023234], 0 */ 8950 MEM32(0x42023238) = 0; /* 0x42010CE6: mov dword ptr [0x42023238], 0 */ 8951 MEM32(0x4202323C) = 0; /* 0x42010CF0: mov dword ptr [0x4202323c], 0 */ 8952 RECOMP_ICALL(0x42016E07u); /* 0x42010CFA: call 0x42016e07 */ /* not lifted */ 8953 RECOMP_FLAGS_IN(); 8954 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8955 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8956 esp = esp + 4; /* 0x42010CFF: add esp, 4 */ 8957 _flag_k = FK_ADD; 8958 L_42010D02: 8959 eax = MEM32(esi); /* 0x42010D02: mov eax, dword ptr [esi] */ 8960 ecx = esi; /* 0x42010D04: mov ecx, esi */ 8961 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x42010D06: call dword ptr [eax + 0xc] */ 8962 RECOMP_FLAGS_IN(); 8963 fp_push(*(float*)&MEM32(eax)); /* 0x42010D09: fld dword ptr [eax] */ 8964 fp_push(_st[0]); /* 0x42010D0B: fld st(0) */ 8965 eax = 0x42023228u; /* 0x42010D0D: mov eax, 0x42023228 */ 8966 _st[0] -= (double)*(float*)ADDR(esi + 0x48); /* 0x42010D12: fsub dword ptr [esi + 0x48] */ 8967 { float _v = (float)fp_pop(); *(float*)ADDR(0x42023228) = _v; } /* 0x42010D15: fstp dword ptr [0x42023228] */ 8968 _st[0] += (double)*(float*)ADDR(esi + 0x48); /* 0x42010D1B: fadd dword ptr [esi + 0x48] */ 8969 esi = POP32_VAL(esp); /* 0x42010D1E: pop esi */ 8970 { float _v = (float)fp_pop(); *(float*)ADDR(0x42023234) = _v; } /* 0x42010D1F: fstp dword ptr [0x42023234] */ 8971 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42010D25: ret */ 8972 RECOMP_REGS_OUT(); 8973 } 8974 8975 void sub_42010D30(void) { 8976 int _fpu_cmp = 0; 8977 uint32_t _cf = 0; 8978 int _df = 1; 8979 uint32_t _flag_k = FK_NONE; 8980 uint32_t _flag_a = 0, _flag_b = 0; 8981 uint32_t _itail_tgt = 0; 8982 RECOMP_REGS_LOCALS 8983 RECOMP_ENTER(0x42010D30u); 8984 8985 L_42010D30: 8986 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42010D30: ret */ 8987 RECOMP_REGS_OUT(); 8988 } 8989 8990 void sub_42010D40(void) { 8991 int _fpu_cmp = 0; 8992 uint32_t _cf = 0; 8993 int _df = 1; 8994 uint32_t _flag_k = FK_NONE; 8995 uint32_t _flag_a = 0, _flag_b = 0; 8996 uint32_t _itail_tgt = 0; 8997 RECOMP_REGS_LOCALS 8998 RECOMP_ENTER(0x42010D40u); 8999 9000 L_42010D40: 9001 PUSH32(esp, ebp); /* 0x42010D40: push ebp */ 9002 ebp = esp; /* 0x42010D41: mov ebp, esp */ 9003 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x6Cu); 9004 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9005 esp = esp - 0x6Cu; /* 0x42010D43: sub esp, 0x6c */ 9006 _flag_k = FK_CMP; 9007 PUSH32(esp, edi); /* 0x42010D46: push edi */ 9008 edi = ecx; /* 0x42010D47: mov edi, ecx */ 9009 ecx = MEM32(edi + 0x28); /* 0x42010D49: mov ecx, dword ptr [edi + 0x28] */ 9010 /* test ecx, ecx */ /* 0x42010D4C: test ecx, ecx */ 9011 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 9012 _cf = 0; 9013 _flag_k = FK_TEST; 9014 if (TEST_Z(_flag_a, _flag_b)) goto L_42010F52; /* 0x42010D4E: je 0x42010f52 */ 9015 L_42010D54: 9016 PUSH32(esp, esi); /* 0x42010D54: push esi */ 9017 RECOMP_ICALL(0x42011220u); /* 0x42010D55: call 0x42011220 */ /* not lifted */ 9018 RECOMP_FLAGS_IN(); 9019 esi = eax; /* 0x42010D5A: mov esi, eax */ 9020 eax = edi + 0x54; /* 0x42010D5C: lea eax, [edi + 0x54] */ 9021 ecx = MEM32(eax); /* 0x42010D5F: mov ecx, dword ptr [eax] */ 9022 edx = MEM32(eax + 0x4); /* 0x42010D61: mov edx, dword ptr [eax + 4] */ 9023 eax = MEM32(eax + 0x8); /* 0x42010D64: mov eax, dword ptr [eax + 8] */ 9024 MEM32(ebp + (-0x38)) = ecx; /* 0x42010D67: mov dword ptr [ebp - 0x38], ecx */ 9025 MEM32(ebp + (-0x34)) = edx; /* 0x42010D6A: mov dword ptr [ebp - 0x34], edx */ 9026 ecx = esi; /* 0x42010D6D: mov ecx, esi */ 9027 edx = MEM32(ecx); /* 0x42010D6F: mov edx, dword ptr [ecx] */ 9028 MEM32(ebp + (-0x30)) = eax; /* 0x42010D71: mov dword ptr [ebp - 0x30], eax */ 9029 eax = MEM32(ecx + 0x4); /* 0x42010D74: mov eax, dword ptr [ecx + 4] */ 9030 ecx = MEM32(ecx + 0x8); /* 0x42010D77: mov ecx, dword ptr [ecx + 8] */ 9031 MEM32(ebp + (-0x50)) = edx; /* 0x42010D7A: mov dword ptr [ebp - 0x50], edx */ 9032 edx = ebp + (-0x38); /* 0x42010D7D: lea edx, [ebp - 0x38] */ 9033 MEM32(ebp + (-0x48)) = ecx; /* 0x42010D80: mov dword ptr [ebp - 0x48], ecx */ 9034 PUSH32(esp, edx); /* 0x42010D83: push edx */ 9035 ecx = ebp + (-0x50); /* 0x42010D84: lea ecx, [ebp - 0x50] */ 9036 MEM32(ebp + (-0x4C)) = eax; /* 0x42010D87: mov dword ptr [ebp - 0x4c], eax */ 9037 RECOMP_ICALL(MEM32(0x420180A4)); /* 0x42010D8A: call dword ptr [0x420180a4] */ 9038 RECOMP_FLAGS_IN(); 9039 ecx = MEM32(eax); /* 0x42010D90: mov ecx, dword ptr [eax] */ 9040 MEM32(ebp + (-0x20)) = ecx; /* 0x42010D92: mov dword ptr [ebp - 0x20], ecx */ 9041 edx = MEM32(eax + 0x4); /* 0x42010D95: mov edx, dword ptr [eax + 4] */ 9042 MEM32(ebp + (-0x1C)) = edx; /* 0x42010D98: mov dword ptr [ebp - 0x1c], edx */ 9043 eax = MEM32(eax + 0x8); /* 0x42010D9B: mov eax, dword ptr [eax + 8] */ 9044 ecx = esi; /* 0x42010D9E: mov ecx, esi */ 9045 edx = MEM32(ecx); /* 0x42010DA0: mov edx, dword ptr [ecx] */ 9046 MEM32(ebp + (-0x18)) = eax; /* 0x42010DA2: mov dword ptr [ebp - 0x18], eax */ 9047 eax = MEM32(ecx + 0x4); /* 0x42010DA5: mov eax, dword ptr [ecx + 4] */ 9048 ecx = MEM32(ecx + 0x8); /* 0x42010DA8: mov ecx, dword ptr [ecx + 8] */ 9049 MEM32(ebp + (-0x5C)) = edx; /* 0x42010DAB: mov dword ptr [ebp - 0x5c], edx */ 9050 edx = ebp + (-0x20); /* 0x42010DAE: lea edx, [ebp - 0x20] */ 9051 MEM32(ebp + (-0x54)) = ecx; /* 0x42010DB1: mov dword ptr [ebp - 0x54], ecx */ 9052 PUSH32(esp, edx); /* 0x42010DB4: push edx */ 9053 ecx = ebp + (-0x5C); /* 0x42010DB5: lea ecx, [ebp - 0x5c] */ 9054 MEM32(ebp + (-0x58)) = eax; /* 0x42010DB8: mov dword ptr [ebp - 0x58], eax */ 9055 RECOMP_ICALL(MEM32(0x420180A4)); /* 0x42010DBB: call dword ptr [0x420180a4] */ 9056 RECOMP_FLAGS_IN(); 9057 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x42010DC1: fld dword ptr [esi + 0xc] */ 9058 ecx = MEM32(eax); /* 0x42010DC4: mov ecx, dword ptr [eax] */ 9059 _st[0] += _st[0]; /* 0x42010DC6: fadd st(0), st(0) */ 9060 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x42010DC8: fld dword ptr [ebp - 0x20] */ 9061 MEM32(ebp + (-0x2C)) = ecx; /* 0x42010DCB: mov dword ptr [ebp - 0x2c], ecx */ 9062 edx = MEM32(eax + 0x4); /* 0x42010DCE: mov edx, dword ptr [eax + 4] */ 9063 _st[0] *= _st[1]; /* 0x42010DD1: fmul st(1) */ 9064 MEM32(ebp + (-0x28)) = edx; /* 0x42010DD3: mov dword ptr [ebp - 0x28], edx */ 9065 eax = MEM32(eax + 0x8); /* 0x42010DD6: mov eax, dword ptr [eax + 8] */ 9066 MEM32(ebp + (-0x24)) = eax; /* 0x42010DD9: mov dword ptr [ebp - 0x24], eax */ 9067 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x42010DDC: fstp dword ptr [ebp - 0x20] */ 9068 ecx = ebp + (-0x20); /* 0x42010DDF: lea ecx, [ebp - 0x20] */ 9069 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x42010DE2: fld dword ptr [ebp - 0x1c] */ 9070 PUSH32(esp, ecx); /* 0x42010DE5: push ecx */ 9071 _st[0] *= _st[1]; /* 0x42010DE6: fmul st(1) */ 9072 ecx = ebp + (-0x38); /* 0x42010DE8: lea ecx, [ebp - 0x38] */ 9073 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x42010DEB: fstp dword ptr [ebp - 0x1c] */ 9074 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x42010DEE: fld dword ptr [ebp - 0x18] */ 9075 _st[0] *= _st[1]; /* 0x42010DF1: fmul st(1) */ 9076 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x42010DF3: fstp dword ptr [ebp - 0x18] */ 9077 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42010DF6: fstp st(0) */ 9078 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x42010DF8: fld dword ptr [ebp - 0x2c] */ 9079 _st[0] += _st[0]; /* 0x42010DFB: fadd st(0), st(0) */ 9080 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x42010DFD: fstp dword ptr [ebp - 0x2c] */ 9081 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x42010E00: fld dword ptr [ebp - 0x28] */ 9082 _st[0] += _st[0]; /* 0x42010E03: fadd st(0), st(0) */ 9083 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x42010E05: fstp dword ptr [ebp - 0x28] */ 9084 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x42010E08: fld dword ptr [ebp - 0x24] */ 9085 _st[0] += _st[0]; /* 0x42010E0B: fadd st(0), st(0) */ 9086 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x42010E0D: fstp dword ptr [ebp - 0x24] */ 9087 RECOMP_ICALL(MEM32(0x4201808C)); /* 0x42010E10: call dword ptr [0x4201808c] */ 9088 RECOMP_FLAGS_IN(); 9089 edx = ebp + (-0x2C); /* 0x42010E16: lea edx, [ebp - 0x2c] */ 9090 PUSH32(esp, edx); /* 0x42010E19: push edx */ 9091 ecx = ebp + (-0x38); /* 0x42010E1A: lea ecx, [ebp - 0x38] */ 9092 RECOMP_ICALL(MEM32(0x4201808C)); /* 0x42010E1D: call dword ptr [0x4201808c] */ 9093 RECOMP_FLAGS_IN(); 9094 ecx = MEM32(ebp + (-0x34)); /* 0x42010E23: mov ecx, dword ptr [ebp - 0x34] */ 9095 eax = MEM32(ebp + (-0x38)); /* 0x42010E26: mov eax, dword ptr [ebp - 0x38] */ 9096 edx = MEM32(ebp + (-0x30)); /* 0x42010E29: mov edx, dword ptr [ebp - 0x30] */ 9097 MEM32(ebp + (-0x40)) = ecx; /* 0x42010E2C: mov dword ptr [ebp - 0x40], ecx */ 9098 ecx = MEM32(edi + 0x28); /* 0x42010E2F: mov ecx, dword ptr [edi + 0x28] */ 9099 MEM32(ebp + (-0x44)) = eax; /* 0x42010E32: mov dword ptr [ebp - 0x44], eax */ 9100 MEM32(ebp + (-0x3C)) = edx; /* 0x42010E35: mov dword ptr [ebp - 0x3c], edx */ 9101 RECOMP_ICALL(0x42011200u); /* 0x42010E38: call 0x42011200 */ /* not lifted */ 9102 RECOMP_FLAGS_IN(); 9103 ecx = MEM32(eax); /* 0x42010E3D: mov ecx, dword ptr [eax] */ 9104 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x42010E3F: fld dword ptr [ebp - 0x44] */ 9105 edx = MEM32(eax + 0x4); /* 0x42010E42: mov edx, dword ptr [eax + 4] */ 9106 eax = MEM32(eax + 0x8); /* 0x42010E45: mov eax, dword ptr [eax + 8] */ 9107 MEM32(ebp + (-0x14)) = ecx; /* 0x42010E48: mov dword ptr [ebp - 0x14], ecx */ 9108 _st[0] += (double)*(float*)ADDR(ebp + (-0x14)); /* 0x42010E4B: fadd dword ptr [ebp - 0x14] */ 9109 MEM32(ebp + (-0x10)) = edx; /* 0x42010E4E: mov dword ptr [ebp - 0x10], edx */ 9110 MEM32(ebp + (-0xC)) = eax; /* 0x42010E51: mov dword ptr [ebp - 0xc], eax */ 9111 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x42010E54: fstp dword ptr [ebp - 0x14] */ 9112 edx = MEM32(ebp + (-0x14)); /* 0x42010E57: mov edx, dword ptr [ebp - 0x14] */ 9113 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x42010E5A: fld dword ptr [ebp - 0x40] */ 9114 ecx = edi + 0xE8; /* 0x42010E5D: lea ecx, [edi + 0xe8] */ 9115 _st[0] += (double)*(float*)ADDR(ebp + (-0x10)); /* 0x42010E63: fadd dword ptr [ebp - 0x10] */ 9116 MEM32(ecx) = edx; /* 0x42010E66: mov dword ptr [ecx], edx */ 9117 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x42010E68: fstp dword ptr [ebp - 0x10] */ 9118 eax = MEM32(ebp + (-0x10)); /* 0x42010E6B: mov eax, dword ptr [ebp - 0x10] */ 9119 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x42010E6E: fld dword ptr [ebp - 0x3c] */ 9120 MEM32(ecx + 0x4) = eax; /* 0x42010E71: mov dword ptr [ecx + 4], eax */ 9121 _st[0] += (double)*(float*)ADDR(ebp + (-0xC)); /* 0x42010E74: fadd dword ptr [ebp - 0xc] */ 9122 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x42010E77: fstp dword ptr [ebp - 0xc] */ 9123 edx = MEM32(ebp + (-0xC)); /* 0x42010E7A: mov edx, dword ptr [ebp - 0xc] */ 9124 MEM32(ecx + 0x8) = edx; /* 0x42010E7D: mov dword ptr [ecx + 8], edx */ 9125 ecx = edi; /* 0x42010E80: mov ecx, edi */ 9126 RECOMP_ICALL(0x42011250u); /* 0x42010E82: call 0x42011250 */ /* not lifted */ 9127 RECOMP_FLAGS_IN(); 9128 ecx = MEM32(edi + 0x28); /* 0x42010E87: mov ecx, dword ptr [edi + 0x28] */ 9129 esi = eax; /* 0x42010E8A: mov esi, eax */ 9130 RECOMP_ICALL(0x42011220u); /* 0x42010E8C: call 0x42011220 */ /* not lifted */ 9131 RECOMP_FLAGS_IN(); 9132 edx = MEM32(eax + 0x4); /* 0x42010E91: mov edx, dword ptr [eax + 4] */ 9133 ecx = MEM32(eax); /* 0x42010E94: mov ecx, dword ptr [eax] */ 9134 MEM32(ebp + (-0x5C)) = edx; /* 0x42010E96: mov dword ptr [ebp - 0x5c], edx */ 9135 edx = MEM32(eax + 0xC); /* 0x42010E99: mov edx, dword ptr [eax + 0xc] */ 9136 MEM32(ebp + (-0x60)) = ecx; /* 0x42010E9C: mov dword ptr [ebp - 0x60], ecx */ 9137 ecx = MEM32(eax + 0x8); /* 0x42010E9F: mov ecx, dword ptr [eax + 8] */ 9138 MEM32(ebp + (-0x54)) = edx; /* 0x42010EA2: mov dword ptr [ebp - 0x54], edx */ 9139 fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x42010EA5: fld dword ptr [ebp - 0x54] */ 9140 _st[0] *= (double)*(float*)ADDR(esi); /* 0x42010EA8: fmul dword ptr [esi] */ 9141 MEM32(ebp + (-0x58)) = ecx; /* 0x42010EAA: mov dword ptr [ebp - 0x58], ecx */ 9142 fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x42010EAD: fld dword ptr [ebp - 0x58] */ 9143 _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x42010EB0: fmul dword ptr [esi + 4] */ 9144 { double _v = fp_pop(); _st[0] += _v; } /* 0x42010EB3: faddp st(1) */ 9145 fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x42010EB5: fld dword ptr [ebp - 0x5c] */ 9146 _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x42010EB8: fmul dword ptr [esi + 8] */ 9147 { double _v = fp_pop(); _st[0] -= _v; } /* 0x42010EBB: fsubp st(1) */ 9148 fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x42010EBD: fld dword ptr [ebp - 0x60] */ 9149 _st[0] *= (double)*(float*)ADDR(esi + 0xC); /* 0x42010EC0: fmul dword ptr [esi + 0xc] */ 9150 { double _v = fp_pop(); _st[0] += _v; } /* 0x42010EC3: faddp st(1) */ 9151 fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x42010EC5: fld dword ptr [ebp - 0x5c] */ 9152 _st[0] *= (double)*(float*)ADDR(esi + 0xC); /* 0x42010EC8: fmul dword ptr [esi + 0xc] */ 9153 fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x42010ECB: fld dword ptr [ebp - 0x58] */ 9154 _st[0] *= (double)*(float*)ADDR(esi); /* 0x42010ECE: fmul dword ptr [esi] */ 9155 { double _v = fp_pop(); _st[0] -= _v; } /* 0x42010ED0: fsubp st(1) */ 9156 fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x42010ED2: fld dword ptr [ebp - 0x54] */ 9157 _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x42010ED5: fmul dword ptr [esi + 4] */ 9158 { double _v = fp_pop(); _st[0] += _v; } /* 0x42010ED8: faddp st(1) */ 9159 fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x42010EDA: fld dword ptr [ebp - 0x60] */ 9160 _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x42010EDD: fmul dword ptr [esi + 8] */ 9161 { double _v = fp_pop(); _st[0] += _v; } /* 0x42010EE0: faddp st(1) */ 9162 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x42010EE2: fstp dword ptr [ebp - 4] */ 9163 fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x42010EE5: fld dword ptr [ebp - 0x5c] */ 9164 _st[0] *= (double)*(float*)ADDR(esi); /* 0x42010EE8: fmul dword ptr [esi] */ 9165 fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x42010EEA: fld dword ptr [ebp - 0x60] */ 9166 _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x42010EED: fmul dword ptr [esi + 4] */ 9167 { double _v = fp_pop(); _st[0] -= _v; } /* 0x42010EF0: fsubp st(1) */ 9168 fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x42010EF2: fld dword ptr [ebp - 0x58] */ 9169 _st[0] *= (double)*(float*)ADDR(esi + 0xC); /* 0x42010EF5: fmul dword ptr [esi + 0xc] */ 9170 { double _v = fp_pop(); _st[0] += _v; } /* 0x42010EF8: faddp st(1) */ 9171 fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x42010EFA: fld dword ptr [ebp - 0x54] */ 9172 _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x42010EFD: fmul dword ptr [esi + 8] */ 9173 { double _v = fp_pop(); _st[0] += _v; } /* 0x42010F00: faddp st(1) */ 9174 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x42010F02: fstp dword ptr [ebp - 8] */ 9175 fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x42010F05: fld dword ptr [ebp - 0x54] */ 9176 _st[0] *= (double)*(float*)ADDR(esi + 0xC); /* 0x42010F08: fmul dword ptr [esi + 0xc] */ 9177 fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x42010F0B: fld dword ptr [ebp - 0x60] */ 9178 _st[0] *= (double)*(float*)ADDR(esi); /* 0x42010F0E: fmul dword ptr [esi] */ 9179 fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x42010F10: fld dword ptr [ebp - 0x5c] */ 9180 _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x42010F13: fmul dword ptr [esi + 4] */ 9181 { double _v = fp_pop(); _st[0] += _v; } /* 0x42010F16: faddp st(1) */ 9182 fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x42010F18: fld dword ptr [ebp - 0x58] */ 9183 _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x42010F1B: fmul dword ptr [esi + 8] */ 9184 { double _v = fp_pop(); _st[0] += _v; } /* 0x42010F1E: faddp st(1) */ 9185 { double _v = fp_pop(); _st[0] -= _v; } /* 0x42010F20: fsubp st(1) */ 9186 eax = MEM32(ebp + (-0x4)); /* 0x42010F22: mov eax, dword ptr [ebp - 4] */ 9187 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x42010F25: fstp dword ptr [ebp - 0x54] */ 9188 ecx = MEM32(ebp + (-0x8)); /* 0x42010F28: mov ecx, dword ptr [ebp - 8] */ 9189 MEM32(ebp + (-0x5C)) = eax; /* 0x42010F2B: mov dword ptr [ebp - 0x5c], eax */ 9190 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x42010F2E: fstp dword ptr [ebp - 0x60] */ 9191 eax = MEM32(ebp + (-0x60)); /* 0x42010F31: mov eax, dword ptr [ebp - 0x60] */ 9192 MEM32(ebp + (-0x58)) = ecx; /* 0x42010F34: mov dword ptr [ebp - 0x58], ecx */ 9193 ecx = MEM32(ebp + (-0x5C)); /* 0x42010F37: mov ecx, dword ptr [ebp - 0x5c] */ 9194 edx = edi + 0xF4; /* 0x42010F3A: lea edx, [edi + 0xf4] */ 9195 MEM32(edx) = eax; /* 0x42010F40: mov dword ptr [edx], eax */ 9196 eax = MEM32(ebp + (-0x58)); /* 0x42010F42: mov eax, dword ptr [ebp - 0x58] */ 9197 MEM32(edx + 0x4) = ecx; /* 0x42010F45: mov dword ptr [edx + 4], ecx */ 9198 ecx = MEM32(ebp + (-0x54)); /* 0x42010F48: mov ecx, dword ptr [ebp - 0x54] */ 9199 MEM32(edx + 0x8) = eax; /* 0x42010F4B: mov dword ptr [edx + 8], eax */ 9200 MEM32(edx + 0xC) = ecx; /* 0x42010F4E: mov dword ptr [edx + 0xc], ecx */ 9201 esi = POP32_VAL(esp); /* 0x42010F51: pop esi */ 9202 L_42010F52: 9203 ecx = edi; /* 0x42010F52: mov ecx, edi */ 9204 RECOMP_ICALL(0x42011220u); /* 0x42010F54: call 0x42011220 */ /* not lifted */ 9205 RECOMP_FLAGS_IN(); 9206 PUSH32(esp, eax); /* 0x42010F59: push eax */ 9207 ecx = edi; /* 0x42010F5A: mov ecx, edi */ 9208 RECOMP_ICALL(0x42011200u); /* 0x42010F5C: call 0x42011200 */ /* not lifted */ 9209 RECOMP_FLAGS_IN(); 9210 PUSH32(esp, eax); /* 0x42010F61: push eax */ 9211 PUSH32(esp, edi); /* 0x42010F62: push edi */ 9212 ecx = ebp + (-0x6C); /* 0x42010F63: lea ecx, [ebp - 0x6c] */ 9213 RECOMP_ICALL(0x420063D0u); /* 0x42010F66: call 0x420063d0 */ /* not lifted */ 9214 RECOMP_FLAGS_IN(); 9215 edx = ebp + (-0x6C); /* 0x42010F6B: lea edx, [ebp - 0x6c] */ 9216 PUSH32(esp, edx); /* 0x42010F6E: push edx */ 9217 ecx = edi; /* 0x42010F6F: mov ecx, edi */ 9218 RECOMP_ICALL(0x420069D0u); /* 0x42010F71: call 0x420069d0 */ /* not lifted */ 9219 RECOMP_FLAGS_IN(); 9220 edi = POP32_VAL(esp); /* 0x42010F76: pop edi */ 9221 esp = ebp; /* 0x42010F77: mov esp, ebp */ 9222 ebp = POP32_VAL(esp); /* 0x42010F79: pop ebp */ 9223 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42010F7A: ret */ 9224 RECOMP_REGS_OUT(); 9225 } 9226 9227 void sub_42010F80(void) { 9228 int _fpu_cmp = 0; 9229 uint32_t _cf = 0; 9230 int _df = 1; 9231 uint32_t _flag_k = FK_NONE; 9232 uint32_t _flag_a = 0, _flag_b = 0; 9233 uint32_t _itail_tgt = 0; 9234 RECOMP_REGS_LOCALS 9235 RECOMP_ENTER(0x42010F80u); 9236 9237 L_42010F80: 9238 PUSH32(esp, ebp); /* 0x42010F80: push ebp */ 9239 ebp = esp; /* 0x42010F81: mov ebp, esp */ 9240 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 9241 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9242 esp = esp - 0x18u; /* 0x42010F83: sub esp, 0x18 */ 9243 _flag_k = FK_CMP; 9244 eax = MEM32(ebp + 0x8); /* 0x42010F86: mov eax, dword ptr [ebp + 8] */ 9245 PUSH32(esp, esi); /* 0x42010F89: push esi */ 9246 esi = ecx; /* 0x42010F8A: mov esi, ecx */ 9247 PUSH32(esp, edi); /* 0x42010F8C: push edi */ 9248 edx = eax; /* 0x42010F8D: mov edx, eax */ 9249 edi = MEM32(edx); /* 0x42010F8F: mov edi, dword ptr [edx] */ 9250 ecx = esi + 0x7C; /* 0x42010F91: lea ecx, [esi + 0x7c] */ 9251 MEM32(ecx) = edi; /* 0x42010F94: mov dword ptr [ecx], edi */ 9252 edi = MEM32(edx + 0x4); /* 0x42010F96: mov edi, dword ptr [edx + 4] */ 9253 MEM32(ecx + 0x4) = edi; /* 0x42010F99: mov dword ptr [ecx + 4], edi */ 9254 edi = MEM32(edx + 0x8); /* 0x42010F9C: mov edi, dword ptr [edx + 8] */ 9255 MEM32(ecx + 0x8) = edi; /* 0x42010F9F: mov dword ptr [ecx + 8], edi */ 9256 edx = MEM32(edx + 0xC); /* 0x42010FA2: mov edx, dword ptr [edx + 0xc] */ 9257 MEM32(ecx + 0xC) = edx; /* 0x42010FA5: mov dword ptr [ecx + 0xc], edx */ 9258 edx = MEM32(eax); /* 0x42010FA8: mov edx, dword ptr [eax] */ 9259 ecx = esi + 0x6C; /* 0x42010FAA: lea ecx, [esi + 0x6c] */ 9260 MEM32(ecx) = edx; /* 0x42010FAD: mov dword ptr [ecx], edx */ 9261 edx = MEM32(eax + 0x4); /* 0x42010FAF: mov edx, dword ptr [eax + 4] */ 9262 MEM32(ecx + 0x4) = edx; /* 0x42010FB2: mov dword ptr [ecx + 4], edx */ 9263 edx = MEM32(eax + 0x8); /* 0x42010FB5: mov edx, dword ptr [eax + 8] */ 9264 MEM32(ecx + 0x8) = edx; /* 0x42010FB8: mov dword ptr [ecx + 8], edx */ 9265 eax = MEM32(eax + 0xC); /* 0x42010FBB: mov eax, dword ptr [eax + 0xc] */ 9266 MEM32(ecx + 0xC) = eax; /* 0x42010FBE: mov dword ptr [ecx + 0xc], eax */ 9267 PUSH32(esp, 0); /* 0x42010FC1: push 0 */ 9268 ecx = esi; /* 0x42010FC3: mov ecx, esi */ 9269 RECOMP_ICALL(0x420112C0u); /* 0x42010FC5: call 0x420112c0 */ /* not lifted */ 9270 RECOMP_FLAGS_IN(); 9271 fp_push(*(float*)&MEM32(esi + 0x68)); /* 0x42010FCA: fld dword ptr [esi + 0x68] */ 9272 fp_push(*(float*)&MEM32(esi + 0x64)); /* 0x42010FCD: fld dword ptr [esi + 0x64] */ 9273 ecx = esi; /* 0x42010FD0: mov ecx, esi */ 9274 fp_push(*(float*)&MEM32(esi + 0x60)); /* 0x42010FD2: fld dword ptr [esi + 0x60] */ 9275 fp_push(_st[0]); /* 0x42010FD5: fld st(0) */ 9276 _st[0] *= _st[1]; /* 0x42010FD7: fmul st(1) */ 9277 fp_push(_st[2]); /* 0x42010FD9: fld st(2) */ 9278 _st[0] *= _st[3]; /* 0x42010FDB: fmul st(3) */ 9279 { double _v = fp_pop(); _st[0] += _v; } /* 0x42010FDD: faddp st(1) */ 9280 fp_push(_st[3]); /* 0x42010FDF: fld st(3) */ 9281 _st[0] *= _st[4]; /* 0x42010FE1: fmul st(4) */ 9282 { double _v = fp_pop(); _st[0] += _v; } /* 0x42010FE3: faddp st(1) */ 9283 _st[0] = sqrt(_st[0]); /* 0x42010FE5: fsqrt */ 9284 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x42010FE7: fstp dword ptr [ebp + 8] */ 9285 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42010FEA: fstp st(0) */ 9286 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42010FEC: fstp st(0) */ 9287 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42010FEE: fstp st(0) */ 9288 RECOMP_ICALL(0x42011260u); /* 0x42010FF0: call 0x42011260 */ /* not lifted */ 9289 RECOMP_FLAGS_IN(); 9290 ecx = MEM32(eax); /* 0x42010FF5: mov ecx, dword ptr [eax] */ 9291 edx = MEM32(eax + 0x4); /* 0x42010FF7: mov edx, dword ptr [eax + 4] */ 9292 eax = MEM32(eax + 0x8); /* 0x42010FFA: mov eax, dword ptr [eax + 8] */ 9293 MEM32(ebp + (-0xC)) = ecx; /* 0x42010FFD: mov dword ptr [ebp - 0xc], ecx */ 9294 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x42011000: fld dword ptr [ebp - 0xc] */ 9295 _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x42011003: fmul dword ptr [ebp + 8] */ 9296 MEM32(ebp + (-0x8)) = edx; /* 0x42011006: mov dword ptr [ebp - 8], edx */ 9297 MEM32(ebp + (-0x4)) = eax; /* 0x42011009: mov dword ptr [ebp - 4], eax */ 9298 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x4201100C: fstp dword ptr [ebp - 0xc] */ 9299 ecx = MEM32(ebp + (-0xC)); /* 0x4201100F: mov ecx, dword ptr [ebp - 0xc] */ 9300 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x42011012: fld dword ptr [ebp - 8] */ 9301 MEM32(ebp + (-0x18)) = ecx; /* 0x42011015: mov dword ptr [ebp - 0x18], ecx */ 9302 _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x42011018: fmul dword ptr [ebp + 8] */ 9303 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x4201101B: fstp dword ptr [ebp - 8] */ 9304 edx = MEM32(ebp + (-0x8)); /* 0x4201101E: mov edx, dword ptr [ebp - 8] */ 9305 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x42011021: fld dword ptr [ebp - 4] */ 9306 MEM32(ebp + (-0x14)) = edx; /* 0x42011024: mov dword ptr [ebp - 0x14], edx */ 9307 _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x42011027: fmul dword ptr [ebp + 8] */ 9308 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x4201102A: fstp dword ptr [ebp - 4] */ 9309 eax = MEM32(ebp + (-0x4)); /* 0x4201102D: mov eax, dword ptr [ebp - 4] */ 9310 fp_push((double)(int32_t)MEM32(esi + 0x8C)); /* 0x42011030: fild dword ptr [esi + 0x8c] */ 9311 MEM32(ebp + (-0x10)) = eax; /* 0x42011036: mov dword ptr [ebp - 0x10], eax */ 9312 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x42011039: fld dword ptr [ebp - 0xc] */ 9313 _st[0] *= _st[1]; /* 0x4201103C: fmul st(1) */ 9314 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x4201103E: fstp dword ptr [ebp - 0x18] */ 9315 ecx = MEM32(ebp + (-0x18)); /* 0x42011041: mov ecx, dword ptr [ebp - 0x18] */ 9316 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x42011044: fld dword ptr [ebp - 0x14] */ 9317 MEM32(esi + 0x60) = ecx; /* 0x42011047: mov dword ptr [esi + 0x60], ecx */ 9318 _st[0] *= _st[1]; /* 0x4201104A: fmul st(1) */ 9319 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x4201104C: fstp dword ptr [ebp - 0x14] */ 9320 edx = MEM32(ebp + (-0x14)); /* 0x4201104F: mov edx, dword ptr [ebp - 0x14] */ 9321 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x42011052: fld dword ptr [ebp - 0x10] */ 9322 MEM32(esi + 0x64) = edx; /* 0x42011055: mov dword ptr [esi + 0x64], edx */ 9323 _st[0] *= _st[1]; /* 0x42011058: fmul st(1) */ 9324 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x4201105A: fstp dword ptr [ebp - 0x10] */ 9325 eax = MEM32(ebp + (-0x10)); /* 0x4201105D: mov eax, dword ptr [ebp - 0x10] */ 9326 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42011060: fstp st(0) */ 9327 ecx = esi; /* 0x42011062: mov ecx, esi */ 9328 MEM32(esi + 0x68) = eax; /* 0x42011064: mov dword ptr [esi + 0x68], eax */ 9329 RECOMP_ICALL(0x42010D40u); /* 0x42011067: call 0x42010d40 */ /* not lifted */ 9330 RECOMP_FLAGS_IN(); 9331 edi = POP32_VAL(esp); /* 0x4201106C: pop edi */ 9332 esi = POP32_VAL(esp); /* 0x4201106D: pop esi */ 9333 esp = ebp; /* 0x4201106E: mov esp, ebp */ 9334 ebp = POP32_VAL(esp); /* 0x42011070: pop ebp */ 9335 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42011071: ret 4 */ 9336 RECOMP_REGS_OUT(); 9337 } 9338 9339 void sub_42011080(void) { 9340 int _fpu_cmp = 0; 9341 uint32_t _cf = 0; 9342 int _df = 1; 9343 uint32_t _flag_k = FK_NONE; 9344 uint32_t _flag_a = 0, _flag_b = 0; 9345 uint32_t _itail_tgt = 0; 9346 RECOMP_REGS_LOCALS 9347 RECOMP_ENTER(0x42011080u); 9348 9349 L_42011080: 9350 PUSH32(esp, ebp); /* 0x42011080: push ebp */ 9351 ebp = esp; /* 0x42011081: mov ebp, esp */ 9352 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x4Cu); 9353 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9354 esp = esp - 0x4Cu; /* 0x42011083: sub esp, 0x4c */ 9355 _flag_k = FK_CMP; 9356 PUSH32(esp, ebx); /* 0x42011086: push ebx */ 9357 ebx = MEM32(ebp + 0x8); /* 0x42011087: mov ebx, dword ptr [ebp + 8] */ 9358 PUSH32(esp, esi); /* 0x4201108A: push esi */ 9359 esi = ecx; /* 0x4201108B: mov esi, ecx */ 9360 eax = esi + 0x34; /* 0x4201108D: lea eax, [esi + 0x34] */ 9361 ecx = MEM32(eax); /* 0x42011090: mov ecx, dword ptr [eax] */ 9362 edx = MEM32(eax + 0x4); /* 0x42011092: mov edx, dword ptr [eax + 4] */ 9363 eax = MEM32(eax + 0x8); /* 0x42011095: mov eax, dword ptr [eax + 8] */ 9364 MEM32(ebp + (-0x18)) = ecx; /* 0x42011098: mov dword ptr [ebp - 0x18], ecx */ 9365 PUSH32(esp, edi); /* 0x4201109B: push edi */ 9366 edi = MEM32(ebx + 0x8); /* 0x4201109C: mov edi, dword ptr [ebx + 8] */ 9367 MEM32(ebp + (-0x14)) = edx; /* 0x4201109F: mov dword ptr [ebp - 0x14], edx */ 9368 ecx = edi; /* 0x420110A2: mov ecx, edi */ 9369 edx = MEM32(ecx); /* 0x420110A4: mov edx, dword ptr [ecx] */ 9370 MEM32(ebp + (-0x10)) = eax; /* 0x420110A6: mov dword ptr [ebp - 0x10], eax */ 9371 eax = MEM32(ecx + 0x4); /* 0x420110A9: mov eax, dword ptr [ecx + 4] */ 9372 ecx = MEM32(ecx + 0x8); /* 0x420110AC: mov ecx, dword ptr [ecx + 8] */ 9373 MEM32(ebp + (-0x3C)) = edx; /* 0x420110AF: mov dword ptr [ebp - 0x3c], edx */ 9374 edx = ebp + (-0x18); /* 0x420110B2: lea edx, [ebp - 0x18] */ 9375 MEM32(ebp + (-0x34)) = ecx; /* 0x420110B5: mov dword ptr [ebp - 0x34], ecx */ 9376 PUSH32(esp, edx); /* 0x420110B8: push edx */ 9377 ecx = ebp + (-0x3C); /* 0x420110B9: lea ecx, [ebp - 0x3c] */ 9378 MEM32(ebp + (-0x38)) = eax; /* 0x420110BC: mov dword ptr [ebp - 0x38], eax */ 9379 RECOMP_ICALL(MEM32(0x420180A4)); /* 0x420110BF: call dword ptr [0x420180a4] */ 9380 RECOMP_FLAGS_IN(); 9381 ecx = MEM32(eax); /* 0x420110C5: mov ecx, dword ptr [eax] */ 9382 MEM32(ebp + (-0x24)) = ecx; /* 0x420110C7: mov dword ptr [ebp - 0x24], ecx */ 9383 edx = MEM32(eax + 0x4); /* 0x420110CA: mov edx, dword ptr [eax + 4] */ 9384 MEM32(ebp + (-0x20)) = edx; /* 0x420110CD: mov dword ptr [ebp - 0x20], edx */ 9385 eax = MEM32(eax + 0x8); /* 0x420110D0: mov eax, dword ptr [eax + 8] */ 9386 ecx = ebp + (-0x24); /* 0x420110D3: lea ecx, [ebp - 0x24] */ 9387 PUSH32(esp, ecx); /* 0x420110D6: push ecx */ 9388 edx = ebp + (-0x48); /* 0x420110D7: lea edx, [ebp - 0x48] */ 9389 PUSH32(esp, edx); /* 0x420110DA: push edx */ 9390 ecx = edi; /* 0x420110DB: mov ecx, edi */ 9391 MEM32(ebp + (-0x1C)) = eax; /* 0x420110DD: mov dword ptr [ebp - 0x1c], eax */ 9392 RECOMP_ICALL(MEM32(0x420180B0)); /* 0x420110E0: call dword ptr [0x420180b0] */ 9393 RECOMP_FLAGS_IN(); 9394 fp_push(*(float*)&MEM32(edi + 0xC)); /* 0x420110E6: fld dword ptr [edi + 0xc] */ 9395 ecx = MEM32(eax); /* 0x420110E9: mov ecx, dword ptr [eax] */ 9396 _st[0] += _st[0]; /* 0x420110EB: fadd st(0), st(0) */ 9397 MEM32(ebp + (-0x30)) = ecx; /* 0x420110ED: mov dword ptr [ebp - 0x30], ecx */ 9398 edx = MEM32(eax + 0x4); /* 0x420110F0: mov edx, dword ptr [eax + 4] */ 9399 MEM32(ebp + (-0x2C)) = edx; /* 0x420110F3: mov dword ptr [ebp - 0x2c], edx */ 9400 eax = MEM32(eax + 0x8); /* 0x420110F6: mov eax, dword ptr [eax + 8] */ 9401 PUSH32(esp, ecx); /* 0x420110F9: push ecx */ 9402 ecx = ebp + (-0x24); /* 0x420110FA: lea ecx, [ebp - 0x24] */ 9403 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x420110FD: fstp dword ptr [esp] */ 9404 MEM32(ebp + (-0x28)) = eax; /* 0x42011100: mov dword ptr [ebp - 0x28], eax */ 9405 RECOMP_ICALL(MEM32(0x42018084)); /* 0x42011103: call dword ptr [0x42018084] */ 9406 RECOMP_FLAGS_IN(); 9407 PUSH32(esp, 0x40000000u); /* 0x42011109: push 0x40000000 */ 9408 ecx = ebp + (-0x30); /* 0x4201110E: lea ecx, [ebp - 0x30] */ 9409 RECOMP_ICALL(MEM32(0x42018084)); /* 0x42011111: call dword ptr [0x42018084] */ 9410 RECOMP_FLAGS_IN(); 9411 ecx = ebp + (-0x24); /* 0x42011117: lea ecx, [ebp - 0x24] */ 9412 PUSH32(esp, ecx); /* 0x4201111A: push ecx */ 9413 ecx = ebp + (-0x18); /* 0x4201111B: lea ecx, [ebp - 0x18] */ 9414 RECOMP_ICALL(MEM32(0x4201808C)); /* 0x4201111E: call dword ptr [0x4201808c] */ 9415 RECOMP_FLAGS_IN(); 9416 edx = ebp + (-0x30); /* 0x42011124: lea edx, [ebp - 0x30] */ 9417 PUSH32(esp, edx); /* 0x42011127: push edx */ 9418 ecx = ebp + (-0x18); /* 0x42011128: lea ecx, [ebp - 0x18] */ 9419 RECOMP_ICALL(MEM32(0x4201808C)); /* 0x4201112B: call dword ptr [0x4201808c] */ 9420 RECOMP_FLAGS_IN(); 9421 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x42011131: fld dword ptr [ebp - 0x18] */ 9422 eax = MEM32(ebx + 0x4); /* 0x42011134: mov eax, dword ptr [ebx + 4] */ 9423 ecx = MEM32(eax); /* 0x42011137: mov ecx, dword ptr [eax] */ 9424 edx = MEM32(eax + 0x4); /* 0x42011139: mov edx, dword ptr [eax + 4] */ 9425 eax = MEM32(eax + 0x8); /* 0x4201113C: mov eax, dword ptr [eax + 8] */ 9426 MEM32(ebp + (-0xC)) = ecx; /* 0x4201113F: mov dword ptr [ebp - 0xc], ecx */ 9427 _st[0] += (double)*(float*)ADDR(ebp + (-0xC)); /* 0x42011142: fadd dword ptr [ebp - 0xc] */ 9428 MEM32(ebp + (-0x8)) = edx; /* 0x42011145: mov dword ptr [ebp - 8], edx */ 9429 MEM32(ebp + (-0x4)) = eax; /* 0x42011148: mov dword ptr [ebp - 4], eax */ 9430 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x4201114B: fstp dword ptr [ebp - 0xc] */ 9431 ecx = MEM32(ebp + (-0xC)); /* 0x4201114E: mov ecx, dword ptr [ebp - 0xc] */ 9432 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x42011151: fld dword ptr [ebp - 0x14] */ 9433 eax = esi + 0xC8; /* 0x42011154: lea eax, [esi + 0xc8] */ 9434 _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x4201115A: fadd dword ptr [ebp - 8] */ 9435 MEM32(ebp + 0x8) = eax; /* 0x4201115D: mov dword ptr [ebp + 8], eax */ 9436 MEM32(eax) = ecx; /* 0x42011160: mov dword ptr [eax], ecx */ 9437 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x42011162: fstp dword ptr [ebp - 8] */ 9438 edx = MEM32(ebp + (-0x8)); /* 0x42011165: mov edx, dword ptr [ebp - 8] */ 9439 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x42011168: fld dword ptr [ebp - 0x10] */ 9440 MEM32(eax + 0x4) = edx; /* 0x4201116B: mov dword ptr [eax + 4], edx */ 9441 _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x4201116E: fadd dword ptr [ebp - 4] */ 9442 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x42011171: fstp dword ptr [ebp - 4] */ 9443 ecx = MEM32(ebp + (-0x4)); /* 0x42011174: mov ecx, dword ptr [ebp - 4] */ 9444 MEM32(eax + 0x8) = ecx; /* 0x42011177: mov dword ptr [eax + 8], ecx */ 9445 edi = esi + (-0x20); /* 0x4201117A: lea edi, [esi - 0x20] */ 9446 ecx = edi; /* 0x4201117D: mov ecx, edi */ 9447 RECOMP_ICALL(0x42011250u); /* 0x4201117F: call 0x42011250 */ /* not lifted */ 9448 RECOMP_FLAGS_IN(); 9449 edx = MEM32(ebx + 0x8); /* 0x42011184: mov edx, dword ptr [ebx + 8] */ 9450 ecx = MEM32(edx); /* 0x42011187: mov ecx, dword ptr [edx] */ 9451 MEM32(ebp + (-0x4C)) = ecx; /* 0x42011189: mov dword ptr [ebp - 0x4c], ecx */ 9452 ecx = MEM32(edx + 0x4); /* 0x4201118C: mov ecx, dword ptr [edx + 4] */ 9453 MEM32(ebp + (-0x48)) = ecx; /* 0x4201118F: mov dword ptr [ebp - 0x48], ecx */ 9454 ecx = MEM32(edx + 0x8); /* 0x42011192: mov ecx, dword ptr [edx + 8] */ 9455 edx = MEM32(edx + 0xC); /* 0x42011195: mov edx, dword ptr [edx + 0xc] */ 9456 MEM32(ebp + (-0x44)) = ecx; /* 0x42011198: mov dword ptr [ebp - 0x44], ecx */ 9457 PUSH32(esp, eax); /* 0x4201119B: push eax */ 9458 ecx = ebp + (-0x4C); /* 0x4201119C: lea ecx, [ebp - 0x4c] */ 9459 MEM32(ebp + (-0x40)) = edx; /* 0x4201119F: mov dword ptr [ebp - 0x40], edx */ 9460 ebx = esi + 0xD4; /* 0x420111A2: lea ebx, [esi + 0xd4] */ 9461 RECOMP_ICALL(MEM32(0x42018074)); /* 0x420111A8: call dword ptr [0x42018074] */ 9462 RECOMP_FLAGS_IN(); 9463 edx = MEM32(eax); /* 0x420111AE: mov edx, dword ptr [eax] */ 9464 ecx = ebx; /* 0x420111B0: mov ecx, ebx */ 9465 MEM32(ecx) = edx; /* 0x420111B2: mov dword ptr [ecx], edx */ 9466 edx = MEM32(eax + 0x4); /* 0x420111B4: mov edx, dword ptr [eax + 4] */ 9467 MEM32(ecx + 0x4) = edx; /* 0x420111B7: mov dword ptr [ecx + 4], edx */ 9468 edx = MEM32(eax + 0x8); /* 0x420111BA: mov edx, dword ptr [eax + 8] */ 9469 MEM32(ecx + 0x8) = edx; /* 0x420111BD: mov dword ptr [ecx + 8], edx */ 9470 eax = MEM32(eax + 0xC); /* 0x420111C0: mov eax, dword ptr [eax + 0xc] */ 9471 MEM32(ecx + 0xC) = eax; /* 0x420111C3: mov dword ptr [ecx + 0xc], eax */ 9472 eax = MEM32(esi + 0x10C); /* 0x420111C6: mov eax, dword ptr [esi + 0x10c] */ 9473 /* test eax, eax */ /* 0x420111CC: test eax, eax */ 9474 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9475 _cf = 0; 9476 _flag_k = FK_TEST; 9477 if (TEST_Z(_flag_a, _flag_b)) goto L_420111E9; /* 0x420111CE: je 0x420111e9 */ 9478 L_420111D0: 9479 ecx = MEM32(ebp + 0x8); /* 0x420111D0: mov ecx, dword ptr [ebp + 8] */ 9480 PUSH32(esp, ebx); /* 0x420111D3: push ebx */ 9481 PUSH32(esp, ecx); /* 0x420111D4: push ecx */ 9482 PUSH32(esp, edi); /* 0x420111D5: push edi */ 9483 ecx = ebp + (-0x3C); /* 0x420111D6: lea ecx, [ebp - 0x3c] */ 9484 RECOMP_ICALL(0x420063D0u); /* 0x420111D9: call 0x420063d0 */ /* not lifted */ 9485 RECOMP_FLAGS_IN(); 9486 edx = ebp + (-0x3C); /* 0x420111DE: lea edx, [ebp - 0x3c] */ 9487 PUSH32(esp, edx); /* 0x420111E1: push edx */ 9488 ecx = edi; /* 0x420111E2: mov ecx, edi */ 9489 RECOMP_ICALL(0x420069D0u); /* 0x420111E4: call 0x420069d0 */ /* not lifted */ 9490 RECOMP_FLAGS_IN(); 9491 L_420111E9: 9492 edi = POP32_VAL(esp); /* 0x420111E9: pop edi */ 9493 esi = POP32_VAL(esp); /* 0x420111EA: pop esi */ 9494 ebx = POP32_VAL(esp); /* 0x420111EB: pop ebx */ 9495 esp = ebp; /* 0x420111EC: mov esp, ebp */ 9496 ebp = POP32_VAL(esp); /* 0x420111EE: pop ebp */ 9497 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x420111EF: ret 4 */ 9498 RECOMP_REGS_OUT(); 9499 } 9500 9501 void sub_42011200(void) { 9502 int _fpu_cmp = 0; 9503 uint32_t _cf = 0; 9504 int _df = 1; 9505 uint32_t _flag_k = FK_NONE; 9506 uint32_t _flag_a = 0, _flag_b = 0; 9507 uint32_t _itail_tgt = 0; 9508 RECOMP_REGS_LOCALS 9509 RECOMP_ENTER(0x42011200u); 9510 9511 L_42011200: 9512 eax = MEM32(ecx + 0x28); /* 0x42011200: mov eax, dword ptr [ecx + 0x28] */ 9513 /* test eax, eax */ /* 0x42011203: test eax, eax */ 9514 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9515 _cf = 0; 9516 _flag_k = FK_TEST; 9517 eax = ecx + 0x54; /* 0x42011205: lea eax, [ecx + 0x54] */ 9518 if (TEST_Z(_flag_a, _flag_b)) goto L_42011210; /* 0x42011208: je 0x42011210 */ 9519 L_4201120A: 9520 eax = ecx + 0xE8; /* 0x4201120A: lea eax, [ecx + 0xe8] */ 9521 L_42011210: 9522 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42011210: ret */ 9523 RECOMP_REGS_OUT(); 9524 }