Function at 0x10001370
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
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]
cmp word [eax], 0x5a4d
je 0x100013a2
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [eax + 0x3c]
add edi, eax
mov dword [ebp - 0x14], edi
cmp dword [edi], 0x4550
je 0x100013bb
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
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.10001010
push eax
call fcn.10001580
mov ecx, dword [edi + 0x34]
add esp, 8
mov esi, eax
mov eax, dword [edi + 0x50]
push 4
push 0x2000
push eax
push ecx
call esi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 8], ebx
jne 0x1000141b
mov edx, dword [edi + 0x50]
push 4
push 0x2000
push edx
push eax
call esi
test eax, eax
mov dword [ebp - 8], eax
jne 0x10001418
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 8]
push 0xa4057483
call fcn.10001010
push eax
call fcn.10001580
add esp, 8
mov dword [ebp - 0x10], eax
push 0x2ddd7efc
call fcn.10001010
push eax
call fcn.10001580
add esp, 8
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
push 0x63
push 0x6f6c6c41
push 0x70616548
lea eax, [esp]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call fcn.10001010
push eax
call dword [ebp - 0xc]
push 0x14
push 0
mov dword [ebp - 0xc], eax
call dword [ebp - 0x10]
push eax
call dword [ebp - 0xc]
xor ecx, ecx
mov dword [eax + 4], ebx
mov dword [eax + 0xc], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0x10], ecx
mov ecx, dword [edi + 0x50]
push 4
push 0x1000
push ecx
push ebx
mov dword [ebp - 0x10], eax
call esi
mov edx, dword [edi + 0x54]
push 4
push 0x1000
push edx
push ebx
call esi
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 esi, dword [ebp + 8]
mov edx, dword [edi + 0x54]
mov edi, eax
mov ebx, dword [ebp - 8]
mov ecx, dword [esi + 0x3c]
add ecx, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
push edi
mov edx, dword [ecx + 0x3c]
push esi
add eax, edx
push ecx
mov dword [edi], eax
mov dword [eax + 0x34], ebx
call fcn.100017b0
mov ecx, dword [esi + 0x34]
mov eax, ebx
add esp, 0xc
sub eax, ecx
je 0x10001511
push eax
push edi
call fcn.10001a60
add esp, 8
push edi
call fcn.10001b70
add esp, 4
test eax, eax
je 0x10001555
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
push edi
call fcn.10001910
mov eax, dword [edi]
add esp, 4
mov eax, dword [eax + 0x28]
test eax, eax
je 0x1000156e
add eax, ebx
test eax, eax
je 0x10001555
push 0
push 1
push ebx
call eax
test eax, eax
jne 0x10001567
push edi
call fcn.10001e20
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x10], 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret