Function at 0x403174
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
push 0
call dword [0x404010]
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x4031b9
mov eax, dword [0x405018]
shl eax, 1
mov dword [0x405014], eax
mov eax, dword [0x405018]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x405018], eax
xor eax, eax
jmp 0x40369e
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
push 0
call dword [0x404010]
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0x4550
je 0x403204
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
push 0x40bab0
call dword [0x404034]
xor eax, eax
jmp 0x40369e
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], eax
mov eax, dword [0x405018]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x405018], eax
push 4
push 0x2000
mov eax, dword [ebp - 0x10]
push dword [eax + 0x50]
mov eax, dword [ebp - 0x10]
push dword [eax + 0x34]
call dword [0x404040]
mov dword [ebp - 0x20], eax
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
cmp dword [ebp - 0x20], 0
jne 0x403285
push 4
push 0x2000
mov eax, dword [ebp - 0x10]
push dword [eax + 0x50]
push 0
call dword [0x404040]
mov dword [ebp - 0x20], eax
push 0
call dword [0x404010]
mov eax, dword [0x405014]
imul eax, eax, 0x63
mov dword [0x405014], eax
cmp dword [ebp - 0x20], 0
jne 0x40329f
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
xor eax, eax
jmp 0x40369e
mov eax, dword [0x405014]
imul eax, dword [0x405018]
mov ecx, dword [0x405018]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x405014], eax
push 0x14
push 0
call dword [0x404018]
push eax
call dword [0x404014]
mov dword [ebp - 4], eax
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], eax
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 4], ecx
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], eax
mov eax, dword [ebp - 4]
and dword [eax + 0xc], 0
mov eax, dword [0x405018]
shl eax, 1
mov dword [0x405014], eax
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
mov eax, dword [ebp - 4]
and dword [eax + 8], 0
mov eax, dword [0x405014]
imul eax, dword [0x405018]
mov ecx, dword [0x405018]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x405014], eax
mov eax, dword [ebp - 4]
and dword [eax + 0x10], 0
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
mov eax, dword [0x405018]
shl eax, 1
mov dword [0x405014], eax
push 0x40bab0
call dword [0x404034]
push 4
push 0x1000
mov eax, dword [ebp - 0x10]
push dword [eax + 0x50]
push dword [ebp - 0x20]
call dword [0x404040]
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], eax
mov eax, dword [0x405014]
imul eax, dword [0x405018]
mov ecx, dword [0x405018]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x405014], eax
mov eax, dword [0x405014]
mov ecx, dword [0x405018]
lea eax, [ecx + eax - 9]
mov dword [0x405014], eax
push 4
push 0x1000
mov eax, dword [ebp - 0x10]
push dword [eax + 0x54]
push esp