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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x554
mov eax, dword [0x42c300]
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 0x419700
xor eax, eax
jmp 0x41990a
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 0x419907
cmp word [ebp - 0x44], 0x5a4d
jne 0x419907
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 0x41974e
xor eax, eax
inc eax
jmp 0x419909
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 0x419746
cmp word [ebp - 0x450], 0x454e
jne 0x41977c
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
cmp dword [ebp - 0x450], 0x4550
jne 0x419746
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 0x419746
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 0x419746
movzx eax, word [ebp + 0x18]
lea eax, [eax + eax*4]
shl eax, 3
cmp eax, 0x400
mov dword [ebp + 0x14], eax
jbe 0x419803
push eax
call fcn.0041bc66
pop ecx
jmp 0x419809
lea eax, [ebp - 0x444]
cmp eax, esi
mov dword [ebp - 0x448], eax
je 0x419746
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 0x4198e4
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 0x4198e4
cmp word [ebp - 0x554], 0x20b
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
jne 0x41989f
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 0x4198e4
push dword [ebp + 0x18]
push dword [ebp - 0x448]
push dword [ebp - 0x470]
push dword [ebp - 0x474]
jmp 0x4198d7
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 0x4198e4
push dword [ebp + 0x18]
push dword [ebp - 0x448]
push dword [ebp - 0x480]
push dword [ebp - 0x484]
push dword [ebp + 8]
call fcn.0041965f
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
lea eax, [ebp - 0x444]
cmp dword [ebp - 0x448], eax
je 0x419746
push dword [ebp - 0x448]
call fcn.0041bac9
pop ecx
jmp 0x419746
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0041b4ee
leave
ret 0x1c