Function at 0x438450
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x554
mov eax, dword [0x44de1c]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push esi
xor esi, esi
mov word [eax], si
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [eax], esi
mov eax, dword [ebp + 0x1c]
push esi
mov dword [eax], esi
mov eax, dword [ebp + 0x20]
push esi
push dword [ebp + 8]
mov dword [eax], esi
call ebx
test eax, eax
je 0x438498
xor eax, eax
jmp 0x4386a2
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea eax, [ebp - 0x44c]
push eax
push 0x40
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x43869f
cmp word [ebp - 0x44], 0x5a4d
jne 0x43869f
mov eax, dword [ebp + 0xc]
push esi
push esi
push dword [ebp - 8]
mov dword [eax], 1
push dword [ebp + 8]
call ebx
cmp eax, 0xffffffff
jne 0x4384e6
xor eax, eax
inc eax
jmp 0x4386a1
push esi
lea eax, [ebp - 0x44c]
push eax
push 4
lea eax, [ebp - 0x450]
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x4384de
cmp word [ebp - 0x450], 0x454e
jne 0x438514
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
cmp dword [ebp - 0x450], 0x4550
jne 0x4384de
push esi
lea eax, [ebp - 0x44c]
push eax
push 0x14
lea eax, [ebp - 0x464]
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x4384de
mov ax, word [ebp - 0x452]
mov ecx, dword [ebp + 0x14]
mov word [ecx], ax
mov ax, word [ebp - 0x464]
mov ecx, dword [ebp + 0x18]
mov word [ecx], ax
mov eax, dword [ebp - 0x462]
push esi
mov dword [ebp + 0x18], eax
lea eax, [ebp - 0x44c]
push eax
push 0xf0
lea eax, [ebp - 0x554]
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x4384de
movzx eax, word [ebp + 0x18]
lea eax, [eax + eax*4]
shl eax, 3
cmp eax, 0x400
mov dword [ebp + 0x14], eax
jbe 0x43859b
push eax
call fcn.00417bc2
pop ecx
jmp 0x4385a1
lea eax, [ebp - 0x444]
cmp eax, esi
mov dword [ebp - 0x448], eax
je 0x4384de
movzx eax, word [ebp - 0x454]
mov ecx, dword [ebp - 8]
push esi
push esi
lea eax, [eax + ecx + 0x18]
push eax
push dword [ebp + 8]
call ebx
cmp eax, 0xffffffff
je 0x43867c
push esi
lea eax, [ebp - 0x44c]
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x448]
push dword [ebp + 8]
call edi
test eax, eax
je 0x43867c
cmp word [ebp - 0x554], 0x20b
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
jne 0x438637
mov dword [eax], 6
movzx eax, word [ebp - 0x510]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x1c]
xor eax, eax
cmp dword [ebp - 0x470], esi
setne al
cmp eax, esi
mov dword [ecx], eax
je 0x43867c
push dword [ebp + 0x18]
push dword [ebp - 0x448]
push dword [ebp - 0x470]
push dword [ebp - 0x474]
jmp 0x43866f
mov dword [eax], 3
movzx eax, word [ebp - 0x510]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x1c]
xor eax, eax
cmp dword [ebp - 0x480], esi
setne al
cmp eax, esi
mov dword [ecx], eax
je 0x43867c
push dword [ebp + 0x18]
push dword [ebp - 0x448]
push dword [ebp - 0x480]
push dword [ebp - 0x484]
push dword [ebp + 8]
call fcn.004383f7
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
lea eax, [ebp - 0x444]
cmp dword [ebp - 0x448], eax
je 0x4384de
push dword [ebp - 0x448]
call fcn.00417b09
pop ecx
jmp 0x4384de
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00417bd0
leave
ret 0x1c