Function at 0x10001c00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
push edi
lea edi, [ebp - 0x120]
mov ecx, 0x48
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
nop
nop
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x10001c3b
xor eax, eax
jmp 0x10001e20
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0x4550
je 0x10001c59
xor eax, eax
jmp 0x10001e20
mov esi, esp
push 4
push 0x2000
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x34]
push eax
call dword [0x1000508c]
cmp esi, esp
call fcn.10003ce4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x10001ca8
mov esi, esp
push 4
push 0x2000
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x50]
push ecx
push 0
call dword [0x1000508c]
cmp esi, esp
call fcn.10003ce4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x10001cb5
xor eax, eax
jmp 0x10001e20
mov esi, esp
push 0x14
push 0
mov edi, esp
call dword [0x10005090]
cmp edi, esp
call fcn.10003ce4
push eax
call dword [0x10005098]
cmp esi, esp
call fcn.10003ce4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 0xc], 0
mov eax, dword [ebp - 8]
mov dword [eax + 8], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x10], 0
mov esi, esp
push 4
push 0x1000
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [0x1000508c]
cmp esi, esp
call fcn.10003ce4
mov esi, esp
push 4
push 0x1000
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [0x1000508c]
cmp esi, esp
call fcn.10003ce4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp - 0x20]
add ecx, dword [edx + 0x54]
push ecx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.10003cde
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x38]
add ecx, dword [eax + 0x3c]
mov edx, dword [ebp - 8]
mov dword [edx], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x2c]
mov dword [ecx + 0x34], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10001e40
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x44], ecx
je 0x10001daf
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.10002130
add esp, 8
mov eax, dword [ebp - 8]
push eax
call fcn.10002230
add esp, 4
test eax, eax
jne 0x10001dc3
jmp 0x10001e1e
mov eax, dword [ebp - 8]
push eax
call fcn.10001f70
add esp, 4
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
cmp dword [ecx + 0x28], 0
je 0x10001e19
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x2c]
add edx, dword [ecx + 0x28]
mov dword [ebp - 0x50], edx
jne 0x10001dee
jmp 0x10001e1e
mov esi, esp
push 0
push 1
mov eax, dword [ebp - 0x2c]
push eax
call dword [ebp - 0x50]
cmp esi, esp
call fcn.10003ce4
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x10001e0f
jmp 0x10001e1e
mov eax, dword [ebp - 8]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 8]
jmp 0x10001e20
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x120
cmp ebp, esp
call fcn.10003ce4
mov esp, ebp
pop ebp
ret