Function at 0x10004010
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x1004a870]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [0x10038094]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jne 0x10004041
mov eax, 0x200
jmp 0x10004257
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x40]
and eax, 1
je 0x1000405f
mov ecx, dword [ebp - 0x3c]
or ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x40]
and edx, 2
je 0x10004070
mov eax, dword [ebp - 0x3c]
or eax, 2
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x40]
and ecx, 4
je 0x10004081
mov edx, dword [ebp - 0x3c]
or edx, 4
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x40]
and eax, 0x10
je 0x10004092
mov ecx, dword [ebp - 0x3c]
or ecx, 0x10
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x40]
and edx, 0x20
je 0x100040a3
mov eax, dword [ebp - 0x3c]
or eax, 0x20
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x40]
and ecx, 0x10
je 0x100040b9
mov edx, dword [ebp - 0x3c]
or edx, 0x40000000
mov dword [ebp - 0x3c], edx
jmp 0x100040c4
mov eax, dword [ebp - 0x3c]
or eax, 0x80000000
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
or ecx, 0x1000000
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x40]
and edx, 1
je 0x100040da
jmp 0x100040e5
mov eax, dword [ebp - 0x3c]
or eax, 0x800000
mov dword [ebp - 0x3c], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [0x10038098]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0x28
jbe 0x100041b9
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [0x10038074]
push 0
lea eax, [ebp - 0x5c]
push eax
push 2
lea ecx, [ebp - 0x48]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [0x10038070]
push 0
push 0
push 0x24
mov eax, dword [ebp + 8]
push eax
call dword [0x10038074]
push 0
lea ecx, [ebp - 0x5c]
push ecx
push 4
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [0x10038070]
movzx ecx, word [ebp - 0x48]
cmp ecx, 0x54ad
jne 0x100041b9
mov edx, dword [ebp - 0x58]
add edx, 0x34
cmp dword [ebp - 0x4c], edx
jbe 0x100041b9
push 0
push 0
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [0x10038074]
push 0
lea edx, [ebp - 0x5c]
push edx
push 4
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [0x10038070]
cmp dword [ebp - 0x44], 0x5a4d
je 0x100041ad
cmp dword [ebp - 0x44], 0x454e
je 0x100041ad
cmp dword [ebp - 0x44], 0x454c
je 0x100041ad
cmp dword [ebp - 0x44], 0x4550
jne 0x100041b9
mov edx, dword [ebp - 0x3c]
or edx, 0x400000
mov dword [ebp - 0x3c], edx
cmp dword [ebp + 0xc], 0
je 0x100041c7
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
cmp dword [ebp + 0x10], 0
je 0x100041d5
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x4c]
mov dword [edx], eax
cmp dword [ebp + 0x14], 0
je 0x10004225
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.10006310
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.10006310
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.10006310
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
cmp dword [ebp + 0x18], 0
je 0x10004255
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.10006250
add esp, 0x10
movzx eax, word [ebp - 0x50]
movzx ecx, word [ebp - 0x54]
shl ecx, 0x10
or eax, ecx
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001a094
mov esp, ebp
pop ebp
ret