client/game/kkr.dll/lifted-0092.c (267228B)
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_361456CD(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(0x361456CDu); 17 18 L_361456CD: 19 ecx = MEM32(eax + 0x4); /* 0x361456CD: mov ecx, dword ptr [eax + 4] */ 20 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x361456D0: mov dl, byte ptr [ecx + 0x20] */ 21 /* test LO8(edx), LO8(edx) */ /* 0x361456D3: test dl, dl */ 22 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 23 _cf = 0; 24 _flag_k = FK_NARROW(FK_TEST, 24); 25 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614584D; /* 0x361456D5: jne 0x3614584d */ 26 L_361456DB: 27 edi = MEM32(ecx + 0x4); /* 0x361456DB: mov edi, dword ptr [ecx + 4] */ 28 edx = MEM32(edi); /* 0x361456DE: mov edx, dword ptr [edi] */ 29 /* cmp ecx, edx */ /* 0x361456E0: cmp ecx, edx */ 30 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 31 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32 _flag_k = FK_CMP; 33 if (CMP_NE(_flag_a, _flag_b)) goto L_361457A9; /* 0x361456E2: jne 0x361457a9 */ 34 L_361456E8: 35 edx = MEM32(edi + 0x8); /* 0x361456E8: mov edx, dword ptr [edi + 8] */ 36 /* cmp MEM8(edx + 0x20), 0 */ /* 0x361456EB: cmp byte ptr [edx + 0x20], 0 */ 37 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 38 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39 _flag_k = FK_NARROW(FK_CMP, 24); 40 if (CMP_NE(_flag_a, _flag_b)) goto L_3614570C; /* 0x361456EF: jne 0x3614570c */ 41 L_361456F1: 42 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361456F1: mov byte ptr [ecx + 0x20], bl */ 43 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361456F4: mov byte ptr [edx + 0x20], bl */ 44 ecx = MEM32(eax + 0x4); /* 0x361456F7: mov ecx, dword ptr [eax + 4] */ 45 edx = MEM32(ecx + 0x4); /* 0x361456FA: mov edx, dword ptr [ecx + 4] */ 46 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x361456FD: mov byte ptr [edx + 0x20], 0 */ 47 eax = MEM32(eax + 0x4); /* 0x36145701: mov eax, dword ptr [eax + 4] */ 48 eax = MEM32(eax + 0x4); /* 0x36145704: mov eax, dword ptr [eax + 4] */ 49 goto L_36145841; /* 0x36145707: jmp 0x36145841 */ 50 L_3614570C: 51 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3614570C: cmp eax, dword ptr [ecx + 8] */ 52 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 53 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 54 _flag_k = FK_CMP; 55 if (CMP_NE(_flag_a, _flag_b)) goto L_3614574B; /* 0x3614570F: jne 0x3614574b */ 56 L_36145711: 57 eax = ecx; /* 0x36145711: mov eax, ecx */ 58 ecx = MEM32(eax + 0x8); /* 0x36145713: mov ecx, dword ptr [eax + 8] */ 59 edx = MEM32(ecx); /* 0x36145716: mov edx, dword ptr [ecx] */ 60 MEM32(eax + 0x8) = edx; /* 0x36145718: mov dword ptr [eax + 8], edx */ 61 edx = MEM32(ecx); /* 0x3614571B: mov edx, dword ptr [ecx] */ 62 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3614571D: cmp edx, dword ptr [esi + 8] */ 63 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 64 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 65 _flag_k = FK_CMP; 66 if (CMP_EQ(_flag_a, _flag_b)) goto L_36145725; /* 0x36145720: je 0x36145725 */ 67 L_36145722: 68 MEM32(edx + 0x4) = eax; /* 0x36145722: mov dword ptr [edx + 4], eax */ 69 L_36145725: 70 edx = MEM32(eax + 0x4); /* 0x36145725: mov edx, dword ptr [eax + 4] */ 71 MEM32(ecx + 0x4) = edx; /* 0x36145728: mov dword ptr [ecx + 4], edx */ 72 edx = MEM32(esi + 0x4); /* 0x3614572B: mov edx, dword ptr [esi + 4] */ 73 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3614572E: cmp eax, dword ptr [edx + 4] */ 74 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 75 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 76 _flag_k = FK_CMP; 77 if (CMP_NE(_flag_a, _flag_b)) goto L_36145738; /* 0x36145731: jne 0x36145738 */ 78 L_36145733: 79 MEM32(edx + 0x4) = ecx; /* 0x36145733: mov dword ptr [edx + 4], ecx */ 80 goto L_36145746; /* 0x36145736: jmp 0x36145746 */ 81 L_36145738: 82 edx = MEM32(eax + 0x4); /* 0x36145738: mov edx, dword ptr [eax + 4] */ 83 /* cmp eax, MEM32(edx) */ /* 0x3614573B: cmp eax, dword ptr [edx] */ 84 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 85 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 86 _flag_k = FK_CMP; 87 if (CMP_NE(_flag_a, _flag_b)) goto L_36145743; /* 0x3614573D: jne 0x36145743 */ 88 L_3614573F: 89 MEM32(edx) = ecx; /* 0x3614573F: mov dword ptr [edx], ecx */ 90 goto L_36145746; /* 0x36145741: jmp 0x36145746 */ 91 L_36145743: 92 MEM32(edx + 0x8) = ecx; /* 0x36145743: mov dword ptr [edx + 8], ecx */ 93 L_36145746: 94 MEM32(ecx) = eax; /* 0x36145746: mov dword ptr [ecx], eax */ 95 MEM32(eax + 0x4) = ecx; /* 0x36145748: mov dword ptr [eax + 4], ecx */ 96 L_3614574B: 97 ecx = MEM32(eax + 0x4); /* 0x3614574B: mov ecx, dword ptr [eax + 4] */ 98 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614574E: mov byte ptr [ecx + 0x20], bl */ 99 edx = MEM32(eax + 0x4); /* 0x36145751: mov edx, dword ptr [eax + 4] */ 100 ecx = MEM32(edx + 0x4); /* 0x36145754: mov ecx, dword ptr [edx + 4] */ 101 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36145757: mov byte ptr [ecx + 0x20], 0 */ 102 edx = MEM32(eax + 0x4); /* 0x3614575B: mov edx, dword ptr [eax + 4] */ 103 ecx = MEM32(edx + 0x4); /* 0x3614575E: mov ecx, dword ptr [edx + 4] */ 104 edx = MEM32(ecx); /* 0x36145761: mov edx, dword ptr [ecx] */ 105 edi = MEM32(edx + 0x8); /* 0x36145763: mov edi, dword ptr [edx + 8] */ 106 MEM32(ecx) = edi; /* 0x36145766: mov dword ptr [ecx], edi */ 107 edi = MEM32(edx + 0x8); /* 0x36145768: mov edi, dword ptr [edx + 8] */ 108 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3614576B: cmp edi, dword ptr [esi + 8] */ 109 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 110 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 111 _flag_k = FK_CMP; 112 if (CMP_EQ(_flag_a, _flag_b)) goto L_36145773; /* 0x3614576E: je 0x36145773 */ 113 L_36145770: 114 MEM32(edi + 0x4) = ecx; /* 0x36145770: mov dword ptr [edi + 4], ecx */ 115 L_36145773: 116 edi = MEM32(ecx + 0x4); /* 0x36145773: mov edi, dword ptr [ecx + 4] */ 117 MEM32(edx + 0x4) = edi; /* 0x36145776: mov dword ptr [edx + 4], edi */ 118 edi = MEM32(esi + 0x4); /* 0x36145779: mov edi, dword ptr [esi + 4] */ 119 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3614577C: cmp ecx, dword ptr [edi + 4] */ 120 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 121 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 122 _flag_k = FK_CMP; 123 if (CMP_NE(_flag_a, _flag_b)) goto L_3614578C; /* 0x3614577F: jne 0x3614578c */ 124 L_36145781: 125 MEM32(edi + 0x4) = edx; /* 0x36145781: mov dword ptr [edi + 4], edx */ 126 MEM32(edx + 0x8) = ecx; /* 0x36145784: mov dword ptr [edx + 8], ecx */ 127 goto L_3614583E; /* 0x36145787: jmp 0x3614583e */ 128 L_3614578C: 129 edi = MEM32(ecx + 0x4); /* 0x3614578C: mov edi, dword ptr [ecx + 4] */ 130 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3614578F: cmp ecx, dword ptr [edi + 8] */ 131 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 132 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 133 _flag_k = FK_CMP; 134 if (CMP_NE(_flag_a, _flag_b)) goto L_3614579F; /* 0x36145792: jne 0x3614579f */ 135 L_36145794: 136 MEM32(edi + 0x8) = edx; /* 0x36145794: mov dword ptr [edi + 8], edx */ 137 MEM32(edx + 0x8) = ecx; /* 0x36145797: mov dword ptr [edx + 8], ecx */ 138 goto L_3614583E; /* 0x3614579A: jmp 0x3614583e */ 139 L_3614579F: 140 MEM32(edi) = edx; /* 0x3614579F: mov dword ptr [edi], edx */ 141 MEM32(edx + 0x8) = ecx; /* 0x361457A1: mov dword ptr [edx + 8], ecx */ 142 goto L_3614583E; /* 0x361457A4: jmp 0x3614583e */ 143 L_361457A9: 144 /* cmp MEM8(edx + 0x20), 0 */ /* 0x361457A9: cmp byte ptr [edx + 0x20], 0 */ 145 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 146 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 147 _flag_k = FK_NARROW(FK_CMP, 24); 148 RECOMP_BACKEDGE(); 149 if (CMP_EQ(_flag_a, _flag_b)) goto L_361456F1; /* 0x361457AD: je 0x361456f1 */ 150 L_361457B3: 151 /* cmp eax, MEM32(ecx) */ /* 0x361457B3: cmp eax, dword ptr [ecx] */ 152 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 153 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 154 _flag_k = FK_CMP; 155 if (CMP_NE(_flag_a, _flag_b)) goto L_361457F3; /* 0x361457B5: jne 0x361457f3 */ 156 L_361457B7: 157 eax = ecx; /* 0x361457B7: mov eax, ecx */ 158 ecx = MEM32(eax); /* 0x361457B9: mov ecx, dword ptr [eax] */ 159 edx = MEM32(ecx + 0x8); /* 0x361457BB: mov edx, dword ptr [ecx + 8] */ 160 MEM32(eax) = edx; /* 0x361457BE: mov dword ptr [eax], edx */ 161 edx = MEM32(ecx + 0x8); /* 0x361457C0: mov edx, dword ptr [ecx + 8] */ 162 /* cmp edx, MEM32(esi + 0x8) */ /* 0x361457C3: cmp edx, dword ptr [esi + 8] */ 163 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 164 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 165 _flag_k = FK_CMP; 166 if (CMP_EQ(_flag_a, _flag_b)) goto L_361457CB; /* 0x361457C6: je 0x361457cb */ 167 L_361457C8: 168 MEM32(edx + 0x4) = eax; /* 0x361457C8: mov dword ptr [edx + 4], eax */ 169 L_361457CB: 170 edx = MEM32(eax + 0x4); /* 0x361457CB: mov edx, dword ptr [eax + 4] */ 171 MEM32(ecx + 0x4) = edx; /* 0x361457CE: mov dword ptr [ecx + 4], edx */ 172 edx = MEM32(esi + 0x4); /* 0x361457D1: mov edx, dword ptr [esi + 4] */ 173 /* cmp eax, MEM32(edx + 0x4) */ /* 0x361457D4: cmp eax, dword ptr [edx + 4] */ 174 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 175 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 176 _flag_k = FK_CMP; 177 if (CMP_NE(_flag_a, _flag_b)) goto L_361457DE; /* 0x361457D7: jne 0x361457de */ 178 L_361457D9: 179 MEM32(edx + 0x4) = ecx; /* 0x361457D9: mov dword ptr [edx + 4], ecx */ 180 goto L_361457ED; /* 0x361457DC: jmp 0x361457ed */ 181 L_361457DE: 182 edx = MEM32(eax + 0x4); /* 0x361457DE: mov edx, dword ptr [eax + 4] */ 183 /* cmp eax, MEM32(edx + 0x8) */ /* 0x361457E1: cmp eax, dword ptr [edx + 8] */ 184 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 185 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 186 _flag_k = FK_CMP; 187 if (CMP_NE(_flag_a, _flag_b)) goto L_361457EB; /* 0x361457E4: jne 0x361457eb */ 188 L_361457E6: 189 MEM32(edx + 0x8) = ecx; /* 0x361457E6: mov dword ptr [edx + 8], ecx */ 190 goto L_361457ED; /* 0x361457E9: jmp 0x361457ed */ 191 L_361457EB: 192 MEM32(edx) = ecx; /* 0x361457EB: mov dword ptr [edx], ecx */ 193 L_361457ED: 194 MEM32(ecx + 0x8) = eax; /* 0x361457ED: mov dword ptr [ecx + 8], eax */ 195 MEM32(eax + 0x4) = ecx; /* 0x361457F0: mov dword ptr [eax + 4], ecx */ 196 L_361457F3: 197 ecx = MEM32(eax + 0x4); /* 0x361457F3: mov ecx, dword ptr [eax + 4] */ 198 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361457F6: mov byte ptr [ecx + 0x20], bl */ 199 edx = MEM32(eax + 0x4); /* 0x361457F9: mov edx, dword ptr [eax + 4] */ 200 ecx = MEM32(edx + 0x4); /* 0x361457FC: mov ecx, dword ptr [edx + 4] */ 201 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x361457FF: mov byte ptr [ecx + 0x20], 0 */ 202 edx = MEM32(eax + 0x4); /* 0x36145803: mov edx, dword ptr [eax + 4] */ 203 ecx = MEM32(edx + 0x4); /* 0x36145806: mov ecx, dword ptr [edx + 4] */ 204 edx = MEM32(ecx + 0x8); /* 0x36145809: mov edx, dword ptr [ecx + 8] */ 205 edi = MEM32(edx); /* 0x3614580C: mov edi, dword ptr [edx] */ 206 MEM32(ecx + 0x8) = edi; /* 0x3614580E: mov dword ptr [ecx + 8], edi */ 207 edi = MEM32(edx); /* 0x36145811: mov edi, dword ptr [edx] */ 208 /* cmp edi, MEM32(esi + 0x8) */ /* 0x36145813: cmp edi, dword ptr [esi + 8] */ 209 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 210 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 211 _flag_k = FK_CMP; 212 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614581B; /* 0x36145816: je 0x3614581b */ 213 L_36145818: 214 MEM32(edi + 0x4) = ecx; /* 0x36145818: mov dword ptr [edi + 4], ecx */ 215 L_3614581B: 216 edi = MEM32(ecx + 0x4); /* 0x3614581B: mov edi, dword ptr [ecx + 4] */ 217 MEM32(edx + 0x4) = edi; /* 0x3614581E: mov dword ptr [edx + 4], edi */ 218 edi = MEM32(esi + 0x4); /* 0x36145821: mov edi, dword ptr [esi + 4] */ 219 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36145824: cmp ecx, dword ptr [edi + 4] */ 220 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 221 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 222 _flag_k = FK_CMP; 223 if (CMP_NE(_flag_a, _flag_b)) goto L_3614582E; /* 0x36145827: jne 0x3614582e */ 224 L_36145829: 225 MEM32(edi + 0x4) = edx; /* 0x36145829: mov dword ptr [edi + 4], edx */ 226 goto L_3614583C; /* 0x3614582C: jmp 0x3614583c */ 227 L_3614582E: 228 edi = MEM32(ecx + 0x4); /* 0x3614582E: mov edi, dword ptr [ecx + 4] */ 229 /* cmp ecx, MEM32(edi) */ /* 0x36145831: cmp ecx, dword ptr [edi] */ 230 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 231 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 232 _flag_k = FK_CMP; 233 if (CMP_NE(_flag_a, _flag_b)) goto L_36145839; /* 0x36145833: jne 0x36145839 */ 234 L_36145835: 235 MEM32(edi) = edx; /* 0x36145835: mov dword ptr [edi], edx */ 236 goto L_3614583C; /* 0x36145837: jmp 0x3614583c */ 237 L_36145839: 238 MEM32(edi + 0x8) = edx; /* 0x36145839: mov dword ptr [edi + 8], edx */ 239 L_3614583C: 240 MEM32(edx) = ecx; /* 0x3614583C: mov dword ptr [edx], ecx */ 241 L_3614583E: 242 MEM32(ecx + 0x4) = edx; /* 0x3614583E: mov dword ptr [ecx + 4], edx */ 243 L_36145841: 244 ecx = MEM32(esi + 0x4); /* 0x36145841: mov ecx, dword ptr [esi + 4] */ 245 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36145844: cmp eax, dword ptr [ecx + 4] */ 246 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 247 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 248 _flag_k = FK_CMP; 249 RECOMP_BACKEDGE(); 250 if (CMP_NE(_flag_a, _flag_b)) goto L_361456CD; /* 0x36145847: jne 0x361456cd */ 251 L_3614584D: 252 edx = MEM32(esi + 0x4); /* 0x3614584D: mov edx, dword ptr [esi + 4] */ 253 eax = MEM32(edx + 0x4); /* 0x36145850: mov eax, dword ptr [edx + 4] */ 254 ecx = MEM32(ebp + (-0x4)); /* 0x36145853: mov ecx, dword ptr [ebp - 4] */ 255 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36145856: mov byte ptr [eax + 0x20], bl */ 256 eax = MEM32(ebp + 0x8); /* 0x36145859: mov eax, dword ptr [ebp + 8] */ 257 edi = POP32_VAL(esp); /* 0x3614585C: pop edi */ 258 esi = POP32_VAL(esp); /* 0x3614585D: pop esi */ 259 MEM32(eax) = ecx; /* 0x3614585E: mov dword ptr [eax], ecx */ 260 ebx = POP32_VAL(esp); /* 0x36145860: pop ebx */ 261 esp = ebp; /* 0x36145861: mov esp, ebp */ 262 ebp = POP32_VAL(esp); /* 0x36145863: pop ebp */ 263 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36145864: ret 0x10 */ 264 RECOMP_REGS_OUT(); 265 } 266 267 void sub_361456F1(void) { 268 int _fpu_cmp = 0; 269 uint32_t _cf = 0; 270 int _df = 1; 271 uint32_t _flag_k = FK_NONE; 272 uint32_t _flag_a = 0, _flag_b = 0; 273 uint32_t _itail_tgt = 0; 274 RECOMP_REGS_LOCALS 275 RECOMP_ENTER(0x361456F1u); 276 277 goto L_361456F1; 278 L_361456CD: 279 ecx = MEM32(eax + 0x4); /* 0x361456CD: mov ecx, dword ptr [eax + 4] */ 280 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x361456D0: mov dl, byte ptr [ecx + 0x20] */ 281 /* test LO8(edx), LO8(edx) */ /* 0x361456D3: test dl, dl */ 282 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 283 _cf = 0; 284 _flag_k = FK_NARROW(FK_TEST, 24); 285 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614584D; /* 0x361456D5: jne 0x3614584d */ 286 L_361456DB: 287 edi = MEM32(ecx + 0x4); /* 0x361456DB: mov edi, dword ptr [ecx + 4] */ 288 edx = MEM32(edi); /* 0x361456DE: mov edx, dword ptr [edi] */ 289 /* cmp ecx, edx */ /* 0x361456E0: cmp ecx, edx */ 290 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 291 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 292 _flag_k = FK_CMP; 293 if (CMP_NE(_flag_a, _flag_b)) goto L_361457A9; /* 0x361456E2: jne 0x361457a9 */ 294 L_361456E8: 295 edx = MEM32(edi + 0x8); /* 0x361456E8: mov edx, dword ptr [edi + 8] */ 296 /* cmp MEM8(edx + 0x20), 0 */ /* 0x361456EB: cmp byte ptr [edx + 0x20], 0 */ 297 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 298 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 299 _flag_k = FK_NARROW(FK_CMP, 24); 300 if (CMP_NE(_flag_a, _flag_b)) goto L_3614570C; /* 0x361456EF: jne 0x3614570c */ 301 L_361456F1: 302 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361456F1: mov byte ptr [ecx + 0x20], bl */ 303 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361456F4: mov byte ptr [edx + 0x20], bl */ 304 ecx = MEM32(eax + 0x4); /* 0x361456F7: mov ecx, dword ptr [eax + 4] */ 305 edx = MEM32(ecx + 0x4); /* 0x361456FA: mov edx, dword ptr [ecx + 4] */ 306 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x361456FD: mov byte ptr [edx + 0x20], 0 */ 307 eax = MEM32(eax + 0x4); /* 0x36145701: mov eax, dword ptr [eax + 4] */ 308 eax = MEM32(eax + 0x4); /* 0x36145704: mov eax, dword ptr [eax + 4] */ 309 goto L_36145841; /* 0x36145707: jmp 0x36145841 */ 310 L_3614570C: 311 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3614570C: cmp eax, dword ptr [ecx + 8] */ 312 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 313 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 314 _flag_k = FK_CMP; 315 if (CMP_NE(_flag_a, _flag_b)) goto L_3614574B; /* 0x3614570F: jne 0x3614574b */ 316 L_36145711: 317 eax = ecx; /* 0x36145711: mov eax, ecx */ 318 ecx = MEM32(eax + 0x8); /* 0x36145713: mov ecx, dword ptr [eax + 8] */ 319 edx = MEM32(ecx); /* 0x36145716: mov edx, dword ptr [ecx] */ 320 MEM32(eax + 0x8) = edx; /* 0x36145718: mov dword ptr [eax + 8], edx */ 321 edx = MEM32(ecx); /* 0x3614571B: mov edx, dword ptr [ecx] */ 322 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3614571D: cmp edx, dword ptr [esi + 8] */ 323 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 324 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 325 _flag_k = FK_CMP; 326 if (CMP_EQ(_flag_a, _flag_b)) goto L_36145725; /* 0x36145720: je 0x36145725 */ 327 L_36145722: 328 MEM32(edx + 0x4) = eax; /* 0x36145722: mov dword ptr [edx + 4], eax */ 329 L_36145725: 330 edx = MEM32(eax + 0x4); /* 0x36145725: mov edx, dword ptr [eax + 4] */ 331 MEM32(ecx + 0x4) = edx; /* 0x36145728: mov dword ptr [ecx + 4], edx */ 332 edx = MEM32(esi + 0x4); /* 0x3614572B: mov edx, dword ptr [esi + 4] */ 333 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3614572E: cmp eax, dword ptr [edx + 4] */ 334 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 335 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 336 _flag_k = FK_CMP; 337 if (CMP_NE(_flag_a, _flag_b)) goto L_36145738; /* 0x36145731: jne 0x36145738 */ 338 L_36145733: 339 MEM32(edx + 0x4) = ecx; /* 0x36145733: mov dword ptr [edx + 4], ecx */ 340 goto L_36145746; /* 0x36145736: jmp 0x36145746 */ 341 L_36145738: 342 edx = MEM32(eax + 0x4); /* 0x36145738: mov edx, dword ptr [eax + 4] */ 343 /* cmp eax, MEM32(edx) */ /* 0x3614573B: cmp eax, dword ptr [edx] */ 344 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 345 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 346 _flag_k = FK_CMP; 347 if (CMP_NE(_flag_a, _flag_b)) goto L_36145743; /* 0x3614573D: jne 0x36145743 */ 348 L_3614573F: 349 MEM32(edx) = ecx; /* 0x3614573F: mov dword ptr [edx], ecx */ 350 goto L_36145746; /* 0x36145741: jmp 0x36145746 */ 351 L_36145743: 352 MEM32(edx + 0x8) = ecx; /* 0x36145743: mov dword ptr [edx + 8], ecx */ 353 L_36145746: 354 MEM32(ecx) = eax; /* 0x36145746: mov dword ptr [ecx], eax */ 355 MEM32(eax + 0x4) = ecx; /* 0x36145748: mov dword ptr [eax + 4], ecx */ 356 L_3614574B: 357 ecx = MEM32(eax + 0x4); /* 0x3614574B: mov ecx, dword ptr [eax + 4] */ 358 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614574E: mov byte ptr [ecx + 0x20], bl */ 359 edx = MEM32(eax + 0x4); /* 0x36145751: mov edx, dword ptr [eax + 4] */ 360 ecx = MEM32(edx + 0x4); /* 0x36145754: mov ecx, dword ptr [edx + 4] */ 361 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36145757: mov byte ptr [ecx + 0x20], 0 */ 362 edx = MEM32(eax + 0x4); /* 0x3614575B: mov edx, dword ptr [eax + 4] */ 363 ecx = MEM32(edx + 0x4); /* 0x3614575E: mov ecx, dword ptr [edx + 4] */ 364 edx = MEM32(ecx); /* 0x36145761: mov edx, dword ptr [ecx] */ 365 edi = MEM32(edx + 0x8); /* 0x36145763: mov edi, dword ptr [edx + 8] */ 366 MEM32(ecx) = edi; /* 0x36145766: mov dword ptr [ecx], edi */ 367 edi = MEM32(edx + 0x8); /* 0x36145768: mov edi, dword ptr [edx + 8] */ 368 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3614576B: cmp edi, dword ptr [esi + 8] */ 369 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 370 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 371 _flag_k = FK_CMP; 372 if (CMP_EQ(_flag_a, _flag_b)) goto L_36145773; /* 0x3614576E: je 0x36145773 */ 373 L_36145770: 374 MEM32(edi + 0x4) = ecx; /* 0x36145770: mov dword ptr [edi + 4], ecx */ 375 L_36145773: 376 edi = MEM32(ecx + 0x4); /* 0x36145773: mov edi, dword ptr [ecx + 4] */ 377 MEM32(edx + 0x4) = edi; /* 0x36145776: mov dword ptr [edx + 4], edi */ 378 edi = MEM32(esi + 0x4); /* 0x36145779: mov edi, dword ptr [esi + 4] */ 379 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3614577C: cmp ecx, dword ptr [edi + 4] */ 380 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 381 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 382 _flag_k = FK_CMP; 383 if (CMP_NE(_flag_a, _flag_b)) goto L_3614578C; /* 0x3614577F: jne 0x3614578c */ 384 L_36145781: 385 MEM32(edi + 0x4) = edx; /* 0x36145781: mov dword ptr [edi + 4], edx */ 386 MEM32(edx + 0x8) = ecx; /* 0x36145784: mov dword ptr [edx + 8], ecx */ 387 goto L_3614583E; /* 0x36145787: jmp 0x3614583e */ 388 L_3614578C: 389 edi = MEM32(ecx + 0x4); /* 0x3614578C: mov edi, dword ptr [ecx + 4] */ 390 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3614578F: cmp ecx, dword ptr [edi + 8] */ 391 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 392 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 393 _flag_k = FK_CMP; 394 if (CMP_NE(_flag_a, _flag_b)) goto L_3614579F; /* 0x36145792: jne 0x3614579f */ 395 L_36145794: 396 MEM32(edi + 0x8) = edx; /* 0x36145794: mov dword ptr [edi + 8], edx */ 397 MEM32(edx + 0x8) = ecx; /* 0x36145797: mov dword ptr [edx + 8], ecx */ 398 goto L_3614583E; /* 0x3614579A: jmp 0x3614583e */ 399 L_3614579F: 400 MEM32(edi) = edx; /* 0x3614579F: mov dword ptr [edi], edx */ 401 MEM32(edx + 0x8) = ecx; /* 0x361457A1: mov dword ptr [edx + 8], ecx */ 402 goto L_3614583E; /* 0x361457A4: jmp 0x3614583e */ 403 L_361457A9: 404 /* cmp MEM8(edx + 0x20), 0 */ /* 0x361457A9: cmp byte ptr [edx + 0x20], 0 */ 405 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 406 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 407 _flag_k = FK_NARROW(FK_CMP, 24); 408 RECOMP_BACKEDGE(); 409 if (CMP_EQ(_flag_a, _flag_b)) goto L_361456F1; /* 0x361457AD: je 0x361456f1 */ 410 L_361457B3: 411 /* cmp eax, MEM32(ecx) */ /* 0x361457B3: cmp eax, dword ptr [ecx] */ 412 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 413 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 414 _flag_k = FK_CMP; 415 if (CMP_NE(_flag_a, _flag_b)) goto L_361457F3; /* 0x361457B5: jne 0x361457f3 */ 416 L_361457B7: 417 eax = ecx; /* 0x361457B7: mov eax, ecx */ 418 ecx = MEM32(eax); /* 0x361457B9: mov ecx, dword ptr [eax] */ 419 edx = MEM32(ecx + 0x8); /* 0x361457BB: mov edx, dword ptr [ecx + 8] */ 420 MEM32(eax) = edx; /* 0x361457BE: mov dword ptr [eax], edx */ 421 edx = MEM32(ecx + 0x8); /* 0x361457C0: mov edx, dword ptr [ecx + 8] */ 422 /* cmp edx, MEM32(esi + 0x8) */ /* 0x361457C3: cmp edx, dword ptr [esi + 8] */ 423 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 424 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 425 _flag_k = FK_CMP; 426 if (CMP_EQ(_flag_a, _flag_b)) goto L_361457CB; /* 0x361457C6: je 0x361457cb */ 427 L_361457C8: 428 MEM32(edx + 0x4) = eax; /* 0x361457C8: mov dword ptr [edx + 4], eax */ 429 L_361457CB: 430 edx = MEM32(eax + 0x4); /* 0x361457CB: mov edx, dword ptr [eax + 4] */ 431 MEM32(ecx + 0x4) = edx; /* 0x361457CE: mov dword ptr [ecx + 4], edx */ 432 edx = MEM32(esi + 0x4); /* 0x361457D1: mov edx, dword ptr [esi + 4] */ 433 /* cmp eax, MEM32(edx + 0x4) */ /* 0x361457D4: cmp eax, dword ptr [edx + 4] */ 434 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 435 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 436 _flag_k = FK_CMP; 437 if (CMP_NE(_flag_a, _flag_b)) goto L_361457DE; /* 0x361457D7: jne 0x361457de */ 438 L_361457D9: 439 MEM32(edx + 0x4) = ecx; /* 0x361457D9: mov dword ptr [edx + 4], ecx */ 440 goto L_361457ED; /* 0x361457DC: jmp 0x361457ed */ 441 L_361457DE: 442 edx = MEM32(eax + 0x4); /* 0x361457DE: mov edx, dword ptr [eax + 4] */ 443 /* cmp eax, MEM32(edx + 0x8) */ /* 0x361457E1: cmp eax, dword ptr [edx + 8] */ 444 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 445 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 446 _flag_k = FK_CMP; 447 if (CMP_NE(_flag_a, _flag_b)) goto L_361457EB; /* 0x361457E4: jne 0x361457eb */ 448 L_361457E6: 449 MEM32(edx + 0x8) = ecx; /* 0x361457E6: mov dword ptr [edx + 8], ecx */ 450 goto L_361457ED; /* 0x361457E9: jmp 0x361457ed */ 451 L_361457EB: 452 MEM32(edx) = ecx; /* 0x361457EB: mov dword ptr [edx], ecx */ 453 L_361457ED: 454 MEM32(ecx + 0x8) = eax; /* 0x361457ED: mov dword ptr [ecx + 8], eax */ 455 MEM32(eax + 0x4) = ecx; /* 0x361457F0: mov dword ptr [eax + 4], ecx */ 456 L_361457F3: 457 ecx = MEM32(eax + 0x4); /* 0x361457F3: mov ecx, dword ptr [eax + 4] */ 458 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361457F6: mov byte ptr [ecx + 0x20], bl */ 459 edx = MEM32(eax + 0x4); /* 0x361457F9: mov edx, dword ptr [eax + 4] */ 460 ecx = MEM32(edx + 0x4); /* 0x361457FC: mov ecx, dword ptr [edx + 4] */ 461 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x361457FF: mov byte ptr [ecx + 0x20], 0 */ 462 edx = MEM32(eax + 0x4); /* 0x36145803: mov edx, dword ptr [eax + 4] */ 463 ecx = MEM32(edx + 0x4); /* 0x36145806: mov ecx, dword ptr [edx + 4] */ 464 edx = MEM32(ecx + 0x8); /* 0x36145809: mov edx, dword ptr [ecx + 8] */ 465 edi = MEM32(edx); /* 0x3614580C: mov edi, dword ptr [edx] */ 466 MEM32(ecx + 0x8) = edi; /* 0x3614580E: mov dword ptr [ecx + 8], edi */ 467 edi = MEM32(edx); /* 0x36145811: mov edi, dword ptr [edx] */ 468 /* cmp edi, MEM32(esi + 0x8) */ /* 0x36145813: cmp edi, dword ptr [esi + 8] */ 469 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 470 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 471 _flag_k = FK_CMP; 472 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614581B; /* 0x36145816: je 0x3614581b */ 473 L_36145818: 474 MEM32(edi + 0x4) = ecx; /* 0x36145818: mov dword ptr [edi + 4], ecx */ 475 L_3614581B: 476 edi = MEM32(ecx + 0x4); /* 0x3614581B: mov edi, dword ptr [ecx + 4] */ 477 MEM32(edx + 0x4) = edi; /* 0x3614581E: mov dword ptr [edx + 4], edi */ 478 edi = MEM32(esi + 0x4); /* 0x36145821: mov edi, dword ptr [esi + 4] */ 479 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36145824: cmp ecx, dword ptr [edi + 4] */ 480 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 481 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 482 _flag_k = FK_CMP; 483 if (CMP_NE(_flag_a, _flag_b)) goto L_3614582E; /* 0x36145827: jne 0x3614582e */ 484 L_36145829: 485 MEM32(edi + 0x4) = edx; /* 0x36145829: mov dword ptr [edi + 4], edx */ 486 goto L_3614583C; /* 0x3614582C: jmp 0x3614583c */ 487 L_3614582E: 488 edi = MEM32(ecx + 0x4); /* 0x3614582E: mov edi, dword ptr [ecx + 4] */ 489 /* cmp ecx, MEM32(edi) */ /* 0x36145831: cmp ecx, dword ptr [edi] */ 490 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 491 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 492 _flag_k = FK_CMP; 493 if (CMP_NE(_flag_a, _flag_b)) goto L_36145839; /* 0x36145833: jne 0x36145839 */ 494 L_36145835: 495 MEM32(edi) = edx; /* 0x36145835: mov dword ptr [edi], edx */ 496 goto L_3614583C; /* 0x36145837: jmp 0x3614583c */ 497 L_36145839: 498 MEM32(edi + 0x8) = edx; /* 0x36145839: mov dword ptr [edi + 8], edx */ 499 L_3614583C: 500 MEM32(edx) = ecx; /* 0x3614583C: mov dword ptr [edx], ecx */ 501 L_3614583E: 502 MEM32(ecx + 0x4) = edx; /* 0x3614583E: mov dword ptr [ecx + 4], edx */ 503 L_36145841: 504 ecx = MEM32(esi + 0x4); /* 0x36145841: mov ecx, dword ptr [esi + 4] */ 505 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36145844: cmp eax, dword ptr [ecx + 4] */ 506 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 507 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 508 _flag_k = FK_CMP; 509 RECOMP_BACKEDGE(); 510 if (CMP_NE(_flag_a, _flag_b)) goto L_361456CD; /* 0x36145847: jne 0x361456cd */ 511 L_3614584D: 512 edx = MEM32(esi + 0x4); /* 0x3614584D: mov edx, dword ptr [esi + 4] */ 513 eax = MEM32(edx + 0x4); /* 0x36145850: mov eax, dword ptr [edx + 4] */ 514 ecx = MEM32(ebp + (-0x4)); /* 0x36145853: mov ecx, dword ptr [ebp - 4] */ 515 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36145856: mov byte ptr [eax + 0x20], bl */ 516 eax = MEM32(ebp + 0x8); /* 0x36145859: mov eax, dword ptr [ebp + 8] */ 517 edi = POP32_VAL(esp); /* 0x3614585C: pop edi */ 518 esi = POP32_VAL(esp); /* 0x3614585D: pop esi */ 519 MEM32(eax) = ecx; /* 0x3614585E: mov dword ptr [eax], ecx */ 520 ebx = POP32_VAL(esp); /* 0x36145860: pop ebx */ 521 esp = ebp; /* 0x36145861: mov esp, ebp */ 522 ebp = POP32_VAL(esp); /* 0x36145863: pop ebp */ 523 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36145864: ret 0x10 */ 524 RECOMP_REGS_OUT(); 525 } 526 527 void sub_36145746(void) { 528 int _fpu_cmp = 0; 529 uint32_t _cf = 0; 530 int _df = 1; 531 uint32_t _flag_k = FK_NONE; 532 uint32_t _flag_a = 0, _flag_b = 0; 533 uint32_t _itail_tgt = 0; 534 RECOMP_REGS_LOCALS 535 RECOMP_ENTER(0x36145746u); 536 537 goto L_36145746; 538 L_361456CD: 539 ecx = MEM32(eax + 0x4); /* 0x361456CD: mov ecx, dword ptr [eax + 4] */ 540 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x361456D0: mov dl, byte ptr [ecx + 0x20] */ 541 /* test LO8(edx), LO8(edx) */ /* 0x361456D3: test dl, dl */ 542 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 543 _cf = 0; 544 _flag_k = FK_NARROW(FK_TEST, 24); 545 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614584D; /* 0x361456D5: jne 0x3614584d */ 546 L_361456DB: 547 edi = MEM32(ecx + 0x4); /* 0x361456DB: mov edi, dword ptr [ecx + 4] */ 548 edx = MEM32(edi); /* 0x361456DE: mov edx, dword ptr [edi] */ 549 /* cmp ecx, edx */ /* 0x361456E0: cmp ecx, edx */ 550 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 551 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 552 _flag_k = FK_CMP; 553 if (CMP_NE(_flag_a, _flag_b)) goto L_361457A9; /* 0x361456E2: jne 0x361457a9 */ 554 L_361456E8: 555 edx = MEM32(edi + 0x8); /* 0x361456E8: mov edx, dword ptr [edi + 8] */ 556 /* cmp MEM8(edx + 0x20), 0 */ /* 0x361456EB: cmp byte ptr [edx + 0x20], 0 */ 557 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 558 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 559 _flag_k = FK_NARROW(FK_CMP, 24); 560 if (CMP_NE(_flag_a, _flag_b)) goto L_3614570C; /* 0x361456EF: jne 0x3614570c */ 561 L_361456F1: 562 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361456F1: mov byte ptr [ecx + 0x20], bl */ 563 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361456F4: mov byte ptr [edx + 0x20], bl */ 564 ecx = MEM32(eax + 0x4); /* 0x361456F7: mov ecx, dword ptr [eax + 4] */ 565 edx = MEM32(ecx + 0x4); /* 0x361456FA: mov edx, dword ptr [ecx + 4] */ 566 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x361456FD: mov byte ptr [edx + 0x20], 0 */ 567 eax = MEM32(eax + 0x4); /* 0x36145701: mov eax, dword ptr [eax + 4] */ 568 eax = MEM32(eax + 0x4); /* 0x36145704: mov eax, dword ptr [eax + 4] */ 569 goto L_36145841; /* 0x36145707: jmp 0x36145841 */ 570 L_3614570C: 571 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3614570C: cmp eax, dword ptr [ecx + 8] */ 572 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 573 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 574 _flag_k = FK_CMP; 575 if (CMP_NE(_flag_a, _flag_b)) goto L_3614574B; /* 0x3614570F: jne 0x3614574b */ 576 L_36145711: 577 eax = ecx; /* 0x36145711: mov eax, ecx */ 578 ecx = MEM32(eax + 0x8); /* 0x36145713: mov ecx, dword ptr [eax + 8] */ 579 edx = MEM32(ecx); /* 0x36145716: mov edx, dword ptr [ecx] */ 580 MEM32(eax + 0x8) = edx; /* 0x36145718: mov dword ptr [eax + 8], edx */ 581 edx = MEM32(ecx); /* 0x3614571B: mov edx, dword ptr [ecx] */ 582 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3614571D: cmp edx, dword ptr [esi + 8] */ 583 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 584 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 585 _flag_k = FK_CMP; 586 if (CMP_EQ(_flag_a, _flag_b)) goto L_36145725; /* 0x36145720: je 0x36145725 */ 587 L_36145722: 588 MEM32(edx + 0x4) = eax; /* 0x36145722: mov dword ptr [edx + 4], eax */ 589 L_36145725: 590 edx = MEM32(eax + 0x4); /* 0x36145725: mov edx, dword ptr [eax + 4] */ 591 MEM32(ecx + 0x4) = edx; /* 0x36145728: mov dword ptr [ecx + 4], edx */ 592 edx = MEM32(esi + 0x4); /* 0x3614572B: mov edx, dword ptr [esi + 4] */ 593 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3614572E: cmp eax, dword ptr [edx + 4] */ 594 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 595 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 596 _flag_k = FK_CMP; 597 if (CMP_NE(_flag_a, _flag_b)) goto L_36145738; /* 0x36145731: jne 0x36145738 */ 598 L_36145733: 599 MEM32(edx + 0x4) = ecx; /* 0x36145733: mov dword ptr [edx + 4], ecx */ 600 goto L_36145746; /* 0x36145736: jmp 0x36145746 */ 601 L_36145738: 602 edx = MEM32(eax + 0x4); /* 0x36145738: mov edx, dword ptr [eax + 4] */ 603 /* cmp eax, MEM32(edx) */ /* 0x3614573B: cmp eax, dword ptr [edx] */ 604 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 605 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 606 _flag_k = FK_CMP; 607 if (CMP_NE(_flag_a, _flag_b)) goto L_36145743; /* 0x3614573D: jne 0x36145743 */ 608 L_3614573F: 609 MEM32(edx) = ecx; /* 0x3614573F: mov dword ptr [edx], ecx */ 610 goto L_36145746; /* 0x36145741: jmp 0x36145746 */ 611 L_36145743: 612 MEM32(edx + 0x8) = ecx; /* 0x36145743: mov dword ptr [edx + 8], ecx */ 613 L_36145746: 614 MEM32(ecx) = eax; /* 0x36145746: mov dword ptr [ecx], eax */ 615 MEM32(eax + 0x4) = ecx; /* 0x36145748: mov dword ptr [eax + 4], ecx */ 616 L_3614574B: 617 ecx = MEM32(eax + 0x4); /* 0x3614574B: mov ecx, dword ptr [eax + 4] */ 618 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614574E: mov byte ptr [ecx + 0x20], bl */ 619 edx = MEM32(eax + 0x4); /* 0x36145751: mov edx, dword ptr [eax + 4] */ 620 ecx = MEM32(edx + 0x4); /* 0x36145754: mov ecx, dword ptr [edx + 4] */ 621 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36145757: mov byte ptr [ecx + 0x20], 0 */ 622 edx = MEM32(eax + 0x4); /* 0x3614575B: mov edx, dword ptr [eax + 4] */ 623 ecx = MEM32(edx + 0x4); /* 0x3614575E: mov ecx, dword ptr [edx + 4] */ 624 edx = MEM32(ecx); /* 0x36145761: mov edx, dword ptr [ecx] */ 625 edi = MEM32(edx + 0x8); /* 0x36145763: mov edi, dword ptr [edx + 8] */ 626 MEM32(ecx) = edi; /* 0x36145766: mov dword ptr [ecx], edi */ 627 edi = MEM32(edx + 0x8); /* 0x36145768: mov edi, dword ptr [edx + 8] */ 628 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3614576B: cmp edi, dword ptr [esi + 8] */ 629 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 630 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 631 _flag_k = FK_CMP; 632 if (CMP_EQ(_flag_a, _flag_b)) goto L_36145773; /* 0x3614576E: je 0x36145773 */ 633 L_36145770: 634 MEM32(edi + 0x4) = ecx; /* 0x36145770: mov dword ptr [edi + 4], ecx */ 635 L_36145773: 636 edi = MEM32(ecx + 0x4); /* 0x36145773: mov edi, dword ptr [ecx + 4] */ 637 MEM32(edx + 0x4) = edi; /* 0x36145776: mov dword ptr [edx + 4], edi */ 638 edi = MEM32(esi + 0x4); /* 0x36145779: mov edi, dword ptr [esi + 4] */ 639 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3614577C: cmp ecx, dword ptr [edi + 4] */ 640 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 641 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 642 _flag_k = FK_CMP; 643 if (CMP_NE(_flag_a, _flag_b)) goto L_3614578C; /* 0x3614577F: jne 0x3614578c */ 644 L_36145781: 645 MEM32(edi + 0x4) = edx; /* 0x36145781: mov dword ptr [edi + 4], edx */ 646 MEM32(edx + 0x8) = ecx; /* 0x36145784: mov dword ptr [edx + 8], ecx */ 647 goto L_3614583E; /* 0x36145787: jmp 0x3614583e */ 648 L_3614578C: 649 edi = MEM32(ecx + 0x4); /* 0x3614578C: mov edi, dword ptr [ecx + 4] */ 650 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3614578F: cmp ecx, dword ptr [edi + 8] */ 651 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 652 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 653 _flag_k = FK_CMP; 654 if (CMP_NE(_flag_a, _flag_b)) goto L_3614579F; /* 0x36145792: jne 0x3614579f */ 655 L_36145794: 656 MEM32(edi + 0x8) = edx; /* 0x36145794: mov dword ptr [edi + 8], edx */ 657 MEM32(edx + 0x8) = ecx; /* 0x36145797: mov dword ptr [edx + 8], ecx */ 658 goto L_3614583E; /* 0x3614579A: jmp 0x3614583e */ 659 L_3614579F: 660 MEM32(edi) = edx; /* 0x3614579F: mov dword ptr [edi], edx */ 661 MEM32(edx + 0x8) = ecx; /* 0x361457A1: mov dword ptr [edx + 8], ecx */ 662 goto L_3614583E; /* 0x361457A4: jmp 0x3614583e */ 663 L_361457A9: 664 /* cmp MEM8(edx + 0x20), 0 */ /* 0x361457A9: cmp byte ptr [edx + 0x20], 0 */ 665 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 666 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 667 _flag_k = FK_NARROW(FK_CMP, 24); 668 RECOMP_BACKEDGE(); 669 if (CMP_EQ(_flag_a, _flag_b)) goto L_361456F1; /* 0x361457AD: je 0x361456f1 */ 670 L_361457B3: 671 /* cmp eax, MEM32(ecx) */ /* 0x361457B3: cmp eax, dword ptr [ecx] */ 672 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 673 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 674 _flag_k = FK_CMP; 675 if (CMP_NE(_flag_a, _flag_b)) goto L_361457F3; /* 0x361457B5: jne 0x361457f3 */ 676 L_361457B7: 677 eax = ecx; /* 0x361457B7: mov eax, ecx */ 678 ecx = MEM32(eax); /* 0x361457B9: mov ecx, dword ptr [eax] */ 679 edx = MEM32(ecx + 0x8); /* 0x361457BB: mov edx, dword ptr [ecx + 8] */ 680 MEM32(eax) = edx; /* 0x361457BE: mov dword ptr [eax], edx */ 681 edx = MEM32(ecx + 0x8); /* 0x361457C0: mov edx, dword ptr [ecx + 8] */ 682 /* cmp edx, MEM32(esi + 0x8) */ /* 0x361457C3: cmp edx, dword ptr [esi + 8] */ 683 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 684 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 685 _flag_k = FK_CMP; 686 if (CMP_EQ(_flag_a, _flag_b)) goto L_361457CB; /* 0x361457C6: je 0x361457cb */ 687 L_361457C8: 688 MEM32(edx + 0x4) = eax; /* 0x361457C8: mov dword ptr [edx + 4], eax */ 689 L_361457CB: 690 edx = MEM32(eax + 0x4); /* 0x361457CB: mov edx, dword ptr [eax + 4] */ 691 MEM32(ecx + 0x4) = edx; /* 0x361457CE: mov dword ptr [ecx + 4], edx */ 692 edx = MEM32(esi + 0x4); /* 0x361457D1: mov edx, dword ptr [esi + 4] */ 693 /* cmp eax, MEM32(edx + 0x4) */ /* 0x361457D4: cmp eax, dword ptr [edx + 4] */ 694 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 695 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 696 _flag_k = FK_CMP; 697 if (CMP_NE(_flag_a, _flag_b)) goto L_361457DE; /* 0x361457D7: jne 0x361457de */ 698 L_361457D9: 699 MEM32(edx + 0x4) = ecx; /* 0x361457D9: mov dword ptr [edx + 4], ecx */ 700 goto L_361457ED; /* 0x361457DC: jmp 0x361457ed */ 701 L_361457DE: 702 edx = MEM32(eax + 0x4); /* 0x361457DE: mov edx, dword ptr [eax + 4] */ 703 /* cmp eax, MEM32(edx + 0x8) */ /* 0x361457E1: cmp eax, dword ptr [edx + 8] */ 704 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 705 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 706 _flag_k = FK_CMP; 707 if (CMP_NE(_flag_a, _flag_b)) goto L_361457EB; /* 0x361457E4: jne 0x361457eb */ 708 L_361457E6: 709 MEM32(edx + 0x8) = ecx; /* 0x361457E6: mov dword ptr [edx + 8], ecx */ 710 goto L_361457ED; /* 0x361457E9: jmp 0x361457ed */ 711 L_361457EB: 712 MEM32(edx) = ecx; /* 0x361457EB: mov dword ptr [edx], ecx */ 713 L_361457ED: 714 MEM32(ecx + 0x8) = eax; /* 0x361457ED: mov dword ptr [ecx + 8], eax */ 715 MEM32(eax + 0x4) = ecx; /* 0x361457F0: mov dword ptr [eax + 4], ecx */ 716 L_361457F3: 717 ecx = MEM32(eax + 0x4); /* 0x361457F3: mov ecx, dword ptr [eax + 4] */ 718 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361457F6: mov byte ptr [ecx + 0x20], bl */ 719 edx = MEM32(eax + 0x4); /* 0x361457F9: mov edx, dword ptr [eax + 4] */ 720 ecx = MEM32(edx + 0x4); /* 0x361457FC: mov ecx, dword ptr [edx + 4] */ 721 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x361457FF: mov byte ptr [ecx + 0x20], 0 */ 722 edx = MEM32(eax + 0x4); /* 0x36145803: mov edx, dword ptr [eax + 4] */ 723 ecx = MEM32(edx + 0x4); /* 0x36145806: mov ecx, dword ptr [edx + 4] */ 724 edx = MEM32(ecx + 0x8); /* 0x36145809: mov edx, dword ptr [ecx + 8] */ 725 edi = MEM32(edx); /* 0x3614580C: mov edi, dword ptr [edx] */ 726 MEM32(ecx + 0x8) = edi; /* 0x3614580E: mov dword ptr [ecx + 8], edi */ 727 edi = MEM32(edx); /* 0x36145811: mov edi, dword ptr [edx] */ 728 /* cmp edi, MEM32(esi + 0x8) */ /* 0x36145813: cmp edi, dword ptr [esi + 8] */ 729 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 730 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 731 _flag_k = FK_CMP; 732 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614581B; /* 0x36145816: je 0x3614581b */ 733 L_36145818: 734 MEM32(edi + 0x4) = ecx; /* 0x36145818: mov dword ptr [edi + 4], ecx */ 735 L_3614581B: 736 edi = MEM32(ecx + 0x4); /* 0x3614581B: mov edi, dword ptr [ecx + 4] */ 737 MEM32(edx + 0x4) = edi; /* 0x3614581E: mov dword ptr [edx + 4], edi */ 738 edi = MEM32(esi + 0x4); /* 0x36145821: mov edi, dword ptr [esi + 4] */ 739 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36145824: cmp ecx, dword ptr [edi + 4] */ 740 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 741 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 742 _flag_k = FK_CMP; 743 if (CMP_NE(_flag_a, _flag_b)) goto L_3614582E; /* 0x36145827: jne 0x3614582e */ 744 L_36145829: 745 MEM32(edi + 0x4) = edx; /* 0x36145829: mov dword ptr [edi + 4], edx */ 746 goto L_3614583C; /* 0x3614582C: jmp 0x3614583c */ 747 L_3614582E: 748 edi = MEM32(ecx + 0x4); /* 0x3614582E: mov edi, dword ptr [ecx + 4] */ 749 /* cmp ecx, MEM32(edi) */ /* 0x36145831: cmp ecx, dword ptr [edi] */ 750 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 751 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 752 _flag_k = FK_CMP; 753 if (CMP_NE(_flag_a, _flag_b)) goto L_36145839; /* 0x36145833: jne 0x36145839 */ 754 L_36145835: 755 MEM32(edi) = edx; /* 0x36145835: mov dword ptr [edi], edx */ 756 goto L_3614583C; /* 0x36145837: jmp 0x3614583c */ 757 L_36145839: 758 MEM32(edi + 0x8) = edx; /* 0x36145839: mov dword ptr [edi + 8], edx */ 759 L_3614583C: 760 MEM32(edx) = ecx; /* 0x3614583C: mov dword ptr [edx], ecx */ 761 L_3614583E: 762 MEM32(ecx + 0x4) = edx; /* 0x3614583E: mov dword ptr [ecx + 4], edx */ 763 L_36145841: 764 ecx = MEM32(esi + 0x4); /* 0x36145841: mov ecx, dword ptr [esi + 4] */ 765 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36145844: cmp eax, dword ptr [ecx + 4] */ 766 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 767 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 768 _flag_k = FK_CMP; 769 RECOMP_BACKEDGE(); 770 if (CMP_NE(_flag_a, _flag_b)) goto L_361456CD; /* 0x36145847: jne 0x361456cd */ 771 L_3614584D: 772 edx = MEM32(esi + 0x4); /* 0x3614584D: mov edx, dword ptr [esi + 4] */ 773 eax = MEM32(edx + 0x4); /* 0x36145850: mov eax, dword ptr [edx + 4] */ 774 ecx = MEM32(ebp + (-0x4)); /* 0x36145853: mov ecx, dword ptr [ebp - 4] */ 775 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36145856: mov byte ptr [eax + 0x20], bl */ 776 eax = MEM32(ebp + 0x8); /* 0x36145859: mov eax, dword ptr [ebp + 8] */ 777 edi = POP32_VAL(esp); /* 0x3614585C: pop edi */ 778 esi = POP32_VAL(esp); /* 0x3614585D: pop esi */ 779 MEM32(eax) = ecx; /* 0x3614585E: mov dword ptr [eax], ecx */ 780 ebx = POP32_VAL(esp); /* 0x36145860: pop ebx */ 781 esp = ebp; /* 0x36145861: mov esp, ebp */ 782 ebp = POP32_VAL(esp); /* 0x36145863: pop ebp */ 783 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36145864: ret 0x10 */ 784 RECOMP_REGS_OUT(); 785 } 786 787 void sub_3614574B(void) { 788 int _fpu_cmp = 0; 789 uint32_t _cf = 0; 790 int _df = 1; 791 uint32_t _flag_k = FK_NONE; 792 uint32_t _flag_a = 0, _flag_b = 0; 793 uint32_t _itail_tgt = 0; 794 RECOMP_REGS_LOCALS 795 RECOMP_ENTER(0x3614574Bu); 796 797 goto L_3614574B; 798 L_361456CD: 799 ecx = MEM32(eax + 0x4); /* 0x361456CD: mov ecx, dword ptr [eax + 4] */ 800 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x361456D0: mov dl, byte ptr [ecx + 0x20] */ 801 /* test LO8(edx), LO8(edx) */ /* 0x361456D3: test dl, dl */ 802 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 803 _cf = 0; 804 _flag_k = FK_NARROW(FK_TEST, 24); 805 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614584D; /* 0x361456D5: jne 0x3614584d */ 806 L_361456DB: 807 edi = MEM32(ecx + 0x4); /* 0x361456DB: mov edi, dword ptr [ecx + 4] */ 808 edx = MEM32(edi); /* 0x361456DE: mov edx, dword ptr [edi] */ 809 /* cmp ecx, edx */ /* 0x361456E0: cmp ecx, edx */ 810 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 811 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 812 _flag_k = FK_CMP; 813 if (CMP_NE(_flag_a, _flag_b)) goto L_361457A9; /* 0x361456E2: jne 0x361457a9 */ 814 L_361456E8: 815 edx = MEM32(edi + 0x8); /* 0x361456E8: mov edx, dword ptr [edi + 8] */ 816 /* cmp MEM8(edx + 0x20), 0 */ /* 0x361456EB: cmp byte ptr [edx + 0x20], 0 */ 817 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 818 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 819 _flag_k = FK_NARROW(FK_CMP, 24); 820 if (CMP_NE(_flag_a, _flag_b)) goto L_3614570C; /* 0x361456EF: jne 0x3614570c */ 821 L_361456F1: 822 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361456F1: mov byte ptr [ecx + 0x20], bl */ 823 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361456F4: mov byte ptr [edx + 0x20], bl */ 824 ecx = MEM32(eax + 0x4); /* 0x361456F7: mov ecx, dword ptr [eax + 4] */ 825 edx = MEM32(ecx + 0x4); /* 0x361456FA: mov edx, dword ptr [ecx + 4] */ 826 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x361456FD: mov byte ptr [edx + 0x20], 0 */ 827 eax = MEM32(eax + 0x4); /* 0x36145701: mov eax, dword ptr [eax + 4] */ 828 eax = MEM32(eax + 0x4); /* 0x36145704: mov eax, dword ptr [eax + 4] */ 829 goto L_36145841; /* 0x36145707: jmp 0x36145841 */ 830 L_3614570C: 831 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3614570C: cmp eax, dword ptr [ecx + 8] */ 832 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 833 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 834 _flag_k = FK_CMP; 835 if (CMP_NE(_flag_a, _flag_b)) goto L_3614574B; /* 0x3614570F: jne 0x3614574b */ 836 L_36145711: 837 eax = ecx; /* 0x36145711: mov eax, ecx */ 838 ecx = MEM32(eax + 0x8); /* 0x36145713: mov ecx, dword ptr [eax + 8] */ 839 edx = MEM32(ecx); /* 0x36145716: mov edx, dword ptr [ecx] */ 840 MEM32(eax + 0x8) = edx; /* 0x36145718: mov dword ptr [eax + 8], edx */ 841 edx = MEM32(ecx); /* 0x3614571B: mov edx, dword ptr [ecx] */ 842 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3614571D: cmp edx, dword ptr [esi + 8] */ 843 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 844 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 845 _flag_k = FK_CMP; 846 if (CMP_EQ(_flag_a, _flag_b)) goto L_36145725; /* 0x36145720: je 0x36145725 */ 847 L_36145722: 848 MEM32(edx + 0x4) = eax; /* 0x36145722: mov dword ptr [edx + 4], eax */ 849 L_36145725: 850 edx = MEM32(eax + 0x4); /* 0x36145725: mov edx, dword ptr [eax + 4] */ 851 MEM32(ecx + 0x4) = edx; /* 0x36145728: mov dword ptr [ecx + 4], edx */ 852 edx = MEM32(esi + 0x4); /* 0x3614572B: mov edx, dword ptr [esi + 4] */ 853 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3614572E: cmp eax, dword ptr [edx + 4] */ 854 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 855 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 856 _flag_k = FK_CMP; 857 if (CMP_NE(_flag_a, _flag_b)) goto L_36145738; /* 0x36145731: jne 0x36145738 */ 858 L_36145733: 859 MEM32(edx + 0x4) = ecx; /* 0x36145733: mov dword ptr [edx + 4], ecx */ 860 goto L_36145746; /* 0x36145736: jmp 0x36145746 */ 861 L_36145738: 862 edx = MEM32(eax + 0x4); /* 0x36145738: mov edx, dword ptr [eax + 4] */ 863 /* cmp eax, MEM32(edx) */ /* 0x3614573B: cmp eax, dword ptr [edx] */ 864 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 865 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 866 _flag_k = FK_CMP; 867 if (CMP_NE(_flag_a, _flag_b)) goto L_36145743; /* 0x3614573D: jne 0x36145743 */ 868 L_3614573F: 869 MEM32(edx) = ecx; /* 0x3614573F: mov dword ptr [edx], ecx */ 870 goto L_36145746; /* 0x36145741: jmp 0x36145746 */ 871 L_36145743: 872 MEM32(edx + 0x8) = ecx; /* 0x36145743: mov dword ptr [edx + 8], ecx */ 873 L_36145746: 874 MEM32(ecx) = eax; /* 0x36145746: mov dword ptr [ecx], eax */ 875 MEM32(eax + 0x4) = ecx; /* 0x36145748: mov dword ptr [eax + 4], ecx */ 876 L_3614574B: 877 ecx = MEM32(eax + 0x4); /* 0x3614574B: mov ecx, dword ptr [eax + 4] */ 878 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614574E: mov byte ptr [ecx + 0x20], bl */ 879 edx = MEM32(eax + 0x4); /* 0x36145751: mov edx, dword ptr [eax + 4] */ 880 ecx = MEM32(edx + 0x4); /* 0x36145754: mov ecx, dword ptr [edx + 4] */ 881 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36145757: mov byte ptr [ecx + 0x20], 0 */ 882 edx = MEM32(eax + 0x4); /* 0x3614575B: mov edx, dword ptr [eax + 4] */ 883 ecx = MEM32(edx + 0x4); /* 0x3614575E: mov ecx, dword ptr [edx + 4] */ 884 edx = MEM32(ecx); /* 0x36145761: mov edx, dword ptr [ecx] */ 885 edi = MEM32(edx + 0x8); /* 0x36145763: mov edi, dword ptr [edx + 8] */ 886 MEM32(ecx) = edi; /* 0x36145766: mov dword ptr [ecx], edi */ 887 edi = MEM32(edx + 0x8); /* 0x36145768: mov edi, dword ptr [edx + 8] */ 888 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3614576B: cmp edi, dword ptr [esi + 8] */ 889 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 890 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 891 _flag_k = FK_CMP; 892 if (CMP_EQ(_flag_a, _flag_b)) goto L_36145773; /* 0x3614576E: je 0x36145773 */ 893 L_36145770: 894 MEM32(edi + 0x4) = ecx; /* 0x36145770: mov dword ptr [edi + 4], ecx */ 895 L_36145773: 896 edi = MEM32(ecx + 0x4); /* 0x36145773: mov edi, dword ptr [ecx + 4] */ 897 MEM32(edx + 0x4) = edi; /* 0x36145776: mov dword ptr [edx + 4], edi */ 898 edi = MEM32(esi + 0x4); /* 0x36145779: mov edi, dword ptr [esi + 4] */ 899 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3614577C: cmp ecx, dword ptr [edi + 4] */ 900 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 901 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 902 _flag_k = FK_CMP; 903 if (CMP_NE(_flag_a, _flag_b)) goto L_3614578C; /* 0x3614577F: jne 0x3614578c */ 904 L_36145781: 905 MEM32(edi + 0x4) = edx; /* 0x36145781: mov dword ptr [edi + 4], edx */ 906 MEM32(edx + 0x8) = ecx; /* 0x36145784: mov dword ptr [edx + 8], ecx */ 907 goto L_3614583E; /* 0x36145787: jmp 0x3614583e */ 908 L_3614578C: 909 edi = MEM32(ecx + 0x4); /* 0x3614578C: mov edi, dword ptr [ecx + 4] */ 910 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3614578F: cmp ecx, dword ptr [edi + 8] */ 911 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 912 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 913 _flag_k = FK_CMP; 914 if (CMP_NE(_flag_a, _flag_b)) goto L_3614579F; /* 0x36145792: jne 0x3614579f */ 915 L_36145794: 916 MEM32(edi + 0x8) = edx; /* 0x36145794: mov dword ptr [edi + 8], edx */ 917 MEM32(edx + 0x8) = ecx; /* 0x36145797: mov dword ptr [edx + 8], ecx */ 918 goto L_3614583E; /* 0x3614579A: jmp 0x3614583e */ 919 L_3614579F: 920 MEM32(edi) = edx; /* 0x3614579F: mov dword ptr [edi], edx */ 921 MEM32(edx + 0x8) = ecx; /* 0x361457A1: mov dword ptr [edx + 8], ecx */ 922 goto L_3614583E; /* 0x361457A4: jmp 0x3614583e */ 923 L_361457A9: 924 /* cmp MEM8(edx + 0x20), 0 */ /* 0x361457A9: cmp byte ptr [edx + 0x20], 0 */ 925 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 926 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 927 _flag_k = FK_NARROW(FK_CMP, 24); 928 RECOMP_BACKEDGE(); 929 if (CMP_EQ(_flag_a, _flag_b)) goto L_361456F1; /* 0x361457AD: je 0x361456f1 */ 930 L_361457B3: 931 /* cmp eax, MEM32(ecx) */ /* 0x361457B3: cmp eax, dword ptr [ecx] */ 932 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 933 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 934 _flag_k = FK_CMP; 935 if (CMP_NE(_flag_a, _flag_b)) goto L_361457F3; /* 0x361457B5: jne 0x361457f3 */ 936 L_361457B7: 937 eax = ecx; /* 0x361457B7: mov eax, ecx */ 938 ecx = MEM32(eax); /* 0x361457B9: mov ecx, dword ptr [eax] */ 939 edx = MEM32(ecx + 0x8); /* 0x361457BB: mov edx, dword ptr [ecx + 8] */ 940 MEM32(eax) = edx; /* 0x361457BE: mov dword ptr [eax], edx */ 941 edx = MEM32(ecx + 0x8); /* 0x361457C0: mov edx, dword ptr [ecx + 8] */ 942 /* cmp edx, MEM32(esi + 0x8) */ /* 0x361457C3: cmp edx, dword ptr [esi + 8] */ 943 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 944 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 945 _flag_k = FK_CMP; 946 if (CMP_EQ(_flag_a, _flag_b)) goto L_361457CB; /* 0x361457C6: je 0x361457cb */ 947 L_361457C8: 948 MEM32(edx + 0x4) = eax; /* 0x361457C8: mov dword ptr [edx + 4], eax */ 949 L_361457CB: 950 edx = MEM32(eax + 0x4); /* 0x361457CB: mov edx, dword ptr [eax + 4] */ 951 MEM32(ecx + 0x4) = edx; /* 0x361457CE: mov dword ptr [ecx + 4], edx */ 952 edx = MEM32(esi + 0x4); /* 0x361457D1: mov edx, dword ptr [esi + 4] */ 953 /* cmp eax, MEM32(edx + 0x4) */ /* 0x361457D4: cmp eax, dword ptr [edx + 4] */ 954 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 955 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 956 _flag_k = FK_CMP; 957 if (CMP_NE(_flag_a, _flag_b)) goto L_361457DE; /* 0x361457D7: jne 0x361457de */ 958 L_361457D9: 959 MEM32(edx + 0x4) = ecx; /* 0x361457D9: mov dword ptr [edx + 4], ecx */ 960 goto L_361457ED; /* 0x361457DC: jmp 0x361457ed */ 961 L_361457DE: 962 edx = MEM32(eax + 0x4); /* 0x361457DE: mov edx, dword ptr [eax + 4] */ 963 /* cmp eax, MEM32(edx + 0x8) */ /* 0x361457E1: cmp eax, dword ptr [edx + 8] */ 964 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 965 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 966 _flag_k = FK_CMP; 967 if (CMP_NE(_flag_a, _flag_b)) goto L_361457EB; /* 0x361457E4: jne 0x361457eb */ 968 L_361457E6: 969 MEM32(edx + 0x8) = ecx; /* 0x361457E6: mov dword ptr [edx + 8], ecx */ 970 goto L_361457ED; /* 0x361457E9: jmp 0x361457ed */ 971 L_361457EB: 972 MEM32(edx) = ecx; /* 0x361457EB: mov dword ptr [edx], ecx */ 973 L_361457ED: 974 MEM32(ecx + 0x8) = eax; /* 0x361457ED: mov dword ptr [ecx + 8], eax */ 975 MEM32(eax + 0x4) = ecx; /* 0x361457F0: mov dword ptr [eax + 4], ecx */ 976 L_361457F3: 977 ecx = MEM32(eax + 0x4); /* 0x361457F3: mov ecx, dword ptr [eax + 4] */ 978 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361457F6: mov byte ptr [ecx + 0x20], bl */ 979 edx = MEM32(eax + 0x4); /* 0x361457F9: mov edx, dword ptr [eax + 4] */ 980 ecx = MEM32(edx + 0x4); /* 0x361457FC: mov ecx, dword ptr [edx + 4] */ 981 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x361457FF: mov byte ptr [ecx + 0x20], 0 */ 982 edx = MEM32(eax + 0x4); /* 0x36145803: mov edx, dword ptr [eax + 4] */ 983 ecx = MEM32(edx + 0x4); /* 0x36145806: mov ecx, dword ptr [edx + 4] */ 984 edx = MEM32(ecx + 0x8); /* 0x36145809: mov edx, dword ptr [ecx + 8] */ 985 edi = MEM32(edx); /* 0x3614580C: mov edi, dword ptr [edx] */ 986 MEM32(ecx + 0x8) = edi; /* 0x3614580E: mov dword ptr [ecx + 8], edi */ 987 edi = MEM32(edx); /* 0x36145811: mov edi, dword ptr [edx] */ 988 /* cmp edi, MEM32(esi + 0x8) */ /* 0x36145813: cmp edi, dword ptr [esi + 8] */ 989 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 990 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 991 _flag_k = FK_CMP; 992 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614581B; /* 0x36145816: je 0x3614581b */ 993 L_36145818: 994 MEM32(edi + 0x4) = ecx; /* 0x36145818: mov dword ptr [edi + 4], ecx */ 995 L_3614581B: 996 edi = MEM32(ecx + 0x4); /* 0x3614581B: mov edi, dword ptr [ecx + 4] */ 997 MEM32(edx + 0x4) = edi; /* 0x3614581E: mov dword ptr [edx + 4], edi */ 998 edi = MEM32(esi + 0x4); /* 0x36145821: mov edi, dword ptr [esi + 4] */ 999 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36145824: cmp ecx, dword ptr [edi + 4] */ 1000 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1001 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1002 _flag_k = FK_CMP; 1003 if (CMP_NE(_flag_a, _flag_b)) goto L_3614582E; /* 0x36145827: jne 0x3614582e */ 1004 L_36145829: 1005 MEM32(edi + 0x4) = edx; /* 0x36145829: mov dword ptr [edi + 4], edx */ 1006 goto L_3614583C; /* 0x3614582C: jmp 0x3614583c */ 1007 L_3614582E: 1008 edi = MEM32(ecx + 0x4); /* 0x3614582E: mov edi, dword ptr [ecx + 4] */ 1009 /* cmp ecx, MEM32(edi) */ /* 0x36145831: cmp ecx, dword ptr [edi] */ 1010 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 1011 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1012 _flag_k = FK_CMP; 1013 if (CMP_NE(_flag_a, _flag_b)) goto L_36145839; /* 0x36145833: jne 0x36145839 */ 1014 L_36145835: 1015 MEM32(edi) = edx; /* 0x36145835: mov dword ptr [edi], edx */ 1016 goto L_3614583C; /* 0x36145837: jmp 0x3614583c */ 1017 L_36145839: 1018 MEM32(edi + 0x8) = edx; /* 0x36145839: mov dword ptr [edi + 8], edx */ 1019 L_3614583C: 1020 MEM32(edx) = ecx; /* 0x3614583C: mov dword ptr [edx], ecx */ 1021 L_3614583E: 1022 MEM32(ecx + 0x4) = edx; /* 0x3614583E: mov dword ptr [ecx + 4], edx */ 1023 L_36145841: 1024 ecx = MEM32(esi + 0x4); /* 0x36145841: mov ecx, dword ptr [esi + 4] */ 1025 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36145844: cmp eax, dword ptr [ecx + 4] */ 1026 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 1027 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1028 _flag_k = FK_CMP; 1029 RECOMP_BACKEDGE(); 1030 if (CMP_NE(_flag_a, _flag_b)) goto L_361456CD; /* 0x36145847: jne 0x361456cd */ 1031 L_3614584D: 1032 edx = MEM32(esi + 0x4); /* 0x3614584D: mov edx, dword ptr [esi + 4] */ 1033 eax = MEM32(edx + 0x4); /* 0x36145850: mov eax, dword ptr [edx + 4] */ 1034 ecx = MEM32(ebp + (-0x4)); /* 0x36145853: mov ecx, dword ptr [ebp - 4] */ 1035 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36145856: mov byte ptr [eax + 0x20], bl */ 1036 eax = MEM32(ebp + 0x8); /* 0x36145859: mov eax, dword ptr [ebp + 8] */ 1037 edi = POP32_VAL(esp); /* 0x3614585C: pop edi */ 1038 esi = POP32_VAL(esp); /* 0x3614585D: pop esi */ 1039 MEM32(eax) = ecx; /* 0x3614585E: mov dword ptr [eax], ecx */ 1040 ebx = POP32_VAL(esp); /* 0x36145860: pop ebx */ 1041 esp = ebp; /* 0x36145861: mov esp, ebp */ 1042 ebp = POP32_VAL(esp); /* 0x36145863: pop ebp */ 1043 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36145864: ret 0x10 */ 1044 RECOMP_REGS_OUT(); 1045 } 1046 1047 void sub_361457A9(void) { 1048 int _fpu_cmp = 0; 1049 uint32_t _cf = 0; 1050 int _df = 1; 1051 uint32_t _flag_k = FK_NONE; 1052 uint32_t _flag_a = 0, _flag_b = 0; 1053 uint32_t _itail_tgt = 0; 1054 RECOMP_REGS_LOCALS 1055 RECOMP_ENTER(0x361457A9u); 1056 1057 goto L_361457A9; 1058 L_361456CD: 1059 ecx = MEM32(eax + 0x4); /* 0x361456CD: mov ecx, dword ptr [eax + 4] */ 1060 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x361456D0: mov dl, byte ptr [ecx + 0x20] */ 1061 /* test LO8(edx), LO8(edx) */ /* 0x361456D3: test dl, dl */ 1062 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 1063 _cf = 0; 1064 _flag_k = FK_NARROW(FK_TEST, 24); 1065 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614584D; /* 0x361456D5: jne 0x3614584d */ 1066 L_361456DB: 1067 edi = MEM32(ecx + 0x4); /* 0x361456DB: mov edi, dword ptr [ecx + 4] */ 1068 edx = MEM32(edi); /* 0x361456DE: mov edx, dword ptr [edi] */ 1069 /* cmp ecx, edx */ /* 0x361456E0: cmp ecx, edx */ 1070 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1071 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1072 _flag_k = FK_CMP; 1073 if (CMP_NE(_flag_a, _flag_b)) goto L_361457A9; /* 0x361456E2: jne 0x361457a9 */ 1074 L_361456E8: 1075 edx = MEM32(edi + 0x8); /* 0x361456E8: mov edx, dword ptr [edi + 8] */ 1076 /* cmp MEM8(edx + 0x20), 0 */ /* 0x361456EB: cmp byte ptr [edx + 0x20], 0 */ 1077 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 1078 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1079 _flag_k = FK_NARROW(FK_CMP, 24); 1080 if (CMP_NE(_flag_a, _flag_b)) goto L_3614570C; /* 0x361456EF: jne 0x3614570c */ 1081 L_361456F1: 1082 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361456F1: mov byte ptr [ecx + 0x20], bl */ 1083 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361456F4: mov byte ptr [edx + 0x20], bl */ 1084 ecx = MEM32(eax + 0x4); /* 0x361456F7: mov ecx, dword ptr [eax + 4] */ 1085 edx = MEM32(ecx + 0x4); /* 0x361456FA: mov edx, dword ptr [ecx + 4] */ 1086 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x361456FD: mov byte ptr [edx + 0x20], 0 */ 1087 eax = MEM32(eax + 0x4); /* 0x36145701: mov eax, dword ptr [eax + 4] */ 1088 eax = MEM32(eax + 0x4); /* 0x36145704: mov eax, dword ptr [eax + 4] */ 1089 goto L_36145841; /* 0x36145707: jmp 0x36145841 */ 1090 L_3614570C: 1091 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3614570C: cmp eax, dword ptr [ecx + 8] */ 1092 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 1093 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1094 _flag_k = FK_CMP; 1095 if (CMP_NE(_flag_a, _flag_b)) goto L_3614574B; /* 0x3614570F: jne 0x3614574b */ 1096 L_36145711: 1097 eax = ecx; /* 0x36145711: mov eax, ecx */ 1098 ecx = MEM32(eax + 0x8); /* 0x36145713: mov ecx, dword ptr [eax + 8] */ 1099 edx = MEM32(ecx); /* 0x36145716: mov edx, dword ptr [ecx] */ 1100 MEM32(eax + 0x8) = edx; /* 0x36145718: mov dword ptr [eax + 8], edx */ 1101 edx = MEM32(ecx); /* 0x3614571B: mov edx, dword ptr [ecx] */ 1102 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3614571D: cmp edx, dword ptr [esi + 8] */ 1103 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1104 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1105 _flag_k = FK_CMP; 1106 if (CMP_EQ(_flag_a, _flag_b)) goto L_36145725; /* 0x36145720: je 0x36145725 */ 1107 L_36145722: 1108 MEM32(edx + 0x4) = eax; /* 0x36145722: mov dword ptr [edx + 4], eax */ 1109 L_36145725: 1110 edx = MEM32(eax + 0x4); /* 0x36145725: mov edx, dword ptr [eax + 4] */ 1111 MEM32(ecx + 0x4) = edx; /* 0x36145728: mov dword ptr [ecx + 4], edx */ 1112 edx = MEM32(esi + 0x4); /* 0x3614572B: mov edx, dword ptr [esi + 4] */ 1113 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3614572E: cmp eax, dword ptr [edx + 4] */ 1114 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1115 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1116 _flag_k = FK_CMP; 1117 if (CMP_NE(_flag_a, _flag_b)) goto L_36145738; /* 0x36145731: jne 0x36145738 */ 1118 L_36145733: 1119 MEM32(edx + 0x4) = ecx; /* 0x36145733: mov dword ptr [edx + 4], ecx */ 1120 goto L_36145746; /* 0x36145736: jmp 0x36145746 */ 1121 L_36145738: 1122 edx = MEM32(eax + 0x4); /* 0x36145738: mov edx, dword ptr [eax + 4] */ 1123 /* cmp eax, MEM32(edx) */ /* 0x3614573B: cmp eax, dword ptr [edx] */ 1124 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 1125 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1126 _flag_k = FK_CMP; 1127 if (CMP_NE(_flag_a, _flag_b)) goto L_36145743; /* 0x3614573D: jne 0x36145743 */ 1128 L_3614573F: 1129 MEM32(edx) = ecx; /* 0x3614573F: mov dword ptr [edx], ecx */ 1130 goto L_36145746; /* 0x36145741: jmp 0x36145746 */ 1131 L_36145743: 1132 MEM32(edx + 0x8) = ecx; /* 0x36145743: mov dword ptr [edx + 8], ecx */ 1133 L_36145746: 1134 MEM32(ecx) = eax; /* 0x36145746: mov dword ptr [ecx], eax */ 1135 MEM32(eax + 0x4) = ecx; /* 0x36145748: mov dword ptr [eax + 4], ecx */ 1136 L_3614574B: 1137 ecx = MEM32(eax + 0x4); /* 0x3614574B: mov ecx, dword ptr [eax + 4] */ 1138 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614574E: mov byte ptr [ecx + 0x20], bl */ 1139 edx = MEM32(eax + 0x4); /* 0x36145751: mov edx, dword ptr [eax + 4] */ 1140 ecx = MEM32(edx + 0x4); /* 0x36145754: mov ecx, dword ptr [edx + 4] */ 1141 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36145757: mov byte ptr [ecx + 0x20], 0 */ 1142 edx = MEM32(eax + 0x4); /* 0x3614575B: mov edx, dword ptr [eax + 4] */ 1143 ecx = MEM32(edx + 0x4); /* 0x3614575E: mov ecx, dword ptr [edx + 4] */ 1144 edx = MEM32(ecx); /* 0x36145761: mov edx, dword ptr [ecx] */ 1145 edi = MEM32(edx + 0x8); /* 0x36145763: mov edi, dword ptr [edx + 8] */ 1146 MEM32(ecx) = edi; /* 0x36145766: mov dword ptr [ecx], edi */ 1147 edi = MEM32(edx + 0x8); /* 0x36145768: mov edi, dword ptr [edx + 8] */ 1148 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3614576B: cmp edi, dword ptr [esi + 8] */ 1149 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1150 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1151 _flag_k = FK_CMP; 1152 if (CMP_EQ(_flag_a, _flag_b)) goto L_36145773; /* 0x3614576E: je 0x36145773 */ 1153 L_36145770: 1154 MEM32(edi + 0x4) = ecx; /* 0x36145770: mov dword ptr [edi + 4], ecx */ 1155 L_36145773: 1156 edi = MEM32(ecx + 0x4); /* 0x36145773: mov edi, dword ptr [ecx + 4] */ 1157 MEM32(edx + 0x4) = edi; /* 0x36145776: mov dword ptr [edx + 4], edi */ 1158 edi = MEM32(esi + 0x4); /* 0x36145779: mov edi, dword ptr [esi + 4] */ 1159 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3614577C: cmp ecx, dword ptr [edi + 4] */ 1160 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1161 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1162 _flag_k = FK_CMP; 1163 if (CMP_NE(_flag_a, _flag_b)) goto L_3614578C; /* 0x3614577F: jne 0x3614578c */ 1164 L_36145781: 1165 MEM32(edi + 0x4) = edx; /* 0x36145781: mov dword ptr [edi + 4], edx */ 1166 MEM32(edx + 0x8) = ecx; /* 0x36145784: mov dword ptr [edx + 8], ecx */ 1167 goto L_3614583E; /* 0x36145787: jmp 0x3614583e */ 1168 L_3614578C: 1169 edi = MEM32(ecx + 0x4); /* 0x3614578C: mov edi, dword ptr [ecx + 4] */ 1170 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3614578F: cmp ecx, dword ptr [edi + 8] */ 1171 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1172 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1173 _flag_k = FK_CMP; 1174 if (CMP_NE(_flag_a, _flag_b)) goto L_3614579F; /* 0x36145792: jne 0x3614579f */ 1175 L_36145794: 1176 MEM32(edi + 0x8) = edx; /* 0x36145794: mov dword ptr [edi + 8], edx */ 1177 MEM32(edx + 0x8) = ecx; /* 0x36145797: mov dword ptr [edx + 8], ecx */ 1178 goto L_3614583E; /* 0x3614579A: jmp 0x3614583e */ 1179 L_3614579F: 1180 MEM32(edi) = edx; /* 0x3614579F: mov dword ptr [edi], edx */ 1181 MEM32(edx + 0x8) = ecx; /* 0x361457A1: mov dword ptr [edx + 8], ecx */ 1182 goto L_3614583E; /* 0x361457A4: jmp 0x3614583e */ 1183 L_361457A9: 1184 /* cmp MEM8(edx + 0x20), 0 */ /* 0x361457A9: cmp byte ptr [edx + 0x20], 0 */ 1185 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 1186 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1187 _flag_k = FK_NARROW(FK_CMP, 24); 1188 RECOMP_BACKEDGE(); 1189 if (CMP_EQ(_flag_a, _flag_b)) goto L_361456F1; /* 0x361457AD: je 0x361456f1 */ 1190 L_361457B3: 1191 /* cmp eax, MEM32(ecx) */ /* 0x361457B3: cmp eax, dword ptr [ecx] */ 1192 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 1193 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1194 _flag_k = FK_CMP; 1195 if (CMP_NE(_flag_a, _flag_b)) goto L_361457F3; /* 0x361457B5: jne 0x361457f3 */ 1196 L_361457B7: 1197 eax = ecx; /* 0x361457B7: mov eax, ecx */ 1198 ecx = MEM32(eax); /* 0x361457B9: mov ecx, dword ptr [eax] */ 1199 edx = MEM32(ecx + 0x8); /* 0x361457BB: mov edx, dword ptr [ecx + 8] */ 1200 MEM32(eax) = edx; /* 0x361457BE: mov dword ptr [eax], edx */ 1201 edx = MEM32(ecx + 0x8); /* 0x361457C0: mov edx, dword ptr [ecx + 8] */ 1202 /* cmp edx, MEM32(esi + 0x8) */ /* 0x361457C3: cmp edx, dword ptr [esi + 8] */ 1203 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1204 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1205 _flag_k = FK_CMP; 1206 if (CMP_EQ(_flag_a, _flag_b)) goto L_361457CB; /* 0x361457C6: je 0x361457cb */ 1207 L_361457C8: 1208 MEM32(edx + 0x4) = eax; /* 0x361457C8: mov dword ptr [edx + 4], eax */ 1209 L_361457CB: 1210 edx = MEM32(eax + 0x4); /* 0x361457CB: mov edx, dword ptr [eax + 4] */ 1211 MEM32(ecx + 0x4) = edx; /* 0x361457CE: mov dword ptr [ecx + 4], edx */ 1212 edx = MEM32(esi + 0x4); /* 0x361457D1: mov edx, dword ptr [esi + 4] */ 1213 /* cmp eax, MEM32(edx + 0x4) */ /* 0x361457D4: cmp eax, dword ptr [edx + 4] */ 1214 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1215 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1216 _flag_k = FK_CMP; 1217 if (CMP_NE(_flag_a, _flag_b)) goto L_361457DE; /* 0x361457D7: jne 0x361457de */ 1218 L_361457D9: 1219 MEM32(edx + 0x4) = ecx; /* 0x361457D9: mov dword ptr [edx + 4], ecx */ 1220 goto L_361457ED; /* 0x361457DC: jmp 0x361457ed */ 1221 L_361457DE: 1222 edx = MEM32(eax + 0x4); /* 0x361457DE: mov edx, dword ptr [eax + 4] */ 1223 /* cmp eax, MEM32(edx + 0x8) */ /* 0x361457E1: cmp eax, dword ptr [edx + 8] */ 1224 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 1225 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1226 _flag_k = FK_CMP; 1227 if (CMP_NE(_flag_a, _flag_b)) goto L_361457EB; /* 0x361457E4: jne 0x361457eb */ 1228 L_361457E6: 1229 MEM32(edx + 0x8) = ecx; /* 0x361457E6: mov dword ptr [edx + 8], ecx */ 1230 goto L_361457ED; /* 0x361457E9: jmp 0x361457ed */ 1231 L_361457EB: 1232 MEM32(edx) = ecx; /* 0x361457EB: mov dword ptr [edx], ecx */ 1233 L_361457ED: 1234 MEM32(ecx + 0x8) = eax; /* 0x361457ED: mov dword ptr [ecx + 8], eax */ 1235 MEM32(eax + 0x4) = ecx; /* 0x361457F0: mov dword ptr [eax + 4], ecx */ 1236 L_361457F3: 1237 ecx = MEM32(eax + 0x4); /* 0x361457F3: mov ecx, dword ptr [eax + 4] */ 1238 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361457F6: mov byte ptr [ecx + 0x20], bl */ 1239 edx = MEM32(eax + 0x4); /* 0x361457F9: mov edx, dword ptr [eax + 4] */ 1240 ecx = MEM32(edx + 0x4); /* 0x361457FC: mov ecx, dword ptr [edx + 4] */ 1241 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x361457FF: mov byte ptr [ecx + 0x20], 0 */ 1242 edx = MEM32(eax + 0x4); /* 0x36145803: mov edx, dword ptr [eax + 4] */ 1243 ecx = MEM32(edx + 0x4); /* 0x36145806: mov ecx, dword ptr [edx + 4] */ 1244 edx = MEM32(ecx + 0x8); /* 0x36145809: mov edx, dword ptr [ecx + 8] */ 1245 edi = MEM32(edx); /* 0x3614580C: mov edi, dword ptr [edx] */ 1246 MEM32(ecx + 0x8) = edi; /* 0x3614580E: mov dword ptr [ecx + 8], edi */ 1247 edi = MEM32(edx); /* 0x36145811: mov edi, dword ptr [edx] */ 1248 /* cmp edi, MEM32(esi + 0x8) */ /* 0x36145813: cmp edi, dword ptr [esi + 8] */ 1249 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1250 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1251 _flag_k = FK_CMP; 1252 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614581B; /* 0x36145816: je 0x3614581b */ 1253 L_36145818: 1254 MEM32(edi + 0x4) = ecx; /* 0x36145818: mov dword ptr [edi + 4], ecx */ 1255 L_3614581B: 1256 edi = MEM32(ecx + 0x4); /* 0x3614581B: mov edi, dword ptr [ecx + 4] */ 1257 MEM32(edx + 0x4) = edi; /* 0x3614581E: mov dword ptr [edx + 4], edi */ 1258 edi = MEM32(esi + 0x4); /* 0x36145821: mov edi, dword ptr [esi + 4] */ 1259 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36145824: cmp ecx, dword ptr [edi + 4] */ 1260 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1261 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1262 _flag_k = FK_CMP; 1263 if (CMP_NE(_flag_a, _flag_b)) goto L_3614582E; /* 0x36145827: jne 0x3614582e */ 1264 L_36145829: 1265 MEM32(edi + 0x4) = edx; /* 0x36145829: mov dword ptr [edi + 4], edx */ 1266 goto L_3614583C; /* 0x3614582C: jmp 0x3614583c */ 1267 L_3614582E: 1268 edi = MEM32(ecx + 0x4); /* 0x3614582E: mov edi, dword ptr [ecx + 4] */ 1269 /* cmp ecx, MEM32(edi) */ /* 0x36145831: cmp ecx, dword ptr [edi] */ 1270 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 1271 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1272 _flag_k = FK_CMP; 1273 if (CMP_NE(_flag_a, _flag_b)) goto L_36145839; /* 0x36145833: jne 0x36145839 */ 1274 L_36145835: 1275 MEM32(edi) = edx; /* 0x36145835: mov dword ptr [edi], edx */ 1276 goto L_3614583C; /* 0x36145837: jmp 0x3614583c */ 1277 L_36145839: 1278 MEM32(edi + 0x8) = edx; /* 0x36145839: mov dword ptr [edi + 8], edx */ 1279 L_3614583C: 1280 MEM32(edx) = ecx; /* 0x3614583C: mov dword ptr [edx], ecx */ 1281 L_3614583E: 1282 MEM32(ecx + 0x4) = edx; /* 0x3614583E: mov dword ptr [ecx + 4], edx */ 1283 L_36145841: 1284 ecx = MEM32(esi + 0x4); /* 0x36145841: mov ecx, dword ptr [esi + 4] */ 1285 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36145844: cmp eax, dword ptr [ecx + 4] */ 1286 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 1287 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1288 _flag_k = FK_CMP; 1289 RECOMP_BACKEDGE(); 1290 if (CMP_NE(_flag_a, _flag_b)) goto L_361456CD; /* 0x36145847: jne 0x361456cd */ 1291 L_3614584D: 1292 edx = MEM32(esi + 0x4); /* 0x3614584D: mov edx, dword ptr [esi + 4] */ 1293 eax = MEM32(edx + 0x4); /* 0x36145850: mov eax, dword ptr [edx + 4] */ 1294 ecx = MEM32(ebp + (-0x4)); /* 0x36145853: mov ecx, dword ptr [ebp - 4] */ 1295 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36145856: mov byte ptr [eax + 0x20], bl */ 1296 eax = MEM32(ebp + 0x8); /* 0x36145859: mov eax, dword ptr [ebp + 8] */ 1297 edi = POP32_VAL(esp); /* 0x3614585C: pop edi */ 1298 esi = POP32_VAL(esp); /* 0x3614585D: pop esi */ 1299 MEM32(eax) = ecx; /* 0x3614585E: mov dword ptr [eax], ecx */ 1300 ebx = POP32_VAL(esp); /* 0x36145860: pop ebx */ 1301 esp = ebp; /* 0x36145861: mov esp, ebp */ 1302 ebp = POP32_VAL(esp); /* 0x36145863: pop ebp */ 1303 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36145864: ret 0x10 */ 1304 RECOMP_REGS_OUT(); 1305 } 1306 1307 void sub_361457ED(void) { 1308 int _fpu_cmp = 0; 1309 uint32_t _cf = 0; 1310 int _df = 1; 1311 uint32_t _flag_k = FK_NONE; 1312 uint32_t _flag_a = 0, _flag_b = 0; 1313 uint32_t _itail_tgt = 0; 1314 RECOMP_REGS_LOCALS 1315 RECOMP_ENTER(0x361457EDu); 1316 1317 goto L_361457ED; 1318 L_361456CD: 1319 ecx = MEM32(eax + 0x4); /* 0x361456CD: mov ecx, dword ptr [eax + 4] */ 1320 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x361456D0: mov dl, byte ptr [ecx + 0x20] */ 1321 /* test LO8(edx), LO8(edx) */ /* 0x361456D3: test dl, dl */ 1322 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 1323 _cf = 0; 1324 _flag_k = FK_NARROW(FK_TEST, 24); 1325 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614584D; /* 0x361456D5: jne 0x3614584d */ 1326 L_361456DB: 1327 edi = MEM32(ecx + 0x4); /* 0x361456DB: mov edi, dword ptr [ecx + 4] */ 1328 edx = MEM32(edi); /* 0x361456DE: mov edx, dword ptr [edi] */ 1329 /* cmp ecx, edx */ /* 0x361456E0: cmp ecx, edx */ 1330 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1331 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1332 _flag_k = FK_CMP; 1333 if (CMP_NE(_flag_a, _flag_b)) goto L_361457A9; /* 0x361456E2: jne 0x361457a9 */ 1334 L_361456E8: 1335 edx = MEM32(edi + 0x8); /* 0x361456E8: mov edx, dword ptr [edi + 8] */ 1336 /* cmp MEM8(edx + 0x20), 0 */ /* 0x361456EB: cmp byte ptr [edx + 0x20], 0 */ 1337 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 1338 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1339 _flag_k = FK_NARROW(FK_CMP, 24); 1340 if (CMP_NE(_flag_a, _flag_b)) goto L_3614570C; /* 0x361456EF: jne 0x3614570c */ 1341 L_361456F1: 1342 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361456F1: mov byte ptr [ecx + 0x20], bl */ 1343 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361456F4: mov byte ptr [edx + 0x20], bl */ 1344 ecx = MEM32(eax + 0x4); /* 0x361456F7: mov ecx, dword ptr [eax + 4] */ 1345 edx = MEM32(ecx + 0x4); /* 0x361456FA: mov edx, dword ptr [ecx + 4] */ 1346 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x361456FD: mov byte ptr [edx + 0x20], 0 */ 1347 eax = MEM32(eax + 0x4); /* 0x36145701: mov eax, dword ptr [eax + 4] */ 1348 eax = MEM32(eax + 0x4); /* 0x36145704: mov eax, dword ptr [eax + 4] */ 1349 goto L_36145841; /* 0x36145707: jmp 0x36145841 */ 1350 L_3614570C: 1351 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3614570C: cmp eax, dword ptr [ecx + 8] */ 1352 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 1353 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1354 _flag_k = FK_CMP; 1355 if (CMP_NE(_flag_a, _flag_b)) goto L_3614574B; /* 0x3614570F: jne 0x3614574b */ 1356 L_36145711: 1357 eax = ecx; /* 0x36145711: mov eax, ecx */ 1358 ecx = MEM32(eax + 0x8); /* 0x36145713: mov ecx, dword ptr [eax + 8] */ 1359 edx = MEM32(ecx); /* 0x36145716: mov edx, dword ptr [ecx] */ 1360 MEM32(eax + 0x8) = edx; /* 0x36145718: mov dword ptr [eax + 8], edx */ 1361 edx = MEM32(ecx); /* 0x3614571B: mov edx, dword ptr [ecx] */ 1362 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3614571D: cmp edx, dword ptr [esi + 8] */ 1363 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1364 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1365 _flag_k = FK_CMP; 1366 if (CMP_EQ(_flag_a, _flag_b)) goto L_36145725; /* 0x36145720: je 0x36145725 */ 1367 L_36145722: 1368 MEM32(edx + 0x4) = eax; /* 0x36145722: mov dword ptr [edx + 4], eax */ 1369 L_36145725: 1370 edx = MEM32(eax + 0x4); /* 0x36145725: mov edx, dword ptr [eax + 4] */ 1371 MEM32(ecx + 0x4) = edx; /* 0x36145728: mov dword ptr [ecx + 4], edx */ 1372 edx = MEM32(esi + 0x4); /* 0x3614572B: mov edx, dword ptr [esi + 4] */ 1373 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3614572E: cmp eax, dword ptr [edx + 4] */ 1374 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1375 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1376 _flag_k = FK_CMP; 1377 if (CMP_NE(_flag_a, _flag_b)) goto L_36145738; /* 0x36145731: jne 0x36145738 */ 1378 L_36145733: 1379 MEM32(edx + 0x4) = ecx; /* 0x36145733: mov dword ptr [edx + 4], ecx */ 1380 goto L_36145746; /* 0x36145736: jmp 0x36145746 */ 1381 L_36145738: 1382 edx = MEM32(eax + 0x4); /* 0x36145738: mov edx, dword ptr [eax + 4] */ 1383 /* cmp eax, MEM32(edx) */ /* 0x3614573B: cmp eax, dword ptr [edx] */ 1384 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 1385 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1386 _flag_k = FK_CMP; 1387 if (CMP_NE(_flag_a, _flag_b)) goto L_36145743; /* 0x3614573D: jne 0x36145743 */ 1388 L_3614573F: 1389 MEM32(edx) = ecx; /* 0x3614573F: mov dword ptr [edx], ecx */ 1390 goto L_36145746; /* 0x36145741: jmp 0x36145746 */ 1391 L_36145743: 1392 MEM32(edx + 0x8) = ecx; /* 0x36145743: mov dword ptr [edx + 8], ecx */ 1393 L_36145746: 1394 MEM32(ecx) = eax; /* 0x36145746: mov dword ptr [ecx], eax */ 1395 MEM32(eax + 0x4) = ecx; /* 0x36145748: mov dword ptr [eax + 4], ecx */ 1396 L_3614574B: 1397 ecx = MEM32(eax + 0x4); /* 0x3614574B: mov ecx, dword ptr [eax + 4] */ 1398 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614574E: mov byte ptr [ecx + 0x20], bl */ 1399 edx = MEM32(eax + 0x4); /* 0x36145751: mov edx, dword ptr [eax + 4] */ 1400 ecx = MEM32(edx + 0x4); /* 0x36145754: mov ecx, dword ptr [edx + 4] */ 1401 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36145757: mov byte ptr [ecx + 0x20], 0 */ 1402 edx = MEM32(eax + 0x4); /* 0x3614575B: mov edx, dword ptr [eax + 4] */ 1403 ecx = MEM32(edx + 0x4); /* 0x3614575E: mov ecx, dword ptr [edx + 4] */ 1404 edx = MEM32(ecx); /* 0x36145761: mov edx, dword ptr [ecx] */ 1405 edi = MEM32(edx + 0x8); /* 0x36145763: mov edi, dword ptr [edx + 8] */ 1406 MEM32(ecx) = edi; /* 0x36145766: mov dword ptr [ecx], edi */ 1407 edi = MEM32(edx + 0x8); /* 0x36145768: mov edi, dword ptr [edx + 8] */ 1408 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3614576B: cmp edi, dword ptr [esi + 8] */ 1409 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1410 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1411 _flag_k = FK_CMP; 1412 if (CMP_EQ(_flag_a, _flag_b)) goto L_36145773; /* 0x3614576E: je 0x36145773 */ 1413 L_36145770: 1414 MEM32(edi + 0x4) = ecx; /* 0x36145770: mov dword ptr [edi + 4], ecx */ 1415 L_36145773: 1416 edi = MEM32(ecx + 0x4); /* 0x36145773: mov edi, dword ptr [ecx + 4] */ 1417 MEM32(edx + 0x4) = edi; /* 0x36145776: mov dword ptr [edx + 4], edi */ 1418 edi = MEM32(esi + 0x4); /* 0x36145779: mov edi, dword ptr [esi + 4] */ 1419 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3614577C: cmp ecx, dword ptr [edi + 4] */ 1420 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1421 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1422 _flag_k = FK_CMP; 1423 if (CMP_NE(_flag_a, _flag_b)) goto L_3614578C; /* 0x3614577F: jne 0x3614578c */ 1424 L_36145781: 1425 MEM32(edi + 0x4) = edx; /* 0x36145781: mov dword ptr [edi + 4], edx */ 1426 MEM32(edx + 0x8) = ecx; /* 0x36145784: mov dword ptr [edx + 8], ecx */ 1427 goto L_3614583E; /* 0x36145787: jmp 0x3614583e */ 1428 L_3614578C: 1429 edi = MEM32(ecx + 0x4); /* 0x3614578C: mov edi, dword ptr [ecx + 4] */ 1430 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3614578F: cmp ecx, dword ptr [edi + 8] */ 1431 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1432 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1433 _flag_k = FK_CMP; 1434 if (CMP_NE(_flag_a, _flag_b)) goto L_3614579F; /* 0x36145792: jne 0x3614579f */ 1435 L_36145794: 1436 MEM32(edi + 0x8) = edx; /* 0x36145794: mov dword ptr [edi + 8], edx */ 1437 MEM32(edx + 0x8) = ecx; /* 0x36145797: mov dword ptr [edx + 8], ecx */ 1438 goto L_3614583E; /* 0x3614579A: jmp 0x3614583e */ 1439 L_3614579F: 1440 MEM32(edi) = edx; /* 0x3614579F: mov dword ptr [edi], edx */ 1441 MEM32(edx + 0x8) = ecx; /* 0x361457A1: mov dword ptr [edx + 8], ecx */ 1442 goto L_3614583E; /* 0x361457A4: jmp 0x3614583e */ 1443 L_361457A9: 1444 /* cmp MEM8(edx + 0x20), 0 */ /* 0x361457A9: cmp byte ptr [edx + 0x20], 0 */ 1445 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 1446 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1447 _flag_k = FK_NARROW(FK_CMP, 24); 1448 RECOMP_BACKEDGE(); 1449 if (CMP_EQ(_flag_a, _flag_b)) goto L_361456F1; /* 0x361457AD: je 0x361456f1 */ 1450 L_361457B3: 1451 /* cmp eax, MEM32(ecx) */ /* 0x361457B3: cmp eax, dword ptr [ecx] */ 1452 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 1453 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1454 _flag_k = FK_CMP; 1455 if (CMP_NE(_flag_a, _flag_b)) goto L_361457F3; /* 0x361457B5: jne 0x361457f3 */ 1456 L_361457B7: 1457 eax = ecx; /* 0x361457B7: mov eax, ecx */ 1458 ecx = MEM32(eax); /* 0x361457B9: mov ecx, dword ptr [eax] */ 1459 edx = MEM32(ecx + 0x8); /* 0x361457BB: mov edx, dword ptr [ecx + 8] */ 1460 MEM32(eax) = edx; /* 0x361457BE: mov dword ptr [eax], edx */ 1461 edx = MEM32(ecx + 0x8); /* 0x361457C0: mov edx, dword ptr [ecx + 8] */ 1462 /* cmp edx, MEM32(esi + 0x8) */ /* 0x361457C3: cmp edx, dword ptr [esi + 8] */ 1463 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1464 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1465 _flag_k = FK_CMP; 1466 if (CMP_EQ(_flag_a, _flag_b)) goto L_361457CB; /* 0x361457C6: je 0x361457cb */ 1467 L_361457C8: 1468 MEM32(edx + 0x4) = eax; /* 0x361457C8: mov dword ptr [edx + 4], eax */ 1469 L_361457CB: 1470 edx = MEM32(eax + 0x4); /* 0x361457CB: mov edx, dword ptr [eax + 4] */ 1471 MEM32(ecx + 0x4) = edx; /* 0x361457CE: mov dword ptr [ecx + 4], edx */ 1472 edx = MEM32(esi + 0x4); /* 0x361457D1: mov edx, dword ptr [esi + 4] */ 1473 /* cmp eax, MEM32(edx + 0x4) */ /* 0x361457D4: cmp eax, dword ptr [edx + 4] */ 1474 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1475 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1476 _flag_k = FK_CMP; 1477 if (CMP_NE(_flag_a, _flag_b)) goto L_361457DE; /* 0x361457D7: jne 0x361457de */ 1478 L_361457D9: 1479 MEM32(edx + 0x4) = ecx; /* 0x361457D9: mov dword ptr [edx + 4], ecx */ 1480 goto L_361457ED; /* 0x361457DC: jmp 0x361457ed */ 1481 L_361457DE: 1482 edx = MEM32(eax + 0x4); /* 0x361457DE: mov edx, dword ptr [eax + 4] */ 1483 /* cmp eax, MEM32(edx + 0x8) */ /* 0x361457E1: cmp eax, dword ptr [edx + 8] */ 1484 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 1485 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1486 _flag_k = FK_CMP; 1487 if (CMP_NE(_flag_a, _flag_b)) goto L_361457EB; /* 0x361457E4: jne 0x361457eb */ 1488 L_361457E6: 1489 MEM32(edx + 0x8) = ecx; /* 0x361457E6: mov dword ptr [edx + 8], ecx */ 1490 goto L_361457ED; /* 0x361457E9: jmp 0x361457ed */ 1491 L_361457EB: 1492 MEM32(edx) = ecx; /* 0x361457EB: mov dword ptr [edx], ecx */ 1493 L_361457ED: 1494 MEM32(ecx + 0x8) = eax; /* 0x361457ED: mov dword ptr [ecx + 8], eax */ 1495 MEM32(eax + 0x4) = ecx; /* 0x361457F0: mov dword ptr [eax + 4], ecx */ 1496 L_361457F3: 1497 ecx = MEM32(eax + 0x4); /* 0x361457F3: mov ecx, dword ptr [eax + 4] */ 1498 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361457F6: mov byte ptr [ecx + 0x20], bl */ 1499 edx = MEM32(eax + 0x4); /* 0x361457F9: mov edx, dword ptr [eax + 4] */ 1500 ecx = MEM32(edx + 0x4); /* 0x361457FC: mov ecx, dword ptr [edx + 4] */ 1501 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x361457FF: mov byte ptr [ecx + 0x20], 0 */ 1502 edx = MEM32(eax + 0x4); /* 0x36145803: mov edx, dword ptr [eax + 4] */ 1503 ecx = MEM32(edx + 0x4); /* 0x36145806: mov ecx, dword ptr [edx + 4] */ 1504 edx = MEM32(ecx + 0x8); /* 0x36145809: mov edx, dword ptr [ecx + 8] */ 1505 edi = MEM32(edx); /* 0x3614580C: mov edi, dword ptr [edx] */ 1506 MEM32(ecx + 0x8) = edi; /* 0x3614580E: mov dword ptr [ecx + 8], edi */ 1507 edi = MEM32(edx); /* 0x36145811: mov edi, dword ptr [edx] */ 1508 /* cmp edi, MEM32(esi + 0x8) */ /* 0x36145813: cmp edi, dword ptr [esi + 8] */ 1509 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1510 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1511 _flag_k = FK_CMP; 1512 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614581B; /* 0x36145816: je 0x3614581b */ 1513 L_36145818: 1514 MEM32(edi + 0x4) = ecx; /* 0x36145818: mov dword ptr [edi + 4], ecx */ 1515 L_3614581B: 1516 edi = MEM32(ecx + 0x4); /* 0x3614581B: mov edi, dword ptr [ecx + 4] */ 1517 MEM32(edx + 0x4) = edi; /* 0x3614581E: mov dword ptr [edx + 4], edi */ 1518 edi = MEM32(esi + 0x4); /* 0x36145821: mov edi, dword ptr [esi + 4] */ 1519 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36145824: cmp ecx, dword ptr [edi + 4] */ 1520 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1521 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1522 _flag_k = FK_CMP; 1523 if (CMP_NE(_flag_a, _flag_b)) goto L_3614582E; /* 0x36145827: jne 0x3614582e */ 1524 L_36145829: 1525 MEM32(edi + 0x4) = edx; /* 0x36145829: mov dword ptr [edi + 4], edx */ 1526 goto L_3614583C; /* 0x3614582C: jmp 0x3614583c */ 1527 L_3614582E: 1528 edi = MEM32(ecx + 0x4); /* 0x3614582E: mov edi, dword ptr [ecx + 4] */ 1529 /* cmp ecx, MEM32(edi) */ /* 0x36145831: cmp ecx, dword ptr [edi] */ 1530 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 1531 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1532 _flag_k = FK_CMP; 1533 if (CMP_NE(_flag_a, _flag_b)) goto L_36145839; /* 0x36145833: jne 0x36145839 */ 1534 L_36145835: 1535 MEM32(edi) = edx; /* 0x36145835: mov dword ptr [edi], edx */ 1536 goto L_3614583C; /* 0x36145837: jmp 0x3614583c */ 1537 L_36145839: 1538 MEM32(edi + 0x8) = edx; /* 0x36145839: mov dword ptr [edi + 8], edx */ 1539 L_3614583C: 1540 MEM32(edx) = ecx; /* 0x3614583C: mov dword ptr [edx], ecx */ 1541 L_3614583E: 1542 MEM32(ecx + 0x4) = edx; /* 0x3614583E: mov dword ptr [ecx + 4], edx */ 1543 L_36145841: 1544 ecx = MEM32(esi + 0x4); /* 0x36145841: mov ecx, dword ptr [esi + 4] */ 1545 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36145844: cmp eax, dword ptr [ecx + 4] */ 1546 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 1547 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1548 _flag_k = FK_CMP; 1549 RECOMP_BACKEDGE(); 1550 if (CMP_NE(_flag_a, _flag_b)) goto L_361456CD; /* 0x36145847: jne 0x361456cd */ 1551 L_3614584D: 1552 edx = MEM32(esi + 0x4); /* 0x3614584D: mov edx, dword ptr [esi + 4] */ 1553 eax = MEM32(edx + 0x4); /* 0x36145850: mov eax, dword ptr [edx + 4] */ 1554 ecx = MEM32(ebp + (-0x4)); /* 0x36145853: mov ecx, dword ptr [ebp - 4] */ 1555 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36145856: mov byte ptr [eax + 0x20], bl */ 1556 eax = MEM32(ebp + 0x8); /* 0x36145859: mov eax, dword ptr [ebp + 8] */ 1557 edi = POP32_VAL(esp); /* 0x3614585C: pop edi */ 1558 esi = POP32_VAL(esp); /* 0x3614585D: pop esi */ 1559 MEM32(eax) = ecx; /* 0x3614585E: mov dword ptr [eax], ecx */ 1560 ebx = POP32_VAL(esp); /* 0x36145860: pop ebx */ 1561 esp = ebp; /* 0x36145861: mov esp, ebp */ 1562 ebp = POP32_VAL(esp); /* 0x36145863: pop ebp */ 1563 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36145864: ret 0x10 */ 1564 RECOMP_REGS_OUT(); 1565 } 1566 1567 void sub_361457F3(void) { 1568 int _fpu_cmp = 0; 1569 uint32_t _cf = 0; 1570 int _df = 1; 1571 uint32_t _flag_k = FK_NONE; 1572 uint32_t _flag_a = 0, _flag_b = 0; 1573 uint32_t _itail_tgt = 0; 1574 RECOMP_REGS_LOCALS 1575 RECOMP_ENTER(0x361457F3u); 1576 1577 goto L_361457F3; 1578 L_361456CD: 1579 ecx = MEM32(eax + 0x4); /* 0x361456CD: mov ecx, dword ptr [eax + 4] */ 1580 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x361456D0: mov dl, byte ptr [ecx + 0x20] */ 1581 /* test LO8(edx), LO8(edx) */ /* 0x361456D3: test dl, dl */ 1582 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 1583 _cf = 0; 1584 _flag_k = FK_NARROW(FK_TEST, 24); 1585 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614584D; /* 0x361456D5: jne 0x3614584d */ 1586 L_361456DB: 1587 edi = MEM32(ecx + 0x4); /* 0x361456DB: mov edi, dword ptr [ecx + 4] */ 1588 edx = MEM32(edi); /* 0x361456DE: mov edx, dword ptr [edi] */ 1589 /* cmp ecx, edx */ /* 0x361456E0: cmp ecx, edx */ 1590 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1591 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1592 _flag_k = FK_CMP; 1593 if (CMP_NE(_flag_a, _flag_b)) goto L_361457A9; /* 0x361456E2: jne 0x361457a9 */ 1594 L_361456E8: 1595 edx = MEM32(edi + 0x8); /* 0x361456E8: mov edx, dword ptr [edi + 8] */ 1596 /* cmp MEM8(edx + 0x20), 0 */ /* 0x361456EB: cmp byte ptr [edx + 0x20], 0 */ 1597 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 1598 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1599 _flag_k = FK_NARROW(FK_CMP, 24); 1600 if (CMP_NE(_flag_a, _flag_b)) goto L_3614570C; /* 0x361456EF: jne 0x3614570c */ 1601 L_361456F1: 1602 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361456F1: mov byte ptr [ecx + 0x20], bl */ 1603 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361456F4: mov byte ptr [edx + 0x20], bl */ 1604 ecx = MEM32(eax + 0x4); /* 0x361456F7: mov ecx, dword ptr [eax + 4] */ 1605 edx = MEM32(ecx + 0x4); /* 0x361456FA: mov edx, dword ptr [ecx + 4] */ 1606 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x361456FD: mov byte ptr [edx + 0x20], 0 */ 1607 eax = MEM32(eax + 0x4); /* 0x36145701: mov eax, dword ptr [eax + 4] */ 1608 eax = MEM32(eax + 0x4); /* 0x36145704: mov eax, dword ptr [eax + 4] */ 1609 goto L_36145841; /* 0x36145707: jmp 0x36145841 */ 1610 L_3614570C: 1611 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3614570C: cmp eax, dword ptr [ecx + 8] */ 1612 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 1613 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1614 _flag_k = FK_CMP; 1615 if (CMP_NE(_flag_a, _flag_b)) goto L_3614574B; /* 0x3614570F: jne 0x3614574b */ 1616 L_36145711: 1617 eax = ecx; /* 0x36145711: mov eax, ecx */ 1618 ecx = MEM32(eax + 0x8); /* 0x36145713: mov ecx, dword ptr [eax + 8] */ 1619 edx = MEM32(ecx); /* 0x36145716: mov edx, dword ptr [ecx] */ 1620 MEM32(eax + 0x8) = edx; /* 0x36145718: mov dword ptr [eax + 8], edx */ 1621 edx = MEM32(ecx); /* 0x3614571B: mov edx, dword ptr [ecx] */ 1622 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3614571D: cmp edx, dword ptr [esi + 8] */ 1623 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1624 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1625 _flag_k = FK_CMP; 1626 if (CMP_EQ(_flag_a, _flag_b)) goto L_36145725; /* 0x36145720: je 0x36145725 */ 1627 L_36145722: 1628 MEM32(edx + 0x4) = eax; /* 0x36145722: mov dword ptr [edx + 4], eax */ 1629 L_36145725: 1630 edx = MEM32(eax + 0x4); /* 0x36145725: mov edx, dword ptr [eax + 4] */ 1631 MEM32(ecx + 0x4) = edx; /* 0x36145728: mov dword ptr [ecx + 4], edx */ 1632 edx = MEM32(esi + 0x4); /* 0x3614572B: mov edx, dword ptr [esi + 4] */ 1633 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3614572E: cmp eax, dword ptr [edx + 4] */ 1634 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1635 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1636 _flag_k = FK_CMP; 1637 if (CMP_NE(_flag_a, _flag_b)) goto L_36145738; /* 0x36145731: jne 0x36145738 */ 1638 L_36145733: 1639 MEM32(edx + 0x4) = ecx; /* 0x36145733: mov dword ptr [edx + 4], ecx */ 1640 goto L_36145746; /* 0x36145736: jmp 0x36145746 */ 1641 L_36145738: 1642 edx = MEM32(eax + 0x4); /* 0x36145738: mov edx, dword ptr [eax + 4] */ 1643 /* cmp eax, MEM32(edx) */ /* 0x3614573B: cmp eax, dword ptr [edx] */ 1644 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 1645 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1646 _flag_k = FK_CMP; 1647 if (CMP_NE(_flag_a, _flag_b)) goto L_36145743; /* 0x3614573D: jne 0x36145743 */ 1648 L_3614573F: 1649 MEM32(edx) = ecx; /* 0x3614573F: mov dword ptr [edx], ecx */ 1650 goto L_36145746; /* 0x36145741: jmp 0x36145746 */ 1651 L_36145743: 1652 MEM32(edx + 0x8) = ecx; /* 0x36145743: mov dword ptr [edx + 8], ecx */ 1653 L_36145746: 1654 MEM32(ecx) = eax; /* 0x36145746: mov dword ptr [ecx], eax */ 1655 MEM32(eax + 0x4) = ecx; /* 0x36145748: mov dword ptr [eax + 4], ecx */ 1656 L_3614574B: 1657 ecx = MEM32(eax + 0x4); /* 0x3614574B: mov ecx, dword ptr [eax + 4] */ 1658 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614574E: mov byte ptr [ecx + 0x20], bl */ 1659 edx = MEM32(eax + 0x4); /* 0x36145751: mov edx, dword ptr [eax + 4] */ 1660 ecx = MEM32(edx + 0x4); /* 0x36145754: mov ecx, dword ptr [edx + 4] */ 1661 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36145757: mov byte ptr [ecx + 0x20], 0 */ 1662 edx = MEM32(eax + 0x4); /* 0x3614575B: mov edx, dword ptr [eax + 4] */ 1663 ecx = MEM32(edx + 0x4); /* 0x3614575E: mov ecx, dword ptr [edx + 4] */ 1664 edx = MEM32(ecx); /* 0x36145761: mov edx, dword ptr [ecx] */ 1665 edi = MEM32(edx + 0x8); /* 0x36145763: mov edi, dword ptr [edx + 8] */ 1666 MEM32(ecx) = edi; /* 0x36145766: mov dword ptr [ecx], edi */ 1667 edi = MEM32(edx + 0x8); /* 0x36145768: mov edi, dword ptr [edx + 8] */ 1668 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3614576B: cmp edi, dword ptr [esi + 8] */ 1669 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1670 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1671 _flag_k = FK_CMP; 1672 if (CMP_EQ(_flag_a, _flag_b)) goto L_36145773; /* 0x3614576E: je 0x36145773 */ 1673 L_36145770: 1674 MEM32(edi + 0x4) = ecx; /* 0x36145770: mov dword ptr [edi + 4], ecx */ 1675 L_36145773: 1676 edi = MEM32(ecx + 0x4); /* 0x36145773: mov edi, dword ptr [ecx + 4] */ 1677 MEM32(edx + 0x4) = edi; /* 0x36145776: mov dword ptr [edx + 4], edi */ 1678 edi = MEM32(esi + 0x4); /* 0x36145779: mov edi, dword ptr [esi + 4] */ 1679 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3614577C: cmp ecx, dword ptr [edi + 4] */ 1680 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1681 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1682 _flag_k = FK_CMP; 1683 if (CMP_NE(_flag_a, _flag_b)) goto L_3614578C; /* 0x3614577F: jne 0x3614578c */ 1684 L_36145781: 1685 MEM32(edi + 0x4) = edx; /* 0x36145781: mov dword ptr [edi + 4], edx */ 1686 MEM32(edx + 0x8) = ecx; /* 0x36145784: mov dword ptr [edx + 8], ecx */ 1687 goto L_3614583E; /* 0x36145787: jmp 0x3614583e */ 1688 L_3614578C: 1689 edi = MEM32(ecx + 0x4); /* 0x3614578C: mov edi, dword ptr [ecx + 4] */ 1690 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3614578F: cmp ecx, dword ptr [edi + 8] */ 1691 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1692 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1693 _flag_k = FK_CMP; 1694 if (CMP_NE(_flag_a, _flag_b)) goto L_3614579F; /* 0x36145792: jne 0x3614579f */ 1695 L_36145794: 1696 MEM32(edi + 0x8) = edx; /* 0x36145794: mov dword ptr [edi + 8], edx */ 1697 MEM32(edx + 0x8) = ecx; /* 0x36145797: mov dword ptr [edx + 8], ecx */ 1698 goto L_3614583E; /* 0x3614579A: jmp 0x3614583e */ 1699 L_3614579F: 1700 MEM32(edi) = edx; /* 0x3614579F: mov dword ptr [edi], edx */ 1701 MEM32(edx + 0x8) = ecx; /* 0x361457A1: mov dword ptr [edx + 8], ecx */ 1702 goto L_3614583E; /* 0x361457A4: jmp 0x3614583e */ 1703 L_361457A9: 1704 /* cmp MEM8(edx + 0x20), 0 */ /* 0x361457A9: cmp byte ptr [edx + 0x20], 0 */ 1705 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 1706 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1707 _flag_k = FK_NARROW(FK_CMP, 24); 1708 RECOMP_BACKEDGE(); 1709 if (CMP_EQ(_flag_a, _flag_b)) goto L_361456F1; /* 0x361457AD: je 0x361456f1 */ 1710 L_361457B3: 1711 /* cmp eax, MEM32(ecx) */ /* 0x361457B3: cmp eax, dword ptr [ecx] */ 1712 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 1713 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1714 _flag_k = FK_CMP; 1715 if (CMP_NE(_flag_a, _flag_b)) goto L_361457F3; /* 0x361457B5: jne 0x361457f3 */ 1716 L_361457B7: 1717 eax = ecx; /* 0x361457B7: mov eax, ecx */ 1718 ecx = MEM32(eax); /* 0x361457B9: mov ecx, dword ptr [eax] */ 1719 edx = MEM32(ecx + 0x8); /* 0x361457BB: mov edx, dword ptr [ecx + 8] */ 1720 MEM32(eax) = edx; /* 0x361457BE: mov dword ptr [eax], edx */ 1721 edx = MEM32(ecx + 0x8); /* 0x361457C0: mov edx, dword ptr [ecx + 8] */ 1722 /* cmp edx, MEM32(esi + 0x8) */ /* 0x361457C3: cmp edx, dword ptr [esi + 8] */ 1723 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1724 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1725 _flag_k = FK_CMP; 1726 if (CMP_EQ(_flag_a, _flag_b)) goto L_361457CB; /* 0x361457C6: je 0x361457cb */ 1727 L_361457C8: 1728 MEM32(edx + 0x4) = eax; /* 0x361457C8: mov dword ptr [edx + 4], eax */ 1729 L_361457CB: 1730 edx = MEM32(eax + 0x4); /* 0x361457CB: mov edx, dword ptr [eax + 4] */ 1731 MEM32(ecx + 0x4) = edx; /* 0x361457CE: mov dword ptr [ecx + 4], edx */ 1732 edx = MEM32(esi + 0x4); /* 0x361457D1: mov edx, dword ptr [esi + 4] */ 1733 /* cmp eax, MEM32(edx + 0x4) */ /* 0x361457D4: cmp eax, dword ptr [edx + 4] */ 1734 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1735 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1736 _flag_k = FK_CMP; 1737 if (CMP_NE(_flag_a, _flag_b)) goto L_361457DE; /* 0x361457D7: jne 0x361457de */ 1738 L_361457D9: 1739 MEM32(edx + 0x4) = ecx; /* 0x361457D9: mov dword ptr [edx + 4], ecx */ 1740 goto L_361457ED; /* 0x361457DC: jmp 0x361457ed */ 1741 L_361457DE: 1742 edx = MEM32(eax + 0x4); /* 0x361457DE: mov edx, dword ptr [eax + 4] */ 1743 /* cmp eax, MEM32(edx + 0x8) */ /* 0x361457E1: cmp eax, dword ptr [edx + 8] */ 1744 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 1745 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1746 _flag_k = FK_CMP; 1747 if (CMP_NE(_flag_a, _flag_b)) goto L_361457EB; /* 0x361457E4: jne 0x361457eb */ 1748 L_361457E6: 1749 MEM32(edx + 0x8) = ecx; /* 0x361457E6: mov dword ptr [edx + 8], ecx */ 1750 goto L_361457ED; /* 0x361457E9: jmp 0x361457ed */ 1751 L_361457EB: 1752 MEM32(edx) = ecx; /* 0x361457EB: mov dword ptr [edx], ecx */ 1753 L_361457ED: 1754 MEM32(ecx + 0x8) = eax; /* 0x361457ED: mov dword ptr [ecx + 8], eax */ 1755 MEM32(eax + 0x4) = ecx; /* 0x361457F0: mov dword ptr [eax + 4], ecx */ 1756 L_361457F3: 1757 ecx = MEM32(eax + 0x4); /* 0x361457F3: mov ecx, dword ptr [eax + 4] */ 1758 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361457F6: mov byte ptr [ecx + 0x20], bl */ 1759 edx = MEM32(eax + 0x4); /* 0x361457F9: mov edx, dword ptr [eax + 4] */ 1760 ecx = MEM32(edx + 0x4); /* 0x361457FC: mov ecx, dword ptr [edx + 4] */ 1761 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x361457FF: mov byte ptr [ecx + 0x20], 0 */ 1762 edx = MEM32(eax + 0x4); /* 0x36145803: mov edx, dword ptr [eax + 4] */ 1763 ecx = MEM32(edx + 0x4); /* 0x36145806: mov ecx, dword ptr [edx + 4] */ 1764 edx = MEM32(ecx + 0x8); /* 0x36145809: mov edx, dword ptr [ecx + 8] */ 1765 edi = MEM32(edx); /* 0x3614580C: mov edi, dword ptr [edx] */ 1766 MEM32(ecx + 0x8) = edi; /* 0x3614580E: mov dword ptr [ecx + 8], edi */ 1767 edi = MEM32(edx); /* 0x36145811: mov edi, dword ptr [edx] */ 1768 /* cmp edi, MEM32(esi + 0x8) */ /* 0x36145813: cmp edi, dword ptr [esi + 8] */ 1769 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1770 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1771 _flag_k = FK_CMP; 1772 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614581B; /* 0x36145816: je 0x3614581b */ 1773 L_36145818: 1774 MEM32(edi + 0x4) = ecx; /* 0x36145818: mov dword ptr [edi + 4], ecx */ 1775 L_3614581B: 1776 edi = MEM32(ecx + 0x4); /* 0x3614581B: mov edi, dword ptr [ecx + 4] */ 1777 MEM32(edx + 0x4) = edi; /* 0x3614581E: mov dword ptr [edx + 4], edi */ 1778 edi = MEM32(esi + 0x4); /* 0x36145821: mov edi, dword ptr [esi + 4] */ 1779 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36145824: cmp ecx, dword ptr [edi + 4] */ 1780 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1781 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1782 _flag_k = FK_CMP; 1783 if (CMP_NE(_flag_a, _flag_b)) goto L_3614582E; /* 0x36145827: jne 0x3614582e */ 1784 L_36145829: 1785 MEM32(edi + 0x4) = edx; /* 0x36145829: mov dword ptr [edi + 4], edx */ 1786 goto L_3614583C; /* 0x3614582C: jmp 0x3614583c */ 1787 L_3614582E: 1788 edi = MEM32(ecx + 0x4); /* 0x3614582E: mov edi, dword ptr [ecx + 4] */ 1789 /* cmp ecx, MEM32(edi) */ /* 0x36145831: cmp ecx, dword ptr [edi] */ 1790 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 1791 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1792 _flag_k = FK_CMP; 1793 if (CMP_NE(_flag_a, _flag_b)) goto L_36145839; /* 0x36145833: jne 0x36145839 */ 1794 L_36145835: 1795 MEM32(edi) = edx; /* 0x36145835: mov dword ptr [edi], edx */ 1796 goto L_3614583C; /* 0x36145837: jmp 0x3614583c */ 1797 L_36145839: 1798 MEM32(edi + 0x8) = edx; /* 0x36145839: mov dword ptr [edi + 8], edx */ 1799 L_3614583C: 1800 MEM32(edx) = ecx; /* 0x3614583C: mov dword ptr [edx], ecx */ 1801 L_3614583E: 1802 MEM32(ecx + 0x4) = edx; /* 0x3614583E: mov dword ptr [ecx + 4], edx */ 1803 L_36145841: 1804 ecx = MEM32(esi + 0x4); /* 0x36145841: mov ecx, dword ptr [esi + 4] */ 1805 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36145844: cmp eax, dword ptr [ecx + 4] */ 1806 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 1807 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1808 _flag_k = FK_CMP; 1809 RECOMP_BACKEDGE(); 1810 if (CMP_NE(_flag_a, _flag_b)) goto L_361456CD; /* 0x36145847: jne 0x361456cd */ 1811 L_3614584D: 1812 edx = MEM32(esi + 0x4); /* 0x3614584D: mov edx, dword ptr [esi + 4] */ 1813 eax = MEM32(edx + 0x4); /* 0x36145850: mov eax, dword ptr [edx + 4] */ 1814 ecx = MEM32(ebp + (-0x4)); /* 0x36145853: mov ecx, dword ptr [ebp - 4] */ 1815 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36145856: mov byte ptr [eax + 0x20], bl */ 1816 eax = MEM32(ebp + 0x8); /* 0x36145859: mov eax, dword ptr [ebp + 8] */ 1817 edi = POP32_VAL(esp); /* 0x3614585C: pop edi */ 1818 esi = POP32_VAL(esp); /* 0x3614585D: pop esi */ 1819 MEM32(eax) = ecx; /* 0x3614585E: mov dword ptr [eax], ecx */ 1820 ebx = POP32_VAL(esp); /* 0x36145860: pop ebx */ 1821 esp = ebp; /* 0x36145861: mov esp, ebp */ 1822 ebp = POP32_VAL(esp); /* 0x36145863: pop ebp */ 1823 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36145864: ret 0x10 */ 1824 RECOMP_REGS_OUT(); 1825 } 1826 1827 void sub_3614583C(void) { 1828 int _fpu_cmp = 0; 1829 uint32_t _cf = 0; 1830 int _df = 1; 1831 uint32_t _flag_k = FK_NONE; 1832 uint32_t _flag_a = 0, _flag_b = 0; 1833 uint32_t _itail_tgt = 0; 1834 RECOMP_REGS_LOCALS 1835 RECOMP_ENTER(0x3614583Cu); 1836 1837 goto L_3614583C; 1838 L_361456CD: 1839 ecx = MEM32(eax + 0x4); /* 0x361456CD: mov ecx, dword ptr [eax + 4] */ 1840 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x361456D0: mov dl, byte ptr [ecx + 0x20] */ 1841 /* test LO8(edx), LO8(edx) */ /* 0x361456D3: test dl, dl */ 1842 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 1843 _cf = 0; 1844 _flag_k = FK_NARROW(FK_TEST, 24); 1845 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614584D; /* 0x361456D5: jne 0x3614584d */ 1846 L_361456DB: 1847 edi = MEM32(ecx + 0x4); /* 0x361456DB: mov edi, dword ptr [ecx + 4] */ 1848 edx = MEM32(edi); /* 0x361456DE: mov edx, dword ptr [edi] */ 1849 /* cmp ecx, edx */ /* 0x361456E0: cmp ecx, edx */ 1850 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1851 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1852 _flag_k = FK_CMP; 1853 if (CMP_NE(_flag_a, _flag_b)) goto L_361457A9; /* 0x361456E2: jne 0x361457a9 */ 1854 L_361456E8: 1855 edx = MEM32(edi + 0x8); /* 0x361456E8: mov edx, dword ptr [edi + 8] */ 1856 /* cmp MEM8(edx + 0x20), 0 */ /* 0x361456EB: cmp byte ptr [edx + 0x20], 0 */ 1857 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 1858 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1859 _flag_k = FK_NARROW(FK_CMP, 24); 1860 if (CMP_NE(_flag_a, _flag_b)) goto L_3614570C; /* 0x361456EF: jne 0x3614570c */ 1861 L_361456F1: 1862 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361456F1: mov byte ptr [ecx + 0x20], bl */ 1863 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361456F4: mov byte ptr [edx + 0x20], bl */ 1864 ecx = MEM32(eax + 0x4); /* 0x361456F7: mov ecx, dword ptr [eax + 4] */ 1865 edx = MEM32(ecx + 0x4); /* 0x361456FA: mov edx, dword ptr [ecx + 4] */ 1866 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x361456FD: mov byte ptr [edx + 0x20], 0 */ 1867 eax = MEM32(eax + 0x4); /* 0x36145701: mov eax, dword ptr [eax + 4] */ 1868 eax = MEM32(eax + 0x4); /* 0x36145704: mov eax, dword ptr [eax + 4] */ 1869 goto L_36145841; /* 0x36145707: jmp 0x36145841 */ 1870 L_3614570C: 1871 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3614570C: cmp eax, dword ptr [ecx + 8] */ 1872 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 1873 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1874 _flag_k = FK_CMP; 1875 if (CMP_NE(_flag_a, _flag_b)) goto L_3614574B; /* 0x3614570F: jne 0x3614574b */ 1876 L_36145711: 1877 eax = ecx; /* 0x36145711: mov eax, ecx */ 1878 ecx = MEM32(eax + 0x8); /* 0x36145713: mov ecx, dword ptr [eax + 8] */ 1879 edx = MEM32(ecx); /* 0x36145716: mov edx, dword ptr [ecx] */ 1880 MEM32(eax + 0x8) = edx; /* 0x36145718: mov dword ptr [eax + 8], edx */ 1881 edx = MEM32(ecx); /* 0x3614571B: mov edx, dword ptr [ecx] */ 1882 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3614571D: cmp edx, dword ptr [esi + 8] */ 1883 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1884 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1885 _flag_k = FK_CMP; 1886 if (CMP_EQ(_flag_a, _flag_b)) goto L_36145725; /* 0x36145720: je 0x36145725 */ 1887 L_36145722: 1888 MEM32(edx + 0x4) = eax; /* 0x36145722: mov dword ptr [edx + 4], eax */ 1889 L_36145725: 1890 edx = MEM32(eax + 0x4); /* 0x36145725: mov edx, dword ptr [eax + 4] */ 1891 MEM32(ecx + 0x4) = edx; /* 0x36145728: mov dword ptr [ecx + 4], edx */ 1892 edx = MEM32(esi + 0x4); /* 0x3614572B: mov edx, dword ptr [esi + 4] */ 1893 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3614572E: cmp eax, dword ptr [edx + 4] */ 1894 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1895 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1896 _flag_k = FK_CMP; 1897 if (CMP_NE(_flag_a, _flag_b)) goto L_36145738; /* 0x36145731: jne 0x36145738 */ 1898 L_36145733: 1899 MEM32(edx + 0x4) = ecx; /* 0x36145733: mov dword ptr [edx + 4], ecx */ 1900 goto L_36145746; /* 0x36145736: jmp 0x36145746 */ 1901 L_36145738: 1902 edx = MEM32(eax + 0x4); /* 0x36145738: mov edx, dword ptr [eax + 4] */ 1903 /* cmp eax, MEM32(edx) */ /* 0x3614573B: cmp eax, dword ptr [edx] */ 1904 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 1905 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1906 _flag_k = FK_CMP; 1907 if (CMP_NE(_flag_a, _flag_b)) goto L_36145743; /* 0x3614573D: jne 0x36145743 */ 1908 L_3614573F: 1909 MEM32(edx) = ecx; /* 0x3614573F: mov dword ptr [edx], ecx */ 1910 goto L_36145746; /* 0x36145741: jmp 0x36145746 */ 1911 L_36145743: 1912 MEM32(edx + 0x8) = ecx; /* 0x36145743: mov dword ptr [edx + 8], ecx */ 1913 L_36145746: 1914 MEM32(ecx) = eax; /* 0x36145746: mov dword ptr [ecx], eax */ 1915 MEM32(eax + 0x4) = ecx; /* 0x36145748: mov dword ptr [eax + 4], ecx */ 1916 L_3614574B: 1917 ecx = MEM32(eax + 0x4); /* 0x3614574B: mov ecx, dword ptr [eax + 4] */ 1918 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614574E: mov byte ptr [ecx + 0x20], bl */ 1919 edx = MEM32(eax + 0x4); /* 0x36145751: mov edx, dword ptr [eax + 4] */ 1920 ecx = MEM32(edx + 0x4); /* 0x36145754: mov ecx, dword ptr [edx + 4] */ 1921 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36145757: mov byte ptr [ecx + 0x20], 0 */ 1922 edx = MEM32(eax + 0x4); /* 0x3614575B: mov edx, dword ptr [eax + 4] */ 1923 ecx = MEM32(edx + 0x4); /* 0x3614575E: mov ecx, dword ptr [edx + 4] */ 1924 edx = MEM32(ecx); /* 0x36145761: mov edx, dword ptr [ecx] */ 1925 edi = MEM32(edx + 0x8); /* 0x36145763: mov edi, dword ptr [edx + 8] */ 1926 MEM32(ecx) = edi; /* 0x36145766: mov dword ptr [ecx], edi */ 1927 edi = MEM32(edx + 0x8); /* 0x36145768: mov edi, dword ptr [edx + 8] */ 1928 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3614576B: cmp edi, dword ptr [esi + 8] */ 1929 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1930 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1931 _flag_k = FK_CMP; 1932 if (CMP_EQ(_flag_a, _flag_b)) goto L_36145773; /* 0x3614576E: je 0x36145773 */ 1933 L_36145770: 1934 MEM32(edi + 0x4) = ecx; /* 0x36145770: mov dword ptr [edi + 4], ecx */ 1935 L_36145773: 1936 edi = MEM32(ecx + 0x4); /* 0x36145773: mov edi, dword ptr [ecx + 4] */ 1937 MEM32(edx + 0x4) = edi; /* 0x36145776: mov dword ptr [edx + 4], edi */ 1938 edi = MEM32(esi + 0x4); /* 0x36145779: mov edi, dword ptr [esi + 4] */ 1939 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3614577C: cmp ecx, dword ptr [edi + 4] */ 1940 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1941 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1942 _flag_k = FK_CMP; 1943 if (CMP_NE(_flag_a, _flag_b)) goto L_3614578C; /* 0x3614577F: jne 0x3614578c */ 1944 L_36145781: 1945 MEM32(edi + 0x4) = edx; /* 0x36145781: mov dword ptr [edi + 4], edx */ 1946 MEM32(edx + 0x8) = ecx; /* 0x36145784: mov dword ptr [edx + 8], ecx */ 1947 goto L_3614583E; /* 0x36145787: jmp 0x3614583e */ 1948 L_3614578C: 1949 edi = MEM32(ecx + 0x4); /* 0x3614578C: mov edi, dword ptr [ecx + 4] */ 1950 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3614578F: cmp ecx, dword ptr [edi + 8] */ 1951 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1952 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1953 _flag_k = FK_CMP; 1954 if (CMP_NE(_flag_a, _flag_b)) goto L_3614579F; /* 0x36145792: jne 0x3614579f */ 1955 L_36145794: 1956 MEM32(edi + 0x8) = edx; /* 0x36145794: mov dword ptr [edi + 8], edx */ 1957 MEM32(edx + 0x8) = ecx; /* 0x36145797: mov dword ptr [edx + 8], ecx */ 1958 goto L_3614583E; /* 0x3614579A: jmp 0x3614583e */ 1959 L_3614579F: 1960 MEM32(edi) = edx; /* 0x3614579F: mov dword ptr [edi], edx */ 1961 MEM32(edx + 0x8) = ecx; /* 0x361457A1: mov dword ptr [edx + 8], ecx */ 1962 goto L_3614583E; /* 0x361457A4: jmp 0x3614583e */ 1963 L_361457A9: 1964 /* cmp MEM8(edx + 0x20), 0 */ /* 0x361457A9: cmp byte ptr [edx + 0x20], 0 */ 1965 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 1966 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1967 _flag_k = FK_NARROW(FK_CMP, 24); 1968 RECOMP_BACKEDGE(); 1969 if (CMP_EQ(_flag_a, _flag_b)) goto L_361456F1; /* 0x361457AD: je 0x361456f1 */ 1970 L_361457B3: 1971 /* cmp eax, MEM32(ecx) */ /* 0x361457B3: cmp eax, dword ptr [ecx] */ 1972 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 1973 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1974 _flag_k = FK_CMP; 1975 if (CMP_NE(_flag_a, _flag_b)) goto L_361457F3; /* 0x361457B5: jne 0x361457f3 */ 1976 L_361457B7: 1977 eax = ecx; /* 0x361457B7: mov eax, ecx */ 1978 ecx = MEM32(eax); /* 0x361457B9: mov ecx, dword ptr [eax] */ 1979 edx = MEM32(ecx + 0x8); /* 0x361457BB: mov edx, dword ptr [ecx + 8] */ 1980 MEM32(eax) = edx; /* 0x361457BE: mov dword ptr [eax], edx */ 1981 edx = MEM32(ecx + 0x8); /* 0x361457C0: mov edx, dword ptr [ecx + 8] */ 1982 /* cmp edx, MEM32(esi + 0x8) */ /* 0x361457C3: cmp edx, dword ptr [esi + 8] */ 1983 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1984 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1985 _flag_k = FK_CMP; 1986 if (CMP_EQ(_flag_a, _flag_b)) goto L_361457CB; /* 0x361457C6: je 0x361457cb */ 1987 L_361457C8: 1988 MEM32(edx + 0x4) = eax; /* 0x361457C8: mov dword ptr [edx + 4], eax */ 1989 L_361457CB: 1990 edx = MEM32(eax + 0x4); /* 0x361457CB: mov edx, dword ptr [eax + 4] */ 1991 MEM32(ecx + 0x4) = edx; /* 0x361457CE: mov dword ptr [ecx + 4], edx */ 1992 edx = MEM32(esi + 0x4); /* 0x361457D1: mov edx, dword ptr [esi + 4] */ 1993 /* cmp eax, MEM32(edx + 0x4) */ /* 0x361457D4: cmp eax, dword ptr [edx + 4] */ 1994 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1995 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1996 _flag_k = FK_CMP; 1997 if (CMP_NE(_flag_a, _flag_b)) goto L_361457DE; /* 0x361457D7: jne 0x361457de */ 1998 L_361457D9: 1999 MEM32(edx + 0x4) = ecx; /* 0x361457D9: mov dword ptr [edx + 4], ecx */ 2000 goto L_361457ED; /* 0x361457DC: jmp 0x361457ed */ 2001 L_361457DE: 2002 edx = MEM32(eax + 0x4); /* 0x361457DE: mov edx, dword ptr [eax + 4] */ 2003 /* cmp eax, MEM32(edx + 0x8) */ /* 0x361457E1: cmp eax, dword ptr [edx + 8] */ 2004 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 2005 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2006 _flag_k = FK_CMP; 2007 if (CMP_NE(_flag_a, _flag_b)) goto L_361457EB; /* 0x361457E4: jne 0x361457eb */ 2008 L_361457E6: 2009 MEM32(edx + 0x8) = ecx; /* 0x361457E6: mov dword ptr [edx + 8], ecx */ 2010 goto L_361457ED; /* 0x361457E9: jmp 0x361457ed */ 2011 L_361457EB: 2012 MEM32(edx) = ecx; /* 0x361457EB: mov dword ptr [edx], ecx */ 2013 L_361457ED: 2014 MEM32(ecx + 0x8) = eax; /* 0x361457ED: mov dword ptr [ecx + 8], eax */ 2015 MEM32(eax + 0x4) = ecx; /* 0x361457F0: mov dword ptr [eax + 4], ecx */ 2016 L_361457F3: 2017 ecx = MEM32(eax + 0x4); /* 0x361457F3: mov ecx, dword ptr [eax + 4] */ 2018 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361457F6: mov byte ptr [ecx + 0x20], bl */ 2019 edx = MEM32(eax + 0x4); /* 0x361457F9: mov edx, dword ptr [eax + 4] */ 2020 ecx = MEM32(edx + 0x4); /* 0x361457FC: mov ecx, dword ptr [edx + 4] */ 2021 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x361457FF: mov byte ptr [ecx + 0x20], 0 */ 2022 edx = MEM32(eax + 0x4); /* 0x36145803: mov edx, dword ptr [eax + 4] */ 2023 ecx = MEM32(edx + 0x4); /* 0x36145806: mov ecx, dword ptr [edx + 4] */ 2024 edx = MEM32(ecx + 0x8); /* 0x36145809: mov edx, dword ptr [ecx + 8] */ 2025 edi = MEM32(edx); /* 0x3614580C: mov edi, dword ptr [edx] */ 2026 MEM32(ecx + 0x8) = edi; /* 0x3614580E: mov dword ptr [ecx + 8], edi */ 2027 edi = MEM32(edx); /* 0x36145811: mov edi, dword ptr [edx] */ 2028 /* cmp edi, MEM32(esi + 0x8) */ /* 0x36145813: cmp edi, dword ptr [esi + 8] */ 2029 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2030 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2031 _flag_k = FK_CMP; 2032 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614581B; /* 0x36145816: je 0x3614581b */ 2033 L_36145818: 2034 MEM32(edi + 0x4) = ecx; /* 0x36145818: mov dword ptr [edi + 4], ecx */ 2035 L_3614581B: 2036 edi = MEM32(ecx + 0x4); /* 0x3614581B: mov edi, dword ptr [ecx + 4] */ 2037 MEM32(edx + 0x4) = edi; /* 0x3614581E: mov dword ptr [edx + 4], edi */ 2038 edi = MEM32(esi + 0x4); /* 0x36145821: mov edi, dword ptr [esi + 4] */ 2039 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36145824: cmp ecx, dword ptr [edi + 4] */ 2040 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2041 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2042 _flag_k = FK_CMP; 2043 if (CMP_NE(_flag_a, _flag_b)) goto L_3614582E; /* 0x36145827: jne 0x3614582e */ 2044 L_36145829: 2045 MEM32(edi + 0x4) = edx; /* 0x36145829: mov dword ptr [edi + 4], edx */ 2046 goto L_3614583C; /* 0x3614582C: jmp 0x3614583c */ 2047 L_3614582E: 2048 edi = MEM32(ecx + 0x4); /* 0x3614582E: mov edi, dword ptr [ecx + 4] */ 2049 /* cmp ecx, MEM32(edi) */ /* 0x36145831: cmp ecx, dword ptr [edi] */ 2050 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 2051 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2052 _flag_k = FK_CMP; 2053 if (CMP_NE(_flag_a, _flag_b)) goto L_36145839; /* 0x36145833: jne 0x36145839 */ 2054 L_36145835: 2055 MEM32(edi) = edx; /* 0x36145835: mov dword ptr [edi], edx */ 2056 goto L_3614583C; /* 0x36145837: jmp 0x3614583c */ 2057 L_36145839: 2058 MEM32(edi + 0x8) = edx; /* 0x36145839: mov dword ptr [edi + 8], edx */ 2059 L_3614583C: 2060 MEM32(edx) = ecx; /* 0x3614583C: mov dword ptr [edx], ecx */ 2061 L_3614583E: 2062 MEM32(ecx + 0x4) = edx; /* 0x3614583E: mov dword ptr [ecx + 4], edx */ 2063 L_36145841: 2064 ecx = MEM32(esi + 0x4); /* 0x36145841: mov ecx, dword ptr [esi + 4] */ 2065 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36145844: cmp eax, dword ptr [ecx + 4] */ 2066 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 2067 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2068 _flag_k = FK_CMP; 2069 RECOMP_BACKEDGE(); 2070 if (CMP_NE(_flag_a, _flag_b)) goto L_361456CD; /* 0x36145847: jne 0x361456cd */ 2071 L_3614584D: 2072 edx = MEM32(esi + 0x4); /* 0x3614584D: mov edx, dword ptr [esi + 4] */ 2073 eax = MEM32(edx + 0x4); /* 0x36145850: mov eax, dword ptr [edx + 4] */ 2074 ecx = MEM32(ebp + (-0x4)); /* 0x36145853: mov ecx, dword ptr [ebp - 4] */ 2075 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36145856: mov byte ptr [eax + 0x20], bl */ 2076 eax = MEM32(ebp + 0x8); /* 0x36145859: mov eax, dword ptr [ebp + 8] */ 2077 edi = POP32_VAL(esp); /* 0x3614585C: pop edi */ 2078 esi = POP32_VAL(esp); /* 0x3614585D: pop esi */ 2079 MEM32(eax) = ecx; /* 0x3614585E: mov dword ptr [eax], ecx */ 2080 ebx = POP32_VAL(esp); /* 0x36145860: pop ebx */ 2081 esp = ebp; /* 0x36145861: mov esp, ebp */ 2082 ebp = POP32_VAL(esp); /* 0x36145863: pop ebp */ 2083 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36145864: ret 0x10 */ 2084 RECOMP_REGS_OUT(); 2085 } 2086 2087 void sub_3614583E(void) { 2088 int _fpu_cmp = 0; 2089 uint32_t _cf = 0; 2090 int _df = 1; 2091 uint32_t _flag_k = FK_NONE; 2092 uint32_t _flag_a = 0, _flag_b = 0; 2093 uint32_t _itail_tgt = 0; 2094 RECOMP_REGS_LOCALS 2095 RECOMP_ENTER(0x3614583Eu); 2096 2097 goto L_3614583E; 2098 L_361456CD: 2099 ecx = MEM32(eax + 0x4); /* 0x361456CD: mov ecx, dword ptr [eax + 4] */ 2100 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x361456D0: mov dl, byte ptr [ecx + 0x20] */ 2101 /* test LO8(edx), LO8(edx) */ /* 0x361456D3: test dl, dl */ 2102 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2103 _cf = 0; 2104 _flag_k = FK_NARROW(FK_TEST, 24); 2105 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614584D; /* 0x361456D5: jne 0x3614584d */ 2106 L_361456DB: 2107 edi = MEM32(ecx + 0x4); /* 0x361456DB: mov edi, dword ptr [ecx + 4] */ 2108 edx = MEM32(edi); /* 0x361456DE: mov edx, dword ptr [edi] */ 2109 /* cmp ecx, edx */ /* 0x361456E0: cmp ecx, edx */ 2110 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 2111 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2112 _flag_k = FK_CMP; 2113 if (CMP_NE(_flag_a, _flag_b)) goto L_361457A9; /* 0x361456E2: jne 0x361457a9 */ 2114 L_361456E8: 2115 edx = MEM32(edi + 0x8); /* 0x361456E8: mov edx, dword ptr [edi + 8] */ 2116 /* cmp MEM8(edx + 0x20), 0 */ /* 0x361456EB: cmp byte ptr [edx + 0x20], 0 */ 2117 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 2118 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2119 _flag_k = FK_NARROW(FK_CMP, 24); 2120 if (CMP_NE(_flag_a, _flag_b)) goto L_3614570C; /* 0x361456EF: jne 0x3614570c */ 2121 L_361456F1: 2122 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361456F1: mov byte ptr [ecx + 0x20], bl */ 2123 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361456F4: mov byte ptr [edx + 0x20], bl */ 2124 ecx = MEM32(eax + 0x4); /* 0x361456F7: mov ecx, dword ptr [eax + 4] */ 2125 edx = MEM32(ecx + 0x4); /* 0x361456FA: mov edx, dword ptr [ecx + 4] */ 2126 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x361456FD: mov byte ptr [edx + 0x20], 0 */ 2127 eax = MEM32(eax + 0x4); /* 0x36145701: mov eax, dword ptr [eax + 4] */ 2128 eax = MEM32(eax + 0x4); /* 0x36145704: mov eax, dword ptr [eax + 4] */ 2129 goto L_36145841; /* 0x36145707: jmp 0x36145841 */ 2130 L_3614570C: 2131 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3614570C: cmp eax, dword ptr [ecx + 8] */ 2132 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 2133 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2134 _flag_k = FK_CMP; 2135 if (CMP_NE(_flag_a, _flag_b)) goto L_3614574B; /* 0x3614570F: jne 0x3614574b */ 2136 L_36145711: 2137 eax = ecx; /* 0x36145711: mov eax, ecx */ 2138 ecx = MEM32(eax + 0x8); /* 0x36145713: mov ecx, dword ptr [eax + 8] */ 2139 edx = MEM32(ecx); /* 0x36145716: mov edx, dword ptr [ecx] */ 2140 MEM32(eax + 0x8) = edx; /* 0x36145718: mov dword ptr [eax + 8], edx */ 2141 edx = MEM32(ecx); /* 0x3614571B: mov edx, dword ptr [ecx] */ 2142 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3614571D: cmp edx, dword ptr [esi + 8] */ 2143 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2144 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2145 _flag_k = FK_CMP; 2146 if (CMP_EQ(_flag_a, _flag_b)) goto L_36145725; /* 0x36145720: je 0x36145725 */ 2147 L_36145722: 2148 MEM32(edx + 0x4) = eax; /* 0x36145722: mov dword ptr [edx + 4], eax */ 2149 L_36145725: 2150 edx = MEM32(eax + 0x4); /* 0x36145725: mov edx, dword ptr [eax + 4] */ 2151 MEM32(ecx + 0x4) = edx; /* 0x36145728: mov dword ptr [ecx + 4], edx */ 2152 edx = MEM32(esi + 0x4); /* 0x3614572B: mov edx, dword ptr [esi + 4] */ 2153 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3614572E: cmp eax, dword ptr [edx + 4] */ 2154 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2155 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2156 _flag_k = FK_CMP; 2157 if (CMP_NE(_flag_a, _flag_b)) goto L_36145738; /* 0x36145731: jne 0x36145738 */ 2158 L_36145733: 2159 MEM32(edx + 0x4) = ecx; /* 0x36145733: mov dword ptr [edx + 4], ecx */ 2160 goto L_36145746; /* 0x36145736: jmp 0x36145746 */ 2161 L_36145738: 2162 edx = MEM32(eax + 0x4); /* 0x36145738: mov edx, dword ptr [eax + 4] */ 2163 /* cmp eax, MEM32(edx) */ /* 0x3614573B: cmp eax, dword ptr [edx] */ 2164 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 2165 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2166 _flag_k = FK_CMP; 2167 if (CMP_NE(_flag_a, _flag_b)) goto L_36145743; /* 0x3614573D: jne 0x36145743 */ 2168 L_3614573F: 2169 MEM32(edx) = ecx; /* 0x3614573F: mov dword ptr [edx], ecx */ 2170 goto L_36145746; /* 0x36145741: jmp 0x36145746 */ 2171 L_36145743: 2172 MEM32(edx + 0x8) = ecx; /* 0x36145743: mov dword ptr [edx + 8], ecx */ 2173 L_36145746: 2174 MEM32(ecx) = eax; /* 0x36145746: mov dword ptr [ecx], eax */ 2175 MEM32(eax + 0x4) = ecx; /* 0x36145748: mov dword ptr [eax + 4], ecx */ 2176 L_3614574B: 2177 ecx = MEM32(eax + 0x4); /* 0x3614574B: mov ecx, dword ptr [eax + 4] */ 2178 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614574E: mov byte ptr [ecx + 0x20], bl */ 2179 edx = MEM32(eax + 0x4); /* 0x36145751: mov edx, dword ptr [eax + 4] */ 2180 ecx = MEM32(edx + 0x4); /* 0x36145754: mov ecx, dword ptr [edx + 4] */ 2181 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36145757: mov byte ptr [ecx + 0x20], 0 */ 2182 edx = MEM32(eax + 0x4); /* 0x3614575B: mov edx, dword ptr [eax + 4] */ 2183 ecx = MEM32(edx + 0x4); /* 0x3614575E: mov ecx, dword ptr [edx + 4] */ 2184 edx = MEM32(ecx); /* 0x36145761: mov edx, dword ptr [ecx] */ 2185 edi = MEM32(edx + 0x8); /* 0x36145763: mov edi, dword ptr [edx + 8] */ 2186 MEM32(ecx) = edi; /* 0x36145766: mov dword ptr [ecx], edi */ 2187 edi = MEM32(edx + 0x8); /* 0x36145768: mov edi, dword ptr [edx + 8] */ 2188 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3614576B: cmp edi, dword ptr [esi + 8] */ 2189 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2190 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2191 _flag_k = FK_CMP; 2192 if (CMP_EQ(_flag_a, _flag_b)) goto L_36145773; /* 0x3614576E: je 0x36145773 */ 2193 L_36145770: 2194 MEM32(edi + 0x4) = ecx; /* 0x36145770: mov dword ptr [edi + 4], ecx */ 2195 L_36145773: 2196 edi = MEM32(ecx + 0x4); /* 0x36145773: mov edi, dword ptr [ecx + 4] */ 2197 MEM32(edx + 0x4) = edi; /* 0x36145776: mov dword ptr [edx + 4], edi */ 2198 edi = MEM32(esi + 0x4); /* 0x36145779: mov edi, dword ptr [esi + 4] */ 2199 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3614577C: cmp ecx, dword ptr [edi + 4] */ 2200 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2201 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2202 _flag_k = FK_CMP; 2203 if (CMP_NE(_flag_a, _flag_b)) goto L_3614578C; /* 0x3614577F: jne 0x3614578c */ 2204 L_36145781: 2205 MEM32(edi + 0x4) = edx; /* 0x36145781: mov dword ptr [edi + 4], edx */ 2206 MEM32(edx + 0x8) = ecx; /* 0x36145784: mov dword ptr [edx + 8], ecx */ 2207 goto L_3614583E; /* 0x36145787: jmp 0x3614583e */ 2208 L_3614578C: 2209 edi = MEM32(ecx + 0x4); /* 0x3614578C: mov edi, dword ptr [ecx + 4] */ 2210 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3614578F: cmp ecx, dword ptr [edi + 8] */ 2211 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2212 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2213 _flag_k = FK_CMP; 2214 if (CMP_NE(_flag_a, _flag_b)) goto L_3614579F; /* 0x36145792: jne 0x3614579f */ 2215 L_36145794: 2216 MEM32(edi + 0x8) = edx; /* 0x36145794: mov dword ptr [edi + 8], edx */ 2217 MEM32(edx + 0x8) = ecx; /* 0x36145797: mov dword ptr [edx + 8], ecx */ 2218 goto L_3614583E; /* 0x3614579A: jmp 0x3614583e */ 2219 L_3614579F: 2220 MEM32(edi) = edx; /* 0x3614579F: mov dword ptr [edi], edx */ 2221 MEM32(edx + 0x8) = ecx; /* 0x361457A1: mov dword ptr [edx + 8], ecx */ 2222 goto L_3614583E; /* 0x361457A4: jmp 0x3614583e */ 2223 L_361457A9: 2224 /* cmp MEM8(edx + 0x20), 0 */ /* 0x361457A9: cmp byte ptr [edx + 0x20], 0 */ 2225 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 2226 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2227 _flag_k = FK_NARROW(FK_CMP, 24); 2228 RECOMP_BACKEDGE(); 2229 if (CMP_EQ(_flag_a, _flag_b)) goto L_361456F1; /* 0x361457AD: je 0x361456f1 */ 2230 L_361457B3: 2231 /* cmp eax, MEM32(ecx) */ /* 0x361457B3: cmp eax, dword ptr [ecx] */ 2232 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 2233 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2234 _flag_k = FK_CMP; 2235 if (CMP_NE(_flag_a, _flag_b)) goto L_361457F3; /* 0x361457B5: jne 0x361457f3 */ 2236 L_361457B7: 2237 eax = ecx; /* 0x361457B7: mov eax, ecx */ 2238 ecx = MEM32(eax); /* 0x361457B9: mov ecx, dword ptr [eax] */ 2239 edx = MEM32(ecx + 0x8); /* 0x361457BB: mov edx, dword ptr [ecx + 8] */ 2240 MEM32(eax) = edx; /* 0x361457BE: mov dword ptr [eax], edx */ 2241 edx = MEM32(ecx + 0x8); /* 0x361457C0: mov edx, dword ptr [ecx + 8] */ 2242 /* cmp edx, MEM32(esi + 0x8) */ /* 0x361457C3: cmp edx, dword ptr [esi + 8] */ 2243 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2244 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2245 _flag_k = FK_CMP; 2246 if (CMP_EQ(_flag_a, _flag_b)) goto L_361457CB; /* 0x361457C6: je 0x361457cb */ 2247 L_361457C8: 2248 MEM32(edx + 0x4) = eax; /* 0x361457C8: mov dword ptr [edx + 4], eax */ 2249 L_361457CB: 2250 edx = MEM32(eax + 0x4); /* 0x361457CB: mov edx, dword ptr [eax + 4] */ 2251 MEM32(ecx + 0x4) = edx; /* 0x361457CE: mov dword ptr [ecx + 4], edx */ 2252 edx = MEM32(esi + 0x4); /* 0x361457D1: mov edx, dword ptr [esi + 4] */ 2253 /* cmp eax, MEM32(edx + 0x4) */ /* 0x361457D4: cmp eax, dword ptr [edx + 4] */ 2254 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2255 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2256 _flag_k = FK_CMP; 2257 if (CMP_NE(_flag_a, _flag_b)) goto L_361457DE; /* 0x361457D7: jne 0x361457de */ 2258 L_361457D9: 2259 MEM32(edx + 0x4) = ecx; /* 0x361457D9: mov dword ptr [edx + 4], ecx */ 2260 goto L_361457ED; /* 0x361457DC: jmp 0x361457ed */ 2261 L_361457DE: 2262 edx = MEM32(eax + 0x4); /* 0x361457DE: mov edx, dword ptr [eax + 4] */ 2263 /* cmp eax, MEM32(edx + 0x8) */ /* 0x361457E1: cmp eax, dword ptr [edx + 8] */ 2264 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 2265 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2266 _flag_k = FK_CMP; 2267 if (CMP_NE(_flag_a, _flag_b)) goto L_361457EB; /* 0x361457E4: jne 0x361457eb */ 2268 L_361457E6: 2269 MEM32(edx + 0x8) = ecx; /* 0x361457E6: mov dword ptr [edx + 8], ecx */ 2270 goto L_361457ED; /* 0x361457E9: jmp 0x361457ed */ 2271 L_361457EB: 2272 MEM32(edx) = ecx; /* 0x361457EB: mov dword ptr [edx], ecx */ 2273 L_361457ED: 2274 MEM32(ecx + 0x8) = eax; /* 0x361457ED: mov dword ptr [ecx + 8], eax */ 2275 MEM32(eax + 0x4) = ecx; /* 0x361457F0: mov dword ptr [eax + 4], ecx */ 2276 L_361457F3: 2277 ecx = MEM32(eax + 0x4); /* 0x361457F3: mov ecx, dword ptr [eax + 4] */ 2278 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361457F6: mov byte ptr [ecx + 0x20], bl */ 2279 edx = MEM32(eax + 0x4); /* 0x361457F9: mov edx, dword ptr [eax + 4] */ 2280 ecx = MEM32(edx + 0x4); /* 0x361457FC: mov ecx, dword ptr [edx + 4] */ 2281 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x361457FF: mov byte ptr [ecx + 0x20], 0 */ 2282 edx = MEM32(eax + 0x4); /* 0x36145803: mov edx, dword ptr [eax + 4] */ 2283 ecx = MEM32(edx + 0x4); /* 0x36145806: mov ecx, dword ptr [edx + 4] */ 2284 edx = MEM32(ecx + 0x8); /* 0x36145809: mov edx, dword ptr [ecx + 8] */ 2285 edi = MEM32(edx); /* 0x3614580C: mov edi, dword ptr [edx] */ 2286 MEM32(ecx + 0x8) = edi; /* 0x3614580E: mov dword ptr [ecx + 8], edi */ 2287 edi = MEM32(edx); /* 0x36145811: mov edi, dword ptr [edx] */ 2288 /* cmp edi, MEM32(esi + 0x8) */ /* 0x36145813: cmp edi, dword ptr [esi + 8] */ 2289 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2290 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2291 _flag_k = FK_CMP; 2292 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614581B; /* 0x36145816: je 0x3614581b */ 2293 L_36145818: 2294 MEM32(edi + 0x4) = ecx; /* 0x36145818: mov dword ptr [edi + 4], ecx */ 2295 L_3614581B: 2296 edi = MEM32(ecx + 0x4); /* 0x3614581B: mov edi, dword ptr [ecx + 4] */ 2297 MEM32(edx + 0x4) = edi; /* 0x3614581E: mov dword ptr [edx + 4], edi */ 2298 edi = MEM32(esi + 0x4); /* 0x36145821: mov edi, dword ptr [esi + 4] */ 2299 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36145824: cmp ecx, dword ptr [edi + 4] */ 2300 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2301 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2302 _flag_k = FK_CMP; 2303 if (CMP_NE(_flag_a, _flag_b)) goto L_3614582E; /* 0x36145827: jne 0x3614582e */ 2304 L_36145829: 2305 MEM32(edi + 0x4) = edx; /* 0x36145829: mov dword ptr [edi + 4], edx */ 2306 goto L_3614583C; /* 0x3614582C: jmp 0x3614583c */ 2307 L_3614582E: 2308 edi = MEM32(ecx + 0x4); /* 0x3614582E: mov edi, dword ptr [ecx + 4] */ 2309 /* cmp ecx, MEM32(edi) */ /* 0x36145831: cmp ecx, dword ptr [edi] */ 2310 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 2311 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2312 _flag_k = FK_CMP; 2313 if (CMP_NE(_flag_a, _flag_b)) goto L_36145839; /* 0x36145833: jne 0x36145839 */ 2314 L_36145835: 2315 MEM32(edi) = edx; /* 0x36145835: mov dword ptr [edi], edx */ 2316 goto L_3614583C; /* 0x36145837: jmp 0x3614583c */ 2317 L_36145839: 2318 MEM32(edi + 0x8) = edx; /* 0x36145839: mov dword ptr [edi + 8], edx */ 2319 L_3614583C: 2320 MEM32(edx) = ecx; /* 0x3614583C: mov dword ptr [edx], ecx */ 2321 L_3614583E: 2322 MEM32(ecx + 0x4) = edx; /* 0x3614583E: mov dword ptr [ecx + 4], edx */ 2323 L_36145841: 2324 ecx = MEM32(esi + 0x4); /* 0x36145841: mov ecx, dword ptr [esi + 4] */ 2325 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36145844: cmp eax, dword ptr [ecx + 4] */ 2326 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 2327 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2328 _flag_k = FK_CMP; 2329 RECOMP_BACKEDGE(); 2330 if (CMP_NE(_flag_a, _flag_b)) goto L_361456CD; /* 0x36145847: jne 0x361456cd */ 2331 L_3614584D: 2332 edx = MEM32(esi + 0x4); /* 0x3614584D: mov edx, dword ptr [esi + 4] */ 2333 eax = MEM32(edx + 0x4); /* 0x36145850: mov eax, dword ptr [edx + 4] */ 2334 ecx = MEM32(ebp + (-0x4)); /* 0x36145853: mov ecx, dword ptr [ebp - 4] */ 2335 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36145856: mov byte ptr [eax + 0x20], bl */ 2336 eax = MEM32(ebp + 0x8); /* 0x36145859: mov eax, dword ptr [ebp + 8] */ 2337 edi = POP32_VAL(esp); /* 0x3614585C: pop edi */ 2338 esi = POP32_VAL(esp); /* 0x3614585D: pop esi */ 2339 MEM32(eax) = ecx; /* 0x3614585E: mov dword ptr [eax], ecx */ 2340 ebx = POP32_VAL(esp); /* 0x36145860: pop ebx */ 2341 esp = ebp; /* 0x36145861: mov esp, ebp */ 2342 ebp = POP32_VAL(esp); /* 0x36145863: pop ebp */ 2343 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36145864: ret 0x10 */ 2344 RECOMP_REGS_OUT(); 2345 } 2346 2347 void sub_36145841(void) { 2348 int _fpu_cmp = 0; 2349 uint32_t _cf = 0; 2350 int _df = 1; 2351 uint32_t _flag_k = FK_NONE; 2352 uint32_t _flag_a = 0, _flag_b = 0; 2353 uint32_t _itail_tgt = 0; 2354 RECOMP_REGS_LOCALS 2355 RECOMP_ENTER(0x36145841u); 2356 2357 goto L_36145841; 2358 L_361456CD: 2359 ecx = MEM32(eax + 0x4); /* 0x361456CD: mov ecx, dword ptr [eax + 4] */ 2360 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x361456D0: mov dl, byte ptr [ecx + 0x20] */ 2361 /* test LO8(edx), LO8(edx) */ /* 0x361456D3: test dl, dl */ 2362 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2363 _cf = 0; 2364 _flag_k = FK_NARROW(FK_TEST, 24); 2365 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614584D; /* 0x361456D5: jne 0x3614584d */ 2366 L_361456DB: 2367 edi = MEM32(ecx + 0x4); /* 0x361456DB: mov edi, dword ptr [ecx + 4] */ 2368 edx = MEM32(edi); /* 0x361456DE: mov edx, dword ptr [edi] */ 2369 /* cmp ecx, edx */ /* 0x361456E0: cmp ecx, edx */ 2370 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 2371 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2372 _flag_k = FK_CMP; 2373 if (CMP_NE(_flag_a, _flag_b)) goto L_361457A9; /* 0x361456E2: jne 0x361457a9 */ 2374 L_361456E8: 2375 edx = MEM32(edi + 0x8); /* 0x361456E8: mov edx, dword ptr [edi + 8] */ 2376 /* cmp MEM8(edx + 0x20), 0 */ /* 0x361456EB: cmp byte ptr [edx + 0x20], 0 */ 2377 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 2378 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2379 _flag_k = FK_NARROW(FK_CMP, 24); 2380 if (CMP_NE(_flag_a, _flag_b)) goto L_3614570C; /* 0x361456EF: jne 0x3614570c */ 2381 L_361456F1: 2382 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361456F1: mov byte ptr [ecx + 0x20], bl */ 2383 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361456F4: mov byte ptr [edx + 0x20], bl */ 2384 ecx = MEM32(eax + 0x4); /* 0x361456F7: mov ecx, dword ptr [eax + 4] */ 2385 edx = MEM32(ecx + 0x4); /* 0x361456FA: mov edx, dword ptr [ecx + 4] */ 2386 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x361456FD: mov byte ptr [edx + 0x20], 0 */ 2387 eax = MEM32(eax + 0x4); /* 0x36145701: mov eax, dword ptr [eax + 4] */ 2388 eax = MEM32(eax + 0x4); /* 0x36145704: mov eax, dword ptr [eax + 4] */ 2389 goto L_36145841; /* 0x36145707: jmp 0x36145841 */ 2390 L_3614570C: 2391 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3614570C: cmp eax, dword ptr [ecx + 8] */ 2392 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 2393 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2394 _flag_k = FK_CMP; 2395 if (CMP_NE(_flag_a, _flag_b)) goto L_3614574B; /* 0x3614570F: jne 0x3614574b */ 2396 L_36145711: 2397 eax = ecx; /* 0x36145711: mov eax, ecx */ 2398 ecx = MEM32(eax + 0x8); /* 0x36145713: mov ecx, dword ptr [eax + 8] */ 2399 edx = MEM32(ecx); /* 0x36145716: mov edx, dword ptr [ecx] */ 2400 MEM32(eax + 0x8) = edx; /* 0x36145718: mov dword ptr [eax + 8], edx */ 2401 edx = MEM32(ecx); /* 0x3614571B: mov edx, dword ptr [ecx] */ 2402 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3614571D: cmp edx, dword ptr [esi + 8] */ 2403 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2404 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2405 _flag_k = FK_CMP; 2406 if (CMP_EQ(_flag_a, _flag_b)) goto L_36145725; /* 0x36145720: je 0x36145725 */ 2407 L_36145722: 2408 MEM32(edx + 0x4) = eax; /* 0x36145722: mov dword ptr [edx + 4], eax */ 2409 L_36145725: 2410 edx = MEM32(eax + 0x4); /* 0x36145725: mov edx, dword ptr [eax + 4] */ 2411 MEM32(ecx + 0x4) = edx; /* 0x36145728: mov dword ptr [ecx + 4], edx */ 2412 edx = MEM32(esi + 0x4); /* 0x3614572B: mov edx, dword ptr [esi + 4] */ 2413 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3614572E: cmp eax, dword ptr [edx + 4] */ 2414 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2415 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2416 _flag_k = FK_CMP; 2417 if (CMP_NE(_flag_a, _flag_b)) goto L_36145738; /* 0x36145731: jne 0x36145738 */ 2418 L_36145733: 2419 MEM32(edx + 0x4) = ecx; /* 0x36145733: mov dword ptr [edx + 4], ecx */ 2420 goto L_36145746; /* 0x36145736: jmp 0x36145746 */ 2421 L_36145738: 2422 edx = MEM32(eax + 0x4); /* 0x36145738: mov edx, dword ptr [eax + 4] */ 2423 /* cmp eax, MEM32(edx) */ /* 0x3614573B: cmp eax, dword ptr [edx] */ 2424 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 2425 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2426 _flag_k = FK_CMP; 2427 if (CMP_NE(_flag_a, _flag_b)) goto L_36145743; /* 0x3614573D: jne 0x36145743 */ 2428 L_3614573F: 2429 MEM32(edx) = ecx; /* 0x3614573F: mov dword ptr [edx], ecx */ 2430 goto L_36145746; /* 0x36145741: jmp 0x36145746 */ 2431 L_36145743: 2432 MEM32(edx + 0x8) = ecx; /* 0x36145743: mov dword ptr [edx + 8], ecx */ 2433 L_36145746: 2434 MEM32(ecx) = eax; /* 0x36145746: mov dword ptr [ecx], eax */ 2435 MEM32(eax + 0x4) = ecx; /* 0x36145748: mov dword ptr [eax + 4], ecx */ 2436 L_3614574B: 2437 ecx = MEM32(eax + 0x4); /* 0x3614574B: mov ecx, dword ptr [eax + 4] */ 2438 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614574E: mov byte ptr [ecx + 0x20], bl */ 2439 edx = MEM32(eax + 0x4); /* 0x36145751: mov edx, dword ptr [eax + 4] */ 2440 ecx = MEM32(edx + 0x4); /* 0x36145754: mov ecx, dword ptr [edx + 4] */ 2441 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36145757: mov byte ptr [ecx + 0x20], 0 */ 2442 edx = MEM32(eax + 0x4); /* 0x3614575B: mov edx, dword ptr [eax + 4] */ 2443 ecx = MEM32(edx + 0x4); /* 0x3614575E: mov ecx, dword ptr [edx + 4] */ 2444 edx = MEM32(ecx); /* 0x36145761: mov edx, dword ptr [ecx] */ 2445 edi = MEM32(edx + 0x8); /* 0x36145763: mov edi, dword ptr [edx + 8] */ 2446 MEM32(ecx) = edi; /* 0x36145766: mov dword ptr [ecx], edi */ 2447 edi = MEM32(edx + 0x8); /* 0x36145768: mov edi, dword ptr [edx + 8] */ 2448 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3614576B: cmp edi, dword ptr [esi + 8] */ 2449 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2450 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2451 _flag_k = FK_CMP; 2452 if (CMP_EQ(_flag_a, _flag_b)) goto L_36145773; /* 0x3614576E: je 0x36145773 */ 2453 L_36145770: 2454 MEM32(edi + 0x4) = ecx; /* 0x36145770: mov dword ptr [edi + 4], ecx */ 2455 L_36145773: 2456 edi = MEM32(ecx + 0x4); /* 0x36145773: mov edi, dword ptr [ecx + 4] */ 2457 MEM32(edx + 0x4) = edi; /* 0x36145776: mov dword ptr [edx + 4], edi */ 2458 edi = MEM32(esi + 0x4); /* 0x36145779: mov edi, dword ptr [esi + 4] */ 2459 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3614577C: cmp ecx, dword ptr [edi + 4] */ 2460 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2461 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2462 _flag_k = FK_CMP; 2463 if (CMP_NE(_flag_a, _flag_b)) goto L_3614578C; /* 0x3614577F: jne 0x3614578c */ 2464 L_36145781: 2465 MEM32(edi + 0x4) = edx; /* 0x36145781: mov dword ptr [edi + 4], edx */ 2466 MEM32(edx + 0x8) = ecx; /* 0x36145784: mov dword ptr [edx + 8], ecx */ 2467 goto L_3614583E; /* 0x36145787: jmp 0x3614583e */ 2468 L_3614578C: 2469 edi = MEM32(ecx + 0x4); /* 0x3614578C: mov edi, dword ptr [ecx + 4] */ 2470 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3614578F: cmp ecx, dword ptr [edi + 8] */ 2471 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2472 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2473 _flag_k = FK_CMP; 2474 if (CMP_NE(_flag_a, _flag_b)) goto L_3614579F; /* 0x36145792: jne 0x3614579f */ 2475 L_36145794: 2476 MEM32(edi + 0x8) = edx; /* 0x36145794: mov dword ptr [edi + 8], edx */ 2477 MEM32(edx + 0x8) = ecx; /* 0x36145797: mov dword ptr [edx + 8], ecx */ 2478 goto L_3614583E; /* 0x3614579A: jmp 0x3614583e */ 2479 L_3614579F: 2480 MEM32(edi) = edx; /* 0x3614579F: mov dword ptr [edi], edx */ 2481 MEM32(edx + 0x8) = ecx; /* 0x361457A1: mov dword ptr [edx + 8], ecx */ 2482 goto L_3614583E; /* 0x361457A4: jmp 0x3614583e */ 2483 L_361457A9: 2484 /* cmp MEM8(edx + 0x20), 0 */ /* 0x361457A9: cmp byte ptr [edx + 0x20], 0 */ 2485 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 2486 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2487 _flag_k = FK_NARROW(FK_CMP, 24); 2488 RECOMP_BACKEDGE(); 2489 if (CMP_EQ(_flag_a, _flag_b)) goto L_361456F1; /* 0x361457AD: je 0x361456f1 */ 2490 L_361457B3: 2491 /* cmp eax, MEM32(ecx) */ /* 0x361457B3: cmp eax, dword ptr [ecx] */ 2492 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 2493 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2494 _flag_k = FK_CMP; 2495 if (CMP_NE(_flag_a, _flag_b)) goto L_361457F3; /* 0x361457B5: jne 0x361457f3 */ 2496 L_361457B7: 2497 eax = ecx; /* 0x361457B7: mov eax, ecx */ 2498 ecx = MEM32(eax); /* 0x361457B9: mov ecx, dword ptr [eax] */ 2499 edx = MEM32(ecx + 0x8); /* 0x361457BB: mov edx, dword ptr [ecx + 8] */ 2500 MEM32(eax) = edx; /* 0x361457BE: mov dword ptr [eax], edx */ 2501 edx = MEM32(ecx + 0x8); /* 0x361457C0: mov edx, dword ptr [ecx + 8] */ 2502 /* cmp edx, MEM32(esi + 0x8) */ /* 0x361457C3: cmp edx, dword ptr [esi + 8] */ 2503 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2504 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2505 _flag_k = FK_CMP; 2506 if (CMP_EQ(_flag_a, _flag_b)) goto L_361457CB; /* 0x361457C6: je 0x361457cb */ 2507 L_361457C8: 2508 MEM32(edx + 0x4) = eax; /* 0x361457C8: mov dword ptr [edx + 4], eax */ 2509 L_361457CB: 2510 edx = MEM32(eax + 0x4); /* 0x361457CB: mov edx, dword ptr [eax + 4] */ 2511 MEM32(ecx + 0x4) = edx; /* 0x361457CE: mov dword ptr [ecx + 4], edx */ 2512 edx = MEM32(esi + 0x4); /* 0x361457D1: mov edx, dword ptr [esi + 4] */ 2513 /* cmp eax, MEM32(edx + 0x4) */ /* 0x361457D4: cmp eax, dword ptr [edx + 4] */ 2514 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2515 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2516 _flag_k = FK_CMP; 2517 if (CMP_NE(_flag_a, _flag_b)) goto L_361457DE; /* 0x361457D7: jne 0x361457de */ 2518 L_361457D9: 2519 MEM32(edx + 0x4) = ecx; /* 0x361457D9: mov dword ptr [edx + 4], ecx */ 2520 goto L_361457ED; /* 0x361457DC: jmp 0x361457ed */ 2521 L_361457DE: 2522 edx = MEM32(eax + 0x4); /* 0x361457DE: mov edx, dword ptr [eax + 4] */ 2523 /* cmp eax, MEM32(edx + 0x8) */ /* 0x361457E1: cmp eax, dword ptr [edx + 8] */ 2524 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 2525 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2526 _flag_k = FK_CMP; 2527 if (CMP_NE(_flag_a, _flag_b)) goto L_361457EB; /* 0x361457E4: jne 0x361457eb */ 2528 L_361457E6: 2529 MEM32(edx + 0x8) = ecx; /* 0x361457E6: mov dword ptr [edx + 8], ecx */ 2530 goto L_361457ED; /* 0x361457E9: jmp 0x361457ed */ 2531 L_361457EB: 2532 MEM32(edx) = ecx; /* 0x361457EB: mov dword ptr [edx], ecx */ 2533 L_361457ED: 2534 MEM32(ecx + 0x8) = eax; /* 0x361457ED: mov dword ptr [ecx + 8], eax */ 2535 MEM32(eax + 0x4) = ecx; /* 0x361457F0: mov dword ptr [eax + 4], ecx */ 2536 L_361457F3: 2537 ecx = MEM32(eax + 0x4); /* 0x361457F3: mov ecx, dword ptr [eax + 4] */ 2538 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361457F6: mov byte ptr [ecx + 0x20], bl */ 2539 edx = MEM32(eax + 0x4); /* 0x361457F9: mov edx, dword ptr [eax + 4] */ 2540 ecx = MEM32(edx + 0x4); /* 0x361457FC: mov ecx, dword ptr [edx + 4] */ 2541 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x361457FF: mov byte ptr [ecx + 0x20], 0 */ 2542 edx = MEM32(eax + 0x4); /* 0x36145803: mov edx, dword ptr [eax + 4] */ 2543 ecx = MEM32(edx + 0x4); /* 0x36145806: mov ecx, dword ptr [edx + 4] */ 2544 edx = MEM32(ecx + 0x8); /* 0x36145809: mov edx, dword ptr [ecx + 8] */ 2545 edi = MEM32(edx); /* 0x3614580C: mov edi, dword ptr [edx] */ 2546 MEM32(ecx + 0x8) = edi; /* 0x3614580E: mov dword ptr [ecx + 8], edi */ 2547 edi = MEM32(edx); /* 0x36145811: mov edi, dword ptr [edx] */ 2548 /* cmp edi, MEM32(esi + 0x8) */ /* 0x36145813: cmp edi, dword ptr [esi + 8] */ 2549 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2550 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2551 _flag_k = FK_CMP; 2552 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614581B; /* 0x36145816: je 0x3614581b */ 2553 L_36145818: 2554 MEM32(edi + 0x4) = ecx; /* 0x36145818: mov dword ptr [edi + 4], ecx */ 2555 L_3614581B: 2556 edi = MEM32(ecx + 0x4); /* 0x3614581B: mov edi, dword ptr [ecx + 4] */ 2557 MEM32(edx + 0x4) = edi; /* 0x3614581E: mov dword ptr [edx + 4], edi */ 2558 edi = MEM32(esi + 0x4); /* 0x36145821: mov edi, dword ptr [esi + 4] */ 2559 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36145824: cmp ecx, dword ptr [edi + 4] */ 2560 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2561 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2562 _flag_k = FK_CMP; 2563 if (CMP_NE(_flag_a, _flag_b)) goto L_3614582E; /* 0x36145827: jne 0x3614582e */ 2564 L_36145829: 2565 MEM32(edi + 0x4) = edx; /* 0x36145829: mov dword ptr [edi + 4], edx */ 2566 goto L_3614583C; /* 0x3614582C: jmp 0x3614583c */ 2567 L_3614582E: 2568 edi = MEM32(ecx + 0x4); /* 0x3614582E: mov edi, dword ptr [ecx + 4] */ 2569 /* cmp ecx, MEM32(edi) */ /* 0x36145831: cmp ecx, dword ptr [edi] */ 2570 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 2571 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2572 _flag_k = FK_CMP; 2573 if (CMP_NE(_flag_a, _flag_b)) goto L_36145839; /* 0x36145833: jne 0x36145839 */ 2574 L_36145835: 2575 MEM32(edi) = edx; /* 0x36145835: mov dword ptr [edi], edx */ 2576 goto L_3614583C; /* 0x36145837: jmp 0x3614583c */ 2577 L_36145839: 2578 MEM32(edi + 0x8) = edx; /* 0x36145839: mov dword ptr [edi + 8], edx */ 2579 L_3614583C: 2580 MEM32(edx) = ecx; /* 0x3614583C: mov dword ptr [edx], ecx */ 2581 L_3614583E: 2582 MEM32(ecx + 0x4) = edx; /* 0x3614583E: mov dword ptr [ecx + 4], edx */ 2583 L_36145841: 2584 ecx = MEM32(esi + 0x4); /* 0x36145841: mov ecx, dword ptr [esi + 4] */ 2585 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36145844: cmp eax, dword ptr [ecx + 4] */ 2586 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 2587 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2588 _flag_k = FK_CMP; 2589 RECOMP_BACKEDGE(); 2590 if (CMP_NE(_flag_a, _flag_b)) goto L_361456CD; /* 0x36145847: jne 0x361456cd */ 2591 L_3614584D: 2592 edx = MEM32(esi + 0x4); /* 0x3614584D: mov edx, dword ptr [esi + 4] */ 2593 eax = MEM32(edx + 0x4); /* 0x36145850: mov eax, dword ptr [edx + 4] */ 2594 ecx = MEM32(ebp + (-0x4)); /* 0x36145853: mov ecx, dword ptr [ebp - 4] */ 2595 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36145856: mov byte ptr [eax + 0x20], bl */ 2596 eax = MEM32(ebp + 0x8); /* 0x36145859: mov eax, dword ptr [ebp + 8] */ 2597 edi = POP32_VAL(esp); /* 0x3614585C: pop edi */ 2598 esi = POP32_VAL(esp); /* 0x3614585D: pop esi */ 2599 MEM32(eax) = ecx; /* 0x3614585E: mov dword ptr [eax], ecx */ 2600 ebx = POP32_VAL(esp); /* 0x36145860: pop ebx */ 2601 esp = ebp; /* 0x36145861: mov esp, ebp */ 2602 ebp = POP32_VAL(esp); /* 0x36145863: pop ebp */ 2603 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36145864: ret 0x10 */ 2604 RECOMP_REGS_OUT(); 2605 } 2606 2607 void sub_3614584D(void) { 2608 int _fpu_cmp = 0; 2609 uint32_t _cf = 0; 2610 int _df = 1; 2611 uint32_t _flag_k = FK_NONE; 2612 uint32_t _flag_a = 0, _flag_b = 0; 2613 uint32_t _itail_tgt = 0; 2614 RECOMP_REGS_LOCALS 2615 RECOMP_ENTER(0x3614584Du); 2616 2617 L_3614584D: 2618 edx = MEM32(esi + 0x4); /* 0x3614584D: mov edx, dword ptr [esi + 4] */ 2619 eax = MEM32(edx + 0x4); /* 0x36145850: mov eax, dword ptr [edx + 4] */ 2620 ecx = MEM32(ebp + (-0x4)); /* 0x36145853: mov ecx, dword ptr [ebp - 4] */ 2621 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36145856: mov byte ptr [eax + 0x20], bl */ 2622 eax = MEM32(ebp + 0x8); /* 0x36145859: mov eax, dword ptr [ebp + 8] */ 2623 edi = POP32_VAL(esp); /* 0x3614585C: pop edi */ 2624 esi = POP32_VAL(esp); /* 0x3614585D: pop esi */ 2625 MEM32(eax) = ecx; /* 0x3614585E: mov dword ptr [eax], ecx */ 2626 ebx = POP32_VAL(esp); /* 0x36145860: pop ebx */ 2627 esp = ebp; /* 0x36145861: mov esp, ebp */ 2628 ebp = POP32_VAL(esp); /* 0x36145863: pop ebp */ 2629 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36145864: ret 0x10 */ 2630 RECOMP_REGS_OUT(); 2631 } 2632 2633 void sub_36145870(void) { 2634 int _fpu_cmp = 0; 2635 uint32_t _cf = 0; 2636 int _df = 1; 2637 uint32_t _flag_k = FK_NONE; 2638 uint32_t _flag_a = 0, _flag_b = 0; 2639 uint32_t _itail_tgt = 0; 2640 RECOMP_REGS_LOCALS 2641 RECOMP_ENTER(0x36145870u); 2642 2643 L_36145870: 2644 eax = MEM32(ecx); /* 0x36145870: mov eax, dword ptr [ecx] */ 2645 SET_LO8(edx, MEM8(eax + 0x20)); /* 0x36145872: mov dl, byte ptr [eax + 0x20] */ 2646 /* test LO8(edx), LO8(edx) */ /* 0x36145875: test dl, dl */ 2647 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2648 _cf = 0; 2649 _flag_k = FK_NARROW(FK_TEST, 24); 2650 PUSH32(esp, ebx); /* 0x36145877: push ebx */ 2651 if (TEST_NZ(_flag_a, _flag_b)) goto L_36145889; /* 0x36145878: jne 0x36145889 */ 2652 L_3614587A: 2653 edx = MEM32(eax + 0x4); /* 0x3614587A: mov edx, dword ptr [eax + 4] */ 2654 /* cmp MEM32(edx + 0x4), eax */ /* 0x3614587D: cmp dword ptr [edx + 4], eax */ 2655 _flag_a = (uint32_t)(MEM32(edx + 0x4)); _flag_b = (uint32_t)(eax); 2656 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2657 _flag_k = FK_CMP; 2658 if (CMP_NE(_flag_a, _flag_b)) goto L_36145889; /* 0x36145880: jne 0x36145889 */ 2659 L_36145882: 2660 eax = MEM32(eax + 0x8); /* 0x36145882: mov eax, dword ptr [eax + 8] */ 2661 MEM32(ecx) = eax; /* 0x36145885: mov dword ptr [ecx], eax */ 2662 ebx = POP32_VAL(esp); /* 0x36145887: pop ebx */ 2663 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36145888: ret */ 2664 L_36145889: 2665 edx = MEM32(eax); /* 0x36145889: mov edx, dword ptr [eax] */ 2666 SET_LO8(ebx, MEM8(edx + 0x21)); /* 0x3614588B: mov bl, byte ptr [edx + 0x21] */ 2667 /* test LO8(ebx), LO8(ebx) */ /* 0x3614588E: test bl, bl */ 2668 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2669 _cf = 0; 2670 _flag_k = FK_NARROW(FK_TEST, 24); 2671 if (TEST_NZ(_flag_a, _flag_b)) goto L_361458AC; /* 0x36145890: jne 0x361458ac */ 2672 L_36145892: 2673 eax = MEM32(edx + 0x8); /* 0x36145892: mov eax, dword ptr [edx + 8] */ 2674 SET_LO8(ebx, MEM8(eax + 0x21)); /* 0x36145895: mov bl, byte ptr [eax + 0x21] */ 2675 /* test LO8(ebx), LO8(ebx) */ /* 0x36145898: test bl, bl */ 2676 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2677 _cf = 0; 2678 _flag_k = FK_NARROW(FK_TEST, 24); 2679 if (TEST_NZ(_flag_a, _flag_b)) goto L_361458A8; /* 0x3614589A: jne 0x361458a8 */ 2680 L_3614589C: 2681 edx = eax; /* 0x3614589C: mov edx, eax */ 2682 eax = MEM32(edx + 0x8); /* 0x3614589E: mov eax, dword ptr [edx + 8] */ 2683 SET_LO8(ebx, MEM8(eax + 0x21)); /* 0x361458A1: mov bl, byte ptr [eax + 0x21] */ 2684 /* test LO8(ebx), LO8(ebx) */ /* 0x361458A4: test bl, bl */ 2685 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2686 _cf = 0; 2687 _flag_k = FK_NARROW(FK_TEST, 24); 2688 RECOMP_BACKEDGE(); 2689 if (TEST_Z(_flag_a, _flag_b)) goto L_3614589C; /* 0x361458A6: je 0x3614589c */ 2690 L_361458A8: 2691 MEM32(ecx) = edx; /* 0x361458A8: mov dword ptr [ecx], edx */ 2692 ebx = POP32_VAL(esp); /* 0x361458AA: pop ebx */ 2693 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361458AB: ret */ 2694 L_361458AC: 2695 eax = MEM32(eax + 0x4); /* 0x361458AC: mov eax, dword ptr [eax + 4] */ 2696 edx = MEM32(ecx); /* 0x361458AF: mov edx, dword ptr [ecx] */ 2697 /* cmp edx, MEM32(eax) */ /* 0x361458B1: cmp edx, dword ptr [eax] */ 2698 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax)); 2699 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2700 _flag_k = FK_CMP; 2701 if (CMP_NE(_flag_a, _flag_b)) goto L_361458C0; /* 0x361458B3: jne 0x361458c0 */ 2702 L_361458B5: 2703 MEM32(ecx) = eax; /* 0x361458B5: mov dword ptr [ecx], eax */ 2704 eax = MEM32(eax + 0x4); /* 0x361458B7: mov eax, dword ptr [eax + 4] */ 2705 edx = MEM32(ecx); /* 0x361458BA: mov edx, dword ptr [ecx] */ 2706 /* cmp edx, MEM32(eax) */ /* 0x361458BC: cmp edx, dword ptr [eax] */ 2707 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax)); 2708 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2709 _flag_k = FK_CMP; 2710 RECOMP_BACKEDGE(); 2711 if (CMP_EQ(_flag_a, _flag_b)) goto L_361458B5; /* 0x361458BE: je 0x361458b5 */ 2712 L_361458C0: 2713 MEM32(ecx) = eax; /* 0x361458C0: mov dword ptr [ecx], eax */ 2714 ebx = POP32_VAL(esp); /* 0x361458C2: pop ebx */ 2715 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361458C3: ret */ 2716 RECOMP_REGS_OUT(); 2717 } 2718 2719 void sub_361458D0(void) { 2720 int _fpu_cmp = 0; 2721 uint32_t _cf = 0; 2722 int _df = 1; 2723 uint32_t _flag_k = FK_NONE; 2724 uint32_t _flag_a = 0, _flag_b = 0; 2725 uint32_t _itail_tgt = 0; 2726 RECOMP_REGS_LOCALS 2727 RECOMP_ENTER(0x361458D0u); 2728 2729 L_361458D0: 2730 eax = MEM32(ecx); /* 0x361458D0: mov eax, dword ptr [ecx] */ 2731 edx = MEM32(eax + 0x8); /* 0x361458D2: mov edx, dword ptr [eax + 8] */ 2732 PUSH32(esp, ebx); /* 0x361458D5: push ebx */ 2733 SET_LO8(ebx, MEM8(edx + 0x21)); /* 0x361458D6: mov bl, byte ptr [edx + 0x21] */ 2734 /* test LO8(ebx), LO8(ebx) */ /* 0x361458D9: test bl, bl */ 2735 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2736 _cf = 0; 2737 _flag_k = FK_NARROW(FK_TEST, 24); 2738 if (TEST_NZ(_flag_a, _flag_b)) goto L_361458F5; /* 0x361458DB: jne 0x361458f5 */ 2739 L_361458DD: 2740 eax = MEM32(edx); /* 0x361458DD: mov eax, dword ptr [edx] */ 2741 SET_LO8(ebx, MEM8(eax + 0x21)); /* 0x361458DF: mov bl, byte ptr [eax + 0x21] */ 2742 /* test LO8(ebx), LO8(ebx) */ /* 0x361458E2: test bl, bl */ 2743 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2744 _cf = 0; 2745 _flag_k = FK_NARROW(FK_TEST, 24); 2746 if (TEST_NZ(_flag_a, _flag_b)) goto L_361458F1; /* 0x361458E4: jne 0x361458f1 */ 2747 L_361458E6: 2748 edx = eax; /* 0x361458E6: mov edx, eax */ 2749 eax = MEM32(edx); /* 0x361458E8: mov eax, dword ptr [edx] */ 2750 SET_LO8(ebx, MEM8(eax + 0x21)); /* 0x361458EA: mov bl, byte ptr [eax + 0x21] */ 2751 /* test LO8(ebx), LO8(ebx) */ /* 0x361458ED: test bl, bl */ 2752 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2753 _cf = 0; 2754 _flag_k = FK_NARROW(FK_TEST, 24); 2755 RECOMP_BACKEDGE(); 2756 if (TEST_Z(_flag_a, _flag_b)) goto L_361458E6; /* 0x361458EF: je 0x361458e6 */ 2757 L_361458F1: 2758 MEM32(ecx) = edx; /* 0x361458F1: mov dword ptr [ecx], edx */ 2759 ebx = POP32_VAL(esp); /* 0x361458F3: pop ebx */ 2760 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361458F4: ret */ 2761 L_361458F5: 2762 eax = MEM32(eax + 0x4); /* 0x361458F5: mov eax, dword ptr [eax + 4] */ 2763 edx = MEM32(ecx); /* 0x361458F8: mov edx, dword ptr [ecx] */ 2764 /* cmp edx, MEM32(eax + 0x8) */ /* 0x361458FA: cmp edx, dword ptr [eax + 8] */ 2765 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 2766 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2767 _flag_k = FK_CMP; 2768 if (CMP_NE(_flag_a, _flag_b)) goto L_3614590B; /* 0x361458FD: jne 0x3614590b */ 2769 L_361458FF: 2770 MEM32(ecx) = eax; /* 0x361458FF: mov dword ptr [ecx], eax */ 2771 eax = MEM32(eax + 0x4); /* 0x36145901: mov eax, dword ptr [eax + 4] */ 2772 edx = MEM32(ecx); /* 0x36145904: mov edx, dword ptr [ecx] */ 2773 /* cmp edx, MEM32(eax + 0x8) */ /* 0x36145906: cmp edx, dword ptr [eax + 8] */ 2774 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 2775 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2776 _flag_k = FK_CMP; 2777 RECOMP_BACKEDGE(); 2778 if (CMP_EQ(_flag_a, _flag_b)) goto L_361458FF; /* 0x36145909: je 0x361458ff */ 2779 L_3614590B: 2780 edx = MEM32(ecx); /* 0x3614590B: mov edx, dword ptr [ecx] */ 2781 /* cmp MEM32(edx + 0x8), eax */ /* 0x3614590D: cmp dword ptr [edx + 8], eax */ 2782 _flag_a = (uint32_t)(MEM32(edx + 0x8)); _flag_b = (uint32_t)(eax); 2783 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2784 _flag_k = FK_CMP; 2785 if (CMP_EQ(_flag_a, _flag_b)) goto L_36145914; /* 0x36145910: je 0x36145914 */ 2786 L_36145912: 2787 MEM32(ecx) = eax; /* 0x36145912: mov dword ptr [ecx], eax */ 2788 L_36145914: 2789 ebx = POP32_VAL(esp); /* 0x36145914: pop ebx */ 2790 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36145915: ret */ 2791 RECOMP_REGS_OUT(); 2792 } 2793 2794 void sub_36145920(void) { 2795 int _fpu_cmp = 0; 2796 uint32_t _cf = 0; 2797 int _df = 1; 2798 uint32_t _flag_k = FK_NONE; 2799 uint32_t _flag_a = 0, _flag_b = 0; 2800 uint32_t _itail_tgt = 0; 2801 RECOMP_REGS_LOCALS 2802 RECOMP_ENTER(0x36145920u); 2803 2804 L_36145920: 2805 PUSH32(esp, ebp); /* 0x36145920: push ebp */ 2806 ebp = esp; /* 0x36145921: mov ebp, esp */ 2807 PUSH32(esp, 0xFFFFFFFFu); /* 0x36145923: push -1 */ 2808 PUSH32(esp, 0x3616CFA1u); /* 0x36145925: push 0x3616cfa1 */ 2809 eax = MEM32(FS_BASE + (0)); /* 0x3614592A: mov eax, dword ptr fs:[0] */ 2810 PUSH32(esp, eax); /* 0x36145930: push eax */ 2811 MEM32(FS_BASE + (0)) = esp; /* 0x36145931: mov dword ptr fs:[0], esp */ 2812 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2813 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2814 esp = esp - 8; /* 0x36145938: sub esp, 8 */ 2815 _flag_k = FK_CMP; 2816 ecx = MEM32(ebp + 0x8); /* 0x3614593B: mov ecx, dword ptr [ebp + 8] */ 2817 PUSH32(esp, edi); /* 0x3614593E: push edi */ 2818 MEM32(ebp + (-0x14)) = ecx; /* 0x3614593F: mov dword ptr [ebp - 0x14], ecx */ 2819 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2820 edi = 0; /* 0x36145942: xor edi, edi */ 2821 _cf = 0; 2822 _flag_k = FK_TEST; 2823 /* cmp ecx, edi */ /* 0x36145944: cmp ecx, edi */ 2824 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 2825 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2826 _flag_k = FK_CMP; 2827 MEM32(ebp + (-0x4)) = edi; /* 0x36145946: mov dword ptr [ebp - 4], edi */ 2828 if (CMP_EQ(_flag_a, _flag_b)) goto L_36145A88; /* 0x36145949: je 0x36145a88 */ 2829 L_3614594F: 2830 PUSH32(esp, ebx); /* 0x3614594F: push ebx */ 2831 PUSH32(esp, esi); /* 0x36145950: push esi */ 2832 esi = MEM32(ebp + 0xC); /* 0x36145951: mov esi, dword ptr [ebp + 0xc] */ 2833 eax = MEM32(esi); /* 0x36145954: mov eax, dword ptr [esi] */ 2834 MEM32(ecx) = eax; /* 0x36145956: mov dword ptr [ecx], eax */ 2835 SET_LO8(edx, MEM8(esi + 0x4)); /* 0x36145958: mov dl, byte ptr [esi + 4] */ 2836 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 2837 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2838 esi = esi + 4; /* 0x3614595B: add esi, 4 */ 2839 _flag_k = FK_ADD; 2840 ebx = ecx + 0x4; /* 0x3614595E: lea ebx, [ecx + 4] */ 2841 MEM32(ebx + 0x4) = edi; /* 0x36145961: mov dword ptr [ebx + 4], edi */ 2842 MEM32(ebx + 0x8) = edi; /* 0x36145964: mov dword ptr [ebx + 8], edi */ 2843 MEM32(ebx + 0xC) = edi; /* 0x36145967: mov dword ptr [ebx + 0xc], edi */ 2844 MEM8(ebx) = (uint8_t)(LO8(edx)); /* 0x3614596A: mov byte ptr [ebx], dl */ 2845 eax = MEM32(0x3616F010); /* 0x3614596C: mov eax, dword ptr [0x3616f010] */ 2846 edx = MEM32(esi + 0x8); /* 0x36145971: mov edx, dword ptr [esi + 8] */ 2847 eax = MEM32(eax); /* 0x36145974: mov eax, dword ptr [eax] */ 2848 edi = edx; /* 0x36145976: mov edi, edx */ 2849 /* cmp eax, edi */ /* 0x36145978: cmp eax, edi */ 2850 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2851 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2852 _flag_k = FK_CMP; 2853 MEM32(ebp + (-0x10)) = edi; /* 0x3614597A: mov dword ptr [ebp - 0x10], edi */ 2854 if (CMP_AE(_flag_a, _flag_b)) goto L_36145984; /* 0x3614597D: jae 0x36145984 */ 2855 L_3614597F: 2856 MEM32(ebp + (-0x10)) = eax; /* 0x3614597F: mov dword ptr [ebp - 0x10], eax */ 2857 edi = eax; /* 0x36145982: mov edi, eax */ 2858 L_36145984: 2859 /* cmp ebx, esi */ /* 0x36145984: cmp ebx, esi */ 2860 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 2861 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2862 _flag_k = FK_CMP; 2863 if (CMP_NE(_flag_a, _flag_b)) goto L_361459E9; /* 0x36145986: jne 0x361459e9 */ 2864 L_36145988: 2865 /* test edi, edi */ /* 0x36145988: test edi, edi */ 2866 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2867 _cf = 0; 2868 _flag_k = FK_TEST; 2869 esi = eax; /* 0x3614598A: mov esi, eax */ 2870 if (TEST_Z(_flag_a, _flag_b)) goto L_36145997; /* 0x3614598C: jbe 0x36145997 */ 2871 L_3614598E: 2872 RECOMP_ICALL(MEM32(0x3616F04C)); /* 0x3614598E: call dword ptr [0x3616f04c] */ 2873 RECOMP_FLAGS_IN(); 2874 ecx = MEM32(ebp + 0x8); /* 0x36145994: mov ecx, dword ptr [ebp + 8] */ 2875 L_36145997: 2876 eax = MEM32(ebx + 0x8); /* 0x36145997: mov eax, dword ptr [ebx + 8] */ 2877 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2878 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2879 eax = eax - edi; /* 0x3614599A: sub eax, edi */ 2880 _flag_k = FK_CMP; 2881 /* cmp eax, esi */ /* 0x3614599C: cmp eax, esi */ 2882 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 2883 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2884 _flag_k = FK_CMP; 2885 if (CMP_AE(_flag_a, _flag_b)) goto L_361459A2; /* 0x3614599E: jae 0x361459a2 */ 2886 L_361459A0: 2887 esi = eax; /* 0x361459A0: mov esi, eax */ 2888 L_361459A2: 2889 /* test esi, esi */ /* 0x361459A2: test esi, esi */ 2890 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 2891 _cf = 0; 2892 _flag_k = FK_TEST; 2893 if (TEST_Z(_flag_a, _flag_b)) goto L_36145A6B; /* 0x361459A4: jbe 0x36145a6b */ 2894 L_361459AA: 2895 ecx = ebx; /* 0x361459AA: mov ecx, ebx */ 2896 RECOMP_ICALL(MEM32(0x3616F03C)); /* 0x361459AC: call dword ptr [0x3616f03c] */ 2897 RECOMP_FLAGS_IN(); 2898 edx = MEM32(ebx + 0x8); /* 0x361459B2: mov edx, dword ptr [ebx + 8] */ 2899 ecx = MEM32(ebx + 0x4); /* 0x361459B5: mov ecx, dword ptr [ebx + 4] */ 2900 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 2901 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2902 edx = edx - esi; /* 0x361459B8: sub edx, esi */ 2903 _flag_k = FK_CMP; 2904 eax = ecx + edi; /* 0x361459BA: lea eax, [ecx + edi] */ 2905 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 2906 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2907 edx = edx - edi; /* 0x361459BD: sub edx, edi */ 2908 _flag_k = FK_CMP; 2909 PUSH32(esp, edx); /* 0x361459BF: push edx */ 2910 ecx = eax + esi; /* 0x361459C0: lea ecx, [eax + esi] */ 2911 PUSH32(esp, ecx); /* 0x361459C3: push ecx */ 2912 PUSH32(esp, eax); /* 0x361459C4: push eax */ 2913 RECOMP_ICALL(MEM32(0x3616F268)); /* 0x361459C5: call dword ptr [0x3616f268] */ 2914 RECOMP_FLAGS_IN(); 2915 edi = MEM32(ebx + 0x8); /* 0x361459CB: mov edi, dword ptr [ebx + 8] */ 2916 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2917 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2918 esp = esp + 0xCu; /* 0x361459CE: add esp, 0xc */ 2919 _flag_k = FK_ADD; 2920 PUSH32(esp, 0); /* 0x361459D1: push 0 */ 2921 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 2922 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2923 edi = edi - esi; /* 0x361459D3: sub edi, esi */ 2924 _flag_k = FK_CMP; 2925 PUSH32(esp, edi); /* 0x361459D5: push edi */ 2926 ecx = ebx; /* 0x361459D6: mov ecx, ebx */ 2927 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x361459D8: call dword ptr [0x3616f00c] */ 2928 RECOMP_FLAGS_IN(); 2929 /* test LO8(eax), LO8(eax) */ /* 0x361459DE: test al, al */ 2930 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2931 _cf = 0; 2932 _flag_k = FK_NARROW(FK_TEST, 24); 2933 if (TEST_Z(_flag_a, _flag_b)) goto L_36145A68; /* 0x361459E0: je 0x36145a68 */ 2934 L_361459E6: 2935 PUSH32(esp, edi); /* 0x361459E6: push edi */ 2936 goto L_36145A60; /* 0x361459E7: jmp 0x36145a60 */ 2937 L_361459E9: 2938 /* test edi, edi */ /* 0x361459E9: test edi, edi */ 2939 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2940 _cf = 0; 2941 _flag_k = FK_TEST; 2942 if (TEST_Z(_flag_a, _flag_b)) goto L_36145A2D; /* 0x361459EB: jbe 0x36145a2d */ 2943 L_361459ED: 2944 /* cmp edi, edx */ /* 0x361459ED: cmp edi, edx */ 2945 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 2946 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2947 _flag_k = FK_CMP; 2948 if (CMP_NE(_flag_a, _flag_b)) goto L_36145A2D; /* 0x361459EF: jne 0x36145a2d */ 2949 L_361459F1: 2950 eax = MEM32(esi + 0x4); /* 0x361459F1: mov eax, dword ptr [esi + 4] */ 2951 /* test eax, eax */ /* 0x361459F4: test eax, eax */ 2952 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2953 _cf = 0; 2954 _flag_k = FK_TEST; 2955 if (TEST_NZ(_flag_a, _flag_b)) goto L_361459FD; /* 0x361459F6: jne 0x361459fd */ 2956 L_361459F8: 2957 eax = MEM32(0x3616F10C); /* 0x361459F8: mov eax, dword ptr [0x3616f10c] */ 2958 L_361459FD: 2959 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x361459FD: cmp byte ptr [eax - 1], 0xfe */ 2960 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 2961 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2962 _flag_k = FK_NARROW(FK_CMP, 24); 2963 if (CMP_AE(_flag_a, _flag_b)) goto L_36145A2D; /* 0x36145A01: jae 0x36145a2d */ 2964 L_36145A03: 2965 PUSH32(esp, 1); /* 0x36145A03: push 1 */ 2966 ecx = ebx; /* 0x36145A05: mov ecx, ebx */ 2967 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36145A07: call dword ptr [0x3616f100] */ 2968 RECOMP_FLAGS_IN(); 2969 eax = MEM32(esi + 0x4); /* 0x36145A0D: mov eax, dword ptr [esi + 4] */ 2970 /* test eax, eax */ /* 0x36145A10: test eax, eax */ 2971 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2972 _cf = 0; 2973 _flag_k = FK_TEST; 2974 if (TEST_NZ(_flag_a, _flag_b)) goto L_36145A19; /* 0x36145A12: jne 0x36145a19 */ 2975 L_36145A14: 2976 eax = MEM32(0x3616F10C); /* 0x36145A14: mov eax, dword ptr [0x3616f10c] */ 2977 L_36145A19: 2978 MEM32(ebx + 0x4) = eax; /* 0x36145A19: mov dword ptr [ebx + 4], eax */ 2979 edx = MEM32(esi + 0x8); /* 0x36145A1C: mov edx, dword ptr [esi + 8] */ 2980 MEM32(ebx + 0x8) = edx; /* 0x36145A1F: mov dword ptr [ebx + 8], edx */ 2981 ecx = MEM32(esi + 0xC); /* 0x36145A22: mov ecx, dword ptr [esi + 0xc] */ 2982 MEM32(ebx + 0xC) = ecx; /* 0x36145A25: mov dword ptr [ebx + 0xc], ecx */ 2983 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 2984 MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x36145A28: inc byte ptr [eax - 1] */ 2985 _flag_k = FK_NARROW(FK_INC, 24); 2986 goto L_36145A68; /* 0x36145A2B: jmp 0x36145a68 */ 2987 L_36145A2D: 2988 PUSH32(esp, 1); /* 0x36145A2D: push 1 */ 2989 PUSH32(esp, edi); /* 0x36145A2F: push edi */ 2990 ecx = ebx; /* 0x36145A30: mov ecx, ebx */ 2991 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36145A32: call dword ptr [0x3616f00c] */ 2992 RECOMP_FLAGS_IN(); 2993 /* test LO8(eax), LO8(eax) */ /* 0x36145A38: test al, al */ 2994 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2995 _cf = 0; 2996 _flag_k = FK_NARROW(FK_TEST, 24); 2997 if (TEST_Z(_flag_a, _flag_b)) goto L_36145A68; /* 0x36145A3A: je 0x36145a68 */ 2998 L_36145A3C: 2999 esi = MEM32(esi + 0x4); /* 0x36145A3C: mov esi, dword ptr [esi + 4] */ 3000 /* test esi, esi */ /* 0x36145A3F: test esi, esi */ 3001 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3002 _cf = 0; 3003 _flag_k = FK_TEST; 3004 if (TEST_NZ(_flag_a, _flag_b)) goto L_36145A49; /* 0x36145A41: jne 0x36145a49 */ 3005 L_36145A43: 3006 esi = MEM32(0x3616F10C); /* 0x36145A43: mov esi, dword ptr [0x3616f10c] */ 3007 L_36145A49: 3008 eax = MEM32(ebp + (-0x10)); /* 0x36145A49: mov eax, dword ptr [ebp - 0x10] */ 3009 ecx = edi; /* 0x36145A4C: mov ecx, edi */ 3010 edi = MEM32(ebx + 0x4); /* 0x36145A4E: mov edi, dword ptr [ebx + 4] */ 3011 edx = ecx; /* 0x36145A51: mov edx, ecx */ 3012 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36145A53: shr ecx, 2 */ 3013 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3014 ecx = ecx >> 2u; /* 0x36145A53: shr ecx, 2 */ 3015 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36145A56: 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; } 3016 ecx = edx; /* 0x36145A58: mov ecx, edx */ 3017 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 3018 ecx = ecx & 3; /* 0x36145A5A: and ecx, 3 */ 3019 _cf = 0; 3020 _flag_k = FK_TEST; 3021 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36145A5D: 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; } 3022 PUSH32(esp, eax); /* 0x36145A5F: push eax */ 3023 L_36145A60: 3024 ecx = ebx; /* 0x36145A60: mov ecx, ebx */ 3025 RECOMP_ICALL(MEM32(0x3616F044)); /* 0x36145A62: call dword ptr [0x3616f044] */ 3026 RECOMP_FLAGS_IN(); 3027 L_36145A68: 3028 ecx = MEM32(ebp + 0x8); /* 0x36145A68: mov ecx, dword ptr [ebp + 8] */ 3029 L_36145A6B: 3030 eax = MEM32(ebp + 0xC); /* 0x36145A6B: mov eax, dword ptr [ebp + 0xc] */ 3031 edx = MEM32(eax + 0x14); /* 0x36145A6E: mov edx, dword ptr [eax + 0x14] */ 3032 MEM32(ecx + 0x14) = edx; /* 0x36145A71: mov dword ptr [ecx + 0x14], edx */ 3033 edx = MEM32(eax + 0x18); /* 0x36145A74: mov edx, dword ptr [eax + 0x18] */ 3034 MEM32(ecx + 0x18) = edx; /* 0x36145A77: mov dword ptr [ecx + 0x18], edx */ 3035 edx = MEM32(eax + 0x1C); /* 0x36145A7A: mov edx, dword ptr [eax + 0x1c] */ 3036 MEM32(ecx + 0x1C) = edx; /* 0x36145A7D: mov dword ptr [ecx + 0x1c], edx */ 3037 SET_LO8(eax, MEM8(eax + 0x20)); /* 0x36145A80: mov al, byte ptr [eax + 0x20] */ 3038 esi = POP32_VAL(esp); /* 0x36145A83: pop esi */ 3039 MEM8(ecx + 0x20) = (uint8_t)(LO8(eax)); /* 0x36145A84: mov byte ptr [ecx + 0x20], al */ 3040 ebx = POP32_VAL(esp); /* 0x36145A87: pop ebx */ 3041 L_36145A88: 3042 ecx = MEM32(ebp + (-0xC)); /* 0x36145A88: mov ecx, dword ptr [ebp - 0xc] */ 3043 edi = POP32_VAL(esp); /* 0x36145A8B: pop edi */ 3044 MEM32(FS_BASE + (0)) = ecx; /* 0x36145A8C: mov dword ptr fs:[0], ecx */ 3045 esp = ebp; /* 0x36145A93: mov esp, ebp */ 3046 ebp = POP32_VAL(esp); /* 0x36145A95: pop ebp */ 3047 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36145A96: ret */ 3048 RECOMP_REGS_OUT(); 3049 } 3050 3051 void sub_36145AA0(void) { 3052 int _fpu_cmp = 0; 3053 uint32_t _cf = 0; 3054 int _df = 1; 3055 uint32_t _flag_k = FK_NONE; 3056 uint32_t _flag_a = 0, _flag_b = 0; 3057 uint32_t _itail_tgt = 0; 3058 RECOMP_REGS_LOCALS 3059 RECOMP_ENTER(0x36145AA0u); 3060 3061 L_36145AA0: 3062 PUSH32(esp, ebp); /* 0x36145AA0: push ebp */ 3063 ebp = esp; /* 0x36145AA1: mov ebp, esp */ 3064 PUSH32(esp, 0xFFFFFFFFu); /* 0x36145AA3: push -1 */ 3065 PUSH32(esp, 0x3616CFC1u); /* 0x36145AA5: push 0x3616cfc1 */ 3066 eax = MEM32(FS_BASE + (0)); /* 0x36145AAA: mov eax, dword ptr fs:[0] */ 3067 PUSH32(esp, eax); /* 0x36145AB0: push eax */ 3068 MEM32(FS_BASE + (0)) = esp; /* 0x36145AB1: mov dword ptr fs:[0], esp */ 3069 PUSH32(esp, ecx); /* 0x36145AB8: push ecx */ 3070 PUSH32(esp, edi); /* 0x36145AB9: push edi */ 3071 edi = MEM32(ebp + 0x8); /* 0x36145ABA: mov edi, dword ptr [ebp + 8] */ 3072 MEM32(ebp + (-0x10)) = edi; /* 0x36145ABD: mov dword ptr [ebp - 0x10], edi */ 3073 /* test edi, edi */ /* 0x36145AC0: test edi, edi */ 3074 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3075 _cf = 0; 3076 _flag_k = FK_TEST; 3077 MEM32(ebp + (-0x4)) = 0; /* 0x36145AC2: mov dword ptr [ebp - 4], 0 */ 3078 if (TEST_Z(_flag_a, _flag_b)) goto L_36145B2A; /* 0x36145AC9: je 0x36145b2a */ 3079 L_36145ACB: 3080 PUSH32(esp, esi); /* 0x36145ACB: push esi */ 3081 esi = MEM32(ebp + 0xC); /* 0x36145ACC: mov esi, dword ptr [ebp + 0xc] */ 3082 eax = MEM32(esi); /* 0x36145ACF: mov eax, dword ptr [esi] */ 3083 MEM32(edi) = eax; /* 0x36145AD1: mov dword ptr [edi], eax */ 3084 SET_LO8(ecx, MEM8(esi + 0x4)); /* 0x36145AD3: mov cl, byte ptr [esi + 4] */ 3085 MEM8(edi + 0x4) = (uint8_t)(LO8(ecx)); /* 0x36145AD6: mov byte ptr [edi + 4], cl */ 3086 ecx = MEM32(esi + 0x8); /* 0x36145AD9: mov ecx, dword ptr [esi + 8] */ 3087 /* test ecx, ecx */ /* 0x36145ADC: test ecx, ecx */ 3088 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3089 _cf = 0; 3090 _flag_k = FK_TEST; 3091 if (TEST_NZ(_flag_a, _flag_b)) goto L_36145AE4; /* 0x36145ADE: jne 0x36145ae4 */ 3092 L_36145AE0: 3093 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3094 eax = 0; /* 0x36145AE0: xor eax, eax */ 3095 _cf = 0; 3096 _flag_k = FK_TEST; 3097 goto L_36145AEC; /* 0x36145AE2: jmp 0x36145aec */ 3098 L_36145AE4: 3099 eax = MEM32(esi + 0xC); /* 0x36145AE4: mov eax, dword ptr [esi + 0xc] */ 3100 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3101 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3102 eax = eax - ecx; /* 0x36145AE7: sub eax, ecx */ 3103 _flag_k = FK_CMP; 3104 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x36145AE9: sar eax, 2 */ 3105 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3106 eax = (uint32_t)((int32_t)eax >> 2u); 3107 L_36145AEC: 3108 /* test eax, eax */ /* 0x36145AEC: test eax, eax */ 3109 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3110 _cf = 0; 3111 _flag_k = FK_TEST; 3112 if (TEST_NS(_flag_a, _flag_b)) goto L_36145AF2; /* 0x36145AEE: jge 0x36145af2 */ 3113 L_36145AF0: 3114 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3115 eax = 0; /* 0x36145AF0: xor eax, eax */ 3116 _cf = 0; 3117 _flag_k = FK_TEST; 3118 L_36145AF2: 3119 edx = eax * 4; /* 0x36145AF2: lea edx, [eax*4] */ 3120 PUSH32(esp, edx); /* 0x36145AF9: push edx */ 3121 RECOMP_ICALL(0x3615FD6Au); /* 0x36145AFA: call 0x3615fd6a */ /* not lifted */ 3122 RECOMP_FLAGS_IN(); 3123 MEM32(edi + 0x8) = eax; /* 0x36145AFF: mov dword ptr [edi + 8], eax */ 3124 edx = MEM32(esi + 0xC); /* 0x36145B02: mov edx, dword ptr [esi + 0xc] */ 3125 ecx = eax; /* 0x36145B05: mov ecx, eax */ 3126 eax = MEM32(esi + 0x8); /* 0x36145B07: mov eax, dword ptr [esi + 8] */ 3127 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3128 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3129 esp = esp + 4; /* 0x36145B0A: add esp, 4 */ 3130 _flag_k = FK_ADD; 3131 /* cmp eax, edx */ /* 0x36145B0D: cmp eax, edx */ 3132 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3133 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3134 _flag_k = FK_CMP; 3135 if (CMP_EQ(_flag_a, _flag_b)) goto L_36145B23; /* 0x36145B0F: je 0x36145b23 */ 3136 L_36145B11: 3137 /* test ecx, ecx */ /* 0x36145B11: test ecx, ecx */ 3138 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3139 _cf = 0; 3140 _flag_k = FK_TEST; 3141 if (TEST_Z(_flag_a, _flag_b)) goto L_36145B19; /* 0x36145B13: je 0x36145b19 */ 3142 L_36145B15: 3143 esi = MEM32(eax); /* 0x36145B15: mov esi, dword ptr [eax] */ 3144 MEM32(ecx) = esi; /* 0x36145B17: mov dword ptr [ecx], esi */ 3145 L_36145B19: 3146 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 3147 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3148 eax = eax + 4; /* 0x36145B19: add eax, 4 */ 3149 _flag_k = FK_ADD; 3150 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 3151 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3152 ecx = ecx + 4; /* 0x36145B1C: add ecx, 4 */ 3153 _flag_k = FK_ADD; 3154 /* cmp eax, edx */ /* 0x36145B1F: cmp eax, edx */ 3155 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3156 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3157 _flag_k = FK_CMP; 3158 RECOMP_BACKEDGE(); 3159 if (CMP_NE(_flag_a, _flag_b)) goto L_36145B11; /* 0x36145B21: jne 0x36145b11 */ 3160 L_36145B23: 3161 MEM32(edi + 0xC) = ecx; /* 0x36145B23: mov dword ptr [edi + 0xc], ecx */ 3162 MEM32(edi + 0x10) = ecx; /* 0x36145B26: mov dword ptr [edi + 0x10], ecx */ 3163 esi = POP32_VAL(esp); /* 0x36145B29: pop esi */ 3164 L_36145B2A: 3165 ecx = MEM32(ebp + (-0xC)); /* 0x36145B2A: mov ecx, dword ptr [ebp - 0xc] */ 3166 edi = POP32_VAL(esp); /* 0x36145B2D: pop edi */ 3167 MEM32(FS_BASE + (0)) = ecx; /* 0x36145B2E: mov dword ptr fs:[0], ecx */ 3168 esp = ebp; /* 0x36145B35: mov esp, ebp */ 3169 ebp = POP32_VAL(esp); /* 0x36145B37: pop ebp */ 3170 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36145B38: ret */ 3171 RECOMP_REGS_OUT(); 3172 } 3173 3174 void sub_36145B40(void) { 3175 int _fpu_cmp = 0; 3176 uint32_t _cf = 0; 3177 int _df = 1; 3178 uint32_t _flag_k = FK_NONE; 3179 uint32_t _flag_a = 0, _flag_b = 0; 3180 uint32_t _itail_tgt = 0; 3181 RECOMP_REGS_LOCALS 3182 RECOMP_ENTER(0x36145B40u); 3183 3184 L_36145B40: 3185 PUSH32(esp, esi); /* 0x36145B40: push esi */ 3186 esi = ecx; /* 0x36145B41: mov esi, ecx */ 3187 eax = MEM32(esi + 0x8); /* 0x36145B43: mov eax, dword ptr [esi + 8] */ 3188 /* test eax, eax */ /* 0x36145B46: test eax, eax */ 3189 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3190 _cf = 0; 3191 _flag_k = FK_TEST; 3192 if (TEST_Z(_flag_a, _flag_b)) goto L_36145B66; /* 0x36145B48: je 0x36145b66 */ 3193 L_36145B4A: 3194 ecx = eax + (-0x1); /* 0x36145B4A: lea ecx, [eax - 1] */ 3195 SET_LO8(eax, MEM8(ecx)); /* 0x36145B4D: mov al, byte ptr [ecx] */ 3196 /* test LO8(eax), LO8(eax) */ /* 0x36145B4F: test al, al */ 3197 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3198 _cf = 0; 3199 _flag_k = FK_NARROW(FK_TEST, 24); 3200 if (TEST_Z(_flag_a, _flag_b)) goto L_36145B5D; /* 0x36145B51: je 0x36145b5d */ 3201 L_36145B53: 3202 /* cmp LO8(eax), 0xFFu */ /* 0x36145B53: cmp al, 0xff */ 3203 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 3204 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3205 _flag_k = FK_NARROW(FK_CMP, 24); 3206 if (CMP_EQ(_flag_a, _flag_b)) goto L_36145B5D; /* 0x36145B55: je 0x36145b5d */ 3207 L_36145B57: 3208 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3209 SET_LO8(eax, LO8(eax) - 1); /* 0x36145B57: dec al */ 3210 _flag_k = FK_NARROW(FK_DEC, 24); 3211 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36145B59: mov byte ptr [ecx], al */ 3212 goto L_36145B66; /* 0x36145B5B: jmp 0x36145b66 */ 3213 L_36145B5D: 3214 PUSH32(esp, ecx); /* 0x36145B5D: push ecx */ 3215 RECOMP_ICALL(0x3615FCC4u); /* 0x36145B5E: call 0x3615fcc4 */ /* not lifted */ 3216 RECOMP_FLAGS_IN(); 3217 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3218 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3219 esp = esp + 4; /* 0x36145B63: add esp, 4 */ 3220 _flag_k = FK_ADD; 3221 L_36145B66: 3222 MEM32(esi + 0x8) = 0; /* 0x36145B66: mov dword ptr [esi + 8], 0 */ 3223 MEM32(esi + 0xC) = 0; /* 0x36145B6D: mov dword ptr [esi + 0xc], 0 */ 3224 MEM32(esi + 0x10) = 0; /* 0x36145B74: mov dword ptr [esi + 0x10], 0 */ 3225 esi = POP32_VAL(esp); /* 0x36145B7B: pop esi */ 3226 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36145B7C: ret */ 3227 RECOMP_REGS_OUT(); 3228 } 3229 3230 void sub_36145B66(void) { 3231 int _fpu_cmp = 0; 3232 uint32_t _cf = 0; 3233 int _df = 1; 3234 uint32_t _flag_k = FK_NONE; 3235 uint32_t _flag_a = 0, _flag_b = 0; 3236 uint32_t _itail_tgt = 0; 3237 RECOMP_REGS_LOCALS 3238 RECOMP_ENTER(0x36145B66u); 3239 3240 L_36145B66: 3241 MEM32(esi + 0x8) = 0; /* 0x36145B66: mov dword ptr [esi + 8], 0 */ 3242 MEM32(esi + 0xC) = 0; /* 0x36145B6D: mov dword ptr [esi + 0xc], 0 */ 3243 MEM32(esi + 0x10) = 0; /* 0x36145B74: mov dword ptr [esi + 0x10], 0 */ 3244 esi = POP32_VAL(esp); /* 0x36145B7B: pop esi */ 3245 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36145B7C: ret */ 3246 RECOMP_REGS_OUT(); 3247 } 3248 3249 void sub_36145B80(void) { 3250 int _fpu_cmp = 0; 3251 uint32_t _cf = 0; 3252 int _df = 1; 3253 uint32_t _flag_k = FK_NONE; 3254 uint32_t _flag_a = 0, _flag_b = 0; 3255 uint32_t _itail_tgt = 0; 3256 RECOMP_REGS_LOCALS 3257 RECOMP_ENTER(0x36145B80u); 3258 3259 L_36145B80: 3260 PUSH32(esp, ebp); /* 0x36145B80: push ebp */ 3261 ebp = esp; /* 0x36145B81: mov ebp, esp */ 3262 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3263 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3264 esp = esp - 8; /* 0x36145B83: sub esp, 8 */ 3265 _flag_k = FK_CMP; 3266 PUSH32(esp, ebx); /* 0x36145B86: push ebx */ 3267 PUSH32(esp, esi); /* 0x36145B87: push esi */ 3268 esi = MEM32(ebp + 0x8); /* 0x36145B88: mov esi, dword ptr [ebp + 8] */ 3269 eax = MEM32(esi); /* 0x36145B8B: mov eax, dword ptr [esi] */ 3270 MEM32(ecx) = eax; /* 0x36145B8D: mov dword ptr [ecx], eax */ 3271 edx = MEM32(0x3616F010); /* 0x36145B8F: mov edx, dword ptr [0x3616f010] */ 3272 eax = MEM32(esi + 0xC); /* 0x36145B95: mov eax, dword ptr [esi + 0xc] */ 3273 edx = MEM32(edx); /* 0x36145B98: mov edx, dword ptr [edx] */ 3274 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 3275 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3276 esi = esi + 4; /* 0x36145B9A: add esi, 4 */ 3277 _flag_k = FK_ADD; 3278 PUSH32(esp, edi); /* 0x36145B9D: push edi */ 3279 edi = eax; /* 0x36145B9E: mov edi, eax */ 3280 /* cmp edx, edi */ /* 0x36145BA0: cmp edx, edi */ 3281 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 3282 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3283 _flag_k = FK_CMP; 3284 MEM32(ebp + (-0x4)) = ecx; /* 0x36145BA2: mov dword ptr [ebp - 4], ecx */ 3285 ebx = ecx + 0x4; /* 0x36145BA5: lea ebx, [ecx + 4] */ 3286 MEM32(ebp + (-0x8)) = edi; /* 0x36145BA8: mov dword ptr [ebp - 8], edi */ 3287 if (CMP_AE(_flag_a, _flag_b)) goto L_36145BB2; /* 0x36145BAB: jae 0x36145bb2 */ 3288 L_36145BAD: 3289 MEM32(ebp + (-0x8)) = edx; /* 0x36145BAD: mov dword ptr [ebp - 8], edx */ 3290 edi = edx; /* 0x36145BB0: mov edi, edx */ 3291 L_36145BB2: 3292 /* cmp ebx, esi */ /* 0x36145BB2: cmp ebx, esi */ 3293 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 3294 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3295 _flag_k = FK_CMP; 3296 if (CMP_NE(_flag_a, _flag_b)) goto L_36145C22; /* 0x36145BB4: jne 0x36145c22 */ 3297 L_36145BB6: 3298 /* cmp MEM32(ebx + 0x8), edi */ /* 0x36145BB6: cmp dword ptr [ebx + 8], edi */ 3299 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(edi); 3300 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3301 _flag_k = FK_CMP; 3302 esi = edx; /* 0x36145BB9: mov esi, edx */ 3303 if (CMP_AE(_flag_a, _flag_b)) goto L_36145BC6; /* 0x36145BBB: jae 0x36145bc6 */ 3304 L_36145BBD: 3305 RECOMP_ICALL(MEM32(0x3616F04C)); /* 0x36145BBD: call dword ptr [0x3616f04c] */ 3306 RECOMP_FLAGS_IN(); 3307 ecx = MEM32(ebp + (-0x4)); /* 0x36145BC3: mov ecx, dword ptr [ebp - 4] */ 3308 L_36145BC6: 3309 edx = MEM32(ebx + 0x8); /* 0x36145BC6: mov edx, dword ptr [ebx + 8] */ 3310 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 3311 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3312 edx = edx - edi; /* 0x36145BC9: sub edx, edi */ 3313 _flag_k = FK_CMP; 3314 /* cmp edx, esi */ /* 0x36145BCB: cmp edx, esi */ 3315 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 3316 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3317 _flag_k = FK_CMP; 3318 if (CMP_AE(_flag_a, _flag_b)) goto L_36145BD1; /* 0x36145BCD: jae 0x36145bd1 */ 3319 L_36145BCF: 3320 esi = edx; /* 0x36145BCF: mov esi, edx */ 3321 L_36145BD1: 3322 /* test esi, esi */ /* 0x36145BD1: test esi, esi */ 3323 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3324 _cf = 0; 3325 _flag_k = FK_TEST; 3326 if (TEST_Z(_flag_a, _flag_b)) goto L_36145CCC; /* 0x36145BD3: jbe 0x36145ccc */ 3327 L_36145BD9: 3328 ecx = ebx; /* 0x36145BD9: mov ecx, ebx */ 3329 RECOMP_ICALL(MEM32(0x3616F03C)); /* 0x36145BDB: call dword ptr [0x3616f03c] */ 3330 RECOMP_FLAGS_IN(); 3331 ecx = MEM32(ebx + 0x8); /* 0x36145BE1: mov ecx, dword ptr [ebx + 8] */ 3332 eax = MEM32(ebx + 0x4); /* 0x36145BE4: mov eax, dword ptr [ebx + 4] */ 3333 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 3334 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3335 ecx = ecx - esi; /* 0x36145BE7: sub ecx, esi */ 3336 _flag_k = FK_CMP; 3337 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3338 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3339 eax = eax + edi; /* 0x36145BE9: add eax, edi */ 3340 _flag_k = FK_ADD; 3341 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 3342 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3343 ecx = ecx - edi; /* 0x36145BEB: sub ecx, edi */ 3344 _flag_k = FK_CMP; 3345 PUSH32(esp, ecx); /* 0x36145BED: push ecx */ 3346 edx = eax + esi; /* 0x36145BEE: lea edx, [eax + esi] */ 3347 PUSH32(esp, edx); /* 0x36145BF1: push edx */ 3348 PUSH32(esp, eax); /* 0x36145BF2: push eax */ 3349 RECOMP_ICALL(MEM32(0x3616F268)); /* 0x36145BF3: call dword ptr [0x3616f268] */ 3350 RECOMP_FLAGS_IN(); 3351 edi = MEM32(ebx + 0x8); /* 0x36145BF9: mov edi, dword ptr [ebx + 8] */ 3352 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3353 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3354 esp = esp + 0xCu; /* 0x36145BFC: add esp, 0xc */ 3355 _flag_k = FK_ADD; 3356 PUSH32(esp, 0); /* 0x36145BFF: push 0 */ 3357 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 3358 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3359 edi = edi - esi; /* 0x36145C01: sub edi, esi */ 3360 _flag_k = FK_CMP; 3361 PUSH32(esp, edi); /* 0x36145C03: push edi */ 3362 ecx = ebx; /* 0x36145C04: mov ecx, ebx */ 3363 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36145C06: call dword ptr [0x3616f00c] */ 3364 RECOMP_FLAGS_IN(); 3365 /* test LO8(eax), LO8(eax) */ /* 0x36145C0C: test al, al */ 3366 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3367 _cf = 0; 3368 _flag_k = FK_NARROW(FK_TEST, 24); 3369 if (TEST_Z(_flag_a, _flag_b)) goto L_36145CC9; /* 0x36145C0E: je 0x36145cc9 */ 3370 L_36145C14: 3371 PUSH32(esp, edi); /* 0x36145C14: push edi */ 3372 ecx = ebx; /* 0x36145C15: mov ecx, ebx */ 3373 RECOMP_ICALL(MEM32(0x3616F044)); /* 0x36145C17: call dword ptr [0x3616f044] */ 3374 RECOMP_FLAGS_IN(); 3375 goto L_36145CC9; /* 0x36145C1D: jmp 0x36145cc9 */ 3376 L_36145C22: 3377 /* test edi, edi */ /* 0x36145C22: test edi, edi */ 3378 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3379 _cf = 0; 3380 _flag_k = FK_TEST; 3381 if (TEST_Z(_flag_a, _flag_b)) goto L_36145C8D; /* 0x36145C24: jbe 0x36145c8d */ 3382 L_36145C26: 3383 /* cmp edi, eax */ /* 0x36145C26: cmp edi, eax */ 3384 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3385 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3386 _flag_k = FK_CMP; 3387 if (CMP_NE(_flag_a, _flag_b)) goto L_36145C8D; /* 0x36145C28: jne 0x36145c8d */ 3388 L_36145C2A: 3389 eax = MEM32(esi + 0x4); /* 0x36145C2A: mov eax, dword ptr [esi + 4] */ 3390 /* test eax, eax */ /* 0x36145C2D: test eax, eax */ 3391 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3392 _cf = 0; 3393 _flag_k = FK_TEST; 3394 if (TEST_NZ(_flag_a, _flag_b)) goto L_36145C36; /* 0x36145C2F: jne 0x36145c36 */ 3395 L_36145C31: 3396 eax = MEM32(0x3616F10C); /* 0x36145C31: mov eax, dword ptr [0x3616f10c] */ 3397 L_36145C36: 3398 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x36145C36: cmp byte ptr [eax - 1], 0xfe */ 3399 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 3400 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3401 _flag_k = FK_NARROW(FK_CMP, 24); 3402 if (CMP_AE(_flag_a, _flag_b)) goto L_36145C8D; /* 0x36145C3A: jae 0x36145c8d */ 3403 L_36145C3C: 3404 eax = MEM32(ebx + 0x4); /* 0x36145C3C: mov eax, dword ptr [ebx + 4] */ 3405 /* test eax, eax */ /* 0x36145C3F: test eax, eax */ 3406 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3407 _cf = 0; 3408 _flag_k = FK_TEST; 3409 if (TEST_Z(_flag_a, _flag_b)) goto L_36145C62; /* 0x36145C41: je 0x36145c62 */ 3410 L_36145C43: 3411 SET_LO8(edx, MEM8(eax + (-0x1))); /* 0x36145C43: mov dl, byte ptr [eax - 1] */ 3412 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3413 eax = eax - 1; /* 0x36145C46: dec eax */ 3414 _flag_k = FK_DEC; 3415 /* test LO8(edx), LO8(edx) */ /* 0x36145C47: test dl, dl */ 3416 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 3417 _cf = 0; 3418 _flag_k = FK_NARROW(FK_TEST, 24); 3419 if (TEST_Z(_flag_a, _flag_b)) goto L_36145C56; /* 0x36145C49: je 0x36145c56 */ 3420 L_36145C4B: 3421 /* cmp LO8(edx), 0xFFu */ /* 0x36145C4B: cmp dl, 0xff */ 3422 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 3423 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3424 _flag_k = FK_NARROW(FK_CMP, 24); 3425 if (CMP_EQ(_flag_a, _flag_b)) goto L_36145C56; /* 0x36145C4E: je 0x36145c56 */ 3426 L_36145C50: 3427 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(1) << 24; 3428 SET_LO8(edx, LO8(edx) - 1); /* 0x36145C50: dec dl */ 3429 _flag_k = FK_NARROW(FK_DEC, 24); 3430 MEM8(eax) = (uint8_t)(LO8(edx)); /* 0x36145C52: mov byte ptr [eax], dl */ 3431 goto L_36145C62; /* 0x36145C54: jmp 0x36145c62 */ 3432 L_36145C56: 3433 PUSH32(esp, eax); /* 0x36145C56: push eax */ 3434 RECOMP_ICALL(0x3615FCC4u); /* 0x36145C57: call 0x3615fcc4 */ /* not lifted */ 3435 RECOMP_FLAGS_IN(); 3436 ecx = MEM32(ebp + (-0x4)); /* 0x36145C5C: mov ecx, dword ptr [ebp - 4] */ 3437 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3438 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3439 esp = esp + 4; /* 0x36145C5F: add esp, 4 */ 3440 _flag_k = FK_ADD; 3441 L_36145C62: 3442 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3443 edx = 0; /* 0x36145C62: xor edx, edx */ 3444 _cf = 0; 3445 _flag_k = FK_TEST; 3446 MEM32(ebx + 0x4) = edx; /* 0x36145C64: mov dword ptr [ebx + 4], edx */ 3447 MEM32(ebx + 0x8) = edx; /* 0x36145C67: mov dword ptr [ebx + 8], edx */ 3448 MEM32(ebx + 0xC) = edx; /* 0x36145C6A: mov dword ptr [ebx + 0xc], edx */ 3449 eax = MEM32(esi + 0x4); /* 0x36145C6D: mov eax, dword ptr [esi + 4] */ 3450 /* cmp eax, edx */ /* 0x36145C70: cmp eax, edx */ 3451 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3452 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3453 _flag_k = FK_CMP; 3454 if (CMP_NE(_flag_a, _flag_b)) goto L_36145C79; /* 0x36145C72: jne 0x36145c79 */ 3455 L_36145C74: 3456 eax = MEM32(0x3616F10C); /* 0x36145C74: mov eax, dword ptr [0x3616f10c] */ 3457 L_36145C79: 3458 MEM32(ebx + 0x4) = eax; /* 0x36145C79: mov dword ptr [ebx + 4], eax */ 3459 edx = MEM32(esi + 0x8); /* 0x36145C7C: mov edx, dword ptr [esi + 8] */ 3460 MEM32(ebx + 0x8) = edx; /* 0x36145C7F: mov dword ptr [ebx + 8], edx */ 3461 edx = MEM32(esi + 0xC); /* 0x36145C82: mov edx, dword ptr [esi + 0xc] */ 3462 MEM32(ebx + 0xC) = edx; /* 0x36145C85: mov dword ptr [ebx + 0xc], edx */ 3463 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 3464 MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x36145C88: inc byte ptr [eax - 1] */ 3465 _flag_k = FK_NARROW(FK_INC, 24); 3466 goto L_36145CCC; /* 0x36145C8B: jmp 0x36145ccc */ 3467 L_36145C8D: 3468 PUSH32(esp, 1); /* 0x36145C8D: push 1 */ 3469 PUSH32(esp, edi); /* 0x36145C8F: push edi */ 3470 ecx = ebx; /* 0x36145C90: mov ecx, ebx */ 3471 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36145C92: call dword ptr [0x3616f00c] */ 3472 RECOMP_FLAGS_IN(); 3473 /* test LO8(eax), LO8(eax) */ /* 0x36145C98: test al, al */ 3474 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3475 _cf = 0; 3476 _flag_k = FK_NARROW(FK_TEST, 24); 3477 if (TEST_Z(_flag_a, _flag_b)) goto L_36145CC9; /* 0x36145C9A: je 0x36145cc9 */ 3478 L_36145C9C: 3479 esi = MEM32(esi + 0x4); /* 0x36145C9C: mov esi, dword ptr [esi + 4] */ 3480 /* test esi, esi */ /* 0x36145C9F: test esi, esi */ 3481 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3482 _cf = 0; 3483 _flag_k = FK_TEST; 3484 if (TEST_NZ(_flag_a, _flag_b)) goto L_36145CA9; /* 0x36145CA1: jne 0x36145ca9 */ 3485 L_36145CA3: 3486 esi = MEM32(0x3616F10C); /* 0x36145CA3: mov esi, dword ptr [0x3616f10c] */ 3487 L_36145CA9: 3488 ecx = edi; /* 0x36145CA9: mov ecx, edi */ 3489 edi = MEM32(ebx + 0x4); /* 0x36145CAB: mov edi, dword ptr [ebx + 4] */ 3490 eax = ecx; /* 0x36145CAE: mov eax, ecx */ 3491 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36145CB0: shr ecx, 2 */ 3492 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3493 ecx = ecx >> 2u; /* 0x36145CB0: shr ecx, 2 */ 3494 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36145CB3: 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; } 3495 ecx = eax; /* 0x36145CB5: mov ecx, eax */ 3496 eax = MEM32(ebp + (-0x8)); /* 0x36145CB7: mov eax, dword ptr [ebp - 8] */ 3497 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 3498 ecx = ecx & 3; /* 0x36145CBA: and ecx, 3 */ 3499 _cf = 0; 3500 _flag_k = FK_TEST; 3501 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36145CBD: 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; } 3502 ecx = MEM32(ebx + 0x4); /* 0x36145CBF: mov ecx, dword ptr [ebx + 4] */ 3503 MEM32(ebx + 0x8) = eax; /* 0x36145CC2: mov dword ptr [ebx + 8], eax */ 3504 MEM8(ecx + eax) = (uint8_t)(0); /* 0x36145CC5: mov byte ptr [ecx + eax], 0 */ 3505 L_36145CC9: 3506 ecx = MEM32(ebp + (-0x4)); /* 0x36145CC9: mov ecx, dword ptr [ebp - 4] */ 3507 L_36145CCC: 3508 eax = MEM32(ebp + 0x8); /* 0x36145CCC: mov eax, dword ptr [ebp + 8] */ 3509 edx = MEM32(eax + 0x14); /* 0x36145CCF: mov edx, dword ptr [eax + 0x14] */ 3510 MEM32(ecx + 0x14) = edx; /* 0x36145CD2: mov dword ptr [ecx + 0x14], edx */ 3511 edx = MEM32(eax + 0x18); /* 0x36145CD5: mov edx, dword ptr [eax + 0x18] */ 3512 MEM32(ecx + 0x18) = edx; /* 0x36145CD8: mov dword ptr [ecx + 0x18], edx */ 3513 edx = MEM32(eax + 0x1C); /* 0x36145CDB: mov edx, dword ptr [eax + 0x1c] */ 3514 edi = POP32_VAL(esp); /* 0x36145CDE: pop edi */ 3515 MEM32(ecx + 0x1C) = edx; /* 0x36145CDF: mov dword ptr [ecx + 0x1c], edx */ 3516 SET_LO8(eax, MEM8(eax + 0x20)); /* 0x36145CE2: mov al, byte ptr [eax + 0x20] */ 3517 esi = POP32_VAL(esp); /* 0x36145CE5: pop esi */ 3518 MEM8(ecx + 0x20) = (uint8_t)(LO8(eax)); /* 0x36145CE6: mov byte ptr [ecx + 0x20], al */ 3519 eax = ecx; /* 0x36145CE9: mov eax, ecx */ 3520 ebx = POP32_VAL(esp); /* 0x36145CEB: pop ebx */ 3521 esp = ebp; /* 0x36145CEC: mov esp, ebp */ 3522 ebp = POP32_VAL(esp); /* 0x36145CEE: pop ebp */ 3523 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36145CEF: ret 4 */ 3524 RECOMP_REGS_OUT(); 3525 } 3526 3527 void sub_36145CC9(void) { 3528 int _fpu_cmp = 0; 3529 uint32_t _cf = 0; 3530 int _df = 1; 3531 uint32_t _flag_k = FK_NONE; 3532 uint32_t _flag_a = 0, _flag_b = 0; 3533 uint32_t _itail_tgt = 0; 3534 RECOMP_REGS_LOCALS 3535 RECOMP_ENTER(0x36145CC9u); 3536 3537 L_36145CC9: 3538 ecx = MEM32(ebp + (-0x4)); /* 0x36145CC9: mov ecx, dword ptr [ebp - 4] */ 3539 eax = MEM32(ebp + 0x8); /* 0x36145CCC: mov eax, dword ptr [ebp + 8] */ 3540 edx = MEM32(eax + 0x14); /* 0x36145CCF: mov edx, dword ptr [eax + 0x14] */ 3541 MEM32(ecx + 0x14) = edx; /* 0x36145CD2: mov dword ptr [ecx + 0x14], edx */ 3542 edx = MEM32(eax + 0x18); /* 0x36145CD5: mov edx, dword ptr [eax + 0x18] */ 3543 MEM32(ecx + 0x18) = edx; /* 0x36145CD8: mov dword ptr [ecx + 0x18], edx */ 3544 edx = MEM32(eax + 0x1C); /* 0x36145CDB: mov edx, dword ptr [eax + 0x1c] */ 3545 edi = POP32_VAL(esp); /* 0x36145CDE: pop edi */ 3546 MEM32(ecx + 0x1C) = edx; /* 0x36145CDF: mov dword ptr [ecx + 0x1c], edx */ 3547 SET_LO8(eax, MEM8(eax + 0x20)); /* 0x36145CE2: mov al, byte ptr [eax + 0x20] */ 3548 esi = POP32_VAL(esp); /* 0x36145CE5: pop esi */ 3549 MEM8(ecx + 0x20) = (uint8_t)(LO8(eax)); /* 0x36145CE6: mov byte ptr [ecx + 0x20], al */ 3550 eax = ecx; /* 0x36145CE9: mov eax, ecx */ 3551 ebx = POP32_VAL(esp); /* 0x36145CEB: pop ebx */ 3552 esp = ebp; /* 0x36145CEC: mov esp, ebp */ 3553 ebp = POP32_VAL(esp); /* 0x36145CEE: pop ebp */ 3554 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36145CEF: ret 4 */ 3555 RECOMP_REGS_OUT(); 3556 } 3557 3558 void sub_36145D00(void) { 3559 int _fpu_cmp = 0; 3560 uint32_t _cf = 0; 3561 int _df = 1; 3562 uint32_t _flag_k = FK_NONE; 3563 uint32_t _flag_a = 0, _flag_b = 0; 3564 uint32_t _itail_tgt = 0; 3565 RECOMP_REGS_LOCALS 3566 RECOMP_ENTER(0x36145D00u); 3567 3568 L_36145D00: 3569 RECOMP_ICALL(0x36145D10u); /* 0x36145D00: call 0x36145d10 */ /* not lifted */ 3570 RECOMP_FLAGS_IN(); 3571 goto L_36145D20; /* 0x36145D05: jmp 0x36145d20 */ 3572 L_36145D20: 3573 PUSH32(esp, 0x36145D30u); /* 0x36145D20: push 0x36145d30 */ 3574 RECOMP_ICALL(0x3615FEB2u); /* 0x36145D25: call 0x3615feb2 */ /* not lifted */ 3575 RECOMP_FLAGS_IN(); 3576 ecx = POP32_VAL(esp); /* 0x36145D2A: pop ecx */ 3577 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36145D2B: ret */ 3578 RECOMP_REGS_OUT(); 3579 } 3580 3581 void sub_36145D10(void) { 3582 int _fpu_cmp = 0; 3583 uint32_t _cf = 0; 3584 int _df = 1; 3585 uint32_t _flag_k = FK_NONE; 3586 uint32_t _flag_a = 0, _flag_b = 0; 3587 uint32_t _itail_tgt = 0; 3588 RECOMP_REGS_LOCALS 3589 RECOMP_ENTER(0x36145D10u); 3590 3591 L_36145D10: 3592 ecx = 0x3630D98Du; /* 0x36145D10: mov ecx, 0x3630d98d */ 3593 L_36145D15: 3594 { _itail_tgt = (uint32_t)(MEM32(0x3616F140)); goto _ljump; } 3595 { RECOMP_REGS_OUT(); return; } /* end of function */ 3596 _ljump: 3597 switch (_itail_tgt) { 3598 case 0x36145D10u: goto L_36145D10; 3599 case 0x36145D15u: goto L_36145D15; 3600 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3601 } 3602 RECOMP_REGS_OUT(); 3603 } 3604 3605 void sub_36145D20(void) { 3606 int _fpu_cmp = 0; 3607 uint32_t _cf = 0; 3608 int _df = 1; 3609 uint32_t _flag_k = FK_NONE; 3610 uint32_t _flag_a = 0, _flag_b = 0; 3611 uint32_t _itail_tgt = 0; 3612 RECOMP_REGS_LOCALS 3613 RECOMP_ENTER(0x36145D20u); 3614 3615 L_36145D20: 3616 PUSH32(esp, 0x36145D30u); /* 0x36145D20: push 0x36145d30 */ 3617 RECOMP_ICALL(0x3615FEB2u); /* 0x36145D25: call 0x3615feb2 */ /* not lifted */ 3618 RECOMP_FLAGS_IN(); 3619 ecx = POP32_VAL(esp); /* 0x36145D2A: pop ecx */ 3620 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36145D2B: ret */ 3621 RECOMP_REGS_OUT(); 3622 } 3623 3624 void sub_36145D30(void) { 3625 int _fpu_cmp = 0; 3626 uint32_t _cf = 0; 3627 int _df = 1; 3628 uint32_t _flag_k = FK_NONE; 3629 uint32_t _flag_a = 0, _flag_b = 0; 3630 uint32_t _itail_tgt = 0; 3631 RECOMP_REGS_LOCALS 3632 RECOMP_ENTER(0x36145D30u); 3633 3634 L_36145D30: 3635 ecx = 0x3630D98Du; /* 0x36145D30: mov ecx, 0x3630d98d */ 3636 L_36145D35: 3637 { _itail_tgt = (uint32_t)(MEM32(0x3616F144)); goto _ljump; } 3638 { RECOMP_REGS_OUT(); return; } /* end of function */ 3639 _ljump: 3640 switch (_itail_tgt) { 3641 case 0x36145D30u: goto L_36145D30; 3642 case 0x36145D35u: goto L_36145D35; 3643 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3644 } 3645 RECOMP_REGS_OUT(); 3646 } 3647 3648 void sub_36145D40(void) { 3649 int _fpu_cmp = 0; 3650 uint32_t _cf = 0; 3651 int _df = 1; 3652 uint32_t _flag_k = FK_NONE; 3653 uint32_t _flag_a = 0, _flag_b = 0; 3654 uint32_t _itail_tgt = 0; 3655 RECOMP_REGS_LOCALS 3656 RECOMP_ENTER(0x36145D40u); 3657 3658 L_36145D40: 3659 RECOMP_ICALL(0x36145D50u); /* 0x36145D40: call 0x36145d50 */ /* not lifted */ 3660 RECOMP_FLAGS_IN(); 3661 goto L_36145D60; /* 0x36145D45: jmp 0x36145d60 */ 3662 L_36145D60: 3663 PUSH32(esp, 0x36145D70u); /* 0x36145D60: push 0x36145d70 */ 3664 RECOMP_ICALL(0x3615FEB2u); /* 0x36145D65: call 0x3615feb2 */ /* not lifted */ 3665 RECOMP_FLAGS_IN(); 3666 ecx = POP32_VAL(esp); /* 0x36145D6A: pop ecx */ 3667 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36145D6B: ret */ 3668 RECOMP_REGS_OUT(); 3669 } 3670 3671 void sub_36145D50(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(0x36145D50u); 3680 3681 L_36145D50: 3682 ecx = 0x3630D98Cu; /* 0x36145D50: mov ecx, 0x3630d98c */ 3683 L_36145D55: 3684 { _itail_tgt = (uint32_t)(MEM32(0x3616F148)); goto _ljump; } 3685 { RECOMP_REGS_OUT(); return; } /* end of function */ 3686 _ljump: 3687 switch (_itail_tgt) { 3688 case 0x36145D50u: goto L_36145D50; 3689 case 0x36145D55u: goto L_36145D55; 3690 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3691 } 3692 RECOMP_REGS_OUT(); 3693 } 3694 3695 void sub_36145D60(void) { 3696 int _fpu_cmp = 0; 3697 uint32_t _cf = 0; 3698 int _df = 1; 3699 uint32_t _flag_k = FK_NONE; 3700 uint32_t _flag_a = 0, _flag_b = 0; 3701 uint32_t _itail_tgt = 0; 3702 RECOMP_REGS_LOCALS 3703 RECOMP_ENTER(0x36145D60u); 3704 3705 L_36145D60: 3706 PUSH32(esp, 0x36145D70u); /* 0x36145D60: push 0x36145d70 */ 3707 RECOMP_ICALL(0x3615FEB2u); /* 0x36145D65: call 0x3615feb2 */ /* not lifted */ 3708 RECOMP_FLAGS_IN(); 3709 ecx = POP32_VAL(esp); /* 0x36145D6A: pop ecx */ 3710 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36145D6B: ret */ 3711 RECOMP_REGS_OUT(); 3712 } 3713 3714 void sub_36145D70(void) { 3715 int _fpu_cmp = 0; 3716 uint32_t _cf = 0; 3717 int _df = 1; 3718 uint32_t _flag_k = FK_NONE; 3719 uint32_t _flag_a = 0, _flag_b = 0; 3720 uint32_t _itail_tgt = 0; 3721 RECOMP_REGS_LOCALS 3722 RECOMP_ENTER(0x36145D70u); 3723 3724 L_36145D70: 3725 ecx = 0x3630D98Cu; /* 0x36145D70: mov ecx, 0x3630d98c */ 3726 L_36145D75: 3727 { _itail_tgt = (uint32_t)(MEM32(0x3616F14C)); goto _ljump; } 3728 { RECOMP_REGS_OUT(); return; } /* end of function */ 3729 _ljump: 3730 switch (_itail_tgt) { 3731 case 0x36145D70u: goto L_36145D70; 3732 case 0x36145D75u: goto L_36145D75; 3733 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3734 } 3735 RECOMP_REGS_OUT(); 3736 } 3737 3738 void sub_36145D80(void) { 3739 int _fpu_cmp = 0; 3740 uint32_t _cf = 0; 3741 int _df = 1; 3742 uint32_t _flag_k = FK_NONE; 3743 uint32_t _flag_a = 0, _flag_b = 0; 3744 uint32_t _itail_tgt = 0; 3745 RECOMP_REGS_LOCALS 3746 RECOMP_ENTER(0x36145D80u); 3747 3748 L_36145D80: 3749 PUSH32(esp, esi); /* 0x36145D80: push esi */ 3750 esi = ecx; /* 0x36145D81: mov esi, ecx */ 3751 RECOMP_ICALL(MEM32(0x3616FE8C)); /* 0x36145D83: call dword ptr [0x3616fe8c] */ 3752 RECOMP_FLAGS_IN(); 3753 MEM32(esi) = 0x36178818u; /* 0x36145D89: mov dword ptr [esi], 0x36178818 */ 3754 eax = esi; /* 0x36145D8F: mov eax, esi */ 3755 esi = POP32_VAL(esp); /* 0x36145D91: pop esi */ 3756 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36145D92: ret */ 3757 RECOMP_REGS_OUT(); 3758 } 3759 3760 void sub_36145DA0(void) { 3761 int _fpu_cmp = 0; 3762 uint32_t _cf = 0; 3763 int _df = 1; 3764 uint32_t _flag_k = FK_NONE; 3765 uint32_t _flag_a = 0, _flag_b = 0; 3766 uint32_t _itail_tgt = 0; 3767 RECOMP_REGS_LOCALS 3768 RECOMP_ENTER(0x36145DA0u); 3769 3770 L_36145DA0: 3771 PUSH32(esp, ebp); /* 0x36145DA0: push ebp */ 3772 ebp = esp; /* 0x36145DA1: mov ebp, esp */ 3773 PUSH32(esp, esi); /* 0x36145DA3: push esi */ 3774 esi = ecx; /* 0x36145DA4: mov esi, ecx */ 3775 RECOMP_ICALL(0x36145DD0u); /* 0x36145DA6: call 0x36145dd0 */ /* not lifted */ 3776 RECOMP_FLAGS_IN(); 3777 /* test MEM8(ebp + 0x8), 1 */ /* 0x36145DAB: test byte ptr [ebp + 8], 1 */ 3778 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 3779 _cf = 0; 3780 _flag_k = FK_NARROW(FK_TEST, 24); 3781 if (TEST_Z(_flag_a, _flag_b)) goto L_36145DBA; /* 0x36145DAF: je 0x36145dba */ 3782 L_36145DB1: 3783 PUSH32(esp, esi); /* 0x36145DB1: push esi */ 3784 RECOMP_ICALL(0x3615FCC4u); /* 0x36145DB2: call 0x3615fcc4 */ /* not lifted */ 3785 RECOMP_FLAGS_IN(); 3786 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3787 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3788 esp = esp + 4; /* 0x36145DB7: add esp, 4 */ 3789 _flag_k = FK_ADD; 3790 L_36145DBA: 3791 eax = esi; /* 0x36145DBA: mov eax, esi */ 3792 esi = POP32_VAL(esp); /* 0x36145DBC: pop esi */ 3793 ebp = POP32_VAL(esp); /* 0x36145DBD: pop ebp */ 3794 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36145DBE: ret 4 */ 3795 RECOMP_REGS_OUT(); 3796 } 3797 3798 void sub_36145DD0(void) { 3799 int _fpu_cmp = 0; 3800 uint32_t _cf = 0; 3801 int _df = 1; 3802 uint32_t _flag_k = FK_NONE; 3803 uint32_t _flag_a = 0, _flag_b = 0; 3804 uint32_t _itail_tgt = 0; 3805 RECOMP_REGS_LOCALS 3806 RECOMP_ENTER(0x36145DD0u); 3807 3808 L_36145DD0: 3809 MEM32(ecx) = 0x36178818u; /* 0x36145DD0: mov dword ptr [ecx], 0x36178818 */ 3810 L_36145DD6: 3811 { _itail_tgt = (uint32_t)(MEM32(0x3616FE90)); goto _ljump; } 3812 { RECOMP_REGS_OUT(); return; } /* end of function */ 3813 _ljump: 3814 switch (_itail_tgt) { 3815 case 0x36145DD0u: goto L_36145DD0; 3816 case 0x36145DD6u: goto L_36145DD6; 3817 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3818 } 3819 RECOMP_REGS_OUT(); 3820 } 3821 3822 void sub_36145DE0(void) { 3823 int _fpu_cmp = 0; 3824 uint32_t _cf = 0; 3825 int _df = 1; 3826 uint32_t _flag_k = FK_NONE; 3827 uint32_t _flag_a = 0, _flag_b = 0; 3828 uint32_t _itail_tgt = 0; 3829 RECOMP_REGS_LOCALS 3830 RECOMP_ENTER(0x36145DE0u); 3831 3832 L_36145DE0: 3833 PUSH32(esp, ebp); /* 0x36145DE0: push ebp */ 3834 ebp = esp; /* 0x36145DE1: mov ebp, esp */ 3835 PUSH32(esp, 0xFFFFFFFFu); /* 0x36145DE3: push -1 */ 3836 PUSH32(esp, 0x3616CFDBu); /* 0x36145DE5: push 0x3616cfdb */ 3837 eax = MEM32(FS_BASE + (0)); /* 0x36145DEA: mov eax, dword ptr fs:[0] */ 3838 PUSH32(esp, eax); /* 0x36145DF0: push eax */ 3839 MEM32(FS_BASE + (0)) = esp; /* 0x36145DF1: mov dword ptr fs:[0], esp */ 3840 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3841 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3842 esp = esp - 8; /* 0x36145DF8: sub esp, 8 */ 3843 _flag_k = FK_CMP; 3844 PUSH32(esp, ebx); /* 0x36145DFB: push ebx */ 3845 PUSH32(esp, esi); /* 0x36145DFC: push esi */ 3846 PUSH32(esp, edi); /* 0x36145DFD: push edi */ 3847 esi = ecx; /* 0x36145DFE: mov esi, ecx */ 3848 RECOMP_ICALL(MEM32(0x3616FE9C)); /* 0x36145E00: call dword ptr [0x3616fe9c] */ 3849 RECOMP_FLAGS_IN(); 3850 eax = esi + 0x4; /* 0x36145E06: lea eax, [esi + 4] */ 3851 PUSH32(esp, eax); /* 0x36145E09: push eax */ 3852 RECOMP_ICALL(MEM32(0x3616FD7C)); /* 0x36145E0A: call dword ptr [0x3616fd7c] */ 3853 RECOMP_FLAGS_IN(); 3854 PUSH32(esp, 0); /* 0x36145E10: push 0 */ 3855 PUSH32(esp, 0x361B66A0u); /* 0x36145E12: push 0x361b66a0 */ 3856 PUSH32(esp, 0x361B6680u); /* 0x36145E17: push 0x361b6680 */ 3857 ebx = eax; /* 0x36145E1C: mov ebx, eax */ 3858 PUSH32(esp, 0); /* 0x36145E1E: push 0 */ 3859 PUSH32(esp, ebx); /* 0x36145E20: push ebx */ 3860 RECOMP_ICALL(0x3615FD86u); /* 0x36145E21: call 0x3615fd86 */ /* not lifted */ 3861 RECOMP_FLAGS_IN(); 3862 ecx = MEM32(esi + 0x4C); /* 0x36145E26: mov ecx, dword ptr [esi + 0x4c] */ 3863 MEM32(eax + 0xC0) = ecx; /* 0x36145E29: mov dword ptr [eax + 0xc0], ecx */ 3864 ecx = MEM32(esi + 0x50); /* 0x36145E2F: mov ecx, dword ptr [esi + 0x50] */ 3865 PUSH32(esp, 0x12Cu); /* 0x36145E32: push 0x12c */ 3866 MEM32(ebp + (-0x10)) = eax; /* 0x36145E37: mov dword ptr [ebp - 0x10], eax */ 3867 MEM32(eax + 0xC4) = ecx; /* 0x36145E3A: mov dword ptr [eax + 0xc4], ecx */ 3868 RECOMP_ICALL(0x3615FD6Au); /* 0x36145E40: call 0x3615fd6a */ /* not lifted */ 3869 RECOMP_FLAGS_IN(); 3870 edi = eax; /* 0x36145E45: mov edi, eax */ 3871 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 3872 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3873 esp = esp + 0x1Cu; /* 0x36145E47: add esp, 0x1c */ 3874 _flag_k = FK_ADD; 3875 MEM32(ebp + (-0x14)) = edi; /* 0x36145E4A: mov dword ptr [ebp - 0x14], edi */ 3876 /* test edi, edi */ /* 0x36145E4D: test edi, edi */ 3877 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3878 _cf = 0; 3879 _flag_k = FK_TEST; 3880 MEM32(ebp + (-0x4)) = 0; /* 0x36145E4F: mov dword ptr [ebp - 4], 0 */ 3881 if (TEST_Z(_flag_a, _flag_b)) goto L_36145E69; /* 0x36145E56: je 0x36145e69 */ 3882 L_36145E58: 3883 PUSH32(esp, ebx); /* 0x36145E58: push ebx */ 3884 ecx = edi; /* 0x36145E59: mov ecx, edi */ 3885 RECOMP_ICALL(MEM32(0x3616FE98)); /* 0x36145E5B: call dword ptr [0x3616fe98] */ 3886 RECOMP_FLAGS_IN(); 3887 MEM32(edi) = 0x3617883Cu; /* 0x36145E61: mov dword ptr [edi], 0x3617883c */ 3888 goto L_36145E6B; /* 0x36145E67: jmp 0x36145e6b */ 3889 L_36145E69: 3890 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3891 edi = 0; /* 0x36145E69: xor edi, edi */ 3892 _cf = 0; 3893 _flag_k = FK_TEST; 3894 L_36145E6B: 3895 edx = MEM32(ebx + 0x1C); /* 0x36145E6B: mov edx, dword ptr [ebx + 0x1c] */ 3896 ecx = ebx + 0x1C; /* 0x36145E6E: lea ecx, [ebx + 0x1c] */ 3897 PUSH32(esp, edi); /* 0x36145E71: push edi */ 3898 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36145E72: mov dword ptr [ebp - 4], 0xffffffff */ 3899 RECOMP_ICALL(MEM32(edx)); /* 0x36145E79: call dword ptr [edx] */ 3900 RECOMP_FLAGS_IN(); 3901 ecx = ebx; /* 0x36145E7B: mov ecx, ebx */ 3902 RECOMP_ICALL(MEM32(0x3616FF6C)); /* 0x36145E7D: call dword ptr [0x3616ff6c] */ 3903 RECOMP_FLAGS_IN(); 3904 ecx = eax; /* 0x36145E83: mov ecx, eax */ 3905 RECOMP_ICALL(MEM32(0x3616FD1C)); /* 0x36145E85: call dword ptr [0x3616fd1c] */ 3906 RECOMP_FLAGS_IN(); 3907 /* test LO8(eax), LO8(eax) */ /* 0x36145E8B: test al, al */ 3908 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3909 _cf = 0; 3910 _flag_k = FK_NARROW(FK_TEST, 24); 3911 if (TEST_Z(_flag_a, _flag_b)) goto L_36145EAF; /* 0x36145E8D: je 0x36145eaf */ 3912 L_36145E8F: 3913 ecx = MEM32(ebp + (-0x10)); /* 0x36145E8F: mov ecx, dword ptr [ebp - 0x10] */ 3914 PUSH32(esp, edi); /* 0x36145E92: push edi */ 3915 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 3916 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3917 esi = esi + 0x24u; /* 0x36145E93: add esi, 0x24 */ 3918 _flag_k = FK_ADD; 3919 PUSH32(esp, esi); /* 0x36145E96: push esi */ 3920 RECOMP_ICALL(0x3614D470u); /* 0x36145E97: call 0x3614d470 */ /* not lifted */ 3921 RECOMP_FLAGS_IN(); 3922 edi = POP32_VAL(esp); /* 0x36145E9C: pop edi */ 3923 esi = POP32_VAL(esp); /* 0x36145E9D: pop esi */ 3924 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3925 eax = 0; /* 0x36145E9E: xor eax, eax */ 3926 _cf = 0; 3927 _flag_k = FK_TEST; 3928 ebx = POP32_VAL(esp); /* 0x36145EA0: pop ebx */ 3929 ecx = MEM32(ebp + (-0xC)); /* 0x36145EA1: mov ecx, dword ptr [ebp - 0xc] */ 3930 MEM32(FS_BASE + (0)) = ecx; /* 0x36145EA4: mov dword ptr fs:[0], ecx */ 3931 esp = ebp; /* 0x36145EAB: mov esp, ebp */ 3932 ebp = POP32_VAL(esp); /* 0x36145EAD: pop ebp */ 3933 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36145EAE: ret */ 3934 L_36145EAF: 3935 ecx = MEM32(ebp + (-0x10)); /* 0x36145EAF: mov ecx, dword ptr [ebp - 0x10] */ 3936 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 3937 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3938 esi = esi + 0x24u; /* 0x36145EB2: add esi, 0x24 */ 3939 _flag_k = FK_ADD; 3940 PUSH32(esp, esi); /* 0x36145EB5: push esi */ 3941 RECOMP_ICALL(0x3614D540u); /* 0x36145EB6: call 0x3614d540 */ /* not lifted */ 3942 RECOMP_FLAGS_IN(); 3943 ecx = MEM32(ebp + (-0xC)); /* 0x36145EBB: mov ecx, dword ptr [ebp - 0xc] */ 3944 edi = POP32_VAL(esp); /* 0x36145EBE: pop edi */ 3945 esi = POP32_VAL(esp); /* 0x36145EBF: pop esi */ 3946 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3947 eax = 0; /* 0x36145EC0: xor eax, eax */ 3948 _cf = 0; 3949 _flag_k = FK_TEST; 3950 ebx = POP32_VAL(esp); /* 0x36145EC2: pop ebx */ 3951 MEM32(FS_BASE + (0)) = ecx; /* 0x36145EC3: mov dword ptr fs:[0], ecx */ 3952 esp = ebp; /* 0x36145ECA: mov esp, ebp */ 3953 ebp = POP32_VAL(esp); /* 0x36145ECC: pop ebp */ 3954 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36145ECD: ret */ 3955 RECOMP_REGS_OUT(); 3956 } 3957 3958 void sub_36145ED0(void) { 3959 int _fpu_cmp = 0; 3960 uint32_t _cf = 0; 3961 int _df = 1; 3962 uint32_t _flag_k = FK_NONE; 3963 uint32_t _flag_a = 0, _flag_b = 0; 3964 uint32_t _itail_tgt = 0; 3965 RECOMP_REGS_LOCALS 3966 RECOMP_ENTER(0x36145ED0u); 3967 3968 L_36145ED0: 3969 PUSH32(esp, ebp); /* 0x36145ED0: push ebp */ 3970 ebp = esp; /* 0x36145ED1: mov ebp, esp */ 3971 PUSH32(esp, esi); /* 0x36145ED3: push esi */ 3972 esi = ecx; /* 0x36145ED4: mov esi, ecx */ 3973 RECOMP_ICALL(MEM32(0x3616FEA0)); /* 0x36145ED6: call dword ptr [0x3616fea0] */ 3974 RECOMP_FLAGS_IN(); 3975 /* test MEM8(ebp + 0x8), 1 */ /* 0x36145EDC: test byte ptr [ebp + 8], 1 */ 3976 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 3977 _cf = 0; 3978 _flag_k = FK_NARROW(FK_TEST, 24); 3979 if (TEST_Z(_flag_a, _flag_b)) goto L_36145EEB; /* 0x36145EE0: je 0x36145eeb */ 3980 L_36145EE2: 3981 PUSH32(esp, esi); /* 0x36145EE2: push esi */ 3982 RECOMP_ICALL(0x3615FCC4u); /* 0x36145EE3: call 0x3615fcc4 */ /* not lifted */ 3983 RECOMP_FLAGS_IN(); 3984 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3985 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3986 esp = esp + 4; /* 0x36145EE8: add esp, 4 */ 3987 _flag_k = FK_ADD; 3988 L_36145EEB: 3989 eax = esi; /* 0x36145EEB: mov eax, esi */ 3990 esi = POP32_VAL(esp); /* 0x36145EED: pop esi */ 3991 ebp = POP32_VAL(esp); /* 0x36145EEE: pop ebp */ 3992 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36145EEF: ret 4 */ 3993 RECOMP_REGS_OUT(); 3994 } 3995 3996 void sub_36145F00(void) { 3997 int _fpu_cmp = 0; 3998 uint32_t _cf = 0; 3999 int _df = 1; 4000 uint32_t _flag_k = FK_NONE; 4001 uint32_t _flag_a = 0, _flag_b = 0; 4002 uint32_t _itail_tgt = 0; 4003 RECOMP_REGS_LOCALS 4004 RECOMP_ENTER(0x36145F00u); 4005 4006 L_36145F00: 4007 PUSH32(esp, ebp); /* 0x36145F00: push ebp */ 4008 ebp = esp; /* 0x36145F01: mov ebp, esp */ 4009 PUSH32(esp, esi); /* 0x36145F03: push esi */ 4010 PUSH32(esp, edi); /* 0x36145F04: push edi */ 4011 edi = MEM32(ebp + 0x8); /* 0x36145F05: mov edi, dword ptr [ebp + 8] */ 4012 esi = ecx; /* 0x36145F08: mov esi, ecx */ 4013 PUSH32(esp, edi); /* 0x36145F0A: push edi */ 4014 RECOMP_ICALL(MEM32(0x3616FEA4)); /* 0x36145F0B: call dword ptr [0x3616fea4] */ 4015 RECOMP_FLAGS_IN(); 4016 /* test eax, eax */ /* 0x36145F11: test eax, eax */ 4017 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4018 _cf = 0; 4019 _flag_k = FK_TEST; 4020 if (TEST_NZ(_flag_a, _flag_b)) goto L_36145F3A; /* 0x36145F13: jne 0x36145f3a */ 4021 L_36145F15: 4022 PUSH32(esp, ebx); /* 0x36145F15: push ebx */ 4023 ebx = MEM32(0x3616FA8C); /* 0x36145F16: mov ebx, dword ptr [0x3616fa8c] */ 4024 eax = esi + 0x4C; /* 0x36145F1C: lea eax, [esi + 0x4c] */ 4025 PUSH32(esp, eax); /* 0x36145F1F: push eax */ 4026 ecx = edi; /* 0x36145F20: mov ecx, edi */ 4027 RECOMP_ICALL(ebx); /* 0x36145F22: call ebx */ 4028 RECOMP_FLAGS_IN(); 4029 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x50u); 4030 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4031 esi = esi + 0x50u; /* 0x36145F24: add esi, 0x50 */ 4032 _flag_k = FK_ADD; 4033 PUSH32(esp, esi); /* 0x36145F27: push esi */ 4034 ecx = edi; /* 0x36145F28: mov ecx, edi */ 4035 RECOMP_ICALL(ebx); /* 0x36145F2A: call ebx */ 4036 RECOMP_FLAGS_IN(); 4037 ecx = edi; /* 0x36145F2C: mov ecx, edi */ 4038 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36145F2E: call dword ptr [0x3616fadc] */ 4039 RECOMP_FLAGS_IN(); 4040 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 4041 _cf = (eax) != 0; 4042 eax = (uint32_t)(-(int32_t)eax); /* 0x36145F34: neg eax */ 4043 _flag_k = FK_CMP; 4044 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36145F36: sbb eax, eax */ 4045 eax = _sc ? 0xFFFFFFFFu : 0; 4046 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 4047 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 4048 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4049 eax = eax + 1; /* 0x36145F38: inc eax */ 4050 _flag_k = FK_INC; 4051 ebx = POP32_VAL(esp); /* 0x36145F39: pop ebx */ 4052 L_36145F3A: 4053 edi = POP32_VAL(esp); /* 0x36145F3A: pop edi */ 4054 esi = POP32_VAL(esp); /* 0x36145F3B: pop esi */ 4055 ebp = POP32_VAL(esp); /* 0x36145F3C: pop ebp */ 4056 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36145F3D: ret 4 */ 4057 RECOMP_REGS_OUT(); 4058 } 4059 4060 void sub_36145F40(void) { 4061 int _fpu_cmp = 0; 4062 uint32_t _cf = 0; 4063 int _df = 1; 4064 uint32_t _flag_k = FK_NONE; 4065 uint32_t _flag_a = 0, _flag_b = 0; 4066 uint32_t _itail_tgt = 0; 4067 RECOMP_REGS_LOCALS 4068 RECOMP_ENTER(0x36145F40u); 4069 4070 L_36145F40: 4071 PUSH32(esp, ebp); /* 0x36145F40: push ebp */ 4072 ebp = esp; /* 0x36145F41: mov ebp, esp */ 4073 PUSH32(esp, ebx); /* 0x36145F43: push ebx */ 4074 PUSH32(esp, esi); /* 0x36145F44: push esi */ 4075 PUSH32(esp, edi); /* 0x36145F45: push edi */ 4076 edi = MEM32(ebp + 0x8); /* 0x36145F46: mov edi, dword ptr [ebp + 8] */ 4077 esi = ecx; /* 0x36145F49: mov esi, ecx */ 4078 PUSH32(esp, edi); /* 0x36145F4B: push edi */ 4079 RECOMP_ICALL(MEM32(0x3616FEA8)); /* 0x36145F4C: call dword ptr [0x3616fea8] */ 4080 RECOMP_FLAGS_IN(); 4081 eax = MEM32(esi + 0x4C); /* 0x36145F52: mov eax, dword ptr [esi + 0x4c] */ 4082 ebx = MEM32(0x3616FAEC); /* 0x36145F55: mov ebx, dword ptr [0x3616faec] */ 4083 PUSH32(esp, eax); /* 0x36145F5B: push eax */ 4084 ecx = edi; /* 0x36145F5C: mov ecx, edi */ 4085 RECOMP_ICALL(ebx); /* 0x36145F5E: call ebx */ 4086 RECOMP_FLAGS_IN(); 4087 ecx = MEM32(esi + 0x50); /* 0x36145F60: mov ecx, dword ptr [esi + 0x50] */ 4088 PUSH32(esp, ecx); /* 0x36145F63: push ecx */ 4089 ecx = edi; /* 0x36145F64: mov ecx, edi */ 4090 RECOMP_ICALL(ebx); /* 0x36145F66: call ebx */ 4091 RECOMP_FLAGS_IN(); 4092 edi = POP32_VAL(esp); /* 0x36145F68: pop edi */ 4093 esi = POP32_VAL(esp); /* 0x36145F69: pop esi */ 4094 ebx = POP32_VAL(esp); /* 0x36145F6A: pop ebx */ 4095 ebp = POP32_VAL(esp); /* 0x36145F6B: pop ebp */ 4096 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36145F6C: ret 4 */ 4097 RECOMP_REGS_OUT(); 4098 } 4099 4100 void sub_36145F70(void) { 4101 int _fpu_cmp = 0; 4102 uint32_t _cf = 0; 4103 int _df = 1; 4104 uint32_t _flag_k = FK_NONE; 4105 uint32_t _flag_a = 0, _flag_b = 0; 4106 uint32_t _itail_tgt = 0; 4107 RECOMP_REGS_LOCALS 4108 RECOMP_ENTER(0x36145F70u); 4109 4110 L_36145F70: 4111 RECOMP_ICALL(0x36145F80u); /* 0x36145F70: call 0x36145f80 */ /* not lifted */ 4112 RECOMP_FLAGS_IN(); 4113 goto L_36145F90; /* 0x36145F75: jmp 0x36145f90 */ 4114 L_36145F90: 4115 PUSH32(esp, 0x36145FA0u); /* 0x36145F90: push 0x36145fa0 */ 4116 RECOMP_ICALL(0x3615FEB2u); /* 0x36145F95: call 0x3615feb2 */ /* not lifted */ 4117 RECOMP_FLAGS_IN(); 4118 ecx = POP32_VAL(esp); /* 0x36145F9A: pop ecx */ 4119 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36145F9B: ret */ 4120 RECOMP_REGS_OUT(); 4121 } 4122 4123 void sub_36145F80(void) { 4124 int _fpu_cmp = 0; 4125 uint32_t _cf = 0; 4126 int _df = 1; 4127 uint32_t _flag_k = FK_NONE; 4128 uint32_t _flag_a = 0, _flag_b = 0; 4129 uint32_t _itail_tgt = 0; 4130 RECOMP_REGS_LOCALS 4131 RECOMP_ENTER(0x36145F80u); 4132 4133 L_36145F80: 4134 ecx = 0x3630D9A9u; /* 0x36145F80: mov ecx, 0x3630d9a9 */ 4135 L_36145F85: 4136 { _itail_tgt = (uint32_t)(MEM32(0x3616F140)); goto _ljump; } 4137 { RECOMP_REGS_OUT(); return; } /* end of function */ 4138 _ljump: 4139 switch (_itail_tgt) { 4140 case 0x36145F80u: goto L_36145F80; 4141 case 0x36145F85u: goto L_36145F85; 4142 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4143 } 4144 RECOMP_REGS_OUT(); 4145 } 4146 4147 void sub_36145F90(void) { 4148 int _fpu_cmp = 0; 4149 uint32_t _cf = 0; 4150 int _df = 1; 4151 uint32_t _flag_k = FK_NONE; 4152 uint32_t _flag_a = 0, _flag_b = 0; 4153 uint32_t _itail_tgt = 0; 4154 RECOMP_REGS_LOCALS 4155 RECOMP_ENTER(0x36145F90u); 4156 4157 L_36145F90: 4158 PUSH32(esp, 0x36145FA0u); /* 0x36145F90: push 0x36145fa0 */ 4159 RECOMP_ICALL(0x3615FEB2u); /* 0x36145F95: call 0x3615feb2 */ /* not lifted */ 4160 RECOMP_FLAGS_IN(); 4161 ecx = POP32_VAL(esp); /* 0x36145F9A: pop ecx */ 4162 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36145F9B: ret */ 4163 RECOMP_REGS_OUT(); 4164 } 4165 4166 void sub_36145FA0(void) { 4167 int _fpu_cmp = 0; 4168 uint32_t _cf = 0; 4169 int _df = 1; 4170 uint32_t _flag_k = FK_NONE; 4171 uint32_t _flag_a = 0, _flag_b = 0; 4172 uint32_t _itail_tgt = 0; 4173 RECOMP_REGS_LOCALS 4174 RECOMP_ENTER(0x36145FA0u); 4175 4176 L_36145FA0: 4177 ecx = 0x3630D9A9u; /* 0x36145FA0: mov ecx, 0x3630d9a9 */ 4178 L_36145FA5: 4179 { _itail_tgt = (uint32_t)(MEM32(0x3616F144)); goto _ljump; } 4180 { RECOMP_REGS_OUT(); return; } /* end of function */ 4181 _ljump: 4182 switch (_itail_tgt) { 4183 case 0x36145FA0u: goto L_36145FA0; 4184 case 0x36145FA5u: goto L_36145FA5; 4185 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4186 } 4187 RECOMP_REGS_OUT(); 4188 } 4189 4190 void sub_36145FB0(void) { 4191 int _fpu_cmp = 0; 4192 uint32_t _cf = 0; 4193 int _df = 1; 4194 uint32_t _flag_k = FK_NONE; 4195 uint32_t _flag_a = 0, _flag_b = 0; 4196 uint32_t _itail_tgt = 0; 4197 RECOMP_REGS_LOCALS 4198 RECOMP_ENTER(0x36145FB0u); 4199 4200 L_36145FB0: 4201 RECOMP_ICALL(0x36145FC0u); /* 0x36145FB0: call 0x36145fc0 */ /* not lifted */ 4202 RECOMP_FLAGS_IN(); 4203 goto L_36145FD0; /* 0x36145FB5: jmp 0x36145fd0 */ 4204 L_36145FD0: 4205 PUSH32(esp, 0x36145FE0u); /* 0x36145FD0: push 0x36145fe0 */ 4206 RECOMP_ICALL(0x3615FEB2u); /* 0x36145FD5: call 0x3615feb2 */ /* not lifted */ 4207 RECOMP_FLAGS_IN(); 4208 ecx = POP32_VAL(esp); /* 0x36145FDA: pop ecx */ 4209 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36145FDB: ret */ 4210 RECOMP_REGS_OUT(); 4211 } 4212 4213 void sub_36145FC0(void) { 4214 int _fpu_cmp = 0; 4215 uint32_t _cf = 0; 4216 int _df = 1; 4217 uint32_t _flag_k = FK_NONE; 4218 uint32_t _flag_a = 0, _flag_b = 0; 4219 uint32_t _itail_tgt = 0; 4220 RECOMP_REGS_LOCALS 4221 RECOMP_ENTER(0x36145FC0u); 4222 4223 L_36145FC0: 4224 ecx = 0x3630D9A8u; /* 0x36145FC0: mov ecx, 0x3630d9a8 */ 4225 L_36145FC5: 4226 { _itail_tgt = (uint32_t)(MEM32(0x3616F148)); goto _ljump; } 4227 { RECOMP_REGS_OUT(); return; } /* end of function */ 4228 _ljump: 4229 switch (_itail_tgt) { 4230 case 0x36145FC0u: goto L_36145FC0; 4231 case 0x36145FC5u: goto L_36145FC5; 4232 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4233 } 4234 RECOMP_REGS_OUT(); 4235 } 4236 4237 void sub_36145FD0(void) { 4238 int _fpu_cmp = 0; 4239 uint32_t _cf = 0; 4240 int _df = 1; 4241 uint32_t _flag_k = FK_NONE; 4242 uint32_t _flag_a = 0, _flag_b = 0; 4243 uint32_t _itail_tgt = 0; 4244 RECOMP_REGS_LOCALS 4245 RECOMP_ENTER(0x36145FD0u); 4246 4247 L_36145FD0: 4248 PUSH32(esp, 0x36145FE0u); /* 0x36145FD0: push 0x36145fe0 */ 4249 RECOMP_ICALL(0x3615FEB2u); /* 0x36145FD5: call 0x3615feb2 */ /* not lifted */ 4250 RECOMP_FLAGS_IN(); 4251 ecx = POP32_VAL(esp); /* 0x36145FDA: pop ecx */ 4252 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36145FDB: ret */ 4253 RECOMP_REGS_OUT(); 4254 } 4255 4256 void sub_36145FE0(void) { 4257 int _fpu_cmp = 0; 4258 uint32_t _cf = 0; 4259 int _df = 1; 4260 uint32_t _flag_k = FK_NONE; 4261 uint32_t _flag_a = 0, _flag_b = 0; 4262 uint32_t _itail_tgt = 0; 4263 RECOMP_REGS_LOCALS 4264 RECOMP_ENTER(0x36145FE0u); 4265 4266 L_36145FE0: 4267 ecx = 0x3630D9A8u; /* 0x36145FE0: mov ecx, 0x3630d9a8 */ 4268 L_36145FE5: 4269 { _itail_tgt = (uint32_t)(MEM32(0x3616F14C)); goto _ljump; } 4270 { RECOMP_REGS_OUT(); return; } /* end of function */ 4271 _ljump: 4272 switch (_itail_tgt) { 4273 case 0x36145FE0u: goto L_36145FE0; 4274 case 0x36145FE5u: goto L_36145FE5; 4275 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4276 } 4277 RECOMP_REGS_OUT(); 4278 } 4279 4280 void sub_36145FF0(void) { 4281 int _fpu_cmp = 0; 4282 uint32_t _cf = 0; 4283 int _df = 1; 4284 uint32_t _flag_k = FK_NONE; 4285 uint32_t _flag_a = 0, _flag_b = 0; 4286 uint32_t _itail_tgt = 0; 4287 RECOMP_REGS_LOCALS 4288 RECOMP_ENTER(0x36145FF0u); 4289 4290 L_36145FF0: 4291 goto L_36146000; /* 0x36145FF0: jmp 0x36146000 */ 4292 L_36146000: 4293 MEM32(0x3630D990) = 0x361B2FF4u; /* 0x36146000: mov dword ptr [0x3630d990], 0x361b2ff4 */ 4294 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614600A: ret */ 4295 RECOMP_REGS_OUT(); 4296 } 4297 4298 void sub_36146000(void) { 4299 int _fpu_cmp = 0; 4300 uint32_t _cf = 0; 4301 int _df = 1; 4302 uint32_t _flag_k = FK_NONE; 4303 uint32_t _flag_a = 0, _flag_b = 0; 4304 uint32_t _itail_tgt = 0; 4305 RECOMP_REGS_LOCALS 4306 RECOMP_ENTER(0x36146000u); 4307 4308 L_36146000: 4309 MEM32(0x3630D990) = 0x361B2FF4u; /* 0x36146000: mov dword ptr [0x3630d990], 0x361b2ff4 */ 4310 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614600A: ret */ 4311 RECOMP_REGS_OUT(); 4312 } 4313 4314 void sub_36146010(void) { 4315 int _fpu_cmp = 0; 4316 uint32_t _cf = 0; 4317 int _df = 1; 4318 uint32_t _flag_k = FK_NONE; 4319 uint32_t _flag_a = 0, _flag_b = 0; 4320 uint32_t _itail_tgt = 0; 4321 RECOMP_REGS_LOCALS 4322 RECOMP_ENTER(0x36146010u); 4323 4324 L_36146010: 4325 goto L_36146020; /* 0x36146010: jmp 0x36146020 */ 4326 L_36146020: 4327 MEM32(0x3630D9B4) = 0x361B3028u; /* 0x36146020: mov dword ptr [0x3630d9b4], 0x361b3028 */ 4328 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614602A: ret */ 4329 RECOMP_REGS_OUT(); 4330 } 4331 4332 void sub_36146020(void) { 4333 int _fpu_cmp = 0; 4334 uint32_t _cf = 0; 4335 int _df = 1; 4336 uint32_t _flag_k = FK_NONE; 4337 uint32_t _flag_a = 0, _flag_b = 0; 4338 uint32_t _itail_tgt = 0; 4339 RECOMP_REGS_LOCALS 4340 RECOMP_ENTER(0x36146020u); 4341 4342 L_36146020: 4343 MEM32(0x3630D9B4) = 0x361B3028u; /* 0x36146020: mov dword ptr [0x3630d9b4], 0x361b3028 */ 4344 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614602A: ret */ 4345 RECOMP_REGS_OUT(); 4346 } 4347 4348 void sub_36146030(void) { 4349 int _fpu_cmp = 0; 4350 uint32_t _cf = 0; 4351 int _df = 1; 4352 uint32_t _flag_k = FK_NONE; 4353 uint32_t _flag_a = 0, _flag_b = 0; 4354 uint32_t _itail_tgt = 0; 4355 RECOMP_REGS_LOCALS 4356 RECOMP_ENTER(0x36146030u); 4357 4358 L_36146030: 4359 goto L_36146040; /* 0x36146030: jmp 0x36146040 */ 4360 L_36146040: 4361 MEM32(0x3630D9B0) = 0x361B3064u; /* 0x36146040: mov dword ptr [0x3630d9b0], 0x361b3064 */ 4362 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614604A: ret */ 4363 RECOMP_REGS_OUT(); 4364 } 4365 4366 void sub_36146040(void) { 4367 int _fpu_cmp = 0; 4368 uint32_t _cf = 0; 4369 int _df = 1; 4370 uint32_t _flag_k = FK_NONE; 4371 uint32_t _flag_a = 0, _flag_b = 0; 4372 uint32_t _itail_tgt = 0; 4373 RECOMP_REGS_LOCALS 4374 RECOMP_ENTER(0x36146040u); 4375 4376 L_36146040: 4377 MEM32(0x3630D9B0) = 0x361B3064u; /* 0x36146040: mov dword ptr [0x3630d9b0], 0x361b3064 */ 4378 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614604A: ret */ 4379 RECOMP_REGS_OUT(); 4380 } 4381 4382 void sub_36146050(void) { 4383 int _fpu_cmp = 0; 4384 uint32_t _cf = 0; 4385 int _df = 1; 4386 uint32_t _flag_k = FK_NONE; 4387 uint32_t _flag_a = 0, _flag_b = 0; 4388 uint32_t _itail_tgt = 0; 4389 RECOMP_REGS_LOCALS 4390 RECOMP_ENTER(0x36146050u); 4391 4392 L_36146050: 4393 goto L_36146060; /* 0x36146050: jmp 0x36146060 */ 4394 L_36146060: 4395 MEM32(0x3630D9D0) = 0x361B3098u; /* 0x36146060: mov dword ptr [0x3630d9d0], 0x361b3098 */ 4396 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614606A: ret */ 4397 RECOMP_REGS_OUT(); 4398 } 4399 4400 void sub_36146060(void) { 4401 int _fpu_cmp = 0; 4402 uint32_t _cf = 0; 4403 int _df = 1; 4404 uint32_t _flag_k = FK_NONE; 4405 uint32_t _flag_a = 0, _flag_b = 0; 4406 uint32_t _itail_tgt = 0; 4407 RECOMP_REGS_LOCALS 4408 RECOMP_ENTER(0x36146060u); 4409 4410 L_36146060: 4411 MEM32(0x3630D9D0) = 0x361B3098u; /* 0x36146060: mov dword ptr [0x3630d9d0], 0x361b3098 */ 4412 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614606A: ret */ 4413 RECOMP_REGS_OUT(); 4414 } 4415 4416 void sub_36146070(void) { 4417 int _fpu_cmp = 0; 4418 uint32_t _cf = 0; 4419 int _df = 1; 4420 uint32_t _flag_k = FK_NONE; 4421 uint32_t _flag_a = 0, _flag_b = 0; 4422 uint32_t _itail_tgt = 0; 4423 RECOMP_REGS_LOCALS 4424 RECOMP_ENTER(0x36146070u); 4425 4426 L_36146070: 4427 goto L_36146080; /* 0x36146070: jmp 0x36146080 */ 4428 L_36146080: 4429 MEM32(0x3630D9A0) = 0x361B30CCu; /* 0x36146080: mov dword ptr [0x3630d9a0], 0x361b30cc */ 4430 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614608A: ret */ 4431 RECOMP_REGS_OUT(); 4432 } 4433 4434 void sub_36146080(void) { 4435 int _fpu_cmp = 0; 4436 uint32_t _cf = 0; 4437 int _df = 1; 4438 uint32_t _flag_k = FK_NONE; 4439 uint32_t _flag_a = 0, _flag_b = 0; 4440 uint32_t _itail_tgt = 0; 4441 RECOMP_REGS_LOCALS 4442 RECOMP_ENTER(0x36146080u); 4443 4444 L_36146080: 4445 MEM32(0x3630D9A0) = 0x361B30CCu; /* 0x36146080: mov dword ptr [0x3630d9a0], 0x361b30cc */ 4446 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614608A: ret */ 4447 RECOMP_REGS_OUT(); 4448 } 4449 4450 void sub_36146090(void) { 4451 int _fpu_cmp = 0; 4452 uint32_t _cf = 0; 4453 int _df = 1; 4454 uint32_t _flag_k = FK_NONE; 4455 uint32_t _flag_a = 0, _flag_b = 0; 4456 uint32_t _itail_tgt = 0; 4457 RECOMP_REGS_LOCALS 4458 RECOMP_ENTER(0x36146090u); 4459 4460 L_36146090: 4461 goto L_361460A0; /* 0x36146090: jmp 0x361460a0 */ 4462 L_361460A0: 4463 MEM32(0x3630D9C8) = 0x361B3100u; /* 0x361460A0: mov dword ptr [0x3630d9c8], 0x361b3100 */ 4464 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361460AA: ret */ 4465 RECOMP_REGS_OUT(); 4466 } 4467 4468 void sub_361460A0(void) { 4469 int _fpu_cmp = 0; 4470 uint32_t _cf = 0; 4471 int _df = 1; 4472 uint32_t _flag_k = FK_NONE; 4473 uint32_t _flag_a = 0, _flag_b = 0; 4474 uint32_t _itail_tgt = 0; 4475 RECOMP_REGS_LOCALS 4476 RECOMP_ENTER(0x361460A0u); 4477 4478 L_361460A0: 4479 MEM32(0x3630D9C8) = 0x361B3100u; /* 0x361460A0: mov dword ptr [0x3630d9c8], 0x361b3100 */ 4480 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361460AA: ret */ 4481 RECOMP_REGS_OUT(); 4482 } 4483 4484 void sub_361460B0(void) { 4485 int _fpu_cmp = 0; 4486 uint32_t _cf = 0; 4487 int _df = 1; 4488 uint32_t _flag_k = FK_NONE; 4489 uint32_t _flag_a = 0, _flag_b = 0; 4490 uint32_t _itail_tgt = 0; 4491 RECOMP_REGS_LOCALS 4492 RECOMP_ENTER(0x361460B0u); 4493 4494 L_361460B0: 4495 goto L_361460C0; /* 0x361460B0: jmp 0x361460c0 */ 4496 L_361460C0: 4497 MEM32(0x3630D9BC) = 0x361B3138u; /* 0x361460C0: mov dword ptr [0x3630d9bc], 0x361b3138 */ 4498 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361460CA: ret */ 4499 RECOMP_REGS_OUT(); 4500 } 4501 4502 void sub_361460C0(void) { 4503 int _fpu_cmp = 0; 4504 uint32_t _cf = 0; 4505 int _df = 1; 4506 uint32_t _flag_k = FK_NONE; 4507 uint32_t _flag_a = 0, _flag_b = 0; 4508 uint32_t _itail_tgt = 0; 4509 RECOMP_REGS_LOCALS 4510 RECOMP_ENTER(0x361460C0u); 4511 4512 L_361460C0: 4513 MEM32(0x3630D9BC) = 0x361B3138u; /* 0x361460C0: mov dword ptr [0x3630d9bc], 0x361b3138 */ 4514 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361460CA: ret */ 4515 RECOMP_REGS_OUT(); 4516 } 4517 4518 void sub_361460D0(void) { 4519 int _fpu_cmp = 0; 4520 uint32_t _cf = 0; 4521 int _df = 1; 4522 uint32_t _flag_k = FK_NONE; 4523 uint32_t _flag_a = 0, _flag_b = 0; 4524 uint32_t _itail_tgt = 0; 4525 RECOMP_REGS_LOCALS 4526 RECOMP_ENTER(0x361460D0u); 4527 4528 L_361460D0: 4529 goto L_361460E0; /* 0x361460D0: jmp 0x361460e0 */ 4530 L_361460E0: 4531 MEM32(0x3630D9C4) = 0x361B57A8u; /* 0x361460E0: mov dword ptr [0x3630d9c4], 0x361b57a8 */ 4532 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361460EA: ret */ 4533 RECOMP_REGS_OUT(); 4534 } 4535 4536 void sub_361460E0(void) { 4537 int _fpu_cmp = 0; 4538 uint32_t _cf = 0; 4539 int _df = 1; 4540 uint32_t _flag_k = FK_NONE; 4541 uint32_t _flag_a = 0, _flag_b = 0; 4542 uint32_t _itail_tgt = 0; 4543 RECOMP_REGS_LOCALS 4544 RECOMP_ENTER(0x361460E0u); 4545 4546 L_361460E0: 4547 MEM32(0x3630D9C4) = 0x361B57A8u; /* 0x361460E0: mov dword ptr [0x3630d9c4], 0x361b57a8 */ 4548 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361460EA: ret */ 4549 RECOMP_REGS_OUT(); 4550 } 4551 4552 void sub_361460F0(void) { 4553 int _fpu_cmp = 0; 4554 uint32_t _cf = 0; 4555 int _df = 1; 4556 uint32_t _flag_k = FK_NONE; 4557 uint32_t _flag_a = 0, _flag_b = 0; 4558 uint32_t _itail_tgt = 0; 4559 RECOMP_REGS_LOCALS 4560 RECOMP_ENTER(0x361460F0u); 4561 4562 L_361460F0: 4563 goto L_36146100; /* 0x361460F0: jmp 0x36146100 */ 4564 L_36146100: 4565 MEM32(0x3630D9AC) = 0x361B57E0u; /* 0x36146100: mov dword ptr [0x3630d9ac], 0x361b57e0 */ 4566 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614610A: ret */ 4567 RECOMP_REGS_OUT(); 4568 } 4569 4570 void sub_36146100(void) { 4571 int _fpu_cmp = 0; 4572 uint32_t _cf = 0; 4573 int _df = 1; 4574 uint32_t _flag_k = FK_NONE; 4575 uint32_t _flag_a = 0, _flag_b = 0; 4576 uint32_t _itail_tgt = 0; 4577 RECOMP_REGS_LOCALS 4578 RECOMP_ENTER(0x36146100u); 4579 4580 L_36146100: 4581 MEM32(0x3630D9AC) = 0x361B57E0u; /* 0x36146100: mov dword ptr [0x3630d9ac], 0x361b57e0 */ 4582 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614610A: ret */ 4583 RECOMP_REGS_OUT(); 4584 } 4585 4586 void sub_36146110(void) { 4587 int _fpu_cmp = 0; 4588 uint32_t _cf = 0; 4589 int _df = 1; 4590 uint32_t _flag_k = FK_NONE; 4591 uint32_t _flag_a = 0, _flag_b = 0; 4592 uint32_t _itail_tgt = 0; 4593 RECOMP_REGS_LOCALS 4594 RECOMP_ENTER(0x36146110u); 4595 4596 L_36146110: 4597 goto L_36146120; /* 0x36146110: jmp 0x36146120 */ 4598 L_36146120: 4599 MEM32(0x3630D99C) = 0x361B5814u; /* 0x36146120: mov dword ptr [0x3630d99c], 0x361b5814 */ 4600 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614612A: ret */ 4601 RECOMP_REGS_OUT(); 4602 } 4603 4604 void sub_36146120(void) { 4605 int _fpu_cmp = 0; 4606 uint32_t _cf = 0; 4607 int _df = 1; 4608 uint32_t _flag_k = FK_NONE; 4609 uint32_t _flag_a = 0, _flag_b = 0; 4610 uint32_t _itail_tgt = 0; 4611 RECOMP_REGS_LOCALS 4612 RECOMP_ENTER(0x36146120u); 4613 4614 L_36146120: 4615 MEM32(0x3630D99C) = 0x361B5814u; /* 0x36146120: mov dword ptr [0x3630d99c], 0x361b5814 */ 4616 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614612A: ret */ 4617 RECOMP_REGS_OUT(); 4618 } 4619 4620 void sub_36146130(void) { 4621 int _fpu_cmp = 0; 4622 uint32_t _cf = 0; 4623 int _df = 1; 4624 uint32_t _flag_k = FK_NONE; 4625 uint32_t _flag_a = 0, _flag_b = 0; 4626 uint32_t _itail_tgt = 0; 4627 RECOMP_REGS_LOCALS 4628 RECOMP_ENTER(0x36146130u); 4629 4630 L_36146130: 4631 goto L_36146140; /* 0x36146130: jmp 0x36146140 */ 4632 L_36146140: 4633 MEM32(0x3630D9CC) = 0x361B5850u; /* 0x36146140: mov dword ptr [0x3630d9cc], 0x361b5850 */ 4634 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614614A: ret */ 4635 RECOMP_REGS_OUT(); 4636 } 4637 4638 void sub_36146140(void) { 4639 int _fpu_cmp = 0; 4640 uint32_t _cf = 0; 4641 int _df = 1; 4642 uint32_t _flag_k = FK_NONE; 4643 uint32_t _flag_a = 0, _flag_b = 0; 4644 uint32_t _itail_tgt = 0; 4645 RECOMP_REGS_LOCALS 4646 RECOMP_ENTER(0x36146140u); 4647 4648 L_36146140: 4649 MEM32(0x3630D9CC) = 0x361B5850u; /* 0x36146140: mov dword ptr [0x3630d9cc], 0x361b5850 */ 4650 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614614A: ret */ 4651 RECOMP_REGS_OUT(); 4652 } 4653 4654 void sub_36146150(void) { 4655 int _fpu_cmp = 0; 4656 uint32_t _cf = 0; 4657 int _df = 1; 4658 uint32_t _flag_k = FK_NONE; 4659 uint32_t _flag_a = 0, _flag_b = 0; 4660 uint32_t _itail_tgt = 0; 4661 RECOMP_REGS_LOCALS 4662 RECOMP_ENTER(0x36146150u); 4663 4664 L_36146150: 4665 goto L_36146160; /* 0x36146150: jmp 0x36146160 */ 4666 L_36146160: 4667 MEM32(0x3630D9B8) = 0x361B5888u; /* 0x36146160: mov dword ptr [0x3630d9b8], 0x361b5888 */ 4668 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614616A: ret */ 4669 RECOMP_REGS_OUT(); 4670 } 4671 4672 void sub_36146160(void) { 4673 int _fpu_cmp = 0; 4674 uint32_t _cf = 0; 4675 int _df = 1; 4676 uint32_t _flag_k = FK_NONE; 4677 uint32_t _flag_a = 0, _flag_b = 0; 4678 uint32_t _itail_tgt = 0; 4679 RECOMP_REGS_LOCALS 4680 RECOMP_ENTER(0x36146160u); 4681 4682 L_36146160: 4683 MEM32(0x3630D9B8) = 0x361B5888u; /* 0x36146160: mov dword ptr [0x3630d9b8], 0x361b5888 */ 4684 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614616A: ret */ 4685 RECOMP_REGS_OUT(); 4686 } 4687 4688 void sub_36146170(void) { 4689 int _fpu_cmp = 0; 4690 uint32_t _cf = 0; 4691 int _df = 1; 4692 uint32_t _flag_k = FK_NONE; 4693 uint32_t _flag_a = 0, _flag_b = 0; 4694 uint32_t _itail_tgt = 0; 4695 RECOMP_REGS_LOCALS 4696 RECOMP_ENTER(0x36146170u); 4697 4698 L_36146170: 4699 goto L_36146180; /* 0x36146170: jmp 0x36146180 */ 4700 L_36146180: 4701 MEM32(0x3630D9A4) = 0x361B5908u; /* 0x36146180: mov dword ptr [0x3630d9a4], 0x361b5908 */ 4702 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614618A: ret */ 4703 RECOMP_REGS_OUT(); 4704 } 4705 4706 void sub_36146180(void) { 4707 int _fpu_cmp = 0; 4708 uint32_t _cf = 0; 4709 int _df = 1; 4710 uint32_t _flag_k = FK_NONE; 4711 uint32_t _flag_a = 0, _flag_b = 0; 4712 uint32_t _itail_tgt = 0; 4713 RECOMP_REGS_LOCALS 4714 RECOMP_ENTER(0x36146180u); 4715 4716 L_36146180: 4717 MEM32(0x3630D9A4) = 0x361B5908u; /* 0x36146180: mov dword ptr [0x3630d9a4], 0x361b5908 */ 4718 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614618A: ret */ 4719 RECOMP_REGS_OUT(); 4720 } 4721 4722 void sub_36146190(void) { 4723 int _fpu_cmp = 0; 4724 uint32_t _cf = 0; 4725 int _df = 1; 4726 uint32_t _flag_k = FK_NONE; 4727 uint32_t _flag_a = 0, _flag_b = 0; 4728 uint32_t _itail_tgt = 0; 4729 RECOMP_REGS_LOCALS 4730 RECOMP_ENTER(0x36146190u); 4731 4732 L_36146190: 4733 goto L_361461A0; /* 0x36146190: jmp 0x361461a0 */ 4734 L_361461A0: 4735 MEM32(0x3630D998) = 0x361B5944u; /* 0x361461A0: mov dword ptr [0x3630d998], 0x361b5944 */ 4736 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361461AA: ret */ 4737 RECOMP_REGS_OUT(); 4738 } 4739 4740 void sub_361461A0(void) { 4741 int _fpu_cmp = 0; 4742 uint32_t _cf = 0; 4743 int _df = 1; 4744 uint32_t _flag_k = FK_NONE; 4745 uint32_t _flag_a = 0, _flag_b = 0; 4746 uint32_t _itail_tgt = 0; 4747 RECOMP_REGS_LOCALS 4748 RECOMP_ENTER(0x361461A0u); 4749 4750 L_361461A0: 4751 MEM32(0x3630D998) = 0x361B5944u; /* 0x361461A0: mov dword ptr [0x3630d998], 0x361b5944 */ 4752 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361461AA: ret */ 4753 RECOMP_REGS_OUT(); 4754 } 4755 4756 void sub_361461B0(void) { 4757 int _fpu_cmp = 0; 4758 uint32_t _cf = 0; 4759 int _df = 1; 4760 uint32_t _flag_k = FK_NONE; 4761 uint32_t _flag_a = 0, _flag_b = 0; 4762 uint32_t _itail_tgt = 0; 4763 RECOMP_REGS_LOCALS 4764 RECOMP_ENTER(0x361461B0u); 4765 4766 L_361461B0: 4767 goto L_361461C0; /* 0x361461B0: jmp 0x361461c0 */ 4768 L_361461C0: 4769 MEM32(0x3630D9C0) = 0x361B5978u; /* 0x361461C0: mov dword ptr [0x3630d9c0], 0x361b5978 */ 4770 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361461CA: ret */ 4771 RECOMP_REGS_OUT(); 4772 } 4773 4774 void sub_361461C0(void) { 4775 int _fpu_cmp = 0; 4776 uint32_t _cf = 0; 4777 int _df = 1; 4778 uint32_t _flag_k = FK_NONE; 4779 uint32_t _flag_a = 0, _flag_b = 0; 4780 uint32_t _itail_tgt = 0; 4781 RECOMP_REGS_LOCALS 4782 RECOMP_ENTER(0x361461C0u); 4783 4784 L_361461C0: 4785 MEM32(0x3630D9C0) = 0x361B5978u; /* 0x361461C0: mov dword ptr [0x3630d9c0], 0x361b5978 */ 4786 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361461CA: ret */ 4787 RECOMP_REGS_OUT(); 4788 } 4789 4790 void sub_361461D0(void) { 4791 int _fpu_cmp = 0; 4792 uint32_t _cf = 0; 4793 int _df = 1; 4794 uint32_t _flag_k = FK_NONE; 4795 uint32_t _flag_a = 0, _flag_b = 0; 4796 uint32_t _itail_tgt = 0; 4797 RECOMP_REGS_LOCALS 4798 RECOMP_ENTER(0x361461D0u); 4799 4800 L_361461D0: 4801 goto L_361461E0; /* 0x361461D0: jmp 0x361461e0 */ 4802 L_361461E0: 4803 MEM32(0x3630D994) = 0x361B59ACu; /* 0x361461E0: mov dword ptr [0x3630d994], 0x361b59ac */ 4804 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361461EA: ret */ 4805 RECOMP_REGS_OUT(); 4806 } 4807 4808 void sub_361461E0(void) { 4809 int _fpu_cmp = 0; 4810 uint32_t _cf = 0; 4811 int _df = 1; 4812 uint32_t _flag_k = FK_NONE; 4813 uint32_t _flag_a = 0, _flag_b = 0; 4814 uint32_t _itail_tgt = 0; 4815 RECOMP_REGS_LOCALS 4816 RECOMP_ENTER(0x361461E0u); 4817 4818 L_361461E0: 4819 MEM32(0x3630D994) = 0x361B59ACu; /* 0x361461E0: mov dword ptr [0x3630d994], 0x361b59ac */ 4820 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361461EA: ret */ 4821 RECOMP_REGS_OUT(); 4822 } 4823 4824 void sub_361461F0(void) { 4825 int _fpu_cmp = 0; 4826 uint32_t _cf = 0; 4827 int _df = 1; 4828 uint32_t _flag_k = FK_NONE; 4829 uint32_t _flag_a = 0, _flag_b = 0; 4830 uint32_t _itail_tgt = 0; 4831 RECOMP_REGS_LOCALS 4832 RECOMP_ENTER(0x361461F0u); 4833 4834 L_361461F0: 4835 PUSH32(esp, ebp); /* 0x361461F0: push ebp */ 4836 ebp = esp; /* 0x361461F1: mov ebp, esp */ 4837 PUSH32(esp, esi); /* 0x361461F3: push esi */ 4838 esi = ecx; /* 0x361461F4: mov esi, ecx */ 4839 RECOMP_ICALL(0x3615BB60u); /* 0x361461F6: call 0x3615bb60 */ /* not lifted */ 4840 RECOMP_FLAGS_IN(); 4841 ecx = MEM32(ebp + 0x8); /* 0x361461FB: mov ecx, dword ptr [ebp + 8] */ 4842 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4843 eax = 0; /* 0x361461FE: xor eax, eax */ 4844 _cf = 0; 4845 _flag_k = FK_TEST; 4846 MEM32(esi + 0x8) = eax; /* 0x36146200: mov dword ptr [esi + 8], eax */ 4847 MEM32(esi + 0xC) = eax; /* 0x36146203: mov dword ptr [esi + 0xc], eax */ 4848 eax = 0xC772u; /* 0x36146206: mov eax, 0xc772 */ 4849 MEM32(esi + 0x8) = eax; /* 0x3614620B: mov dword ptr [esi + 8], eax */ 4850 MEM32(esi) = 0x36178854u; /* 0x3614620E: mov dword ptr [esi], 0x36178854 */ 4851 MEM32(esi + 0xC) = ecx; /* 0x36146214: mov dword ptr [esi + 0xc], ecx */ 4852 eax = esi; /* 0x36146217: mov eax, esi */ 4853 esi = POP32_VAL(esp); /* 0x36146219: pop esi */ 4854 ebp = POP32_VAL(esp); /* 0x3614621A: pop ebp */ 4855 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614621B: ret 4 */ 4856 RECOMP_REGS_OUT(); 4857 } 4858 4859 void sub_36146220(void) { 4860 int _fpu_cmp = 0; 4861 uint32_t _cf = 0; 4862 int _df = 1; 4863 uint32_t _flag_k = FK_NONE; 4864 uint32_t _flag_a = 0, _flag_b = 0; 4865 uint32_t _itail_tgt = 0; 4866 RECOMP_REGS_LOCALS 4867 RECOMP_ENTER(0x36146220u); 4868 4869 L_36146220: 4870 PUSH32(esp, ebp); /* 0x36146220: push ebp */ 4871 ebp = esp; /* 0x36146221: mov ebp, esp */ 4872 PUSH32(esp, 0xFFFFFFFFu); /* 0x36146223: push -1 */ 4873 PUSH32(esp, 0x3616CFF8u); /* 0x36146225: push 0x3616cff8 */ 4874 eax = MEM32(FS_BASE + (0)); /* 0x3614622A: mov eax, dword ptr fs:[0] */ 4875 PUSH32(esp, eax); /* 0x36146230: push eax */ 4876 MEM32(FS_BASE + (0)) = esp; /* 0x36146231: mov dword ptr fs:[0], esp */ 4877 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x40u); 4878 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4879 esp = esp - 0x40u; /* 0x36146238: sub esp, 0x40 */ 4880 _flag_k = FK_CMP; 4881 eax = MEM32(ebp + 0x8); /* 0x3614623B: mov eax, dword ptr [ebp + 8] */ 4882 PUSH32(esp, ebx); /* 0x3614623E: push ebx */ 4883 PUSH32(esp, esi); /* 0x3614623F: push esi */ 4884 esi = ecx; /* 0x36146240: mov esi, ecx */ 4885 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 4886 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4887 eax = eax + 0x10u; /* 0x36146242: add eax, 0x10 */ 4888 _flag_k = FK_ADD; 4889 ecx = ebp + (-0x34); /* 0x36146245: lea ecx, [ebp - 0x34] */ 4890 /* cmp ecx, eax */ /* 0x36146248: cmp ecx, eax */ 4891 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4892 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4893 _flag_k = FK_CMP; 4894 if (CMP_EQ(_flag_a, _flag_b)) goto L_36146257; /* 0x3614624A: je 0x36146257 */ 4895 L_3614624C: 4896 edx = MEM32(eax); /* 0x3614624C: mov edx, dword ptr [eax] */ 4897 eax = MEM32(eax + 0x4); /* 0x3614624E: mov eax, dword ptr [eax + 4] */ 4898 MEM32(ebp + (-0x34)) = edx; /* 0x36146251: mov dword ptr [ebp - 0x34], edx */ 4899 MEM32(ebp + (-0x30)) = eax; /* 0x36146254: mov dword ptr [ebp - 0x30], eax */ 4900 L_36146257: 4901 ecx = ebp + (-0x34); /* 0x36146257: lea ecx, [ebp - 0x34] */ 4902 PUSH32(esp, ecx); /* 0x3614625A: push ecx */ 4903 RECOMP_ICALL(MEM32(0x3616FD7C)); /* 0x3614625B: call dword ptr [0x3616fd7c] */ 4904 RECOMP_FLAGS_IN(); 4905 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4906 ebx = 0; /* 0x36146261: xor ebx, ebx */ 4907 _cf = 0; 4908 _flag_k = FK_TEST; 4909 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4910 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4911 esp = esp + 4; /* 0x36146263: add esp, 4 */ 4912 _flag_k = FK_ADD; 4913 /* cmp eax, ebx */ /* 0x36146266: cmp eax, ebx */ 4914 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4915 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4916 _flag_k = FK_CMP; 4917 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614627E; /* 0x36146268: je 0x3614627e */ 4918 L_3614626A: 4919 esi = POP32_VAL(esp); /* 0x3614626A: pop esi */ 4920 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4921 eax = 0; /* 0x3614626B: xor eax, eax */ 4922 _cf = 0; 4923 _flag_k = FK_TEST; 4924 ebx = POP32_VAL(esp); /* 0x3614626D: pop ebx */ 4925 ecx = MEM32(ebp + (-0xC)); /* 0x3614626E: mov ecx, dword ptr [ebp - 0xc] */ 4926 MEM32(FS_BASE + (0)) = ecx; /* 0x36146271: mov dword ptr fs:[0], ecx */ 4927 esp = ebp; /* 0x36146278: mov esp, ebp */ 4928 ebp = POP32_VAL(esp); /* 0x3614627A: pop ebp */ 4929 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614627B: ret 4 */ 4930 L_3614627E: 4931 ecx = MEM32(esi + 0x10); /* 0x3614627E: mov ecx, dword ptr [esi + 0x10] */ 4932 PUSH32(esp, edi); /* 0x36146281: push edi */ 4933 edi = MEM32(0x3616FA8C); /* 0x36146282: mov edi, dword ptr [0x3616fa8c] */ 4934 edx = ebp + (-0x14); /* 0x36146288: lea edx, [ebp - 0x14] */ 4935 PUSH32(esp, edx); /* 0x3614628B: push edx */ 4936 RECOMP_ICALL(edi); /* 0x3614628C: call edi */ 4937 RECOMP_FLAGS_IN(); 4938 ecx = ebp + (-0x18); /* 0x3614628E: lea ecx, [ebp - 0x18] */ 4939 PUSH32(esp, ecx); /* 0x36146291: push ecx */ 4940 ecx = eax; /* 0x36146292: mov ecx, eax */ 4941 RECOMP_ICALL(edi); /* 0x36146294: call edi */ 4942 RECOMP_FLAGS_IN(); 4943 ecx = MEM32(esi + 0x10); /* 0x36146296: mov ecx, dword ptr [esi + 0x10] */ 4944 edx = ebp + (-0x1C); /* 0x36146299: lea edx, [ebp - 0x1c] */ 4945 PUSH32(esp, edx); /* 0x3614629C: push edx */ 4946 RECOMP_ICALL(edi); /* 0x3614629D: call edi */ 4947 RECOMP_FLAGS_IN(); 4948 ecx = MEM32(esi + 0x10); /* 0x3614629F: mov ecx, dword ptr [esi + 0x10] */ 4949 eax = ebp + (-0x20); /* 0x361462A2: lea eax, [ebp - 0x20] */ 4950 PUSH32(esp, eax); /* 0x361462A5: push eax */ 4951 RECOMP_ICALL(edi); /* 0x361462A6: call edi */ 4952 RECOMP_FLAGS_IN(); 4953 ecx = ebp + (-0x10); /* 0x361462A8: lea ecx, [ebp - 0x10] */ 4954 PUSH32(esp, ecx); /* 0x361462AB: push ecx */ 4955 ecx = MEM32(esi + 0x10); /* 0x361462AC: mov ecx, dword ptr [esi + 0x10] */ 4956 RECOMP_ICALL(edi); /* 0x361462AF: call edi */ 4957 RECOMP_FLAGS_IN(); 4958 ecx = MEM32(esi + 0x10); /* 0x361462B1: mov ecx, dword ptr [esi + 0x10] */ 4959 edx = ebp + (-0x24); /* 0x361462B4: lea edx, [ebp - 0x24] */ 4960 PUSH32(esp, edx); /* 0x361462B7: push edx */ 4961 RECOMP_ICALL(edi); /* 0x361462B8: call edi */ 4962 RECOMP_FLAGS_IN(); 4963 ecx = MEM32(esi + 0x10); /* 0x361462BA: mov ecx, dword ptr [esi + 0x10] */ 4964 eax = ebp + (-0x28); /* 0x361462BD: lea eax, [ebp - 0x28] */ 4965 PUSH32(esp, eax); /* 0x361462C0: push eax */ 4966 RECOMP_ICALL(edi); /* 0x361462C1: call edi */ 4967 RECOMP_FLAGS_IN(); 4968 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x361462C3: mov cl, byte ptr [ebp + 0xb] */ 4969 MEM8(ebp + (-0x4C)) = (uint8_t)(LO8(ecx)); /* 0x361462C6: mov byte ptr [ebp - 0x4c], cl */ 4970 MEM32(ebp + (-0x48)) = ebx; /* 0x361462C9: mov dword ptr [ebp - 0x48], ebx */ 4971 MEM32(ebp + (-0x44)) = ebx; /* 0x361462CC: mov dword ptr [ebp - 0x44], ebx */ 4972 MEM32(ebp + (-0x40)) = ebx; /* 0x361462CF: mov dword ptr [ebp - 0x40], ebx */ 4973 eax = MEM32(esi + 0x10); /* 0x361462D2: mov eax, dword ptr [esi + 0x10] */ 4974 edx = ebp + (-0x4C); /* 0x361462D5: lea edx, [ebp - 0x4c] */ 4975 PUSH32(esp, edx); /* 0x361462D8: push edx */ 4976 PUSH32(esp, eax); /* 0x361462D9: push eax */ 4977 MEM32(ebp + (-0x4)) = ebx; /* 0x361462DA: mov dword ptr [ebp - 4], ebx */ 4978 RECOMP_ICALL(0x3600B9B0u); /* 0x361462DD: call 0x3600b9b0 */ /* not lifted */ 4979 RECOMP_FLAGS_IN(); 4980 ecx = MEM32(esi + 0x10); /* 0x361462E2: mov ecx, dword ptr [esi + 0x10] */ 4981 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4982 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4983 esp = esp + 8; /* 0x361462E5: add esp, 8 */ 4984 _flag_k = FK_ADD; 4985 edx = ebp + (-0x2C); /* 0x361462E8: lea edx, [ebp - 0x2c] */ 4986 PUSH32(esp, edx); /* 0x361462EB: push edx */ 4987 RECOMP_ICALL(edi); /* 0x361462EC: call edi */ 4988 RECOMP_FLAGS_IN(); 4989 edx = MEM32(ebp + 0x8); /* 0x361462EE: mov edx, dword ptr [ebp + 8] */ 4990 eax = MEM32(ebp + (-0x10)); /* 0x361462F1: mov eax, dword ptr [ebp - 0x10] */ 4991 ecx = ebp + (-0x3C); /* 0x361462F4: lea ecx, [ebp - 0x3c] */ 4992 PUSH32(esp, ecx); /* 0x361462F7: push ecx */ 4993 PUSH32(esp, edx); /* 0x361462F8: push edx */ 4994 MEM32(ebp + (-0x3C)) = 0x000F4241u; /* 0x361462F9: mov dword ptr [ebp - 0x3c], 0xf4241 */ 4995 MEM32(ebp + (-0x38)) = eax; /* 0x36146300: mov dword ptr [ebp - 0x38], eax */ 4996 RECOMP_ICALL(0x3614CCC0u); /* 0x36146303: call 0x3614ccc0 */ /* not lifted */ 4997 RECOMP_FLAGS_IN(); 4998 edi = eax; /* 0x36146308: mov edi, eax */ 4999 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5000 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5001 esp = esp + 8; /* 0x3614630A: add esp, 8 */ 5002 _flag_k = FK_ADD; 5003 /* cmp edi, ebx */ /* 0x3614630D: cmp edi, ebx */ 5004 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 5005 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5006 _flag_k = FK_CMP; 5007 if (CMP_EQ(_flag_a, _flag_b)) goto L_36146320; /* 0x3614630F: je 0x36146320 */ 5008 L_36146311: 5009 eax = MEM32(esi + 0x10); /* 0x36146311: mov eax, dword ptr [esi + 0x10] */ 5010 ecx = MEM32(edi + 0xE0); /* 0x36146314: mov ecx, dword ptr [edi + 0xe0] */ 5011 PUSH32(esp, eax); /* 0x3614631A: push eax */ 5012 RECOMP_ICALL(0x3615C380u); /* 0x3614631B: call 0x3615c380 */ /* not lifted */ 5013 RECOMP_FLAGS_IN(); 5014 L_36146320: 5015 eax = MEM32(ebp + (-0x44)); /* 0x36146320: mov eax, dword ptr [ebp - 0x44] */ 5016 esi = MEM32(ebp + (-0x48)); /* 0x36146323: mov esi, dword ptr [ebp - 0x48] */ 5017 /* cmp esi, eax */ /* 0x36146326: cmp esi, eax */ 5018 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 5019 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5020 _flag_k = FK_CMP; 5021 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36146328: mov dword ptr [ebp - 4], 0xffffffff */ 5022 MEM32(ebp + 0x8) = eax; /* 0x3614632F: mov dword ptr [ebp + 8], eax */ 5023 if (CMP_EQ(_flag_a, _flag_b)) goto L_36146348; /* 0x36146332: je 0x36146348 */ 5024 L_36146334: 5025 edx = MEM32(esi); /* 0x36146334: mov edx, dword ptr [esi] */ 5026 PUSH32(esp, ebx); /* 0x36146336: push ebx */ 5027 ecx = esi; /* 0x36146337: mov ecx, esi */ 5028 RECOMP_ICALL(MEM32(edx)); /* 0x36146339: call dword ptr [edx] */ 5029 RECOMP_FLAGS_IN(); 5030 eax = MEM32(ebp + 0x8); /* 0x3614633B: mov eax, dword ptr [ebp + 8] */ 5031 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 5032 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5033 esi = esi + 0x34u; /* 0x3614633E: add esi, 0x34 */ 5034 _flag_k = FK_ADD; 5035 /* cmp esi, eax */ /* 0x36146341: cmp esi, eax */ 5036 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 5037 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5038 _flag_k = FK_CMP; 5039 RECOMP_BACKEDGE(); 5040 if (CMP_NE(_flag_a, _flag_b)) goto L_36146334; /* 0x36146343: jne 0x36146334 */ 5041 L_36146345: 5042 esi = MEM32(ebp + (-0x48)); /* 0x36146345: mov esi, dword ptr [ebp - 0x48] */ 5043 L_36146348: 5044 PUSH32(esp, esi); /* 0x36146348: push esi */ 5045 RECOMP_ICALL(0x3615FCC4u); /* 0x36146349: call 0x3615fcc4 */ /* not lifted */ 5046 RECOMP_FLAGS_IN(); 5047 ecx = MEM32(ebp + (-0xC)); /* 0x3614634E: mov ecx, dword ptr [ebp - 0xc] */ 5048 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5049 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5050 esp = esp + 4; /* 0x36146351: add esp, 4 */ 5051 _flag_k = FK_ADD; 5052 eax = edi; /* 0x36146354: mov eax, edi */ 5053 edi = POP32_VAL(esp); /* 0x36146356: pop edi */ 5054 esi = POP32_VAL(esp); /* 0x36146357: pop esi */ 5055 ebx = POP32_VAL(esp); /* 0x36146358: pop ebx */ 5056 MEM32(FS_BASE + (0)) = ecx; /* 0x36146359: mov dword ptr fs:[0], ecx */ 5057 esp = ebp; /* 0x36146360: mov esp, ebp */ 5058 ebp = POP32_VAL(esp); /* 0x36146362: pop ebp */ 5059 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36146363: ret 4 */ 5060 RECOMP_REGS_OUT(); 5061 } 5062 5063 void sub_36146370(void) { 5064 int _fpu_cmp = 0; 5065 uint32_t _cf = 0; 5066 int _df = 1; 5067 uint32_t _flag_k = FK_NONE; 5068 uint32_t _flag_a = 0, _flag_b = 0; 5069 uint32_t _itail_tgt = 0; 5070 RECOMP_REGS_LOCALS 5071 RECOMP_ENTER(0x36146370u); 5072 5073 L_36146370: 5074 PUSH32(esp, ebp); /* 0x36146370: push ebp */ 5075 ebp = esp; /* 0x36146371: mov ebp, esp */ 5076 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5077 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5078 esp = esp - 0x10u; /* 0x36146373: sub esp, 0x10 */ 5079 _flag_k = FK_CMP; 5080 PUSH32(esp, ebx); /* 0x36146376: push ebx */ 5081 PUSH32(esp, esi); /* 0x36146377: push esi */ 5082 PUSH32(esp, edi); /* 0x36146378: push edi */ 5083 RECOMP_ICALL(MEM32(0x3616FE1C)); /* 0x36146379: call dword ptr [0x3616fe1c] */ 5084 RECOMP_FLAGS_IN(); 5085 ecx = eax; /* 0x3614637F: mov ecx, eax */ 5086 RECOMP_ICALL(MEM32(0x3616FE18)); /* 0x36146381: call dword ptr [0x3616fe18] */ 5087 RECOMP_FLAGS_IN(); 5088 PUSH32(esp, 1); /* 0x36146387: push 1 */ 5089 PUSH32(esp, 0x361B66A0u); /* 0x36146389: push 0x361b66a0 */ 5090 PUSH32(esp, 0x361B6680u); /* 0x3614638E: push 0x361b6680 */ 5091 esi = eax; /* 0x36146393: mov esi, eax */ 5092 eax = MEM32(ebp + 0x8); /* 0x36146395: mov eax, dword ptr [ebp + 8] */ 5093 PUSH32(esp, 0); /* 0x36146398: push 0 */ 5094 PUSH32(esp, eax); /* 0x3614639A: push eax */ 5095 RECOMP_ICALL(0x3615FD86u); /* 0x3614639B: call 0x3615fd86 */ /* not lifted */ 5096 RECOMP_FLAGS_IN(); 5097 edi = eax; /* 0x361463A0: mov edi, eax */ 5098 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 5099 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5100 esp = esp + 0x14u; /* 0x361463A2: add esp, 0x14 */ 5101 _flag_k = FK_ADD; 5102 ecx = edi; /* 0x361463A5: mov ecx, edi */ 5103 RECOMP_ICALL(MEM32(0x36170040)); /* 0x361463A7: call dword ptr [0x36170040] */ 5104 RECOMP_FLAGS_IN(); 5105 edx = MEM32(edi); /* 0x361463AD: mov edx, dword ptr [edi] */ 5106 PUSH32(esp, 0); /* 0x361463AF: push 0 */ 5107 PUSH32(esp, 0x362E6E30u); /* 0x361463B1: push 0x362e6e30 */ 5108 PUSH32(esp, 0x361B6528u); /* 0x361463B6: push 0x361b6528 */ 5109 PUSH32(esp, 0); /* 0x361463BB: push 0 */ 5110 ecx = edi; /* 0x361463BD: mov ecx, edi */ 5111 RECOMP_ICALL(MEM32(edx + 0x34)); /* 0x361463BF: call dword ptr [edx + 0x34] */ 5112 RECOMP_FLAGS_IN(); 5113 PUSH32(esp, eax); /* 0x361463C2: push eax */ 5114 RECOMP_ICALL(0x3615FD86u); /* 0x361463C3: call 0x3615fd86 */ /* not lifted */ 5115 RECOMP_FLAGS_IN(); 5116 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 5117 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5118 esp = esp + 0x14u; /* 0x361463C8: add esp, 0x14 */ 5119 _flag_k = FK_ADD; 5120 /* test eax, eax */ /* 0x361463CB: test eax, eax */ 5121 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5122 _cf = 0; 5123 _flag_k = FK_TEST; 5124 if (TEST_NZ(_flag_a, _flag_b)) goto L_361463DA; /* 0x361463CD: jne 0x361463da */ 5125 L_361463CF: 5126 edi = POP32_VAL(esp); /* 0x361463CF: pop edi */ 5127 esi = POP32_VAL(esp); /* 0x361463D0: pop esi */ 5128 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 5129 SET_LO8(eax, 0); /* 0x361463D1: xor al, al */ 5130 _cf = 0; 5131 _flag_k = FK_NARROW(FK_TEST, 24); 5132 ebx = POP32_VAL(esp); /* 0x361463D3: pop ebx */ 5133 esp = ebp; /* 0x361463D4: mov esp, ebp */ 5134 ebp = POP32_VAL(esp); /* 0x361463D6: pop ebp */ 5135 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361463D7: ret 4 */ 5136 L_361463DA: 5137 ecx = eax; /* 0x361463DA: mov ecx, eax */ 5138 RECOMP_ICALL(0x360F1670u); /* 0x361463DC: call 0x360f1670 */ /* not lifted */ 5139 RECOMP_FLAGS_IN(); 5140 PUSH32(esp, 0); /* 0x361463E1: push 0 */ 5141 PUSH32(esp, 0x362E6E08u); /* 0x361463E3: push 0x362e6e08 */ 5142 PUSH32(esp, 0x361B6528u); /* 0x361463E8: push 0x361b6528 */ 5143 PUSH32(esp, 0); /* 0x361463ED: push 0 */ 5144 ecx = ebp + (-0x8); /* 0x361463EF: lea ecx, [ebp - 8] */ 5145 MEM32(ebp + 0x8) = eax; /* 0x361463F2: mov dword ptr [ebp + 8], eax */ 5146 MEM32(ebp + (-0x8)) = 0x000F425Du; /* 0x361463F5: mov dword ptr [ebp - 8], 0xf425d */ 5147 MEM32(ebp + (-0x4)) = eax; /* 0x361463FC: mov dword ptr [ebp - 4], eax */ 5148 eax = MEM32(esi); /* 0x361463FF: mov eax, dword ptr [esi] */ 5149 PUSH32(esp, ecx); /* 0x36146401: push ecx */ 5150 ecx = esi; /* 0x36146402: mov ecx, esi */ 5151 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x36146404: call dword ptr [eax + 8] */ 5152 RECOMP_FLAGS_IN(); 5153 PUSH32(esp, eax); /* 0x36146407: push eax */ 5154 RECOMP_ICALL(0x3615FD86u); /* 0x36146408: call 0x3615fd86 */ /* not lifted */ 5155 RECOMP_FLAGS_IN(); 5156 ebx = eax; /* 0x3614640D: mov ebx, eax */ 5157 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 5158 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5159 esp = esp + 0x14u; /* 0x3614640F: add esp, 0x14 */ 5160 _flag_k = FK_ADD; 5161 /* test ebx, ebx */ /* 0x36146412: test ebx, ebx */ 5162 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 5163 _cf = 0; 5164 _flag_k = FK_TEST; 5165 if (TEST_NZ(_flag_a, _flag_b)) goto L_36146421; /* 0x36146414: jne 0x36146421 */ 5166 L_36146416: 5167 edi = POP32_VAL(esp); /* 0x36146416: pop edi */ 5168 esi = POP32_VAL(esp); /* 0x36146417: pop esi */ 5169 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 5170 SET_LO8(eax, 0); /* 0x36146418: xor al, al */ 5171 _cf = 0; 5172 _flag_k = FK_NARROW(FK_TEST, 24); 5173 ebx = POP32_VAL(esp); /* 0x3614641A: pop ebx */ 5174 esp = ebp; /* 0x3614641B: mov esp, ebp */ 5175 ebp = POP32_VAL(esp); /* 0x3614641D: pop ebp */ 5176 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614641E: ret 4 */ 5177 L_36146421: 5178 PUSH32(esp, ebx); /* 0x36146421: push ebx */ 5179 ecx = edi; /* 0x36146422: mov ecx, edi */ 5180 RECOMP_ICALL(0x3614CE40u); /* 0x36146424: call 0x3614ce40 */ /* not lifted */ 5181 RECOMP_FLAGS_IN(); 5182 ecx = ebx; /* 0x36146429: mov ecx, ebx */ 5183 ebx = MEM32(0x3616FB14); /* 0x3614642B: mov ebx, dword ptr [0x3616fb14] */ 5184 RECOMP_ICALL(ebx); /* 0x36146431: call ebx */ 5185 RECOMP_FLAGS_IN(); 5186 edx = MEM32(ebp + 0x8); /* 0x36146433: mov edx, dword ptr [ebp + 8] */ 5187 PUSH32(esp, 0); /* 0x36146436: push 0 */ 5188 PUSH32(esp, 0x362E3D98u); /* 0x36146438: push 0x362e3d98 */ 5189 PUSH32(esp, 0x361B6528u); /* 0x3614643D: push 0x361b6528 */ 5190 PUSH32(esp, 0); /* 0x36146442: push 0 */ 5191 ecx = ebp + (-0x10); /* 0x36146444: lea ecx, [ebp - 0x10] */ 5192 MEM32(ebp + (-0x10)) = 0x000F424Eu; /* 0x36146447: mov dword ptr [ebp - 0x10], 0xf424e */ 5193 MEM32(ebp + (-0xC)) = edx; /* 0x3614644E: mov dword ptr [ebp - 0xc], edx */ 5194 eax = MEM32(esi); /* 0x36146451: mov eax, dword ptr [esi] */ 5195 PUSH32(esp, ecx); /* 0x36146453: push ecx */ 5196 ecx = esi; /* 0x36146454: mov ecx, esi */ 5197 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x36146456: call dword ptr [eax + 8] */ 5198 RECOMP_FLAGS_IN(); 5199 PUSH32(esp, eax); /* 0x36146459: push eax */ 5200 RECOMP_ICALL(0x3615FD86u); /* 0x3614645A: call 0x3615fd86 */ /* not lifted */ 5201 RECOMP_FLAGS_IN(); 5202 esi = eax; /* 0x3614645F: mov esi, eax */ 5203 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 5204 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5205 esp = esp + 0x14u; /* 0x36146461: add esp, 0x14 */ 5206 _flag_k = FK_ADD; 5207 /* test esi, esi */ /* 0x36146464: test esi, esi */ 5208 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 5209 _cf = 0; 5210 _flag_k = FK_TEST; 5211 if (TEST_NZ(_flag_a, _flag_b)) goto L_36146473; /* 0x36146466: jne 0x36146473 */ 5212 L_36146468: 5213 edi = POP32_VAL(esp); /* 0x36146468: pop edi */ 5214 esi = POP32_VAL(esp); /* 0x36146469: pop esi */ 5215 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 5216 SET_LO8(eax, 0); /* 0x3614646A: xor al, al */ 5217 _cf = 0; 5218 _flag_k = FK_NARROW(FK_TEST, 24); 5219 ebx = POP32_VAL(esp); /* 0x3614646C: pop ebx */ 5220 esp = ebp; /* 0x3614646D: mov esp, ebp */ 5221 ebp = POP32_VAL(esp); /* 0x3614646F: pop ebp */ 5222 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36146470: ret 4 */ 5223 L_36146473: 5224 PUSH32(esp, esi); /* 0x36146473: push esi */ 5225 ecx = edi; /* 0x36146474: mov ecx, edi */ 5226 RECOMP_ICALL(0x3614CE80u); /* 0x36146476: call 0x3614ce80 */ /* not lifted */ 5227 RECOMP_FLAGS_IN(); 5228 ecx = esi; /* 0x3614647B: mov ecx, esi */ 5229 RECOMP_ICALL(ebx); /* 0x3614647D: call ebx */ 5230 RECOMP_FLAGS_IN(); 5231 edi = POP32_VAL(esp); /* 0x3614647F: pop edi */ 5232 esi = POP32_VAL(esp); /* 0x36146480: pop esi */ 5233 SET_LO8(eax, 1); /* 0x36146481: mov al, 1 */ 5234 ebx = POP32_VAL(esp); /* 0x36146483: pop ebx */ 5235 esp = ebp; /* 0x36146484: mov esp, ebp */ 5236 ebp = POP32_VAL(esp); /* 0x36146486: pop ebp */ 5237 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36146487: ret 4 */ 5238 RECOMP_REGS_OUT(); 5239 } 5240 5241 void sub_36146490(void) { 5242 int _fpu_cmp = 0; 5243 uint32_t _cf = 0; 5244 int _df = 1; 5245 uint32_t _flag_k = FK_NONE; 5246 uint32_t _flag_a = 0, _flag_b = 0; 5247 uint32_t _itail_tgt = 0; 5248 RECOMP_REGS_LOCALS 5249 RECOMP_ENTER(0x36146490u); 5250 5251 L_36146490: 5252 PUSH32(esp, ebx); /* 0x36146490: push ebx */ 5253 PUSH32(esp, esi); /* 0x36146491: push esi */ 5254 PUSH32(esp, edi); /* 0x36146492: push edi */ 5255 edi = ecx; /* 0x36146493: mov edi, ecx */ 5256 ebx = MEM32(edi + 0x8); /* 0x36146495: mov ebx, dword ptr [edi + 8] */ 5257 esi = MEM32(edi + 0x4); /* 0x36146498: mov esi, dword ptr [edi + 4] */ 5258 /* cmp esi, ebx */ /* 0x3614649B: cmp esi, ebx */ 5259 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 5260 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5261 _flag_k = FK_CMP; 5262 if (CMP_EQ(_flag_a, _flag_b)) goto L_361464AE; /* 0x3614649D: je 0x361464ae */ 5263 L_3614649F: 5264 eax = MEM32(esi); /* 0x3614649F: mov eax, dword ptr [esi] */ 5265 PUSH32(esp, 0); /* 0x361464A1: push 0 */ 5266 ecx = esi; /* 0x361464A3: mov ecx, esi */ 5267 RECOMP_ICALL(MEM32(eax)); /* 0x361464A5: call dword ptr [eax] */ 5268 RECOMP_FLAGS_IN(); 5269 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 5270 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5271 esi = esi + 0x34u; /* 0x361464A7: add esi, 0x34 */ 5272 _flag_k = FK_ADD; 5273 /* cmp esi, ebx */ /* 0x361464AA: cmp esi, ebx */ 5274 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 5275 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5276 _flag_k = FK_CMP; 5277 RECOMP_BACKEDGE(); 5278 if (CMP_NE(_flag_a, _flag_b)) goto L_3614649F; /* 0x361464AC: jne 0x3614649f */ 5279 L_361464AE: 5280 ecx = MEM32(edi + 0x4); /* 0x361464AE: mov ecx, dword ptr [edi + 4] */ 5281 PUSH32(esp, ecx); /* 0x361464B1: push ecx */ 5282 RECOMP_ICALL(0x3615FCC4u); /* 0x361464B2: call 0x3615fcc4 */ /* not lifted */ 5283 RECOMP_FLAGS_IN(); 5284 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5285 eax = 0; /* 0x361464B7: xor eax, eax */ 5286 _cf = 0; 5287 _flag_k = FK_TEST; 5288 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5289 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5290 esp = esp + 4; /* 0x361464B9: add esp, 4 */ 5291 _flag_k = FK_ADD; 5292 MEM32(edi + 0x4) = eax; /* 0x361464BC: mov dword ptr [edi + 4], eax */ 5293 MEM32(edi + 0x8) = eax; /* 0x361464BF: mov dword ptr [edi + 8], eax */ 5294 MEM32(edi + 0xC) = eax; /* 0x361464C2: mov dword ptr [edi + 0xc], eax */ 5295 edi = POP32_VAL(esp); /* 0x361464C5: pop edi */ 5296 esi = POP32_VAL(esp); /* 0x361464C6: pop esi */ 5297 ebx = POP32_VAL(esp); /* 0x361464C7: pop ebx */ 5298 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361464C8: ret */ 5299 RECOMP_REGS_OUT(); 5300 } 5301 5302 void sub_361464D0(void) { 5303 int _fpu_cmp = 0; 5304 uint32_t _cf = 0; 5305 int _df = 1; 5306 uint32_t _flag_k = FK_NONE; 5307 uint32_t _flag_a = 0, _flag_b = 0; 5308 uint32_t _itail_tgt = 0; 5309 RECOMP_REGS_LOCALS 5310 RECOMP_ENTER(0x361464D0u); 5311 5312 L_361464D0: 5313 RECOMP_ICALL(0x361464E0u); /* 0x361464D0: call 0x361464e0 */ /* not lifted */ 5314 RECOMP_FLAGS_IN(); 5315 goto L_361464F0; /* 0x361464D5: jmp 0x361464f0 */ 5316 L_361464F0: 5317 PUSH32(esp, 0x36146500u); /* 0x361464F0: push 0x36146500 */ 5318 RECOMP_ICALL(0x3615FEB2u); /* 0x361464F5: call 0x3615feb2 */ /* not lifted */ 5319 RECOMP_FLAGS_IN(); 5320 ecx = POP32_VAL(esp); /* 0x361464FA: pop ecx */ 5321 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361464FB: ret */ 5322 RECOMP_REGS_OUT(); 5323 } 5324 5325 void sub_361464E0(void) { 5326 int _fpu_cmp = 0; 5327 uint32_t _cf = 0; 5328 int _df = 1; 5329 uint32_t _flag_k = FK_NONE; 5330 uint32_t _flag_a = 0, _flag_b = 0; 5331 uint32_t _itail_tgt = 0; 5332 RECOMP_REGS_LOCALS 5333 RECOMP_ENTER(0x361464E0u); 5334 5335 L_361464E0: 5336 ecx = 0x3630D9EDu; /* 0x361464E0: mov ecx, 0x3630d9ed */ 5337 L_361464E5: 5338 { _itail_tgt = (uint32_t)(MEM32(0x3616F140)); goto _ljump; } 5339 { RECOMP_REGS_OUT(); return; } /* end of function */ 5340 _ljump: 5341 switch (_itail_tgt) { 5342 case 0x361464E0u: goto L_361464E0; 5343 case 0x361464E5u: goto L_361464E5; 5344 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5345 } 5346 RECOMP_REGS_OUT(); 5347 } 5348 5349 void sub_361464F0(void) { 5350 int _fpu_cmp = 0; 5351 uint32_t _cf = 0; 5352 int _df = 1; 5353 uint32_t _flag_k = FK_NONE; 5354 uint32_t _flag_a = 0, _flag_b = 0; 5355 uint32_t _itail_tgt = 0; 5356 RECOMP_REGS_LOCALS 5357 RECOMP_ENTER(0x361464F0u); 5358 5359 L_361464F0: 5360 PUSH32(esp, 0x36146500u); /* 0x361464F0: push 0x36146500 */ 5361 RECOMP_ICALL(0x3615FEB2u); /* 0x361464F5: call 0x3615feb2 */ /* not lifted */ 5362 RECOMP_FLAGS_IN(); 5363 ecx = POP32_VAL(esp); /* 0x361464FA: pop ecx */ 5364 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361464FB: ret */ 5365 RECOMP_REGS_OUT(); 5366 } 5367 5368 void sub_36146500(void) { 5369 int _fpu_cmp = 0; 5370 uint32_t _cf = 0; 5371 int _df = 1; 5372 uint32_t _flag_k = FK_NONE; 5373 uint32_t _flag_a = 0, _flag_b = 0; 5374 uint32_t _itail_tgt = 0; 5375 RECOMP_REGS_LOCALS 5376 RECOMP_ENTER(0x36146500u); 5377 5378 L_36146500: 5379 ecx = 0x3630D9EDu; /* 0x36146500: mov ecx, 0x3630d9ed */ 5380 L_36146505: 5381 { _itail_tgt = (uint32_t)(MEM32(0x3616F144)); goto _ljump; } 5382 { RECOMP_REGS_OUT(); return; } /* end of function */ 5383 _ljump: 5384 switch (_itail_tgt) { 5385 case 0x36146500u: goto L_36146500; 5386 case 0x36146505u: goto L_36146505; 5387 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5388 } 5389 RECOMP_REGS_OUT(); 5390 } 5391 5392 void sub_36146510(void) { 5393 int _fpu_cmp = 0; 5394 uint32_t _cf = 0; 5395 int _df = 1; 5396 uint32_t _flag_k = FK_NONE; 5397 uint32_t _flag_a = 0, _flag_b = 0; 5398 uint32_t _itail_tgt = 0; 5399 RECOMP_REGS_LOCALS 5400 RECOMP_ENTER(0x36146510u); 5401 5402 L_36146510: 5403 RECOMP_ICALL(0x36146520u); /* 0x36146510: call 0x36146520 */ /* not lifted */ 5404 RECOMP_FLAGS_IN(); 5405 goto L_36146530; /* 0x36146515: jmp 0x36146530 */ 5406 L_36146530: 5407 PUSH32(esp, 0x36146540u); /* 0x36146530: push 0x36146540 */ 5408 RECOMP_ICALL(0x3615FEB2u); /* 0x36146535: call 0x3615feb2 */ /* not lifted */ 5409 RECOMP_FLAGS_IN(); 5410 ecx = POP32_VAL(esp); /* 0x3614653A: pop ecx */ 5411 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614653B: ret */ 5412 RECOMP_REGS_OUT(); 5413 } 5414 5415 void sub_36146520(void) { 5416 int _fpu_cmp = 0; 5417 uint32_t _cf = 0; 5418 int _df = 1; 5419 uint32_t _flag_k = FK_NONE; 5420 uint32_t _flag_a = 0, _flag_b = 0; 5421 uint32_t _itail_tgt = 0; 5422 RECOMP_REGS_LOCALS 5423 RECOMP_ENTER(0x36146520u); 5424 5425 L_36146520: 5426 ecx = 0x3630D9ECu; /* 0x36146520: mov ecx, 0x3630d9ec */ 5427 L_36146525: 5428 { _itail_tgt = (uint32_t)(MEM32(0x3616F148)); goto _ljump; } 5429 { RECOMP_REGS_OUT(); return; } /* end of function */ 5430 _ljump: 5431 switch (_itail_tgt) { 5432 case 0x36146520u: goto L_36146520; 5433 case 0x36146525u: goto L_36146525; 5434 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5435 } 5436 RECOMP_REGS_OUT(); 5437 } 5438 5439 void sub_36146530(void) { 5440 int _fpu_cmp = 0; 5441 uint32_t _cf = 0; 5442 int _df = 1; 5443 uint32_t _flag_k = FK_NONE; 5444 uint32_t _flag_a = 0, _flag_b = 0; 5445 uint32_t _itail_tgt = 0; 5446 RECOMP_REGS_LOCALS 5447 RECOMP_ENTER(0x36146530u); 5448 5449 L_36146530: 5450 PUSH32(esp, 0x36146540u); /* 0x36146530: push 0x36146540 */ 5451 RECOMP_ICALL(0x3615FEB2u); /* 0x36146535: call 0x3615feb2 */ /* not lifted */ 5452 RECOMP_FLAGS_IN(); 5453 ecx = POP32_VAL(esp); /* 0x3614653A: pop ecx */ 5454 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614653B: ret */ 5455 RECOMP_REGS_OUT(); 5456 } 5457 5458 void sub_36146540(void) { 5459 int _fpu_cmp = 0; 5460 uint32_t _cf = 0; 5461 int _df = 1; 5462 uint32_t _flag_k = FK_NONE; 5463 uint32_t _flag_a = 0, _flag_b = 0; 5464 uint32_t _itail_tgt = 0; 5465 RECOMP_REGS_LOCALS 5466 RECOMP_ENTER(0x36146540u); 5467 5468 L_36146540: 5469 ecx = 0x3630D9ECu; /* 0x36146540: mov ecx, 0x3630d9ec */ 5470 L_36146545: 5471 { _itail_tgt = (uint32_t)(MEM32(0x3616F14C)); goto _ljump; } 5472 { RECOMP_REGS_OUT(); return; } /* end of function */ 5473 _ljump: 5474 switch (_itail_tgt) { 5475 case 0x36146540u: goto L_36146540; 5476 case 0x36146545u: goto L_36146545; 5477 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5478 } 5479 RECOMP_REGS_OUT(); 5480 } 5481 5482 void sub_36146550(void) { 5483 int _fpu_cmp = 0; 5484 uint32_t _cf = 0; 5485 int _df = 1; 5486 uint32_t _flag_k = FK_NONE; 5487 uint32_t _flag_a = 0, _flag_b = 0; 5488 uint32_t _itail_tgt = 0; 5489 RECOMP_REGS_LOCALS 5490 RECOMP_ENTER(0x36146550u); 5491 5492 L_36146550: 5493 goto L_36146560; /* 0x36146550: jmp 0x36146560 */ 5494 L_36146560: 5495 MEM32(0x3630D9D4) = 0x361B2FF4u; /* 0x36146560: mov dword ptr [0x3630d9d4], 0x361b2ff4 */ 5496 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614656A: ret */ 5497 RECOMP_REGS_OUT(); 5498 } 5499 5500 void sub_36146560(void) { 5501 int _fpu_cmp = 0; 5502 uint32_t _cf = 0; 5503 int _df = 1; 5504 uint32_t _flag_k = FK_NONE; 5505 uint32_t _flag_a = 0, _flag_b = 0; 5506 uint32_t _itail_tgt = 0; 5507 RECOMP_REGS_LOCALS 5508 RECOMP_ENTER(0x36146560u); 5509 5510 L_36146560: 5511 MEM32(0x3630D9D4) = 0x361B2FF4u; /* 0x36146560: mov dword ptr [0x3630d9d4], 0x361b2ff4 */ 5512 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614656A: ret */ 5513 RECOMP_REGS_OUT(); 5514 } 5515 5516 void sub_36146570(void) { 5517 int _fpu_cmp = 0; 5518 uint32_t _cf = 0; 5519 int _df = 1; 5520 uint32_t _flag_k = FK_NONE; 5521 uint32_t _flag_a = 0, _flag_b = 0; 5522 uint32_t _itail_tgt = 0; 5523 RECOMP_REGS_LOCALS 5524 RECOMP_ENTER(0x36146570u); 5525 5526 L_36146570: 5527 goto L_36146580; /* 0x36146570: jmp 0x36146580 */ 5528 L_36146580: 5529 MEM32(0x3630D9F8) = 0x361B3028u; /* 0x36146580: mov dword ptr [0x3630d9f8], 0x361b3028 */ 5530 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614658A: ret */ 5531 RECOMP_REGS_OUT(); 5532 } 5533 5534 void sub_36146580(void) { 5535 int _fpu_cmp = 0; 5536 uint32_t _cf = 0; 5537 int _df = 1; 5538 uint32_t _flag_k = FK_NONE; 5539 uint32_t _flag_a = 0, _flag_b = 0; 5540 uint32_t _itail_tgt = 0; 5541 RECOMP_REGS_LOCALS 5542 RECOMP_ENTER(0x36146580u); 5543 5544 L_36146580: 5545 MEM32(0x3630D9F8) = 0x361B3028u; /* 0x36146580: mov dword ptr [0x3630d9f8], 0x361b3028 */ 5546 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614658A: ret */ 5547 RECOMP_REGS_OUT(); 5548 } 5549 5550 void sub_36146590(void) { 5551 int _fpu_cmp = 0; 5552 uint32_t _cf = 0; 5553 int _df = 1; 5554 uint32_t _flag_k = FK_NONE; 5555 uint32_t _flag_a = 0, _flag_b = 0; 5556 uint32_t _itail_tgt = 0; 5557 RECOMP_REGS_LOCALS 5558 RECOMP_ENTER(0x36146590u); 5559 5560 L_36146590: 5561 goto L_361465A0; /* 0x36146590: jmp 0x361465a0 */ 5562 L_361465A0: 5563 MEM32(0x3630D9F4) = 0x361B3064u; /* 0x361465A0: mov dword ptr [0x3630d9f4], 0x361b3064 */ 5564 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361465AA: ret */ 5565 RECOMP_REGS_OUT(); 5566 } 5567 5568 void sub_361465A0(void) { 5569 int _fpu_cmp = 0; 5570 uint32_t _cf = 0; 5571 int _df = 1; 5572 uint32_t _flag_k = FK_NONE; 5573 uint32_t _flag_a = 0, _flag_b = 0; 5574 uint32_t _itail_tgt = 0; 5575 RECOMP_REGS_LOCALS 5576 RECOMP_ENTER(0x361465A0u); 5577 5578 L_361465A0: 5579 MEM32(0x3630D9F4) = 0x361B3064u; /* 0x361465A0: mov dword ptr [0x3630d9f4], 0x361b3064 */ 5580 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361465AA: ret */ 5581 RECOMP_REGS_OUT(); 5582 } 5583 5584 void sub_361465B0(void) { 5585 int _fpu_cmp = 0; 5586 uint32_t _cf = 0; 5587 int _df = 1; 5588 uint32_t _flag_k = FK_NONE; 5589 uint32_t _flag_a = 0, _flag_b = 0; 5590 uint32_t _itail_tgt = 0; 5591 RECOMP_REGS_LOCALS 5592 RECOMP_ENTER(0x361465B0u); 5593 5594 L_361465B0: 5595 goto L_361465C0; /* 0x361465B0: jmp 0x361465c0 */ 5596 L_361465C0: 5597 MEM32(0x3630DA14) = 0x361B3098u; /* 0x361465C0: mov dword ptr [0x3630da14], 0x361b3098 */ 5598 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361465CA: ret */ 5599 RECOMP_REGS_OUT(); 5600 } 5601 5602 void sub_361465C0(void) { 5603 int _fpu_cmp = 0; 5604 uint32_t _cf = 0; 5605 int _df = 1; 5606 uint32_t _flag_k = FK_NONE; 5607 uint32_t _flag_a = 0, _flag_b = 0; 5608 uint32_t _itail_tgt = 0; 5609 RECOMP_REGS_LOCALS 5610 RECOMP_ENTER(0x361465C0u); 5611 5612 L_361465C0: 5613 MEM32(0x3630DA14) = 0x361B3098u; /* 0x361465C0: mov dword ptr [0x3630da14], 0x361b3098 */ 5614 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361465CA: ret */ 5615 RECOMP_REGS_OUT(); 5616 } 5617 5618 void sub_361465D0(void) { 5619 int _fpu_cmp = 0; 5620 uint32_t _cf = 0; 5621 int _df = 1; 5622 uint32_t _flag_k = FK_NONE; 5623 uint32_t _flag_a = 0, _flag_b = 0; 5624 uint32_t _itail_tgt = 0; 5625 RECOMP_REGS_LOCALS 5626 RECOMP_ENTER(0x361465D0u); 5627 5628 L_361465D0: 5629 goto L_361465E0; /* 0x361465D0: jmp 0x361465e0 */ 5630 L_361465E0: 5631 MEM32(0x3630D9E4) = 0x361B30CCu; /* 0x361465E0: mov dword ptr [0x3630d9e4], 0x361b30cc */ 5632 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361465EA: ret */ 5633 RECOMP_REGS_OUT(); 5634 } 5635 5636 void sub_361465E0(void) { 5637 int _fpu_cmp = 0; 5638 uint32_t _cf = 0; 5639 int _df = 1; 5640 uint32_t _flag_k = FK_NONE; 5641 uint32_t _flag_a = 0, _flag_b = 0; 5642 uint32_t _itail_tgt = 0; 5643 RECOMP_REGS_LOCALS 5644 RECOMP_ENTER(0x361465E0u); 5645 5646 L_361465E0: 5647 MEM32(0x3630D9E4) = 0x361B30CCu; /* 0x361465E0: mov dword ptr [0x3630d9e4], 0x361b30cc */ 5648 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361465EA: ret */ 5649 RECOMP_REGS_OUT(); 5650 } 5651 5652 void sub_361465F0(void) { 5653 int _fpu_cmp = 0; 5654 uint32_t _cf = 0; 5655 int _df = 1; 5656 uint32_t _flag_k = FK_NONE; 5657 uint32_t _flag_a = 0, _flag_b = 0; 5658 uint32_t _itail_tgt = 0; 5659 RECOMP_REGS_LOCALS 5660 RECOMP_ENTER(0x361465F0u); 5661 5662 L_361465F0: 5663 goto L_36146600; /* 0x361465F0: jmp 0x36146600 */ 5664 L_36146600: 5665 MEM32(0x3630DA0C) = 0x361B3100u; /* 0x36146600: mov dword ptr [0x3630da0c], 0x361b3100 */ 5666 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614660A: ret */ 5667 RECOMP_REGS_OUT(); 5668 } 5669 5670 void sub_36146600(void) { 5671 int _fpu_cmp = 0; 5672 uint32_t _cf = 0; 5673 int _df = 1; 5674 uint32_t _flag_k = FK_NONE; 5675 uint32_t _flag_a = 0, _flag_b = 0; 5676 uint32_t _itail_tgt = 0; 5677 RECOMP_REGS_LOCALS 5678 RECOMP_ENTER(0x36146600u); 5679 5680 L_36146600: 5681 MEM32(0x3630DA0C) = 0x361B3100u; /* 0x36146600: mov dword ptr [0x3630da0c], 0x361b3100 */ 5682 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614660A: ret */ 5683 RECOMP_REGS_OUT(); 5684 } 5685 5686 void sub_36146610(void) { 5687 int _fpu_cmp = 0; 5688 uint32_t _cf = 0; 5689 int _df = 1; 5690 uint32_t _flag_k = FK_NONE; 5691 uint32_t _flag_a = 0, _flag_b = 0; 5692 uint32_t _itail_tgt = 0; 5693 RECOMP_REGS_LOCALS 5694 RECOMP_ENTER(0x36146610u); 5695 5696 L_36146610: 5697 goto L_36146620; /* 0x36146610: jmp 0x36146620 */ 5698 L_36146620: 5699 MEM32(0x3630DA00) = 0x361B3138u; /* 0x36146620: mov dword ptr [0x3630da00], 0x361b3138 */ 5700 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614662A: ret */ 5701 RECOMP_REGS_OUT(); 5702 } 5703 5704 void sub_36146620(void) { 5705 int _fpu_cmp = 0; 5706 uint32_t _cf = 0; 5707 int _df = 1; 5708 uint32_t _flag_k = FK_NONE; 5709 uint32_t _flag_a = 0, _flag_b = 0; 5710 uint32_t _itail_tgt = 0; 5711 RECOMP_REGS_LOCALS 5712 RECOMP_ENTER(0x36146620u); 5713 5714 L_36146620: 5715 MEM32(0x3630DA00) = 0x361B3138u; /* 0x36146620: mov dword ptr [0x3630da00], 0x361b3138 */ 5716 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614662A: ret */ 5717 RECOMP_REGS_OUT(); 5718 }