Function at 0x42f14c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x485bd0]
xor eax, ebp
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 8]
call dword [0x498520]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x42f17c
mov eax, 0x200
jmp 0x42f378
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xc], eax
and dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
and eax, 1
je 0x42f197
mov eax, dword [ebp - 8]
or eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
and eax, 2
je 0x42f1a8
mov eax, dword [ebp - 8]
or eax, 2
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
and eax, 4
je 0x42f1b9
mov eax, dword [ebp - 8]
or eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
and eax, 0x10
je 0x42f1ca
mov eax, dword [ebp - 8]
or eax, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
and eax, 0x20
je 0x42f1db
mov eax, dword [ebp - 8]
or eax, 0x20
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
and eax, 0x10
je 0x42f1f0
mov eax, dword [ebp - 8]
or eax, 0x40000000
mov dword [ebp - 8], eax
jmp 0x42f1fb
mov eax, dword [ebp - 8]
or eax, 0x80000000
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
or eax, 0x1000000
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
and eax, 1
je 0x42f210
jmp 0x42f21b
mov eax, dword [ebp - 8]
or eax, 0x800000
mov dword [ebp - 8], eax
push 0
push dword [ebp + 8]
call dword [0x498600]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0x28
jbe 0x42f2e5
push 0
push 0
push 0
push dword [ebp + 8]
call dword [0x498440]
push 0
lea eax, [ebp - 0x10]
push eax
push 2
lea eax, [ebp - 0x50]
push eax
push dword [ebp + 8]
call dword [0x49854c]
push 0
push 0
push 0x24
push dword [ebp + 8]
call dword [0x498440]
push 0
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 8]
call dword [0x49854c]
movzx eax, word [ebp - 0x50]
cmp eax, 0x54ad
jne 0x42f2e5
mov eax, dword [ebp - 0x54]
add eax, 0x34
cmp dword [ebp - 0x4c], eax
jbe 0x42f2e5
push 0
push 0
push dword [ebp - 0x54]
push dword [ebp + 8]
call dword [0x498440]
push 0
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 8]
call dword [0x49854c]
cmp dword [ebp - 0x58], 0x5a4d
je 0x42f2da
cmp dword [ebp - 0x58], 0x454e
je 0x42f2da
cmp dword [ebp - 0x58], 0x454c
je 0x42f2da
cmp dword [ebp - 0x58], 0x4550
jne 0x42f2e5
mov eax, dword [ebp - 8]
or eax, 0x400000
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 0
je 0x42f2f3
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
cmp dword [ebp + 0x10], 0
je 0x42f301
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x4c]
mov dword [eax], ecx
cmp dword [ebp + 0x14], 0
je 0x42f348
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
call fcn.0042f063
pop ecx
pop ecx
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov dword [ecx + 4], edx
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.0042f063
pop ecx
pop ecx
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
push dword [ebp - 0x40]
push dword [ebp - 0x44]
call fcn.0042f063
pop ecx
pop ecx
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
cmp dword [ebp + 0x18], 0
je 0x42f376
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.0042f095
add esp, 0x10
movzx eax, word [ebp - 0x5c]
movzx ecx, word [ebp - 0x60]
shl ecx, 0x10
or eax, ecx
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
xor eax, eax
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00431c7a
leave
ret