Function at 0x100013e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
nop
nop
push ebp
nop
nop
mov ebp, esp
add esp, 6
sub esp, 6
push esi
pop esi
nop
nop
mov esp, ebp
nop
nop
pop ebp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x5a4d
je 0x1000141c
xor eax, eax
jmp 0x10001671
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp dword [edx], 0x4550
je 0x1000143a
xor eax, eax
jmp 0x10001671
nop
nop
push ebp
nop
mov ebp, esp
add esp, 3
add esp, 0xfffffffd
nop
nop
mov esp, ebp
nop
pop ebp
push 0xcb2ce3db
call fcn.10001678
push eax
call fcn.100016db
add esp, 8
mov dword [ebp - 0x10], eax
push 4
push 0x2000
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x34]
push eax
call dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x10001499
push 4
push 0x2000
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x50]
push edx
push 0
call dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x100014a6
xor eax, eax
jmp 0x10001671
push 0xa4057483
call fcn.10001678
push eax
call fcn.100016db
add esp, 8
mov dword [ebp - 0xc], eax
push 0x2ddd7efc
call fcn.10001678
push eax
call fcn.100016db
add esp, 8
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], 0
push 0x63
push 0x6f6c6c41
push 0x70616548
lea eax, [esp]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
call fcn.10001678
push eax
call dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
push 0x14
push 0
call dword [ebp - 0xc]
push eax
call dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x34]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], 0
push 4
push 0x1000
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [ebp - 0x10]
push 4
push 0x1000
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
nop
push ebp
nop
mov ebp, esp
inc ecx
dec ecx
add esp, 6
sub esp, 6
push ebx
pop ebx
add esp, 3
sub esp, 3
nop
mov esp, ebp
nop
pop ebp
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp - 0x18]
add ecx, dword [edx + 0x54]
push ecx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
add eax, dword [edx + 0x3c]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x34]
mov dword [eax + 0x34], ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10001970
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x34]
sub eax, dword [edx + 0x34]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x100015e3
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.10001cc5
add esp, 8
mov eax, dword [ebp - 4]
push eax
call fcn.10001e15
add esp, 4
test eax, eax
jne 0x100015f5
jmp 0x1000166f
push ebp
nop
mov ebp, esp
push esi
pop esi
inc ecx
dec ecx
inc ecx
dec ecx
add esp, 4
add esp, 0xfffffffc
mov esp, ebp
nop
pop ebp
mov ecx, dword [ebp - 4]
push ecx
call fcn.10001af4
add esp, 4
mov edx, dword [ebp - 4]
mov eax, dword [edx]
cmp dword [eax + 0x28], 0
je 0x10001656
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x34]
add eax, dword [edx + 0x28]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10001636
jmp 0x1000166d
push 0
push 1
mov ecx, dword [ebp - 0x34]
push ecx
call dword [ebp - 8]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x1000164c
jmp 0x1000166b
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], 1
mov eax, dword [ebp - 4]
jmp 0x10001671
mov eax, dword [ebp - 4]
push eax
call fcn.1000219f
add esp, 4
xor eax, eax
jmp 0x10001671
jmp 0x1000165b
jmp 0x1000165b
jmp 0x1000165b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret