client/game/kkr.dll/lifted-0065.c (316435B)
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_360E35BB(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(0x360E35BBu); 17 18 L_360E35BB: 19 MEM32(edx + 0x8) = ecx; /* 0x360E35BB: mov dword ptr [edx + 8], ecx */ 20 MEM32(ecx + 0x4) = edx; /* 0x360E35BE: mov dword ptr [ecx + 4], edx */ 21 ecx = MEM32(eax + 0x4); /* 0x360E35C1: mov ecx, dword ptr [eax + 4] */ 22 ecx = MEM32(ecx + 0x8); /* 0x360E35C4: mov ecx, dword ptr [ecx + 8] */ 23 edx = MEM32(eax + 0x4); /* 0x360E35C7: mov edx, dword ptr [eax + 4] */ 24 SET_LO8(edx, MEM8(edx + 0x1C)); /* 0x360E35CA: mov dl, byte ptr [edx + 0x1c] */ 25 MEM8(ecx + 0x1C) = (uint8_t)(LO8(edx)); /* 0x360E35CD: mov byte ptr [ecx + 0x1c], dl */ 26 edx = MEM32(eax + 0x4); /* 0x360E35D0: mov edx, dword ptr [eax + 4] */ 27 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E35D3: mov byte ptr [edx + 0x1c], bl */ 28 ecx = MEM32(ecx + 0x8); /* 0x360E35D6: mov ecx, dword ptr [ecx + 8] */ 29 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E35D9: mov byte ptr [ecx + 0x1c], bl */ 30 ecx = MEM32(eax + 0x4); /* 0x360E35DC: mov ecx, dword ptr [eax + 4] */ 31 edx = MEM32(ecx + 0x8); /* 0x360E35DF: mov edx, dword ptr [ecx + 8] */ 32 esi = MEM32(edx); /* 0x360E35E2: mov esi, dword ptr [edx] */ 33 MEM32(ecx + 0x8) = esi; /* 0x360E35E4: mov dword ptr [ecx + 8], esi */ 34 esi = MEM32(edx); /* 0x360E35E7: mov esi, dword ptr [edx] */ 35 /* cmp esi, MEM32(edi + 0x8) */ /* 0x360E35E9: cmp esi, dword ptr [edi + 8] */ 36 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 37 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38 _flag_k = FK_CMP; 39 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E35F1; /* 0x360E35EC: je 0x360e35f1 */ 40 L_360E35EE: 41 MEM32(esi + 0x4) = ecx; /* 0x360E35EE: mov dword ptr [esi + 4], ecx */ 42 L_360E35F1: 43 esi = MEM32(ecx + 0x4); /* 0x360E35F1: mov esi, dword ptr [ecx + 4] */ 44 MEM32(edx + 0x4) = esi; /* 0x360E35F4: mov dword ptr [edx + 4], esi */ 45 esi = MEM32(edi + 0x4); /* 0x360E35F7: mov esi, dword ptr [edi + 4] */ 46 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x360E35FA: cmp ecx, dword ptr [esi + 4] */ 47 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 48 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 49 _flag_k = FK_CMP; 50 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3609; /* 0x360E35FD: jne 0x360e3609 */ 51 L_360E35FF: 52 MEM32(esi + 0x4) = edx; /* 0x360E35FF: mov dword ptr [esi + 4], edx */ 53 MEM32(edx) = ecx; /* 0x360E3602: mov dword ptr [edx], ecx */ 54 goto L_360E36BF; /* 0x360E3604: jmp 0x360e36bf */ 55 L_360E3609: 56 esi = MEM32(ecx + 0x4); /* 0x360E3609: mov esi, dword ptr [ecx + 4] */ 57 /* cmp ecx, MEM32(esi) */ /* 0x360E360C: cmp ecx, dword ptr [esi] */ 58 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 59 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 60 _flag_k = FK_CMP; 61 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3619; /* 0x360E360E: jne 0x360e3619 */ 62 L_360E3610: 63 MEM32(esi) = edx; /* 0x360E3610: mov dword ptr [esi], edx */ 64 MEM32(edx) = ecx; /* 0x360E3612: mov dword ptr [edx], ecx */ 65 goto L_360E36BF; /* 0x360E3614: jmp 0x360e36bf */ 66 L_360E3619: 67 MEM32(esi + 0x8) = edx; /* 0x360E3619: mov dword ptr [esi + 8], edx */ 68 MEM32(edx) = ecx; /* 0x360E361C: mov dword ptr [edx], ecx */ 69 goto L_360E36BF; /* 0x360E361E: jmp 0x360e36bf */ 70 L_360E36BF: 71 MEM32(ecx + 0x4) = edx; /* 0x360E36BF: mov dword ptr [ecx + 4], edx */ 72 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E36C2: mov byte ptr [eax + 0x1c], bl */ 73 edx = MEM32(ebp + (-0x4)); /* 0x360E36C5: mov edx, dword ptr [ebp - 4] */ 74 PUSH32(esp, edx); /* 0x360E36C8: push edx */ 75 RECOMP_ICALL(0x3615FCC4u); /* 0x360E36C9: call 0x3615fcc4 */ /* not lifted */ 76 RECOMP_FLAGS_IN(); 77 eax = MEM32(edi + 0x10); /* 0x360E36CE: mov eax, dword ptr [edi + 0x10] */ 78 ecx = MEM32(ebp + 0xC); /* 0x360E36D1: mov ecx, dword ptr [ebp + 0xc] */ 79 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 80 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 81 esp = esp + 4; /* 0x360E36D4: add esp, 4 */ 82 _flag_k = FK_ADD; 83 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 84 eax = eax - 1; /* 0x360E36D7: dec eax */ 85 _flag_k = FK_DEC; 86 MEM32(edi + 0x10) = eax; /* 0x360E36D8: mov dword ptr [edi + 0x10], eax */ 87 eax = MEM32(ebp + 0x8); /* 0x360E36DB: mov eax, dword ptr [ebp + 8] */ 88 edi = POP32_VAL(esp); /* 0x360E36DE: pop edi */ 89 esi = POP32_VAL(esp); /* 0x360E36DF: pop esi */ 90 MEM32(eax) = ecx; /* 0x360E36E0: mov dword ptr [eax], ecx */ 91 ebx = POP32_VAL(esp); /* 0x360E36E2: pop ebx */ 92 esp = ebp; /* 0x360E36E3: mov esp, ebp */ 93 ebp = POP32_VAL(esp); /* 0x360E36E5: pop ebp */ 94 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360E36E6: ret 8 */ 95 RECOMP_REGS_OUT(); 96 } 97 98 void sub_360E3667(void) { 99 int _fpu_cmp = 0; 100 uint32_t _cf = 0; 101 int _df = 1; 102 uint32_t _flag_k = FK_NONE; 103 uint32_t _flag_a = 0, _flag_b = 0; 104 uint32_t _itail_tgt = 0; 105 RECOMP_REGS_LOCALS 106 RECOMP_ENTER(0x360E3667u); 107 108 L_360E3667: 109 MEM32(edx) = ecx; /* 0x360E3667: mov dword ptr [edx], ecx */ 110 MEM32(ecx + 0x4) = edx; /* 0x360E3669: mov dword ptr [ecx + 4], edx */ 111 ecx = MEM32(eax + 0x4); /* 0x360E366C: mov ecx, dword ptr [eax + 4] */ 112 ecx = MEM32(ecx); /* 0x360E366F: mov ecx, dword ptr [ecx] */ 113 edx = MEM32(eax + 0x4); /* 0x360E3671: mov edx, dword ptr [eax + 4] */ 114 SET_LO8(edx, MEM8(edx + 0x1C)); /* 0x360E3674: mov dl, byte ptr [edx + 0x1c] */ 115 MEM8(ecx + 0x1C) = (uint8_t)(LO8(edx)); /* 0x360E3677: mov byte ptr [ecx + 0x1c], dl */ 116 edx = MEM32(eax + 0x4); /* 0x360E367A: mov edx, dword ptr [eax + 4] */ 117 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E367D: mov byte ptr [edx + 0x1c], bl */ 118 ecx = MEM32(ecx); /* 0x360E3680: mov ecx, dword ptr [ecx] */ 119 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E3682: mov byte ptr [ecx + 0x1c], bl */ 120 ecx = MEM32(eax + 0x4); /* 0x360E3685: mov ecx, dword ptr [eax + 4] */ 121 edx = MEM32(ecx); /* 0x360E3688: mov edx, dword ptr [ecx] */ 122 esi = MEM32(edx + 0x8); /* 0x360E368A: mov esi, dword ptr [edx + 8] */ 123 MEM32(ecx) = esi; /* 0x360E368D: mov dword ptr [ecx], esi */ 124 esi = MEM32(edx + 0x8); /* 0x360E368F: mov esi, dword ptr [edx + 8] */ 125 /* cmp esi, MEM32(edi + 0x8) */ /* 0x360E3692: cmp esi, dword ptr [edi + 8] */ 126 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 127 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 128 _flag_k = FK_CMP; 129 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E369A; /* 0x360E3695: je 0x360e369a */ 130 L_360E3697: 131 MEM32(esi + 0x4) = ecx; /* 0x360E3697: mov dword ptr [esi + 4], ecx */ 132 L_360E369A: 133 esi = MEM32(ecx + 0x4); /* 0x360E369A: mov esi, dword ptr [ecx + 4] */ 134 MEM32(edx + 0x4) = esi; /* 0x360E369D: mov dword ptr [edx + 4], esi */ 135 esi = MEM32(edi + 0x4); /* 0x360E36A0: mov esi, dword ptr [edi + 4] */ 136 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x360E36A3: cmp ecx, dword ptr [esi + 4] */ 137 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 138 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 139 _flag_k = FK_CMP; 140 if (CMP_NE(_flag_a, _flag_b)) goto L_360E36AD; /* 0x360E36A6: jne 0x360e36ad */ 141 L_360E36A8: 142 MEM32(esi + 0x4) = edx; /* 0x360E36A8: mov dword ptr [esi + 4], edx */ 143 goto L_360E36BC; /* 0x360E36AB: jmp 0x360e36bc */ 144 L_360E36AD: 145 esi = MEM32(ecx + 0x4); /* 0x360E36AD: mov esi, dword ptr [ecx + 4] */ 146 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x360E36B0: cmp ecx, dword ptr [esi + 8] */ 147 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 148 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 149 _flag_k = FK_CMP; 150 if (CMP_NE(_flag_a, _flag_b)) goto L_360E36BA; /* 0x360E36B3: jne 0x360e36ba */ 151 L_360E36B5: 152 MEM32(esi + 0x8) = edx; /* 0x360E36B5: mov dword ptr [esi + 8], edx */ 153 goto L_360E36BC; /* 0x360E36B8: jmp 0x360e36bc */ 154 L_360E36BA: 155 MEM32(esi) = edx; /* 0x360E36BA: mov dword ptr [esi], edx */ 156 L_360E36BC: 157 MEM32(edx + 0x8) = ecx; /* 0x360E36BC: mov dword ptr [edx + 8], ecx */ 158 MEM32(ecx + 0x4) = edx; /* 0x360E36BF: mov dword ptr [ecx + 4], edx */ 159 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E36C2: mov byte ptr [eax + 0x1c], bl */ 160 edx = MEM32(ebp + (-0x4)); /* 0x360E36C5: mov edx, dword ptr [ebp - 4] */ 161 PUSH32(esp, edx); /* 0x360E36C8: push edx */ 162 RECOMP_ICALL(0x3615FCC4u); /* 0x360E36C9: call 0x3615fcc4 */ /* not lifted */ 163 RECOMP_FLAGS_IN(); 164 eax = MEM32(edi + 0x10); /* 0x360E36CE: mov eax, dword ptr [edi + 0x10] */ 165 ecx = MEM32(ebp + 0xC); /* 0x360E36D1: mov ecx, dword ptr [ebp + 0xc] */ 166 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 167 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 168 esp = esp + 4; /* 0x360E36D4: add esp, 4 */ 169 _flag_k = FK_ADD; 170 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 171 eax = eax - 1; /* 0x360E36D7: dec eax */ 172 _flag_k = FK_DEC; 173 MEM32(edi + 0x10) = eax; /* 0x360E36D8: mov dword ptr [edi + 0x10], eax */ 174 eax = MEM32(ebp + 0x8); /* 0x360E36DB: mov eax, dword ptr [ebp + 8] */ 175 edi = POP32_VAL(esp); /* 0x360E36DE: pop edi */ 176 esi = POP32_VAL(esp); /* 0x360E36DF: pop esi */ 177 MEM32(eax) = ecx; /* 0x360E36E0: mov dword ptr [eax], ecx */ 178 ebx = POP32_VAL(esp); /* 0x360E36E2: pop ebx */ 179 esp = ebp; /* 0x360E36E3: mov esp, ebp */ 180 ebp = POP32_VAL(esp); /* 0x360E36E5: pop ebp */ 181 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360E36E6: ret 8 */ 182 RECOMP_REGS_OUT(); 183 } 184 185 void sub_360E36BC(void) { 186 int _fpu_cmp = 0; 187 uint32_t _cf = 0; 188 int _df = 1; 189 uint32_t _flag_k = FK_NONE; 190 uint32_t _flag_a = 0, _flag_b = 0; 191 uint32_t _itail_tgt = 0; 192 RECOMP_REGS_LOCALS 193 RECOMP_ENTER(0x360E36BCu); 194 195 L_360E36BC: 196 MEM32(edx + 0x8) = ecx; /* 0x360E36BC: mov dword ptr [edx + 8], ecx */ 197 MEM32(ecx + 0x4) = edx; /* 0x360E36BF: mov dword ptr [ecx + 4], edx */ 198 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E36C2: mov byte ptr [eax + 0x1c], bl */ 199 edx = MEM32(ebp + (-0x4)); /* 0x360E36C5: mov edx, dword ptr [ebp - 4] */ 200 PUSH32(esp, edx); /* 0x360E36C8: push edx */ 201 RECOMP_ICALL(0x3615FCC4u); /* 0x360E36C9: call 0x3615fcc4 */ /* not lifted */ 202 RECOMP_FLAGS_IN(); 203 eax = MEM32(edi + 0x10); /* 0x360E36CE: mov eax, dword ptr [edi + 0x10] */ 204 ecx = MEM32(ebp + 0xC); /* 0x360E36D1: mov ecx, dword ptr [ebp + 0xc] */ 205 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 206 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 207 esp = esp + 4; /* 0x360E36D4: add esp, 4 */ 208 _flag_k = FK_ADD; 209 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 210 eax = eax - 1; /* 0x360E36D7: dec eax */ 211 _flag_k = FK_DEC; 212 MEM32(edi + 0x10) = eax; /* 0x360E36D8: mov dword ptr [edi + 0x10], eax */ 213 eax = MEM32(ebp + 0x8); /* 0x360E36DB: mov eax, dword ptr [ebp + 8] */ 214 edi = POP32_VAL(esp); /* 0x360E36DE: pop edi */ 215 esi = POP32_VAL(esp); /* 0x360E36DF: pop esi */ 216 MEM32(eax) = ecx; /* 0x360E36E0: mov dword ptr [eax], ecx */ 217 ebx = POP32_VAL(esp); /* 0x360E36E2: pop ebx */ 218 esp = ebp; /* 0x360E36E3: mov esp, ebp */ 219 ebp = POP32_VAL(esp); /* 0x360E36E5: pop ebp */ 220 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360E36E6: ret 8 */ 221 RECOMP_REGS_OUT(); 222 } 223 224 void sub_360E36BF(void) { 225 int _fpu_cmp = 0; 226 uint32_t _cf = 0; 227 int _df = 1; 228 uint32_t _flag_k = FK_NONE; 229 uint32_t _flag_a = 0, _flag_b = 0; 230 uint32_t _itail_tgt = 0; 231 RECOMP_REGS_LOCALS 232 RECOMP_ENTER(0x360E36BFu); 233 234 L_360E36BF: 235 MEM32(ecx + 0x4) = edx; /* 0x360E36BF: mov dword ptr [ecx + 4], edx */ 236 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E36C2: mov byte ptr [eax + 0x1c], bl */ 237 edx = MEM32(ebp + (-0x4)); /* 0x360E36C5: mov edx, dword ptr [ebp - 4] */ 238 PUSH32(esp, edx); /* 0x360E36C8: push edx */ 239 RECOMP_ICALL(0x3615FCC4u); /* 0x360E36C9: call 0x3615fcc4 */ /* not lifted */ 240 RECOMP_FLAGS_IN(); 241 eax = MEM32(edi + 0x10); /* 0x360E36CE: mov eax, dword ptr [edi + 0x10] */ 242 ecx = MEM32(ebp + 0xC); /* 0x360E36D1: mov ecx, dword ptr [ebp + 0xc] */ 243 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 244 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 245 esp = esp + 4; /* 0x360E36D4: add esp, 4 */ 246 _flag_k = FK_ADD; 247 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 248 eax = eax - 1; /* 0x360E36D7: dec eax */ 249 _flag_k = FK_DEC; 250 MEM32(edi + 0x10) = eax; /* 0x360E36D8: mov dword ptr [edi + 0x10], eax */ 251 eax = MEM32(ebp + 0x8); /* 0x360E36DB: mov eax, dword ptr [ebp + 8] */ 252 edi = POP32_VAL(esp); /* 0x360E36DE: pop edi */ 253 esi = POP32_VAL(esp); /* 0x360E36DF: pop esi */ 254 MEM32(eax) = ecx; /* 0x360E36E0: mov dword ptr [eax], ecx */ 255 ebx = POP32_VAL(esp); /* 0x360E36E2: pop ebx */ 256 esp = ebp; /* 0x360E36E3: mov esp, ebp */ 257 ebp = POP32_VAL(esp); /* 0x360E36E5: pop ebp */ 258 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360E36E6: ret 8 */ 259 RECOMP_REGS_OUT(); 260 } 261 262 void sub_360E36C2(void) { 263 int _fpu_cmp = 0; 264 uint32_t _cf = 0; 265 int _df = 1; 266 uint32_t _flag_k = FK_NONE; 267 uint32_t _flag_a = 0, _flag_b = 0; 268 uint32_t _itail_tgt = 0; 269 RECOMP_REGS_LOCALS 270 RECOMP_ENTER(0x360E36C2u); 271 272 L_360E36C2: 273 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E36C2: mov byte ptr [eax + 0x1c], bl */ 274 edx = MEM32(ebp + (-0x4)); /* 0x360E36C5: mov edx, dword ptr [ebp - 4] */ 275 PUSH32(esp, edx); /* 0x360E36C8: push edx */ 276 RECOMP_ICALL(0x3615FCC4u); /* 0x360E36C9: call 0x3615fcc4 */ /* not lifted */ 277 RECOMP_FLAGS_IN(); 278 eax = MEM32(edi + 0x10); /* 0x360E36CE: mov eax, dword ptr [edi + 0x10] */ 279 ecx = MEM32(ebp + 0xC); /* 0x360E36D1: mov ecx, dword ptr [ebp + 0xc] */ 280 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 281 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 282 esp = esp + 4; /* 0x360E36D4: add esp, 4 */ 283 _flag_k = FK_ADD; 284 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 285 eax = eax - 1; /* 0x360E36D7: dec eax */ 286 _flag_k = FK_DEC; 287 MEM32(edi + 0x10) = eax; /* 0x360E36D8: mov dword ptr [edi + 0x10], eax */ 288 eax = MEM32(ebp + 0x8); /* 0x360E36DB: mov eax, dword ptr [ebp + 8] */ 289 edi = POP32_VAL(esp); /* 0x360E36DE: pop edi */ 290 esi = POP32_VAL(esp); /* 0x360E36DF: pop esi */ 291 MEM32(eax) = ecx; /* 0x360E36E0: mov dword ptr [eax], ecx */ 292 ebx = POP32_VAL(esp); /* 0x360E36E2: pop ebx */ 293 esp = ebp; /* 0x360E36E3: mov esp, ebp */ 294 ebp = POP32_VAL(esp); /* 0x360E36E5: pop ebp */ 295 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360E36E6: ret 8 */ 296 RECOMP_REGS_OUT(); 297 } 298 299 void sub_360E36F0(void) { 300 int _fpu_cmp = 0; 301 uint32_t _cf = 0; 302 int _df = 1; 303 uint32_t _flag_k = FK_NONE; 304 uint32_t _flag_a = 0, _flag_b = 0; 305 uint32_t _itail_tgt = 0; 306 RECOMP_REGS_LOCALS 307 RECOMP_ENTER(0x360E36F0u); 308 309 L_360E36F0: 310 PUSH32(esp, ebp); /* 0x360E36F0: push ebp */ 311 ebp = esp; /* 0x360E36F1: mov ebp, esp */ 312 PUSH32(esp, ebx); /* 0x360E36F3: push ebx */ 313 PUSH32(esp, esi); /* 0x360E36F4: push esi */ 314 ebx = ecx; /* 0x360E36F5: mov ebx, ecx */ 315 eax = MEM32(ebx + 0x8); /* 0x360E36F7: mov eax, dword ptr [ebx + 8] */ 316 PUSH32(esp, edi); /* 0x360E36FA: push edi */ 317 edi = MEM32(ebp + 0x8); /* 0x360E36FB: mov edi, dword ptr [ebp + 8] */ 318 /* cmp edi, eax */ /* 0x360E36FE: cmp edi, eax */ 319 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 320 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 321 _flag_k = FK_CMP; 322 esi = edi; /* 0x360E3700: mov esi, edi */ 323 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E3723; /* 0x360E3702: je 0x360e3723 */ 324 L_360E3704: 325 eax = MEM32(esi + 0x8); /* 0x360E3704: mov eax, dword ptr [esi + 8] */ 326 PUSH32(esp, eax); /* 0x360E3707: push eax */ 327 ecx = ebx; /* 0x360E3708: mov ecx, ebx */ 328 RECOMP_ICALL(0x360E36F0u); /* 0x360E370A: call 0x360e36f0 */ /* not lifted */ 329 RECOMP_FLAGS_IN(); 330 esi = MEM32(esi); /* 0x360E370F: mov esi, dword ptr [esi] */ 331 PUSH32(esp, edi); /* 0x360E3711: push edi */ 332 RECOMP_ICALL(0x3615FCC4u); /* 0x360E3712: call 0x3615fcc4 */ /* not lifted */ 333 RECOMP_FLAGS_IN(); 334 eax = MEM32(ebx + 0x8); /* 0x360E3717: mov eax, dword ptr [ebx + 8] */ 335 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 336 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 337 esp = esp + 4; /* 0x360E371A: add esp, 4 */ 338 _flag_k = FK_ADD; 339 /* cmp esi, eax */ /* 0x360E371D: cmp esi, eax */ 340 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 341 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 342 _flag_k = FK_CMP; 343 edi = esi; /* 0x360E371F: mov edi, esi */ 344 RECOMP_BACKEDGE(); 345 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3704; /* 0x360E3721: jne 0x360e3704 */ 346 L_360E3723: 347 edi = POP32_VAL(esp); /* 0x360E3723: pop edi */ 348 esi = POP32_VAL(esp); /* 0x360E3724: pop esi */ 349 ebx = POP32_VAL(esp); /* 0x360E3725: pop ebx */ 350 ebp = POP32_VAL(esp); /* 0x360E3726: pop ebp */ 351 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360E3727: ret 4 */ 352 RECOMP_REGS_OUT(); 353 } 354 355 void sub_360E3730(void) { 356 int _fpu_cmp = 0; 357 uint32_t _cf = 0; 358 int _df = 1; 359 uint32_t _flag_k = FK_NONE; 360 uint32_t _flag_a = 0, _flag_b = 0; 361 uint32_t _itail_tgt = 0; 362 RECOMP_REGS_LOCALS 363 RECOMP_ENTER(0x360E3730u); 364 365 L_360E3730: 366 PUSH32(esp, ebx); /* 0x360E3730: push ebx */ 367 PUSH32(esp, esi); /* 0x360E3731: push esi */ 368 PUSH32(esp, edi); /* 0x360E3732: push edi */ 369 PUSH32(esp, 0x20u); /* 0x360E3733: push 0x20 */ 370 esi = ecx; /* 0x360E3735: mov esi, ecx */ 371 RECOMP_ICALL(0x3615FD6Au); /* 0x360E3737: call 0x3615fd6a */ /* not lifted */ 372 RECOMP_FLAGS_IN(); 373 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 374 ebx = 0; /* 0x360E373C: xor ebx, ebx */ 375 _cf = 0; 376 _flag_k = FK_TEST; 377 MEM32(eax + 0x4) = ebx; /* 0x360E373E: mov dword ptr [eax + 4], ebx */ 378 MEM8(eax + 0x1D) = (uint8_t)(LO8(ebx)); /* 0x360E3741: mov byte ptr [eax + 0x1d], bl */ 379 SET_LO8(ecx, 1); /* 0x360E3744: mov cl, 1 */ 380 MEM8(eax + 0x1C) = (uint8_t)(LO8(ecx)); /* 0x360E3746: mov byte ptr [eax + 0x1c], cl */ 381 MEM32(esi + 0x8) = eax; /* 0x360E3749: mov dword ptr [esi + 8], eax */ 382 MEM8(eax + 0x1D) = (uint8_t)(LO8(ecx)); /* 0x360E374C: mov byte ptr [eax + 0x1d], cl */ 383 eax = MEM32(esi + 0x8); /* 0x360E374F: mov eax, dword ptr [esi + 8] */ 384 MEM32(eax) = ebx; /* 0x360E3752: mov dword ptr [eax], ebx */ 385 ecx = MEM32(esi + 0x8); /* 0x360E3754: mov ecx, dword ptr [esi + 8] */ 386 MEM32(ecx + 0x8) = ebx; /* 0x360E3757: mov dword ptr [ecx + 8], ebx */ 387 edi = MEM32(esi + 0x8); /* 0x360E375A: mov edi, dword ptr [esi + 8] */ 388 PUSH32(esp, 0x20u); /* 0x360E375D: push 0x20 */ 389 RECOMP_ICALL(0x3615FD6Au); /* 0x360E375F: call 0x3615fd6a */ /* not lifted */ 390 RECOMP_FLAGS_IN(); 391 MEM32(eax + 0x4) = edi; /* 0x360E3764: mov dword ptr [eax + 4], edi */ 392 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E3767: mov byte ptr [eax + 0x1c], bl */ 393 MEM8(eax + 0x1D) = (uint8_t)(LO8(ebx)); /* 0x360E376A: mov byte ptr [eax + 0x1d], bl */ 394 MEM32(esi + 0x4) = eax; /* 0x360E376D: mov dword ptr [esi + 4], eax */ 395 MEM32(eax) = eax; /* 0x360E3770: mov dword ptr [eax], eax */ 396 eax = MEM32(esi + 0x4); /* 0x360E3772: mov eax, dword ptr [esi + 4] */ 397 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 398 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 399 esp = esp + 8; /* 0x360E3775: add esp, 8 */ 400 _flag_k = FK_ADD; 401 edi = POP32_VAL(esp); /* 0x360E3778: pop edi */ 402 MEM32(eax + 0x8) = eax; /* 0x360E3779: mov dword ptr [eax + 8], eax */ 403 MEM32(esi + 0x10) = ebx; /* 0x360E377C: mov dword ptr [esi + 0x10], ebx */ 404 esi = POP32_VAL(esp); /* 0x360E377F: pop esi */ 405 ebx = POP32_VAL(esp); /* 0x360E3780: pop ebx */ 406 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3781: ret */ 407 RECOMP_REGS_OUT(); 408 } 409 410 void sub_360E3790(void) { 411 int _fpu_cmp = 0; 412 uint32_t _cf = 0; 413 int _df = 1; 414 uint32_t _flag_k = FK_NONE; 415 uint32_t _flag_a = 0, _flag_b = 0; 416 uint32_t _itail_tgt = 0; 417 RECOMP_REGS_LOCALS 418 RECOMP_ENTER(0x360E3790u); 419 420 L_360E3790: 421 PUSH32(esp, ebp); /* 0x360E3790: push ebp */ 422 ebp = esp; /* 0x360E3791: mov ebp, esp */ 423 PUSH32(esp, ecx); /* 0x360E3793: push ecx */ 424 PUSH32(esp, ebx); /* 0x360E3794: push ebx */ 425 PUSH32(esp, esi); /* 0x360E3795: push esi */ 426 PUSH32(esp, edi); /* 0x360E3796: push edi */ 427 PUSH32(esp, 0x20u); /* 0x360E3797: push 0x20 */ 428 esi = ecx; /* 0x360E3799: mov esi, ecx */ 429 RECOMP_ICALL(0x3615FD6Au); /* 0x360E379B: call 0x3615fd6a */ /* not lifted */ 430 RECOMP_FLAGS_IN(); 431 edi = MEM32(ebp + 0x10); /* 0x360E37A0: mov edi, dword ptr [ebp + 0x10] */ 432 ebx = MEM32(ebp + 0x14); /* 0x360E37A3: mov ebx, dword ptr [ebp + 0x14] */ 433 MEM32(eax + 0x4) = edi; /* 0x360E37A6: mov dword ptr [eax + 4], edi */ 434 MEM8(eax + 0x1C) = (uint8_t)(0); /* 0x360E37A9: mov byte ptr [eax + 0x1c], 0 */ 435 MEM8(eax + 0x1D) = (uint8_t)(0); /* 0x360E37AD: mov byte ptr [eax + 0x1d], 0 */ 436 ecx = MEM32(esi + 0x8); /* 0x360E37B1: mov ecx, dword ptr [esi + 8] */ 437 MEM32(eax) = ecx; /* 0x360E37B4: mov dword ptr [eax], ecx */ 438 edx = MEM32(esi + 0x8); /* 0x360E37B6: mov edx, dword ptr [esi + 8] */ 439 MEM32(ebp + (-0x4)) = eax; /* 0x360E37B9: mov dword ptr [ebp - 4], eax */ 440 MEM32(eax + 0x8) = edx; /* 0x360E37BC: mov dword ptr [eax + 8], edx */ 441 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 442 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 443 eax = eax + 0xCu; /* 0x360E37BF: add eax, 0xc */ 444 _flag_k = FK_ADD; 445 PUSH32(esp, ebx); /* 0x360E37C2: push ebx */ 446 PUSH32(esp, eax); /* 0x360E37C3: push eax */ 447 RECOMP_ICALL(0x360E3A00u); /* 0x360E37C4: call 0x360e3a00 */ /* not lifted */ 448 RECOMP_FLAGS_IN(); 449 ecx = MEM32(esi + 0x10); /* 0x360E37C9: mov ecx, dword ptr [esi + 0x10] */ 450 eax = MEM32(esi + 0x4); /* 0x360E37CC: mov eax, dword ptr [esi + 4] */ 451 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 452 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 453 esp = esp + 0xCu; /* 0x360E37CF: add esp, 0xc */ 454 _flag_k = FK_ADD; 455 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 456 ecx = ecx + 1; /* 0x360E37D2: inc ecx */ 457 _flag_k = FK_INC; 458 /* cmp edi, eax */ /* 0x360E37D3: cmp edi, eax */ 459 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 460 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 461 _flag_k = FK_CMP; 462 MEM32(esi + 0x10) = ecx; /* 0x360E37D5: mov dword ptr [esi + 0x10], ecx */ 463 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E37FC; /* 0x360E37D8: je 0x360e37fc */ 464 L_360E37DA: 465 eax = MEM32(ebp + 0xC); /* 0x360E37DA: mov eax, dword ptr [ebp + 0xc] */ 466 /* cmp eax, MEM32(esi + 0x8) */ /* 0x360E37DD: cmp eax, dword ptr [esi + 8] */ 467 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 468 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 469 _flag_k = FK_CMP; 470 if (CMP_NE(_flag_a, _flag_b)) goto L_360E37FC; /* 0x360E37E0: jne 0x360e37fc */ 471 L_360E37E2: 472 ecx = MEM32(ebx); /* 0x360E37E2: mov ecx, dword ptr [ebx] */ 473 /* cmp ecx, MEM32(edi + 0xC) */ /* 0x360E37E4: cmp ecx, dword ptr [edi + 0xc] */ 474 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0xC)); 475 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 476 _flag_k = FK_CMP; 477 if (CMP_B(_flag_a, _flag_b)) goto L_360E37FC; /* 0x360E37E7: jb 0x360e37fc */ 478 L_360E37E9: 479 ecx = MEM32(ebp + (-0x4)); /* 0x360E37E9: mov ecx, dword ptr [ebp - 4] */ 480 MEM32(edi + 0x8) = ecx; /* 0x360E37EC: mov dword ptr [edi + 8], ecx */ 481 eax = MEM32(esi + 0x4); /* 0x360E37EF: mov eax, dword ptr [esi + 4] */ 482 /* cmp edi, MEM32(eax + 0x8) */ /* 0x360E37F2: cmp edi, dword ptr [eax + 8] */ 483 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 484 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 485 _flag_k = FK_CMP; 486 if (CMP_NE(_flag_a, _flag_b)) goto L_360E381C; /* 0x360E37F5: jne 0x360e381c */ 487 L_360E37F7: 488 MEM32(eax + 0x8) = ecx; /* 0x360E37F7: mov dword ptr [eax + 8], ecx */ 489 goto L_360E381C; /* 0x360E37FA: jmp 0x360e381c */ 490 L_360E37FC: 491 ecx = MEM32(ebp + (-0x4)); /* 0x360E37FC: mov ecx, dword ptr [ebp - 4] */ 492 MEM32(edi) = ecx; /* 0x360E37FF: mov dword ptr [edi], ecx */ 493 eax = MEM32(esi + 0x4); /* 0x360E3801: mov eax, dword ptr [esi + 4] */ 494 /* cmp edi, eax */ /* 0x360E3804: cmp edi, eax */ 495 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 496 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 497 _flag_k = FK_CMP; 498 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3813; /* 0x360E3806: jne 0x360e3813 */ 499 L_360E3808: 500 MEM32(eax + 0x4) = ecx; /* 0x360E3808: mov dword ptr [eax + 4], ecx */ 501 edx = MEM32(esi + 0x4); /* 0x360E380B: mov edx, dword ptr [esi + 4] */ 502 MEM32(edx + 0x8) = ecx; /* 0x360E380E: mov dword ptr [edx + 8], ecx */ 503 goto L_360E381C; /* 0x360E3811: jmp 0x360e381c */ 504 L_360E3813: 505 /* cmp edi, MEM32(eax) */ /* 0x360E3813: cmp edi, dword ptr [eax] */ 506 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax)); 507 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 508 _flag_k = FK_CMP; 509 if (CMP_NE(_flag_a, _flag_b)) goto L_360E381C; /* 0x360E3815: jne 0x360e381c */ 510 L_360E3817: 511 ecx = MEM32(ebp + (-0x4)); /* 0x360E3817: mov ecx, dword ptr [ebp - 4] */ 512 MEM32(eax) = ecx; /* 0x360E381A: mov dword ptr [eax], ecx */ 513 L_360E381C: 514 edx = MEM32(esi + 0x4); /* 0x360E381C: mov edx, dword ptr [esi + 4] */ 515 eax = MEM32(ebp + (-0x4)); /* 0x360E381F: mov eax, dword ptr [ebp - 4] */ 516 /* cmp eax, MEM32(edx + 0x4) */ /* 0x360E3822: cmp eax, dword ptr [edx + 4] */ 517 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 518 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 519 _flag_k = FK_CMP; 520 SET_LO8(ebx, 1); /* 0x360E3825: mov bl, 1 */ 521 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E39AD; /* 0x360E3827: je 0x360e39ad */ 522 L_360E382D: 523 ecx = MEM32(eax + 0x4); /* 0x360E382D: mov ecx, dword ptr [eax + 4] */ 524 SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x360E3830: mov dl, byte ptr [ecx + 0x1c] */ 525 /* test LO8(edx), LO8(edx) */ /* 0x360E3833: test dl, dl */ 526 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 527 _cf = 0; 528 _flag_k = FK_NARROW(FK_TEST, 24); 529 if (TEST_NZ(_flag_a, _flag_b)) goto L_360E39AD; /* 0x360E3835: jne 0x360e39ad */ 530 L_360E383B: 531 edi = MEM32(ecx + 0x4); /* 0x360E383B: mov edi, dword ptr [ecx + 4] */ 532 edx = MEM32(edi); /* 0x360E383E: mov edx, dword ptr [edi] */ 533 /* cmp ecx, edx */ /* 0x360E3840: cmp ecx, edx */ 534 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 535 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 536 _flag_k = FK_CMP; 537 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3909; /* 0x360E3842: jne 0x360e3909 */ 538 L_360E3848: 539 edx = MEM32(edi + 0x8); /* 0x360E3848: mov edx, dword ptr [edi + 8] */ 540 /* cmp MEM8(edx + 0x1C), 0 */ /* 0x360E384B: cmp byte ptr [edx + 0x1c], 0 */ 541 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24; 542 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 543 _flag_k = FK_NARROW(FK_CMP, 24); 544 if (CMP_NE(_flag_a, _flag_b)) goto L_360E386C; /* 0x360E384F: jne 0x360e386c */ 545 L_360E3851: 546 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E3851: mov byte ptr [ecx + 0x1c], bl */ 547 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E3854: mov byte ptr [edx + 0x1c], bl */ 548 ecx = MEM32(eax + 0x4); /* 0x360E3857: mov ecx, dword ptr [eax + 4] */ 549 edx = MEM32(ecx + 0x4); /* 0x360E385A: mov edx, dword ptr [ecx + 4] */ 550 MEM8(edx + 0x1C) = (uint8_t)(0); /* 0x360E385D: mov byte ptr [edx + 0x1c], 0 */ 551 eax = MEM32(eax + 0x4); /* 0x360E3861: mov eax, dword ptr [eax + 4] */ 552 eax = MEM32(eax + 0x4); /* 0x360E3864: mov eax, dword ptr [eax + 4] */ 553 goto L_360E39A1; /* 0x360E3867: jmp 0x360e39a1 */ 554 L_360E386C: 555 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x360E386C: cmp eax, dword ptr [ecx + 8] */ 556 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 557 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 558 _flag_k = FK_CMP; 559 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38AB; /* 0x360E386F: jne 0x360e38ab */ 560 L_360E3871: 561 eax = ecx; /* 0x360E3871: mov eax, ecx */ 562 ecx = MEM32(eax + 0x8); /* 0x360E3873: mov ecx, dword ptr [eax + 8] */ 563 edx = MEM32(ecx); /* 0x360E3876: mov edx, dword ptr [ecx] */ 564 MEM32(eax + 0x8) = edx; /* 0x360E3878: mov dword ptr [eax + 8], edx */ 565 edx = MEM32(ecx); /* 0x360E387B: mov edx, dword ptr [ecx] */ 566 /* cmp edx, MEM32(esi + 0x8) */ /* 0x360E387D: cmp edx, dword ptr [esi + 8] */ 567 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 568 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 569 _flag_k = FK_CMP; 570 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E3885; /* 0x360E3880: je 0x360e3885 */ 571 L_360E3882: 572 MEM32(edx + 0x4) = eax; /* 0x360E3882: mov dword ptr [edx + 4], eax */ 573 L_360E3885: 574 edx = MEM32(eax + 0x4); /* 0x360E3885: mov edx, dword ptr [eax + 4] */ 575 MEM32(ecx + 0x4) = edx; /* 0x360E3888: mov dword ptr [ecx + 4], edx */ 576 edx = MEM32(esi + 0x4); /* 0x360E388B: mov edx, dword ptr [esi + 4] */ 577 /* cmp eax, MEM32(edx + 0x4) */ /* 0x360E388E: cmp eax, dword ptr [edx + 4] */ 578 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 579 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 580 _flag_k = FK_CMP; 581 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3898; /* 0x360E3891: jne 0x360e3898 */ 582 L_360E3893: 583 MEM32(edx + 0x4) = ecx; /* 0x360E3893: mov dword ptr [edx + 4], ecx */ 584 goto L_360E38A6; /* 0x360E3896: jmp 0x360e38a6 */ 585 L_360E3898: 586 edx = MEM32(eax + 0x4); /* 0x360E3898: mov edx, dword ptr [eax + 4] */ 587 /* cmp eax, MEM32(edx) */ /* 0x360E389B: cmp eax, dword ptr [edx] */ 588 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 589 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 590 _flag_k = FK_CMP; 591 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38A3; /* 0x360E389D: jne 0x360e38a3 */ 592 L_360E389F: 593 MEM32(edx) = ecx; /* 0x360E389F: mov dword ptr [edx], ecx */ 594 goto L_360E38A6; /* 0x360E38A1: jmp 0x360e38a6 */ 595 L_360E38A3: 596 MEM32(edx + 0x8) = ecx; /* 0x360E38A3: mov dword ptr [edx + 8], ecx */ 597 L_360E38A6: 598 MEM32(ecx) = eax; /* 0x360E38A6: mov dword ptr [ecx], eax */ 599 MEM32(eax + 0x4) = ecx; /* 0x360E38A8: mov dword ptr [eax + 4], ecx */ 600 L_360E38AB: 601 ecx = MEM32(eax + 0x4); /* 0x360E38AB: mov ecx, dword ptr [eax + 4] */ 602 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E38AE: mov byte ptr [ecx + 0x1c], bl */ 603 edx = MEM32(eax + 0x4); /* 0x360E38B1: mov edx, dword ptr [eax + 4] */ 604 ecx = MEM32(edx + 0x4); /* 0x360E38B4: mov ecx, dword ptr [edx + 4] */ 605 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x360E38B7: mov byte ptr [ecx + 0x1c], 0 */ 606 edx = MEM32(eax + 0x4); /* 0x360E38BB: mov edx, dword ptr [eax + 4] */ 607 ecx = MEM32(edx + 0x4); /* 0x360E38BE: mov ecx, dword ptr [edx + 4] */ 608 edx = MEM32(ecx); /* 0x360E38C1: mov edx, dword ptr [ecx] */ 609 edi = MEM32(edx + 0x8); /* 0x360E38C3: mov edi, dword ptr [edx + 8] */ 610 MEM32(ecx) = edi; /* 0x360E38C6: mov dword ptr [ecx], edi */ 611 edi = MEM32(edx + 0x8); /* 0x360E38C8: mov edi, dword ptr [edx + 8] */ 612 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360E38CB: cmp edi, dword ptr [esi + 8] */ 613 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 614 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 615 _flag_k = FK_CMP; 616 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E38D3; /* 0x360E38CE: je 0x360e38d3 */ 617 L_360E38D0: 618 MEM32(edi + 0x4) = ecx; /* 0x360E38D0: mov dword ptr [edi + 4], ecx */ 619 L_360E38D3: 620 edi = MEM32(ecx + 0x4); /* 0x360E38D3: mov edi, dword ptr [ecx + 4] */ 621 MEM32(edx + 0x4) = edi; /* 0x360E38D6: mov dword ptr [edx + 4], edi */ 622 edi = MEM32(esi + 0x4); /* 0x360E38D9: mov edi, dword ptr [esi + 4] */ 623 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360E38DC: cmp ecx, dword ptr [edi + 4] */ 624 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 625 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 626 _flag_k = FK_CMP; 627 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38EC; /* 0x360E38DF: jne 0x360e38ec */ 628 L_360E38E1: 629 MEM32(edi + 0x4) = edx; /* 0x360E38E1: mov dword ptr [edi + 4], edx */ 630 MEM32(edx + 0x8) = ecx; /* 0x360E38E4: mov dword ptr [edx + 8], ecx */ 631 goto L_360E399E; /* 0x360E38E7: jmp 0x360e399e */ 632 L_360E38EC: 633 edi = MEM32(ecx + 0x4); /* 0x360E38EC: mov edi, dword ptr [ecx + 4] */ 634 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x360E38EF: cmp ecx, dword ptr [edi + 8] */ 635 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 636 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 637 _flag_k = FK_CMP; 638 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38FF; /* 0x360E38F2: jne 0x360e38ff */ 639 L_360E38F4: 640 MEM32(edi + 0x8) = edx; /* 0x360E38F4: mov dword ptr [edi + 8], edx */ 641 MEM32(edx + 0x8) = ecx; /* 0x360E38F7: mov dword ptr [edx + 8], ecx */ 642 goto L_360E399E; /* 0x360E38FA: jmp 0x360e399e */ 643 L_360E38FF: 644 MEM32(edi) = edx; /* 0x360E38FF: mov dword ptr [edi], edx */ 645 MEM32(edx + 0x8) = ecx; /* 0x360E3901: mov dword ptr [edx + 8], ecx */ 646 goto L_360E399E; /* 0x360E3904: jmp 0x360e399e */ 647 L_360E3909: 648 /* cmp MEM8(edx + 0x1C), 0 */ /* 0x360E3909: cmp byte ptr [edx + 0x1c], 0 */ 649 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24; 650 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 651 _flag_k = FK_NARROW(FK_CMP, 24); 652 RECOMP_BACKEDGE(); 653 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E3851; /* 0x360E390D: je 0x360e3851 */ 654 L_360E3913: 655 /* cmp eax, MEM32(ecx) */ /* 0x360E3913: cmp eax, dword ptr [ecx] */ 656 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 657 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 658 _flag_k = FK_CMP; 659 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3953; /* 0x360E3915: jne 0x360e3953 */ 660 L_360E3917: 661 eax = ecx; /* 0x360E3917: mov eax, ecx */ 662 ecx = MEM32(eax); /* 0x360E3919: mov ecx, dword ptr [eax] */ 663 edx = MEM32(ecx + 0x8); /* 0x360E391B: mov edx, dword ptr [ecx + 8] */ 664 MEM32(eax) = edx; /* 0x360E391E: mov dword ptr [eax], edx */ 665 edx = MEM32(ecx + 0x8); /* 0x360E3920: mov edx, dword ptr [ecx + 8] */ 666 /* cmp edx, MEM32(esi + 0x8) */ /* 0x360E3923: cmp edx, dword ptr [esi + 8] */ 667 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 668 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 669 _flag_k = FK_CMP; 670 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E392B; /* 0x360E3926: je 0x360e392b */ 671 L_360E3928: 672 MEM32(edx + 0x4) = eax; /* 0x360E3928: mov dword ptr [edx + 4], eax */ 673 L_360E392B: 674 edx = MEM32(eax + 0x4); /* 0x360E392B: mov edx, dword ptr [eax + 4] */ 675 MEM32(ecx + 0x4) = edx; /* 0x360E392E: mov dword ptr [ecx + 4], edx */ 676 edx = MEM32(esi + 0x4); /* 0x360E3931: mov edx, dword ptr [esi + 4] */ 677 /* cmp eax, MEM32(edx + 0x4) */ /* 0x360E3934: cmp eax, dword ptr [edx + 4] */ 678 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 679 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 680 _flag_k = FK_CMP; 681 if (CMP_NE(_flag_a, _flag_b)) goto L_360E393E; /* 0x360E3937: jne 0x360e393e */ 682 L_360E3939: 683 MEM32(edx + 0x4) = ecx; /* 0x360E3939: mov dword ptr [edx + 4], ecx */ 684 goto L_360E394D; /* 0x360E393C: jmp 0x360e394d */ 685 L_360E393E: 686 edx = MEM32(eax + 0x4); /* 0x360E393E: mov edx, dword ptr [eax + 4] */ 687 /* cmp eax, MEM32(edx + 0x8) */ /* 0x360E3941: cmp eax, dword ptr [edx + 8] */ 688 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 689 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 690 _flag_k = FK_CMP; 691 if (CMP_NE(_flag_a, _flag_b)) goto L_360E394B; /* 0x360E3944: jne 0x360e394b */ 692 L_360E3946: 693 MEM32(edx + 0x8) = ecx; /* 0x360E3946: mov dword ptr [edx + 8], ecx */ 694 goto L_360E394D; /* 0x360E3949: jmp 0x360e394d */ 695 L_360E394B: 696 MEM32(edx) = ecx; /* 0x360E394B: mov dword ptr [edx], ecx */ 697 L_360E394D: 698 MEM32(ecx + 0x8) = eax; /* 0x360E394D: mov dword ptr [ecx + 8], eax */ 699 MEM32(eax + 0x4) = ecx; /* 0x360E3950: mov dword ptr [eax + 4], ecx */ 700 L_360E3953: 701 ecx = MEM32(eax + 0x4); /* 0x360E3953: mov ecx, dword ptr [eax + 4] */ 702 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E3956: mov byte ptr [ecx + 0x1c], bl */ 703 edx = MEM32(eax + 0x4); /* 0x360E3959: mov edx, dword ptr [eax + 4] */ 704 ecx = MEM32(edx + 0x4); /* 0x360E395C: mov ecx, dword ptr [edx + 4] */ 705 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x360E395F: mov byte ptr [ecx + 0x1c], 0 */ 706 edx = MEM32(eax + 0x4); /* 0x360E3963: mov edx, dword ptr [eax + 4] */ 707 ecx = MEM32(edx + 0x4); /* 0x360E3966: mov ecx, dword ptr [edx + 4] */ 708 edx = MEM32(ecx + 0x8); /* 0x360E3969: mov edx, dword ptr [ecx + 8] */ 709 edi = MEM32(edx); /* 0x360E396C: mov edi, dword ptr [edx] */ 710 MEM32(ecx + 0x8) = edi; /* 0x360E396E: mov dword ptr [ecx + 8], edi */ 711 edi = MEM32(edx); /* 0x360E3971: mov edi, dword ptr [edx] */ 712 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360E3973: cmp edi, dword ptr [esi + 8] */ 713 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 714 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 715 _flag_k = FK_CMP; 716 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E397B; /* 0x360E3976: je 0x360e397b */ 717 L_360E3978: 718 MEM32(edi + 0x4) = ecx; /* 0x360E3978: mov dword ptr [edi + 4], ecx */ 719 L_360E397B: 720 edi = MEM32(ecx + 0x4); /* 0x360E397B: mov edi, dword ptr [ecx + 4] */ 721 MEM32(edx + 0x4) = edi; /* 0x360E397E: mov dword ptr [edx + 4], edi */ 722 edi = MEM32(esi + 0x4); /* 0x360E3981: mov edi, dword ptr [esi + 4] */ 723 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360E3984: cmp ecx, dword ptr [edi + 4] */ 724 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 725 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 726 _flag_k = FK_CMP; 727 if (CMP_NE(_flag_a, _flag_b)) goto L_360E398E; /* 0x360E3987: jne 0x360e398e */ 728 L_360E3989: 729 MEM32(edi + 0x4) = edx; /* 0x360E3989: mov dword ptr [edi + 4], edx */ 730 goto L_360E399C; /* 0x360E398C: jmp 0x360e399c */ 731 L_360E398E: 732 edi = MEM32(ecx + 0x4); /* 0x360E398E: mov edi, dword ptr [ecx + 4] */ 733 /* cmp ecx, MEM32(edi) */ /* 0x360E3991: cmp ecx, dword ptr [edi] */ 734 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 735 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 736 _flag_k = FK_CMP; 737 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3999; /* 0x360E3993: jne 0x360e3999 */ 738 L_360E3995: 739 MEM32(edi) = edx; /* 0x360E3995: mov dword ptr [edi], edx */ 740 goto L_360E399C; /* 0x360E3997: jmp 0x360e399c */ 741 L_360E3999: 742 MEM32(edi + 0x8) = edx; /* 0x360E3999: mov dword ptr [edi + 8], edx */ 743 L_360E399C: 744 MEM32(edx) = ecx; /* 0x360E399C: mov dword ptr [edx], ecx */ 745 L_360E399E: 746 MEM32(ecx + 0x4) = edx; /* 0x360E399E: mov dword ptr [ecx + 4], edx */ 747 L_360E39A1: 748 ecx = MEM32(esi + 0x4); /* 0x360E39A1: mov ecx, dword ptr [esi + 4] */ 749 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x360E39A4: cmp eax, dword ptr [ecx + 4] */ 750 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 751 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 752 _flag_k = FK_CMP; 753 RECOMP_BACKEDGE(); 754 if (CMP_NE(_flag_a, _flag_b)) goto L_360E382D; /* 0x360E39A7: jne 0x360e382d */ 755 L_360E39AD: 756 edx = MEM32(esi + 0x4); /* 0x360E39AD: mov edx, dword ptr [esi + 4] */ 757 eax = MEM32(edx + 0x4); /* 0x360E39B0: mov eax, dword ptr [edx + 4] */ 758 ecx = MEM32(ebp + (-0x4)); /* 0x360E39B3: mov ecx, dword ptr [ebp - 4] */ 759 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E39B6: mov byte ptr [eax + 0x1c], bl */ 760 eax = MEM32(ebp + 0x8); /* 0x360E39B9: mov eax, dword ptr [ebp + 8] */ 761 edi = POP32_VAL(esp); /* 0x360E39BC: pop edi */ 762 esi = POP32_VAL(esp); /* 0x360E39BD: pop esi */ 763 MEM32(eax) = ecx; /* 0x360E39BE: mov dword ptr [eax], ecx */ 764 ebx = POP32_VAL(esp); /* 0x360E39C0: pop ebx */ 765 esp = ebp; /* 0x360E39C1: mov esp, ebp */ 766 ebp = POP32_VAL(esp); /* 0x360E39C3: pop ebp */ 767 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360E39C4: ret 0x10 */ 768 RECOMP_REGS_OUT(); 769 } 770 771 void sub_360E382D(void) { 772 int _fpu_cmp = 0; 773 uint32_t _cf = 0; 774 int _df = 1; 775 uint32_t _flag_k = FK_NONE; 776 uint32_t _flag_a = 0, _flag_b = 0; 777 uint32_t _itail_tgt = 0; 778 RECOMP_REGS_LOCALS 779 RECOMP_ENTER(0x360E382Du); 780 781 L_360E382D: 782 ecx = MEM32(eax + 0x4); /* 0x360E382D: mov ecx, dword ptr [eax + 4] */ 783 SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x360E3830: mov dl, byte ptr [ecx + 0x1c] */ 784 /* test LO8(edx), LO8(edx) */ /* 0x360E3833: test dl, dl */ 785 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 786 _cf = 0; 787 _flag_k = FK_NARROW(FK_TEST, 24); 788 if (TEST_NZ(_flag_a, _flag_b)) goto L_360E39AD; /* 0x360E3835: jne 0x360e39ad */ 789 L_360E383B: 790 edi = MEM32(ecx + 0x4); /* 0x360E383B: mov edi, dword ptr [ecx + 4] */ 791 edx = MEM32(edi); /* 0x360E383E: mov edx, dword ptr [edi] */ 792 /* cmp ecx, edx */ /* 0x360E3840: cmp ecx, edx */ 793 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 794 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 795 _flag_k = FK_CMP; 796 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3909; /* 0x360E3842: jne 0x360e3909 */ 797 L_360E3848: 798 edx = MEM32(edi + 0x8); /* 0x360E3848: mov edx, dword ptr [edi + 8] */ 799 /* cmp MEM8(edx + 0x1C), 0 */ /* 0x360E384B: cmp byte ptr [edx + 0x1c], 0 */ 800 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24; 801 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 802 _flag_k = FK_NARROW(FK_CMP, 24); 803 if (CMP_NE(_flag_a, _flag_b)) goto L_360E386C; /* 0x360E384F: jne 0x360e386c */ 804 L_360E3851: 805 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E3851: mov byte ptr [ecx + 0x1c], bl */ 806 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E3854: mov byte ptr [edx + 0x1c], bl */ 807 ecx = MEM32(eax + 0x4); /* 0x360E3857: mov ecx, dword ptr [eax + 4] */ 808 edx = MEM32(ecx + 0x4); /* 0x360E385A: mov edx, dword ptr [ecx + 4] */ 809 MEM8(edx + 0x1C) = (uint8_t)(0); /* 0x360E385D: mov byte ptr [edx + 0x1c], 0 */ 810 eax = MEM32(eax + 0x4); /* 0x360E3861: mov eax, dword ptr [eax + 4] */ 811 eax = MEM32(eax + 0x4); /* 0x360E3864: mov eax, dword ptr [eax + 4] */ 812 goto L_360E39A1; /* 0x360E3867: jmp 0x360e39a1 */ 813 L_360E386C: 814 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x360E386C: cmp eax, dword ptr [ecx + 8] */ 815 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 816 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 817 _flag_k = FK_CMP; 818 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38AB; /* 0x360E386F: jne 0x360e38ab */ 819 L_360E3871: 820 eax = ecx; /* 0x360E3871: mov eax, ecx */ 821 ecx = MEM32(eax + 0x8); /* 0x360E3873: mov ecx, dword ptr [eax + 8] */ 822 edx = MEM32(ecx); /* 0x360E3876: mov edx, dword ptr [ecx] */ 823 MEM32(eax + 0x8) = edx; /* 0x360E3878: mov dword ptr [eax + 8], edx */ 824 edx = MEM32(ecx); /* 0x360E387B: mov edx, dword ptr [ecx] */ 825 /* cmp edx, MEM32(esi + 0x8) */ /* 0x360E387D: cmp edx, dword ptr [esi + 8] */ 826 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 827 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 828 _flag_k = FK_CMP; 829 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E3885; /* 0x360E3880: je 0x360e3885 */ 830 L_360E3882: 831 MEM32(edx + 0x4) = eax; /* 0x360E3882: mov dword ptr [edx + 4], eax */ 832 L_360E3885: 833 edx = MEM32(eax + 0x4); /* 0x360E3885: mov edx, dword ptr [eax + 4] */ 834 MEM32(ecx + 0x4) = edx; /* 0x360E3888: mov dword ptr [ecx + 4], edx */ 835 edx = MEM32(esi + 0x4); /* 0x360E388B: mov edx, dword ptr [esi + 4] */ 836 /* cmp eax, MEM32(edx + 0x4) */ /* 0x360E388E: cmp eax, dword ptr [edx + 4] */ 837 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 838 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 839 _flag_k = FK_CMP; 840 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3898; /* 0x360E3891: jne 0x360e3898 */ 841 L_360E3893: 842 MEM32(edx + 0x4) = ecx; /* 0x360E3893: mov dword ptr [edx + 4], ecx */ 843 goto L_360E38A6; /* 0x360E3896: jmp 0x360e38a6 */ 844 L_360E3898: 845 edx = MEM32(eax + 0x4); /* 0x360E3898: mov edx, dword ptr [eax + 4] */ 846 /* cmp eax, MEM32(edx) */ /* 0x360E389B: cmp eax, dword ptr [edx] */ 847 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 848 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 849 _flag_k = FK_CMP; 850 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38A3; /* 0x360E389D: jne 0x360e38a3 */ 851 L_360E389F: 852 MEM32(edx) = ecx; /* 0x360E389F: mov dword ptr [edx], ecx */ 853 goto L_360E38A6; /* 0x360E38A1: jmp 0x360e38a6 */ 854 L_360E38A3: 855 MEM32(edx + 0x8) = ecx; /* 0x360E38A3: mov dword ptr [edx + 8], ecx */ 856 L_360E38A6: 857 MEM32(ecx) = eax; /* 0x360E38A6: mov dword ptr [ecx], eax */ 858 MEM32(eax + 0x4) = ecx; /* 0x360E38A8: mov dword ptr [eax + 4], ecx */ 859 L_360E38AB: 860 ecx = MEM32(eax + 0x4); /* 0x360E38AB: mov ecx, dword ptr [eax + 4] */ 861 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E38AE: mov byte ptr [ecx + 0x1c], bl */ 862 edx = MEM32(eax + 0x4); /* 0x360E38B1: mov edx, dword ptr [eax + 4] */ 863 ecx = MEM32(edx + 0x4); /* 0x360E38B4: mov ecx, dword ptr [edx + 4] */ 864 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x360E38B7: mov byte ptr [ecx + 0x1c], 0 */ 865 edx = MEM32(eax + 0x4); /* 0x360E38BB: mov edx, dword ptr [eax + 4] */ 866 ecx = MEM32(edx + 0x4); /* 0x360E38BE: mov ecx, dword ptr [edx + 4] */ 867 edx = MEM32(ecx); /* 0x360E38C1: mov edx, dword ptr [ecx] */ 868 edi = MEM32(edx + 0x8); /* 0x360E38C3: mov edi, dword ptr [edx + 8] */ 869 MEM32(ecx) = edi; /* 0x360E38C6: mov dword ptr [ecx], edi */ 870 edi = MEM32(edx + 0x8); /* 0x360E38C8: mov edi, dword ptr [edx + 8] */ 871 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360E38CB: cmp edi, dword ptr [esi + 8] */ 872 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 873 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 874 _flag_k = FK_CMP; 875 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E38D3; /* 0x360E38CE: je 0x360e38d3 */ 876 L_360E38D0: 877 MEM32(edi + 0x4) = ecx; /* 0x360E38D0: mov dword ptr [edi + 4], ecx */ 878 L_360E38D3: 879 edi = MEM32(ecx + 0x4); /* 0x360E38D3: mov edi, dword ptr [ecx + 4] */ 880 MEM32(edx + 0x4) = edi; /* 0x360E38D6: mov dword ptr [edx + 4], edi */ 881 edi = MEM32(esi + 0x4); /* 0x360E38D9: mov edi, dword ptr [esi + 4] */ 882 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360E38DC: cmp ecx, dword ptr [edi + 4] */ 883 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 884 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 885 _flag_k = FK_CMP; 886 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38EC; /* 0x360E38DF: jne 0x360e38ec */ 887 L_360E38E1: 888 MEM32(edi + 0x4) = edx; /* 0x360E38E1: mov dword ptr [edi + 4], edx */ 889 MEM32(edx + 0x8) = ecx; /* 0x360E38E4: mov dword ptr [edx + 8], ecx */ 890 goto L_360E399E; /* 0x360E38E7: jmp 0x360e399e */ 891 L_360E38EC: 892 edi = MEM32(ecx + 0x4); /* 0x360E38EC: mov edi, dword ptr [ecx + 4] */ 893 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x360E38EF: cmp ecx, dword ptr [edi + 8] */ 894 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 895 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 896 _flag_k = FK_CMP; 897 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38FF; /* 0x360E38F2: jne 0x360e38ff */ 898 L_360E38F4: 899 MEM32(edi + 0x8) = edx; /* 0x360E38F4: mov dword ptr [edi + 8], edx */ 900 MEM32(edx + 0x8) = ecx; /* 0x360E38F7: mov dword ptr [edx + 8], ecx */ 901 goto L_360E399E; /* 0x360E38FA: jmp 0x360e399e */ 902 L_360E38FF: 903 MEM32(edi) = edx; /* 0x360E38FF: mov dword ptr [edi], edx */ 904 MEM32(edx + 0x8) = ecx; /* 0x360E3901: mov dword ptr [edx + 8], ecx */ 905 goto L_360E399E; /* 0x360E3904: jmp 0x360e399e */ 906 L_360E3909: 907 /* cmp MEM8(edx + 0x1C), 0 */ /* 0x360E3909: cmp byte ptr [edx + 0x1c], 0 */ 908 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24; 909 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 910 _flag_k = FK_NARROW(FK_CMP, 24); 911 RECOMP_BACKEDGE(); 912 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E3851; /* 0x360E390D: je 0x360e3851 */ 913 L_360E3913: 914 /* cmp eax, MEM32(ecx) */ /* 0x360E3913: cmp eax, dword ptr [ecx] */ 915 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 916 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 917 _flag_k = FK_CMP; 918 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3953; /* 0x360E3915: jne 0x360e3953 */ 919 L_360E3917: 920 eax = ecx; /* 0x360E3917: mov eax, ecx */ 921 ecx = MEM32(eax); /* 0x360E3919: mov ecx, dword ptr [eax] */ 922 edx = MEM32(ecx + 0x8); /* 0x360E391B: mov edx, dword ptr [ecx + 8] */ 923 MEM32(eax) = edx; /* 0x360E391E: mov dword ptr [eax], edx */ 924 edx = MEM32(ecx + 0x8); /* 0x360E3920: mov edx, dword ptr [ecx + 8] */ 925 /* cmp edx, MEM32(esi + 0x8) */ /* 0x360E3923: cmp edx, dword ptr [esi + 8] */ 926 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 927 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 928 _flag_k = FK_CMP; 929 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E392B; /* 0x360E3926: je 0x360e392b */ 930 L_360E3928: 931 MEM32(edx + 0x4) = eax; /* 0x360E3928: mov dword ptr [edx + 4], eax */ 932 L_360E392B: 933 edx = MEM32(eax + 0x4); /* 0x360E392B: mov edx, dword ptr [eax + 4] */ 934 MEM32(ecx + 0x4) = edx; /* 0x360E392E: mov dword ptr [ecx + 4], edx */ 935 edx = MEM32(esi + 0x4); /* 0x360E3931: mov edx, dword ptr [esi + 4] */ 936 /* cmp eax, MEM32(edx + 0x4) */ /* 0x360E3934: cmp eax, dword ptr [edx + 4] */ 937 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 938 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 939 _flag_k = FK_CMP; 940 if (CMP_NE(_flag_a, _flag_b)) goto L_360E393E; /* 0x360E3937: jne 0x360e393e */ 941 L_360E3939: 942 MEM32(edx + 0x4) = ecx; /* 0x360E3939: mov dword ptr [edx + 4], ecx */ 943 goto L_360E394D; /* 0x360E393C: jmp 0x360e394d */ 944 L_360E393E: 945 edx = MEM32(eax + 0x4); /* 0x360E393E: mov edx, dword ptr [eax + 4] */ 946 /* cmp eax, MEM32(edx + 0x8) */ /* 0x360E3941: cmp eax, dword ptr [edx + 8] */ 947 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 948 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 949 _flag_k = FK_CMP; 950 if (CMP_NE(_flag_a, _flag_b)) goto L_360E394B; /* 0x360E3944: jne 0x360e394b */ 951 L_360E3946: 952 MEM32(edx + 0x8) = ecx; /* 0x360E3946: mov dword ptr [edx + 8], ecx */ 953 goto L_360E394D; /* 0x360E3949: jmp 0x360e394d */ 954 L_360E394B: 955 MEM32(edx) = ecx; /* 0x360E394B: mov dword ptr [edx], ecx */ 956 L_360E394D: 957 MEM32(ecx + 0x8) = eax; /* 0x360E394D: mov dword ptr [ecx + 8], eax */ 958 MEM32(eax + 0x4) = ecx; /* 0x360E3950: mov dword ptr [eax + 4], ecx */ 959 L_360E3953: 960 ecx = MEM32(eax + 0x4); /* 0x360E3953: mov ecx, dword ptr [eax + 4] */ 961 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E3956: mov byte ptr [ecx + 0x1c], bl */ 962 edx = MEM32(eax + 0x4); /* 0x360E3959: mov edx, dword ptr [eax + 4] */ 963 ecx = MEM32(edx + 0x4); /* 0x360E395C: mov ecx, dword ptr [edx + 4] */ 964 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x360E395F: mov byte ptr [ecx + 0x1c], 0 */ 965 edx = MEM32(eax + 0x4); /* 0x360E3963: mov edx, dword ptr [eax + 4] */ 966 ecx = MEM32(edx + 0x4); /* 0x360E3966: mov ecx, dword ptr [edx + 4] */ 967 edx = MEM32(ecx + 0x8); /* 0x360E3969: mov edx, dword ptr [ecx + 8] */ 968 edi = MEM32(edx); /* 0x360E396C: mov edi, dword ptr [edx] */ 969 MEM32(ecx + 0x8) = edi; /* 0x360E396E: mov dword ptr [ecx + 8], edi */ 970 edi = MEM32(edx); /* 0x360E3971: mov edi, dword ptr [edx] */ 971 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360E3973: cmp edi, dword ptr [esi + 8] */ 972 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 973 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 974 _flag_k = FK_CMP; 975 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E397B; /* 0x360E3976: je 0x360e397b */ 976 L_360E3978: 977 MEM32(edi + 0x4) = ecx; /* 0x360E3978: mov dword ptr [edi + 4], ecx */ 978 L_360E397B: 979 edi = MEM32(ecx + 0x4); /* 0x360E397B: mov edi, dword ptr [ecx + 4] */ 980 MEM32(edx + 0x4) = edi; /* 0x360E397E: mov dword ptr [edx + 4], edi */ 981 edi = MEM32(esi + 0x4); /* 0x360E3981: mov edi, dword ptr [esi + 4] */ 982 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360E3984: cmp ecx, dword ptr [edi + 4] */ 983 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 984 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 985 _flag_k = FK_CMP; 986 if (CMP_NE(_flag_a, _flag_b)) goto L_360E398E; /* 0x360E3987: jne 0x360e398e */ 987 L_360E3989: 988 MEM32(edi + 0x4) = edx; /* 0x360E3989: mov dword ptr [edi + 4], edx */ 989 goto L_360E399C; /* 0x360E398C: jmp 0x360e399c */ 990 L_360E398E: 991 edi = MEM32(ecx + 0x4); /* 0x360E398E: mov edi, dword ptr [ecx + 4] */ 992 /* cmp ecx, MEM32(edi) */ /* 0x360E3991: cmp ecx, dword ptr [edi] */ 993 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 994 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 995 _flag_k = FK_CMP; 996 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3999; /* 0x360E3993: jne 0x360e3999 */ 997 L_360E3995: 998 MEM32(edi) = edx; /* 0x360E3995: mov dword ptr [edi], edx */ 999 goto L_360E399C; /* 0x360E3997: jmp 0x360e399c */ 1000 L_360E3999: 1001 MEM32(edi + 0x8) = edx; /* 0x360E3999: mov dword ptr [edi + 8], edx */ 1002 L_360E399C: 1003 MEM32(edx) = ecx; /* 0x360E399C: mov dword ptr [edx], ecx */ 1004 L_360E399E: 1005 MEM32(ecx + 0x4) = edx; /* 0x360E399E: mov dword ptr [ecx + 4], edx */ 1006 L_360E39A1: 1007 ecx = MEM32(esi + 0x4); /* 0x360E39A1: mov ecx, dword ptr [esi + 4] */ 1008 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x360E39A4: cmp eax, dword ptr [ecx + 4] */ 1009 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 1010 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1011 _flag_k = FK_CMP; 1012 RECOMP_BACKEDGE(); 1013 if (CMP_NE(_flag_a, _flag_b)) goto L_360E382D; /* 0x360E39A7: jne 0x360e382d */ 1014 L_360E39AD: 1015 edx = MEM32(esi + 0x4); /* 0x360E39AD: mov edx, dword ptr [esi + 4] */ 1016 eax = MEM32(edx + 0x4); /* 0x360E39B0: mov eax, dword ptr [edx + 4] */ 1017 ecx = MEM32(ebp + (-0x4)); /* 0x360E39B3: mov ecx, dword ptr [ebp - 4] */ 1018 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E39B6: mov byte ptr [eax + 0x1c], bl */ 1019 eax = MEM32(ebp + 0x8); /* 0x360E39B9: mov eax, dword ptr [ebp + 8] */ 1020 edi = POP32_VAL(esp); /* 0x360E39BC: pop edi */ 1021 esi = POP32_VAL(esp); /* 0x360E39BD: pop esi */ 1022 MEM32(eax) = ecx; /* 0x360E39BE: mov dword ptr [eax], ecx */ 1023 ebx = POP32_VAL(esp); /* 0x360E39C0: pop ebx */ 1024 esp = ebp; /* 0x360E39C1: mov esp, ebp */ 1025 ebp = POP32_VAL(esp); /* 0x360E39C3: pop ebp */ 1026 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360E39C4: ret 0x10 */ 1027 RECOMP_REGS_OUT(); 1028 } 1029 1030 void sub_360E3851(void) { 1031 int _fpu_cmp = 0; 1032 uint32_t _cf = 0; 1033 int _df = 1; 1034 uint32_t _flag_k = FK_NONE; 1035 uint32_t _flag_a = 0, _flag_b = 0; 1036 uint32_t _itail_tgt = 0; 1037 RECOMP_REGS_LOCALS 1038 RECOMP_ENTER(0x360E3851u); 1039 1040 goto L_360E3851; 1041 L_360E382D: 1042 ecx = MEM32(eax + 0x4); /* 0x360E382D: mov ecx, dword ptr [eax + 4] */ 1043 SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x360E3830: mov dl, byte ptr [ecx + 0x1c] */ 1044 /* test LO8(edx), LO8(edx) */ /* 0x360E3833: test dl, dl */ 1045 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 1046 _cf = 0; 1047 _flag_k = FK_NARROW(FK_TEST, 24); 1048 if (TEST_NZ(_flag_a, _flag_b)) goto L_360E39AD; /* 0x360E3835: jne 0x360e39ad */ 1049 L_360E383B: 1050 edi = MEM32(ecx + 0x4); /* 0x360E383B: mov edi, dword ptr [ecx + 4] */ 1051 edx = MEM32(edi); /* 0x360E383E: mov edx, dword ptr [edi] */ 1052 /* cmp ecx, edx */ /* 0x360E3840: cmp ecx, edx */ 1053 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1054 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1055 _flag_k = FK_CMP; 1056 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3909; /* 0x360E3842: jne 0x360e3909 */ 1057 L_360E3848: 1058 edx = MEM32(edi + 0x8); /* 0x360E3848: mov edx, dword ptr [edi + 8] */ 1059 /* cmp MEM8(edx + 0x1C), 0 */ /* 0x360E384B: cmp byte ptr [edx + 0x1c], 0 */ 1060 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24; 1061 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1062 _flag_k = FK_NARROW(FK_CMP, 24); 1063 if (CMP_NE(_flag_a, _flag_b)) goto L_360E386C; /* 0x360E384F: jne 0x360e386c */ 1064 L_360E3851: 1065 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E3851: mov byte ptr [ecx + 0x1c], bl */ 1066 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E3854: mov byte ptr [edx + 0x1c], bl */ 1067 ecx = MEM32(eax + 0x4); /* 0x360E3857: mov ecx, dword ptr [eax + 4] */ 1068 edx = MEM32(ecx + 0x4); /* 0x360E385A: mov edx, dword ptr [ecx + 4] */ 1069 MEM8(edx + 0x1C) = (uint8_t)(0); /* 0x360E385D: mov byte ptr [edx + 0x1c], 0 */ 1070 eax = MEM32(eax + 0x4); /* 0x360E3861: mov eax, dword ptr [eax + 4] */ 1071 eax = MEM32(eax + 0x4); /* 0x360E3864: mov eax, dword ptr [eax + 4] */ 1072 goto L_360E39A1; /* 0x360E3867: jmp 0x360e39a1 */ 1073 L_360E386C: 1074 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x360E386C: cmp eax, dword ptr [ecx + 8] */ 1075 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 1076 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1077 _flag_k = FK_CMP; 1078 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38AB; /* 0x360E386F: jne 0x360e38ab */ 1079 L_360E3871: 1080 eax = ecx; /* 0x360E3871: mov eax, ecx */ 1081 ecx = MEM32(eax + 0x8); /* 0x360E3873: mov ecx, dword ptr [eax + 8] */ 1082 edx = MEM32(ecx); /* 0x360E3876: mov edx, dword ptr [ecx] */ 1083 MEM32(eax + 0x8) = edx; /* 0x360E3878: mov dword ptr [eax + 8], edx */ 1084 edx = MEM32(ecx); /* 0x360E387B: mov edx, dword ptr [ecx] */ 1085 /* cmp edx, MEM32(esi + 0x8) */ /* 0x360E387D: cmp edx, dword ptr [esi + 8] */ 1086 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1087 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1088 _flag_k = FK_CMP; 1089 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E3885; /* 0x360E3880: je 0x360e3885 */ 1090 L_360E3882: 1091 MEM32(edx + 0x4) = eax; /* 0x360E3882: mov dword ptr [edx + 4], eax */ 1092 L_360E3885: 1093 edx = MEM32(eax + 0x4); /* 0x360E3885: mov edx, dword ptr [eax + 4] */ 1094 MEM32(ecx + 0x4) = edx; /* 0x360E3888: mov dword ptr [ecx + 4], edx */ 1095 edx = MEM32(esi + 0x4); /* 0x360E388B: mov edx, dword ptr [esi + 4] */ 1096 /* cmp eax, MEM32(edx + 0x4) */ /* 0x360E388E: cmp eax, dword ptr [edx + 4] */ 1097 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1098 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1099 _flag_k = FK_CMP; 1100 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3898; /* 0x360E3891: jne 0x360e3898 */ 1101 L_360E3893: 1102 MEM32(edx + 0x4) = ecx; /* 0x360E3893: mov dword ptr [edx + 4], ecx */ 1103 goto L_360E38A6; /* 0x360E3896: jmp 0x360e38a6 */ 1104 L_360E3898: 1105 edx = MEM32(eax + 0x4); /* 0x360E3898: mov edx, dword ptr [eax + 4] */ 1106 /* cmp eax, MEM32(edx) */ /* 0x360E389B: cmp eax, dword ptr [edx] */ 1107 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 1108 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1109 _flag_k = FK_CMP; 1110 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38A3; /* 0x360E389D: jne 0x360e38a3 */ 1111 L_360E389F: 1112 MEM32(edx) = ecx; /* 0x360E389F: mov dword ptr [edx], ecx */ 1113 goto L_360E38A6; /* 0x360E38A1: jmp 0x360e38a6 */ 1114 L_360E38A3: 1115 MEM32(edx + 0x8) = ecx; /* 0x360E38A3: mov dword ptr [edx + 8], ecx */ 1116 L_360E38A6: 1117 MEM32(ecx) = eax; /* 0x360E38A6: mov dword ptr [ecx], eax */ 1118 MEM32(eax + 0x4) = ecx; /* 0x360E38A8: mov dword ptr [eax + 4], ecx */ 1119 L_360E38AB: 1120 ecx = MEM32(eax + 0x4); /* 0x360E38AB: mov ecx, dword ptr [eax + 4] */ 1121 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E38AE: mov byte ptr [ecx + 0x1c], bl */ 1122 edx = MEM32(eax + 0x4); /* 0x360E38B1: mov edx, dword ptr [eax + 4] */ 1123 ecx = MEM32(edx + 0x4); /* 0x360E38B4: mov ecx, dword ptr [edx + 4] */ 1124 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x360E38B7: mov byte ptr [ecx + 0x1c], 0 */ 1125 edx = MEM32(eax + 0x4); /* 0x360E38BB: mov edx, dword ptr [eax + 4] */ 1126 ecx = MEM32(edx + 0x4); /* 0x360E38BE: mov ecx, dword ptr [edx + 4] */ 1127 edx = MEM32(ecx); /* 0x360E38C1: mov edx, dword ptr [ecx] */ 1128 edi = MEM32(edx + 0x8); /* 0x360E38C3: mov edi, dword ptr [edx + 8] */ 1129 MEM32(ecx) = edi; /* 0x360E38C6: mov dword ptr [ecx], edi */ 1130 edi = MEM32(edx + 0x8); /* 0x360E38C8: mov edi, dword ptr [edx + 8] */ 1131 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360E38CB: cmp edi, dword ptr [esi + 8] */ 1132 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1133 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1134 _flag_k = FK_CMP; 1135 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E38D3; /* 0x360E38CE: je 0x360e38d3 */ 1136 L_360E38D0: 1137 MEM32(edi + 0x4) = ecx; /* 0x360E38D0: mov dword ptr [edi + 4], ecx */ 1138 L_360E38D3: 1139 edi = MEM32(ecx + 0x4); /* 0x360E38D3: mov edi, dword ptr [ecx + 4] */ 1140 MEM32(edx + 0x4) = edi; /* 0x360E38D6: mov dword ptr [edx + 4], edi */ 1141 edi = MEM32(esi + 0x4); /* 0x360E38D9: mov edi, dword ptr [esi + 4] */ 1142 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360E38DC: cmp ecx, dword ptr [edi + 4] */ 1143 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1144 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1145 _flag_k = FK_CMP; 1146 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38EC; /* 0x360E38DF: jne 0x360e38ec */ 1147 L_360E38E1: 1148 MEM32(edi + 0x4) = edx; /* 0x360E38E1: mov dword ptr [edi + 4], edx */ 1149 MEM32(edx + 0x8) = ecx; /* 0x360E38E4: mov dword ptr [edx + 8], ecx */ 1150 goto L_360E399E; /* 0x360E38E7: jmp 0x360e399e */ 1151 L_360E38EC: 1152 edi = MEM32(ecx + 0x4); /* 0x360E38EC: mov edi, dword ptr [ecx + 4] */ 1153 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x360E38EF: cmp ecx, dword ptr [edi + 8] */ 1154 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1155 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1156 _flag_k = FK_CMP; 1157 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38FF; /* 0x360E38F2: jne 0x360e38ff */ 1158 L_360E38F4: 1159 MEM32(edi + 0x8) = edx; /* 0x360E38F4: mov dword ptr [edi + 8], edx */ 1160 MEM32(edx + 0x8) = ecx; /* 0x360E38F7: mov dword ptr [edx + 8], ecx */ 1161 goto L_360E399E; /* 0x360E38FA: jmp 0x360e399e */ 1162 L_360E38FF: 1163 MEM32(edi) = edx; /* 0x360E38FF: mov dword ptr [edi], edx */ 1164 MEM32(edx + 0x8) = ecx; /* 0x360E3901: mov dword ptr [edx + 8], ecx */ 1165 goto L_360E399E; /* 0x360E3904: jmp 0x360e399e */ 1166 L_360E3909: 1167 /* cmp MEM8(edx + 0x1C), 0 */ /* 0x360E3909: cmp byte ptr [edx + 0x1c], 0 */ 1168 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24; 1169 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1170 _flag_k = FK_NARROW(FK_CMP, 24); 1171 RECOMP_BACKEDGE(); 1172 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E3851; /* 0x360E390D: je 0x360e3851 */ 1173 L_360E3913: 1174 /* cmp eax, MEM32(ecx) */ /* 0x360E3913: cmp eax, dword ptr [ecx] */ 1175 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 1176 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1177 _flag_k = FK_CMP; 1178 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3953; /* 0x360E3915: jne 0x360e3953 */ 1179 L_360E3917: 1180 eax = ecx; /* 0x360E3917: mov eax, ecx */ 1181 ecx = MEM32(eax); /* 0x360E3919: mov ecx, dword ptr [eax] */ 1182 edx = MEM32(ecx + 0x8); /* 0x360E391B: mov edx, dword ptr [ecx + 8] */ 1183 MEM32(eax) = edx; /* 0x360E391E: mov dword ptr [eax], edx */ 1184 edx = MEM32(ecx + 0x8); /* 0x360E3920: mov edx, dword ptr [ecx + 8] */ 1185 /* cmp edx, MEM32(esi + 0x8) */ /* 0x360E3923: cmp edx, dword ptr [esi + 8] */ 1186 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1187 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1188 _flag_k = FK_CMP; 1189 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E392B; /* 0x360E3926: je 0x360e392b */ 1190 L_360E3928: 1191 MEM32(edx + 0x4) = eax; /* 0x360E3928: mov dword ptr [edx + 4], eax */ 1192 L_360E392B: 1193 edx = MEM32(eax + 0x4); /* 0x360E392B: mov edx, dword ptr [eax + 4] */ 1194 MEM32(ecx + 0x4) = edx; /* 0x360E392E: mov dword ptr [ecx + 4], edx */ 1195 edx = MEM32(esi + 0x4); /* 0x360E3931: mov edx, dword ptr [esi + 4] */ 1196 /* cmp eax, MEM32(edx + 0x4) */ /* 0x360E3934: cmp eax, dword ptr [edx + 4] */ 1197 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1198 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1199 _flag_k = FK_CMP; 1200 if (CMP_NE(_flag_a, _flag_b)) goto L_360E393E; /* 0x360E3937: jne 0x360e393e */ 1201 L_360E3939: 1202 MEM32(edx + 0x4) = ecx; /* 0x360E3939: mov dword ptr [edx + 4], ecx */ 1203 goto L_360E394D; /* 0x360E393C: jmp 0x360e394d */ 1204 L_360E393E: 1205 edx = MEM32(eax + 0x4); /* 0x360E393E: mov edx, dword ptr [eax + 4] */ 1206 /* cmp eax, MEM32(edx + 0x8) */ /* 0x360E3941: cmp eax, dword ptr [edx + 8] */ 1207 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 1208 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1209 _flag_k = FK_CMP; 1210 if (CMP_NE(_flag_a, _flag_b)) goto L_360E394B; /* 0x360E3944: jne 0x360e394b */ 1211 L_360E3946: 1212 MEM32(edx + 0x8) = ecx; /* 0x360E3946: mov dword ptr [edx + 8], ecx */ 1213 goto L_360E394D; /* 0x360E3949: jmp 0x360e394d */ 1214 L_360E394B: 1215 MEM32(edx) = ecx; /* 0x360E394B: mov dword ptr [edx], ecx */ 1216 L_360E394D: 1217 MEM32(ecx + 0x8) = eax; /* 0x360E394D: mov dword ptr [ecx + 8], eax */ 1218 MEM32(eax + 0x4) = ecx; /* 0x360E3950: mov dword ptr [eax + 4], ecx */ 1219 L_360E3953: 1220 ecx = MEM32(eax + 0x4); /* 0x360E3953: mov ecx, dword ptr [eax + 4] */ 1221 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E3956: mov byte ptr [ecx + 0x1c], bl */ 1222 edx = MEM32(eax + 0x4); /* 0x360E3959: mov edx, dword ptr [eax + 4] */ 1223 ecx = MEM32(edx + 0x4); /* 0x360E395C: mov ecx, dword ptr [edx + 4] */ 1224 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x360E395F: mov byte ptr [ecx + 0x1c], 0 */ 1225 edx = MEM32(eax + 0x4); /* 0x360E3963: mov edx, dword ptr [eax + 4] */ 1226 ecx = MEM32(edx + 0x4); /* 0x360E3966: mov ecx, dword ptr [edx + 4] */ 1227 edx = MEM32(ecx + 0x8); /* 0x360E3969: mov edx, dword ptr [ecx + 8] */ 1228 edi = MEM32(edx); /* 0x360E396C: mov edi, dword ptr [edx] */ 1229 MEM32(ecx + 0x8) = edi; /* 0x360E396E: mov dword ptr [ecx + 8], edi */ 1230 edi = MEM32(edx); /* 0x360E3971: mov edi, dword ptr [edx] */ 1231 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360E3973: cmp edi, dword ptr [esi + 8] */ 1232 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1233 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1234 _flag_k = FK_CMP; 1235 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E397B; /* 0x360E3976: je 0x360e397b */ 1236 L_360E3978: 1237 MEM32(edi + 0x4) = ecx; /* 0x360E3978: mov dword ptr [edi + 4], ecx */ 1238 L_360E397B: 1239 edi = MEM32(ecx + 0x4); /* 0x360E397B: mov edi, dword ptr [ecx + 4] */ 1240 MEM32(edx + 0x4) = edi; /* 0x360E397E: mov dword ptr [edx + 4], edi */ 1241 edi = MEM32(esi + 0x4); /* 0x360E3981: mov edi, dword ptr [esi + 4] */ 1242 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360E3984: cmp ecx, dword ptr [edi + 4] */ 1243 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1244 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1245 _flag_k = FK_CMP; 1246 if (CMP_NE(_flag_a, _flag_b)) goto L_360E398E; /* 0x360E3987: jne 0x360e398e */ 1247 L_360E3989: 1248 MEM32(edi + 0x4) = edx; /* 0x360E3989: mov dword ptr [edi + 4], edx */ 1249 goto L_360E399C; /* 0x360E398C: jmp 0x360e399c */ 1250 L_360E398E: 1251 edi = MEM32(ecx + 0x4); /* 0x360E398E: mov edi, dword ptr [ecx + 4] */ 1252 /* cmp ecx, MEM32(edi) */ /* 0x360E3991: cmp ecx, dword ptr [edi] */ 1253 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 1254 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1255 _flag_k = FK_CMP; 1256 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3999; /* 0x360E3993: jne 0x360e3999 */ 1257 L_360E3995: 1258 MEM32(edi) = edx; /* 0x360E3995: mov dword ptr [edi], edx */ 1259 goto L_360E399C; /* 0x360E3997: jmp 0x360e399c */ 1260 L_360E3999: 1261 MEM32(edi + 0x8) = edx; /* 0x360E3999: mov dword ptr [edi + 8], edx */ 1262 L_360E399C: 1263 MEM32(edx) = ecx; /* 0x360E399C: mov dword ptr [edx], ecx */ 1264 L_360E399E: 1265 MEM32(ecx + 0x4) = edx; /* 0x360E399E: mov dword ptr [ecx + 4], edx */ 1266 L_360E39A1: 1267 ecx = MEM32(esi + 0x4); /* 0x360E39A1: mov ecx, dword ptr [esi + 4] */ 1268 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x360E39A4: cmp eax, dword ptr [ecx + 4] */ 1269 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 1270 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1271 _flag_k = FK_CMP; 1272 RECOMP_BACKEDGE(); 1273 if (CMP_NE(_flag_a, _flag_b)) goto L_360E382D; /* 0x360E39A7: jne 0x360e382d */ 1274 L_360E39AD: 1275 edx = MEM32(esi + 0x4); /* 0x360E39AD: mov edx, dword ptr [esi + 4] */ 1276 eax = MEM32(edx + 0x4); /* 0x360E39B0: mov eax, dword ptr [edx + 4] */ 1277 ecx = MEM32(ebp + (-0x4)); /* 0x360E39B3: mov ecx, dword ptr [ebp - 4] */ 1278 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E39B6: mov byte ptr [eax + 0x1c], bl */ 1279 eax = MEM32(ebp + 0x8); /* 0x360E39B9: mov eax, dword ptr [ebp + 8] */ 1280 edi = POP32_VAL(esp); /* 0x360E39BC: pop edi */ 1281 esi = POP32_VAL(esp); /* 0x360E39BD: pop esi */ 1282 MEM32(eax) = ecx; /* 0x360E39BE: mov dword ptr [eax], ecx */ 1283 ebx = POP32_VAL(esp); /* 0x360E39C0: pop ebx */ 1284 esp = ebp; /* 0x360E39C1: mov esp, ebp */ 1285 ebp = POP32_VAL(esp); /* 0x360E39C3: pop ebp */ 1286 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360E39C4: ret 0x10 */ 1287 RECOMP_REGS_OUT(); 1288 } 1289 1290 void sub_360E38A6(void) { 1291 int _fpu_cmp = 0; 1292 uint32_t _cf = 0; 1293 int _df = 1; 1294 uint32_t _flag_k = FK_NONE; 1295 uint32_t _flag_a = 0, _flag_b = 0; 1296 uint32_t _itail_tgt = 0; 1297 RECOMP_REGS_LOCALS 1298 RECOMP_ENTER(0x360E38A6u); 1299 1300 goto L_360E38A6; 1301 L_360E382D: 1302 ecx = MEM32(eax + 0x4); /* 0x360E382D: mov ecx, dword ptr [eax + 4] */ 1303 SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x360E3830: mov dl, byte ptr [ecx + 0x1c] */ 1304 /* test LO8(edx), LO8(edx) */ /* 0x360E3833: test dl, dl */ 1305 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 1306 _cf = 0; 1307 _flag_k = FK_NARROW(FK_TEST, 24); 1308 if (TEST_NZ(_flag_a, _flag_b)) goto L_360E39AD; /* 0x360E3835: jne 0x360e39ad */ 1309 L_360E383B: 1310 edi = MEM32(ecx + 0x4); /* 0x360E383B: mov edi, dword ptr [ecx + 4] */ 1311 edx = MEM32(edi); /* 0x360E383E: mov edx, dword ptr [edi] */ 1312 /* cmp ecx, edx */ /* 0x360E3840: cmp ecx, edx */ 1313 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1314 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1315 _flag_k = FK_CMP; 1316 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3909; /* 0x360E3842: jne 0x360e3909 */ 1317 L_360E3848: 1318 edx = MEM32(edi + 0x8); /* 0x360E3848: mov edx, dword ptr [edi + 8] */ 1319 /* cmp MEM8(edx + 0x1C), 0 */ /* 0x360E384B: cmp byte ptr [edx + 0x1c], 0 */ 1320 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24; 1321 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1322 _flag_k = FK_NARROW(FK_CMP, 24); 1323 if (CMP_NE(_flag_a, _flag_b)) goto L_360E386C; /* 0x360E384F: jne 0x360e386c */ 1324 L_360E3851: 1325 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E3851: mov byte ptr [ecx + 0x1c], bl */ 1326 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E3854: mov byte ptr [edx + 0x1c], bl */ 1327 ecx = MEM32(eax + 0x4); /* 0x360E3857: mov ecx, dword ptr [eax + 4] */ 1328 edx = MEM32(ecx + 0x4); /* 0x360E385A: mov edx, dword ptr [ecx + 4] */ 1329 MEM8(edx + 0x1C) = (uint8_t)(0); /* 0x360E385D: mov byte ptr [edx + 0x1c], 0 */ 1330 eax = MEM32(eax + 0x4); /* 0x360E3861: mov eax, dword ptr [eax + 4] */ 1331 eax = MEM32(eax + 0x4); /* 0x360E3864: mov eax, dword ptr [eax + 4] */ 1332 goto L_360E39A1; /* 0x360E3867: jmp 0x360e39a1 */ 1333 L_360E386C: 1334 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x360E386C: cmp eax, dword ptr [ecx + 8] */ 1335 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 1336 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1337 _flag_k = FK_CMP; 1338 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38AB; /* 0x360E386F: jne 0x360e38ab */ 1339 L_360E3871: 1340 eax = ecx; /* 0x360E3871: mov eax, ecx */ 1341 ecx = MEM32(eax + 0x8); /* 0x360E3873: mov ecx, dword ptr [eax + 8] */ 1342 edx = MEM32(ecx); /* 0x360E3876: mov edx, dword ptr [ecx] */ 1343 MEM32(eax + 0x8) = edx; /* 0x360E3878: mov dword ptr [eax + 8], edx */ 1344 edx = MEM32(ecx); /* 0x360E387B: mov edx, dword ptr [ecx] */ 1345 /* cmp edx, MEM32(esi + 0x8) */ /* 0x360E387D: cmp edx, dword ptr [esi + 8] */ 1346 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1347 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1348 _flag_k = FK_CMP; 1349 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E3885; /* 0x360E3880: je 0x360e3885 */ 1350 L_360E3882: 1351 MEM32(edx + 0x4) = eax; /* 0x360E3882: mov dword ptr [edx + 4], eax */ 1352 L_360E3885: 1353 edx = MEM32(eax + 0x4); /* 0x360E3885: mov edx, dword ptr [eax + 4] */ 1354 MEM32(ecx + 0x4) = edx; /* 0x360E3888: mov dword ptr [ecx + 4], edx */ 1355 edx = MEM32(esi + 0x4); /* 0x360E388B: mov edx, dword ptr [esi + 4] */ 1356 /* cmp eax, MEM32(edx + 0x4) */ /* 0x360E388E: cmp eax, dword ptr [edx + 4] */ 1357 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1358 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1359 _flag_k = FK_CMP; 1360 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3898; /* 0x360E3891: jne 0x360e3898 */ 1361 L_360E3893: 1362 MEM32(edx + 0x4) = ecx; /* 0x360E3893: mov dword ptr [edx + 4], ecx */ 1363 goto L_360E38A6; /* 0x360E3896: jmp 0x360e38a6 */ 1364 L_360E3898: 1365 edx = MEM32(eax + 0x4); /* 0x360E3898: mov edx, dword ptr [eax + 4] */ 1366 /* cmp eax, MEM32(edx) */ /* 0x360E389B: cmp eax, dword ptr [edx] */ 1367 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 1368 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1369 _flag_k = FK_CMP; 1370 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38A3; /* 0x360E389D: jne 0x360e38a3 */ 1371 L_360E389F: 1372 MEM32(edx) = ecx; /* 0x360E389F: mov dword ptr [edx], ecx */ 1373 goto L_360E38A6; /* 0x360E38A1: jmp 0x360e38a6 */ 1374 L_360E38A3: 1375 MEM32(edx + 0x8) = ecx; /* 0x360E38A3: mov dword ptr [edx + 8], ecx */ 1376 L_360E38A6: 1377 MEM32(ecx) = eax; /* 0x360E38A6: mov dword ptr [ecx], eax */ 1378 MEM32(eax + 0x4) = ecx; /* 0x360E38A8: mov dword ptr [eax + 4], ecx */ 1379 L_360E38AB: 1380 ecx = MEM32(eax + 0x4); /* 0x360E38AB: mov ecx, dword ptr [eax + 4] */ 1381 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E38AE: mov byte ptr [ecx + 0x1c], bl */ 1382 edx = MEM32(eax + 0x4); /* 0x360E38B1: mov edx, dword ptr [eax + 4] */ 1383 ecx = MEM32(edx + 0x4); /* 0x360E38B4: mov ecx, dword ptr [edx + 4] */ 1384 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x360E38B7: mov byte ptr [ecx + 0x1c], 0 */ 1385 edx = MEM32(eax + 0x4); /* 0x360E38BB: mov edx, dword ptr [eax + 4] */ 1386 ecx = MEM32(edx + 0x4); /* 0x360E38BE: mov ecx, dword ptr [edx + 4] */ 1387 edx = MEM32(ecx); /* 0x360E38C1: mov edx, dword ptr [ecx] */ 1388 edi = MEM32(edx + 0x8); /* 0x360E38C3: mov edi, dword ptr [edx + 8] */ 1389 MEM32(ecx) = edi; /* 0x360E38C6: mov dword ptr [ecx], edi */ 1390 edi = MEM32(edx + 0x8); /* 0x360E38C8: mov edi, dword ptr [edx + 8] */ 1391 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360E38CB: cmp edi, dword ptr [esi + 8] */ 1392 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1393 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1394 _flag_k = FK_CMP; 1395 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E38D3; /* 0x360E38CE: je 0x360e38d3 */ 1396 L_360E38D0: 1397 MEM32(edi + 0x4) = ecx; /* 0x360E38D0: mov dword ptr [edi + 4], ecx */ 1398 L_360E38D3: 1399 edi = MEM32(ecx + 0x4); /* 0x360E38D3: mov edi, dword ptr [ecx + 4] */ 1400 MEM32(edx + 0x4) = edi; /* 0x360E38D6: mov dword ptr [edx + 4], edi */ 1401 edi = MEM32(esi + 0x4); /* 0x360E38D9: mov edi, dword ptr [esi + 4] */ 1402 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360E38DC: cmp ecx, dword ptr [edi + 4] */ 1403 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1404 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1405 _flag_k = FK_CMP; 1406 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38EC; /* 0x360E38DF: jne 0x360e38ec */ 1407 L_360E38E1: 1408 MEM32(edi + 0x4) = edx; /* 0x360E38E1: mov dword ptr [edi + 4], edx */ 1409 MEM32(edx + 0x8) = ecx; /* 0x360E38E4: mov dword ptr [edx + 8], ecx */ 1410 goto L_360E399E; /* 0x360E38E7: jmp 0x360e399e */ 1411 L_360E38EC: 1412 edi = MEM32(ecx + 0x4); /* 0x360E38EC: mov edi, dword ptr [ecx + 4] */ 1413 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x360E38EF: cmp ecx, dword ptr [edi + 8] */ 1414 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1415 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1416 _flag_k = FK_CMP; 1417 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38FF; /* 0x360E38F2: jne 0x360e38ff */ 1418 L_360E38F4: 1419 MEM32(edi + 0x8) = edx; /* 0x360E38F4: mov dword ptr [edi + 8], edx */ 1420 MEM32(edx + 0x8) = ecx; /* 0x360E38F7: mov dword ptr [edx + 8], ecx */ 1421 goto L_360E399E; /* 0x360E38FA: jmp 0x360e399e */ 1422 L_360E38FF: 1423 MEM32(edi) = edx; /* 0x360E38FF: mov dword ptr [edi], edx */ 1424 MEM32(edx + 0x8) = ecx; /* 0x360E3901: mov dword ptr [edx + 8], ecx */ 1425 goto L_360E399E; /* 0x360E3904: jmp 0x360e399e */ 1426 L_360E3909: 1427 /* cmp MEM8(edx + 0x1C), 0 */ /* 0x360E3909: cmp byte ptr [edx + 0x1c], 0 */ 1428 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24; 1429 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1430 _flag_k = FK_NARROW(FK_CMP, 24); 1431 RECOMP_BACKEDGE(); 1432 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E3851; /* 0x360E390D: je 0x360e3851 */ 1433 L_360E3913: 1434 /* cmp eax, MEM32(ecx) */ /* 0x360E3913: cmp eax, dword ptr [ecx] */ 1435 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 1436 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1437 _flag_k = FK_CMP; 1438 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3953; /* 0x360E3915: jne 0x360e3953 */ 1439 L_360E3917: 1440 eax = ecx; /* 0x360E3917: mov eax, ecx */ 1441 ecx = MEM32(eax); /* 0x360E3919: mov ecx, dword ptr [eax] */ 1442 edx = MEM32(ecx + 0x8); /* 0x360E391B: mov edx, dword ptr [ecx + 8] */ 1443 MEM32(eax) = edx; /* 0x360E391E: mov dword ptr [eax], edx */ 1444 edx = MEM32(ecx + 0x8); /* 0x360E3920: mov edx, dword ptr [ecx + 8] */ 1445 /* cmp edx, MEM32(esi + 0x8) */ /* 0x360E3923: cmp edx, dword ptr [esi + 8] */ 1446 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1447 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1448 _flag_k = FK_CMP; 1449 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E392B; /* 0x360E3926: je 0x360e392b */ 1450 L_360E3928: 1451 MEM32(edx + 0x4) = eax; /* 0x360E3928: mov dword ptr [edx + 4], eax */ 1452 L_360E392B: 1453 edx = MEM32(eax + 0x4); /* 0x360E392B: mov edx, dword ptr [eax + 4] */ 1454 MEM32(ecx + 0x4) = edx; /* 0x360E392E: mov dword ptr [ecx + 4], edx */ 1455 edx = MEM32(esi + 0x4); /* 0x360E3931: mov edx, dword ptr [esi + 4] */ 1456 /* cmp eax, MEM32(edx + 0x4) */ /* 0x360E3934: cmp eax, dword ptr [edx + 4] */ 1457 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1458 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1459 _flag_k = FK_CMP; 1460 if (CMP_NE(_flag_a, _flag_b)) goto L_360E393E; /* 0x360E3937: jne 0x360e393e */ 1461 L_360E3939: 1462 MEM32(edx + 0x4) = ecx; /* 0x360E3939: mov dword ptr [edx + 4], ecx */ 1463 goto L_360E394D; /* 0x360E393C: jmp 0x360e394d */ 1464 L_360E393E: 1465 edx = MEM32(eax + 0x4); /* 0x360E393E: mov edx, dword ptr [eax + 4] */ 1466 /* cmp eax, MEM32(edx + 0x8) */ /* 0x360E3941: cmp eax, dword ptr [edx + 8] */ 1467 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 1468 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1469 _flag_k = FK_CMP; 1470 if (CMP_NE(_flag_a, _flag_b)) goto L_360E394B; /* 0x360E3944: jne 0x360e394b */ 1471 L_360E3946: 1472 MEM32(edx + 0x8) = ecx; /* 0x360E3946: mov dword ptr [edx + 8], ecx */ 1473 goto L_360E394D; /* 0x360E3949: jmp 0x360e394d */ 1474 L_360E394B: 1475 MEM32(edx) = ecx; /* 0x360E394B: mov dword ptr [edx], ecx */ 1476 L_360E394D: 1477 MEM32(ecx + 0x8) = eax; /* 0x360E394D: mov dword ptr [ecx + 8], eax */ 1478 MEM32(eax + 0x4) = ecx; /* 0x360E3950: mov dword ptr [eax + 4], ecx */ 1479 L_360E3953: 1480 ecx = MEM32(eax + 0x4); /* 0x360E3953: mov ecx, dword ptr [eax + 4] */ 1481 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E3956: mov byte ptr [ecx + 0x1c], bl */ 1482 edx = MEM32(eax + 0x4); /* 0x360E3959: mov edx, dword ptr [eax + 4] */ 1483 ecx = MEM32(edx + 0x4); /* 0x360E395C: mov ecx, dword ptr [edx + 4] */ 1484 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x360E395F: mov byte ptr [ecx + 0x1c], 0 */ 1485 edx = MEM32(eax + 0x4); /* 0x360E3963: mov edx, dword ptr [eax + 4] */ 1486 ecx = MEM32(edx + 0x4); /* 0x360E3966: mov ecx, dword ptr [edx + 4] */ 1487 edx = MEM32(ecx + 0x8); /* 0x360E3969: mov edx, dword ptr [ecx + 8] */ 1488 edi = MEM32(edx); /* 0x360E396C: mov edi, dword ptr [edx] */ 1489 MEM32(ecx + 0x8) = edi; /* 0x360E396E: mov dword ptr [ecx + 8], edi */ 1490 edi = MEM32(edx); /* 0x360E3971: mov edi, dword ptr [edx] */ 1491 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360E3973: cmp edi, dword ptr [esi + 8] */ 1492 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1493 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1494 _flag_k = FK_CMP; 1495 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E397B; /* 0x360E3976: je 0x360e397b */ 1496 L_360E3978: 1497 MEM32(edi + 0x4) = ecx; /* 0x360E3978: mov dword ptr [edi + 4], ecx */ 1498 L_360E397B: 1499 edi = MEM32(ecx + 0x4); /* 0x360E397B: mov edi, dword ptr [ecx + 4] */ 1500 MEM32(edx + 0x4) = edi; /* 0x360E397E: mov dword ptr [edx + 4], edi */ 1501 edi = MEM32(esi + 0x4); /* 0x360E3981: mov edi, dword ptr [esi + 4] */ 1502 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360E3984: cmp ecx, dword ptr [edi + 4] */ 1503 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1504 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1505 _flag_k = FK_CMP; 1506 if (CMP_NE(_flag_a, _flag_b)) goto L_360E398E; /* 0x360E3987: jne 0x360e398e */ 1507 L_360E3989: 1508 MEM32(edi + 0x4) = edx; /* 0x360E3989: mov dword ptr [edi + 4], edx */ 1509 goto L_360E399C; /* 0x360E398C: jmp 0x360e399c */ 1510 L_360E398E: 1511 edi = MEM32(ecx + 0x4); /* 0x360E398E: mov edi, dword ptr [ecx + 4] */ 1512 /* cmp ecx, MEM32(edi) */ /* 0x360E3991: cmp ecx, dword ptr [edi] */ 1513 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 1514 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1515 _flag_k = FK_CMP; 1516 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3999; /* 0x360E3993: jne 0x360e3999 */ 1517 L_360E3995: 1518 MEM32(edi) = edx; /* 0x360E3995: mov dword ptr [edi], edx */ 1519 goto L_360E399C; /* 0x360E3997: jmp 0x360e399c */ 1520 L_360E3999: 1521 MEM32(edi + 0x8) = edx; /* 0x360E3999: mov dword ptr [edi + 8], edx */ 1522 L_360E399C: 1523 MEM32(edx) = ecx; /* 0x360E399C: mov dword ptr [edx], ecx */ 1524 L_360E399E: 1525 MEM32(ecx + 0x4) = edx; /* 0x360E399E: mov dword ptr [ecx + 4], edx */ 1526 L_360E39A1: 1527 ecx = MEM32(esi + 0x4); /* 0x360E39A1: mov ecx, dword ptr [esi + 4] */ 1528 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x360E39A4: cmp eax, dword ptr [ecx + 4] */ 1529 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 1530 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1531 _flag_k = FK_CMP; 1532 RECOMP_BACKEDGE(); 1533 if (CMP_NE(_flag_a, _flag_b)) goto L_360E382D; /* 0x360E39A7: jne 0x360e382d */ 1534 L_360E39AD: 1535 edx = MEM32(esi + 0x4); /* 0x360E39AD: mov edx, dword ptr [esi + 4] */ 1536 eax = MEM32(edx + 0x4); /* 0x360E39B0: mov eax, dword ptr [edx + 4] */ 1537 ecx = MEM32(ebp + (-0x4)); /* 0x360E39B3: mov ecx, dword ptr [ebp - 4] */ 1538 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E39B6: mov byte ptr [eax + 0x1c], bl */ 1539 eax = MEM32(ebp + 0x8); /* 0x360E39B9: mov eax, dword ptr [ebp + 8] */ 1540 edi = POP32_VAL(esp); /* 0x360E39BC: pop edi */ 1541 esi = POP32_VAL(esp); /* 0x360E39BD: pop esi */ 1542 MEM32(eax) = ecx; /* 0x360E39BE: mov dword ptr [eax], ecx */ 1543 ebx = POP32_VAL(esp); /* 0x360E39C0: pop ebx */ 1544 esp = ebp; /* 0x360E39C1: mov esp, ebp */ 1545 ebp = POP32_VAL(esp); /* 0x360E39C3: pop ebp */ 1546 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360E39C4: ret 0x10 */ 1547 RECOMP_REGS_OUT(); 1548 } 1549 1550 void sub_360E38AB(void) { 1551 int _fpu_cmp = 0; 1552 uint32_t _cf = 0; 1553 int _df = 1; 1554 uint32_t _flag_k = FK_NONE; 1555 uint32_t _flag_a = 0, _flag_b = 0; 1556 uint32_t _itail_tgt = 0; 1557 RECOMP_REGS_LOCALS 1558 RECOMP_ENTER(0x360E38ABu); 1559 1560 goto L_360E38AB; 1561 L_360E382D: 1562 ecx = MEM32(eax + 0x4); /* 0x360E382D: mov ecx, dword ptr [eax + 4] */ 1563 SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x360E3830: mov dl, byte ptr [ecx + 0x1c] */ 1564 /* test LO8(edx), LO8(edx) */ /* 0x360E3833: test dl, dl */ 1565 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 1566 _cf = 0; 1567 _flag_k = FK_NARROW(FK_TEST, 24); 1568 if (TEST_NZ(_flag_a, _flag_b)) goto L_360E39AD; /* 0x360E3835: jne 0x360e39ad */ 1569 L_360E383B: 1570 edi = MEM32(ecx + 0x4); /* 0x360E383B: mov edi, dword ptr [ecx + 4] */ 1571 edx = MEM32(edi); /* 0x360E383E: mov edx, dword ptr [edi] */ 1572 /* cmp ecx, edx */ /* 0x360E3840: cmp ecx, edx */ 1573 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1574 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1575 _flag_k = FK_CMP; 1576 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3909; /* 0x360E3842: jne 0x360e3909 */ 1577 L_360E3848: 1578 edx = MEM32(edi + 0x8); /* 0x360E3848: mov edx, dword ptr [edi + 8] */ 1579 /* cmp MEM8(edx + 0x1C), 0 */ /* 0x360E384B: cmp byte ptr [edx + 0x1c], 0 */ 1580 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24; 1581 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1582 _flag_k = FK_NARROW(FK_CMP, 24); 1583 if (CMP_NE(_flag_a, _flag_b)) goto L_360E386C; /* 0x360E384F: jne 0x360e386c */ 1584 L_360E3851: 1585 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E3851: mov byte ptr [ecx + 0x1c], bl */ 1586 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E3854: mov byte ptr [edx + 0x1c], bl */ 1587 ecx = MEM32(eax + 0x4); /* 0x360E3857: mov ecx, dword ptr [eax + 4] */ 1588 edx = MEM32(ecx + 0x4); /* 0x360E385A: mov edx, dword ptr [ecx + 4] */ 1589 MEM8(edx + 0x1C) = (uint8_t)(0); /* 0x360E385D: mov byte ptr [edx + 0x1c], 0 */ 1590 eax = MEM32(eax + 0x4); /* 0x360E3861: mov eax, dword ptr [eax + 4] */ 1591 eax = MEM32(eax + 0x4); /* 0x360E3864: mov eax, dword ptr [eax + 4] */ 1592 goto L_360E39A1; /* 0x360E3867: jmp 0x360e39a1 */ 1593 L_360E386C: 1594 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x360E386C: cmp eax, dword ptr [ecx + 8] */ 1595 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 1596 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1597 _flag_k = FK_CMP; 1598 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38AB; /* 0x360E386F: jne 0x360e38ab */ 1599 L_360E3871: 1600 eax = ecx; /* 0x360E3871: mov eax, ecx */ 1601 ecx = MEM32(eax + 0x8); /* 0x360E3873: mov ecx, dword ptr [eax + 8] */ 1602 edx = MEM32(ecx); /* 0x360E3876: mov edx, dword ptr [ecx] */ 1603 MEM32(eax + 0x8) = edx; /* 0x360E3878: mov dword ptr [eax + 8], edx */ 1604 edx = MEM32(ecx); /* 0x360E387B: mov edx, dword ptr [ecx] */ 1605 /* cmp edx, MEM32(esi + 0x8) */ /* 0x360E387D: cmp edx, dword ptr [esi + 8] */ 1606 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1607 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1608 _flag_k = FK_CMP; 1609 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E3885; /* 0x360E3880: je 0x360e3885 */ 1610 L_360E3882: 1611 MEM32(edx + 0x4) = eax; /* 0x360E3882: mov dword ptr [edx + 4], eax */ 1612 L_360E3885: 1613 edx = MEM32(eax + 0x4); /* 0x360E3885: mov edx, dword ptr [eax + 4] */ 1614 MEM32(ecx + 0x4) = edx; /* 0x360E3888: mov dword ptr [ecx + 4], edx */ 1615 edx = MEM32(esi + 0x4); /* 0x360E388B: mov edx, dword ptr [esi + 4] */ 1616 /* cmp eax, MEM32(edx + 0x4) */ /* 0x360E388E: cmp eax, dword ptr [edx + 4] */ 1617 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1618 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1619 _flag_k = FK_CMP; 1620 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3898; /* 0x360E3891: jne 0x360e3898 */ 1621 L_360E3893: 1622 MEM32(edx + 0x4) = ecx; /* 0x360E3893: mov dword ptr [edx + 4], ecx */ 1623 goto L_360E38A6; /* 0x360E3896: jmp 0x360e38a6 */ 1624 L_360E3898: 1625 edx = MEM32(eax + 0x4); /* 0x360E3898: mov edx, dword ptr [eax + 4] */ 1626 /* cmp eax, MEM32(edx) */ /* 0x360E389B: cmp eax, dword ptr [edx] */ 1627 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 1628 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1629 _flag_k = FK_CMP; 1630 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38A3; /* 0x360E389D: jne 0x360e38a3 */ 1631 L_360E389F: 1632 MEM32(edx) = ecx; /* 0x360E389F: mov dword ptr [edx], ecx */ 1633 goto L_360E38A6; /* 0x360E38A1: jmp 0x360e38a6 */ 1634 L_360E38A3: 1635 MEM32(edx + 0x8) = ecx; /* 0x360E38A3: mov dword ptr [edx + 8], ecx */ 1636 L_360E38A6: 1637 MEM32(ecx) = eax; /* 0x360E38A6: mov dword ptr [ecx], eax */ 1638 MEM32(eax + 0x4) = ecx; /* 0x360E38A8: mov dword ptr [eax + 4], ecx */ 1639 L_360E38AB: 1640 ecx = MEM32(eax + 0x4); /* 0x360E38AB: mov ecx, dword ptr [eax + 4] */ 1641 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E38AE: mov byte ptr [ecx + 0x1c], bl */ 1642 edx = MEM32(eax + 0x4); /* 0x360E38B1: mov edx, dword ptr [eax + 4] */ 1643 ecx = MEM32(edx + 0x4); /* 0x360E38B4: mov ecx, dword ptr [edx + 4] */ 1644 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x360E38B7: mov byte ptr [ecx + 0x1c], 0 */ 1645 edx = MEM32(eax + 0x4); /* 0x360E38BB: mov edx, dword ptr [eax + 4] */ 1646 ecx = MEM32(edx + 0x4); /* 0x360E38BE: mov ecx, dword ptr [edx + 4] */ 1647 edx = MEM32(ecx); /* 0x360E38C1: mov edx, dword ptr [ecx] */ 1648 edi = MEM32(edx + 0x8); /* 0x360E38C3: mov edi, dword ptr [edx + 8] */ 1649 MEM32(ecx) = edi; /* 0x360E38C6: mov dword ptr [ecx], edi */ 1650 edi = MEM32(edx + 0x8); /* 0x360E38C8: mov edi, dword ptr [edx + 8] */ 1651 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360E38CB: cmp edi, dword ptr [esi + 8] */ 1652 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1653 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1654 _flag_k = FK_CMP; 1655 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E38D3; /* 0x360E38CE: je 0x360e38d3 */ 1656 L_360E38D0: 1657 MEM32(edi + 0x4) = ecx; /* 0x360E38D0: mov dword ptr [edi + 4], ecx */ 1658 L_360E38D3: 1659 edi = MEM32(ecx + 0x4); /* 0x360E38D3: mov edi, dword ptr [ecx + 4] */ 1660 MEM32(edx + 0x4) = edi; /* 0x360E38D6: mov dword ptr [edx + 4], edi */ 1661 edi = MEM32(esi + 0x4); /* 0x360E38D9: mov edi, dword ptr [esi + 4] */ 1662 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360E38DC: cmp ecx, dword ptr [edi + 4] */ 1663 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1664 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1665 _flag_k = FK_CMP; 1666 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38EC; /* 0x360E38DF: jne 0x360e38ec */ 1667 L_360E38E1: 1668 MEM32(edi + 0x4) = edx; /* 0x360E38E1: mov dword ptr [edi + 4], edx */ 1669 MEM32(edx + 0x8) = ecx; /* 0x360E38E4: mov dword ptr [edx + 8], ecx */ 1670 goto L_360E399E; /* 0x360E38E7: jmp 0x360e399e */ 1671 L_360E38EC: 1672 edi = MEM32(ecx + 0x4); /* 0x360E38EC: mov edi, dword ptr [ecx + 4] */ 1673 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x360E38EF: cmp ecx, dword ptr [edi + 8] */ 1674 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1675 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1676 _flag_k = FK_CMP; 1677 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38FF; /* 0x360E38F2: jne 0x360e38ff */ 1678 L_360E38F4: 1679 MEM32(edi + 0x8) = edx; /* 0x360E38F4: mov dword ptr [edi + 8], edx */ 1680 MEM32(edx + 0x8) = ecx; /* 0x360E38F7: mov dword ptr [edx + 8], ecx */ 1681 goto L_360E399E; /* 0x360E38FA: jmp 0x360e399e */ 1682 L_360E38FF: 1683 MEM32(edi) = edx; /* 0x360E38FF: mov dword ptr [edi], edx */ 1684 MEM32(edx + 0x8) = ecx; /* 0x360E3901: mov dword ptr [edx + 8], ecx */ 1685 goto L_360E399E; /* 0x360E3904: jmp 0x360e399e */ 1686 L_360E3909: 1687 /* cmp MEM8(edx + 0x1C), 0 */ /* 0x360E3909: cmp byte ptr [edx + 0x1c], 0 */ 1688 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24; 1689 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1690 _flag_k = FK_NARROW(FK_CMP, 24); 1691 RECOMP_BACKEDGE(); 1692 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E3851; /* 0x360E390D: je 0x360e3851 */ 1693 L_360E3913: 1694 /* cmp eax, MEM32(ecx) */ /* 0x360E3913: cmp eax, dword ptr [ecx] */ 1695 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 1696 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1697 _flag_k = FK_CMP; 1698 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3953; /* 0x360E3915: jne 0x360e3953 */ 1699 L_360E3917: 1700 eax = ecx; /* 0x360E3917: mov eax, ecx */ 1701 ecx = MEM32(eax); /* 0x360E3919: mov ecx, dword ptr [eax] */ 1702 edx = MEM32(ecx + 0x8); /* 0x360E391B: mov edx, dword ptr [ecx + 8] */ 1703 MEM32(eax) = edx; /* 0x360E391E: mov dword ptr [eax], edx */ 1704 edx = MEM32(ecx + 0x8); /* 0x360E3920: mov edx, dword ptr [ecx + 8] */ 1705 /* cmp edx, MEM32(esi + 0x8) */ /* 0x360E3923: cmp edx, dword ptr [esi + 8] */ 1706 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1707 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1708 _flag_k = FK_CMP; 1709 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E392B; /* 0x360E3926: je 0x360e392b */ 1710 L_360E3928: 1711 MEM32(edx + 0x4) = eax; /* 0x360E3928: mov dword ptr [edx + 4], eax */ 1712 L_360E392B: 1713 edx = MEM32(eax + 0x4); /* 0x360E392B: mov edx, dword ptr [eax + 4] */ 1714 MEM32(ecx + 0x4) = edx; /* 0x360E392E: mov dword ptr [ecx + 4], edx */ 1715 edx = MEM32(esi + 0x4); /* 0x360E3931: mov edx, dword ptr [esi + 4] */ 1716 /* cmp eax, MEM32(edx + 0x4) */ /* 0x360E3934: cmp eax, dword ptr [edx + 4] */ 1717 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1718 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1719 _flag_k = FK_CMP; 1720 if (CMP_NE(_flag_a, _flag_b)) goto L_360E393E; /* 0x360E3937: jne 0x360e393e */ 1721 L_360E3939: 1722 MEM32(edx + 0x4) = ecx; /* 0x360E3939: mov dword ptr [edx + 4], ecx */ 1723 goto L_360E394D; /* 0x360E393C: jmp 0x360e394d */ 1724 L_360E393E: 1725 edx = MEM32(eax + 0x4); /* 0x360E393E: mov edx, dword ptr [eax + 4] */ 1726 /* cmp eax, MEM32(edx + 0x8) */ /* 0x360E3941: cmp eax, dword ptr [edx + 8] */ 1727 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 1728 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1729 _flag_k = FK_CMP; 1730 if (CMP_NE(_flag_a, _flag_b)) goto L_360E394B; /* 0x360E3944: jne 0x360e394b */ 1731 L_360E3946: 1732 MEM32(edx + 0x8) = ecx; /* 0x360E3946: mov dword ptr [edx + 8], ecx */ 1733 goto L_360E394D; /* 0x360E3949: jmp 0x360e394d */ 1734 L_360E394B: 1735 MEM32(edx) = ecx; /* 0x360E394B: mov dword ptr [edx], ecx */ 1736 L_360E394D: 1737 MEM32(ecx + 0x8) = eax; /* 0x360E394D: mov dword ptr [ecx + 8], eax */ 1738 MEM32(eax + 0x4) = ecx; /* 0x360E3950: mov dword ptr [eax + 4], ecx */ 1739 L_360E3953: 1740 ecx = MEM32(eax + 0x4); /* 0x360E3953: mov ecx, dword ptr [eax + 4] */ 1741 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E3956: mov byte ptr [ecx + 0x1c], bl */ 1742 edx = MEM32(eax + 0x4); /* 0x360E3959: mov edx, dword ptr [eax + 4] */ 1743 ecx = MEM32(edx + 0x4); /* 0x360E395C: mov ecx, dword ptr [edx + 4] */ 1744 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x360E395F: mov byte ptr [ecx + 0x1c], 0 */ 1745 edx = MEM32(eax + 0x4); /* 0x360E3963: mov edx, dword ptr [eax + 4] */ 1746 ecx = MEM32(edx + 0x4); /* 0x360E3966: mov ecx, dword ptr [edx + 4] */ 1747 edx = MEM32(ecx + 0x8); /* 0x360E3969: mov edx, dword ptr [ecx + 8] */ 1748 edi = MEM32(edx); /* 0x360E396C: mov edi, dword ptr [edx] */ 1749 MEM32(ecx + 0x8) = edi; /* 0x360E396E: mov dword ptr [ecx + 8], edi */ 1750 edi = MEM32(edx); /* 0x360E3971: mov edi, dword ptr [edx] */ 1751 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360E3973: cmp edi, dword ptr [esi + 8] */ 1752 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1753 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1754 _flag_k = FK_CMP; 1755 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E397B; /* 0x360E3976: je 0x360e397b */ 1756 L_360E3978: 1757 MEM32(edi + 0x4) = ecx; /* 0x360E3978: mov dword ptr [edi + 4], ecx */ 1758 L_360E397B: 1759 edi = MEM32(ecx + 0x4); /* 0x360E397B: mov edi, dword ptr [ecx + 4] */ 1760 MEM32(edx + 0x4) = edi; /* 0x360E397E: mov dword ptr [edx + 4], edi */ 1761 edi = MEM32(esi + 0x4); /* 0x360E3981: mov edi, dword ptr [esi + 4] */ 1762 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360E3984: cmp ecx, dword ptr [edi + 4] */ 1763 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1764 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1765 _flag_k = FK_CMP; 1766 if (CMP_NE(_flag_a, _flag_b)) goto L_360E398E; /* 0x360E3987: jne 0x360e398e */ 1767 L_360E3989: 1768 MEM32(edi + 0x4) = edx; /* 0x360E3989: mov dword ptr [edi + 4], edx */ 1769 goto L_360E399C; /* 0x360E398C: jmp 0x360e399c */ 1770 L_360E398E: 1771 edi = MEM32(ecx + 0x4); /* 0x360E398E: mov edi, dword ptr [ecx + 4] */ 1772 /* cmp ecx, MEM32(edi) */ /* 0x360E3991: cmp ecx, dword ptr [edi] */ 1773 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 1774 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1775 _flag_k = FK_CMP; 1776 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3999; /* 0x360E3993: jne 0x360e3999 */ 1777 L_360E3995: 1778 MEM32(edi) = edx; /* 0x360E3995: mov dword ptr [edi], edx */ 1779 goto L_360E399C; /* 0x360E3997: jmp 0x360e399c */ 1780 L_360E3999: 1781 MEM32(edi + 0x8) = edx; /* 0x360E3999: mov dword ptr [edi + 8], edx */ 1782 L_360E399C: 1783 MEM32(edx) = ecx; /* 0x360E399C: mov dword ptr [edx], ecx */ 1784 L_360E399E: 1785 MEM32(ecx + 0x4) = edx; /* 0x360E399E: mov dword ptr [ecx + 4], edx */ 1786 L_360E39A1: 1787 ecx = MEM32(esi + 0x4); /* 0x360E39A1: mov ecx, dword ptr [esi + 4] */ 1788 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x360E39A4: cmp eax, dword ptr [ecx + 4] */ 1789 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 1790 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1791 _flag_k = FK_CMP; 1792 RECOMP_BACKEDGE(); 1793 if (CMP_NE(_flag_a, _flag_b)) goto L_360E382D; /* 0x360E39A7: jne 0x360e382d */ 1794 L_360E39AD: 1795 edx = MEM32(esi + 0x4); /* 0x360E39AD: mov edx, dword ptr [esi + 4] */ 1796 eax = MEM32(edx + 0x4); /* 0x360E39B0: mov eax, dword ptr [edx + 4] */ 1797 ecx = MEM32(ebp + (-0x4)); /* 0x360E39B3: mov ecx, dword ptr [ebp - 4] */ 1798 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E39B6: mov byte ptr [eax + 0x1c], bl */ 1799 eax = MEM32(ebp + 0x8); /* 0x360E39B9: mov eax, dword ptr [ebp + 8] */ 1800 edi = POP32_VAL(esp); /* 0x360E39BC: pop edi */ 1801 esi = POP32_VAL(esp); /* 0x360E39BD: pop esi */ 1802 MEM32(eax) = ecx; /* 0x360E39BE: mov dword ptr [eax], ecx */ 1803 ebx = POP32_VAL(esp); /* 0x360E39C0: pop ebx */ 1804 esp = ebp; /* 0x360E39C1: mov esp, ebp */ 1805 ebp = POP32_VAL(esp); /* 0x360E39C3: pop ebp */ 1806 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360E39C4: ret 0x10 */ 1807 RECOMP_REGS_OUT(); 1808 } 1809 1810 void sub_360E3909(void) { 1811 int _fpu_cmp = 0; 1812 uint32_t _cf = 0; 1813 int _df = 1; 1814 uint32_t _flag_k = FK_NONE; 1815 uint32_t _flag_a = 0, _flag_b = 0; 1816 uint32_t _itail_tgt = 0; 1817 RECOMP_REGS_LOCALS 1818 RECOMP_ENTER(0x360E3909u); 1819 1820 goto L_360E3909; 1821 L_360E382D: 1822 ecx = MEM32(eax + 0x4); /* 0x360E382D: mov ecx, dword ptr [eax + 4] */ 1823 SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x360E3830: mov dl, byte ptr [ecx + 0x1c] */ 1824 /* test LO8(edx), LO8(edx) */ /* 0x360E3833: test dl, dl */ 1825 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 1826 _cf = 0; 1827 _flag_k = FK_NARROW(FK_TEST, 24); 1828 if (TEST_NZ(_flag_a, _flag_b)) goto L_360E39AD; /* 0x360E3835: jne 0x360e39ad */ 1829 L_360E383B: 1830 edi = MEM32(ecx + 0x4); /* 0x360E383B: mov edi, dword ptr [ecx + 4] */ 1831 edx = MEM32(edi); /* 0x360E383E: mov edx, dword ptr [edi] */ 1832 /* cmp ecx, edx */ /* 0x360E3840: cmp ecx, edx */ 1833 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1834 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1835 _flag_k = FK_CMP; 1836 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3909; /* 0x360E3842: jne 0x360e3909 */ 1837 L_360E3848: 1838 edx = MEM32(edi + 0x8); /* 0x360E3848: mov edx, dword ptr [edi + 8] */ 1839 /* cmp MEM8(edx + 0x1C), 0 */ /* 0x360E384B: cmp byte ptr [edx + 0x1c], 0 */ 1840 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24; 1841 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1842 _flag_k = FK_NARROW(FK_CMP, 24); 1843 if (CMP_NE(_flag_a, _flag_b)) goto L_360E386C; /* 0x360E384F: jne 0x360e386c */ 1844 L_360E3851: 1845 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E3851: mov byte ptr [ecx + 0x1c], bl */ 1846 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E3854: mov byte ptr [edx + 0x1c], bl */ 1847 ecx = MEM32(eax + 0x4); /* 0x360E3857: mov ecx, dword ptr [eax + 4] */ 1848 edx = MEM32(ecx + 0x4); /* 0x360E385A: mov edx, dword ptr [ecx + 4] */ 1849 MEM8(edx + 0x1C) = (uint8_t)(0); /* 0x360E385D: mov byte ptr [edx + 0x1c], 0 */ 1850 eax = MEM32(eax + 0x4); /* 0x360E3861: mov eax, dword ptr [eax + 4] */ 1851 eax = MEM32(eax + 0x4); /* 0x360E3864: mov eax, dword ptr [eax + 4] */ 1852 goto L_360E39A1; /* 0x360E3867: jmp 0x360e39a1 */ 1853 L_360E386C: 1854 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x360E386C: cmp eax, dword ptr [ecx + 8] */ 1855 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 1856 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1857 _flag_k = FK_CMP; 1858 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38AB; /* 0x360E386F: jne 0x360e38ab */ 1859 L_360E3871: 1860 eax = ecx; /* 0x360E3871: mov eax, ecx */ 1861 ecx = MEM32(eax + 0x8); /* 0x360E3873: mov ecx, dword ptr [eax + 8] */ 1862 edx = MEM32(ecx); /* 0x360E3876: mov edx, dword ptr [ecx] */ 1863 MEM32(eax + 0x8) = edx; /* 0x360E3878: mov dword ptr [eax + 8], edx */ 1864 edx = MEM32(ecx); /* 0x360E387B: mov edx, dword ptr [ecx] */ 1865 /* cmp edx, MEM32(esi + 0x8) */ /* 0x360E387D: cmp edx, dword ptr [esi + 8] */ 1866 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1867 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1868 _flag_k = FK_CMP; 1869 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E3885; /* 0x360E3880: je 0x360e3885 */ 1870 L_360E3882: 1871 MEM32(edx + 0x4) = eax; /* 0x360E3882: mov dword ptr [edx + 4], eax */ 1872 L_360E3885: 1873 edx = MEM32(eax + 0x4); /* 0x360E3885: mov edx, dword ptr [eax + 4] */ 1874 MEM32(ecx + 0x4) = edx; /* 0x360E3888: mov dword ptr [ecx + 4], edx */ 1875 edx = MEM32(esi + 0x4); /* 0x360E388B: mov edx, dword ptr [esi + 4] */ 1876 /* cmp eax, MEM32(edx + 0x4) */ /* 0x360E388E: cmp eax, dword ptr [edx + 4] */ 1877 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1878 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1879 _flag_k = FK_CMP; 1880 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3898; /* 0x360E3891: jne 0x360e3898 */ 1881 L_360E3893: 1882 MEM32(edx + 0x4) = ecx; /* 0x360E3893: mov dword ptr [edx + 4], ecx */ 1883 goto L_360E38A6; /* 0x360E3896: jmp 0x360e38a6 */ 1884 L_360E3898: 1885 edx = MEM32(eax + 0x4); /* 0x360E3898: mov edx, dword ptr [eax + 4] */ 1886 /* cmp eax, MEM32(edx) */ /* 0x360E389B: cmp eax, dword ptr [edx] */ 1887 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 1888 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1889 _flag_k = FK_CMP; 1890 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38A3; /* 0x360E389D: jne 0x360e38a3 */ 1891 L_360E389F: 1892 MEM32(edx) = ecx; /* 0x360E389F: mov dword ptr [edx], ecx */ 1893 goto L_360E38A6; /* 0x360E38A1: jmp 0x360e38a6 */ 1894 L_360E38A3: 1895 MEM32(edx + 0x8) = ecx; /* 0x360E38A3: mov dword ptr [edx + 8], ecx */ 1896 L_360E38A6: 1897 MEM32(ecx) = eax; /* 0x360E38A6: mov dword ptr [ecx], eax */ 1898 MEM32(eax + 0x4) = ecx; /* 0x360E38A8: mov dword ptr [eax + 4], ecx */ 1899 L_360E38AB: 1900 ecx = MEM32(eax + 0x4); /* 0x360E38AB: mov ecx, dword ptr [eax + 4] */ 1901 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E38AE: mov byte ptr [ecx + 0x1c], bl */ 1902 edx = MEM32(eax + 0x4); /* 0x360E38B1: mov edx, dword ptr [eax + 4] */ 1903 ecx = MEM32(edx + 0x4); /* 0x360E38B4: mov ecx, dword ptr [edx + 4] */ 1904 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x360E38B7: mov byte ptr [ecx + 0x1c], 0 */ 1905 edx = MEM32(eax + 0x4); /* 0x360E38BB: mov edx, dword ptr [eax + 4] */ 1906 ecx = MEM32(edx + 0x4); /* 0x360E38BE: mov ecx, dword ptr [edx + 4] */ 1907 edx = MEM32(ecx); /* 0x360E38C1: mov edx, dword ptr [ecx] */ 1908 edi = MEM32(edx + 0x8); /* 0x360E38C3: mov edi, dword ptr [edx + 8] */ 1909 MEM32(ecx) = edi; /* 0x360E38C6: mov dword ptr [ecx], edi */ 1910 edi = MEM32(edx + 0x8); /* 0x360E38C8: mov edi, dword ptr [edx + 8] */ 1911 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360E38CB: cmp edi, dword ptr [esi + 8] */ 1912 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1913 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1914 _flag_k = FK_CMP; 1915 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E38D3; /* 0x360E38CE: je 0x360e38d3 */ 1916 L_360E38D0: 1917 MEM32(edi + 0x4) = ecx; /* 0x360E38D0: mov dword ptr [edi + 4], ecx */ 1918 L_360E38D3: 1919 edi = MEM32(ecx + 0x4); /* 0x360E38D3: mov edi, dword ptr [ecx + 4] */ 1920 MEM32(edx + 0x4) = edi; /* 0x360E38D6: mov dword ptr [edx + 4], edi */ 1921 edi = MEM32(esi + 0x4); /* 0x360E38D9: mov edi, dword ptr [esi + 4] */ 1922 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360E38DC: cmp ecx, dword ptr [edi + 4] */ 1923 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1924 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1925 _flag_k = FK_CMP; 1926 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38EC; /* 0x360E38DF: jne 0x360e38ec */ 1927 L_360E38E1: 1928 MEM32(edi + 0x4) = edx; /* 0x360E38E1: mov dword ptr [edi + 4], edx */ 1929 MEM32(edx + 0x8) = ecx; /* 0x360E38E4: mov dword ptr [edx + 8], ecx */ 1930 goto L_360E399E; /* 0x360E38E7: jmp 0x360e399e */ 1931 L_360E38EC: 1932 edi = MEM32(ecx + 0x4); /* 0x360E38EC: mov edi, dword ptr [ecx + 4] */ 1933 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x360E38EF: cmp ecx, dword ptr [edi + 8] */ 1934 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1935 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1936 _flag_k = FK_CMP; 1937 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38FF; /* 0x360E38F2: jne 0x360e38ff */ 1938 L_360E38F4: 1939 MEM32(edi + 0x8) = edx; /* 0x360E38F4: mov dword ptr [edi + 8], edx */ 1940 MEM32(edx + 0x8) = ecx; /* 0x360E38F7: mov dword ptr [edx + 8], ecx */ 1941 goto L_360E399E; /* 0x360E38FA: jmp 0x360e399e */ 1942 L_360E38FF: 1943 MEM32(edi) = edx; /* 0x360E38FF: mov dword ptr [edi], edx */ 1944 MEM32(edx + 0x8) = ecx; /* 0x360E3901: mov dword ptr [edx + 8], ecx */ 1945 goto L_360E399E; /* 0x360E3904: jmp 0x360e399e */ 1946 L_360E3909: 1947 /* cmp MEM8(edx + 0x1C), 0 */ /* 0x360E3909: cmp byte ptr [edx + 0x1c], 0 */ 1948 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24; 1949 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1950 _flag_k = FK_NARROW(FK_CMP, 24); 1951 RECOMP_BACKEDGE(); 1952 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E3851; /* 0x360E390D: je 0x360e3851 */ 1953 L_360E3913: 1954 /* cmp eax, MEM32(ecx) */ /* 0x360E3913: cmp eax, dword ptr [ecx] */ 1955 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 1956 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1957 _flag_k = FK_CMP; 1958 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3953; /* 0x360E3915: jne 0x360e3953 */ 1959 L_360E3917: 1960 eax = ecx; /* 0x360E3917: mov eax, ecx */ 1961 ecx = MEM32(eax); /* 0x360E3919: mov ecx, dword ptr [eax] */ 1962 edx = MEM32(ecx + 0x8); /* 0x360E391B: mov edx, dword ptr [ecx + 8] */ 1963 MEM32(eax) = edx; /* 0x360E391E: mov dword ptr [eax], edx */ 1964 edx = MEM32(ecx + 0x8); /* 0x360E3920: mov edx, dword ptr [ecx + 8] */ 1965 /* cmp edx, MEM32(esi + 0x8) */ /* 0x360E3923: cmp edx, dword ptr [esi + 8] */ 1966 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1967 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1968 _flag_k = FK_CMP; 1969 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E392B; /* 0x360E3926: je 0x360e392b */ 1970 L_360E3928: 1971 MEM32(edx + 0x4) = eax; /* 0x360E3928: mov dword ptr [edx + 4], eax */ 1972 L_360E392B: 1973 edx = MEM32(eax + 0x4); /* 0x360E392B: mov edx, dword ptr [eax + 4] */ 1974 MEM32(ecx + 0x4) = edx; /* 0x360E392E: mov dword ptr [ecx + 4], edx */ 1975 edx = MEM32(esi + 0x4); /* 0x360E3931: mov edx, dword ptr [esi + 4] */ 1976 /* cmp eax, MEM32(edx + 0x4) */ /* 0x360E3934: cmp eax, dword ptr [edx + 4] */ 1977 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1978 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1979 _flag_k = FK_CMP; 1980 if (CMP_NE(_flag_a, _flag_b)) goto L_360E393E; /* 0x360E3937: jne 0x360e393e */ 1981 L_360E3939: 1982 MEM32(edx + 0x4) = ecx; /* 0x360E3939: mov dword ptr [edx + 4], ecx */ 1983 goto L_360E394D; /* 0x360E393C: jmp 0x360e394d */ 1984 L_360E393E: 1985 edx = MEM32(eax + 0x4); /* 0x360E393E: mov edx, dword ptr [eax + 4] */ 1986 /* cmp eax, MEM32(edx + 0x8) */ /* 0x360E3941: cmp eax, dword ptr [edx + 8] */ 1987 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 1988 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1989 _flag_k = FK_CMP; 1990 if (CMP_NE(_flag_a, _flag_b)) goto L_360E394B; /* 0x360E3944: jne 0x360e394b */ 1991 L_360E3946: 1992 MEM32(edx + 0x8) = ecx; /* 0x360E3946: mov dword ptr [edx + 8], ecx */ 1993 goto L_360E394D; /* 0x360E3949: jmp 0x360e394d */ 1994 L_360E394B: 1995 MEM32(edx) = ecx; /* 0x360E394B: mov dword ptr [edx], ecx */ 1996 L_360E394D: 1997 MEM32(ecx + 0x8) = eax; /* 0x360E394D: mov dword ptr [ecx + 8], eax */ 1998 MEM32(eax + 0x4) = ecx; /* 0x360E3950: mov dword ptr [eax + 4], ecx */ 1999 L_360E3953: 2000 ecx = MEM32(eax + 0x4); /* 0x360E3953: mov ecx, dword ptr [eax + 4] */ 2001 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E3956: mov byte ptr [ecx + 0x1c], bl */ 2002 edx = MEM32(eax + 0x4); /* 0x360E3959: mov edx, dword ptr [eax + 4] */ 2003 ecx = MEM32(edx + 0x4); /* 0x360E395C: mov ecx, dword ptr [edx + 4] */ 2004 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x360E395F: mov byte ptr [ecx + 0x1c], 0 */ 2005 edx = MEM32(eax + 0x4); /* 0x360E3963: mov edx, dword ptr [eax + 4] */ 2006 ecx = MEM32(edx + 0x4); /* 0x360E3966: mov ecx, dword ptr [edx + 4] */ 2007 edx = MEM32(ecx + 0x8); /* 0x360E3969: mov edx, dword ptr [ecx + 8] */ 2008 edi = MEM32(edx); /* 0x360E396C: mov edi, dword ptr [edx] */ 2009 MEM32(ecx + 0x8) = edi; /* 0x360E396E: mov dword ptr [ecx + 8], edi */ 2010 edi = MEM32(edx); /* 0x360E3971: mov edi, dword ptr [edx] */ 2011 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360E3973: cmp edi, dword ptr [esi + 8] */ 2012 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2013 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2014 _flag_k = FK_CMP; 2015 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E397B; /* 0x360E3976: je 0x360e397b */ 2016 L_360E3978: 2017 MEM32(edi + 0x4) = ecx; /* 0x360E3978: mov dword ptr [edi + 4], ecx */ 2018 L_360E397B: 2019 edi = MEM32(ecx + 0x4); /* 0x360E397B: mov edi, dword ptr [ecx + 4] */ 2020 MEM32(edx + 0x4) = edi; /* 0x360E397E: mov dword ptr [edx + 4], edi */ 2021 edi = MEM32(esi + 0x4); /* 0x360E3981: mov edi, dword ptr [esi + 4] */ 2022 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360E3984: cmp ecx, dword ptr [edi + 4] */ 2023 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2024 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2025 _flag_k = FK_CMP; 2026 if (CMP_NE(_flag_a, _flag_b)) goto L_360E398E; /* 0x360E3987: jne 0x360e398e */ 2027 L_360E3989: 2028 MEM32(edi + 0x4) = edx; /* 0x360E3989: mov dword ptr [edi + 4], edx */ 2029 goto L_360E399C; /* 0x360E398C: jmp 0x360e399c */ 2030 L_360E398E: 2031 edi = MEM32(ecx + 0x4); /* 0x360E398E: mov edi, dword ptr [ecx + 4] */ 2032 /* cmp ecx, MEM32(edi) */ /* 0x360E3991: cmp ecx, dword ptr [edi] */ 2033 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 2034 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2035 _flag_k = FK_CMP; 2036 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3999; /* 0x360E3993: jne 0x360e3999 */ 2037 L_360E3995: 2038 MEM32(edi) = edx; /* 0x360E3995: mov dword ptr [edi], edx */ 2039 goto L_360E399C; /* 0x360E3997: jmp 0x360e399c */ 2040 L_360E3999: 2041 MEM32(edi + 0x8) = edx; /* 0x360E3999: mov dword ptr [edi + 8], edx */ 2042 L_360E399C: 2043 MEM32(edx) = ecx; /* 0x360E399C: mov dword ptr [edx], ecx */ 2044 L_360E399E: 2045 MEM32(ecx + 0x4) = edx; /* 0x360E399E: mov dword ptr [ecx + 4], edx */ 2046 L_360E39A1: 2047 ecx = MEM32(esi + 0x4); /* 0x360E39A1: mov ecx, dword ptr [esi + 4] */ 2048 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x360E39A4: cmp eax, dword ptr [ecx + 4] */ 2049 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 2050 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2051 _flag_k = FK_CMP; 2052 RECOMP_BACKEDGE(); 2053 if (CMP_NE(_flag_a, _flag_b)) goto L_360E382D; /* 0x360E39A7: jne 0x360e382d */ 2054 L_360E39AD: 2055 edx = MEM32(esi + 0x4); /* 0x360E39AD: mov edx, dword ptr [esi + 4] */ 2056 eax = MEM32(edx + 0x4); /* 0x360E39B0: mov eax, dword ptr [edx + 4] */ 2057 ecx = MEM32(ebp + (-0x4)); /* 0x360E39B3: mov ecx, dword ptr [ebp - 4] */ 2058 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E39B6: mov byte ptr [eax + 0x1c], bl */ 2059 eax = MEM32(ebp + 0x8); /* 0x360E39B9: mov eax, dword ptr [ebp + 8] */ 2060 edi = POP32_VAL(esp); /* 0x360E39BC: pop edi */ 2061 esi = POP32_VAL(esp); /* 0x360E39BD: pop esi */ 2062 MEM32(eax) = ecx; /* 0x360E39BE: mov dword ptr [eax], ecx */ 2063 ebx = POP32_VAL(esp); /* 0x360E39C0: pop ebx */ 2064 esp = ebp; /* 0x360E39C1: mov esp, ebp */ 2065 ebp = POP32_VAL(esp); /* 0x360E39C3: pop ebp */ 2066 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360E39C4: ret 0x10 */ 2067 RECOMP_REGS_OUT(); 2068 } 2069 2070 void sub_360E394D(void) { 2071 int _fpu_cmp = 0; 2072 uint32_t _cf = 0; 2073 int _df = 1; 2074 uint32_t _flag_k = FK_NONE; 2075 uint32_t _flag_a = 0, _flag_b = 0; 2076 uint32_t _itail_tgt = 0; 2077 RECOMP_REGS_LOCALS 2078 RECOMP_ENTER(0x360E394Du); 2079 2080 goto L_360E394D; 2081 L_360E382D: 2082 ecx = MEM32(eax + 0x4); /* 0x360E382D: mov ecx, dword ptr [eax + 4] */ 2083 SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x360E3830: mov dl, byte ptr [ecx + 0x1c] */ 2084 /* test LO8(edx), LO8(edx) */ /* 0x360E3833: test dl, dl */ 2085 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2086 _cf = 0; 2087 _flag_k = FK_NARROW(FK_TEST, 24); 2088 if (TEST_NZ(_flag_a, _flag_b)) goto L_360E39AD; /* 0x360E3835: jne 0x360e39ad */ 2089 L_360E383B: 2090 edi = MEM32(ecx + 0x4); /* 0x360E383B: mov edi, dword ptr [ecx + 4] */ 2091 edx = MEM32(edi); /* 0x360E383E: mov edx, dword ptr [edi] */ 2092 /* cmp ecx, edx */ /* 0x360E3840: cmp ecx, edx */ 2093 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 2094 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2095 _flag_k = FK_CMP; 2096 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3909; /* 0x360E3842: jne 0x360e3909 */ 2097 L_360E3848: 2098 edx = MEM32(edi + 0x8); /* 0x360E3848: mov edx, dword ptr [edi + 8] */ 2099 /* cmp MEM8(edx + 0x1C), 0 */ /* 0x360E384B: cmp byte ptr [edx + 0x1c], 0 */ 2100 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24; 2101 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2102 _flag_k = FK_NARROW(FK_CMP, 24); 2103 if (CMP_NE(_flag_a, _flag_b)) goto L_360E386C; /* 0x360E384F: jne 0x360e386c */ 2104 L_360E3851: 2105 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E3851: mov byte ptr [ecx + 0x1c], bl */ 2106 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E3854: mov byte ptr [edx + 0x1c], bl */ 2107 ecx = MEM32(eax + 0x4); /* 0x360E3857: mov ecx, dword ptr [eax + 4] */ 2108 edx = MEM32(ecx + 0x4); /* 0x360E385A: mov edx, dword ptr [ecx + 4] */ 2109 MEM8(edx + 0x1C) = (uint8_t)(0); /* 0x360E385D: mov byte ptr [edx + 0x1c], 0 */ 2110 eax = MEM32(eax + 0x4); /* 0x360E3861: mov eax, dword ptr [eax + 4] */ 2111 eax = MEM32(eax + 0x4); /* 0x360E3864: mov eax, dword ptr [eax + 4] */ 2112 goto L_360E39A1; /* 0x360E3867: jmp 0x360e39a1 */ 2113 L_360E386C: 2114 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x360E386C: cmp eax, dword ptr [ecx + 8] */ 2115 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 2116 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2117 _flag_k = FK_CMP; 2118 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38AB; /* 0x360E386F: jne 0x360e38ab */ 2119 L_360E3871: 2120 eax = ecx; /* 0x360E3871: mov eax, ecx */ 2121 ecx = MEM32(eax + 0x8); /* 0x360E3873: mov ecx, dword ptr [eax + 8] */ 2122 edx = MEM32(ecx); /* 0x360E3876: mov edx, dword ptr [ecx] */ 2123 MEM32(eax + 0x8) = edx; /* 0x360E3878: mov dword ptr [eax + 8], edx */ 2124 edx = MEM32(ecx); /* 0x360E387B: mov edx, dword ptr [ecx] */ 2125 /* cmp edx, MEM32(esi + 0x8) */ /* 0x360E387D: cmp edx, dword ptr [esi + 8] */ 2126 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2127 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2128 _flag_k = FK_CMP; 2129 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E3885; /* 0x360E3880: je 0x360e3885 */ 2130 L_360E3882: 2131 MEM32(edx + 0x4) = eax; /* 0x360E3882: mov dword ptr [edx + 4], eax */ 2132 L_360E3885: 2133 edx = MEM32(eax + 0x4); /* 0x360E3885: mov edx, dword ptr [eax + 4] */ 2134 MEM32(ecx + 0x4) = edx; /* 0x360E3888: mov dword ptr [ecx + 4], edx */ 2135 edx = MEM32(esi + 0x4); /* 0x360E388B: mov edx, dword ptr [esi + 4] */ 2136 /* cmp eax, MEM32(edx + 0x4) */ /* 0x360E388E: cmp eax, dword ptr [edx + 4] */ 2137 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2138 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2139 _flag_k = FK_CMP; 2140 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3898; /* 0x360E3891: jne 0x360e3898 */ 2141 L_360E3893: 2142 MEM32(edx + 0x4) = ecx; /* 0x360E3893: mov dword ptr [edx + 4], ecx */ 2143 goto L_360E38A6; /* 0x360E3896: jmp 0x360e38a6 */ 2144 L_360E3898: 2145 edx = MEM32(eax + 0x4); /* 0x360E3898: mov edx, dword ptr [eax + 4] */ 2146 /* cmp eax, MEM32(edx) */ /* 0x360E389B: cmp eax, dword ptr [edx] */ 2147 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 2148 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2149 _flag_k = FK_CMP; 2150 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38A3; /* 0x360E389D: jne 0x360e38a3 */ 2151 L_360E389F: 2152 MEM32(edx) = ecx; /* 0x360E389F: mov dword ptr [edx], ecx */ 2153 goto L_360E38A6; /* 0x360E38A1: jmp 0x360e38a6 */ 2154 L_360E38A3: 2155 MEM32(edx + 0x8) = ecx; /* 0x360E38A3: mov dword ptr [edx + 8], ecx */ 2156 L_360E38A6: 2157 MEM32(ecx) = eax; /* 0x360E38A6: mov dword ptr [ecx], eax */ 2158 MEM32(eax + 0x4) = ecx; /* 0x360E38A8: mov dword ptr [eax + 4], ecx */ 2159 L_360E38AB: 2160 ecx = MEM32(eax + 0x4); /* 0x360E38AB: mov ecx, dword ptr [eax + 4] */ 2161 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E38AE: mov byte ptr [ecx + 0x1c], bl */ 2162 edx = MEM32(eax + 0x4); /* 0x360E38B1: mov edx, dword ptr [eax + 4] */ 2163 ecx = MEM32(edx + 0x4); /* 0x360E38B4: mov ecx, dword ptr [edx + 4] */ 2164 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x360E38B7: mov byte ptr [ecx + 0x1c], 0 */ 2165 edx = MEM32(eax + 0x4); /* 0x360E38BB: mov edx, dword ptr [eax + 4] */ 2166 ecx = MEM32(edx + 0x4); /* 0x360E38BE: mov ecx, dword ptr [edx + 4] */ 2167 edx = MEM32(ecx); /* 0x360E38C1: mov edx, dword ptr [ecx] */ 2168 edi = MEM32(edx + 0x8); /* 0x360E38C3: mov edi, dword ptr [edx + 8] */ 2169 MEM32(ecx) = edi; /* 0x360E38C6: mov dword ptr [ecx], edi */ 2170 edi = MEM32(edx + 0x8); /* 0x360E38C8: mov edi, dword ptr [edx + 8] */ 2171 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360E38CB: cmp edi, dword ptr [esi + 8] */ 2172 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2173 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2174 _flag_k = FK_CMP; 2175 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E38D3; /* 0x360E38CE: je 0x360e38d3 */ 2176 L_360E38D0: 2177 MEM32(edi + 0x4) = ecx; /* 0x360E38D0: mov dword ptr [edi + 4], ecx */ 2178 L_360E38D3: 2179 edi = MEM32(ecx + 0x4); /* 0x360E38D3: mov edi, dword ptr [ecx + 4] */ 2180 MEM32(edx + 0x4) = edi; /* 0x360E38D6: mov dword ptr [edx + 4], edi */ 2181 edi = MEM32(esi + 0x4); /* 0x360E38D9: mov edi, dword ptr [esi + 4] */ 2182 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360E38DC: cmp ecx, dword ptr [edi + 4] */ 2183 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2184 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2185 _flag_k = FK_CMP; 2186 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38EC; /* 0x360E38DF: jne 0x360e38ec */ 2187 L_360E38E1: 2188 MEM32(edi + 0x4) = edx; /* 0x360E38E1: mov dword ptr [edi + 4], edx */ 2189 MEM32(edx + 0x8) = ecx; /* 0x360E38E4: mov dword ptr [edx + 8], ecx */ 2190 goto L_360E399E; /* 0x360E38E7: jmp 0x360e399e */ 2191 L_360E38EC: 2192 edi = MEM32(ecx + 0x4); /* 0x360E38EC: mov edi, dword ptr [ecx + 4] */ 2193 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x360E38EF: cmp ecx, dword ptr [edi + 8] */ 2194 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2195 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2196 _flag_k = FK_CMP; 2197 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38FF; /* 0x360E38F2: jne 0x360e38ff */ 2198 L_360E38F4: 2199 MEM32(edi + 0x8) = edx; /* 0x360E38F4: mov dword ptr [edi + 8], edx */ 2200 MEM32(edx + 0x8) = ecx; /* 0x360E38F7: mov dword ptr [edx + 8], ecx */ 2201 goto L_360E399E; /* 0x360E38FA: jmp 0x360e399e */ 2202 L_360E38FF: 2203 MEM32(edi) = edx; /* 0x360E38FF: mov dword ptr [edi], edx */ 2204 MEM32(edx + 0x8) = ecx; /* 0x360E3901: mov dword ptr [edx + 8], ecx */ 2205 goto L_360E399E; /* 0x360E3904: jmp 0x360e399e */ 2206 L_360E3909: 2207 /* cmp MEM8(edx + 0x1C), 0 */ /* 0x360E3909: cmp byte ptr [edx + 0x1c], 0 */ 2208 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24; 2209 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2210 _flag_k = FK_NARROW(FK_CMP, 24); 2211 RECOMP_BACKEDGE(); 2212 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E3851; /* 0x360E390D: je 0x360e3851 */ 2213 L_360E3913: 2214 /* cmp eax, MEM32(ecx) */ /* 0x360E3913: cmp eax, dword ptr [ecx] */ 2215 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 2216 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2217 _flag_k = FK_CMP; 2218 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3953; /* 0x360E3915: jne 0x360e3953 */ 2219 L_360E3917: 2220 eax = ecx; /* 0x360E3917: mov eax, ecx */ 2221 ecx = MEM32(eax); /* 0x360E3919: mov ecx, dword ptr [eax] */ 2222 edx = MEM32(ecx + 0x8); /* 0x360E391B: mov edx, dword ptr [ecx + 8] */ 2223 MEM32(eax) = edx; /* 0x360E391E: mov dword ptr [eax], edx */ 2224 edx = MEM32(ecx + 0x8); /* 0x360E3920: mov edx, dword ptr [ecx + 8] */ 2225 /* cmp edx, MEM32(esi + 0x8) */ /* 0x360E3923: cmp edx, dword ptr [esi + 8] */ 2226 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2227 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2228 _flag_k = FK_CMP; 2229 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E392B; /* 0x360E3926: je 0x360e392b */ 2230 L_360E3928: 2231 MEM32(edx + 0x4) = eax; /* 0x360E3928: mov dword ptr [edx + 4], eax */ 2232 L_360E392B: 2233 edx = MEM32(eax + 0x4); /* 0x360E392B: mov edx, dword ptr [eax + 4] */ 2234 MEM32(ecx + 0x4) = edx; /* 0x360E392E: mov dword ptr [ecx + 4], edx */ 2235 edx = MEM32(esi + 0x4); /* 0x360E3931: mov edx, dword ptr [esi + 4] */ 2236 /* cmp eax, MEM32(edx + 0x4) */ /* 0x360E3934: cmp eax, dword ptr [edx + 4] */ 2237 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2238 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2239 _flag_k = FK_CMP; 2240 if (CMP_NE(_flag_a, _flag_b)) goto L_360E393E; /* 0x360E3937: jne 0x360e393e */ 2241 L_360E3939: 2242 MEM32(edx + 0x4) = ecx; /* 0x360E3939: mov dword ptr [edx + 4], ecx */ 2243 goto L_360E394D; /* 0x360E393C: jmp 0x360e394d */ 2244 L_360E393E: 2245 edx = MEM32(eax + 0x4); /* 0x360E393E: mov edx, dword ptr [eax + 4] */ 2246 /* cmp eax, MEM32(edx + 0x8) */ /* 0x360E3941: cmp eax, dword ptr [edx + 8] */ 2247 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 2248 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2249 _flag_k = FK_CMP; 2250 if (CMP_NE(_flag_a, _flag_b)) goto L_360E394B; /* 0x360E3944: jne 0x360e394b */ 2251 L_360E3946: 2252 MEM32(edx + 0x8) = ecx; /* 0x360E3946: mov dword ptr [edx + 8], ecx */ 2253 goto L_360E394D; /* 0x360E3949: jmp 0x360e394d */ 2254 L_360E394B: 2255 MEM32(edx) = ecx; /* 0x360E394B: mov dword ptr [edx], ecx */ 2256 L_360E394D: 2257 MEM32(ecx + 0x8) = eax; /* 0x360E394D: mov dword ptr [ecx + 8], eax */ 2258 MEM32(eax + 0x4) = ecx; /* 0x360E3950: mov dword ptr [eax + 4], ecx */ 2259 L_360E3953: 2260 ecx = MEM32(eax + 0x4); /* 0x360E3953: mov ecx, dword ptr [eax + 4] */ 2261 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E3956: mov byte ptr [ecx + 0x1c], bl */ 2262 edx = MEM32(eax + 0x4); /* 0x360E3959: mov edx, dword ptr [eax + 4] */ 2263 ecx = MEM32(edx + 0x4); /* 0x360E395C: mov ecx, dword ptr [edx + 4] */ 2264 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x360E395F: mov byte ptr [ecx + 0x1c], 0 */ 2265 edx = MEM32(eax + 0x4); /* 0x360E3963: mov edx, dword ptr [eax + 4] */ 2266 ecx = MEM32(edx + 0x4); /* 0x360E3966: mov ecx, dword ptr [edx + 4] */ 2267 edx = MEM32(ecx + 0x8); /* 0x360E3969: mov edx, dword ptr [ecx + 8] */ 2268 edi = MEM32(edx); /* 0x360E396C: mov edi, dword ptr [edx] */ 2269 MEM32(ecx + 0x8) = edi; /* 0x360E396E: mov dword ptr [ecx + 8], edi */ 2270 edi = MEM32(edx); /* 0x360E3971: mov edi, dword ptr [edx] */ 2271 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360E3973: cmp edi, dword ptr [esi + 8] */ 2272 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2273 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2274 _flag_k = FK_CMP; 2275 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E397B; /* 0x360E3976: je 0x360e397b */ 2276 L_360E3978: 2277 MEM32(edi + 0x4) = ecx; /* 0x360E3978: mov dword ptr [edi + 4], ecx */ 2278 L_360E397B: 2279 edi = MEM32(ecx + 0x4); /* 0x360E397B: mov edi, dword ptr [ecx + 4] */ 2280 MEM32(edx + 0x4) = edi; /* 0x360E397E: mov dword ptr [edx + 4], edi */ 2281 edi = MEM32(esi + 0x4); /* 0x360E3981: mov edi, dword ptr [esi + 4] */ 2282 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360E3984: cmp ecx, dword ptr [edi + 4] */ 2283 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2284 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2285 _flag_k = FK_CMP; 2286 if (CMP_NE(_flag_a, _flag_b)) goto L_360E398E; /* 0x360E3987: jne 0x360e398e */ 2287 L_360E3989: 2288 MEM32(edi + 0x4) = edx; /* 0x360E3989: mov dword ptr [edi + 4], edx */ 2289 goto L_360E399C; /* 0x360E398C: jmp 0x360e399c */ 2290 L_360E398E: 2291 edi = MEM32(ecx + 0x4); /* 0x360E398E: mov edi, dword ptr [ecx + 4] */ 2292 /* cmp ecx, MEM32(edi) */ /* 0x360E3991: cmp ecx, dword ptr [edi] */ 2293 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 2294 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2295 _flag_k = FK_CMP; 2296 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3999; /* 0x360E3993: jne 0x360e3999 */ 2297 L_360E3995: 2298 MEM32(edi) = edx; /* 0x360E3995: mov dword ptr [edi], edx */ 2299 goto L_360E399C; /* 0x360E3997: jmp 0x360e399c */ 2300 L_360E3999: 2301 MEM32(edi + 0x8) = edx; /* 0x360E3999: mov dword ptr [edi + 8], edx */ 2302 L_360E399C: 2303 MEM32(edx) = ecx; /* 0x360E399C: mov dword ptr [edx], ecx */ 2304 L_360E399E: 2305 MEM32(ecx + 0x4) = edx; /* 0x360E399E: mov dword ptr [ecx + 4], edx */ 2306 L_360E39A1: 2307 ecx = MEM32(esi + 0x4); /* 0x360E39A1: mov ecx, dword ptr [esi + 4] */ 2308 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x360E39A4: cmp eax, dword ptr [ecx + 4] */ 2309 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 2310 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2311 _flag_k = FK_CMP; 2312 RECOMP_BACKEDGE(); 2313 if (CMP_NE(_flag_a, _flag_b)) goto L_360E382D; /* 0x360E39A7: jne 0x360e382d */ 2314 L_360E39AD: 2315 edx = MEM32(esi + 0x4); /* 0x360E39AD: mov edx, dword ptr [esi + 4] */ 2316 eax = MEM32(edx + 0x4); /* 0x360E39B0: mov eax, dword ptr [edx + 4] */ 2317 ecx = MEM32(ebp + (-0x4)); /* 0x360E39B3: mov ecx, dword ptr [ebp - 4] */ 2318 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E39B6: mov byte ptr [eax + 0x1c], bl */ 2319 eax = MEM32(ebp + 0x8); /* 0x360E39B9: mov eax, dword ptr [ebp + 8] */ 2320 edi = POP32_VAL(esp); /* 0x360E39BC: pop edi */ 2321 esi = POP32_VAL(esp); /* 0x360E39BD: pop esi */ 2322 MEM32(eax) = ecx; /* 0x360E39BE: mov dword ptr [eax], ecx */ 2323 ebx = POP32_VAL(esp); /* 0x360E39C0: pop ebx */ 2324 esp = ebp; /* 0x360E39C1: mov esp, ebp */ 2325 ebp = POP32_VAL(esp); /* 0x360E39C3: pop ebp */ 2326 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360E39C4: ret 0x10 */ 2327 RECOMP_REGS_OUT(); 2328 } 2329 2330 void sub_360E3953(void) { 2331 int _fpu_cmp = 0; 2332 uint32_t _cf = 0; 2333 int _df = 1; 2334 uint32_t _flag_k = FK_NONE; 2335 uint32_t _flag_a = 0, _flag_b = 0; 2336 uint32_t _itail_tgt = 0; 2337 RECOMP_REGS_LOCALS 2338 RECOMP_ENTER(0x360E3953u); 2339 2340 goto L_360E3953; 2341 L_360E382D: 2342 ecx = MEM32(eax + 0x4); /* 0x360E382D: mov ecx, dword ptr [eax + 4] */ 2343 SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x360E3830: mov dl, byte ptr [ecx + 0x1c] */ 2344 /* test LO8(edx), LO8(edx) */ /* 0x360E3833: test dl, dl */ 2345 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2346 _cf = 0; 2347 _flag_k = FK_NARROW(FK_TEST, 24); 2348 if (TEST_NZ(_flag_a, _flag_b)) goto L_360E39AD; /* 0x360E3835: jne 0x360e39ad */ 2349 L_360E383B: 2350 edi = MEM32(ecx + 0x4); /* 0x360E383B: mov edi, dword ptr [ecx + 4] */ 2351 edx = MEM32(edi); /* 0x360E383E: mov edx, dword ptr [edi] */ 2352 /* cmp ecx, edx */ /* 0x360E3840: cmp ecx, edx */ 2353 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 2354 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2355 _flag_k = FK_CMP; 2356 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3909; /* 0x360E3842: jne 0x360e3909 */ 2357 L_360E3848: 2358 edx = MEM32(edi + 0x8); /* 0x360E3848: mov edx, dword ptr [edi + 8] */ 2359 /* cmp MEM8(edx + 0x1C), 0 */ /* 0x360E384B: cmp byte ptr [edx + 0x1c], 0 */ 2360 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24; 2361 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2362 _flag_k = FK_NARROW(FK_CMP, 24); 2363 if (CMP_NE(_flag_a, _flag_b)) goto L_360E386C; /* 0x360E384F: jne 0x360e386c */ 2364 L_360E3851: 2365 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E3851: mov byte ptr [ecx + 0x1c], bl */ 2366 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E3854: mov byte ptr [edx + 0x1c], bl */ 2367 ecx = MEM32(eax + 0x4); /* 0x360E3857: mov ecx, dword ptr [eax + 4] */ 2368 edx = MEM32(ecx + 0x4); /* 0x360E385A: mov edx, dword ptr [ecx + 4] */ 2369 MEM8(edx + 0x1C) = (uint8_t)(0); /* 0x360E385D: mov byte ptr [edx + 0x1c], 0 */ 2370 eax = MEM32(eax + 0x4); /* 0x360E3861: mov eax, dword ptr [eax + 4] */ 2371 eax = MEM32(eax + 0x4); /* 0x360E3864: mov eax, dword ptr [eax + 4] */ 2372 goto L_360E39A1; /* 0x360E3867: jmp 0x360e39a1 */ 2373 L_360E386C: 2374 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x360E386C: cmp eax, dword ptr [ecx + 8] */ 2375 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 2376 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2377 _flag_k = FK_CMP; 2378 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38AB; /* 0x360E386F: jne 0x360e38ab */ 2379 L_360E3871: 2380 eax = ecx; /* 0x360E3871: mov eax, ecx */ 2381 ecx = MEM32(eax + 0x8); /* 0x360E3873: mov ecx, dword ptr [eax + 8] */ 2382 edx = MEM32(ecx); /* 0x360E3876: mov edx, dword ptr [ecx] */ 2383 MEM32(eax + 0x8) = edx; /* 0x360E3878: mov dword ptr [eax + 8], edx */ 2384 edx = MEM32(ecx); /* 0x360E387B: mov edx, dword ptr [ecx] */ 2385 /* cmp edx, MEM32(esi + 0x8) */ /* 0x360E387D: cmp edx, dword ptr [esi + 8] */ 2386 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2387 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2388 _flag_k = FK_CMP; 2389 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E3885; /* 0x360E3880: je 0x360e3885 */ 2390 L_360E3882: 2391 MEM32(edx + 0x4) = eax; /* 0x360E3882: mov dword ptr [edx + 4], eax */ 2392 L_360E3885: 2393 edx = MEM32(eax + 0x4); /* 0x360E3885: mov edx, dword ptr [eax + 4] */ 2394 MEM32(ecx + 0x4) = edx; /* 0x360E3888: mov dword ptr [ecx + 4], edx */ 2395 edx = MEM32(esi + 0x4); /* 0x360E388B: mov edx, dword ptr [esi + 4] */ 2396 /* cmp eax, MEM32(edx + 0x4) */ /* 0x360E388E: cmp eax, dword ptr [edx + 4] */ 2397 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2398 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2399 _flag_k = FK_CMP; 2400 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3898; /* 0x360E3891: jne 0x360e3898 */ 2401 L_360E3893: 2402 MEM32(edx + 0x4) = ecx; /* 0x360E3893: mov dword ptr [edx + 4], ecx */ 2403 goto L_360E38A6; /* 0x360E3896: jmp 0x360e38a6 */ 2404 L_360E3898: 2405 edx = MEM32(eax + 0x4); /* 0x360E3898: mov edx, dword ptr [eax + 4] */ 2406 /* cmp eax, MEM32(edx) */ /* 0x360E389B: cmp eax, dword ptr [edx] */ 2407 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 2408 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2409 _flag_k = FK_CMP; 2410 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38A3; /* 0x360E389D: jne 0x360e38a3 */ 2411 L_360E389F: 2412 MEM32(edx) = ecx; /* 0x360E389F: mov dword ptr [edx], ecx */ 2413 goto L_360E38A6; /* 0x360E38A1: jmp 0x360e38a6 */ 2414 L_360E38A3: 2415 MEM32(edx + 0x8) = ecx; /* 0x360E38A3: mov dword ptr [edx + 8], ecx */ 2416 L_360E38A6: 2417 MEM32(ecx) = eax; /* 0x360E38A6: mov dword ptr [ecx], eax */ 2418 MEM32(eax + 0x4) = ecx; /* 0x360E38A8: mov dword ptr [eax + 4], ecx */ 2419 L_360E38AB: 2420 ecx = MEM32(eax + 0x4); /* 0x360E38AB: mov ecx, dword ptr [eax + 4] */ 2421 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E38AE: mov byte ptr [ecx + 0x1c], bl */ 2422 edx = MEM32(eax + 0x4); /* 0x360E38B1: mov edx, dword ptr [eax + 4] */ 2423 ecx = MEM32(edx + 0x4); /* 0x360E38B4: mov ecx, dword ptr [edx + 4] */ 2424 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x360E38B7: mov byte ptr [ecx + 0x1c], 0 */ 2425 edx = MEM32(eax + 0x4); /* 0x360E38BB: mov edx, dword ptr [eax + 4] */ 2426 ecx = MEM32(edx + 0x4); /* 0x360E38BE: mov ecx, dword ptr [edx + 4] */ 2427 edx = MEM32(ecx); /* 0x360E38C1: mov edx, dword ptr [ecx] */ 2428 edi = MEM32(edx + 0x8); /* 0x360E38C3: mov edi, dword ptr [edx + 8] */ 2429 MEM32(ecx) = edi; /* 0x360E38C6: mov dword ptr [ecx], edi */ 2430 edi = MEM32(edx + 0x8); /* 0x360E38C8: mov edi, dword ptr [edx + 8] */ 2431 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360E38CB: cmp edi, dword ptr [esi + 8] */ 2432 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2433 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2434 _flag_k = FK_CMP; 2435 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E38D3; /* 0x360E38CE: je 0x360e38d3 */ 2436 L_360E38D0: 2437 MEM32(edi + 0x4) = ecx; /* 0x360E38D0: mov dword ptr [edi + 4], ecx */ 2438 L_360E38D3: 2439 edi = MEM32(ecx + 0x4); /* 0x360E38D3: mov edi, dword ptr [ecx + 4] */ 2440 MEM32(edx + 0x4) = edi; /* 0x360E38D6: mov dword ptr [edx + 4], edi */ 2441 edi = MEM32(esi + 0x4); /* 0x360E38D9: mov edi, dword ptr [esi + 4] */ 2442 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360E38DC: cmp ecx, dword ptr [edi + 4] */ 2443 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2444 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2445 _flag_k = FK_CMP; 2446 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38EC; /* 0x360E38DF: jne 0x360e38ec */ 2447 L_360E38E1: 2448 MEM32(edi + 0x4) = edx; /* 0x360E38E1: mov dword ptr [edi + 4], edx */ 2449 MEM32(edx + 0x8) = ecx; /* 0x360E38E4: mov dword ptr [edx + 8], ecx */ 2450 goto L_360E399E; /* 0x360E38E7: jmp 0x360e399e */ 2451 L_360E38EC: 2452 edi = MEM32(ecx + 0x4); /* 0x360E38EC: mov edi, dword ptr [ecx + 4] */ 2453 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x360E38EF: cmp ecx, dword ptr [edi + 8] */ 2454 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2455 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2456 _flag_k = FK_CMP; 2457 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38FF; /* 0x360E38F2: jne 0x360e38ff */ 2458 L_360E38F4: 2459 MEM32(edi + 0x8) = edx; /* 0x360E38F4: mov dword ptr [edi + 8], edx */ 2460 MEM32(edx + 0x8) = ecx; /* 0x360E38F7: mov dword ptr [edx + 8], ecx */ 2461 goto L_360E399E; /* 0x360E38FA: jmp 0x360e399e */ 2462 L_360E38FF: 2463 MEM32(edi) = edx; /* 0x360E38FF: mov dword ptr [edi], edx */ 2464 MEM32(edx + 0x8) = ecx; /* 0x360E3901: mov dword ptr [edx + 8], ecx */ 2465 goto L_360E399E; /* 0x360E3904: jmp 0x360e399e */ 2466 L_360E3909: 2467 /* cmp MEM8(edx + 0x1C), 0 */ /* 0x360E3909: cmp byte ptr [edx + 0x1c], 0 */ 2468 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24; 2469 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2470 _flag_k = FK_NARROW(FK_CMP, 24); 2471 RECOMP_BACKEDGE(); 2472 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E3851; /* 0x360E390D: je 0x360e3851 */ 2473 L_360E3913: 2474 /* cmp eax, MEM32(ecx) */ /* 0x360E3913: cmp eax, dword ptr [ecx] */ 2475 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 2476 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2477 _flag_k = FK_CMP; 2478 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3953; /* 0x360E3915: jne 0x360e3953 */ 2479 L_360E3917: 2480 eax = ecx; /* 0x360E3917: mov eax, ecx */ 2481 ecx = MEM32(eax); /* 0x360E3919: mov ecx, dword ptr [eax] */ 2482 edx = MEM32(ecx + 0x8); /* 0x360E391B: mov edx, dword ptr [ecx + 8] */ 2483 MEM32(eax) = edx; /* 0x360E391E: mov dword ptr [eax], edx */ 2484 edx = MEM32(ecx + 0x8); /* 0x360E3920: mov edx, dword ptr [ecx + 8] */ 2485 /* cmp edx, MEM32(esi + 0x8) */ /* 0x360E3923: cmp edx, dword ptr [esi + 8] */ 2486 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2487 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2488 _flag_k = FK_CMP; 2489 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E392B; /* 0x360E3926: je 0x360e392b */ 2490 L_360E3928: 2491 MEM32(edx + 0x4) = eax; /* 0x360E3928: mov dword ptr [edx + 4], eax */ 2492 L_360E392B: 2493 edx = MEM32(eax + 0x4); /* 0x360E392B: mov edx, dword ptr [eax + 4] */ 2494 MEM32(ecx + 0x4) = edx; /* 0x360E392E: mov dword ptr [ecx + 4], edx */ 2495 edx = MEM32(esi + 0x4); /* 0x360E3931: mov edx, dword ptr [esi + 4] */ 2496 /* cmp eax, MEM32(edx + 0x4) */ /* 0x360E3934: cmp eax, dword ptr [edx + 4] */ 2497 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2498 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2499 _flag_k = FK_CMP; 2500 if (CMP_NE(_flag_a, _flag_b)) goto L_360E393E; /* 0x360E3937: jne 0x360e393e */ 2501 L_360E3939: 2502 MEM32(edx + 0x4) = ecx; /* 0x360E3939: mov dword ptr [edx + 4], ecx */ 2503 goto L_360E394D; /* 0x360E393C: jmp 0x360e394d */ 2504 L_360E393E: 2505 edx = MEM32(eax + 0x4); /* 0x360E393E: mov edx, dword ptr [eax + 4] */ 2506 /* cmp eax, MEM32(edx + 0x8) */ /* 0x360E3941: cmp eax, dword ptr [edx + 8] */ 2507 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 2508 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2509 _flag_k = FK_CMP; 2510 if (CMP_NE(_flag_a, _flag_b)) goto L_360E394B; /* 0x360E3944: jne 0x360e394b */ 2511 L_360E3946: 2512 MEM32(edx + 0x8) = ecx; /* 0x360E3946: mov dword ptr [edx + 8], ecx */ 2513 goto L_360E394D; /* 0x360E3949: jmp 0x360e394d */ 2514 L_360E394B: 2515 MEM32(edx) = ecx; /* 0x360E394B: mov dword ptr [edx], ecx */ 2516 L_360E394D: 2517 MEM32(ecx + 0x8) = eax; /* 0x360E394D: mov dword ptr [ecx + 8], eax */ 2518 MEM32(eax + 0x4) = ecx; /* 0x360E3950: mov dword ptr [eax + 4], ecx */ 2519 L_360E3953: 2520 ecx = MEM32(eax + 0x4); /* 0x360E3953: mov ecx, dword ptr [eax + 4] */ 2521 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E3956: mov byte ptr [ecx + 0x1c], bl */ 2522 edx = MEM32(eax + 0x4); /* 0x360E3959: mov edx, dword ptr [eax + 4] */ 2523 ecx = MEM32(edx + 0x4); /* 0x360E395C: mov ecx, dword ptr [edx + 4] */ 2524 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x360E395F: mov byte ptr [ecx + 0x1c], 0 */ 2525 edx = MEM32(eax + 0x4); /* 0x360E3963: mov edx, dword ptr [eax + 4] */ 2526 ecx = MEM32(edx + 0x4); /* 0x360E3966: mov ecx, dword ptr [edx + 4] */ 2527 edx = MEM32(ecx + 0x8); /* 0x360E3969: mov edx, dword ptr [ecx + 8] */ 2528 edi = MEM32(edx); /* 0x360E396C: mov edi, dword ptr [edx] */ 2529 MEM32(ecx + 0x8) = edi; /* 0x360E396E: mov dword ptr [ecx + 8], edi */ 2530 edi = MEM32(edx); /* 0x360E3971: mov edi, dword ptr [edx] */ 2531 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360E3973: cmp edi, dword ptr [esi + 8] */ 2532 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2533 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2534 _flag_k = FK_CMP; 2535 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E397B; /* 0x360E3976: je 0x360e397b */ 2536 L_360E3978: 2537 MEM32(edi + 0x4) = ecx; /* 0x360E3978: mov dword ptr [edi + 4], ecx */ 2538 L_360E397B: 2539 edi = MEM32(ecx + 0x4); /* 0x360E397B: mov edi, dword ptr [ecx + 4] */ 2540 MEM32(edx + 0x4) = edi; /* 0x360E397E: mov dword ptr [edx + 4], edi */ 2541 edi = MEM32(esi + 0x4); /* 0x360E3981: mov edi, dword ptr [esi + 4] */ 2542 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360E3984: cmp ecx, dword ptr [edi + 4] */ 2543 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2544 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2545 _flag_k = FK_CMP; 2546 if (CMP_NE(_flag_a, _flag_b)) goto L_360E398E; /* 0x360E3987: jne 0x360e398e */ 2547 L_360E3989: 2548 MEM32(edi + 0x4) = edx; /* 0x360E3989: mov dword ptr [edi + 4], edx */ 2549 goto L_360E399C; /* 0x360E398C: jmp 0x360e399c */ 2550 L_360E398E: 2551 edi = MEM32(ecx + 0x4); /* 0x360E398E: mov edi, dword ptr [ecx + 4] */ 2552 /* cmp ecx, MEM32(edi) */ /* 0x360E3991: cmp ecx, dword ptr [edi] */ 2553 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 2554 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2555 _flag_k = FK_CMP; 2556 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3999; /* 0x360E3993: jne 0x360e3999 */ 2557 L_360E3995: 2558 MEM32(edi) = edx; /* 0x360E3995: mov dword ptr [edi], edx */ 2559 goto L_360E399C; /* 0x360E3997: jmp 0x360e399c */ 2560 L_360E3999: 2561 MEM32(edi + 0x8) = edx; /* 0x360E3999: mov dword ptr [edi + 8], edx */ 2562 L_360E399C: 2563 MEM32(edx) = ecx; /* 0x360E399C: mov dword ptr [edx], ecx */ 2564 L_360E399E: 2565 MEM32(ecx + 0x4) = edx; /* 0x360E399E: mov dword ptr [ecx + 4], edx */ 2566 L_360E39A1: 2567 ecx = MEM32(esi + 0x4); /* 0x360E39A1: mov ecx, dword ptr [esi + 4] */ 2568 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x360E39A4: cmp eax, dword ptr [ecx + 4] */ 2569 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 2570 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2571 _flag_k = FK_CMP; 2572 RECOMP_BACKEDGE(); 2573 if (CMP_NE(_flag_a, _flag_b)) goto L_360E382D; /* 0x360E39A7: jne 0x360e382d */ 2574 L_360E39AD: 2575 edx = MEM32(esi + 0x4); /* 0x360E39AD: mov edx, dword ptr [esi + 4] */ 2576 eax = MEM32(edx + 0x4); /* 0x360E39B0: mov eax, dword ptr [edx + 4] */ 2577 ecx = MEM32(ebp + (-0x4)); /* 0x360E39B3: mov ecx, dword ptr [ebp - 4] */ 2578 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E39B6: mov byte ptr [eax + 0x1c], bl */ 2579 eax = MEM32(ebp + 0x8); /* 0x360E39B9: mov eax, dword ptr [ebp + 8] */ 2580 edi = POP32_VAL(esp); /* 0x360E39BC: pop edi */ 2581 esi = POP32_VAL(esp); /* 0x360E39BD: pop esi */ 2582 MEM32(eax) = ecx; /* 0x360E39BE: mov dword ptr [eax], ecx */ 2583 ebx = POP32_VAL(esp); /* 0x360E39C0: pop ebx */ 2584 esp = ebp; /* 0x360E39C1: mov esp, ebp */ 2585 ebp = POP32_VAL(esp); /* 0x360E39C3: pop ebp */ 2586 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360E39C4: ret 0x10 */ 2587 RECOMP_REGS_OUT(); 2588 } 2589 2590 void sub_360E399C(void) { 2591 int _fpu_cmp = 0; 2592 uint32_t _cf = 0; 2593 int _df = 1; 2594 uint32_t _flag_k = FK_NONE; 2595 uint32_t _flag_a = 0, _flag_b = 0; 2596 uint32_t _itail_tgt = 0; 2597 RECOMP_REGS_LOCALS 2598 RECOMP_ENTER(0x360E399Cu); 2599 2600 goto L_360E399C; 2601 L_360E382D: 2602 ecx = MEM32(eax + 0x4); /* 0x360E382D: mov ecx, dword ptr [eax + 4] */ 2603 SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x360E3830: mov dl, byte ptr [ecx + 0x1c] */ 2604 /* test LO8(edx), LO8(edx) */ /* 0x360E3833: test dl, dl */ 2605 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2606 _cf = 0; 2607 _flag_k = FK_NARROW(FK_TEST, 24); 2608 if (TEST_NZ(_flag_a, _flag_b)) goto L_360E39AD; /* 0x360E3835: jne 0x360e39ad */ 2609 L_360E383B: 2610 edi = MEM32(ecx + 0x4); /* 0x360E383B: mov edi, dword ptr [ecx + 4] */ 2611 edx = MEM32(edi); /* 0x360E383E: mov edx, dword ptr [edi] */ 2612 /* cmp ecx, edx */ /* 0x360E3840: cmp ecx, edx */ 2613 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 2614 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2615 _flag_k = FK_CMP; 2616 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3909; /* 0x360E3842: jne 0x360e3909 */ 2617 L_360E3848: 2618 edx = MEM32(edi + 0x8); /* 0x360E3848: mov edx, dword ptr [edi + 8] */ 2619 /* cmp MEM8(edx + 0x1C), 0 */ /* 0x360E384B: cmp byte ptr [edx + 0x1c], 0 */ 2620 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24; 2621 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2622 _flag_k = FK_NARROW(FK_CMP, 24); 2623 if (CMP_NE(_flag_a, _flag_b)) goto L_360E386C; /* 0x360E384F: jne 0x360e386c */ 2624 L_360E3851: 2625 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E3851: mov byte ptr [ecx + 0x1c], bl */ 2626 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E3854: mov byte ptr [edx + 0x1c], bl */ 2627 ecx = MEM32(eax + 0x4); /* 0x360E3857: mov ecx, dword ptr [eax + 4] */ 2628 edx = MEM32(ecx + 0x4); /* 0x360E385A: mov edx, dword ptr [ecx + 4] */ 2629 MEM8(edx + 0x1C) = (uint8_t)(0); /* 0x360E385D: mov byte ptr [edx + 0x1c], 0 */ 2630 eax = MEM32(eax + 0x4); /* 0x360E3861: mov eax, dword ptr [eax + 4] */ 2631 eax = MEM32(eax + 0x4); /* 0x360E3864: mov eax, dword ptr [eax + 4] */ 2632 goto L_360E39A1; /* 0x360E3867: jmp 0x360e39a1 */ 2633 L_360E386C: 2634 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x360E386C: cmp eax, dword ptr [ecx + 8] */ 2635 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 2636 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2637 _flag_k = FK_CMP; 2638 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38AB; /* 0x360E386F: jne 0x360e38ab */ 2639 L_360E3871: 2640 eax = ecx; /* 0x360E3871: mov eax, ecx */ 2641 ecx = MEM32(eax + 0x8); /* 0x360E3873: mov ecx, dword ptr [eax + 8] */ 2642 edx = MEM32(ecx); /* 0x360E3876: mov edx, dword ptr [ecx] */ 2643 MEM32(eax + 0x8) = edx; /* 0x360E3878: mov dword ptr [eax + 8], edx */ 2644 edx = MEM32(ecx); /* 0x360E387B: mov edx, dword ptr [ecx] */ 2645 /* cmp edx, MEM32(esi + 0x8) */ /* 0x360E387D: cmp edx, dword ptr [esi + 8] */ 2646 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2647 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2648 _flag_k = FK_CMP; 2649 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E3885; /* 0x360E3880: je 0x360e3885 */ 2650 L_360E3882: 2651 MEM32(edx + 0x4) = eax; /* 0x360E3882: mov dword ptr [edx + 4], eax */ 2652 L_360E3885: 2653 edx = MEM32(eax + 0x4); /* 0x360E3885: mov edx, dword ptr [eax + 4] */ 2654 MEM32(ecx + 0x4) = edx; /* 0x360E3888: mov dword ptr [ecx + 4], edx */ 2655 edx = MEM32(esi + 0x4); /* 0x360E388B: mov edx, dword ptr [esi + 4] */ 2656 /* cmp eax, MEM32(edx + 0x4) */ /* 0x360E388E: cmp eax, dword ptr [edx + 4] */ 2657 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2658 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2659 _flag_k = FK_CMP; 2660 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3898; /* 0x360E3891: jne 0x360e3898 */ 2661 L_360E3893: 2662 MEM32(edx + 0x4) = ecx; /* 0x360E3893: mov dword ptr [edx + 4], ecx */ 2663 goto L_360E38A6; /* 0x360E3896: jmp 0x360e38a6 */ 2664 L_360E3898: 2665 edx = MEM32(eax + 0x4); /* 0x360E3898: mov edx, dword ptr [eax + 4] */ 2666 /* cmp eax, MEM32(edx) */ /* 0x360E389B: cmp eax, dword ptr [edx] */ 2667 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 2668 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2669 _flag_k = FK_CMP; 2670 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38A3; /* 0x360E389D: jne 0x360e38a3 */ 2671 L_360E389F: 2672 MEM32(edx) = ecx; /* 0x360E389F: mov dword ptr [edx], ecx */ 2673 goto L_360E38A6; /* 0x360E38A1: jmp 0x360e38a6 */ 2674 L_360E38A3: 2675 MEM32(edx + 0x8) = ecx; /* 0x360E38A3: mov dword ptr [edx + 8], ecx */ 2676 L_360E38A6: 2677 MEM32(ecx) = eax; /* 0x360E38A6: mov dword ptr [ecx], eax */ 2678 MEM32(eax + 0x4) = ecx; /* 0x360E38A8: mov dword ptr [eax + 4], ecx */ 2679 L_360E38AB: 2680 ecx = MEM32(eax + 0x4); /* 0x360E38AB: mov ecx, dword ptr [eax + 4] */ 2681 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E38AE: mov byte ptr [ecx + 0x1c], bl */ 2682 edx = MEM32(eax + 0x4); /* 0x360E38B1: mov edx, dword ptr [eax + 4] */ 2683 ecx = MEM32(edx + 0x4); /* 0x360E38B4: mov ecx, dword ptr [edx + 4] */ 2684 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x360E38B7: mov byte ptr [ecx + 0x1c], 0 */ 2685 edx = MEM32(eax + 0x4); /* 0x360E38BB: mov edx, dword ptr [eax + 4] */ 2686 ecx = MEM32(edx + 0x4); /* 0x360E38BE: mov ecx, dword ptr [edx + 4] */ 2687 edx = MEM32(ecx); /* 0x360E38C1: mov edx, dword ptr [ecx] */ 2688 edi = MEM32(edx + 0x8); /* 0x360E38C3: mov edi, dword ptr [edx + 8] */ 2689 MEM32(ecx) = edi; /* 0x360E38C6: mov dword ptr [ecx], edi */ 2690 edi = MEM32(edx + 0x8); /* 0x360E38C8: mov edi, dword ptr [edx + 8] */ 2691 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360E38CB: cmp edi, dword ptr [esi + 8] */ 2692 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2693 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2694 _flag_k = FK_CMP; 2695 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E38D3; /* 0x360E38CE: je 0x360e38d3 */ 2696 L_360E38D0: 2697 MEM32(edi + 0x4) = ecx; /* 0x360E38D0: mov dword ptr [edi + 4], ecx */ 2698 L_360E38D3: 2699 edi = MEM32(ecx + 0x4); /* 0x360E38D3: mov edi, dword ptr [ecx + 4] */ 2700 MEM32(edx + 0x4) = edi; /* 0x360E38D6: mov dword ptr [edx + 4], edi */ 2701 edi = MEM32(esi + 0x4); /* 0x360E38D9: mov edi, dword ptr [esi + 4] */ 2702 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360E38DC: cmp ecx, dword ptr [edi + 4] */ 2703 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2704 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2705 _flag_k = FK_CMP; 2706 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38EC; /* 0x360E38DF: jne 0x360e38ec */ 2707 L_360E38E1: 2708 MEM32(edi + 0x4) = edx; /* 0x360E38E1: mov dword ptr [edi + 4], edx */ 2709 MEM32(edx + 0x8) = ecx; /* 0x360E38E4: mov dword ptr [edx + 8], ecx */ 2710 goto L_360E399E; /* 0x360E38E7: jmp 0x360e399e */ 2711 L_360E38EC: 2712 edi = MEM32(ecx + 0x4); /* 0x360E38EC: mov edi, dword ptr [ecx + 4] */ 2713 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x360E38EF: cmp ecx, dword ptr [edi + 8] */ 2714 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2715 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2716 _flag_k = FK_CMP; 2717 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38FF; /* 0x360E38F2: jne 0x360e38ff */ 2718 L_360E38F4: 2719 MEM32(edi + 0x8) = edx; /* 0x360E38F4: mov dword ptr [edi + 8], edx */ 2720 MEM32(edx + 0x8) = ecx; /* 0x360E38F7: mov dword ptr [edx + 8], ecx */ 2721 goto L_360E399E; /* 0x360E38FA: jmp 0x360e399e */ 2722 L_360E38FF: 2723 MEM32(edi) = edx; /* 0x360E38FF: mov dword ptr [edi], edx */ 2724 MEM32(edx + 0x8) = ecx; /* 0x360E3901: mov dword ptr [edx + 8], ecx */ 2725 goto L_360E399E; /* 0x360E3904: jmp 0x360e399e */ 2726 L_360E3909: 2727 /* cmp MEM8(edx + 0x1C), 0 */ /* 0x360E3909: cmp byte ptr [edx + 0x1c], 0 */ 2728 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24; 2729 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2730 _flag_k = FK_NARROW(FK_CMP, 24); 2731 RECOMP_BACKEDGE(); 2732 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E3851; /* 0x360E390D: je 0x360e3851 */ 2733 L_360E3913: 2734 /* cmp eax, MEM32(ecx) */ /* 0x360E3913: cmp eax, dword ptr [ecx] */ 2735 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 2736 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2737 _flag_k = FK_CMP; 2738 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3953; /* 0x360E3915: jne 0x360e3953 */ 2739 L_360E3917: 2740 eax = ecx; /* 0x360E3917: mov eax, ecx */ 2741 ecx = MEM32(eax); /* 0x360E3919: mov ecx, dword ptr [eax] */ 2742 edx = MEM32(ecx + 0x8); /* 0x360E391B: mov edx, dword ptr [ecx + 8] */ 2743 MEM32(eax) = edx; /* 0x360E391E: mov dword ptr [eax], edx */ 2744 edx = MEM32(ecx + 0x8); /* 0x360E3920: mov edx, dword ptr [ecx + 8] */ 2745 /* cmp edx, MEM32(esi + 0x8) */ /* 0x360E3923: cmp edx, dword ptr [esi + 8] */ 2746 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2747 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2748 _flag_k = FK_CMP; 2749 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E392B; /* 0x360E3926: je 0x360e392b */ 2750 L_360E3928: 2751 MEM32(edx + 0x4) = eax; /* 0x360E3928: mov dword ptr [edx + 4], eax */ 2752 L_360E392B: 2753 edx = MEM32(eax + 0x4); /* 0x360E392B: mov edx, dword ptr [eax + 4] */ 2754 MEM32(ecx + 0x4) = edx; /* 0x360E392E: mov dword ptr [ecx + 4], edx */ 2755 edx = MEM32(esi + 0x4); /* 0x360E3931: mov edx, dword ptr [esi + 4] */ 2756 /* cmp eax, MEM32(edx + 0x4) */ /* 0x360E3934: cmp eax, dword ptr [edx + 4] */ 2757 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2758 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2759 _flag_k = FK_CMP; 2760 if (CMP_NE(_flag_a, _flag_b)) goto L_360E393E; /* 0x360E3937: jne 0x360e393e */ 2761 L_360E3939: 2762 MEM32(edx + 0x4) = ecx; /* 0x360E3939: mov dword ptr [edx + 4], ecx */ 2763 goto L_360E394D; /* 0x360E393C: jmp 0x360e394d */ 2764 L_360E393E: 2765 edx = MEM32(eax + 0x4); /* 0x360E393E: mov edx, dword ptr [eax + 4] */ 2766 /* cmp eax, MEM32(edx + 0x8) */ /* 0x360E3941: cmp eax, dword ptr [edx + 8] */ 2767 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 2768 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2769 _flag_k = FK_CMP; 2770 if (CMP_NE(_flag_a, _flag_b)) goto L_360E394B; /* 0x360E3944: jne 0x360e394b */ 2771 L_360E3946: 2772 MEM32(edx + 0x8) = ecx; /* 0x360E3946: mov dword ptr [edx + 8], ecx */ 2773 goto L_360E394D; /* 0x360E3949: jmp 0x360e394d */ 2774 L_360E394B: 2775 MEM32(edx) = ecx; /* 0x360E394B: mov dword ptr [edx], ecx */ 2776 L_360E394D: 2777 MEM32(ecx + 0x8) = eax; /* 0x360E394D: mov dword ptr [ecx + 8], eax */ 2778 MEM32(eax + 0x4) = ecx; /* 0x360E3950: mov dword ptr [eax + 4], ecx */ 2779 L_360E3953: 2780 ecx = MEM32(eax + 0x4); /* 0x360E3953: mov ecx, dword ptr [eax + 4] */ 2781 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E3956: mov byte ptr [ecx + 0x1c], bl */ 2782 edx = MEM32(eax + 0x4); /* 0x360E3959: mov edx, dword ptr [eax + 4] */ 2783 ecx = MEM32(edx + 0x4); /* 0x360E395C: mov ecx, dword ptr [edx + 4] */ 2784 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x360E395F: mov byte ptr [ecx + 0x1c], 0 */ 2785 edx = MEM32(eax + 0x4); /* 0x360E3963: mov edx, dword ptr [eax + 4] */ 2786 ecx = MEM32(edx + 0x4); /* 0x360E3966: mov ecx, dword ptr [edx + 4] */ 2787 edx = MEM32(ecx + 0x8); /* 0x360E3969: mov edx, dword ptr [ecx + 8] */ 2788 edi = MEM32(edx); /* 0x360E396C: mov edi, dword ptr [edx] */ 2789 MEM32(ecx + 0x8) = edi; /* 0x360E396E: mov dword ptr [ecx + 8], edi */ 2790 edi = MEM32(edx); /* 0x360E3971: mov edi, dword ptr [edx] */ 2791 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360E3973: cmp edi, dword ptr [esi + 8] */ 2792 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2793 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2794 _flag_k = FK_CMP; 2795 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E397B; /* 0x360E3976: je 0x360e397b */ 2796 L_360E3978: 2797 MEM32(edi + 0x4) = ecx; /* 0x360E3978: mov dword ptr [edi + 4], ecx */ 2798 L_360E397B: 2799 edi = MEM32(ecx + 0x4); /* 0x360E397B: mov edi, dword ptr [ecx + 4] */ 2800 MEM32(edx + 0x4) = edi; /* 0x360E397E: mov dword ptr [edx + 4], edi */ 2801 edi = MEM32(esi + 0x4); /* 0x360E3981: mov edi, dword ptr [esi + 4] */ 2802 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360E3984: cmp ecx, dword ptr [edi + 4] */ 2803 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2804 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2805 _flag_k = FK_CMP; 2806 if (CMP_NE(_flag_a, _flag_b)) goto L_360E398E; /* 0x360E3987: jne 0x360e398e */ 2807 L_360E3989: 2808 MEM32(edi + 0x4) = edx; /* 0x360E3989: mov dword ptr [edi + 4], edx */ 2809 goto L_360E399C; /* 0x360E398C: jmp 0x360e399c */ 2810 L_360E398E: 2811 edi = MEM32(ecx + 0x4); /* 0x360E398E: mov edi, dword ptr [ecx + 4] */ 2812 /* cmp ecx, MEM32(edi) */ /* 0x360E3991: cmp ecx, dword ptr [edi] */ 2813 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 2814 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2815 _flag_k = FK_CMP; 2816 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3999; /* 0x360E3993: jne 0x360e3999 */ 2817 L_360E3995: 2818 MEM32(edi) = edx; /* 0x360E3995: mov dword ptr [edi], edx */ 2819 goto L_360E399C; /* 0x360E3997: jmp 0x360e399c */ 2820 L_360E3999: 2821 MEM32(edi + 0x8) = edx; /* 0x360E3999: mov dword ptr [edi + 8], edx */ 2822 L_360E399C: 2823 MEM32(edx) = ecx; /* 0x360E399C: mov dword ptr [edx], ecx */ 2824 L_360E399E: 2825 MEM32(ecx + 0x4) = edx; /* 0x360E399E: mov dword ptr [ecx + 4], edx */ 2826 L_360E39A1: 2827 ecx = MEM32(esi + 0x4); /* 0x360E39A1: mov ecx, dword ptr [esi + 4] */ 2828 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x360E39A4: cmp eax, dword ptr [ecx + 4] */ 2829 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 2830 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2831 _flag_k = FK_CMP; 2832 RECOMP_BACKEDGE(); 2833 if (CMP_NE(_flag_a, _flag_b)) goto L_360E382D; /* 0x360E39A7: jne 0x360e382d */ 2834 L_360E39AD: 2835 edx = MEM32(esi + 0x4); /* 0x360E39AD: mov edx, dword ptr [esi + 4] */ 2836 eax = MEM32(edx + 0x4); /* 0x360E39B0: mov eax, dword ptr [edx + 4] */ 2837 ecx = MEM32(ebp + (-0x4)); /* 0x360E39B3: mov ecx, dword ptr [ebp - 4] */ 2838 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E39B6: mov byte ptr [eax + 0x1c], bl */ 2839 eax = MEM32(ebp + 0x8); /* 0x360E39B9: mov eax, dword ptr [ebp + 8] */ 2840 edi = POP32_VAL(esp); /* 0x360E39BC: pop edi */ 2841 esi = POP32_VAL(esp); /* 0x360E39BD: pop esi */ 2842 MEM32(eax) = ecx; /* 0x360E39BE: mov dword ptr [eax], ecx */ 2843 ebx = POP32_VAL(esp); /* 0x360E39C0: pop ebx */ 2844 esp = ebp; /* 0x360E39C1: mov esp, ebp */ 2845 ebp = POP32_VAL(esp); /* 0x360E39C3: pop ebp */ 2846 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360E39C4: ret 0x10 */ 2847 RECOMP_REGS_OUT(); 2848 } 2849 2850 void sub_360E399E(void) { 2851 int _fpu_cmp = 0; 2852 uint32_t _cf = 0; 2853 int _df = 1; 2854 uint32_t _flag_k = FK_NONE; 2855 uint32_t _flag_a = 0, _flag_b = 0; 2856 uint32_t _itail_tgt = 0; 2857 RECOMP_REGS_LOCALS 2858 RECOMP_ENTER(0x360E399Eu); 2859 2860 goto L_360E399E; 2861 L_360E382D: 2862 ecx = MEM32(eax + 0x4); /* 0x360E382D: mov ecx, dword ptr [eax + 4] */ 2863 SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x360E3830: mov dl, byte ptr [ecx + 0x1c] */ 2864 /* test LO8(edx), LO8(edx) */ /* 0x360E3833: test dl, dl */ 2865 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2866 _cf = 0; 2867 _flag_k = FK_NARROW(FK_TEST, 24); 2868 if (TEST_NZ(_flag_a, _flag_b)) goto L_360E39AD; /* 0x360E3835: jne 0x360e39ad */ 2869 L_360E383B: 2870 edi = MEM32(ecx + 0x4); /* 0x360E383B: mov edi, dword ptr [ecx + 4] */ 2871 edx = MEM32(edi); /* 0x360E383E: mov edx, dword ptr [edi] */ 2872 /* cmp ecx, edx */ /* 0x360E3840: cmp ecx, edx */ 2873 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 2874 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2875 _flag_k = FK_CMP; 2876 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3909; /* 0x360E3842: jne 0x360e3909 */ 2877 L_360E3848: 2878 edx = MEM32(edi + 0x8); /* 0x360E3848: mov edx, dword ptr [edi + 8] */ 2879 /* cmp MEM8(edx + 0x1C), 0 */ /* 0x360E384B: cmp byte ptr [edx + 0x1c], 0 */ 2880 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24; 2881 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2882 _flag_k = FK_NARROW(FK_CMP, 24); 2883 if (CMP_NE(_flag_a, _flag_b)) goto L_360E386C; /* 0x360E384F: jne 0x360e386c */ 2884 L_360E3851: 2885 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E3851: mov byte ptr [ecx + 0x1c], bl */ 2886 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E3854: mov byte ptr [edx + 0x1c], bl */ 2887 ecx = MEM32(eax + 0x4); /* 0x360E3857: mov ecx, dword ptr [eax + 4] */ 2888 edx = MEM32(ecx + 0x4); /* 0x360E385A: mov edx, dword ptr [ecx + 4] */ 2889 MEM8(edx + 0x1C) = (uint8_t)(0); /* 0x360E385D: mov byte ptr [edx + 0x1c], 0 */ 2890 eax = MEM32(eax + 0x4); /* 0x360E3861: mov eax, dword ptr [eax + 4] */ 2891 eax = MEM32(eax + 0x4); /* 0x360E3864: mov eax, dword ptr [eax + 4] */ 2892 goto L_360E39A1; /* 0x360E3867: jmp 0x360e39a1 */ 2893 L_360E386C: 2894 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x360E386C: cmp eax, dword ptr [ecx + 8] */ 2895 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 2896 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2897 _flag_k = FK_CMP; 2898 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38AB; /* 0x360E386F: jne 0x360e38ab */ 2899 L_360E3871: 2900 eax = ecx; /* 0x360E3871: mov eax, ecx */ 2901 ecx = MEM32(eax + 0x8); /* 0x360E3873: mov ecx, dword ptr [eax + 8] */ 2902 edx = MEM32(ecx); /* 0x360E3876: mov edx, dword ptr [ecx] */ 2903 MEM32(eax + 0x8) = edx; /* 0x360E3878: mov dword ptr [eax + 8], edx */ 2904 edx = MEM32(ecx); /* 0x360E387B: mov edx, dword ptr [ecx] */ 2905 /* cmp edx, MEM32(esi + 0x8) */ /* 0x360E387D: cmp edx, dword ptr [esi + 8] */ 2906 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2907 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2908 _flag_k = FK_CMP; 2909 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E3885; /* 0x360E3880: je 0x360e3885 */ 2910 L_360E3882: 2911 MEM32(edx + 0x4) = eax; /* 0x360E3882: mov dword ptr [edx + 4], eax */ 2912 L_360E3885: 2913 edx = MEM32(eax + 0x4); /* 0x360E3885: mov edx, dword ptr [eax + 4] */ 2914 MEM32(ecx + 0x4) = edx; /* 0x360E3888: mov dword ptr [ecx + 4], edx */ 2915 edx = MEM32(esi + 0x4); /* 0x360E388B: mov edx, dword ptr [esi + 4] */ 2916 /* cmp eax, MEM32(edx + 0x4) */ /* 0x360E388E: cmp eax, dword ptr [edx + 4] */ 2917 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2918 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2919 _flag_k = FK_CMP; 2920 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3898; /* 0x360E3891: jne 0x360e3898 */ 2921 L_360E3893: 2922 MEM32(edx + 0x4) = ecx; /* 0x360E3893: mov dword ptr [edx + 4], ecx */ 2923 goto L_360E38A6; /* 0x360E3896: jmp 0x360e38a6 */ 2924 L_360E3898: 2925 edx = MEM32(eax + 0x4); /* 0x360E3898: mov edx, dword ptr [eax + 4] */ 2926 /* cmp eax, MEM32(edx) */ /* 0x360E389B: cmp eax, dword ptr [edx] */ 2927 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 2928 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2929 _flag_k = FK_CMP; 2930 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38A3; /* 0x360E389D: jne 0x360e38a3 */ 2931 L_360E389F: 2932 MEM32(edx) = ecx; /* 0x360E389F: mov dword ptr [edx], ecx */ 2933 goto L_360E38A6; /* 0x360E38A1: jmp 0x360e38a6 */ 2934 L_360E38A3: 2935 MEM32(edx + 0x8) = ecx; /* 0x360E38A3: mov dword ptr [edx + 8], ecx */ 2936 L_360E38A6: 2937 MEM32(ecx) = eax; /* 0x360E38A6: mov dword ptr [ecx], eax */ 2938 MEM32(eax + 0x4) = ecx; /* 0x360E38A8: mov dword ptr [eax + 4], ecx */ 2939 L_360E38AB: 2940 ecx = MEM32(eax + 0x4); /* 0x360E38AB: mov ecx, dword ptr [eax + 4] */ 2941 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E38AE: mov byte ptr [ecx + 0x1c], bl */ 2942 edx = MEM32(eax + 0x4); /* 0x360E38B1: mov edx, dword ptr [eax + 4] */ 2943 ecx = MEM32(edx + 0x4); /* 0x360E38B4: mov ecx, dword ptr [edx + 4] */ 2944 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x360E38B7: mov byte ptr [ecx + 0x1c], 0 */ 2945 edx = MEM32(eax + 0x4); /* 0x360E38BB: mov edx, dword ptr [eax + 4] */ 2946 ecx = MEM32(edx + 0x4); /* 0x360E38BE: mov ecx, dword ptr [edx + 4] */ 2947 edx = MEM32(ecx); /* 0x360E38C1: mov edx, dword ptr [ecx] */ 2948 edi = MEM32(edx + 0x8); /* 0x360E38C3: mov edi, dword ptr [edx + 8] */ 2949 MEM32(ecx) = edi; /* 0x360E38C6: mov dword ptr [ecx], edi */ 2950 edi = MEM32(edx + 0x8); /* 0x360E38C8: mov edi, dword ptr [edx + 8] */ 2951 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360E38CB: cmp edi, dword ptr [esi + 8] */ 2952 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2953 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2954 _flag_k = FK_CMP; 2955 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E38D3; /* 0x360E38CE: je 0x360e38d3 */ 2956 L_360E38D0: 2957 MEM32(edi + 0x4) = ecx; /* 0x360E38D0: mov dword ptr [edi + 4], ecx */ 2958 L_360E38D3: 2959 edi = MEM32(ecx + 0x4); /* 0x360E38D3: mov edi, dword ptr [ecx + 4] */ 2960 MEM32(edx + 0x4) = edi; /* 0x360E38D6: mov dword ptr [edx + 4], edi */ 2961 edi = MEM32(esi + 0x4); /* 0x360E38D9: mov edi, dword ptr [esi + 4] */ 2962 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360E38DC: cmp ecx, dword ptr [edi + 4] */ 2963 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2964 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2965 _flag_k = FK_CMP; 2966 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38EC; /* 0x360E38DF: jne 0x360e38ec */ 2967 L_360E38E1: 2968 MEM32(edi + 0x4) = edx; /* 0x360E38E1: mov dword ptr [edi + 4], edx */ 2969 MEM32(edx + 0x8) = ecx; /* 0x360E38E4: mov dword ptr [edx + 8], ecx */ 2970 goto L_360E399E; /* 0x360E38E7: jmp 0x360e399e */ 2971 L_360E38EC: 2972 edi = MEM32(ecx + 0x4); /* 0x360E38EC: mov edi, dword ptr [ecx + 4] */ 2973 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x360E38EF: cmp ecx, dword ptr [edi + 8] */ 2974 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2975 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2976 _flag_k = FK_CMP; 2977 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38FF; /* 0x360E38F2: jne 0x360e38ff */ 2978 L_360E38F4: 2979 MEM32(edi + 0x8) = edx; /* 0x360E38F4: mov dword ptr [edi + 8], edx */ 2980 MEM32(edx + 0x8) = ecx; /* 0x360E38F7: mov dword ptr [edx + 8], ecx */ 2981 goto L_360E399E; /* 0x360E38FA: jmp 0x360e399e */ 2982 L_360E38FF: 2983 MEM32(edi) = edx; /* 0x360E38FF: mov dword ptr [edi], edx */ 2984 MEM32(edx + 0x8) = ecx; /* 0x360E3901: mov dword ptr [edx + 8], ecx */ 2985 goto L_360E399E; /* 0x360E3904: jmp 0x360e399e */ 2986 L_360E3909: 2987 /* cmp MEM8(edx + 0x1C), 0 */ /* 0x360E3909: cmp byte ptr [edx + 0x1c], 0 */ 2988 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24; 2989 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2990 _flag_k = FK_NARROW(FK_CMP, 24); 2991 RECOMP_BACKEDGE(); 2992 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E3851; /* 0x360E390D: je 0x360e3851 */ 2993 L_360E3913: 2994 /* cmp eax, MEM32(ecx) */ /* 0x360E3913: cmp eax, dword ptr [ecx] */ 2995 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 2996 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2997 _flag_k = FK_CMP; 2998 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3953; /* 0x360E3915: jne 0x360e3953 */ 2999 L_360E3917: 3000 eax = ecx; /* 0x360E3917: mov eax, ecx */ 3001 ecx = MEM32(eax); /* 0x360E3919: mov ecx, dword ptr [eax] */ 3002 edx = MEM32(ecx + 0x8); /* 0x360E391B: mov edx, dword ptr [ecx + 8] */ 3003 MEM32(eax) = edx; /* 0x360E391E: mov dword ptr [eax], edx */ 3004 edx = MEM32(ecx + 0x8); /* 0x360E3920: mov edx, dword ptr [ecx + 8] */ 3005 /* cmp edx, MEM32(esi + 0x8) */ /* 0x360E3923: cmp edx, dword ptr [esi + 8] */ 3006 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3007 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3008 _flag_k = FK_CMP; 3009 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E392B; /* 0x360E3926: je 0x360e392b */ 3010 L_360E3928: 3011 MEM32(edx + 0x4) = eax; /* 0x360E3928: mov dword ptr [edx + 4], eax */ 3012 L_360E392B: 3013 edx = MEM32(eax + 0x4); /* 0x360E392B: mov edx, dword ptr [eax + 4] */ 3014 MEM32(ecx + 0x4) = edx; /* 0x360E392E: mov dword ptr [ecx + 4], edx */ 3015 edx = MEM32(esi + 0x4); /* 0x360E3931: mov edx, dword ptr [esi + 4] */ 3016 /* cmp eax, MEM32(edx + 0x4) */ /* 0x360E3934: cmp eax, dword ptr [edx + 4] */ 3017 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 3018 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3019 _flag_k = FK_CMP; 3020 if (CMP_NE(_flag_a, _flag_b)) goto L_360E393E; /* 0x360E3937: jne 0x360e393e */ 3021 L_360E3939: 3022 MEM32(edx + 0x4) = ecx; /* 0x360E3939: mov dword ptr [edx + 4], ecx */ 3023 goto L_360E394D; /* 0x360E393C: jmp 0x360e394d */ 3024 L_360E393E: 3025 edx = MEM32(eax + 0x4); /* 0x360E393E: mov edx, dword ptr [eax + 4] */ 3026 /* cmp eax, MEM32(edx + 0x8) */ /* 0x360E3941: cmp eax, dword ptr [edx + 8] */ 3027 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 3028 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3029 _flag_k = FK_CMP; 3030 if (CMP_NE(_flag_a, _flag_b)) goto L_360E394B; /* 0x360E3944: jne 0x360e394b */ 3031 L_360E3946: 3032 MEM32(edx + 0x8) = ecx; /* 0x360E3946: mov dword ptr [edx + 8], ecx */ 3033 goto L_360E394D; /* 0x360E3949: jmp 0x360e394d */ 3034 L_360E394B: 3035 MEM32(edx) = ecx; /* 0x360E394B: mov dword ptr [edx], ecx */ 3036 L_360E394D: 3037 MEM32(ecx + 0x8) = eax; /* 0x360E394D: mov dword ptr [ecx + 8], eax */ 3038 MEM32(eax + 0x4) = ecx; /* 0x360E3950: mov dword ptr [eax + 4], ecx */ 3039 L_360E3953: 3040 ecx = MEM32(eax + 0x4); /* 0x360E3953: mov ecx, dword ptr [eax + 4] */ 3041 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E3956: mov byte ptr [ecx + 0x1c], bl */ 3042 edx = MEM32(eax + 0x4); /* 0x360E3959: mov edx, dword ptr [eax + 4] */ 3043 ecx = MEM32(edx + 0x4); /* 0x360E395C: mov ecx, dword ptr [edx + 4] */ 3044 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x360E395F: mov byte ptr [ecx + 0x1c], 0 */ 3045 edx = MEM32(eax + 0x4); /* 0x360E3963: mov edx, dword ptr [eax + 4] */ 3046 ecx = MEM32(edx + 0x4); /* 0x360E3966: mov ecx, dword ptr [edx + 4] */ 3047 edx = MEM32(ecx + 0x8); /* 0x360E3969: mov edx, dword ptr [ecx + 8] */ 3048 edi = MEM32(edx); /* 0x360E396C: mov edi, dword ptr [edx] */ 3049 MEM32(ecx + 0x8) = edi; /* 0x360E396E: mov dword ptr [ecx + 8], edi */ 3050 edi = MEM32(edx); /* 0x360E3971: mov edi, dword ptr [edx] */ 3051 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360E3973: cmp edi, dword ptr [esi + 8] */ 3052 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3053 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3054 _flag_k = FK_CMP; 3055 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E397B; /* 0x360E3976: je 0x360e397b */ 3056 L_360E3978: 3057 MEM32(edi + 0x4) = ecx; /* 0x360E3978: mov dword ptr [edi + 4], ecx */ 3058 L_360E397B: 3059 edi = MEM32(ecx + 0x4); /* 0x360E397B: mov edi, dword ptr [ecx + 4] */ 3060 MEM32(edx + 0x4) = edi; /* 0x360E397E: mov dword ptr [edx + 4], edi */ 3061 edi = MEM32(esi + 0x4); /* 0x360E3981: mov edi, dword ptr [esi + 4] */ 3062 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360E3984: cmp ecx, dword ptr [edi + 4] */ 3063 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 3064 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3065 _flag_k = FK_CMP; 3066 if (CMP_NE(_flag_a, _flag_b)) goto L_360E398E; /* 0x360E3987: jne 0x360e398e */ 3067 L_360E3989: 3068 MEM32(edi + 0x4) = edx; /* 0x360E3989: mov dword ptr [edi + 4], edx */ 3069 goto L_360E399C; /* 0x360E398C: jmp 0x360e399c */ 3070 L_360E398E: 3071 edi = MEM32(ecx + 0x4); /* 0x360E398E: mov edi, dword ptr [ecx + 4] */ 3072 /* cmp ecx, MEM32(edi) */ /* 0x360E3991: cmp ecx, dword ptr [edi] */ 3073 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 3074 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3075 _flag_k = FK_CMP; 3076 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3999; /* 0x360E3993: jne 0x360e3999 */ 3077 L_360E3995: 3078 MEM32(edi) = edx; /* 0x360E3995: mov dword ptr [edi], edx */ 3079 goto L_360E399C; /* 0x360E3997: jmp 0x360e399c */ 3080 L_360E3999: 3081 MEM32(edi + 0x8) = edx; /* 0x360E3999: mov dword ptr [edi + 8], edx */ 3082 L_360E399C: 3083 MEM32(edx) = ecx; /* 0x360E399C: mov dword ptr [edx], ecx */ 3084 L_360E399E: 3085 MEM32(ecx + 0x4) = edx; /* 0x360E399E: mov dword ptr [ecx + 4], edx */ 3086 L_360E39A1: 3087 ecx = MEM32(esi + 0x4); /* 0x360E39A1: mov ecx, dword ptr [esi + 4] */ 3088 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x360E39A4: cmp eax, dword ptr [ecx + 4] */ 3089 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 3090 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3091 _flag_k = FK_CMP; 3092 RECOMP_BACKEDGE(); 3093 if (CMP_NE(_flag_a, _flag_b)) goto L_360E382D; /* 0x360E39A7: jne 0x360e382d */ 3094 L_360E39AD: 3095 edx = MEM32(esi + 0x4); /* 0x360E39AD: mov edx, dword ptr [esi + 4] */ 3096 eax = MEM32(edx + 0x4); /* 0x360E39B0: mov eax, dword ptr [edx + 4] */ 3097 ecx = MEM32(ebp + (-0x4)); /* 0x360E39B3: mov ecx, dword ptr [ebp - 4] */ 3098 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E39B6: mov byte ptr [eax + 0x1c], bl */ 3099 eax = MEM32(ebp + 0x8); /* 0x360E39B9: mov eax, dword ptr [ebp + 8] */ 3100 edi = POP32_VAL(esp); /* 0x360E39BC: pop edi */ 3101 esi = POP32_VAL(esp); /* 0x360E39BD: pop esi */ 3102 MEM32(eax) = ecx; /* 0x360E39BE: mov dword ptr [eax], ecx */ 3103 ebx = POP32_VAL(esp); /* 0x360E39C0: pop ebx */ 3104 esp = ebp; /* 0x360E39C1: mov esp, ebp */ 3105 ebp = POP32_VAL(esp); /* 0x360E39C3: pop ebp */ 3106 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360E39C4: ret 0x10 */ 3107 RECOMP_REGS_OUT(); 3108 } 3109 3110 void sub_360E39A1(void) { 3111 int _fpu_cmp = 0; 3112 uint32_t _cf = 0; 3113 int _df = 1; 3114 uint32_t _flag_k = FK_NONE; 3115 uint32_t _flag_a = 0, _flag_b = 0; 3116 uint32_t _itail_tgt = 0; 3117 RECOMP_REGS_LOCALS 3118 RECOMP_ENTER(0x360E39A1u); 3119 3120 goto L_360E39A1; 3121 L_360E382D: 3122 ecx = MEM32(eax + 0x4); /* 0x360E382D: mov ecx, dword ptr [eax + 4] */ 3123 SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x360E3830: mov dl, byte ptr [ecx + 0x1c] */ 3124 /* test LO8(edx), LO8(edx) */ /* 0x360E3833: test dl, dl */ 3125 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 3126 _cf = 0; 3127 _flag_k = FK_NARROW(FK_TEST, 24); 3128 if (TEST_NZ(_flag_a, _flag_b)) goto L_360E39AD; /* 0x360E3835: jne 0x360e39ad */ 3129 L_360E383B: 3130 edi = MEM32(ecx + 0x4); /* 0x360E383B: mov edi, dword ptr [ecx + 4] */ 3131 edx = MEM32(edi); /* 0x360E383E: mov edx, dword ptr [edi] */ 3132 /* cmp ecx, edx */ /* 0x360E3840: cmp ecx, edx */ 3133 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 3134 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3135 _flag_k = FK_CMP; 3136 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3909; /* 0x360E3842: jne 0x360e3909 */ 3137 L_360E3848: 3138 edx = MEM32(edi + 0x8); /* 0x360E3848: mov edx, dword ptr [edi + 8] */ 3139 /* cmp MEM8(edx + 0x1C), 0 */ /* 0x360E384B: cmp byte ptr [edx + 0x1c], 0 */ 3140 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24; 3141 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3142 _flag_k = FK_NARROW(FK_CMP, 24); 3143 if (CMP_NE(_flag_a, _flag_b)) goto L_360E386C; /* 0x360E384F: jne 0x360e386c */ 3144 L_360E3851: 3145 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E3851: mov byte ptr [ecx + 0x1c], bl */ 3146 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E3854: mov byte ptr [edx + 0x1c], bl */ 3147 ecx = MEM32(eax + 0x4); /* 0x360E3857: mov ecx, dword ptr [eax + 4] */ 3148 edx = MEM32(ecx + 0x4); /* 0x360E385A: mov edx, dword ptr [ecx + 4] */ 3149 MEM8(edx + 0x1C) = (uint8_t)(0); /* 0x360E385D: mov byte ptr [edx + 0x1c], 0 */ 3150 eax = MEM32(eax + 0x4); /* 0x360E3861: mov eax, dword ptr [eax + 4] */ 3151 eax = MEM32(eax + 0x4); /* 0x360E3864: mov eax, dword ptr [eax + 4] */ 3152 goto L_360E39A1; /* 0x360E3867: jmp 0x360e39a1 */ 3153 L_360E386C: 3154 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x360E386C: cmp eax, dword ptr [ecx + 8] */ 3155 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 3156 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3157 _flag_k = FK_CMP; 3158 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38AB; /* 0x360E386F: jne 0x360e38ab */ 3159 L_360E3871: 3160 eax = ecx; /* 0x360E3871: mov eax, ecx */ 3161 ecx = MEM32(eax + 0x8); /* 0x360E3873: mov ecx, dword ptr [eax + 8] */ 3162 edx = MEM32(ecx); /* 0x360E3876: mov edx, dword ptr [ecx] */ 3163 MEM32(eax + 0x8) = edx; /* 0x360E3878: mov dword ptr [eax + 8], edx */ 3164 edx = MEM32(ecx); /* 0x360E387B: mov edx, dword ptr [ecx] */ 3165 /* cmp edx, MEM32(esi + 0x8) */ /* 0x360E387D: cmp edx, dword ptr [esi + 8] */ 3166 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3167 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3168 _flag_k = FK_CMP; 3169 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E3885; /* 0x360E3880: je 0x360e3885 */ 3170 L_360E3882: 3171 MEM32(edx + 0x4) = eax; /* 0x360E3882: mov dword ptr [edx + 4], eax */ 3172 L_360E3885: 3173 edx = MEM32(eax + 0x4); /* 0x360E3885: mov edx, dword ptr [eax + 4] */ 3174 MEM32(ecx + 0x4) = edx; /* 0x360E3888: mov dword ptr [ecx + 4], edx */ 3175 edx = MEM32(esi + 0x4); /* 0x360E388B: mov edx, dword ptr [esi + 4] */ 3176 /* cmp eax, MEM32(edx + 0x4) */ /* 0x360E388E: cmp eax, dword ptr [edx + 4] */ 3177 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 3178 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3179 _flag_k = FK_CMP; 3180 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3898; /* 0x360E3891: jne 0x360e3898 */ 3181 L_360E3893: 3182 MEM32(edx + 0x4) = ecx; /* 0x360E3893: mov dword ptr [edx + 4], ecx */ 3183 goto L_360E38A6; /* 0x360E3896: jmp 0x360e38a6 */ 3184 L_360E3898: 3185 edx = MEM32(eax + 0x4); /* 0x360E3898: mov edx, dword ptr [eax + 4] */ 3186 /* cmp eax, MEM32(edx) */ /* 0x360E389B: cmp eax, dword ptr [edx] */ 3187 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 3188 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3189 _flag_k = FK_CMP; 3190 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38A3; /* 0x360E389D: jne 0x360e38a3 */ 3191 L_360E389F: 3192 MEM32(edx) = ecx; /* 0x360E389F: mov dword ptr [edx], ecx */ 3193 goto L_360E38A6; /* 0x360E38A1: jmp 0x360e38a6 */ 3194 L_360E38A3: 3195 MEM32(edx + 0x8) = ecx; /* 0x360E38A3: mov dword ptr [edx + 8], ecx */ 3196 L_360E38A6: 3197 MEM32(ecx) = eax; /* 0x360E38A6: mov dword ptr [ecx], eax */ 3198 MEM32(eax + 0x4) = ecx; /* 0x360E38A8: mov dword ptr [eax + 4], ecx */ 3199 L_360E38AB: 3200 ecx = MEM32(eax + 0x4); /* 0x360E38AB: mov ecx, dword ptr [eax + 4] */ 3201 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E38AE: mov byte ptr [ecx + 0x1c], bl */ 3202 edx = MEM32(eax + 0x4); /* 0x360E38B1: mov edx, dword ptr [eax + 4] */ 3203 ecx = MEM32(edx + 0x4); /* 0x360E38B4: mov ecx, dword ptr [edx + 4] */ 3204 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x360E38B7: mov byte ptr [ecx + 0x1c], 0 */ 3205 edx = MEM32(eax + 0x4); /* 0x360E38BB: mov edx, dword ptr [eax + 4] */ 3206 ecx = MEM32(edx + 0x4); /* 0x360E38BE: mov ecx, dword ptr [edx + 4] */ 3207 edx = MEM32(ecx); /* 0x360E38C1: mov edx, dword ptr [ecx] */ 3208 edi = MEM32(edx + 0x8); /* 0x360E38C3: mov edi, dword ptr [edx + 8] */ 3209 MEM32(ecx) = edi; /* 0x360E38C6: mov dword ptr [ecx], edi */ 3210 edi = MEM32(edx + 0x8); /* 0x360E38C8: mov edi, dword ptr [edx + 8] */ 3211 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360E38CB: cmp edi, dword ptr [esi + 8] */ 3212 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3213 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3214 _flag_k = FK_CMP; 3215 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E38D3; /* 0x360E38CE: je 0x360e38d3 */ 3216 L_360E38D0: 3217 MEM32(edi + 0x4) = ecx; /* 0x360E38D0: mov dword ptr [edi + 4], ecx */ 3218 L_360E38D3: 3219 edi = MEM32(ecx + 0x4); /* 0x360E38D3: mov edi, dword ptr [ecx + 4] */ 3220 MEM32(edx + 0x4) = edi; /* 0x360E38D6: mov dword ptr [edx + 4], edi */ 3221 edi = MEM32(esi + 0x4); /* 0x360E38D9: mov edi, dword ptr [esi + 4] */ 3222 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360E38DC: cmp ecx, dword ptr [edi + 4] */ 3223 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 3224 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3225 _flag_k = FK_CMP; 3226 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38EC; /* 0x360E38DF: jne 0x360e38ec */ 3227 L_360E38E1: 3228 MEM32(edi + 0x4) = edx; /* 0x360E38E1: mov dword ptr [edi + 4], edx */ 3229 MEM32(edx + 0x8) = ecx; /* 0x360E38E4: mov dword ptr [edx + 8], ecx */ 3230 goto L_360E399E; /* 0x360E38E7: jmp 0x360e399e */ 3231 L_360E38EC: 3232 edi = MEM32(ecx + 0x4); /* 0x360E38EC: mov edi, dword ptr [ecx + 4] */ 3233 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x360E38EF: cmp ecx, dword ptr [edi + 8] */ 3234 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3235 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3236 _flag_k = FK_CMP; 3237 if (CMP_NE(_flag_a, _flag_b)) goto L_360E38FF; /* 0x360E38F2: jne 0x360e38ff */ 3238 L_360E38F4: 3239 MEM32(edi + 0x8) = edx; /* 0x360E38F4: mov dword ptr [edi + 8], edx */ 3240 MEM32(edx + 0x8) = ecx; /* 0x360E38F7: mov dword ptr [edx + 8], ecx */ 3241 goto L_360E399E; /* 0x360E38FA: jmp 0x360e399e */ 3242 L_360E38FF: 3243 MEM32(edi) = edx; /* 0x360E38FF: mov dword ptr [edi], edx */ 3244 MEM32(edx + 0x8) = ecx; /* 0x360E3901: mov dword ptr [edx + 8], ecx */ 3245 goto L_360E399E; /* 0x360E3904: jmp 0x360e399e */ 3246 L_360E3909: 3247 /* cmp MEM8(edx + 0x1C), 0 */ /* 0x360E3909: cmp byte ptr [edx + 0x1c], 0 */ 3248 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24; 3249 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3250 _flag_k = FK_NARROW(FK_CMP, 24); 3251 RECOMP_BACKEDGE(); 3252 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E3851; /* 0x360E390D: je 0x360e3851 */ 3253 L_360E3913: 3254 /* cmp eax, MEM32(ecx) */ /* 0x360E3913: cmp eax, dword ptr [ecx] */ 3255 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 3256 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3257 _flag_k = FK_CMP; 3258 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3953; /* 0x360E3915: jne 0x360e3953 */ 3259 L_360E3917: 3260 eax = ecx; /* 0x360E3917: mov eax, ecx */ 3261 ecx = MEM32(eax); /* 0x360E3919: mov ecx, dword ptr [eax] */ 3262 edx = MEM32(ecx + 0x8); /* 0x360E391B: mov edx, dword ptr [ecx + 8] */ 3263 MEM32(eax) = edx; /* 0x360E391E: mov dword ptr [eax], edx */ 3264 edx = MEM32(ecx + 0x8); /* 0x360E3920: mov edx, dword ptr [ecx + 8] */ 3265 /* cmp edx, MEM32(esi + 0x8) */ /* 0x360E3923: cmp edx, dword ptr [esi + 8] */ 3266 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3267 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3268 _flag_k = FK_CMP; 3269 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E392B; /* 0x360E3926: je 0x360e392b */ 3270 L_360E3928: 3271 MEM32(edx + 0x4) = eax; /* 0x360E3928: mov dword ptr [edx + 4], eax */ 3272 L_360E392B: 3273 edx = MEM32(eax + 0x4); /* 0x360E392B: mov edx, dword ptr [eax + 4] */ 3274 MEM32(ecx + 0x4) = edx; /* 0x360E392E: mov dword ptr [ecx + 4], edx */ 3275 edx = MEM32(esi + 0x4); /* 0x360E3931: mov edx, dword ptr [esi + 4] */ 3276 /* cmp eax, MEM32(edx + 0x4) */ /* 0x360E3934: cmp eax, dword ptr [edx + 4] */ 3277 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 3278 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3279 _flag_k = FK_CMP; 3280 if (CMP_NE(_flag_a, _flag_b)) goto L_360E393E; /* 0x360E3937: jne 0x360e393e */ 3281 L_360E3939: 3282 MEM32(edx + 0x4) = ecx; /* 0x360E3939: mov dword ptr [edx + 4], ecx */ 3283 goto L_360E394D; /* 0x360E393C: jmp 0x360e394d */ 3284 L_360E393E: 3285 edx = MEM32(eax + 0x4); /* 0x360E393E: mov edx, dword ptr [eax + 4] */ 3286 /* cmp eax, MEM32(edx + 0x8) */ /* 0x360E3941: cmp eax, dword ptr [edx + 8] */ 3287 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 3288 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3289 _flag_k = FK_CMP; 3290 if (CMP_NE(_flag_a, _flag_b)) goto L_360E394B; /* 0x360E3944: jne 0x360e394b */ 3291 L_360E3946: 3292 MEM32(edx + 0x8) = ecx; /* 0x360E3946: mov dword ptr [edx + 8], ecx */ 3293 goto L_360E394D; /* 0x360E3949: jmp 0x360e394d */ 3294 L_360E394B: 3295 MEM32(edx) = ecx; /* 0x360E394B: mov dword ptr [edx], ecx */ 3296 L_360E394D: 3297 MEM32(ecx + 0x8) = eax; /* 0x360E394D: mov dword ptr [ecx + 8], eax */ 3298 MEM32(eax + 0x4) = ecx; /* 0x360E3950: mov dword ptr [eax + 4], ecx */ 3299 L_360E3953: 3300 ecx = MEM32(eax + 0x4); /* 0x360E3953: mov ecx, dword ptr [eax + 4] */ 3301 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E3956: mov byte ptr [ecx + 0x1c], bl */ 3302 edx = MEM32(eax + 0x4); /* 0x360E3959: mov edx, dword ptr [eax + 4] */ 3303 ecx = MEM32(edx + 0x4); /* 0x360E395C: mov ecx, dword ptr [edx + 4] */ 3304 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x360E395F: mov byte ptr [ecx + 0x1c], 0 */ 3305 edx = MEM32(eax + 0x4); /* 0x360E3963: mov edx, dword ptr [eax + 4] */ 3306 ecx = MEM32(edx + 0x4); /* 0x360E3966: mov ecx, dword ptr [edx + 4] */ 3307 edx = MEM32(ecx + 0x8); /* 0x360E3969: mov edx, dword ptr [ecx + 8] */ 3308 edi = MEM32(edx); /* 0x360E396C: mov edi, dword ptr [edx] */ 3309 MEM32(ecx + 0x8) = edi; /* 0x360E396E: mov dword ptr [ecx + 8], edi */ 3310 edi = MEM32(edx); /* 0x360E3971: mov edi, dword ptr [edx] */ 3311 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360E3973: cmp edi, dword ptr [esi + 8] */ 3312 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3313 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3314 _flag_k = FK_CMP; 3315 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E397B; /* 0x360E3976: je 0x360e397b */ 3316 L_360E3978: 3317 MEM32(edi + 0x4) = ecx; /* 0x360E3978: mov dword ptr [edi + 4], ecx */ 3318 L_360E397B: 3319 edi = MEM32(ecx + 0x4); /* 0x360E397B: mov edi, dword ptr [ecx + 4] */ 3320 MEM32(edx + 0x4) = edi; /* 0x360E397E: mov dword ptr [edx + 4], edi */ 3321 edi = MEM32(esi + 0x4); /* 0x360E3981: mov edi, dword ptr [esi + 4] */ 3322 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360E3984: cmp ecx, dword ptr [edi + 4] */ 3323 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 3324 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3325 _flag_k = FK_CMP; 3326 if (CMP_NE(_flag_a, _flag_b)) goto L_360E398E; /* 0x360E3987: jne 0x360e398e */ 3327 L_360E3989: 3328 MEM32(edi + 0x4) = edx; /* 0x360E3989: mov dword ptr [edi + 4], edx */ 3329 goto L_360E399C; /* 0x360E398C: jmp 0x360e399c */ 3330 L_360E398E: 3331 edi = MEM32(ecx + 0x4); /* 0x360E398E: mov edi, dword ptr [ecx + 4] */ 3332 /* cmp ecx, MEM32(edi) */ /* 0x360E3991: cmp ecx, dword ptr [edi] */ 3333 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 3334 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3335 _flag_k = FK_CMP; 3336 if (CMP_NE(_flag_a, _flag_b)) goto L_360E3999; /* 0x360E3993: jne 0x360e3999 */ 3337 L_360E3995: 3338 MEM32(edi) = edx; /* 0x360E3995: mov dword ptr [edi], edx */ 3339 goto L_360E399C; /* 0x360E3997: jmp 0x360e399c */ 3340 L_360E3999: 3341 MEM32(edi + 0x8) = edx; /* 0x360E3999: mov dword ptr [edi + 8], edx */ 3342 L_360E399C: 3343 MEM32(edx) = ecx; /* 0x360E399C: mov dword ptr [edx], ecx */ 3344 L_360E399E: 3345 MEM32(ecx + 0x4) = edx; /* 0x360E399E: mov dword ptr [ecx + 4], edx */ 3346 L_360E39A1: 3347 ecx = MEM32(esi + 0x4); /* 0x360E39A1: mov ecx, dword ptr [esi + 4] */ 3348 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x360E39A4: cmp eax, dword ptr [ecx + 4] */ 3349 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 3350 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3351 _flag_k = FK_CMP; 3352 RECOMP_BACKEDGE(); 3353 if (CMP_NE(_flag_a, _flag_b)) goto L_360E382D; /* 0x360E39A7: jne 0x360e382d */ 3354 L_360E39AD: 3355 edx = MEM32(esi + 0x4); /* 0x360E39AD: mov edx, dword ptr [esi + 4] */ 3356 eax = MEM32(edx + 0x4); /* 0x360E39B0: mov eax, dword ptr [edx + 4] */ 3357 ecx = MEM32(ebp + (-0x4)); /* 0x360E39B3: mov ecx, dword ptr [ebp - 4] */ 3358 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E39B6: mov byte ptr [eax + 0x1c], bl */ 3359 eax = MEM32(ebp + 0x8); /* 0x360E39B9: mov eax, dword ptr [ebp + 8] */ 3360 edi = POP32_VAL(esp); /* 0x360E39BC: pop edi */ 3361 esi = POP32_VAL(esp); /* 0x360E39BD: pop esi */ 3362 MEM32(eax) = ecx; /* 0x360E39BE: mov dword ptr [eax], ecx */ 3363 ebx = POP32_VAL(esp); /* 0x360E39C0: pop ebx */ 3364 esp = ebp; /* 0x360E39C1: mov esp, ebp */ 3365 ebp = POP32_VAL(esp); /* 0x360E39C3: pop ebp */ 3366 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360E39C4: ret 0x10 */ 3367 RECOMP_REGS_OUT(); 3368 } 3369 3370 void sub_360E39AD(void) { 3371 int _fpu_cmp = 0; 3372 uint32_t _cf = 0; 3373 int _df = 1; 3374 uint32_t _flag_k = FK_NONE; 3375 uint32_t _flag_a = 0, _flag_b = 0; 3376 uint32_t _itail_tgt = 0; 3377 RECOMP_REGS_LOCALS 3378 RECOMP_ENTER(0x360E39ADu); 3379 3380 L_360E39AD: 3381 edx = MEM32(esi + 0x4); /* 0x360E39AD: mov edx, dword ptr [esi + 4] */ 3382 eax = MEM32(edx + 0x4); /* 0x360E39B0: mov eax, dword ptr [edx + 4] */ 3383 ecx = MEM32(ebp + (-0x4)); /* 0x360E39B3: mov ecx, dword ptr [ebp - 4] */ 3384 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x360E39B6: mov byte ptr [eax + 0x1c], bl */ 3385 eax = MEM32(ebp + 0x8); /* 0x360E39B9: mov eax, dword ptr [ebp + 8] */ 3386 edi = POP32_VAL(esp); /* 0x360E39BC: pop edi */ 3387 esi = POP32_VAL(esp); /* 0x360E39BD: pop esi */ 3388 MEM32(eax) = ecx; /* 0x360E39BE: mov dword ptr [eax], ecx */ 3389 ebx = POP32_VAL(esp); /* 0x360E39C0: pop ebx */ 3390 esp = ebp; /* 0x360E39C1: mov esp, ebp */ 3391 ebp = POP32_VAL(esp); /* 0x360E39C3: pop ebp */ 3392 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360E39C4: ret 0x10 */ 3393 RECOMP_REGS_OUT(); 3394 } 3395 3396 void sub_360E39D0(void) { 3397 int _fpu_cmp = 0; 3398 uint32_t _cf = 0; 3399 int _df = 1; 3400 uint32_t _flag_k = FK_NONE; 3401 uint32_t _flag_a = 0, _flag_b = 0; 3402 uint32_t _itail_tgt = 0; 3403 RECOMP_REGS_LOCALS 3404 RECOMP_ENTER(0x360E39D0u); 3405 3406 L_360E39D0: 3407 PUSH32(esp, ebp); /* 0x360E39D0: push ebp */ 3408 ebp = esp; /* 0x360E39D1: mov ebp, esp */ 3409 eax = MEM32(ecx + 0x4); /* 0x360E39D3: mov eax, dword ptr [ecx + 4] */ 3410 edx = MEM32(eax + 0x4); /* 0x360E39D6: mov edx, dword ptr [eax + 4] */ 3411 ecx = MEM32(ecx + 0x8); /* 0x360E39D9: mov ecx, dword ptr [ecx + 8] */ 3412 /* cmp edx, ecx */ /* 0x360E39DC: cmp edx, ecx */ 3413 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3414 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3415 _flag_k = FK_CMP; 3416 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E39F9; /* 0x360E39DE: je 0x360e39f9 */ 3417 L_360E39E0: 3418 PUSH32(esp, esi); /* 0x360E39E0: push esi */ 3419 esi = MEM32(ebp + 0x8); /* 0x360E39E1: mov esi, dword ptr [ebp + 8] */ 3420 esi = MEM32(esi); /* 0x360E39E4: mov esi, dword ptr [esi] */ 3421 L_360E39E6: 3422 /* cmp MEM32(edx + 0xC), esi */ /* 0x360E39E6: cmp dword ptr [edx + 0xc], esi */ 3423 _flag_a = (uint32_t)(MEM32(edx + 0xC)); _flag_b = (uint32_t)(esi); 3424 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3425 _flag_k = FK_CMP; 3426 if (CMP_AE(_flag_a, _flag_b)) goto L_360E39F0; /* 0x360E39E9: jae 0x360e39f0 */ 3427 L_360E39EB: 3428 edx = MEM32(edx + 0x8); /* 0x360E39EB: mov edx, dword ptr [edx + 8] */ 3429 goto L_360E39F4; /* 0x360E39EE: jmp 0x360e39f4 */ 3430 L_360E39F0: 3431 eax = edx; /* 0x360E39F0: mov eax, edx */ 3432 edx = MEM32(edx); /* 0x360E39F2: mov edx, dword ptr [edx] */ 3433 L_360E39F4: 3434 /* cmp edx, ecx */ /* 0x360E39F4: cmp edx, ecx */ 3435 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3436 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3437 _flag_k = FK_CMP; 3438 RECOMP_BACKEDGE(); 3439 if (CMP_NE(_flag_a, _flag_b)) goto L_360E39E6; /* 0x360E39F6: jne 0x360e39e6 */ 3440 L_360E39F8: 3441 esi = POP32_VAL(esp); /* 0x360E39F8: pop esi */ 3442 L_360E39F9: 3443 ebp = POP32_VAL(esp); /* 0x360E39F9: pop ebp */ 3444 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360E39FA: ret 4 */ 3445 RECOMP_REGS_OUT(); 3446 } 3447 3448 void sub_360E3A00(void) { 3449 int _fpu_cmp = 0; 3450 uint32_t _cf = 0; 3451 int _df = 1; 3452 uint32_t _flag_k = FK_NONE; 3453 uint32_t _flag_a = 0, _flag_b = 0; 3454 uint32_t _itail_tgt = 0; 3455 RECOMP_REGS_LOCALS 3456 RECOMP_ENTER(0x360E3A00u); 3457 3458 L_360E3A00: 3459 PUSH32(esp, ebp); /* 0x360E3A00: push ebp */ 3460 ebp = esp; /* 0x360E3A01: mov ebp, esp */ 3461 eax = MEM32(ebp + 0x8); /* 0x360E3A03: mov eax, dword ptr [ebp + 8] */ 3462 /* test eax, eax */ /* 0x360E3A06: test eax, eax */ 3463 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3464 _cf = 0; 3465 _flag_k = FK_TEST; 3466 if (TEST_Z(_flag_a, _flag_b)) goto L_360E3A23; /* 0x360E3A08: je 0x360e3a23 */ 3467 L_360E3A0A: 3468 ecx = MEM32(ebp + 0xC); /* 0x360E3A0A: mov ecx, dword ptr [ebp + 0xc] */ 3469 edx = MEM32(ecx); /* 0x360E3A0D: mov edx, dword ptr [ecx] */ 3470 MEM32(eax) = edx; /* 0x360E3A0F: mov dword ptr [eax], edx */ 3471 edx = MEM32(ecx + 0x4); /* 0x360E3A11: mov edx, dword ptr [ecx + 4] */ 3472 MEM32(eax + 0x4) = edx; /* 0x360E3A14: mov dword ptr [eax + 4], edx */ 3473 edx = MEM32(ecx + 0x8); /* 0x360E3A17: mov edx, dword ptr [ecx + 8] */ 3474 MEM32(eax + 0x8) = edx; /* 0x360E3A1A: mov dword ptr [eax + 8], edx */ 3475 ecx = MEM32(ecx + 0xC); /* 0x360E3A1D: mov ecx, dword ptr [ecx + 0xc] */ 3476 MEM32(eax + 0xC) = ecx; /* 0x360E3A20: mov dword ptr [eax + 0xc], ecx */ 3477 L_360E3A23: 3478 ebp = POP32_VAL(esp); /* 0x360E3A23: pop ebp */ 3479 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3A24: ret */ 3480 RECOMP_REGS_OUT(); 3481 } 3482 3483 void sub_360E3A30(void) { 3484 int _fpu_cmp = 0; 3485 uint32_t _cf = 0; 3486 int _df = 1; 3487 uint32_t _flag_k = FK_NONE; 3488 uint32_t _flag_a = 0, _flag_b = 0; 3489 uint32_t _itail_tgt = 0; 3490 RECOMP_REGS_LOCALS 3491 RECOMP_ENTER(0x360E3A30u); 3492 3493 L_360E3A30: 3494 goto L_360E3A40; /* 0x360E3A30: jmp 0x360e3a40 */ 3495 L_360E3A40: 3496 MEM32(0x36306FA8) = 0x361B2FF4u; /* 0x360E3A40: mov dword ptr [0x36306fa8], 0x361b2ff4 */ 3497 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3A4A: ret */ 3498 RECOMP_REGS_OUT(); 3499 } 3500 3501 void sub_360E3A40(void) { 3502 int _fpu_cmp = 0; 3503 uint32_t _cf = 0; 3504 int _df = 1; 3505 uint32_t _flag_k = FK_NONE; 3506 uint32_t _flag_a = 0, _flag_b = 0; 3507 uint32_t _itail_tgt = 0; 3508 RECOMP_REGS_LOCALS 3509 RECOMP_ENTER(0x360E3A40u); 3510 3511 L_360E3A40: 3512 MEM32(0x36306FA8) = 0x361B2FF4u; /* 0x360E3A40: mov dword ptr [0x36306fa8], 0x361b2ff4 */ 3513 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3A4A: ret */ 3514 RECOMP_REGS_OUT(); 3515 } 3516 3517 void sub_360E3A50(void) { 3518 int _fpu_cmp = 0; 3519 uint32_t _cf = 0; 3520 int _df = 1; 3521 uint32_t _flag_k = FK_NONE; 3522 uint32_t _flag_a = 0, _flag_b = 0; 3523 uint32_t _itail_tgt = 0; 3524 RECOMP_REGS_LOCALS 3525 RECOMP_ENTER(0x360E3A50u); 3526 3527 L_360E3A50: 3528 goto L_360E3A60; /* 0x360E3A50: jmp 0x360e3a60 */ 3529 L_360E3A60: 3530 MEM32(0x36306FA4) = 0x361B3028u; /* 0x360E3A60: mov dword ptr [0x36306fa4], 0x361b3028 */ 3531 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3A6A: ret */ 3532 RECOMP_REGS_OUT(); 3533 } 3534 3535 void sub_360E3A60(void) { 3536 int _fpu_cmp = 0; 3537 uint32_t _cf = 0; 3538 int _df = 1; 3539 uint32_t _flag_k = FK_NONE; 3540 uint32_t _flag_a = 0, _flag_b = 0; 3541 uint32_t _itail_tgt = 0; 3542 RECOMP_REGS_LOCALS 3543 RECOMP_ENTER(0x360E3A60u); 3544 3545 L_360E3A60: 3546 MEM32(0x36306FA4) = 0x361B3028u; /* 0x360E3A60: mov dword ptr [0x36306fa4], 0x361b3028 */ 3547 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3A6A: ret */ 3548 RECOMP_REGS_OUT(); 3549 } 3550 3551 void sub_360E3A70(void) { 3552 int _fpu_cmp = 0; 3553 uint32_t _cf = 0; 3554 int _df = 1; 3555 uint32_t _flag_k = FK_NONE; 3556 uint32_t _flag_a = 0, _flag_b = 0; 3557 uint32_t _itail_tgt = 0; 3558 RECOMP_REGS_LOCALS 3559 RECOMP_ENTER(0x360E3A70u); 3560 3561 L_360E3A70: 3562 goto L_360E3A80; /* 0x360E3A70: jmp 0x360e3a80 */ 3563 L_360E3A80: 3564 MEM32(0x36306FA0) = 0x361B3064u; /* 0x360E3A80: mov dword ptr [0x36306fa0], 0x361b3064 */ 3565 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3A8A: ret */ 3566 RECOMP_REGS_OUT(); 3567 } 3568 3569 void sub_360E3A80(void) { 3570 int _fpu_cmp = 0; 3571 uint32_t _cf = 0; 3572 int _df = 1; 3573 uint32_t _flag_k = FK_NONE; 3574 uint32_t _flag_a = 0, _flag_b = 0; 3575 uint32_t _itail_tgt = 0; 3576 RECOMP_REGS_LOCALS 3577 RECOMP_ENTER(0x360E3A80u); 3578 3579 L_360E3A80: 3580 MEM32(0x36306FA0) = 0x361B3064u; /* 0x360E3A80: mov dword ptr [0x36306fa0], 0x361b3064 */ 3581 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3A8A: ret */ 3582 RECOMP_REGS_OUT(); 3583 } 3584 3585 void sub_360E3A90(void) { 3586 int _fpu_cmp = 0; 3587 uint32_t _cf = 0; 3588 int _df = 1; 3589 uint32_t _flag_k = FK_NONE; 3590 uint32_t _flag_a = 0, _flag_b = 0; 3591 uint32_t _itail_tgt = 0; 3592 RECOMP_REGS_LOCALS 3593 RECOMP_ENTER(0x360E3A90u); 3594 3595 L_360E3A90: 3596 goto L_360E3AA0; /* 0x360E3A90: jmp 0x360e3aa0 */ 3597 L_360E3AA0: 3598 MEM32(0x36306F9C) = 0x361B3098u; /* 0x360E3AA0: mov dword ptr [0x36306f9c], 0x361b3098 */ 3599 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3AAA: ret */ 3600 RECOMP_REGS_OUT(); 3601 } 3602 3603 void sub_360E3AA0(void) { 3604 int _fpu_cmp = 0; 3605 uint32_t _cf = 0; 3606 int _df = 1; 3607 uint32_t _flag_k = FK_NONE; 3608 uint32_t _flag_a = 0, _flag_b = 0; 3609 uint32_t _itail_tgt = 0; 3610 RECOMP_REGS_LOCALS 3611 RECOMP_ENTER(0x360E3AA0u); 3612 3613 L_360E3AA0: 3614 MEM32(0x36306F9C) = 0x361B3098u; /* 0x360E3AA0: mov dword ptr [0x36306f9c], 0x361b3098 */ 3615 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3AAA: ret */ 3616 RECOMP_REGS_OUT(); 3617 } 3618 3619 void sub_360E3AB0(void) { 3620 int _fpu_cmp = 0; 3621 uint32_t _cf = 0; 3622 int _df = 1; 3623 uint32_t _flag_k = FK_NONE; 3624 uint32_t _flag_a = 0, _flag_b = 0; 3625 uint32_t _itail_tgt = 0; 3626 RECOMP_REGS_LOCALS 3627 RECOMP_ENTER(0x360E3AB0u); 3628 3629 L_360E3AB0: 3630 goto L_360E3AC0; /* 0x360E3AB0: jmp 0x360e3ac0 */ 3631 L_360E3AC0: 3632 MEM32(0x36306F98) = 0x361B30CCu; /* 0x360E3AC0: mov dword ptr [0x36306f98], 0x361b30cc */ 3633 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3ACA: ret */ 3634 RECOMP_REGS_OUT(); 3635 } 3636 3637 void sub_360E3AC0(void) { 3638 int _fpu_cmp = 0; 3639 uint32_t _cf = 0; 3640 int _df = 1; 3641 uint32_t _flag_k = FK_NONE; 3642 uint32_t _flag_a = 0, _flag_b = 0; 3643 uint32_t _itail_tgt = 0; 3644 RECOMP_REGS_LOCALS 3645 RECOMP_ENTER(0x360E3AC0u); 3646 3647 L_360E3AC0: 3648 MEM32(0x36306F98) = 0x361B30CCu; /* 0x360E3AC0: mov dword ptr [0x36306f98], 0x361b30cc */ 3649 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3ACA: ret */ 3650 RECOMP_REGS_OUT(); 3651 } 3652 3653 void sub_360E3AD0(void) { 3654 int _fpu_cmp = 0; 3655 uint32_t _cf = 0; 3656 int _df = 1; 3657 uint32_t _flag_k = FK_NONE; 3658 uint32_t _flag_a = 0, _flag_b = 0; 3659 uint32_t _itail_tgt = 0; 3660 RECOMP_REGS_LOCALS 3661 RECOMP_ENTER(0x360E3AD0u); 3662 3663 L_360E3AD0: 3664 goto L_360E3AE0; /* 0x360E3AD0: jmp 0x360e3ae0 */ 3665 L_360E3AE0: 3666 MEM32(0x36306F94) = 0x361B3100u; /* 0x360E3AE0: mov dword ptr [0x36306f94], 0x361b3100 */ 3667 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3AEA: ret */ 3668 RECOMP_REGS_OUT(); 3669 } 3670 3671 void sub_360E3AE0(void) { 3672 int _fpu_cmp = 0; 3673 uint32_t _cf = 0; 3674 int _df = 1; 3675 uint32_t _flag_k = FK_NONE; 3676 uint32_t _flag_a = 0, _flag_b = 0; 3677 uint32_t _itail_tgt = 0; 3678 RECOMP_REGS_LOCALS 3679 RECOMP_ENTER(0x360E3AE0u); 3680 3681 L_360E3AE0: 3682 MEM32(0x36306F94) = 0x361B3100u; /* 0x360E3AE0: mov dword ptr [0x36306f94], 0x361b3100 */ 3683 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3AEA: ret */ 3684 RECOMP_REGS_OUT(); 3685 } 3686 3687 void sub_360E3AF0(void) { 3688 int _fpu_cmp = 0; 3689 uint32_t _cf = 0; 3690 int _df = 1; 3691 uint32_t _flag_k = FK_NONE; 3692 uint32_t _flag_a = 0, _flag_b = 0; 3693 uint32_t _itail_tgt = 0; 3694 RECOMP_REGS_LOCALS 3695 RECOMP_ENTER(0x360E3AF0u); 3696 3697 L_360E3AF0: 3698 goto L_360E3B00; /* 0x360E3AF0: jmp 0x360e3b00 */ 3699 L_360E3B00: 3700 MEM32(0x36306F90) = 0x361B3138u; /* 0x360E3B00: mov dword ptr [0x36306f90], 0x361b3138 */ 3701 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3B0A: ret */ 3702 RECOMP_REGS_OUT(); 3703 } 3704 3705 void sub_360E3B00(void) { 3706 int _fpu_cmp = 0; 3707 uint32_t _cf = 0; 3708 int _df = 1; 3709 uint32_t _flag_k = FK_NONE; 3710 uint32_t _flag_a = 0, _flag_b = 0; 3711 uint32_t _itail_tgt = 0; 3712 RECOMP_REGS_LOCALS 3713 RECOMP_ENTER(0x360E3B00u); 3714 3715 L_360E3B00: 3716 MEM32(0x36306F90) = 0x361B3138u; /* 0x360E3B00: mov dword ptr [0x36306f90], 0x361b3138 */ 3717 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3B0A: ret */ 3718 RECOMP_REGS_OUT(); 3719 } 3720 3721 void sub_360E3B10(void) { 3722 int _fpu_cmp = 0; 3723 uint32_t _cf = 0; 3724 int _df = 1; 3725 uint32_t _flag_k = FK_NONE; 3726 uint32_t _flag_a = 0, _flag_b = 0; 3727 uint32_t _itail_tgt = 0; 3728 RECOMP_REGS_LOCALS 3729 RECOMP_ENTER(0x360E3B10u); 3730 3731 L_360E3B10: 3732 goto L_360E3B20; /* 0x360E3B10: jmp 0x360e3b20 */ 3733 L_360E3B20: 3734 MEM32(0x36306F8C) = 0x361B57A8u; /* 0x360E3B20: mov dword ptr [0x36306f8c], 0x361b57a8 */ 3735 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3B2A: ret */ 3736 RECOMP_REGS_OUT(); 3737 } 3738 3739 void sub_360E3B20(void) { 3740 int _fpu_cmp = 0; 3741 uint32_t _cf = 0; 3742 int _df = 1; 3743 uint32_t _flag_k = FK_NONE; 3744 uint32_t _flag_a = 0, _flag_b = 0; 3745 uint32_t _itail_tgt = 0; 3746 RECOMP_REGS_LOCALS 3747 RECOMP_ENTER(0x360E3B20u); 3748 3749 L_360E3B20: 3750 MEM32(0x36306F8C) = 0x361B57A8u; /* 0x360E3B20: mov dword ptr [0x36306f8c], 0x361b57a8 */ 3751 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3B2A: ret */ 3752 RECOMP_REGS_OUT(); 3753 } 3754 3755 void sub_360E3B30(void) { 3756 int _fpu_cmp = 0; 3757 uint32_t _cf = 0; 3758 int _df = 1; 3759 uint32_t _flag_k = FK_NONE; 3760 uint32_t _flag_a = 0, _flag_b = 0; 3761 uint32_t _itail_tgt = 0; 3762 RECOMP_REGS_LOCALS 3763 RECOMP_ENTER(0x360E3B30u); 3764 3765 L_360E3B30: 3766 goto L_360E3B40; /* 0x360E3B30: jmp 0x360e3b40 */ 3767 L_360E3B40: 3768 MEM32(0x36306F88) = 0x361B57E0u; /* 0x360E3B40: mov dword ptr [0x36306f88], 0x361b57e0 */ 3769 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3B4A: ret */ 3770 RECOMP_REGS_OUT(); 3771 } 3772 3773 void sub_360E3B40(void) { 3774 int _fpu_cmp = 0; 3775 uint32_t _cf = 0; 3776 int _df = 1; 3777 uint32_t _flag_k = FK_NONE; 3778 uint32_t _flag_a = 0, _flag_b = 0; 3779 uint32_t _itail_tgt = 0; 3780 RECOMP_REGS_LOCALS 3781 RECOMP_ENTER(0x360E3B40u); 3782 3783 L_360E3B40: 3784 MEM32(0x36306F88) = 0x361B57E0u; /* 0x360E3B40: mov dword ptr [0x36306f88], 0x361b57e0 */ 3785 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3B4A: ret */ 3786 RECOMP_REGS_OUT(); 3787 } 3788 3789 void sub_360E3B50(void) { 3790 int _fpu_cmp = 0; 3791 uint32_t _cf = 0; 3792 int _df = 1; 3793 uint32_t _flag_k = FK_NONE; 3794 uint32_t _flag_a = 0, _flag_b = 0; 3795 uint32_t _itail_tgt = 0; 3796 RECOMP_REGS_LOCALS 3797 RECOMP_ENTER(0x360E3B50u); 3798 3799 L_360E3B50: 3800 goto L_360E3B60; /* 0x360E3B50: jmp 0x360e3b60 */ 3801 L_360E3B60: 3802 MEM32(0x36306F84) = 0x361B5814u; /* 0x360E3B60: mov dword ptr [0x36306f84], 0x361b5814 */ 3803 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3B6A: ret */ 3804 RECOMP_REGS_OUT(); 3805 } 3806 3807 void sub_360E3B60(void) { 3808 int _fpu_cmp = 0; 3809 uint32_t _cf = 0; 3810 int _df = 1; 3811 uint32_t _flag_k = FK_NONE; 3812 uint32_t _flag_a = 0, _flag_b = 0; 3813 uint32_t _itail_tgt = 0; 3814 RECOMP_REGS_LOCALS 3815 RECOMP_ENTER(0x360E3B60u); 3816 3817 L_360E3B60: 3818 MEM32(0x36306F84) = 0x361B5814u; /* 0x360E3B60: mov dword ptr [0x36306f84], 0x361b5814 */ 3819 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3B6A: ret */ 3820 RECOMP_REGS_OUT(); 3821 } 3822 3823 void sub_360E3B70(void) { 3824 int _fpu_cmp = 0; 3825 uint32_t _cf = 0; 3826 int _df = 1; 3827 uint32_t _flag_k = FK_NONE; 3828 uint32_t _flag_a = 0, _flag_b = 0; 3829 uint32_t _itail_tgt = 0; 3830 RECOMP_REGS_LOCALS 3831 RECOMP_ENTER(0x360E3B70u); 3832 3833 L_360E3B70: 3834 goto L_360E3B80; /* 0x360E3B70: jmp 0x360e3b80 */ 3835 L_360E3B80: 3836 MEM32(0x36306F80) = 0x361B5850u; /* 0x360E3B80: mov dword ptr [0x36306f80], 0x361b5850 */ 3837 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3B8A: ret */ 3838 RECOMP_REGS_OUT(); 3839 } 3840 3841 void sub_360E3B80(void) { 3842 int _fpu_cmp = 0; 3843 uint32_t _cf = 0; 3844 int _df = 1; 3845 uint32_t _flag_k = FK_NONE; 3846 uint32_t _flag_a = 0, _flag_b = 0; 3847 uint32_t _itail_tgt = 0; 3848 RECOMP_REGS_LOCALS 3849 RECOMP_ENTER(0x360E3B80u); 3850 3851 L_360E3B80: 3852 MEM32(0x36306F80) = 0x361B5850u; /* 0x360E3B80: mov dword ptr [0x36306f80], 0x361b5850 */ 3853 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3B8A: ret */ 3854 RECOMP_REGS_OUT(); 3855 } 3856 3857 void sub_360E3B90(void) { 3858 int _fpu_cmp = 0; 3859 uint32_t _cf = 0; 3860 int _df = 1; 3861 uint32_t _flag_k = FK_NONE; 3862 uint32_t _flag_a = 0, _flag_b = 0; 3863 uint32_t _itail_tgt = 0; 3864 RECOMP_REGS_LOCALS 3865 RECOMP_ENTER(0x360E3B90u); 3866 3867 L_360E3B90: 3868 goto L_360E3BA0; /* 0x360E3B90: jmp 0x360e3ba0 */ 3869 L_360E3BA0: 3870 MEM32(0x36306F7C) = 0x361B5888u; /* 0x360E3BA0: mov dword ptr [0x36306f7c], 0x361b5888 */ 3871 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3BAA: ret */ 3872 RECOMP_REGS_OUT(); 3873 } 3874 3875 void sub_360E3BA0(void) { 3876 int _fpu_cmp = 0; 3877 uint32_t _cf = 0; 3878 int _df = 1; 3879 uint32_t _flag_k = FK_NONE; 3880 uint32_t _flag_a = 0, _flag_b = 0; 3881 uint32_t _itail_tgt = 0; 3882 RECOMP_REGS_LOCALS 3883 RECOMP_ENTER(0x360E3BA0u); 3884 3885 L_360E3BA0: 3886 MEM32(0x36306F7C) = 0x361B5888u; /* 0x360E3BA0: mov dword ptr [0x36306f7c], 0x361b5888 */ 3887 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3BAA: ret */ 3888 RECOMP_REGS_OUT(); 3889 } 3890 3891 void sub_360E3BB0(void) { 3892 int _fpu_cmp = 0; 3893 uint32_t _cf = 0; 3894 int _df = 1; 3895 uint32_t _flag_k = FK_NONE; 3896 uint32_t _flag_a = 0, _flag_b = 0; 3897 uint32_t _itail_tgt = 0; 3898 RECOMP_REGS_LOCALS 3899 RECOMP_ENTER(0x360E3BB0u); 3900 3901 L_360E3BB0: 3902 goto L_360E3BC0; /* 0x360E3BB0: jmp 0x360e3bc0 */ 3903 L_360E3BC0: 3904 MEM32(0x36306F78) = 0x361B5908u; /* 0x360E3BC0: mov dword ptr [0x36306f78], 0x361b5908 */ 3905 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3BCA: ret */ 3906 RECOMP_REGS_OUT(); 3907 } 3908 3909 void sub_360E3BC0(void) { 3910 int _fpu_cmp = 0; 3911 uint32_t _cf = 0; 3912 int _df = 1; 3913 uint32_t _flag_k = FK_NONE; 3914 uint32_t _flag_a = 0, _flag_b = 0; 3915 uint32_t _itail_tgt = 0; 3916 RECOMP_REGS_LOCALS 3917 RECOMP_ENTER(0x360E3BC0u); 3918 3919 L_360E3BC0: 3920 MEM32(0x36306F78) = 0x361B5908u; /* 0x360E3BC0: mov dword ptr [0x36306f78], 0x361b5908 */ 3921 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3BCA: ret */ 3922 RECOMP_REGS_OUT(); 3923 } 3924 3925 void sub_360E3BD0(void) { 3926 int _fpu_cmp = 0; 3927 uint32_t _cf = 0; 3928 int _df = 1; 3929 uint32_t _flag_k = FK_NONE; 3930 uint32_t _flag_a = 0, _flag_b = 0; 3931 uint32_t _itail_tgt = 0; 3932 RECOMP_REGS_LOCALS 3933 RECOMP_ENTER(0x360E3BD0u); 3934 3935 L_360E3BD0: 3936 goto L_360E3BE0; /* 0x360E3BD0: jmp 0x360e3be0 */ 3937 L_360E3BE0: 3938 MEM32(0x36306F74) = 0x361B5944u; /* 0x360E3BE0: mov dword ptr [0x36306f74], 0x361b5944 */ 3939 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3BEA: ret */ 3940 RECOMP_REGS_OUT(); 3941 } 3942 3943 void sub_360E3BE0(void) { 3944 int _fpu_cmp = 0; 3945 uint32_t _cf = 0; 3946 int _df = 1; 3947 uint32_t _flag_k = FK_NONE; 3948 uint32_t _flag_a = 0, _flag_b = 0; 3949 uint32_t _itail_tgt = 0; 3950 RECOMP_REGS_LOCALS 3951 RECOMP_ENTER(0x360E3BE0u); 3952 3953 L_360E3BE0: 3954 MEM32(0x36306F74) = 0x361B5944u; /* 0x360E3BE0: mov dword ptr [0x36306f74], 0x361b5944 */ 3955 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3BEA: ret */ 3956 RECOMP_REGS_OUT(); 3957 } 3958 3959 void sub_360E3BF0(void) { 3960 int _fpu_cmp = 0; 3961 uint32_t _cf = 0; 3962 int _df = 1; 3963 uint32_t _flag_k = FK_NONE; 3964 uint32_t _flag_a = 0, _flag_b = 0; 3965 uint32_t _itail_tgt = 0; 3966 RECOMP_REGS_LOCALS 3967 RECOMP_ENTER(0x360E3BF0u); 3968 3969 L_360E3BF0: 3970 goto L_360E3C00; /* 0x360E3BF0: jmp 0x360e3c00 */ 3971 L_360E3C00: 3972 MEM32(0x36306F70) = 0x361B5978u; /* 0x360E3C00: mov dword ptr [0x36306f70], 0x361b5978 */ 3973 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3C0A: ret */ 3974 RECOMP_REGS_OUT(); 3975 } 3976 3977 void sub_360E3C00(void) { 3978 int _fpu_cmp = 0; 3979 uint32_t _cf = 0; 3980 int _df = 1; 3981 uint32_t _flag_k = FK_NONE; 3982 uint32_t _flag_a = 0, _flag_b = 0; 3983 uint32_t _itail_tgt = 0; 3984 RECOMP_REGS_LOCALS 3985 RECOMP_ENTER(0x360E3C00u); 3986 3987 L_360E3C00: 3988 MEM32(0x36306F70) = 0x361B5978u; /* 0x360E3C00: mov dword ptr [0x36306f70], 0x361b5978 */ 3989 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3C0A: ret */ 3990 RECOMP_REGS_OUT(); 3991 } 3992 3993 void sub_360E3C10(void) { 3994 int _fpu_cmp = 0; 3995 uint32_t _cf = 0; 3996 int _df = 1; 3997 uint32_t _flag_k = FK_NONE; 3998 uint32_t _flag_a = 0, _flag_b = 0; 3999 uint32_t _itail_tgt = 0; 4000 RECOMP_REGS_LOCALS 4001 RECOMP_ENTER(0x360E3C10u); 4002 4003 L_360E3C10: 4004 goto L_360E3C20; /* 0x360E3C10: jmp 0x360e3c20 */ 4005 L_360E3C20: 4006 MEM32(0x36306F6C) = 0x361B59ACu; /* 0x360E3C20: mov dword ptr [0x36306f6c], 0x361b59ac */ 4007 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3C2A: ret */ 4008 RECOMP_REGS_OUT(); 4009 } 4010 4011 void sub_360E3C20(void) { 4012 int _fpu_cmp = 0; 4013 uint32_t _cf = 0; 4014 int _df = 1; 4015 uint32_t _flag_k = FK_NONE; 4016 uint32_t _flag_a = 0, _flag_b = 0; 4017 uint32_t _itail_tgt = 0; 4018 RECOMP_REGS_LOCALS 4019 RECOMP_ENTER(0x360E3C20u); 4020 4021 L_360E3C20: 4022 MEM32(0x36306F6C) = 0x361B59ACu; /* 0x360E3C20: mov dword ptr [0x36306f6c], 0x361b59ac */ 4023 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3C2A: ret */ 4024 RECOMP_REGS_OUT(); 4025 } 4026 4027 void sub_360E3C30(void) { 4028 int _fpu_cmp = 0; 4029 uint32_t _cf = 0; 4030 int _df = 1; 4031 uint32_t _flag_k = FK_NONE; 4032 uint32_t _flag_a = 0, _flag_b = 0; 4033 uint32_t _itail_tgt = 0; 4034 RECOMP_REGS_LOCALS 4035 RECOMP_ENTER(0x360E3C30u); 4036 4037 L_360E3C30: 4038 PUSH32(esp, ebp); /* 0x360E3C30: push ebp */ 4039 ebp = esp; /* 0x360E3C31: mov ebp, esp */ 4040 PUSH32(esp, 0xFFFFFFFFu); /* 0x360E3C33: push -1 */ 4041 PUSH32(esp, 0x3616815Bu); /* 0x360E3C35: push 0x3616815b */ 4042 eax = MEM32(FS_BASE + (0)); /* 0x360E3C3A: mov eax, dword ptr fs:[0] */ 4043 PUSH32(esp, eax); /* 0x360E3C40: push eax */ 4044 MEM32(FS_BASE + (0)) = esp; /* 0x360E3C41: mov dword ptr fs:[0], esp */ 4045 PUSH32(esp, ecx); /* 0x360E3C48: push ecx */ 4046 PUSH32(esp, 0x1Cu); /* 0x360E3C49: push 0x1c */ 4047 RECOMP_ICALL(0x3615FD6Au); /* 0x360E3C4B: call 0x3615fd6a */ /* not lifted */ 4048 RECOMP_FLAGS_IN(); 4049 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4050 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4051 esp = esp + 4; /* 0x360E3C50: add esp, 4 */ 4052 _flag_k = FK_ADD; 4053 MEM32(ebp + (-0x10)) = eax; /* 0x360E3C53: mov dword ptr [ebp - 0x10], eax */ 4054 /* test eax, eax */ /* 0x360E3C56: test eax, eax */ 4055 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4056 _cf = 0; 4057 _flag_k = FK_TEST; 4058 MEM32(ebp + (-0x4)) = 0; /* 0x360E3C58: mov dword ptr [ebp - 4], 0 */ 4059 if (TEST_Z(_flag_a, _flag_b)) goto L_360E3C7E; /* 0x360E3C5F: je 0x360e3c7e */ 4060 L_360E3C61: 4061 ecx = MEM32(ebp + 0xC); /* 0x360E3C61: mov ecx, dword ptr [ebp + 0xc] */ 4062 edx = MEM32(ebp + 0x8); /* 0x360E3C64: mov edx, dword ptr [ebp + 8] */ 4063 PUSH32(esp, ecx); /* 0x360E3C67: push ecx */ 4064 PUSH32(esp, edx); /* 0x360E3C68: push edx */ 4065 ecx = eax; /* 0x360E3C69: mov ecx, eax */ 4066 RECOMP_ICALL(0x360E3EC0u); /* 0x360E3C6B: call 0x360e3ec0 */ /* not lifted */ 4067 RECOMP_FLAGS_IN(); 4068 ecx = MEM32(ebp + (-0xC)); /* 0x360E3C70: mov ecx, dword ptr [ebp - 0xc] */ 4069 MEM32(FS_BASE + (0)) = ecx; /* 0x360E3C73: mov dword ptr fs:[0], ecx */ 4070 esp = ebp; /* 0x360E3C7A: mov esp, ebp */ 4071 ebp = POP32_VAL(esp); /* 0x360E3C7C: pop ebp */ 4072 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3C7D: ret */ 4073 L_360E3C7E: 4074 ecx = MEM32(ebp + (-0xC)); /* 0x360E3C7E: mov ecx, dword ptr [ebp - 0xc] */ 4075 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4076 eax = 0; /* 0x360E3C81: xor eax, eax */ 4077 _cf = 0; 4078 _flag_k = FK_TEST; 4079 MEM32(FS_BASE + (0)) = ecx; /* 0x360E3C83: mov dword ptr fs:[0], ecx */ 4080 esp = ebp; /* 0x360E3C8A: mov esp, ebp */ 4081 ebp = POP32_VAL(esp); /* 0x360E3C8C: pop ebp */ 4082 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3C8D: ret */ 4083 RECOMP_REGS_OUT(); 4084 } 4085 4086 void sub_360E3C90(void) { 4087 int _fpu_cmp = 0; 4088 uint32_t _cf = 0; 4089 int _df = 1; 4090 uint32_t _flag_k = FK_NONE; 4091 uint32_t _flag_a = 0, _flag_b = 0; 4092 uint32_t _itail_tgt = 0; 4093 RECOMP_REGS_LOCALS 4094 RECOMP_ENTER(0x360E3C90u); 4095 4096 L_360E3C90: 4097 RECOMP_ICALL(0x360E3CA0u); /* 0x360E3C90: call 0x360e3ca0 */ /* not lifted */ 4098 RECOMP_FLAGS_IN(); 4099 goto L_360E3CC0; /* 0x360E3C95: jmp 0x360e3cc0 */ 4100 L_360E3CC0: 4101 PUSH32(esp, 0x360E3CD0u); /* 0x360E3CC0: push 0x360e3cd0 */ 4102 RECOMP_ICALL(0x3615FEB2u); /* 0x360E3CC5: call 0x3615feb2 */ /* not lifted */ 4103 RECOMP_FLAGS_IN(); 4104 ecx = POP32_VAL(esp); /* 0x360E3CCA: pop ecx */ 4105 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3CCB: ret */ 4106 RECOMP_REGS_OUT(); 4107 } 4108 4109 void sub_360E3CA0(void) { 4110 int _fpu_cmp = 0; 4111 uint32_t _cf = 0; 4112 int _df = 1; 4113 uint32_t _flag_k = FK_NONE; 4114 uint32_t _flag_a = 0, _flag_b = 0; 4115 uint32_t _itail_tgt = 0; 4116 RECOMP_REGS_LOCALS 4117 RECOMP_ENTER(0x360E3CA0u); 4118 4119 L_360E3CA0: 4120 PUSH32(esp, 0x360E3C30u); /* 0x360E3CA0: push 0x360e3c30 */ 4121 PUSH32(esp, 0xD6DBu); /* 0x360E3CA5: push 0xd6db */ 4122 RECOMP_ICALL(MEM32(0x3616FB08)); /* 0x360E3CAA: call dword ptr [0x3616fb08] */ 4123 RECOMP_FLAGS_IN(); 4124 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4125 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4126 esp = esp + 8; /* 0x360E3CB0: add esp, 8 */ 4127 _flag_k = FK_ADD; 4128 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3CB3: ret */ 4129 RECOMP_REGS_OUT(); 4130 } 4131 4132 void sub_360E3CC0(void) { 4133 int _fpu_cmp = 0; 4134 uint32_t _cf = 0; 4135 int _df = 1; 4136 uint32_t _flag_k = FK_NONE; 4137 uint32_t _flag_a = 0, _flag_b = 0; 4138 uint32_t _itail_tgt = 0; 4139 RECOMP_REGS_LOCALS 4140 RECOMP_ENTER(0x360E3CC0u); 4141 4142 L_360E3CC0: 4143 PUSH32(esp, 0x360E3CD0u); /* 0x360E3CC0: push 0x360e3cd0 */ 4144 RECOMP_ICALL(0x3615FEB2u); /* 0x360E3CC5: call 0x3615feb2 */ /* not lifted */ 4145 RECOMP_FLAGS_IN(); 4146 ecx = POP32_VAL(esp); /* 0x360E3CCA: pop ecx */ 4147 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3CCB: ret */ 4148 RECOMP_REGS_OUT(); 4149 } 4150 4151 void sub_360E3CD0(void) { 4152 int _fpu_cmp = 0; 4153 uint32_t _cf = 0; 4154 int _df = 1; 4155 uint32_t _flag_k = FK_NONE; 4156 uint32_t _flag_a = 0, _flag_b = 0; 4157 uint32_t _itail_tgt = 0; 4158 RECOMP_REGS_LOCALS 4159 RECOMP_ENTER(0x360E3CD0u); 4160 4161 L_360E3CD0: 4162 PUSH32(esp, 0xD6DBu); /* 0x360E3CD0: push 0xd6db */ 4163 RECOMP_ICALL(MEM32(0x3616FB0C)); /* 0x360E3CD5: call dword ptr [0x3616fb0c] */ 4164 RECOMP_FLAGS_IN(); 4165 ecx = POP32_VAL(esp); /* 0x360E3CDB: pop ecx */ 4166 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3CDC: ret */ 4167 RECOMP_REGS_OUT(); 4168 } 4169 4170 void sub_360E3CE0(void) { 4171 int _fpu_cmp = 0; 4172 uint32_t _cf = 0; 4173 int _df = 1; 4174 uint32_t _flag_k = FK_NONE; 4175 uint32_t _flag_a = 0, _flag_b = 0; 4176 uint32_t _itail_tgt = 0; 4177 RECOMP_REGS_LOCALS 4178 RECOMP_ENTER(0x360E3CE0u); 4179 4180 L_360E3CE0: 4181 RECOMP_ICALL(0x360E3CF0u); /* 0x360E3CE0: call 0x360e3cf0 */ /* not lifted */ 4182 RECOMP_FLAGS_IN(); 4183 goto L_360E3D40; /* 0x360E3CE5: jmp 0x360e3d40 */ 4184 L_360E3D40: 4185 PUSH32(esp, 0x360E3D50u); /* 0x360E3D40: push 0x360e3d50 */ 4186 RECOMP_ICALL(0x3615FEB2u); /* 0x360E3D45: call 0x3615feb2 */ /* not lifted */ 4187 RECOMP_FLAGS_IN(); 4188 ecx = POP32_VAL(esp); /* 0x360E3D4A: pop ecx */ 4189 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3D4B: ret */ 4190 RECOMP_REGS_OUT(); 4191 } 4192 4193 void sub_360E3CF0(void) { 4194 int _fpu_cmp = 0; 4195 uint32_t _cf = 0; 4196 int _df = 1; 4197 uint32_t _flag_k = FK_NONE; 4198 uint32_t _flag_a = 0, _flag_b = 0; 4199 uint32_t _itail_tgt = 0; 4200 RECOMP_REGS_LOCALS 4201 RECOMP_ENTER(0x360E3CF0u); 4202 4203 L_360E3CF0: 4204 PUSH32(esp, ebp); /* 0x360E3CF0: push ebp */ 4205 ebp = esp; /* 0x360E3CF1: mov ebp, esp */ 4206 PUSH32(esp, ecx); /* 0x360E3CF3: push ecx */ 4207 SET_LO8(eax, MEM8(ebp + (-0x1))); /* 0x360E3CF4: mov al, byte ptr [ebp - 1] */ 4208 PUSH32(esp, 0x18u); /* 0x360E3CF7: push 0x18 */ 4209 MEM8(0x36306F58) = (uint8_t)(LO8(eax)); /* 0x360E3CF9: mov byte ptr [0x36306f58], al */ 4210 RECOMP_ICALL(0x3615FD6Au); /* 0x360E3CFE: call 0x3615fd6a */ /* not lifted */ 4211 RECOMP_FLAGS_IN(); 4212 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4213 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4214 esp = esp + 4; /* 0x360E3D03: add esp, 4 */ 4215 _flag_k = FK_ADD; 4216 MEM32(0x36306F5C) = eax; /* 0x360E3D06: mov dword ptr [0x36306f5c], eax */ 4217 ecx = 6; /* 0x360E3D0B: mov ecx, 6 */ 4218 L_360E3D10: 4219 /* test eax, eax */ /* 0x360E3D10: test eax, eax */ 4220 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4221 _cf = 0; 4222 _flag_k = FK_TEST; 4223 if (TEST_Z(_flag_a, _flag_b)) goto L_360E3D1A; /* 0x360E3D12: je 0x360e3d1a */ 4224 L_360E3D14: 4225 MEM32(eax) = 0; /* 0x360E3D14: mov dword ptr [eax], 0 */ 4226 L_360E3D1A: 4227 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 4228 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4229 eax = eax + 4; /* 0x360E3D1A: add eax, 4 */ 4230 _flag_k = FK_ADD; 4231 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4232 ecx = ecx - 1; /* 0x360E3D1D: dec ecx */ 4233 _flag_k = FK_DEC; 4234 RECOMP_BACKEDGE(); 4235 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_360E3D10; /* 0x360E3D1E: jne 0x360e3d10 */ 4236 L_360E3D20: 4237 ecx = MEM32(0x36306F5C); /* 0x360E3D20: mov ecx, dword ptr [0x36306f5c] */ 4238 eax = ecx + 0x18; /* 0x360E3D26: lea eax, [ecx + 0x18] */ 4239 MEM32(0x36306F60) = eax; /* 0x360E3D29: mov dword ptr [0x36306f60], eax */ 4240 MEM32(0x36306F64) = eax; /* 0x360E3D2E: mov dword ptr [0x36306f64], eax */ 4241 esp = ebp; /* 0x360E3D33: mov esp, ebp */ 4242 ebp = POP32_VAL(esp); /* 0x360E3D35: pop ebp */ 4243 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3D36: ret */ 4244 RECOMP_REGS_OUT(); 4245 } 4246 4247 void sub_360E3D40(void) { 4248 int _fpu_cmp = 0; 4249 uint32_t _cf = 0; 4250 int _df = 1; 4251 uint32_t _flag_k = FK_NONE; 4252 uint32_t _flag_a = 0, _flag_b = 0; 4253 uint32_t _itail_tgt = 0; 4254 RECOMP_REGS_LOCALS 4255 RECOMP_ENTER(0x360E3D40u); 4256 4257 L_360E3D40: 4258 PUSH32(esp, 0x360E3D50u); /* 0x360E3D40: push 0x360e3d50 */ 4259 RECOMP_ICALL(0x3615FEB2u); /* 0x360E3D45: call 0x3615feb2 */ /* not lifted */ 4260 RECOMP_FLAGS_IN(); 4261 ecx = POP32_VAL(esp); /* 0x360E3D4A: pop ecx */ 4262 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3D4B: ret */ 4263 RECOMP_REGS_OUT(); 4264 } 4265 4266 void sub_360E3D50(void) { 4267 int _fpu_cmp = 0; 4268 uint32_t _cf = 0; 4269 int _df = 1; 4270 uint32_t _flag_k = FK_NONE; 4271 uint32_t _flag_a = 0, _flag_b = 0; 4272 uint32_t _itail_tgt = 0; 4273 RECOMP_REGS_LOCALS 4274 RECOMP_ENTER(0x360E3D50u); 4275 4276 L_360E3D50: 4277 PUSH32(esp, ebp); /* 0x360E3D50: push ebp */ 4278 ebp = esp; /* 0x360E3D51: mov ebp, esp */ 4279 PUSH32(esp, ecx); /* 0x360E3D53: push ecx */ 4280 SET_LO8(ecx, MEM8(0x36306F50)); /* 0x360E3D54: mov cl, byte ptr [0x36306f50] */ 4281 SET_LO8(eax, 1); /* 0x360E3D5A: mov al, 1 */ 4282 /* test LO8(eax), LO8(ecx) */ /* 0x360E3D5C: test al, cl */ 4283 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 4284 _cf = 0; 4285 _flag_k = FK_NARROW(FK_TEST, 24); 4286 if (TEST_NZ(_flag_a, _flag_b)) goto L_360E3D8C; /* 0x360E3D5E: jne 0x360e3d8c */ 4287 L_360E3D60: 4288 SET_LO8(edx, LO8(ecx)); /* 0x360E3D60: mov dl, cl */ 4289 _flag_a = (uint32_t)((LO8(edx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(edx) | LO8(eax))) << 24; 4290 SET_LO8(edx, LO8(edx) | LO8(eax)); /* 0x360E3D62: or dl, al */ 4291 _cf = 0; 4292 _flag_k = FK_NARROW(FK_TEST, 24); 4293 eax = MEM32(0x36306F5C); /* 0x360E3D64: mov eax, dword ptr [0x36306f5c] */ 4294 PUSH32(esp, eax); /* 0x360E3D69: push eax */ 4295 MEM8(0x36306F50) = (uint8_t)(LO8(edx)); /* 0x360E3D6A: mov byte ptr [0x36306f50], dl */ 4296 MEM32(ebp + (-0x4)) = eax; /* 0x360E3D70: mov dword ptr [ebp - 4], eax */ 4297 RECOMP_ICALL(0x3615FCC4u); /* 0x360E3D73: call 0x3615fcc4 */ /* not lifted */ 4298 RECOMP_FLAGS_IN(); 4299 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4300 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4301 esp = esp + 4; /* 0x360E3D78: add esp, 4 */ 4302 _flag_k = FK_ADD; 4303 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4304 eax = 0; /* 0x360E3D7B: xor eax, eax */ 4305 _cf = 0; 4306 _flag_k = FK_TEST; 4307 MEM32(0x36306F5C) = eax; /* 0x360E3D7D: mov dword ptr [0x36306f5c], eax */ 4308 MEM32(0x36306F60) = eax; /* 0x360E3D82: mov dword ptr [0x36306f60], eax */ 4309 MEM32(0x36306F64) = eax; /* 0x360E3D87: mov dword ptr [0x36306f64], eax */ 4310 L_360E3D8C: 4311 esp = ebp; /* 0x360E3D8C: mov esp, ebp */ 4312 ebp = POP32_VAL(esp); /* 0x360E3D8E: pop ebp */ 4313 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E3D8F: ret */ 4314 RECOMP_REGS_OUT(); 4315 } 4316 4317 void sub_360E3D90(void) { 4318 int _fpu_cmp = 0; 4319 uint32_t _cf = 0; 4320 int _df = 1; 4321 uint32_t _flag_k = FK_NONE; 4322 uint32_t _flag_a = 0, _flag_b = 0; 4323 uint32_t _itail_tgt = 0; 4324 RECOMP_REGS_LOCALS 4325 RECOMP_ENTER(0x360E3D90u); 4326 4327 L_360E3D90: 4328 PUSH32(esp, ebp); /* 0x360E3D90: push ebp */ 4329 ebp = esp; /* 0x360E3D91: mov ebp, esp */ 4330 PUSH32(esp, 0xFFFFFFFFu); /* 0x360E3D93: push -1 */ 4331 PUSH32(esp, 0x36168184u); /* 0x360E3D95: push 0x36168184 */ 4332 eax = MEM32(FS_BASE + (0)); /* 0x360E3D9A: mov eax, dword ptr fs:[0] */ 4333 PUSH32(esp, eax); /* 0x360E3DA0: push eax */ 4334 MEM32(FS_BASE + (0)) = esp; /* 0x360E3DA1: mov dword ptr fs:[0], esp */ 4335 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4336 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4337 esp = esp - 8; /* 0x360E3DA8: sub esp, 8 */ 4338 _flag_k = FK_CMP; 4339 PUSH32(esp, ebx); /* 0x360E3DAB: push ebx */ 4340 PUSH32(esp, esi); /* 0x360E3DAC: push esi */ 4341 PUSH32(esp, edi); /* 0x360E3DAD: push edi */ 4342 edi = ecx; /* 0x360E3DAE: mov edi, ecx */ 4343 ecx = MEM32(ebp + 0x8); /* 0x360E3DB0: mov ecx, dword ptr [ebp + 8] */ 4344 eax = edi + 0x4; /* 0x360E3DB3: lea eax, [edi + 4] */ 4345 /* cmp eax, ecx */ /* 0x360E3DB6: cmp eax, ecx */ 4346 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4347 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4348 _flag_k = FK_CMP; 4349 MEM32(ebp + (-0x10)) = edi; /* 0x360E3DB8: mov dword ptr [ebp - 0x10], edi */ 4350 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E3DC7; /* 0x360E3DBB: je 0x360e3dc7 */ 4351 L_360E3DBD: 4352 edx = MEM32(ecx); /* 0x360E3DBD: mov edx, dword ptr [ecx] */ 4353 MEM32(eax) = edx; /* 0x360E3DBF: mov dword ptr [eax], edx */ 4354 ecx = MEM32(ecx + 0x4); /* 0x360E3DC1: mov ecx, dword ptr [ecx + 4] */ 4355 MEM32(eax + 0x4) = ecx; /* 0x360E3DC4: mov dword ptr [eax + 4], ecx */ 4356 L_360E3DC7: 4357 eax = 1; /* 0x360E3DC7: mov eax, 1 */ 4358 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4359 ebx = 0; /* 0x360E3DCC: xor ebx, ebx */ 4360 _cf = 0; 4361 _flag_k = FK_TEST; 4362 MEM32(edi + 0xC) = eax; /* 0x360E3DCE: mov dword ptr [edi + 0xc], eax */ 4363 MEM32(edi + 0x10) = eax; /* 0x360E3DD1: mov dword ptr [edi + 0x10], eax */ 4364 MEM8(edi + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360E3DD4: mov byte ptr [edi + 0x14], bl */ 4365 MEM8(edi + 0x15) = (uint8_t)(LO8(eax)); /* 0x360E3DD7: mov byte ptr [edi + 0x15], al */ 4366 PUSH32(esp, 0x400u); /* 0x360E3DDA: push 0x400 */ 4367 MEM32(ebp + (-0x4)) = ebx; /* 0x360E3DDF: mov dword ptr [ebp - 4], ebx */ 4368 MEM32(edi) = 0x3617513Cu; /* 0x360E3DE2: mov dword ptr [edi], 0x3617513c */ 4369 RECOMP_ICALL(0x360EF780u); /* 0x360E3DE8: call 0x360ef780 */ /* not lifted */ 4370 RECOMP_FLAGS_IN(); 4371 ecx = eax; /* 0x360E3DED: mov ecx, eax */ 4372 RECOMP_ICALL(0x360EFCF0u); /* 0x360E3DEF: call 0x360efcf0 */ /* not lifted */ 4373 RECOMP_FLAGS_IN(); 4374 PUSH32(esp, 0x14u); /* 0x360E3DF4: push 0x14 */ 4375 RECOMP_ICALL(0x3615FD6Au); /* 0x360E3DF6: call 0x3615fd6a */ /* not lifted */ 4376 RECOMP_FLAGS_IN(); 4377 esi = eax; /* 0x360E3DFB: mov esi, eax */ 4378 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4379 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4380 esp = esp + 4; /* 0x360E3DFD: add esp, 4 */ 4381 _flag_k = FK_ADD; 4382 MEM32(ebp + (-0x14)) = esi; /* 0x360E3E00: mov dword ptr [ebp - 0x14], esi */ 4383 /* cmp esi, ebx */ /* 0x360E3E03: cmp esi, ebx */ 4384 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 4385 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4386 _flag_k = FK_CMP; 4387 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x360E3E05: mov byte ptr [ebp - 4], 1 */ 4388 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E3E6B; /* 0x360E3E09: je 0x360e3e6b */ 4389 L_360E3E0B: 4390 SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x360E3E0B: mov dl, byte ptr [ebp + 0xb] */ 4391 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x360E3E0E: mov al, byte ptr [ebp + 0xb] */ 4392 PUSH32(esp, 0x18u); /* 0x360E3E11: push 0x18 */ 4393 MEM8(esi) = (uint8_t)(LO8(edx)); /* 0x360E3E13: mov byte ptr [esi], dl */ 4394 MEM8(esi + 0x1) = (uint8_t)(LO8(eax)); /* 0x360E3E15: mov byte ptr [esi + 1], al */ 4395 MEM8(esi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x360E3E18: mov byte ptr [esi + 0xc], bl */ 4396 RECOMP_ICALL(0x3615FD6Au); /* 0x360E3E1B: call 0x3615fd6a */ /* not lifted */ 4397 RECOMP_FLAGS_IN(); 4398 MEM32(eax + 0x4) = ebx; /* 0x360E3E20: mov dword ptr [eax + 4], ebx */ 4399 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x360E3E23: mov byte ptr [eax + 0x14], 1 */ 4400 MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x360E3E27: mov byte ptr [eax + 0x15], bl */ 4401 MEM32(esi + 0x8) = eax; /* 0x360E3E2A: mov dword ptr [esi + 8], eax */ 4402 MEM8(eax + 0x15) = (uint8_t)(1); /* 0x360E3E2D: mov byte ptr [eax + 0x15], 1 */ 4403 ecx = MEM32(esi + 0x8); /* 0x360E3E31: mov ecx, dword ptr [esi + 8] */ 4404 MEM32(ecx) = ebx; /* 0x360E3E34: mov dword ptr [ecx], ebx */ 4405 edx = MEM32(esi + 0x8); /* 0x360E3E36: mov edx, dword ptr [esi + 8] */ 4406 MEM32(edx + 0x8) = ebx; /* 0x360E3E39: mov dword ptr [edx + 8], ebx */ 4407 eax = MEM32(esi + 0x8); /* 0x360E3E3C: mov eax, dword ptr [esi + 8] */ 4408 PUSH32(esp, 0x18u); /* 0x360E3E3F: push 0x18 */ 4409 MEM32(ebp + 0x8) = eax; /* 0x360E3E41: mov dword ptr [ebp + 8], eax */ 4410 RECOMP_ICALL(0x3615FD6Au); /* 0x360E3E44: call 0x3615fd6a */ /* not lifted */ 4411 RECOMP_FLAGS_IN(); 4412 ecx = MEM32(ebp + 0x8); /* 0x360E3E49: mov ecx, dword ptr [ebp + 8] */ 4413 MEM32(eax + 0x4) = ecx; /* 0x360E3E4C: mov dword ptr [eax + 4], ecx */ 4414 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360E3E4F: mov byte ptr [eax + 0x14], bl */ 4415 MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x360E3E52: mov byte ptr [eax + 0x15], bl */ 4416 MEM32(esi + 0x4) = eax; /* 0x360E3E55: mov dword ptr [esi + 4], eax */ 4417 MEM32(eax) = eax; /* 0x360E3E58: mov dword ptr [eax], eax */ 4418 eax = MEM32(esi + 0x4); /* 0x360E3E5A: mov eax, dword ptr [esi + 4] */ 4419 MEM32(eax + 0x8) = eax; /* 0x360E3E5D: mov dword ptr [eax + 8], eax */ 4420 MEM32(esi + 0x10) = ebx; /* 0x360E3E60: mov dword ptr [esi + 0x10], ebx */ 4421 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4422 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4423 esp = esp + 8; /* 0x360E3E63: add esp, 8 */ 4424 _flag_k = FK_ADD; 4425 MEM32(edi + 0x18) = esi; /* 0x360E3E66: mov dword ptr [edi + 0x18], esi */ 4426 goto L_360E3E6E; /* 0x360E3E69: jmp 0x360e3e6e */ 4427 L_360E3E6B: 4428 MEM32(edi + 0x18) = ebx; /* 0x360E3E6B: mov dword ptr [edi + 0x18], ebx */ 4429 L_360E3E6E: 4430 ecx = MEM32(ebp + (-0xC)); /* 0x360E3E6E: mov ecx, dword ptr [ebp - 0xc] */ 4431 eax = edi; /* 0x360E3E71: mov eax, edi */ 4432 edi = POP32_VAL(esp); /* 0x360E3E73: pop edi */ 4433 esi = POP32_VAL(esp); /* 0x360E3E74: pop esi */ 4434 ebx = POP32_VAL(esp); /* 0x360E3E75: pop ebx */ 4435 MEM32(FS_BASE + (0)) = ecx; /* 0x360E3E76: mov dword ptr fs:[0], ecx */ 4436 esp = ebp; /* 0x360E3E7D: mov esp, ebp */ 4437 ebp = POP32_VAL(esp); /* 0x360E3E7F: pop ebp */ 4438 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360E3E80: ret 4 */ 4439 RECOMP_REGS_OUT(); 4440 } 4441 4442 void sub_360E3E90(void) { 4443 int _fpu_cmp = 0; 4444 uint32_t _cf = 0; 4445 int _df = 1; 4446 uint32_t _flag_k = FK_NONE; 4447 uint32_t _flag_a = 0, _flag_b = 0; 4448 uint32_t _itail_tgt = 0; 4449 RECOMP_REGS_LOCALS 4450 RECOMP_ENTER(0x360E3E90u); 4451 4452 L_360E3E90: 4453 PUSH32(esp, ebp); /* 0x360E3E90: push ebp */ 4454 ebp = esp; /* 0x360E3E91: mov ebp, esp */ 4455 PUSH32(esp, esi); /* 0x360E3E93: push esi */ 4456 esi = ecx; /* 0x360E3E94: mov esi, ecx */ 4457 RECOMP_ICALL(0x360E3FB0u); /* 0x360E3E96: call 0x360e3fb0 */ /* not lifted */ 4458 RECOMP_FLAGS_IN(); 4459 /* test MEM8(ebp + 0x8), 1 */ /* 0x360E3E9B: test byte ptr [ebp + 8], 1 */ 4460 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 4461 _cf = 0; 4462 _flag_k = FK_NARROW(FK_TEST, 24); 4463 if (TEST_Z(_flag_a, _flag_b)) goto L_360E3EAA; /* 0x360E3E9F: je 0x360e3eaa */ 4464 L_360E3EA1: 4465 PUSH32(esp, esi); /* 0x360E3EA1: push esi */ 4466 RECOMP_ICALL(0x3615FCC4u); /* 0x360E3EA2: call 0x3615fcc4 */ /* not lifted */ 4467 RECOMP_FLAGS_IN(); 4468 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4469 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4470 esp = esp + 4; /* 0x360E3EA7: add esp, 4 */ 4471 _flag_k = FK_ADD; 4472 L_360E3EAA: 4473 eax = esi; /* 0x360E3EAA: mov eax, esi */ 4474 esi = POP32_VAL(esp); /* 0x360E3EAC: pop esi */ 4475 ebp = POP32_VAL(esp); /* 0x360E3EAD: pop ebp */ 4476 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360E3EAE: ret 4 */ 4477 RECOMP_REGS_OUT(); 4478 } 4479 4480 void sub_360E3EC0(void) { 4481 int _fpu_cmp = 0; 4482 uint32_t _cf = 0; 4483 int _df = 1; 4484 uint32_t _flag_k = FK_NONE; 4485 uint32_t _flag_a = 0, _flag_b = 0; 4486 uint32_t _itail_tgt = 0; 4487 RECOMP_REGS_LOCALS 4488 RECOMP_ENTER(0x360E3EC0u); 4489 4490 L_360E3EC0: 4491 PUSH32(esp, ebp); /* 0x360E3EC0: push ebp */ 4492 ebp = esp; /* 0x360E3EC1: mov ebp, esp */ 4493 PUSH32(esp, 0xFFFFFFFFu); /* 0x360E3EC3: push -1 */ 4494 PUSH32(esp, 0x361681A4u); /* 0x360E3EC5: push 0x361681a4 */ 4495 eax = MEM32(FS_BASE + (0)); /* 0x360E3ECA: mov eax, dword ptr fs:[0] */ 4496 PUSH32(esp, eax); /* 0x360E3ED0: push eax */ 4497 MEM32(FS_BASE + (0)) = esp; /* 0x360E3ED1: mov dword ptr fs:[0], esp */ 4498 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4499 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4500 esp = esp - 8; /* 0x360E3ED8: sub esp, 8 */ 4501 _flag_k = FK_CMP; 4502 eax = MEM32(ebp + 0xC); /* 0x360E3EDB: mov eax, dword ptr [ebp + 0xc] */ 4503 PUSH32(esp, ebx); /* 0x360E3EDE: push ebx */ 4504 PUSH32(esp, esi); /* 0x360E3EDF: push esi */ 4505 PUSH32(esp, edi); /* 0x360E3EE0: push edi */ 4506 edi = ecx; /* 0x360E3EE1: mov edi, ecx */ 4507 MEM32(edi + 0x8) = eax; /* 0x360E3EE3: mov dword ptr [edi + 8], eax */ 4508 MEM32(edi + 0x4) = 0xD6DBu; /* 0x360E3EE6: mov dword ptr [edi + 4], 0xd6db */ 4509 eax = 1; /* 0x360E3EED: mov eax, 1 */ 4510 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4511 ebx = 0; /* 0x360E3EF2: xor ebx, ebx */ 4512 _cf = 0; 4513 _flag_k = FK_TEST; 4514 MEM32(ebp + (-0x10)) = edi; /* 0x360E3EF4: mov dword ptr [ebp - 0x10], edi */ 4515 MEM32(edi + 0xC) = eax; /* 0x360E3EF7: mov dword ptr [edi + 0xc], eax */ 4516 MEM32(edi + 0x10) = eax; /* 0x360E3EFA: mov dword ptr [edi + 0x10], eax */ 4517 MEM8(edi + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360E3EFD: mov byte ptr [edi + 0x14], bl */ 4518 MEM8(edi + 0x15) = (uint8_t)(LO8(eax)); /* 0x360E3F00: mov byte ptr [edi + 0x15], al */ 4519 PUSH32(esp, 0x400u); /* 0x360E3F03: push 0x400 */ 4520 MEM32(ebp + (-0x4)) = ebx; /* 0x360E3F08: mov dword ptr [ebp - 4], ebx */ 4521 MEM32(edi) = 0x3617513Cu; /* 0x360E3F0B: mov dword ptr [edi], 0x3617513c */ 4522 RECOMP_ICALL(0x360EF780u); /* 0x360E3F11: call 0x360ef780 */ /* not lifted */ 4523 RECOMP_FLAGS_IN(); 4524 ecx = eax; /* 0x360E3F16: mov ecx, eax */ 4525 RECOMP_ICALL(0x360EFCF0u); /* 0x360E3F18: call 0x360efcf0 */ /* not lifted */ 4526 RECOMP_FLAGS_IN(); 4527 PUSH32(esp, 0x14u); /* 0x360E3F1D: push 0x14 */ 4528 RECOMP_ICALL(0x3615FD6Au); /* 0x360E3F1F: call 0x3615fd6a */ /* not lifted */ 4529 RECOMP_FLAGS_IN(); 4530 esi = eax; /* 0x360E3F24: mov esi, eax */ 4531 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4532 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4533 esp = esp + 4; /* 0x360E3F26: add esp, 4 */ 4534 _flag_k = FK_ADD; 4535 MEM32(ebp + (-0x14)) = esi; /* 0x360E3F29: mov dword ptr [ebp - 0x14], esi */ 4536 /* cmp esi, ebx */ /* 0x360E3F2C: cmp esi, ebx */ 4537 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 4538 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4539 _flag_k = FK_CMP; 4540 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x360E3F2E: mov byte ptr [ebp - 4], 1 */ 4541 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E3F94; /* 0x360E3F32: je 0x360e3f94 */ 4542 L_360E3F34: 4543 SET_LO8(ecx, MEM8(ebp + 0xF)); /* 0x360E3F34: mov cl, byte ptr [ebp + 0xf] */ 4544 SET_LO8(edx, MEM8(ebp + 0xF)); /* 0x360E3F37: mov dl, byte ptr [ebp + 0xf] */ 4545 PUSH32(esp, 0x18u); /* 0x360E3F3A: push 0x18 */ 4546 MEM8(esi) = (uint8_t)(LO8(ecx)); /* 0x360E3F3C: mov byte ptr [esi], cl */ 4547 MEM8(esi + 0x1) = (uint8_t)(LO8(edx)); /* 0x360E3F3E: mov byte ptr [esi + 1], dl */ 4548 MEM8(esi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x360E3F41: mov byte ptr [esi + 0xc], bl */ 4549 RECOMP_ICALL(0x3615FD6Au); /* 0x360E3F44: call 0x3615fd6a */ /* not lifted */ 4550 RECOMP_FLAGS_IN(); 4551 MEM32(eax + 0x4) = ebx; /* 0x360E3F49: mov dword ptr [eax + 4], ebx */ 4552 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x360E3F4C: mov byte ptr [eax + 0x14], 1 */ 4553 MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x360E3F50: mov byte ptr [eax + 0x15], bl */ 4554 MEM32(esi + 0x8) = eax; /* 0x360E3F53: mov dword ptr [esi + 8], eax */ 4555 MEM8(eax + 0x15) = (uint8_t)(1); /* 0x360E3F56: mov byte ptr [eax + 0x15], 1 */ 4556 eax = MEM32(esi + 0x8); /* 0x360E3F5A: mov eax, dword ptr [esi + 8] */ 4557 MEM32(eax) = ebx; /* 0x360E3F5D: mov dword ptr [eax], ebx */ 4558 ecx = MEM32(esi + 0x8); /* 0x360E3F5F: mov ecx, dword ptr [esi + 8] */ 4559 MEM32(ecx + 0x8) = ebx; /* 0x360E3F62: mov dword ptr [ecx + 8], ebx */ 4560 edx = MEM32(esi + 0x8); /* 0x360E3F65: mov edx, dword ptr [esi + 8] */ 4561 PUSH32(esp, 0x18u); /* 0x360E3F68: push 0x18 */ 4562 MEM32(ebp + 0xC) = edx; /* 0x360E3F6A: mov dword ptr [ebp + 0xc], edx */ 4563 RECOMP_ICALL(0x3615FD6Au); /* 0x360E3F6D: call 0x3615fd6a */ /* not lifted */ 4564 RECOMP_FLAGS_IN(); 4565 ecx = MEM32(ebp + 0xC); /* 0x360E3F72: mov ecx, dword ptr [ebp + 0xc] */ 4566 MEM32(eax + 0x4) = ecx; /* 0x360E3F75: mov dword ptr [eax + 4], ecx */ 4567 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360E3F78: mov byte ptr [eax + 0x14], bl */ 4568 MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x360E3F7B: mov byte ptr [eax + 0x15], bl */ 4569 MEM32(esi + 0x4) = eax; /* 0x360E3F7E: mov dword ptr [esi + 4], eax */ 4570 MEM32(eax) = eax; /* 0x360E3F81: mov dword ptr [eax], eax */ 4571 eax = MEM32(esi + 0x4); /* 0x360E3F83: mov eax, dword ptr [esi + 4] */ 4572 MEM32(eax + 0x8) = eax; /* 0x360E3F86: mov dword ptr [eax + 8], eax */ 4573 MEM32(esi + 0x10) = ebx; /* 0x360E3F89: mov dword ptr [esi + 0x10], ebx */ 4574 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4575 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4576 esp = esp + 8; /* 0x360E3F8C: add esp, 8 */ 4577 _flag_k = FK_ADD; 4578 MEM32(edi + 0x18) = esi; /* 0x360E3F8F: mov dword ptr [edi + 0x18], esi */ 4579 goto L_360E3F97; /* 0x360E3F92: jmp 0x360e3f97 */ 4580 L_360E3F94: 4581 MEM32(edi + 0x18) = ebx; /* 0x360E3F94: mov dword ptr [edi + 0x18], ebx */ 4582 L_360E3F97: 4583 ecx = MEM32(ebp + (-0xC)); /* 0x360E3F97: mov ecx, dword ptr [ebp - 0xc] */ 4584 eax = edi; /* 0x360E3F9A: mov eax, edi */ 4585 edi = POP32_VAL(esp); /* 0x360E3F9C: pop edi */ 4586 esi = POP32_VAL(esp); /* 0x360E3F9D: pop esi */ 4587 ebx = POP32_VAL(esp); /* 0x360E3F9E: pop ebx */ 4588 MEM32(FS_BASE + (0)) = ecx; /* 0x360E3F9F: mov dword ptr fs:[0], ecx */ 4589 esp = ebp; /* 0x360E3FA6: mov esp, ebp */ 4590 ebp = POP32_VAL(esp); /* 0x360E3FA8: pop ebp */ 4591 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360E3FA9: ret 8 */ 4592 RECOMP_REGS_OUT(); 4593 } 4594 4595 void sub_360E3FB0(void) { 4596 int _fpu_cmp = 0; 4597 uint32_t _cf = 0; 4598 int _df = 1; 4599 uint32_t _flag_k = FK_NONE; 4600 uint32_t _flag_a = 0, _flag_b = 0; 4601 uint32_t _itail_tgt = 0; 4602 RECOMP_REGS_LOCALS 4603 RECOMP_ENTER(0x360E3FB0u); 4604 4605 L_360E3FB0: 4606 PUSH32(esp, ebp); /* 0x360E3FB0: push ebp */ 4607 ebp = esp; /* 0x360E3FB1: mov ebp, esp */ 4608 PUSH32(esp, 0xFFFFFFFFu); /* 0x360E3FB3: push -1 */ 4609 PUSH32(esp, 0x361681B9u); /* 0x360E3FB5: push 0x361681b9 */ 4610 eax = MEM32(FS_BASE + (0)); /* 0x360E3FBA: mov eax, dword ptr fs:[0] */ 4611 PUSH32(esp, eax); /* 0x360E3FC0: push eax */ 4612 MEM32(FS_BASE + (0)) = esp; /* 0x360E3FC1: mov dword ptr fs:[0], esp */ 4613 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4614 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4615 esp = esp - 0xCu; /* 0x360E3FC8: sub esp, 0xc */ 4616 _flag_k = FK_CMP; 4617 PUSH32(esp, ebx); /* 0x360E3FCB: push ebx */ 4618 PUSH32(esp, esi); /* 0x360E3FCC: push esi */ 4619 MEM32(ebp + (-0x14)) = ecx; /* 0x360E3FCD: mov dword ptr [ebp - 0x14], ecx */ 4620 MEM32(ecx) = 0x3617513Cu; /* 0x360E3FD0: mov dword ptr [ecx], 0x3617513c */ 4621 esi = MEM32(ecx + 0x18); /* 0x360E3FD6: mov esi, dword ptr [ecx + 0x18] */ 4622 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4623 ebx = 0; /* 0x360E3FD9: xor ebx, ebx */ 4624 _cf = 0; 4625 _flag_k = FK_TEST; 4626 /* cmp esi, ebx */ /* 0x360E3FDB: cmp esi, ebx */ 4627 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 4628 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4629 _flag_k = FK_CMP; 4630 MEM32(ebp + (-0x4)) = ebx; /* 0x360E3FDD: mov dword ptr [ebp - 4], ebx */ 4631 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E406D; /* 0x360E3FE0: je 0x360e406d */ 4632 L_360E3FE6: 4633 /* cmp MEM32(esi + 0x10), ebx */ /* 0x360E3FE6: cmp dword ptr [esi + 0x10], ebx */ 4634 _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(ebx); 4635 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4636 _flag_k = FK_CMP; 4637 PUSH32(esp, edi); /* 0x360E3FE9: push edi */ 4638 edi = MEM32(esi + 0x4); /* 0x360E3FEA: mov edi, dword ptr [esi + 4] */ 4639 eax = MEM32(edi); /* 0x360E3FED: mov eax, dword ptr [edi] */ 4640 MEM32(ebp + (-0x10)) = eax; /* 0x360E3FEF: mov dword ptr [ebp - 0x10], eax */ 4641 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E4022; /* 0x360E3FF2: je 0x360e4022 */ 4642 L_360E3FF4: 4643 ecx = eax; /* 0x360E3FF4: mov ecx, eax */ 4644 /* cmp eax, ecx */ /* 0x360E3FF6: cmp eax, ecx */ 4645 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4646 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4647 _flag_k = FK_CMP; 4648 if (CMP_NE(_flag_a, _flag_b)) goto L_360E4022; /* 0x360E3FF8: jne 0x360e4022 */ 4649 L_360E3FFA: 4650 /* cmp edi, edi */ /* 0x360E3FFA: cmp edi, edi */ 4651 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4652 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4653 _flag_k = FK_CMP; 4654 if (CMP_NE(_flag_a, _flag_b)) goto L_360E4022; /* 0x360E3FFC: jne 0x360e4022 */ 4655 L_360E3FFE: 4656 eax = MEM32(edi + 0x4); /* 0x360E3FFE: mov eax, dword ptr [edi + 4] */ 4657 PUSH32(esp, eax); /* 0x360E4001: push eax */ 4658 ecx = esi; /* 0x360E4002: mov ecx, esi */ 4659 RECOMP_ICALL(0x36072580u); /* 0x360E4004: call 0x36072580 */ /* not lifted */ 4660 RECOMP_FLAGS_IN(); 4661 ecx = MEM32(esi + 0x4); /* 0x360E4009: mov ecx, dword ptr [esi + 4] */ 4662 edx = MEM32(esi + 0x8); /* 0x360E400C: mov edx, dword ptr [esi + 8] */ 4663 MEM32(ecx + 0x4) = edx; /* 0x360E400F: mov dword ptr [ecx + 4], edx */ 4664 eax = MEM32(esi + 0x4); /* 0x360E4012: mov eax, dword ptr [esi + 4] */ 4665 MEM32(esi + 0x10) = ebx; /* 0x360E4015: mov dword ptr [esi + 0x10], ebx */ 4666 MEM32(eax) = eax; /* 0x360E4018: mov dword ptr [eax], eax */ 4667 eax = MEM32(esi + 0x4); /* 0x360E401A: mov eax, dword ptr [esi + 4] */ 4668 MEM32(eax + 0x8) = eax; /* 0x360E401D: mov dword ptr [eax + 8], eax */ 4669 goto L_360E4045; /* 0x360E4020: jmp 0x360e4045 */ 4670 L_360E4022: 4671 /* cmp eax, edi */ /* 0x360E4022: cmp eax, edi */ 4672 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4673 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4674 _flag_k = FK_CMP; 4675 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E4045; /* 0x360E4024: je 0x360e4045 */ 4676 L_360E4026: 4677 ecx = ebp + (-0x10); /* 0x360E4026: lea ecx, [ebp - 0x10] */ 4678 ebx = eax; /* 0x360E4029: mov ebx, eax */ 4679 RECOMP_ICALL(0x36064140u); /* 0x360E402B: call 0x36064140 */ /* not lifted */ 4680 RECOMP_FLAGS_IN(); 4681 PUSH32(esp, ebx); /* 0x360E4030: push ebx */ 4682 eax = ebp + (-0x18); /* 0x360E4031: lea eax, [ebp - 0x18] */ 4683 PUSH32(esp, eax); /* 0x360E4034: push eax */ 4684 ecx = esi; /* 0x360E4035: mov ecx, esi */ 4685 RECOMP_ICALL(0x360588E0u); /* 0x360E4037: call 0x360588e0 */ /* not lifted */ 4686 RECOMP_FLAGS_IN(); 4687 eax = MEM32(ebp + (-0x10)); /* 0x360E403C: mov eax, dword ptr [ebp - 0x10] */ 4688 /* cmp eax, edi */ /* 0x360E403F: cmp eax, edi */ 4689 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4690 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4691 _flag_k = FK_CMP; 4692 RECOMP_BACKEDGE(); 4693 if (CMP_NE(_flag_a, _flag_b)) goto L_360E4026; /* 0x360E4041: jne 0x360e4026 */ 4694 L_360E4043: 4695 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4696 ebx = 0; /* 0x360E4043: xor ebx, ebx */ 4697 _cf = 0; 4698 _flag_k = FK_TEST; 4699 L_360E4045: 4700 eax = MEM32(esi + 0x4); /* 0x360E4045: mov eax, dword ptr [esi + 4] */ 4701 PUSH32(esp, eax); /* 0x360E4048: push eax */ 4702 RECOMP_ICALL(0x3615FCC4u); /* 0x360E4049: call 0x3615fcc4 */ /* not lifted */ 4703 RECOMP_FLAGS_IN(); 4704 eax = MEM32(esi + 0x8); /* 0x360E404E: mov eax, dword ptr [esi + 8] */ 4705 PUSH32(esp, eax); /* 0x360E4051: push eax */ 4706 MEM32(esi + 0x4) = ebx; /* 0x360E4052: mov dword ptr [esi + 4], ebx */ 4707 MEM32(esi + 0x10) = ebx; /* 0x360E4055: mov dword ptr [esi + 0x10], ebx */ 4708 RECOMP_ICALL(0x3615FCC4u); /* 0x360E4058: call 0x3615fcc4 */ /* not lifted */ 4709 RECOMP_FLAGS_IN(); 4710 PUSH32(esp, esi); /* 0x360E405D: push esi */ 4711 MEM32(esi + 0x8) = ebx; /* 0x360E405E: mov dword ptr [esi + 8], ebx */ 4712 RECOMP_ICALL(0x3615FCC4u); /* 0x360E4061: call 0x3615fcc4 */ /* not lifted */ 4713 RECOMP_FLAGS_IN(); 4714 ecx = MEM32(ebp + (-0x14)); /* 0x360E4066: mov ecx, dword ptr [ebp - 0x14] */ 4715 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4716 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4717 esp = esp + 0xCu; /* 0x360E4069: add esp, 0xc */ 4718 _flag_k = FK_ADD; 4719 edi = POP32_VAL(esp); /* 0x360E406C: pop edi */ 4720 L_360E406D: 4721 MEM32(ecx + 0x18) = ebx; /* 0x360E406D: mov dword ptr [ecx + 0x18], ebx */ 4722 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360E4070: mov dword ptr [ebp - 4], 0xffffffff */ 4723 RECOMP_ICALL(MEM32(0x3616FB48)); /* 0x360E4077: call dword ptr [0x3616fb48] */ 4724 RECOMP_FLAGS_IN(); 4725 ecx = MEM32(ebp + (-0xC)); /* 0x360E407D: mov ecx, dword ptr [ebp - 0xc] */ 4726 esi = POP32_VAL(esp); /* 0x360E4080: pop esi */ 4727 ebx = POP32_VAL(esp); /* 0x360E4081: pop ebx */ 4728 MEM32(FS_BASE + (0)) = ecx; /* 0x360E4082: mov dword ptr fs:[0], ecx */ 4729 esp = ebp; /* 0x360E4089: mov esp, ebp */ 4730 ebp = POP32_VAL(esp); /* 0x360E408B: pop ebp */ 4731 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E408C: ret */ 4732 RECOMP_REGS_OUT(); 4733 } 4734 4735 void sub_360E4090(void) { 4736 int _fpu_cmp = 0; 4737 uint32_t _cf = 0; 4738 int _df = 1; 4739 uint32_t _flag_k = FK_NONE; 4740 uint32_t _flag_a = 0, _flag_b = 0; 4741 uint32_t _itail_tgt = 0; 4742 RECOMP_REGS_LOCALS 4743 RECOMP_ENTER(0x360E4090u); 4744 4745 L_360E4090: 4746 ecx = MEM32(0x36306FAC); /* 0x360E4090: mov ecx, dword ptr [0x36306fac] */ 4747 eax = MEM32(0x36306F60); /* 0x360E4096: mov eax, dword ptr [0x36306f60] */ 4748 PUSH32(esp, esi); /* 0x360E409B: push esi */ 4749 esi = MEM32(0x36306F5C); /* 0x360E409C: mov esi, dword ptr [0x36306f5c] */ 4750 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4751 ecx = ecx + 1; /* 0x360E40A2: inc ecx */ 4752 _flag_k = FK_INC; 4753 /* cmp esi, eax */ /* 0x360E40A3: cmp esi, eax */ 4754 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 4755 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4756 _flag_k = FK_CMP; 4757 MEM32(0x36306FAC) = ecx; /* 0x360E40A5: mov dword ptr [0x36306fac], ecx */ 4758 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E40CF; /* 0x360E40AB: je 0x360e40cf */ 4759 L_360E40AD: 4760 PUSH32(esp, edi); /* 0x360E40AD: push edi */ 4761 edi = MEM32(0x3616FB14); /* 0x360E40AE: mov edi, dword ptr [0x3616fb14] */ 4762 L_360E40B4: 4763 ecx = MEM32(esi); /* 0x360E40B4: mov ecx, dword ptr [esi] */ 4764 /* test ecx, ecx */ /* 0x360E40B6: test ecx, ecx */ 4765 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4766 _cf = 0; 4767 _flag_k = FK_TEST; 4768 if (TEST_Z(_flag_a, _flag_b)) goto L_360E40BC; /* 0x360E40B8: je 0x360e40bc */ 4769 L_360E40BA: 4770 RECOMP_ICALL(edi); /* 0x360E40BA: call edi */ 4771 RECOMP_FLAGS_IN(); 4772 L_360E40BC: 4773 MEM32(esi) = 0; /* 0x360E40BC: mov dword ptr [esi], 0 */ 4774 eax = MEM32(0x36306F60); /* 0x360E40C2: mov eax, dword ptr [0x36306f60] */ 4775 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 4776 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4777 esi = esi + 4; /* 0x360E40C7: add esi, 4 */ 4778 _flag_k = FK_ADD; 4779 /* cmp esi, eax */ /* 0x360E40CA: cmp esi, eax */ 4780 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 4781 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4782 _flag_k = FK_CMP; 4783 RECOMP_BACKEDGE(); 4784 if (CMP_NE(_flag_a, _flag_b)) goto L_360E40B4; /* 0x360E40CC: jne 0x360e40b4 */ 4785 L_360E40CE: 4786 edi = POP32_VAL(esp); /* 0x360E40CE: pop edi */ 4787 L_360E40CF: 4788 PUSH32(esp, 0x400u); /* 0x360E40CF: push 0x400 */ 4789 RECOMP_ICALL(0x360EF780u); /* 0x360E40D4: call 0x360ef780 */ /* not lifted */ 4790 RECOMP_FLAGS_IN(); 4791 ecx = eax; /* 0x360E40D9: mov ecx, eax */ 4792 RECOMP_ICALL(0x360EFD10u); /* 0x360E40DB: call 0x360efd10 */ /* not lifted */ 4793 RECOMP_FLAGS_IN(); 4794 esi = POP32_VAL(esp); /* 0x360E40E0: pop esi */ 4795 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E40E1: ret */ 4796 RECOMP_REGS_OUT(); 4797 } 4798 4799 void sub_360E40F0(void) { 4800 int _fpu_cmp = 0; 4801 uint32_t _cf = 0; 4802 int _df = 1; 4803 uint32_t _flag_k = FK_NONE; 4804 uint32_t _flag_a = 0, _flag_b = 0; 4805 uint32_t _itail_tgt = 0; 4806 RECOMP_REGS_LOCALS 4807 RECOMP_ENTER(0x360E40F0u); 4808 4809 L_360E40F0: 4810 PUSH32(esp, ebp); /* 0x360E40F0: push ebp */ 4811 ebp = esp; /* 0x360E40F1: mov ebp, esp */ 4812 PUSH32(esp, 0xFFFFFFFFu); /* 0x360E40F3: push -1 */ 4813 PUSH32(esp, 0x361681D9u); /* 0x360E40F5: push 0x361681d9 */ 4814 eax = MEM32(FS_BASE + (0)); /* 0x360E40FA: mov eax, dword ptr fs:[0] */ 4815 PUSH32(esp, eax); /* 0x360E4100: push eax */ 4816 MEM32(FS_BASE + (0)) = esp; /* 0x360E4101: mov dword ptr fs:[0], esp */ 4817 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 4818 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4819 esp = esp - 0x14u; /* 0x360E4108: sub esp, 0x14 */ 4820 _flag_k = FK_CMP; 4821 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x360E410B: mov al, byte ptr [ebp + 0xb] */ 4822 PUSH32(esp, ebx); /* 0x360E410E: push ebx */ 4823 PUSH32(esp, esi); /* 0x360E410F: push esi */ 4824 MEM32(ebp + (-0x10)) = ecx; /* 0x360E4110: mov dword ptr [ebp - 0x10], ecx */ 4825 PUSH32(esp, edi); /* 0x360E4113: push edi */ 4826 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4827 ecx = ecx | 0xFFFFFFFFu; /* 0x360E4114: or ecx, 0xffffffff */ 4828 _cf = 0; 4829 _flag_k = FK_TEST; 4830 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4831 esi = 0; /* 0x360E4117: xor esi, esi */ 4832 _cf = 0; 4833 _flag_k = FK_TEST; 4834 MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x360E4119: mov byte ptr [ebp - 0x20], al */ 4835 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4836 eax = 0; /* 0x360E411C: xor eax, eax */ 4837 _cf = 0; 4838 _flag_k = FK_TEST; 4839 edi = 0x362E22E8u; /* 0x360E411E: mov edi, 0x362e22e8 */ 4840 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x360E4123: repne scasb al, byte ptr es:[edi] */ 4841 ecx = ~ecx; /* 0x360E4125: not ecx */ 4842 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4843 ecx = ecx - 1; /* 0x360E4127: dec ecx */ 4844 _flag_k = FK_DEC; 4845 ebx = ecx; /* 0x360E4128: mov ebx, ecx */ 4846 PUSH32(esp, 1); /* 0x360E412A: push 1 */ 4847 PUSH32(esp, ebx); /* 0x360E412C: push ebx */ 4848 ecx = ebp + (-0x20); /* 0x360E412D: lea ecx, [ebp - 0x20] */ 4849 MEM32(ebp + (-0x1C)) = esi; /* 0x360E4130: mov dword ptr [ebp - 0x1c], esi */ 4850 MEM32(ebp + (-0x18)) = esi; /* 0x360E4133: mov dword ptr [ebp - 0x18], esi */ 4851 MEM32(ebp + (-0x14)) = esi; /* 0x360E4136: mov dword ptr [ebp - 0x14], esi */ 4852 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x360E4139: call dword ptr [0x3616f00c] */ 4853 RECOMP_FLAGS_IN(); 4854 /* test LO8(eax), LO8(eax) */ /* 0x360E413F: test al, al */ 4855 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4856 _cf = 0; 4857 _flag_k = FK_NARROW(FK_TEST, 24); 4858 if (TEST_Z(_flag_a, _flag_b)) goto L_360E4167; /* 0x360E4141: je 0x360e4167 */ 4859 L_360E4143: 4860 edi = MEM32(ebp + (-0x1C)); /* 0x360E4143: mov edi, dword ptr [ebp - 0x1c] */ 4861 ecx = ebx; /* 0x360E4146: mov ecx, ebx */ 4862 edx = ecx; /* 0x360E4148: mov edx, ecx */ 4863 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x360E414A: shr ecx, 2 */ 4864 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4865 ecx = ecx >> 2u; /* 0x360E414A: shr ecx, 2 */ 4866 esi = 0x362E22E8u; /* 0x360E414D: mov esi, 0x362e22e8 */ 4867 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360E4152: 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; } 4868 ecx = edx; /* 0x360E4154: mov ecx, edx */ 4869 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 4870 ecx = ecx & 3; /* 0x360E4156: and ecx, 3 */ 4871 _cf = 0; 4872 _flag_k = FK_TEST; 4873 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x360E4159: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 4874 eax = MEM32(ebp + (-0x1C)); /* 0x360E415B: mov eax, dword ptr [ebp - 0x1c] */ 4875 MEM32(ebp + (-0x18)) = ebx; /* 0x360E415E: mov dword ptr [ebp - 0x18], ebx */ 4876 MEM8(eax + ebx) = (uint8_t)(0); /* 0x360E4161: mov byte ptr [eax + ebx], 0 */ 4877 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4878 esi = 0; /* 0x360E4165: xor esi, esi */ 4879 _cf = 0; 4880 _flag_k = FK_TEST; 4881 L_360E4167: 4882 edi = MEM32(ebp + 0x8); /* 0x360E4167: mov edi, dword ptr [ebp + 8] */ 4883 edx = MEM32(edi); /* 0x360E416A: mov edx, dword ptr [edi] */ 4884 eax = ebp + (-0x20); /* 0x360E416C: lea eax, [ebp - 0x20] */ 4885 PUSH32(esp, eax); /* 0x360E416F: push eax */ 4886 ecx = edi; /* 0x360E4170: mov ecx, edi */ 4887 MEM32(ebp + (-0x4)) = esi; /* 0x360E4172: mov dword ptr [ebp - 4], esi */ 4888 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x360E4175: call dword ptr [edx + 8] */ 4889 RECOMP_FLAGS_IN(); 4890 eax = MEM32(ebp + (-0x1C)); /* 0x360E4178: mov eax, dword ptr [ebp - 0x1c] */ 4891 /* cmp eax, esi */ /* 0x360E417B: cmp eax, esi */ 4892 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 4893 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4894 _flag_k = FK_CMP; 4895 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360E417D: mov dword ptr [ebp - 4], 0xffffffff */ 4896 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E41A2; /* 0x360E4184: je 0x360e41a2 */ 4897 L_360E4186: 4898 ecx = eax + (-0x1); /* 0x360E4186: lea ecx, [eax - 1] */ 4899 SET_LO8(eax, MEM8(ecx)); /* 0x360E4189: mov al, byte ptr [ecx] */ 4900 /* test LO8(eax), LO8(eax) */ /* 0x360E418B: test al, al */ 4901 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4902 _cf = 0; 4903 _flag_k = FK_NARROW(FK_TEST, 24); 4904 if (TEST_Z(_flag_a, _flag_b)) goto L_360E4199; /* 0x360E418D: je 0x360e4199 */ 4905 L_360E418F: 4906 /* cmp LO8(eax), 0xFFu */ /* 0x360E418F: cmp al, 0xff */ 4907 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 4908 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4909 _flag_k = FK_NARROW(FK_CMP, 24); 4910 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E4199; /* 0x360E4191: je 0x360e4199 */ 4911 L_360E4193: 4912 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4913 SET_LO8(eax, LO8(eax) - 1); /* 0x360E4193: dec al */ 4914 _flag_k = FK_NARROW(FK_DEC, 24); 4915 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x360E4195: mov byte ptr [ecx], al */ 4916 goto L_360E41A2; /* 0x360E4197: jmp 0x360e41a2 */ 4917 L_360E4199: 4918 PUSH32(esp, ecx); /* 0x360E4199: push ecx */ 4919 RECOMP_ICALL(0x3615FCC4u); /* 0x360E419A: call 0x3615fcc4 */ /* not lifted */ 4920 RECOMP_FLAGS_IN(); 4921 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4922 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4923 esp = esp + 4; /* 0x360E419F: add esp, 4 */ 4924 _flag_k = FK_ADD; 4925 L_360E41A2: 4926 ecx = MEM32(ebp + (-0x10)); /* 0x360E41A2: mov ecx, dword ptr [ebp - 0x10] */ 4927 edx = MEM32(ecx); /* 0x360E41A5: mov edx, dword ptr [ecx] */ 4928 PUSH32(esp, edi); /* 0x360E41A7: push edi */ 4929 MEM32(ebp + (-0x1C)) = esi; /* 0x360E41A8: mov dword ptr [ebp - 0x1c], esi */ 4930 MEM32(ebp + (-0x18)) = esi; /* 0x360E41AB: mov dword ptr [ebp - 0x18], esi */ 4931 MEM32(ebp + (-0x14)) = esi; /* 0x360E41AE: mov dword ptr [ebp - 0x14], esi */ 4932 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x360E41B1: call dword ptr [edx + 4] */ 4933 RECOMP_FLAGS_IN(); 4934 ecx = MEM32(ebp + (-0xC)); /* 0x360E41B4: mov ecx, dword ptr [ebp - 0xc] */ 4935 edi = POP32_VAL(esp); /* 0x360E41B7: pop edi */ 4936 esi = POP32_VAL(esp); /* 0x360E41B8: pop esi */ 4937 ebx = POP32_VAL(esp); /* 0x360E41B9: pop ebx */ 4938 MEM32(FS_BASE + (0)) = ecx; /* 0x360E41BA: mov dword ptr fs:[0], ecx */ 4939 esp = ebp; /* 0x360E41C1: mov esp, ebp */ 4940 ebp = POP32_VAL(esp); /* 0x360E41C3: pop ebp */ 4941 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360E41C4: ret 4 */ 4942 RECOMP_REGS_OUT(); 4943 } 4944 4945 void sub_360E41D0(void) { 4946 int _fpu_cmp = 0; 4947 uint32_t _cf = 0; 4948 int _df = 1; 4949 uint32_t _flag_k = FK_NONE; 4950 uint32_t _flag_a = 0, _flag_b = 0; 4951 uint32_t _itail_tgt = 0; 4952 RECOMP_REGS_LOCALS 4953 RECOMP_ENTER(0x360E41D0u); 4954 4955 L_360E41D0: 4956 PUSH32(esp, ebp); /* 0x360E41D0: push ebp */ 4957 ebp = esp; /* 0x360E41D1: mov ebp, esp */ 4958 PUSH32(esp, 0xFFFFFFFFu); /* 0x360E41D3: push -1 */ 4959 PUSH32(esp, 0x36168226u); /* 0x360E41D5: push 0x36168226 */ 4960 eax = MEM32(FS_BASE + (0)); /* 0x360E41DA: mov eax, dword ptr fs:[0] */ 4961 PUSH32(esp, eax); /* 0x360E41E0: push eax */ 4962 MEM32(FS_BASE + (0)) = esp; /* 0x360E41E1: mov dword ptr fs:[0], esp */ 4963 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 4964 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4965 esp = esp - 0x20u; /* 0x360E41E8: sub esp, 0x20 */ 4966 _flag_k = FK_CMP; 4967 PUSH32(esp, ebx); /* 0x360E41EB: push ebx */ 4968 ebx = MEM32(ebp + 0x8); /* 0x360E41EC: mov ebx, dword ptr [ebp + 8] */ 4969 PUSH32(esp, esi); /* 0x360E41EF: push esi */ 4970 PUSH32(esp, edi); /* 0x360E41F0: push edi */ 4971 PUSH32(esp, ebx); /* 0x360E41F1: push ebx */ 4972 RECOMP_ICALL(MEM32(0x3616FB4C)); /* 0x360E41F2: call dword ptr [0x3616fb4c] */ 4973 RECOMP_FLAGS_IN(); 4974 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x360E41F8: mov al, byte ptr [ebp + 0xb] */ 4975 PUSH32(esp, 0); /* 0x360E41FB: push 0 */ 4976 ecx = ebp + (-0x2C); /* 0x360E41FD: lea ecx, [ebp - 0x2c] */ 4977 MEM8(ebp + (-0x2C)) = (uint8_t)(LO8(eax)); /* 0x360E4200: mov byte ptr [ebp - 0x2c], al */ 4978 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x360E4203: call dword ptr [0x3616f100] */ 4979 RECOMP_FLAGS_IN(); 4980 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4981 ecx = ecx | 0xFFFFFFFFu; /* 0x360E4209: or ecx, 0xffffffff */ 4982 _cf = 0; 4983 _flag_k = FK_TEST; 4984 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4985 eax = 0; /* 0x360E420C: xor eax, eax */ 4986 _cf = 0; 4987 _flag_k = FK_TEST; 4988 edi = 0x362E2330u; /* 0x360E420E: mov edi, 0x362e2330 */ 4989 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x360E4213: repne scasb al, byte ptr es:[edi] */ 4990 ecx = ~ecx; /* 0x360E4215: not ecx */ 4991 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4992 ecx = ecx - 1; /* 0x360E4217: dec ecx */ 4993 _flag_k = FK_DEC; 4994 esi = ecx; /* 0x360E4218: mov esi, ecx */ 4995 PUSH32(esp, 1); /* 0x360E421A: push 1 */ 4996 PUSH32(esp, esi); /* 0x360E421C: push esi */ 4997 ecx = ebp + (-0x2C); /* 0x360E421D: lea ecx, [ebp - 0x2c] */ 4998 MEM32(ebp + 0x8) = esi; /* 0x360E4220: mov dword ptr [ebp + 8], esi */ 4999 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x360E4223: call dword ptr [0x3616f00c] */ 5000 RECOMP_FLAGS_IN(); 5001 /* test LO8(eax), LO8(eax) */ /* 0x360E4229: test al, al */ 5002 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5003 _cf = 0; 5004 _flag_k = FK_NARROW(FK_TEST, 24); 5005 if (TEST_Z(_flag_a, _flag_b)) goto L_360E4251; /* 0x360E422B: je 0x360e4251 */ 5006 L_360E422D: 5007 edi = MEM32(ebp + (-0x28)); /* 0x360E422D: mov edi, dword ptr [ebp - 0x28] */ 5008 ecx = esi; /* 0x360E4230: mov ecx, esi */ 5009 edx = ecx; /* 0x360E4232: mov edx, ecx */ 5010 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x360E4234: shr ecx, 2 */ 5011 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5012 ecx = ecx >> 2u; /* 0x360E4234: shr ecx, 2 */ 5013 esi = 0x362E2330u; /* 0x360E4237: mov esi, 0x362e2330 */ 5014 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360E423C: 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; } 5015 ecx = edx; /* 0x360E423E: mov ecx, edx */ 5016 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 5017 ecx = ecx & 3; /* 0x360E4240: and ecx, 3 */ 5018 _cf = 0; 5019 _flag_k = FK_TEST; 5020 eax = edx; /* 0x360E4243: mov eax, edx */ 5021 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x360E4245: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 5022 PUSH32(esp, eax); /* 0x360E4247: push eax */ 5023 ecx = ebp + (-0x2C); /* 0x360E4248: lea ecx, [ebp - 0x2c] */ 5024 RECOMP_ICALL(MEM32(0x3616F044)); /* 0x360E424B: call dword ptr [0x3616f044] */ 5025 RECOMP_FLAGS_IN(); 5026 L_360E4251: 5027 edx = MEM32(ebx); /* 0x360E4251: mov edx, dword ptr [ebx] */ 5028 PUSH32(esp, 0); /* 0x360E4253: push 0 */ 5029 PUSH32(esp, 1); /* 0x360E4255: push 1 */ 5030 eax = ebp + (-0x2C); /* 0x360E4257: lea eax, [ebp - 0x2c] */ 5031 PUSH32(esp, eax); /* 0x360E425A: push eax */ 5032 ecx = ebx; /* 0x360E425B: mov ecx, ebx */ 5033 MEM32(ebp + (-0x4)) = 0; /* 0x360E425D: mov dword ptr [ebp - 4], 0 */ 5034 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x360E4264: call dword ptr [edx + 0x10] */ 5035 RECOMP_FLAGS_IN(); 5036 PUSH32(esp, 1); /* 0x360E4267: push 1 */ 5037 ecx = ebp + (-0x2C); /* 0x360E4269: lea ecx, [ebp - 0x2c] */ 5038 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360E426C: mov dword ptr [ebp - 4], 0xffffffff */ 5039 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x360E4273: call dword ptr [0x3616f100] */ 5040 RECOMP_FLAGS_IN(); 5041 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x360E4279: mov cl, byte ptr [ebp + 0xb] */ 5042 MEM8(ebp + (-0x2C)) = (uint8_t)(LO8(ecx)); /* 0x360E427C: mov byte ptr [ebp - 0x2c], cl */ 5043 PUSH32(esp, 0); /* 0x360E427F: push 0 */ 5044 ecx = ebp + (-0x2C); /* 0x360E4281: lea ecx, [ebp - 0x2c] */ 5045 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x360E4284: call dword ptr [0x3616f100] */ 5046 RECOMP_FLAGS_IN(); 5047 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 5048 ecx = ecx | 0xFFFFFFFFu; /* 0x360E428A: or ecx, 0xffffffff */ 5049 _cf = 0; 5050 _flag_k = FK_TEST; 5051 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5052 eax = 0; /* 0x360E428D: xor eax, eax */ 5053 _cf = 0; 5054 _flag_k = FK_TEST; 5055 edi = 0x362E2328u; /* 0x360E428F: mov edi, 0x362e2328 */ 5056 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x360E4294: repne scasb al, byte ptr es:[edi] */ 5057 ecx = ~ecx; /* 0x360E4296: not ecx */ 5058 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5059 ecx = ecx - 1; /* 0x360E4298: dec ecx */ 5060 _flag_k = FK_DEC; 5061 esi = ecx; /* 0x360E4299: mov esi, ecx */ 5062 PUSH32(esp, 1); /* 0x360E429B: push 1 */ 5063 PUSH32(esp, esi); /* 0x360E429D: push esi */ 5064 ecx = ebp + (-0x2C); /* 0x360E429E: lea ecx, [ebp - 0x2c] */ 5065 MEM32(ebp + 0x8) = esi; /* 0x360E42A1: mov dword ptr [ebp + 8], esi */ 5066 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x360E42A4: call dword ptr [0x3616f00c] */ 5067 RECOMP_FLAGS_IN(); 5068 /* test LO8(eax), LO8(eax) */ /* 0x360E42AA: test al, al */ 5069 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5070 _cf = 0; 5071 _flag_k = FK_NARROW(FK_TEST, 24); 5072 if (TEST_Z(_flag_a, _flag_b)) goto L_360E42D2; /* 0x360E42AC: je 0x360e42d2 */ 5073 L_360E42AE: 5074 edi = MEM32(ebp + (-0x28)); /* 0x360E42AE: mov edi, dword ptr [ebp - 0x28] */ 5075 ecx = esi; /* 0x360E42B1: mov ecx, esi */ 5076 edx = ecx; /* 0x360E42B3: mov edx, ecx */ 5077 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x360E42B5: shr ecx, 2 */ 5078 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5079 ecx = ecx >> 2u; /* 0x360E42B5: shr ecx, 2 */ 5080 esi = 0x362E2328u; /* 0x360E42B8: mov esi, 0x362e2328 */ 5081 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360E42BD: 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; } 5082 ecx = edx; /* 0x360E42BF: mov ecx, edx */ 5083 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 5084 ecx = ecx & 3; /* 0x360E42C1: and ecx, 3 */ 5085 _cf = 0; 5086 _flag_k = FK_TEST; 5087 eax = edx; /* 0x360E42C4: mov eax, edx */ 5088 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x360E42C6: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 5089 PUSH32(esp, eax); /* 0x360E42C8: push eax */ 5090 ecx = ebp + (-0x2C); /* 0x360E42C9: lea ecx, [ebp - 0x2c] */ 5091 RECOMP_ICALL(MEM32(0x3616F044)); /* 0x360E42CC: call dword ptr [0x3616f044] */ 5092 RECOMP_FLAGS_IN(); 5093 L_360E42D2: 5094 edx = MEM32(ebx); /* 0x360E42D2: mov edx, dword ptr [ebx] */ 5095 PUSH32(esp, 0); /* 0x360E42D4: push 0 */ 5096 PUSH32(esp, 1); /* 0x360E42D6: push 1 */ 5097 eax = ebp + (-0x2C); /* 0x360E42D8: lea eax, [ebp - 0x2c] */ 5098 PUSH32(esp, eax); /* 0x360E42DB: push eax */ 5099 ecx = ebx; /* 0x360E42DC: mov ecx, ebx */ 5100 MEM32(ebp + (-0x4)) = 1; /* 0x360E42DE: mov dword ptr [ebp - 4], 1 */ 5101 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x360E42E5: call dword ptr [edx + 0x10] */ 5102 RECOMP_FLAGS_IN(); 5103 PUSH32(esp, 1); /* 0x360E42E8: push 1 */ 5104 ecx = ebp + (-0x2C); /* 0x360E42EA: lea ecx, [ebp - 0x2c] */ 5105 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360E42ED: mov dword ptr [ebp - 4], 0xffffffff */ 5106 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x360E42F4: call dword ptr [0x3616f100] */ 5107 RECOMP_FLAGS_IN(); 5108 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x360E42FA: mov cl, byte ptr [ebp + 0xb] */ 5109 MEM8(ebp + (-0x2C)) = (uint8_t)(LO8(ecx)); /* 0x360E42FD: mov byte ptr [ebp - 0x2c], cl */ 5110 PUSH32(esp, 0); /* 0x360E4300: push 0 */ 5111 ecx = ebp + (-0x2C); /* 0x360E4302: lea ecx, [ebp - 0x2c] */ 5112 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x360E4305: call dword ptr [0x3616f100] */ 5113 RECOMP_FLAGS_IN(); 5114 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 5115 ecx = ecx | 0xFFFFFFFFu; /* 0x360E430B: or ecx, 0xffffffff */ 5116 _cf = 0; 5117 _flag_k = FK_TEST; 5118 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5119 eax = 0; /* 0x360E430E: xor eax, eax */ 5120 _cf = 0; 5121 _flag_k = FK_TEST; 5122 edi = 0x362E231Cu; /* 0x360E4310: mov edi, 0x362e231c */ 5123 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x360E4315: repne scasb al, byte ptr es:[edi] */ 5124 ecx = ~ecx; /* 0x360E4317: not ecx */ 5125 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5126 ecx = ecx - 1; /* 0x360E4319: dec ecx */ 5127 _flag_k = FK_DEC; 5128 esi = ecx; /* 0x360E431A: mov esi, ecx */ 5129 PUSH32(esp, 1); /* 0x360E431C: push 1 */ 5130 PUSH32(esp, esi); /* 0x360E431E: push esi */ 5131 ecx = ebp + (-0x2C); /* 0x360E431F: lea ecx, [ebp - 0x2c] */ 5132 MEM32(ebp + 0x8) = esi; /* 0x360E4322: mov dword ptr [ebp + 8], esi */ 5133 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x360E4325: call dword ptr [0x3616f00c] */ 5134 RECOMP_FLAGS_IN(); 5135 /* test LO8(eax), LO8(eax) */ /* 0x360E432B: test al, al */ 5136 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5137 _cf = 0; 5138 _flag_k = FK_NARROW(FK_TEST, 24); 5139 if (TEST_Z(_flag_a, _flag_b)) goto L_360E4353; /* 0x360E432D: je 0x360e4353 */ 5140 L_360E432F: 5141 edi = MEM32(ebp + (-0x28)); /* 0x360E432F: mov edi, dword ptr [ebp - 0x28] */ 5142 ecx = esi; /* 0x360E4332: mov ecx, esi */ 5143 edx = ecx; /* 0x360E4334: mov edx, ecx */ 5144 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x360E4336: shr ecx, 2 */ 5145 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5146 ecx = ecx >> 2u; /* 0x360E4336: shr ecx, 2 */ 5147 esi = 0x362E231Cu; /* 0x360E4339: mov esi, 0x362e231c */ 5148 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360E433E: 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; } 5149 ecx = edx; /* 0x360E4340: mov ecx, edx */ 5150 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 5151 ecx = ecx & 3; /* 0x360E4342: and ecx, 3 */ 5152 _cf = 0; 5153 _flag_k = FK_TEST; 5154 eax = edx; /* 0x360E4345: mov eax, edx */ 5155 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x360E4347: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 5156 PUSH32(esp, eax); /* 0x360E4349: push eax */ 5157 ecx = ebp + (-0x2C); /* 0x360E434A: lea ecx, [ebp - 0x2c] */ 5158 RECOMP_ICALL(MEM32(0x3616F044)); /* 0x360E434D: call dword ptr [0x3616f044] */ 5159 RECOMP_FLAGS_IN(); 5160 L_360E4353: 5161 edx = MEM32(ebx); /* 0x360E4353: mov edx, dword ptr [ebx] */ 5162 PUSH32(esp, 0); /* 0x360E4355: push 0 */ 5163 PUSH32(esp, 1); /* 0x360E4357: push 1 */ 5164 eax = ebp + (-0x2C); /* 0x360E4359: lea eax, [ebp - 0x2c] */ 5165 PUSH32(esp, eax); /* 0x360E435C: push eax */ 5166 ecx = ebx; /* 0x360E435D: mov ecx, ebx */ 5167 MEM32(ebp + (-0x4)) = 2; /* 0x360E435F: mov dword ptr [ebp - 4], 2 */ 5168 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x360E4366: call dword ptr [edx + 0x10] */ 5169 RECOMP_FLAGS_IN(); 5170 PUSH32(esp, 1); /* 0x360E4369: push 1 */ 5171 ecx = ebp + (-0x2C); /* 0x360E436B: lea ecx, [ebp - 0x2c] */ 5172 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360E436E: mov dword ptr [ebp - 4], 0xffffffff */ 5173 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x360E4375: call dword ptr [0x3616f100] */ 5174 RECOMP_FLAGS_IN(); 5175 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x360E437B: mov cl, byte ptr [ebp + 0xb] */ 5176 MEM8(ebp + (-0x2C)) = (uint8_t)(LO8(ecx)); /* 0x360E437E: mov byte ptr [ebp - 0x2c], cl */ 5177 PUSH32(esp, 0); /* 0x360E4381: push 0 */ 5178 ecx = ebp + (-0x2C); /* 0x360E4383: lea ecx, [ebp - 0x2c] */ 5179 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x360E4386: call dword ptr [0x3616f100] */ 5180 RECOMP_FLAGS_IN(); 5181 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 5182 ecx = ecx | 0xFFFFFFFFu; /* 0x360E438C: or ecx, 0xffffffff */ 5183 _cf = 0; 5184 _flag_k = FK_TEST; 5185 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5186 eax = 0; /* 0x360E438F: xor eax, eax */ 5187 _cf = 0; 5188 _flag_k = FK_TEST; 5189 edi = 0x362E2310u; /* 0x360E4391: mov edi, 0x362e2310 */ 5190 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x360E4396: repne scasb al, byte ptr es:[edi] */ 5191 ecx = ~ecx; /* 0x360E4398: not ecx */ 5192 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5193 ecx = ecx - 1; /* 0x360E439A: dec ecx */ 5194 _flag_k = FK_DEC; 5195 esi = ecx; /* 0x360E439B: mov esi, ecx */ 5196 PUSH32(esp, 1); /* 0x360E439D: push 1 */ 5197 PUSH32(esp, esi); /* 0x360E439F: push esi */ 5198 ecx = ebp + (-0x2C); /* 0x360E43A0: lea ecx, [ebp - 0x2c] */ 5199 MEM32(ebp + 0x8) = esi; /* 0x360E43A3: mov dword ptr [ebp + 8], esi */ 5200 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x360E43A6: call dword ptr [0x3616f00c] */ 5201 RECOMP_FLAGS_IN(); 5202 /* test LO8(eax), LO8(eax) */ /* 0x360E43AC: test al, al */ 5203 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5204 _cf = 0; 5205 _flag_k = FK_NARROW(FK_TEST, 24); 5206 if (TEST_Z(_flag_a, _flag_b)) goto L_360E43D4; /* 0x360E43AE: je 0x360e43d4 */ 5207 L_360E43B0: 5208 edi = MEM32(ebp + (-0x28)); /* 0x360E43B0: mov edi, dword ptr [ebp - 0x28] */ 5209 ecx = esi; /* 0x360E43B3: mov ecx, esi */ 5210 edx = ecx; /* 0x360E43B5: mov edx, ecx */ 5211 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x360E43B7: shr ecx, 2 */ 5212 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5213 ecx = ecx >> 2u; /* 0x360E43B7: shr ecx, 2 */ 5214 esi = 0x362E2310u; /* 0x360E43BA: mov esi, 0x362e2310 */ 5215 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360E43BF: 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; } 5216 ecx = edx; /* 0x360E43C1: mov ecx, edx */ 5217 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 5218 ecx = ecx & 3; /* 0x360E43C3: and ecx, 3 */ 5219 _cf = 0; 5220 _flag_k = FK_TEST; 5221 eax = edx; /* 0x360E43C6: mov eax, edx */ 5222 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x360E43C8: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 5223 PUSH32(esp, eax); /* 0x360E43CA: push eax */ 5224 ecx = ebp + (-0x2C); /* 0x360E43CB: lea ecx, [ebp - 0x2c] */ 5225 RECOMP_ICALL(MEM32(0x3616F044)); /* 0x360E43CE: call dword ptr [0x3616f044] */ 5226 RECOMP_FLAGS_IN(); 5227 L_360E43D4: 5228 edx = MEM32(ebx); /* 0x360E43D4: mov edx, dword ptr [ebx] */ 5229 PUSH32(esp, 0); /* 0x360E43D6: push 0 */ 5230 PUSH32(esp, 1); /* 0x360E43D8: push 1 */ 5231 eax = ebp + (-0x2C); /* 0x360E43DA: lea eax, [ebp - 0x2c] */ 5232 PUSH32(esp, eax); /* 0x360E43DD: push eax */ 5233 ecx = ebx; /* 0x360E43DE: mov ecx, ebx */ 5234 MEM32(ebp + (-0x4)) = 3; /* 0x360E43E0: mov dword ptr [ebp - 4], 3 */ 5235 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x360E43E7: call dword ptr [edx + 0x10] */ 5236 RECOMP_FLAGS_IN(); 5237 PUSH32(esp, 1); /* 0x360E43EA: push 1 */ 5238 ecx = ebp + (-0x2C); /* 0x360E43EC: lea ecx, [ebp - 0x2c] */ 5239 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360E43EF: mov dword ptr [ebp - 4], 0xffffffff */ 5240 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x360E43F6: call dword ptr [0x3616f100] */ 5241 RECOMP_FLAGS_IN(); 5242 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x360E43FC: mov cl, byte ptr [ebp + 0xb] */ 5243 MEM8(ebp + (-0x2C)) = (uint8_t)(LO8(ecx)); /* 0x360E43FF: mov byte ptr [ebp - 0x2c], cl */ 5244 PUSH32(esp, 0); /* 0x360E4402: push 0 */ 5245 ecx = ebp + (-0x2C); /* 0x360E4404: lea ecx, [ebp - 0x2c] */ 5246 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x360E4407: call dword ptr [0x3616f100] */ 5247 RECOMP_FLAGS_IN(); 5248 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 5249 ecx = ecx | 0xFFFFFFFFu; /* 0x360E440D: or ecx, 0xffffffff */ 5250 _cf = 0; 5251 _flag_k = FK_TEST; 5252 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5253 eax = 0; /* 0x360E4410: xor eax, eax */ 5254 _cf = 0; 5255 _flag_k = FK_TEST; 5256 edi = 0x362E2308u; /* 0x360E4412: mov edi, 0x362e2308 */ 5257 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x360E4417: repne scasb al, byte ptr es:[edi] */ 5258 ecx = ~ecx; /* 0x360E4419: not ecx */ 5259 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5260 ecx = ecx - 1; /* 0x360E441B: dec ecx */ 5261 _flag_k = FK_DEC; 5262 esi = ecx; /* 0x360E441C: mov esi, ecx */ 5263 PUSH32(esp, 1); /* 0x360E441E: push 1 */ 5264 PUSH32(esp, esi); /* 0x360E4420: push esi */ 5265 ecx = ebp + (-0x2C); /* 0x360E4421: lea ecx, [ebp - 0x2c] */ 5266 MEM32(ebp + 0x8) = esi; /* 0x360E4424: mov dword ptr [ebp + 8], esi */ 5267 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x360E4427: call dword ptr [0x3616f00c] */ 5268 RECOMP_FLAGS_IN(); 5269 /* test LO8(eax), LO8(eax) */ /* 0x360E442D: test al, al */ 5270 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5271 _cf = 0; 5272 _flag_k = FK_NARROW(FK_TEST, 24); 5273 if (TEST_Z(_flag_a, _flag_b)) goto L_360E4455; /* 0x360E442F: je 0x360e4455 */ 5274 L_360E4431: 5275 edi = MEM32(ebp + (-0x28)); /* 0x360E4431: mov edi, dword ptr [ebp - 0x28] */ 5276 ecx = esi; /* 0x360E4434: mov ecx, esi */ 5277 edx = ecx; /* 0x360E4436: mov edx, ecx */ 5278 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x360E4438: shr ecx, 2 */ 5279 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5280 ecx = ecx >> 2u; /* 0x360E4438: shr ecx, 2 */ 5281 esi = 0x362E2308u; /* 0x360E443B: mov esi, 0x362e2308 */ 5282 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360E4440: 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; } 5283 ecx = edx; /* 0x360E4442: mov ecx, edx */ 5284 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 5285 ecx = ecx & 3; /* 0x360E4444: and ecx, 3 */ 5286 _cf = 0; 5287 _flag_k = FK_TEST; 5288 eax = edx; /* 0x360E4447: mov eax, edx */ 5289 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x360E4449: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 5290 PUSH32(esp, eax); /* 0x360E444B: push eax */ 5291 ecx = ebp + (-0x2C); /* 0x360E444C: lea ecx, [ebp - 0x2c] */ 5292 RECOMP_ICALL(MEM32(0x3616F044)); /* 0x360E444F: call dword ptr [0x3616f044] */ 5293 RECOMP_FLAGS_IN(); 5294 L_360E4455: 5295 edx = MEM32(ebx); /* 0x360E4455: mov edx, dword ptr [ebx] */ 5296 PUSH32(esp, 0); /* 0x360E4457: push 0 */ 5297 PUSH32(esp, 1); /* 0x360E4459: push 1 */ 5298 eax = ebp + (-0x2C); /* 0x360E445B: lea eax, [ebp - 0x2c] */ 5299 PUSH32(esp, eax); /* 0x360E445E: push eax */ 5300 ecx = ebx; /* 0x360E445F: mov ecx, ebx */ 5301 MEM32(ebp + (-0x4)) = 4; /* 0x360E4461: mov dword ptr [ebp - 4], 4 */ 5302 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x360E4468: call dword ptr [edx + 0x10] */ 5303 RECOMP_FLAGS_IN(); 5304 PUSH32(esp, 1); /* 0x360E446B: push 1 */ 5305 ecx = ebp + (-0x2C); /* 0x360E446D: lea ecx, [ebp - 0x2c] */ 5306 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360E4470: mov dword ptr [ebp - 4], 0xffffffff */ 5307 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x360E4477: call dword ptr [0x3616f100] */ 5308 RECOMP_FLAGS_IN(); 5309 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x360E447D: mov cl, byte ptr [ebp + 0xb] */ 5310 MEM8(ebp + (-0x1C)) = (uint8_t)(LO8(ecx)); /* 0x360E4480: mov byte ptr [ebp - 0x1c], cl */ 5311 PUSH32(esp, 0); /* 0x360E4483: push 0 */ 5312 ecx = ebp + (-0x1C); /* 0x360E4485: lea ecx, [ebp - 0x1c] */ 5313 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x360E4488: call dword ptr [0x3616f100] */ 5314 RECOMP_FLAGS_IN(); 5315 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 5316 ecx = ecx | 0xFFFFFFFFu; /* 0x360E448E: or ecx, 0xffffffff */ 5317 _cf = 0; 5318 _flag_k = FK_TEST; 5319 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5320 eax = 0; /* 0x360E4491: xor eax, eax */ 5321 _cf = 0; 5322 _flag_k = FK_TEST; 5323 edi = 0x362E22FCu; /* 0x360E4493: mov edi, 0x362e22fc */ 5324 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x360E4498: repne scasb al, byte ptr es:[edi] */ 5325 ecx = ~ecx; /* 0x360E449A: not ecx */ 5326 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5327 ecx = ecx - 1; /* 0x360E449C: dec ecx */ 5328 _flag_k = FK_DEC; 5329 esi = ecx; /* 0x360E449D: mov esi, ecx */ 5330 PUSH32(esp, 1); /* 0x360E449F: push 1 */ 5331 PUSH32(esp, esi); /* 0x360E44A1: push esi */ 5332 ecx = ebp + (-0x1C); /* 0x360E44A2: lea ecx, [ebp - 0x1c] */ 5333 MEM32(ebp + 0x8) = esi; /* 0x360E44A5: mov dword ptr [ebp + 8], esi */ 5334 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x360E44A8: call dword ptr [0x3616f00c] */ 5335 RECOMP_FLAGS_IN(); 5336 /* test LO8(eax), LO8(eax) */ /* 0x360E44AE: test al, al */ 5337 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5338 _cf = 0; 5339 _flag_k = FK_NARROW(FK_TEST, 24); 5340 if (TEST_Z(_flag_a, _flag_b)) goto L_360E44D6; /* 0x360E44B0: je 0x360e44d6 */ 5341 L_360E44B2: 5342 edi = MEM32(ebp + (-0x18)); /* 0x360E44B2: mov edi, dword ptr [ebp - 0x18] */ 5343 ecx = esi; /* 0x360E44B5: mov ecx, esi */ 5344 edx = ecx; /* 0x360E44B7: mov edx, ecx */ 5345 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x360E44B9: shr ecx, 2 */ 5346 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5347 ecx = ecx >> 2u; /* 0x360E44B9: shr ecx, 2 */ 5348 esi = 0x362E22FCu; /* 0x360E44BC: mov esi, 0x362e22fc */ 5349 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360E44C1: 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; } 5350 ecx = edx; /* 0x360E44C3: mov ecx, edx */ 5351 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 5352 ecx = ecx & 3; /* 0x360E44C5: and ecx, 3 */ 5353 _cf = 0; 5354 _flag_k = FK_TEST; 5355 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x360E44C8: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 5356 ecx = MEM32(ebp + (-0x18)); /* 0x360E44CA: mov ecx, dword ptr [ebp - 0x18] */ 5357 eax = edx; /* 0x360E44CD: mov eax, edx */ 5358 MEM32(ebp + (-0x14)) = eax; /* 0x360E44CF: mov dword ptr [ebp - 0x14], eax */ 5359 MEM8(ecx + eax) = (uint8_t)(0); /* 0x360E44D2: mov byte ptr [ecx + eax], 0 */ 5360 L_360E44D6: 5361 edx = MEM32(ebx); /* 0x360E44D6: mov edx, dword ptr [ebx] */ 5362 PUSH32(esp, 0); /* 0x360E44D8: push 0 */ 5363 PUSH32(esp, 1); /* 0x360E44DA: push 1 */ 5364 eax = ebp + (-0x1C); /* 0x360E44DC: lea eax, [ebp - 0x1c] */ 5365 PUSH32(esp, eax); /* 0x360E44DF: push eax */ 5366 ecx = ebx; /* 0x360E44E0: mov ecx, ebx */ 5367 MEM32(ebp + (-0x4)) = 5; /* 0x360E44E2: mov dword ptr [ebp - 4], 5 */ 5368 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x360E44E9: call dword ptr [edx + 0x10] */ 5369 RECOMP_FLAGS_IN(); 5370 eax = MEM32(ebp + (-0x18)); /* 0x360E44EC: mov eax, dword ptr [ebp - 0x18] */ 5371 /* test eax, eax */ /* 0x360E44EF: test eax, eax */ 5372 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5373 _cf = 0; 5374 _flag_k = FK_TEST; 5375 edi = POP32_VAL(esp); /* 0x360E44F1: pop edi */ 5376 esi = POP32_VAL(esp); /* 0x360E44F2: pop esi */ 5377 ebx = POP32_VAL(esp); /* 0x360E44F3: pop ebx */ 5378 if (TEST_Z(_flag_a, _flag_b)) goto L_360E4520; /* 0x360E44F4: je 0x360e4520 */ 5379 L_360E44F6: 5380 ecx = eax + (-0x1); /* 0x360E44F6: lea ecx, [eax - 1] */ 5381 SET_LO8(eax, MEM8(ecx)); /* 0x360E44F9: mov al, byte ptr [ecx] */ 5382 /* test LO8(eax), LO8(eax) */ /* 0x360E44FB: test al, al */ 5383 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5384 _cf = 0; 5385 _flag_k = FK_NARROW(FK_TEST, 24); 5386 if (TEST_Z(_flag_a, _flag_b)) goto L_360E4517; /* 0x360E44FD: je 0x360e4517 */ 5387 L_360E44FF: 5388 /* cmp LO8(eax), 0xFFu */ /* 0x360E44FF: cmp al, 0xff */ 5389 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 5390 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5391 _flag_k = FK_NARROW(FK_CMP, 24); 5392 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E4517; /* 0x360E4501: je 0x360e4517 */ 5393 L_360E4503: 5394 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 5395 SET_LO8(eax, LO8(eax) - 1); /* 0x360E4503: dec al */ 5396 _flag_k = FK_NARROW(FK_DEC, 24); 5397 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x360E4505: mov byte ptr [ecx], al */ 5398 ecx = MEM32(ebp + (-0xC)); /* 0x360E4507: mov ecx, dword ptr [ebp - 0xc] */ 5399 MEM32(FS_BASE + (0)) = ecx; /* 0x360E450A: mov dword ptr fs:[0], ecx */ 5400 esp = ebp; /* 0x360E4511: mov esp, ebp */ 5401 ebp = POP32_VAL(esp); /* 0x360E4513: pop ebp */ 5402 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360E4514: ret 4 */ 5403 L_360E4517: 5404 PUSH32(esp, ecx); /* 0x360E4517: push ecx */ 5405 RECOMP_ICALL(0x3615FCC4u); /* 0x360E4518: call 0x3615fcc4 */ /* not lifted */ 5406 RECOMP_FLAGS_IN(); 5407 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5408 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5409 esp = esp + 4; /* 0x360E451D: add esp, 4 */ 5410 _flag_k = FK_ADD; 5411 L_360E4520: 5412 ecx = MEM32(ebp + (-0xC)); /* 0x360E4520: mov ecx, dword ptr [ebp - 0xc] */ 5413 MEM32(FS_BASE + (0)) = ecx; /* 0x360E4523: mov dword ptr fs:[0], ecx */ 5414 esp = ebp; /* 0x360E452A: mov esp, ebp */ 5415 ebp = POP32_VAL(esp); /* 0x360E452C: pop ebp */ 5416 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360E452D: ret 4 */ 5417 RECOMP_REGS_OUT(); 5418 } 5419 5420 void sub_360E4530(void) { 5421 int _fpu_cmp = 0; 5422 uint32_t _cf = 0; 5423 int _df = 1; 5424 uint32_t _flag_k = FK_NONE; 5425 uint32_t _flag_a = 0, _flag_b = 0; 5426 uint32_t _itail_tgt = 0; 5427 RECOMP_REGS_LOCALS 5428 RECOMP_ENTER(0x360E4530u); 5429 5430 L_360E4530: 5431 PUSH32(esp, ebp); /* 0x360E4530: push ebp */ 5432 ebp = esp; /* 0x360E4531: mov ebp, esp */ 5433 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5434 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5435 esp = esp - 8; /* 0x360E4533: sub esp, 8 */ 5436 _flag_k = FK_CMP; 5437 PUSH32(esp, esi); /* 0x360E4536: push esi */ 5438 PUSH32(esp, edi); /* 0x360E4537: push edi */ 5439 edi = ecx; /* 0x360E4538: mov edi, ecx */ 5440 esi = MEM32(edi + 0x18); /* 0x360E453A: mov esi, dword ptr [edi + 0x18] */ 5441 eax = ebp + 0x8; /* 0x360E453D: lea eax, [ebp + 8] */ 5442 PUSH32(esp, eax); /* 0x360E4540: push eax */ 5443 ecx = esi; /* 0x360E4541: mov ecx, esi */ 5444 RECOMP_ICALL(0x36076670u); /* 0x360E4543: call 0x36076670 */ /* not lifted */ 5445 RECOMP_FLAGS_IN(); 5446 esi = MEM32(esi + 0x4); /* 0x360E4548: mov esi, dword ptr [esi + 4] */ 5447 /* cmp eax, esi */ /* 0x360E454B: cmp eax, esi */ 5448 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 5449 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5450 _flag_k = FK_CMP; 5451 MEM32(ebp + (-0x4)) = eax; /* 0x360E454D: mov dword ptr [ebp - 4], eax */ 5452 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E455F; /* 0x360E4550: je 0x360e455f */ 5453 L_360E4552: 5454 ecx = MEM32(ebp + 0x8); /* 0x360E4552: mov ecx, dword ptr [ebp + 8] */ 5455 /* cmp ecx, MEM32(eax + 0xC) */ /* 0x360E4555: cmp ecx, dword ptr [eax + 0xc] */ 5456 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0xC)); 5457 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5458 _flag_k = FK_CMP; 5459 if (CMP_L(_flag_a, _flag_b)) goto L_360E455F; /* 0x360E4558: jl 0x360e455f */ 5460 L_360E455A: 5461 eax = ebp + (-0x4); /* 0x360E455A: lea eax, [ebp - 4] */ 5462 goto L_360E4565; /* 0x360E455D: jmp 0x360e4565 */ 5463 L_360E455F: 5464 MEM32(ebp + (-0x8)) = esi; /* 0x360E455F: mov dword ptr [ebp - 8], esi */ 5465 eax = ebp + (-0x8); /* 0x360E4562: lea eax, [ebp - 8] */ 5466 L_360E4565: 5467 edx = MEM32(edi + 0x18); /* 0x360E4565: mov edx, dword ptr [edi + 0x18] */ 5468 eax = MEM32(eax); /* 0x360E4568: mov eax, dword ptr [eax] */ 5469 /* cmp eax, MEM32(edx + 0x4) */ /* 0x360E456A: cmp eax, dword ptr [edx + 4] */ 5470 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 5471 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5472 _flag_k = FK_CMP; 5473 edi = POP32_VAL(esp); /* 0x360E456D: pop edi */ 5474 esi = POP32_VAL(esp); /* 0x360E456E: pop esi */ 5475 if (CMP_EQ(_flag_a, _flag_b)) goto L_360E457A; /* 0x360E456F: je 0x360e457a */ 5476 L_360E4571: 5477 eax = MEM32(eax + 0x10); /* 0x360E4571: mov eax, dword ptr [eax + 0x10] */ 5478 esp = ebp; /* 0x360E4574: mov esp, ebp */ 5479 ebp = POP32_VAL(esp); /* 0x360E4576: pop ebp */ 5480 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360E4577: ret 4 */ 5481 L_360E457A: 5482 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5483 eax = 0; /* 0x360E457A: xor eax, eax */ 5484 _cf = 0; 5485 _flag_k = FK_TEST; 5486 esp = ebp; /* 0x360E457C: mov esp, ebp */ 5487 ebp = POP32_VAL(esp); /* 0x360E457E: pop ebp */ 5488 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360E457F: ret 4 */ 5489 RECOMP_REGS_OUT(); 5490 } 5491 5492 void sub_360E4590(void) { 5493 int _fpu_cmp = 0; 5494 uint32_t _cf = 0; 5495 int _df = 1; 5496 uint32_t _flag_k = FK_NONE; 5497 uint32_t _flag_a = 0, _flag_b = 0; 5498 uint32_t _itail_tgt = 0; 5499 RECOMP_REGS_LOCALS 5500 RECOMP_ENTER(0x360E4590u); 5501 5502 L_360E4590: 5503 PUSH32(esp, ebp); /* 0x360E4590: push ebp */ 5504 ebp = esp; /* 0x360E4591: mov ebp, esp */ 5505 PUSH32(esp, esi); /* 0x360E4593: push esi */ 5506 PUSH32(esp, edi); /* 0x360E4594: push edi */ 5507 edi = MEM32(ebp + 0x8); /* 0x360E4595: mov edi, dword ptr [ebp + 8] */ 5508 esi = ecx; /* 0x360E4598: mov esi, ecx */ 5509 PUSH32(esp, edi); /* 0x360E459A: push edi */ 5510 RECOMP_ICALL(MEM32(0x3616FB50)); /* 0x360E459B: call dword ptr [0x3616fb50] */ 5511 RECOMP_FLAGS_IN(); 5512 PUSH32(esp, 0x25Du); /* 0x360E45A1: push 0x25d */ 5513 ecx = esi; /* 0x360E45A6: mov ecx, esi */ 5514 RECOMP_ICALL(0x360E4530u); /* 0x360E45A8: call 0x360e4530 */ /* not lifted */ 5515 RECOMP_FLAGS_IN(); 5516 PUSH32(esp, eax); /* 0x360E45AD: push eax */ 5517 PUSH32(esp, 0x25Cu); /* 0x360E45AE: push 0x25c */ 5518 ecx = esi; /* 0x360E45B3: mov ecx, esi */ 5519 RECOMP_ICALL(0x360E4530u); /* 0x360E45B5: call 0x360e4530 */ /* not lifted */ 5520 RECOMP_FLAGS_IN(); 5521 PUSH32(esp, eax); /* 0x360E45BA: push eax */ 5522 PUSH32(esp, 0x25Bu); /* 0x360E45BB: push 0x25b */ 5523 ecx = esi; /* 0x360E45C0: mov ecx, esi */ 5524 RECOMP_ICALL(0x360E4530u); /* 0x360E45C2: call 0x360e4530 */ /* not lifted */ 5525 RECOMP_FLAGS_IN(); 5526 PUSH32(esp, eax); /* 0x360E45C7: push eax */ 5527 PUSH32(esp, 0x25Au); /* 0x360E45C8: push 0x25a */ 5528 ecx = esi; /* 0x360E45CD: mov ecx, esi */ 5529 RECOMP_ICALL(0x360E4530u); /* 0x360E45CF: call 0x360e4530 */ /* not lifted */ 5530 RECOMP_FLAGS_IN(); 5531 PUSH32(esp, eax); /* 0x360E45D4: push eax */ 5532 PUSH32(esp, 0x259u); /* 0x360E45D5: push 0x259 */ 5533 ecx = esi; /* 0x360E45DA: mov ecx, esi */ 5534 RECOMP_ICALL(0x360E4530u); /* 0x360E45DC: call 0x360e4530 */ /* not lifted */ 5535 RECOMP_FLAGS_IN(); 5536 PUSH32(esp, eax); /* 0x360E45E1: push eax */ 5537 PUSH32(esp, 0x258u); /* 0x360E45E2: push 0x258 */ 5538 ecx = esi; /* 0x360E45E7: mov ecx, esi */ 5539 RECOMP_ICALL(0x360E4530u); /* 0x360E45E9: call 0x360e4530 */ /* not lifted */ 5540 RECOMP_FLAGS_IN(); 5541 PUSH32(esp, eax); /* 0x360E45EE: push eax */ 5542 PUSH32(esp, edi); /* 0x360E45EF: push edi */ 5543 RECOMP_ICALL(0x3615F988u); /* 0x360E45F0: call 0x3615f988 */ /* not lifted */ 5544 RECOMP_FLAGS_IN(); 5545 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5546 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5547 esp = esp + 8; /* 0x360E45F5: add esp, 8 */ 5548 _flag_k = FK_ADD; 5549 PUSH32(esp, eax); /* 0x360E45F8: push eax */ 5550 RECOMP_ICALL(0x3615F988u); /* 0x360E45F9: call 0x3615f988 */ /* not lifted */ 5551 RECOMP_FLAGS_IN(); 5552 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5553 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5554 esp = esp + 8; /* 0x360E45FE: add esp, 8 */ 5555 _flag_k = FK_ADD; 5556 PUSH32(esp, eax); /* 0x360E4601: push eax */ 5557 RECOMP_ICALL(0x3615F988u); /* 0x360E4602: call 0x3615f988 */ /* not lifted */ 5558 RECOMP_FLAGS_IN(); 5559 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5560 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5561 esp = esp + 8; /* 0x360E4607: add esp, 8 */ 5562 _flag_k = FK_ADD; 5563 PUSH32(esp, eax); /* 0x360E460A: push eax */ 5564 RECOMP_ICALL(0x3615F988u); /* 0x360E460B: call 0x3615f988 */ /* not lifted */ 5565 RECOMP_FLAGS_IN(); 5566 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5567 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5568 esp = esp + 8; /* 0x360E4610: add esp, 8 */ 5569 _flag_k = FK_ADD; 5570 PUSH32(esp, eax); /* 0x360E4613: push eax */ 5571 RECOMP_ICALL(0x3615F988u); /* 0x360E4614: call 0x3615f988 */ /* not lifted */ 5572 RECOMP_FLAGS_IN(); 5573 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5574 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5575 esp = esp + 8; /* 0x360E4619: add esp, 8 */ 5576 _flag_k = FK_ADD; 5577 PUSH32(esp, eax); /* 0x360E461C: push eax */ 5578 RECOMP_ICALL(0x3615F988u); /* 0x360E461D: call 0x3615f988 */ /* not lifted */ 5579 RECOMP_FLAGS_IN(); 5580 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5581 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5582 esp = esp + 8; /* 0x360E4622: add esp, 8 */ 5583 _flag_k = FK_ADD; 5584 edi = POP32_VAL(esp); /* 0x360E4625: pop edi */ 5585 esi = POP32_VAL(esp); /* 0x360E4626: pop esi */ 5586 ebp = POP32_VAL(esp); /* 0x360E4627: pop ebp */ 5587 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360E4628: ret 4 */ 5588 RECOMP_REGS_OUT(); 5589 } 5590 5591 void sub_360E4630(void) { 5592 int _fpu_cmp = 0; 5593 uint32_t _cf = 0; 5594 int _df = 1; 5595 uint32_t _flag_k = FK_NONE; 5596 uint32_t _flag_a = 0, _flag_b = 0; 5597 uint32_t _itail_tgt = 0; 5598 RECOMP_REGS_LOCALS 5599 RECOMP_ENTER(0x360E4630u); 5600 5601 L_360E4630: 5602 PUSH32(esp, ebp); /* 0x360E4630: push ebp */ 5603 ebp = esp; /* 0x360E4631: mov ebp, esp */ 5604 PUSH32(esp, esi); /* 0x360E4633: push esi */ 5605 PUSH32(esp, edi); /* 0x360E4634: push edi */ 5606 edi = MEM32(ebp + 0x8); /* 0x360E4635: mov edi, dword ptr [ebp + 8] */ 5607 esi = ecx; /* 0x360E4638: mov esi, ecx */ 5608 PUSH32(esp, edi); /* 0x360E463A: push edi */ 5609 RECOMP_ICALL(MEM32(0x3616FB58)); /* 0x360E463B: call dword ptr [0x3616fb58] */ 5610 RECOMP_FLAGS_IN(); 5611 /* test LO8(eax), LO8(eax) */ /* 0x360E4641: test al, al */ 5612 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5613 _cf = 0; 5614 _flag_k = FK_NARROW(FK_TEST, 24); 5615 if (TEST_NZ(_flag_a, _flag_b)) goto L_360E464B; /* 0x360E4643: jne 0x360e464b */ 5616 L_360E4645: 5617 edi = POP32_VAL(esp); /* 0x360E4645: pop edi */ 5618 esi = POP32_VAL(esp); /* 0x360E4646: pop esi */ 5619 ebp = POP32_VAL(esp); /* 0x360E4647: pop ebp */ 5620 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360E4648: ret 4 */ 5621 L_360E464B: 5622 eax = ebp + 0x8; /* 0x360E464B: lea eax, [ebp + 8] */ 5623 PUSH32(esp, eax); /* 0x360E464E: push eax */ 5624 PUSH32(esp, edi); /* 0x360E464F: push edi */ 5625 RECOMP_ICALL(0x3615F98Eu); /* 0x360E4650: call 0x3615f98e */ /* not lifted */ 5626 RECOMP_FLAGS_IN(); 5627 ecx = MEM32(ebp + 0x8); /* 0x360E4655: mov ecx, dword ptr [ebp + 8] */ 5628 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5629 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5630 esp = esp + 8; /* 0x360E4658: add esp, 8 */ 5631 _flag_k = FK_ADD; 5632 PUSH32(esp, ecx); /* 0x360E465B: push ecx */ 5633 PUSH32(esp, 0x258u); /* 0x360E465C: push 0x258 */ 5634 ecx = esi; /* 0x360E4661: mov ecx, esi */ 5635 RECOMP_ICALL(0x360EDD30u); /* 0x360E4663: call 0x360edd30 */ /* not lifted */ 5636 RECOMP_FLAGS_IN(); 5637 edx = ebp + 0x8; /* 0x360E4668: lea edx, [ebp + 8] */ 5638 PUSH32(esp, edx); /* 0x360E466B: push edx */ 5639 PUSH32(esp, edi); /* 0x360E466C: push edi */ 5640 RECOMP_ICALL(0x3615F98Eu); /* 0x360E466D: call 0x3615f98e */ /* not lifted */ 5641 RECOMP_FLAGS_IN(); 5642 eax = MEM32(ebp + 0x8); /* 0x360E4672: mov eax, dword ptr [ebp + 8] */ 5643 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5644 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5645 esp = esp + 8; /* 0x360E4675: add esp, 8 */ 5646 _flag_k = FK_ADD; 5647 PUSH32(esp, eax); /* 0x360E4678: push eax */ 5648 PUSH32(esp, 0x259u); /* 0x360E4679: push 0x259 */ 5649 ecx = esi; /* 0x360E467E: mov ecx, esi */ 5650 RECOMP_ICALL(0x360EDD30u); /* 0x360E4680: call 0x360edd30 */ /* not lifted */ 5651 RECOMP_FLAGS_IN(); 5652 ecx = ebp + 0x8; /* 0x360E4685: lea ecx, [ebp + 8] */ 5653 PUSH32(esp, ecx); /* 0x360E4688: push ecx */ 5654 PUSH32(esp, edi); /* 0x360E4689: push edi */ 5655 RECOMP_ICALL(0x3615F98Eu); /* 0x360E468A: call 0x3615f98e */ /* not lifted */ 5656 RECOMP_FLAGS_IN(); 5657 edx = MEM32(ebp + 0x8); /* 0x360E468F: mov edx, dword ptr [ebp + 8] */ 5658 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5659 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5660 esp = esp + 8; /* 0x360E4692: add esp, 8 */ 5661 _flag_k = FK_ADD; 5662 PUSH32(esp, edx); /* 0x360E4695: push edx */ 5663 PUSH32(esp, 0x25Au); /* 0x360E4696: push 0x25a */ 5664 ecx = esi; /* 0x360E469B: mov ecx, esi */ 5665 RECOMP_ICALL(0x360EDD30u); /* 0x360E469D: call 0x360edd30 */ /* not lifted */ 5666 RECOMP_FLAGS_IN(); 5667 eax = ebp + 0x8; /* 0x360E46A2: lea eax, [ebp + 8] */ 5668 PUSH32(esp, eax); /* 0x360E46A5: push eax */ 5669 PUSH32(esp, edi); /* 0x360E46A6: push edi */ 5670 RECOMP_ICALL(0x3615F98Eu); /* 0x360E46A7: call 0x3615f98e */ /* not lifted */ 5671 RECOMP_FLAGS_IN(); 5672 ecx = MEM32(ebp + 0x8); /* 0x360E46AC: mov ecx, dword ptr [ebp + 8] */ 5673 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5674 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5675 esp = esp + 8; /* 0x360E46AF: add esp, 8 */ 5676 _flag_k = FK_ADD; 5677 PUSH32(esp, ecx); /* 0x360E46B2: push ecx */ 5678 PUSH32(esp, 0x25Bu); /* 0x360E46B3: push 0x25b */ 5679 ecx = esi; /* 0x360E46B8: mov ecx, esi */ 5680 RECOMP_ICALL(0x360EDD30u); /* 0x360E46BA: call 0x360edd30 */ /* not lifted */ 5681 RECOMP_FLAGS_IN(); 5682 edx = ebp + 0x8; /* 0x360E46BF: lea edx, [ebp + 8] */ 5683 PUSH32(esp, edx); /* 0x360E46C2: push edx */ 5684 PUSH32(esp, edi); /* 0x360E46C3: push edi */ 5685 RECOMP_ICALL(0x3615F98Eu); /* 0x360E46C4: call 0x3615f98e */ /* not lifted */ 5686 RECOMP_FLAGS_IN(); 5687 eax = MEM32(ebp + 0x8); /* 0x360E46C9: mov eax, dword ptr [ebp + 8] */ 5688 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5689 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5690 esp = esp + 8; /* 0x360E46CC: add esp, 8 */ 5691 _flag_k = FK_ADD; 5692 PUSH32(esp, eax); /* 0x360E46CF: push eax */ 5693 PUSH32(esp, 0x25Cu); /* 0x360E46D0: push 0x25c */ 5694 ecx = esi; /* 0x360E46D5: mov ecx, esi */ 5695 RECOMP_ICALL(0x360EDD30u); /* 0x360E46D7: call 0x360edd30 */ /* not lifted */ 5696 RECOMP_FLAGS_IN(); 5697 ecx = ebp + 0x8; /* 0x360E46DC: lea ecx, [ebp + 8] */ 5698 PUSH32(esp, ecx); /* 0x360E46DF: push ecx */ 5699 PUSH32(esp, edi); /* 0x360E46E0: push edi */ 5700 RECOMP_ICALL(0x3615F98Eu); /* 0x360E46E1: call 0x3615f98e */ /* not lifted */ 5701 RECOMP_FLAGS_IN(); 5702 edx = MEM32(ebp + 0x8); /* 0x360E46E6: mov edx, dword ptr [ebp + 8] */ 5703 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5704 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5705 esp = esp + 8; /* 0x360E46E9: add esp, 8 */ 5706 _flag_k = FK_ADD; 5707 PUSH32(esp, edx); /* 0x360E46EC: push edx */ 5708 PUSH32(esp, 0x25Du); /* 0x360E46ED: push 0x25d */ 5709 ecx = esi; /* 0x360E46F2: mov ecx, esi */ 5710 RECOMP_ICALL(0x360EDD30u); /* 0x360E46F4: call 0x360edd30 */ /* not lifted */ 5711 RECOMP_FLAGS_IN(); 5712 edi = POP32_VAL(esp); /* 0x360E46F9: pop edi */ 5713 SET_LO8(eax, 1); /* 0x360E46FA: mov al, 1 */ 5714 esi = POP32_VAL(esp); /* 0x360E46FC: pop esi */ 5715 ebp = POP32_VAL(esp); /* 0x360E46FD: pop ebp */ 5716 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360E46FE: ret 4 */ 5717 RECOMP_REGS_OUT(); 5718 } 5719 5720 void sub_360E4710(void) { 5721 int _fpu_cmp = 0; 5722 uint32_t _cf = 0; 5723 int _df = 1; 5724 uint32_t _flag_k = FK_NONE; 5725 uint32_t _flag_a = 0, _flag_b = 0; 5726 uint32_t _itail_tgt = 0; 5727 RECOMP_REGS_LOCALS 5728 RECOMP_ENTER(0x360E4710u); 5729 5730 L_360E4710: 5731 PUSH32(esp, ebp); /* 0x360E4710: push ebp */ 5732 ebp = esp; /* 0x360E4711: mov ebp, esp */ 5733 eax = MEM32(0x36306F5C); /* 0x360E4713: mov eax, dword ptr [0x36306f5c] */ 5734 PUSH32(esp, esi); /* 0x360E4718: push esi */ 5735 esi = MEM32(ebp + 0x8); /* 0x360E4719: mov esi, dword ptr [ebp + 8] */ 5736 ecx = MEM32(eax + esi * 4); /* 0x360E471C: mov ecx, dword ptr [eax + esi*4] */ 5737 /* test ecx, ecx */ /* 0x360E471F: test ecx, ecx */ 5738 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5739 _cf = 0; 5740 _flag_k = FK_TEST; 5741 if (TEST_Z(_flag_a, _flag_b)) goto L_360E4738; /* 0x360E4721: je 0x360e4738 */ 5742 L_360E4723: 5743 RECOMP_ICALL(MEM32(0x3616FB14)); /* 0x360E4723: call dword ptr [0x3616fb14] */ 5744 RECOMP_FLAGS_IN(); 5745 eax = MEM32(ebp + 0xC); /* 0x360E4729: mov eax, dword ptr [ebp + 0xc] */ 5746 ecx = MEM32(0x36306F5C); /* 0x360E472C: mov ecx, dword ptr [0x36306f5c] */ 5747 MEM32(ecx + esi * 4) = eax; /* 0x360E4732: mov dword ptr [ecx + esi*4], eax */ 5748 esi = POP32_VAL(esp); /* 0x360E4735: pop esi */ 5749 ebp = POP32_VAL(esp); /* 0x360E4736: pop ebp */ 5750 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E4737: ret */ 5751 L_360E4738: 5752 edx = MEM32(ebp + 0xC); /* 0x360E4738: mov edx, dword ptr [ebp + 0xc] */ 5753 MEM32(eax + esi * 4) = edx; /* 0x360E473B: mov dword ptr [eax + esi*4], edx */ 5754 esi = POP32_VAL(esp); /* 0x360E473E: pop esi */ 5755 ebp = POP32_VAL(esp); /* 0x360E473F: pop ebp */ 5756 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E4740: ret */ 5757 RECOMP_REGS_OUT(); 5758 } 5759 5760 void sub_360E4750(void) { 5761 int _fpu_cmp = 0; 5762 uint32_t _cf = 0; 5763 int _df = 1; 5764 uint32_t _flag_k = FK_NONE; 5765 uint32_t _flag_a = 0, _flag_b = 0; 5766 uint32_t _itail_tgt = 0; 5767 RECOMP_REGS_LOCALS 5768 RECOMP_ENTER(0x360E4750u); 5769 5770 L_360E4750: 5771 PUSH32(esp, ebp); /* 0x360E4750: push ebp */ 5772 ebp = esp; /* 0x360E4751: mov ebp, esp */ 5773 ecx = MEM32(ebp + 0x8); /* 0x360E4753: mov ecx, dword ptr [ebp + 8] */ 5774 /* test ecx, ecx */ /* 0x360E4756: test ecx, ecx */ 5775 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5776 _cf = 0; 5777 _flag_k = FK_TEST; 5778 if (TEST_S(_flag_a, _flag_b)) goto L_360E4777; /* 0x360E4758: jl 0x360e4777 */ 5779 L_360E475A: 5780 eax = MEM32(0x36306F5C); /* 0x360E475A: mov eax, dword ptr [0x36306f5c] */ 5781 /* test eax, eax */ /* 0x360E475F: test eax, eax */ 5782 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5783 _cf = 0; 5784 _flag_k = FK_TEST; 5785 if (TEST_Z(_flag_a, _flag_b)) goto L_360E4777; /* 0x360E4761: je 0x360e4777 */ 5786 L_360E4763: 5787 edx = MEM32(0x36306F60); /* 0x360E4763: mov edx, dword ptr [0x36306f60] */ 5788 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 5789 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5790 edx = edx - eax; /* 0x360E4769: sub edx, eax */ 5791 _flag_k = FK_CMP; 5792 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x360E476B: sar edx, 2 */ 5793 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5794 edx = (uint32_t)((int32_t)edx >> 2u); 5795 /* cmp ecx, edx */ /* 0x360E476E: cmp ecx, edx */ 5796 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 5797 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5798 _flag_k = FK_CMP; 5799 if (CMP_AE(_flag_a, _flag_b)) goto L_360E4777; /* 0x360E4770: jae 0x360e4777 */ 5800 L_360E4772: 5801 eax = MEM32(eax + ecx * 4); /* 0x360E4772: mov eax, dword ptr [eax + ecx*4] */ 5802 ebp = POP32_VAL(esp); /* 0x360E4775: pop ebp */ 5803 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E4776: ret */ 5804 L_360E4777: 5805 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5806 eax = 0; /* 0x360E4777: xor eax, eax */ 5807 _cf = 0; 5808 _flag_k = FK_TEST; 5809 ebp = POP32_VAL(esp); /* 0x360E4779: pop ebp */ 5810 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E477A: ret */ 5811 RECOMP_REGS_OUT(); 5812 } 5813 5814 void sub_360E4780(void) { 5815 int _fpu_cmp = 0; 5816 uint32_t _cf = 0; 5817 int _df = 1; 5818 uint32_t _flag_k = FK_NONE; 5819 uint32_t _flag_a = 0, _flag_b = 0; 5820 uint32_t _itail_tgt = 0; 5821 RECOMP_REGS_LOCALS 5822 RECOMP_ENTER(0x360E4780u); 5823 5824 L_360E4780: 5825 PUSH32(esp, ebp); /* 0x360E4780: push ebp */ 5826 ebp = esp; /* 0x360E4781: mov ebp, esp */ 5827 PUSH32(esp, 0x400u); /* 0x360E4783: push 0x400 */ 5828 RECOMP_ICALL(0x360EF780u); /* 0x360E4788: call 0x360ef780 */ /* not lifted */ 5829 RECOMP_FLAGS_IN(); 5830 ecx = eax; /* 0x360E478D: mov ecx, eax */ 5831 RECOMP_ICALL(0x360EFD30u); /* 0x360E478F: call 0x360efd30 */ /* not lifted */ 5832 RECOMP_FLAGS_IN(); 5833 /* test LO8(eax), LO8(eax) */ /* 0x360E4794: test al, al */ 5834 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5835 _cf = 0; 5836 _flag_k = FK_NARROW(FK_TEST, 24); 5837 if (TEST_NZ(_flag_a, _flag_b)) goto L_360E479F; /* 0x360E4796: jne 0x360e479f */ 5838 L_360E4798: 5839 eax = 1; /* 0x360E4798: mov eax, 1 */ 5840 ebp = POP32_VAL(esp); /* 0x360E479D: pop ebp */ 5841 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E479E: ret */ 5842 L_360E479F: 5843 eax = MEM32(ebp + 0x8); /* 0x360E479F: mov eax, dword ptr [ebp + 8] */ 5844 PUSH32(esp, eax); /* 0x360E47A2: push eax */ 5845 RECOMP_ICALL(0x360E4750u); /* 0x360E47A3: call 0x360e4750 */ /* not lifted */ 5846 RECOMP_FLAGS_IN(); 5847 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5848 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5849 esp = esp + 4; /* 0x360E47A8: add esp, 4 */ 5850 _flag_k = FK_ADD; 5851 /* test eax, eax */ /* 0x360E47AB: test eax, eax */ 5852 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5853 _cf = 0; 5854 _flag_k = FK_TEST; 5855 if (TEST_NZ(_flag_a, _flag_b)) goto L_360E47B6; /* 0x360E47AD: jne 0x360e47b6 */ 5856 L_360E47AF: 5857 eax = 2; /* 0x360E47AF: mov eax, 2 */ 5858 ebp = POP32_VAL(esp); /* 0x360E47B4: pop ebp */ 5859 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E47B5: ret */ 5860 L_360E47B6: 5861 edx = MEM32(ebp + 0xC); /* 0x360E47B6: mov edx, dword ptr [ebp + 0xc] */ 5862 /* cmp edx, 0x258u */ /* 0x360E47B9: cmp edx, 0x258 */ 5863 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x258u); 5864 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5865 _flag_k = FK_CMP; 5866 if (CMP_L(_flag_a, _flag_b)) goto L_360E47D3; /* 0x360E47BF: jl 0x360e47d3 */ 5867 L_360E47C1: 5868 /* cmp edx, 0x25Du */ /* 0x360E47C1: cmp edx, 0x25d */ 5869 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x25Du); 5870 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5871 _flag_k = FK_CMP; 5872 if (CMP_G(_flag_a, _flag_b)) goto L_360E47D3; /* 0x360E47C7: jg 0x360e47d3 */ 5873 L_360E47C9: 5874 PUSH32(esp, edx); /* 0x360E47C9: push edx */ 5875 ecx = eax; /* 0x360E47CA: mov ecx, eax */ 5876 RECOMP_ICALL(0x360E4530u); /* 0x360E47CC: call 0x360e4530 */ /* not lifted */ 5877 RECOMP_FLAGS_IN(); 5878 ebp = POP32_VAL(esp); /* 0x360E47D1: pop ebp */ 5879 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E47D2: ret */ 5880 L_360E47D3: 5881 eax = 3; /* 0x360E47D3: mov eax, 3 */ 5882 ebp = POP32_VAL(esp); /* 0x360E47D8: pop ebp */ 5883 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E47D9: ret */ 5884 RECOMP_REGS_OUT(); 5885 } 5886 5887 void sub_360E47E0(void) { 5888 int _fpu_cmp = 0; 5889 uint32_t _cf = 0; 5890 int _df = 1; 5891 uint32_t _flag_k = FK_NONE; 5892 uint32_t _flag_a = 0, _flag_b = 0; 5893 uint32_t _itail_tgt = 0; 5894 RECOMP_REGS_LOCALS 5895 RECOMP_ENTER(0x360E47E0u); 5896 5897 L_360E47E0: 5898 PUSH32(esp, ebp); /* 0x360E47E0: push ebp */ 5899 ebp = esp; /* 0x360E47E1: mov ebp, esp */ 5900 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5901 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5902 esp = esp - 8; /* 0x360E47E3: sub esp, 8 */ 5903 _flag_k = FK_CMP; 5904 eax = MEM32(0x3616FF74); /* 0x360E47E6: mov eax, dword ptr [0x3616ff74] */ 5905 eax = MEM32(eax); /* 0x360E47EB: mov eax, dword ptr [eax] */ 5906 PUSH32(esp, esi); /* 0x360E47ED: push esi */ 5907 PUSH32(esp, edi); /* 0x360E47EE: push edi */ 5908 edi = ecx; /* 0x360E47EF: mov edi, ecx */ 5909 ecx = MEM32(edi + 0x8); /* 0x360E47F1: mov ecx, dword ptr [edi + 8] */ 5910 MEM32(ebp + (-0x8)) = 0x000F430Bu; /* 0x360E47F4: mov dword ptr [ebp - 8], 0xf430b */ 5911 MEM32(ebp + (-0x4)) = ecx; /* 0x360E47FB: mov dword ptr [ebp - 4], ecx */ 5912 ecx = MEM32(eax + 0x60); /* 0x360E47FE: mov ecx, dword ptr [eax + 0x60] */ 5913 /* test ecx, ecx */ /* 0x360E4801: test ecx, ecx */ 5914 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5915 _cf = 0; 5916 _flag_k = FK_TEST; 5917 if (TEST_Z(_flag_a, _flag_b)) goto L_360E482E; /* 0x360E4803: je 0x360e482e */ 5918 L_360E4805: 5919 edx = ebp + (-0x8); /* 0x360E4805: lea edx, [ebp - 8] */ 5920 PUSH32(esp, edx); /* 0x360E4808: push edx */ 5921 RECOMP_ICALL(MEM32(0x3616FB18)); /* 0x360E4809: call dword ptr [0x3616fb18] */ 5922 RECOMP_FLAGS_IN(); 5923 esi = eax; /* 0x360E480F: mov esi, eax */ 5924 /* test esi, esi */ /* 0x360E4811: test esi, esi */ 5925 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 5926 _cf = 0; 5927 _flag_k = FK_TEST; 5928 if (TEST_Z(_flag_a, _flag_b)) goto L_360E482E; /* 0x360E4813: je 0x360e482e */ 5929 L_360E4815: 5930 PUSH32(esp, esi); /* 0x360E4815: push esi */ 5931 ecx = edi; /* 0x360E4816: mov ecx, edi */ 5932 RECOMP_ICALL(0x360E4840u); /* 0x360E4818: call 0x360e4840 */ /* not lifted */ 5933 RECOMP_FLAGS_IN(); 5934 ecx = esi; /* 0x360E481D: mov ecx, esi */ 5935 RECOMP_ICALL(MEM32(0x3616FAB4)); /* 0x360E481F: call dword ptr [0x3616fab4] */ 5936 RECOMP_FLAGS_IN(); 5937 PUSH32(esp, esi); /* 0x360E4825: push esi */ 5938 RECOMP_ICALL(0x3615FCC4u); /* 0x360E4826: call 0x3615fcc4 */ /* not lifted */ 5939 RECOMP_FLAGS_IN(); 5940 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5941 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5942 esp = esp + 4; /* 0x360E482B: add esp, 4 */ 5943 _flag_k = FK_ADD; 5944 L_360E482E: 5945 edi = POP32_VAL(esp); /* 0x360E482E: pop edi */ 5946 esi = POP32_VAL(esp); /* 0x360E482F: pop esi */ 5947 esp = ebp; /* 0x360E4830: mov esp, ebp */ 5948 ebp = POP32_VAL(esp); /* 0x360E4832: pop ebp */ 5949 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E4833: ret */ 5950 RECOMP_REGS_OUT(); 5951 } 5952 5953 void sub_360E4840(void) { 5954 int _fpu_cmp = 0; 5955 uint32_t _cf = 0; 5956 int _df = 1; 5957 uint32_t _flag_k = FK_NONE; 5958 uint32_t _flag_a = 0, _flag_b = 0; 5959 uint32_t _itail_tgt = 0; 5960 RECOMP_REGS_LOCALS 5961 RECOMP_ENTER(0x360E4840u); 5962 5963 L_360E4840: 5964 PUSH32(esp, ebp); /* 0x360E4840: push ebp */ 5965 ebp = esp; /* 0x360E4841: mov ebp, esp */ 5966 PUSH32(esp, ebx); /* 0x360E4843: push ebx */ 5967 ebx = MEM32(0x3616FA8C); /* 0x360E4844: mov ebx, dword ptr [0x3616fa8c] */ 5968 PUSH32(esp, esi); /* 0x360E484A: push esi */ 5969 PUSH32(esp, edi); /* 0x360E484B: push edi */ 5970 edi = MEM32(ebp + 0x8); /* 0x360E484C: mov edi, dword ptr [ebp + 8] */ 5971 eax = ebp + 0x8; /* 0x360E484F: lea eax, [ebp + 8] */ 5972 esi = ecx; /* 0x360E4852: mov esi, ecx */ 5973 PUSH32(esp, eax); /* 0x360E4854: push eax */ 5974 ecx = edi; /* 0x360E4855: mov ecx, edi */ 5975 RECOMP_ICALL(ebx); /* 0x360E4857: call ebx */ 5976 RECOMP_FLAGS_IN(); 5977 ecx = MEM32(ebp + 0x8); /* 0x360E4859: mov ecx, dword ptr [ebp + 8] */ 5978 PUSH32(esp, ecx); /* 0x360E485C: push ecx */ 5979 PUSH32(esp, 0x258u); /* 0x360E485D: push 0x258 */ 5980 ecx = esi; /* 0x360E4862: mov ecx, esi */ 5981 RECOMP_ICALL(0x360EDD30u); /* 0x360E4864: call 0x360edd30 */ /* not lifted */ 5982 RECOMP_FLAGS_IN(); 5983 edx = ebp + 0x8; /* 0x360E4869: lea edx, [ebp + 8] */ 5984 PUSH32(esp, edx); /* 0x360E486C: push edx */ 5985 ecx = edi; /* 0x360E486D: mov ecx, edi */ 5986 RECOMP_ICALL(ebx); /* 0x360E486F: call ebx */ 5987 RECOMP_FLAGS_IN(); 5988 eax = MEM32(ebp + 0x8); /* 0x360E4871: mov eax, dword ptr [ebp + 8] */ 5989 PUSH32(esp, eax); /* 0x360E4874: push eax */ 5990 PUSH32(esp, 0x259u); /* 0x360E4875: push 0x259 */ 5991 ecx = esi; /* 0x360E487A: mov ecx, esi */ 5992 RECOMP_ICALL(0x360EDD30u); /* 0x360E487C: call 0x360edd30 */ /* not lifted */ 5993 RECOMP_FLAGS_IN(); 5994 ecx = ebp + 0x8; /* 0x360E4881: lea ecx, [ebp + 8] */ 5995 PUSH32(esp, ecx); /* 0x360E4884: push ecx */ 5996 ecx = edi; /* 0x360E4885: mov ecx, edi */ 5997 RECOMP_ICALL(ebx); /* 0x360E4887: call ebx */ 5998 RECOMP_FLAGS_IN(); 5999 edx = MEM32(ebp + 0x8); /* 0x360E4889: mov edx, dword ptr [ebp + 8] */ 6000 PUSH32(esp, edx); /* 0x360E488C: push edx */ 6001 PUSH32(esp, 0x25Au); /* 0x360E488D: push 0x25a */ 6002 ecx = esi; /* 0x360E4892: mov ecx, esi */ 6003 RECOMP_ICALL(0x360EDD30u); /* 0x360E4894: call 0x360edd30 */ /* not lifted */ 6004 RECOMP_FLAGS_IN(); 6005 eax = ebp + 0x8; /* 0x360E4899: lea eax, [ebp + 8] */ 6006 PUSH32(esp, eax); /* 0x360E489C: push eax */ 6007 ecx = edi; /* 0x360E489D: mov ecx, edi */ 6008 RECOMP_ICALL(ebx); /* 0x360E489F: call ebx */ 6009 RECOMP_FLAGS_IN(); 6010 ecx = MEM32(ebp + 0x8); /* 0x360E48A1: mov ecx, dword ptr [ebp + 8] */ 6011 PUSH32(esp, ecx); /* 0x360E48A4: push ecx */ 6012 PUSH32(esp, 0x25Bu); /* 0x360E48A5: push 0x25b */ 6013 ecx = esi; /* 0x360E48AA: mov ecx, esi */ 6014 RECOMP_ICALL(0x360EDD30u); /* 0x360E48AC: call 0x360edd30 */ /* not lifted */ 6015 RECOMP_FLAGS_IN(); 6016 edx = ebp + 0x8; /* 0x360E48B1: lea edx, [ebp + 8] */ 6017 PUSH32(esp, edx); /* 0x360E48B4: push edx */ 6018 ecx = edi; /* 0x360E48B5: mov ecx, edi */ 6019 RECOMP_ICALL(ebx); /* 0x360E48B7: call ebx */ 6020 RECOMP_FLAGS_IN(); 6021 eax = MEM32(ebp + 0x8); /* 0x360E48B9: mov eax, dword ptr [ebp + 8] */ 6022 PUSH32(esp, eax); /* 0x360E48BC: push eax */ 6023 PUSH32(esp, 0x25Cu); /* 0x360E48BD: push 0x25c */ 6024 ecx = esi; /* 0x360E48C2: mov ecx, esi */ 6025 RECOMP_ICALL(0x360EDD30u); /* 0x360E48C4: call 0x360edd30 */ /* not lifted */ 6026 RECOMP_FLAGS_IN(); 6027 ecx = ebp + 0x8; /* 0x360E48C9: lea ecx, [ebp + 8] */ 6028 PUSH32(esp, ecx); /* 0x360E48CC: push ecx */ 6029 ecx = edi; /* 0x360E48CD: mov ecx, edi */ 6030 RECOMP_ICALL(ebx); /* 0x360E48CF: call ebx */ 6031 RECOMP_FLAGS_IN(); 6032 edx = MEM32(ebp + 0x8); /* 0x360E48D1: mov edx, dword ptr [ebp + 8] */ 6033 PUSH32(esp, edx); /* 0x360E48D4: push edx */ 6034 PUSH32(esp, 0x25Du); /* 0x360E48D5: push 0x25d */ 6035 ecx = esi; /* 0x360E48DA: mov ecx, esi */ 6036 RECOMP_ICALL(0x360EDD30u); /* 0x360E48DC: call 0x360edd30 */ /* not lifted */ 6037 RECOMP_FLAGS_IN(); 6038 edi = POP32_VAL(esp); /* 0x360E48E1: pop edi */ 6039 esi = POP32_VAL(esp); /* 0x360E48E2: pop esi */ 6040 ebx = POP32_VAL(esp); /* 0x360E48E3: pop ebx */ 6041 ebp = POP32_VAL(esp); /* 0x360E48E4: pop ebp */ 6042 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360E48E5: ret 4 */ 6043 RECOMP_REGS_OUT(); 6044 } 6045 6046 void sub_360E48F0(void) { 6047 int _fpu_cmp = 0; 6048 uint32_t _cf = 0; 6049 int _df = 1; 6050 uint32_t _flag_k = FK_NONE; 6051 uint32_t _flag_a = 0, _flag_b = 0; 6052 uint32_t _itail_tgt = 0; 6053 RECOMP_REGS_LOCALS 6054 RECOMP_ENTER(0x360E48F0u); 6055 6056 L_360E48F0: 6057 goto L_360E4900; /* 0x360E48F0: jmp 0x360e4900 */ 6058 L_360E4900: 6059 MEM32(0x36307004) = 0x361B2FF4u; /* 0x360E4900: mov dword ptr [0x36307004], 0x361b2ff4 */ 6060 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E490A: ret */ 6061 RECOMP_REGS_OUT(); 6062 } 6063 6064 void sub_360E4900(void) { 6065 int _fpu_cmp = 0; 6066 uint32_t _cf = 0; 6067 int _df = 1; 6068 uint32_t _flag_k = FK_NONE; 6069 uint32_t _flag_a = 0, _flag_b = 0; 6070 uint32_t _itail_tgt = 0; 6071 RECOMP_REGS_LOCALS 6072 RECOMP_ENTER(0x360E4900u); 6073 6074 L_360E4900: 6075 MEM32(0x36307004) = 0x361B2FF4u; /* 0x360E4900: mov dword ptr [0x36307004], 0x361b2ff4 */ 6076 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E490A: ret */ 6077 RECOMP_REGS_OUT(); 6078 } 6079 6080 void sub_360E4910(void) { 6081 int _fpu_cmp = 0; 6082 uint32_t _cf = 0; 6083 int _df = 1; 6084 uint32_t _flag_k = FK_NONE; 6085 uint32_t _flag_a = 0, _flag_b = 0; 6086 uint32_t _itail_tgt = 0; 6087 RECOMP_REGS_LOCALS 6088 RECOMP_ENTER(0x360E4910u); 6089 6090 L_360E4910: 6091 goto L_360E4920; /* 0x360E4910: jmp 0x360e4920 */ 6092 L_360E4920: 6093 MEM32(0x36307000) = 0x361B3028u; /* 0x360E4920: mov dword ptr [0x36307000], 0x361b3028 */ 6094 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E492A: ret */ 6095 RECOMP_REGS_OUT(); 6096 } 6097 6098 void sub_360E4920(void) { 6099 int _fpu_cmp = 0; 6100 uint32_t _cf = 0; 6101 int _df = 1; 6102 uint32_t _flag_k = FK_NONE; 6103 uint32_t _flag_a = 0, _flag_b = 0; 6104 uint32_t _itail_tgt = 0; 6105 RECOMP_REGS_LOCALS 6106 RECOMP_ENTER(0x360E4920u); 6107 6108 L_360E4920: 6109 MEM32(0x36307000) = 0x361B3028u; /* 0x360E4920: mov dword ptr [0x36307000], 0x361b3028 */ 6110 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E492A: ret */ 6111 RECOMP_REGS_OUT(); 6112 } 6113 6114 void sub_360E4930(void) { 6115 int _fpu_cmp = 0; 6116 uint32_t _cf = 0; 6117 int _df = 1; 6118 uint32_t _flag_k = FK_NONE; 6119 uint32_t _flag_a = 0, _flag_b = 0; 6120 uint32_t _itail_tgt = 0; 6121 RECOMP_REGS_LOCALS 6122 RECOMP_ENTER(0x360E4930u); 6123 6124 L_360E4930: 6125 goto L_360E4940; /* 0x360E4930: jmp 0x360e4940 */ 6126 L_360E4940: 6127 MEM32(0x36306FFC) = 0x361B3064u; /* 0x360E4940: mov dword ptr [0x36306ffc], 0x361b3064 */ 6128 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E494A: ret */ 6129 RECOMP_REGS_OUT(); 6130 } 6131 6132 void sub_360E4940(void) { 6133 int _fpu_cmp = 0; 6134 uint32_t _cf = 0; 6135 int _df = 1; 6136 uint32_t _flag_k = FK_NONE; 6137 uint32_t _flag_a = 0, _flag_b = 0; 6138 uint32_t _itail_tgt = 0; 6139 RECOMP_REGS_LOCALS 6140 RECOMP_ENTER(0x360E4940u); 6141 6142 L_360E4940: 6143 MEM32(0x36306FFC) = 0x361B3064u; /* 0x360E4940: mov dword ptr [0x36306ffc], 0x361b3064 */ 6144 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E494A: ret */ 6145 RECOMP_REGS_OUT(); 6146 } 6147 6148 void sub_360E4950(void) { 6149 int _fpu_cmp = 0; 6150 uint32_t _cf = 0; 6151 int _df = 1; 6152 uint32_t _flag_k = FK_NONE; 6153 uint32_t _flag_a = 0, _flag_b = 0; 6154 uint32_t _itail_tgt = 0; 6155 RECOMP_REGS_LOCALS 6156 RECOMP_ENTER(0x360E4950u); 6157 6158 L_360E4950: 6159 goto L_360E4960; /* 0x360E4950: jmp 0x360e4960 */ 6160 L_360E4960: 6161 MEM32(0x36306FF8) = 0x361B3098u; /* 0x360E4960: mov dword ptr [0x36306ff8], 0x361b3098 */ 6162 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E496A: ret */ 6163 RECOMP_REGS_OUT(); 6164 } 6165 6166 void sub_360E4960(void) { 6167 int _fpu_cmp = 0; 6168 uint32_t _cf = 0; 6169 int _df = 1; 6170 uint32_t _flag_k = FK_NONE; 6171 uint32_t _flag_a = 0, _flag_b = 0; 6172 uint32_t _itail_tgt = 0; 6173 RECOMP_REGS_LOCALS 6174 RECOMP_ENTER(0x360E4960u); 6175 6176 L_360E4960: 6177 MEM32(0x36306FF8) = 0x361B3098u; /* 0x360E4960: mov dword ptr [0x36306ff8], 0x361b3098 */ 6178 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E496A: ret */ 6179 RECOMP_REGS_OUT(); 6180 } 6181 6182 void sub_360E4970(void) { 6183 int _fpu_cmp = 0; 6184 uint32_t _cf = 0; 6185 int _df = 1; 6186 uint32_t _flag_k = FK_NONE; 6187 uint32_t _flag_a = 0, _flag_b = 0; 6188 uint32_t _itail_tgt = 0; 6189 RECOMP_REGS_LOCALS 6190 RECOMP_ENTER(0x360E4970u); 6191 6192 L_360E4970: 6193 goto L_360E4980; /* 0x360E4970: jmp 0x360e4980 */ 6194 L_360E4980: 6195 MEM32(0x36306FF4) = 0x361B30CCu; /* 0x360E4980: mov dword ptr [0x36306ff4], 0x361b30cc */ 6196 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E498A: ret */ 6197 RECOMP_REGS_OUT(); 6198 } 6199 6200 void sub_360E4980(void) { 6201 int _fpu_cmp = 0; 6202 uint32_t _cf = 0; 6203 int _df = 1; 6204 uint32_t _flag_k = FK_NONE; 6205 uint32_t _flag_a = 0, _flag_b = 0; 6206 uint32_t _itail_tgt = 0; 6207 RECOMP_REGS_LOCALS 6208 RECOMP_ENTER(0x360E4980u); 6209 6210 L_360E4980: 6211 MEM32(0x36306FF4) = 0x361B30CCu; /* 0x360E4980: mov dword ptr [0x36306ff4], 0x361b30cc */ 6212 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E498A: ret */ 6213 RECOMP_REGS_OUT(); 6214 } 6215 6216 void sub_360E4990(void) { 6217 int _fpu_cmp = 0; 6218 uint32_t _cf = 0; 6219 int _df = 1; 6220 uint32_t _flag_k = FK_NONE; 6221 uint32_t _flag_a = 0, _flag_b = 0; 6222 uint32_t _itail_tgt = 0; 6223 RECOMP_REGS_LOCALS 6224 RECOMP_ENTER(0x360E4990u); 6225 6226 L_360E4990: 6227 goto L_360E49A0; /* 0x360E4990: jmp 0x360e49a0 */ 6228 L_360E49A0: 6229 MEM32(0x36306FF0) = 0x361B3100u; /* 0x360E49A0: mov dword ptr [0x36306ff0], 0x361b3100 */ 6230 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E49AA: ret */ 6231 RECOMP_REGS_OUT(); 6232 } 6233 6234 void sub_360E49A0(void) { 6235 int _fpu_cmp = 0; 6236 uint32_t _cf = 0; 6237 int _df = 1; 6238 uint32_t _flag_k = FK_NONE; 6239 uint32_t _flag_a = 0, _flag_b = 0; 6240 uint32_t _itail_tgt = 0; 6241 RECOMP_REGS_LOCALS 6242 RECOMP_ENTER(0x360E49A0u); 6243 6244 L_360E49A0: 6245 MEM32(0x36306FF0) = 0x361B3100u; /* 0x360E49A0: mov dword ptr [0x36306ff0], 0x361b3100 */ 6246 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E49AA: ret */ 6247 RECOMP_REGS_OUT(); 6248 } 6249 6250 void sub_360E49B0(void) { 6251 int _fpu_cmp = 0; 6252 uint32_t _cf = 0; 6253 int _df = 1; 6254 uint32_t _flag_k = FK_NONE; 6255 uint32_t _flag_a = 0, _flag_b = 0; 6256 uint32_t _itail_tgt = 0; 6257 RECOMP_REGS_LOCALS 6258 RECOMP_ENTER(0x360E49B0u); 6259 6260 L_360E49B0: 6261 goto L_360E49C0; /* 0x360E49B0: jmp 0x360e49c0 */ 6262 L_360E49C0: 6263 MEM32(0x36306FEC) = 0x361B3138u; /* 0x360E49C0: mov dword ptr [0x36306fec], 0x361b3138 */ 6264 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E49CA: ret */ 6265 RECOMP_REGS_OUT(); 6266 } 6267 6268 void sub_360E49C0(void) { 6269 int _fpu_cmp = 0; 6270 uint32_t _cf = 0; 6271 int _df = 1; 6272 uint32_t _flag_k = FK_NONE; 6273 uint32_t _flag_a = 0, _flag_b = 0; 6274 uint32_t _itail_tgt = 0; 6275 RECOMP_REGS_LOCALS 6276 RECOMP_ENTER(0x360E49C0u); 6277 6278 L_360E49C0: 6279 MEM32(0x36306FEC) = 0x361B3138u; /* 0x360E49C0: mov dword ptr [0x36306fec], 0x361b3138 */ 6280 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E49CA: ret */ 6281 RECOMP_REGS_OUT(); 6282 } 6283 6284 void sub_360E49D0(void) { 6285 int _fpu_cmp = 0; 6286 uint32_t _cf = 0; 6287 int _df = 1; 6288 uint32_t _flag_k = FK_NONE; 6289 uint32_t _flag_a = 0, _flag_b = 0; 6290 uint32_t _itail_tgt = 0; 6291 RECOMP_REGS_LOCALS 6292 RECOMP_ENTER(0x360E49D0u); 6293 6294 L_360E49D0: 6295 goto L_360E49E0; /* 0x360E49D0: jmp 0x360e49e0 */ 6296 L_360E49E0: 6297 MEM32(0x36306FE8) = 0x361B57A8u; /* 0x360E49E0: mov dword ptr [0x36306fe8], 0x361b57a8 */ 6298 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E49EA: ret */ 6299 RECOMP_REGS_OUT(); 6300 } 6301 6302 void sub_360E49E0(void) { 6303 int _fpu_cmp = 0; 6304 uint32_t _cf = 0; 6305 int _df = 1; 6306 uint32_t _flag_k = FK_NONE; 6307 uint32_t _flag_a = 0, _flag_b = 0; 6308 uint32_t _itail_tgt = 0; 6309 RECOMP_REGS_LOCALS 6310 RECOMP_ENTER(0x360E49E0u); 6311 6312 L_360E49E0: 6313 MEM32(0x36306FE8) = 0x361B57A8u; /* 0x360E49E0: mov dword ptr [0x36306fe8], 0x361b57a8 */ 6314 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E49EA: ret */ 6315 RECOMP_REGS_OUT(); 6316 } 6317 6318 void sub_360E49F0(void) { 6319 int _fpu_cmp = 0; 6320 uint32_t _cf = 0; 6321 int _df = 1; 6322 uint32_t _flag_k = FK_NONE; 6323 uint32_t _flag_a = 0, _flag_b = 0; 6324 uint32_t _itail_tgt = 0; 6325 RECOMP_REGS_LOCALS 6326 RECOMP_ENTER(0x360E49F0u); 6327 6328 L_360E49F0: 6329 goto L_360E4A00; /* 0x360E49F0: jmp 0x360e4a00 */ 6330 L_360E4A00: 6331 MEM32(0x36306FE4) = 0x361B57E0u; /* 0x360E4A00: mov dword ptr [0x36306fe4], 0x361b57e0 */ 6332 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E4A0A: ret */ 6333 RECOMP_REGS_OUT(); 6334 } 6335 6336 void sub_360E4A00(void) { 6337 int _fpu_cmp = 0; 6338 uint32_t _cf = 0; 6339 int _df = 1; 6340 uint32_t _flag_k = FK_NONE; 6341 uint32_t _flag_a = 0, _flag_b = 0; 6342 uint32_t _itail_tgt = 0; 6343 RECOMP_REGS_LOCALS 6344 RECOMP_ENTER(0x360E4A00u); 6345 6346 L_360E4A00: 6347 MEM32(0x36306FE4) = 0x361B57E0u; /* 0x360E4A00: mov dword ptr [0x36306fe4], 0x361b57e0 */ 6348 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E4A0A: ret */ 6349 RECOMP_REGS_OUT(); 6350 } 6351 6352 void sub_360E4A10(void) { 6353 int _fpu_cmp = 0; 6354 uint32_t _cf = 0; 6355 int _df = 1; 6356 uint32_t _flag_k = FK_NONE; 6357 uint32_t _flag_a = 0, _flag_b = 0; 6358 uint32_t _itail_tgt = 0; 6359 RECOMP_REGS_LOCALS 6360 RECOMP_ENTER(0x360E4A10u); 6361 6362 L_360E4A10: 6363 goto L_360E4A20; /* 0x360E4A10: jmp 0x360e4a20 */ 6364 L_360E4A20: 6365 MEM32(0x36306FE0) = 0x361B5814u; /* 0x360E4A20: mov dword ptr [0x36306fe0], 0x361b5814 */ 6366 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E4A2A: ret */ 6367 RECOMP_REGS_OUT(); 6368 } 6369 6370 void sub_360E4A20(void) { 6371 int _fpu_cmp = 0; 6372 uint32_t _cf = 0; 6373 int _df = 1; 6374 uint32_t _flag_k = FK_NONE; 6375 uint32_t _flag_a = 0, _flag_b = 0; 6376 uint32_t _itail_tgt = 0; 6377 RECOMP_REGS_LOCALS 6378 RECOMP_ENTER(0x360E4A20u); 6379 6380 L_360E4A20: 6381 MEM32(0x36306FE0) = 0x361B5814u; /* 0x360E4A20: mov dword ptr [0x36306fe0], 0x361b5814 */ 6382 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E4A2A: ret */ 6383 RECOMP_REGS_OUT(); 6384 } 6385 6386 void sub_360E4A30(void) { 6387 int _fpu_cmp = 0; 6388 uint32_t _cf = 0; 6389 int _df = 1; 6390 uint32_t _flag_k = FK_NONE; 6391 uint32_t _flag_a = 0, _flag_b = 0; 6392 uint32_t _itail_tgt = 0; 6393 RECOMP_REGS_LOCALS 6394 RECOMP_ENTER(0x360E4A30u); 6395 6396 L_360E4A30: 6397 goto L_360E4A40; /* 0x360E4A30: jmp 0x360e4a40 */ 6398 L_360E4A40: 6399 MEM32(0x36306FDC) = 0x361B5850u; /* 0x360E4A40: mov dword ptr [0x36306fdc], 0x361b5850 */ 6400 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E4A4A: ret */ 6401 RECOMP_REGS_OUT(); 6402 } 6403 6404 void sub_360E4A40(void) { 6405 int _fpu_cmp = 0; 6406 uint32_t _cf = 0; 6407 int _df = 1; 6408 uint32_t _flag_k = FK_NONE; 6409 uint32_t _flag_a = 0, _flag_b = 0; 6410 uint32_t _itail_tgt = 0; 6411 RECOMP_REGS_LOCALS 6412 RECOMP_ENTER(0x360E4A40u); 6413 6414 L_360E4A40: 6415 MEM32(0x36306FDC) = 0x361B5850u; /* 0x360E4A40: mov dword ptr [0x36306fdc], 0x361b5850 */ 6416 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E4A4A: ret */ 6417 RECOMP_REGS_OUT(); 6418 } 6419 6420 void sub_360E4A50(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(0x360E4A50u); 6429 6430 L_360E4A50: 6431 goto L_360E4A60; /* 0x360E4A50: jmp 0x360e4a60 */ 6432 L_360E4A60: 6433 MEM32(0x36306FD8) = 0x361B5888u; /* 0x360E4A60: mov dword ptr [0x36306fd8], 0x361b5888 */ 6434 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E4A6A: ret */ 6435 RECOMP_REGS_OUT(); 6436 }