Function at 0x458104
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 8], 0x40
jl 0x45835d
mov eax, dword [ebp - 0x14]
cmp word [eax], 0x5a4d
jne 0x45835d
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3c]
mov edx, eax
add edx, 0xf8
cmp edx, dword [ebp - 8]
jg 0x45835d
mov ebx, eax
add ebx, dword [ebp - 0x14]
cmp dword [ebx], 0x4550
jne 0x45835d
mov ax, word [ebx + 0x16]
test ah, 0x20
jne 0x45835d
test al, 2
je 0x45835d
movzx eax, word [ebx + 0x14]
cmp eax, 0xe0
jne 0x45835d
mov eax, ebx
add eax, 0xf8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, ebx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.00457fe0
mov dword [edi], eax
cmp dword [edi], 0
je 0x45835d
push 0x40
push 0x1000
mov eax, dword [edi]
push eax
push 0
mov eax, dword [0x45b550]
mov eax, dword [eax]
call eax
push 0x40
push 0x1000
mov eax, dword [edi]
push eax
push 0
mov eax, dword [0x45b550]
mov eax, dword [eax]
call eax
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x45835d
mov eax, dword [ebx + 0x54]
mov dword [ebp - 0x1c], eax
movzx edi, word [ebx + 6]
dec edi
test edi, edi
jl 0x458217
inc edi
xor ebx, ebx
lea eax, [ebx + ebx*4]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + eax*8 + 0x14]
test eax, eax
je 0x458213
cmp eax, dword [ebp - 0x1c]
jae 0x458213
mov dword [ebp - 0x1c], eax
inc ebx
dec edi
jne 0x4581fd
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
call fcn.004028c8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
add eax, dword [edx + 0x3c]
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
add eax, 0xf8
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 0x54]
mov ecx, 0x58
mov edx, 0x58
call fcn.00457fc4
mov edx, dword [ebp + 0xc]
add eax, dword [edx]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
movzx edi, word [eax + 6]
dec edi
test edi, edi
jl 0x458359
inc edi
xor ebx, ebx
lea eax, [ebx + ebx*4]
mov edx, dword [esi]
mov eax, dword [edx + eax*8 + 0xc]
test eax, eax
je 0x458297
mov edx, dword [ebp + 0xc]
add eax, dword [edx]
mov dword [ebp - 0x20], eax
lea eax, [ebx + ebx*4]
mov edx, dword [esi]
cmp dword [edx + eax*8 + 0x10], 0
je 0x45832a
lea eax, [ebx + ebx*4]
mov edx, dword [esi]
mov ecx, dword [edx + eax*8 + 0x10]
lea eax, [ebx + ebx*4]
mov edx, dword [esi]
mov eax, dword [edx + eax*8 + 0x14]
add eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
call fcn.004028c8
lea eax, [ebx + ebx*4]
mov edx, dword [esi]
mov eax, dword [edx + eax*8 + 8]
lea edx, [ebx + ebx*4]
mov ecx, dword [esi]
cmp eax, dword [ecx + edx*8 + 0x10]
jae 0x458301
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 0x38]
push eax
lea eax, [ebx + ebx*4]
mov edx, dword [esi]
mov eax, dword [edx + eax*8 + 0x10]
mov ecx, 0x58
mov edx, 0x58
call fcn.00457fc4
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], eax
jmp 0x458351
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 0x38]
push eax
lea eax, [ebx + ebx*4]
mov edx, dword [esi]
mov eax, dword [edx + eax*8 + 8]
mov ecx, 0x58
mov edx, 0x58
call fcn.00457fc4
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], eax
jmp 0x458351
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 0x38]
push eax
lea eax, [ebx + ebx*4]
mov edx, dword [esi]
mov eax, dword [edx + eax*8 + 8]
mov ecx, 0x58
mov edx, 0x58
call fcn.00457fc4
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], eax
inc ebx
dec edi
jne 0x458282
mov byte [ebp - 0xd], 1
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc