Function at 0x1003964e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x14], 0
and dword [ebp - 0x2c], 0
and dword [ebp - 0x10], 0
and dword [ebp - 0x1c], 0
xor eax, eax
mov word [ebp - 8], ax
and dword [ebp - 0xc], 0
and dword [ebp - 0x20], 0
xor eax, eax
mov word [ebp - 4], ax
and dword [ebp - 0x18], 0
and dword [ebp - 0x24], 0
and dword [ebp - 0x28], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x100396a4
xor eax, eax
je 0x1003969d
jmp 0x10039697
xor eax, eax
jmp 0x100398fa
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0x4550
je 0x100396c8
xor eax, eax
je 0x100396c1
jmp 0x100396bb
xor eax, eax
jmp 0x100398fa
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 4]
cmp eax, 0x14c
jne 0x100396f2
xor eax, eax
je 0x100396dc
jmp 0x100396d6
mov eax, dword [ebp - 0xc]
mov ax, word [eax + 6]
mov word [ebp - 4], ax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x24], eax
jmp 0x10039733
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 4]
cmp eax, 0x8664
jne 0x10039726
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
and dword [ebp - 0xc], 0
xor eax, eax
je 0x10039710
jmp 0x1003970a
mov eax, dword [ebp - 0x20]
mov ax, word [eax + 6]
mov word [ebp - 4], ax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x24], eax
jmp 0x10039733
xor eax, eax
je 0x1003972c
jmp 0x10039726
xor eax, eax
jmp 0x100398fa
xor eax, eax
je 0x10039739
jmp 0x10039733
cmp dword [ebp + 0x10], 0
je 0x100397b4
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 4]
cmp eax, 0x14c
jne 0x1003977c
push 0x40
push 0x1000
push dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
push dword [eax + 0x34]
mov eax, dword [0x10064060]
call dword [eax + 0x58]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10039776
xor eax, eax
je 0x10039774
jmp 0x1003976e
jmp 0x1003977c
xor eax, eax
je 0x1003977c
jmp 0x10039776
cmp dword [ebp - 0x14], 0
jne 0x10039799
push 0x40
push 0x1000
push dword [ebp - 0x24]
push 0
mov eax, dword [0x10064060]
call dword [eax + 0x58]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x100397ac
xor eax, eax
je 0x100397a5
jmp 0x1003979f
xor eax, eax
jmp 0x100398fa
xor eax, eax
je 0x100397b2
jmp 0x100397ac
jmp 0x100397d9
push dword [ebp - 0x24]
call fcn.1001c2a3
pop ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x100397d3
xor eax, eax
je 0x100397cc
jmp 0x100397c6
xor eax, eax
jmp 0x100398fa
xor eax, eax
je 0x100397d9
jmp 0x100397d3
cmp dword [ebp - 0x20], 0
je 0x10039811
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax + 0x108]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
push dword [eax + 0x54]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call fcn.1001c380
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x54]
mov dword [ebp - 0x28], eax
jmp 0x10039841
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax + 0xf8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x54]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call fcn.1001c380
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x54]
mov dword [ebp - 0x28], eax
and dword [ebp - 0x10], 0
jmp 0x1003984e
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
movzx eax, word [ebp - 4]
cmp dword [ebp - 0x10], eax
jae 0x100398f1
push 9
push 0
lea eax, [ebp - 0x38]
push eax
call fcn.1001c3ee
add esp, 0xc
push 8
imul eax, dword [ebp - 0x10], 0x28
add eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.1001c380
add esp, 0xc
imul eax, dword [ebp - 0x10], 0x28
mov ecx, dword [ebp - 0x18]
push dword [ecx + eax + 0x10]
imul eax, dword [ebp - 0x10], 0x28
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0x14]
push edx
imul eax, dword [ebp - 0x10], 0x28
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add edx, dword [ecx + eax + 0xc]
push edx
call fcn.1001c380
add esp, 0xc
imul eax, dword [ebp - 0x10], 0x28
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0x14]
imul eax, dword [ebp - 0x10], 0x28
mov ecx, dword [ebp - 0x18]
add edx, dword [ecx + eax + 0x10]
cmp edx, dword [ebp - 0x2c]
jbe 0x100398ec
imul eax, dword [ebp - 0x10], 0x28
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0x14]
imul eax, dword [ebp - 0x10], 0x28
mov ecx, dword [ebp - 0x18]
add edx, dword [ecx + eax + 0x10]
mov dword [ebp - 0x2c], edx
jmp 0x10039847
xor eax, eax
je 0x100398f7
jmp 0x100398f1
mov eax, dword [ebp - 0x14]
leave
ret