Function at 0x1001cf2f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0xc], 0
and dword [ebp - 0x18], 0
and dword [ebp - 8], 0
and dword [ebp - 0x24], 0
xor eax, eax
mov word [ebp - 0x1c], ax
and dword [ebp - 0x28], 0
and dword [ebp - 0x20], 0
xor eax, eax
mov word [ebp - 0x10], ax
and dword [ebp - 0x14], 0
and dword [ebp - 0x2c], 0
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x1001cf85
xor eax, eax
je 0x1001cf7e
jmp 0x1001cf78
xor eax, eax
jmp 0x1001d1eb
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0x4550
je 0x1001cfa9
xor eax, eax
je 0x1001cfa2
jmp 0x1001cf9c
xor eax, eax
jmp 0x1001d1eb
mov eax, dword [ebp - 0x28]
movzx eax, word [eax + 4]
cmp eax, 0x14c
jne 0x1001cfd3
xor eax, eax
je 0x1001cfbd
jmp 0x1001cfb7
mov eax, dword [ebp - 0x28]
mov ax, word [eax + 6]
mov word [ebp - 0x10], ax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x2c], eax
jmp 0x1001d014
mov eax, dword [ebp - 0x28]
movzx eax, word [eax + 4]
cmp eax, 0x8664
jne 0x1001d007
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
and dword [ebp - 0x28], 0
xor eax, eax
je 0x1001cff1
jmp 0x1001cfeb
mov eax, dword [ebp - 0x20]
mov ax, word [eax + 6]
mov word [ebp - 0x10], ax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x2c], eax
jmp 0x1001d014
xor eax, eax
je 0x1001d00d
jmp 0x1001d007
xor eax, eax
jmp 0x1001d1eb
xor eax, eax
je 0x1001d01a
jmp 0x1001d014
cmp dword [ebp + 0x10], 0
je 0x1001d095
mov eax, dword [ebp - 0x28]
movzx eax, word [eax + 4]
cmp eax, 0x14c
jne 0x1001d05d
push 0x40
push 0x1000
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
push dword [eax + 0x34]
mov eax, dword [0x10039740]
call dword [eax + 0x58]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1001d057
xor eax, eax
je 0x1001d055
jmp 0x1001d04f
jmp 0x1001d05d
xor eax, eax
je 0x1001d05d
jmp 0x1001d057
cmp dword [ebp - 0xc], 0
jne 0x1001d07a
push 0x40
push 0x1000
push dword [ebp - 0x2c]
push 0
mov eax, dword [0x10039740]
call dword [eax + 0x58]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1001d08d
xor eax, eax
je 0x1001d086
jmp 0x1001d080
xor eax, eax
jmp 0x1001d1eb
xor eax, eax
je 0x1001d093
jmp 0x1001d08d
jmp 0x1001d0ba
push dword [ebp - 0x2c]
call fcn.1000ac58
pop ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1001d0b4
xor eax, eax
je 0x1001d0ad
jmp 0x1001d0a7
xor eax, eax
jmp 0x1001d1eb
xor eax, eax
je 0x1001d0ba
jmp 0x1001d0b4
cmp dword [ebp - 0x20], 0
je 0x1001d0f2
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax + 0x108]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
push dword [eax + 0x54]
push dword [ebp - 0x24]
push dword [ebp - 0xc]
call fcn.1000abe5
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x54]
mov dword [ebp - 4], eax
jmp 0x1001d122
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax + 0xf8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x28]
push dword [eax + 0x54]
push dword [ebp - 0x24]
push dword [ebp - 0xc]
call fcn.1000abe5
add esp, 0xc
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x54]
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
jmp 0x1001d12f
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
movzx eax, word [ebp - 0x10]
cmp dword [ebp - 8], eax
jae 0x1001d1e2
push 9
push 0
lea eax, [ebp - 0x38]
push eax
call fcn.1000ac0a
add esp, 0xc
push 8
mov eax, dword [ebp - 8]
imul eax, eax, 0x28
add eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.1000abe5
add esp, 0xc
mov eax, dword [ebp - 8]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x14]
push dword [ecx + eax + 0x10]
mov eax, dword [ebp - 8]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0x14]
push edx
mov eax, dword [ebp - 8]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + eax + 0xc]
push edx
call fcn.1000abe5
add esp, 0xc
mov eax, dword [ebp - 8]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0x14]
mov eax, dword [ebp - 8]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x14]
add edx, dword [ecx + eax + 0x10]
cmp edx, dword [ebp - 0x18]
jbe 0x1001d1dd
mov eax, dword [ebp - 8]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0x14]
mov eax, dword [ebp - 8]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x14]
add edx, dword [ecx + eax + 0x10]
mov dword [ebp - 0x18], edx
jmp 0x1001d128
xor eax, eax
je 0x1001d1e8
jmp 0x1001d1e2
mov eax, dword [ebp - 0xc]
leave
ret