Function at 0x1009d0b9
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x1010a080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x80], ebx
mov eax, dword [ebx + 0x64]
mov edi, dword [ebx + 0x68]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0xc]
cdq
xor eax, edx
mov dword [ebx + 0x84], esi
sub eax, edx
movzx eax, ax
push esi
push edi
mov dword [ebp - 0x88], eax
call fcn.10072c9c
mov dword [ebp - 0x70], eax
pop ecx
pop ecx
test eax, eax
jne 0x1009d752
lea eax, [ebp - 0x7c]
push eax
push 0x100e69b0
push edi
call fcn.10072858
add esp, 0xc
test eax, eax
jne 0x1009d752
mov eax, 0x5a4d
mov dword [ebp - 0x70], 2
cmp word [ebp - 0x7c], ax
jne 0x1009d747
movzx eax, word [ebp - 0x7a]
push eax
push edi
call fcn.10072c9c
mov edx, eax
mov dword [ebp - 0x70], edx
pop ecx
pop ecx
test edx, edx
jne 0x1009d755
lea eax, [ebp - 0x90]
push eax
push 0x100e69c4
push edi
call fcn.10072858
mov edx, eax
add esp, 0xc
test edx, edx
jne 0x1009d755
push 2
mov eax, 0x454e
pop edx
mov dword [ebp - 0x70], edx
cmp word [ebp - 0x90], ax
jne 0x1009d33c
movzx ecx, word [ebp - 0x8e]
movzx eax, word [ebp - 0x7a]
add ecx, eax
mov dword [ebp - 0x78], esi
push ecx
push edi
call fcn.10072c9c
mov edx, eax
mov dword [ebp - 0x70], edx
pop ecx
pop ecx
test edx, edx
jne 0x1009d755
movzx ecx, word [ebp - 0x8c]
movzx eax, word [ebp - 0x8e]
sub ecx, eax
push ecx
push edi
call fcn.10072456
mov edx, eax
mov dword [ebp - 0x70], edx
pop ecx
pop ecx
test edx, edx
jne 0x1009d755
push edi
call fcn.10072644
movzx eax, ax
pop ecx
mov dword [ebp - 0x80], eax
push edi
cmp eax, 0x10
jbe 0x1009d222
mov dword [ebp - 0x70], 3
call fcn.100724fc
pop ecx
mov edx, dword [ebp - 0x70]
jmp 0x1009d755
push edi
call fcn.10072644
pop ecx
mov ecx, 0x8008
movzx eax, ax
push edi
cmp word [ebp - 0x74], cx
je 0x1009d235
imul eax, eax, 0xc
add eax, 4
add dword [edi + 0x20], eax
call fcn.10072644
movzx eax, ax
mov dword [ebp - 0x74], eax
pop ecx
test ax, ax
jne 0x1009d203
jmp 0x1009d24b
mov esi, eax
call fcn.1007277f
pop ecx
mov ecx, dword [edi + 0x20]
sub ecx, dword [edi + 0x24]
add ecx, 4
add eax, ecx
mov dword [ebp - 0x78], eax
push edi
call fcn.100724fc
pop ecx
test si, si
je 0x1009d731
cmp dword [ebp - 0x78], 0
je 0x1009d731
movzx ecx, si
imul eax, ecx, 0x76
cmp eax, dword [edi + 4]
ja 0x1009d731
cmp dword [ebp + 0xc], 0
mov dword [ebx], ecx
jl 0x1009d1fb
mov esi, dword [ebp - 0x88]
cmp esi, ecx
jae 0x1009d73f
lea eax, [ebp - 0x70]
push eax
push 0xac
push dword [ebp - 0x98]
call fcn.100742a0
mov edx, dword [ebp - 0x70]
add esp, 0xc
mov dword [ebx + 0x84], eax
test edx, edx
jne 0x1009d755
imul eax, esi, 0xc
add eax, dword [ebp - 0x78]
push eax
push edi
call fcn.10072c9c
mov dword [ebp - 0x70], eax
pop ecx
pop ecx
test eax, eax
jne 0x1009d747
push 0xc
push edi
call fcn.10072456
mov dword [ebp - 0x70], eax
pop ecx
pop ecx
test eax, eax
jne 0x1009d747
mov eax, dword [ebp - 0x80]
push edi
movzx esi, ax
call fcn.10072644
movzx edx, ax
mov ecx, esi
mov eax, dword [ebx + 0x84]
shl edx, cl
push edi
mov dword [eax], edx
call fcn.10072644
movzx edx, ax
mov ecx, esi
mov eax, dword [ebx + 0x84]
shl edx, cl
push edi
mov dword [eax + 0xa4], edx
add dword [edi + 0x20], 8
call fcn.100724fc
push edi
push dword [ebx + 0x84]
call fcn.1009d7bb
mov edx, eax
add esp, 0x14
mov dword [ebp - 0x70], edx
jmp 0x1009d72c
mov eax, 0x4550
cmp word [ebp - 0x90], ax
jne 0x1009d72c
movzx eax, word [ebp - 0x7a]
push eax
push edi
call fcn.10072c9c
mov edx, eax
mov dword [ebp - 0x70], edx
pop ecx
pop ecx
test edx, edx
jne 0x1009d755
lea eax, [ebp - 0x18]
push eax
push 0x100e69dc
push edi
call fcn.10072858
mov edx, eax
add esp, 0xc
mov dword [ebp - 0x70], edx
test edx, edx
jne 0x1009d755
cmp dword [ebp - 0x18], 0x4550
jne 0x1009d731
mov eax, 0x14c
cmp word [ebp - 0x14], ax
jne 0x1009d731
add eax, 0xffffff94
cmp word [ebp - 0x10], ax
jne 0x1009d731
mov eax, 0x10b
cmp word [ebp - 0xe], ax
jne 0x1009d731
mov dword [ebx], esi
xor eax, eax
mov dword [ebp - 0x74], esi
jmp 0x1009d3f6
lea eax, [ebp - 0x2c]
push eax
push 0x100e6a10
push edi
call fcn.10072858
mov edx, eax
add esp, 0xc
mov dword [ebp - 0x70], edx
test edx, edx
jne 0x1009d755
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x24]
je 0x1009d401
mov eax, dword [ebp - 0x74]
inc eax
mov dword [ebp - 0x74], eax
cmp ax, word [ebp - 0x12]
jb 0x1009d3c8
jmp 0x1009d731
push dword [ebp - 0x1c]
push edi
call fcn.10072c9c
mov edx, eax
mov dword [ebp - 0x70], edx
pop ecx
pop ecx
test edx, edx
jne 0x1009d755
lea eax, [ebp - 0x5c]
push eax
push 0x100e6a30
push edi
call fcn.10072858
mov edx, eax
add esp, 0xc
mov dword [ebp - 0x70], edx
test edx, edx
jne 0x1009d755
mov eax, dword [ebp - 0x1c]
movzx ecx, word [ebp - 0x4e]
mov dword [ebp - 0x94], eax
movzx eax, word [ebp - 0x50]
mov dword [ebp - 0x74], esi
add ecx, eax
je 0x1009d72c
mov eax, esi
mov ecx, dword [ebp - 0x94]
lea eax, [eax + 2]
lea eax, [ecx + eax*8]
push eax
push edi
call fcn.10072c9c
mov edx, eax
mov dword [ebp - 0x70], edx
pop ecx
pop ecx
test edx, edx
jne 0x1009d755
lea eax, [ebp - 0xb0]
push eax
push 0x100e6a50
push edi
call fcn.10072858
mov edx, eax
add esp, 0xc
mov dword [ebp - 0x70], edx
test edx, edx
jne 0x1009d755
mov ecx, dword [ebp - 0xac]
test ecx, ecx
jns 0x1009d731
mov eax, dword [ebp - 0x1c]
and ecx, 0x7fffffff
mov dword [ebp - 0xac], ecx
lea edx, [ecx + eax]
add eax, ecx
push eax
push edi
mov dword [ebp - 0x9c], edx
call fcn.10072c9c
mov edx, eax
mov dword [ebp - 0x70], edx
pop ecx
pop ecx
test edx, edx
jne 0x1009d755
lea eax, [ebp - 0x4c]
push eax
push 0x100e6a30
push edi
call fcn.10072858
mov edx, eax
add esp, 0xc
mov dword [ebp - 0x70], edx
test edx, edx
jne 0x1009d755
movzx ecx, word [ebp - 0x3e]
movzx eax, word [ebp - 0x40]
mov dword [ebp - 0x84], esi
add ecx, eax
je 0x1009d70e
mov eax, esi
mov ecx, dword [ebp - 0x9c]
lea eax, [eax + 2]
lea eax, [ecx + eax*8]
push eax
push edi
call fcn.10072c9c
mov edx, eax
mov dword [ebp - 0x70], edx
pop ecx
pop ecx
test edx, edx
jne 0x1009d755
lea eax, [ebp - 0xa8]
push eax
push 0x100e6a50
push edi
call fcn.10072858
mov edx, eax
add esp, 0xc
mov dword [ebp - 0x70], edx
test edx, edx
jne 0x1009d755
mov ecx, dword [ebp - 0xa4]
test ecx, ecx
jns 0x1009d731
mov eax, dword [ebp - 0x1c]
and ecx, 0x7fffffff
mov dword [ebp - 0xa4], ecx
lea edx, [ecx + eax]
add eax, ecx
push eax
push edi
mov dword [ebp - 0xa0], edx
call fcn.10072c9c
mov edx, eax
mov dword [ebp - 0x70], edx
pop ecx
pop ecx
test edx, edx
jne 0x1009d755
lea eax, [ebp - 0x3c]
push eax
push 0x100e6a30
push edi
call fcn.10072858
mov edx, eax
add esp, 0xc
mov dword [ebp - 0x70], edx
test edx, edx
jne 0x1009d755
movzx ecx, word [ebp - 0x2e]
movzx eax, word [ebp - 0x30]
mov dword [ebp - 0x78], esi
add ecx, eax
je 0x1009d6ea
mov eax, esi
mov ecx, dword [ebp - 0xa0]
lea eax, [eax + 2]
lea eax, [ecx + eax*8]
push eax
push edi
call fcn.10072c9c
mov edx, eax
mov dword [ebp - 0x70], edx
pop ecx
pop ecx
test edx, edx
jne 0x1009d755
lea eax, [ebp - 0xb8]
push eax
push 0x100e6a50
push edi
call fcn.10072858
mov edx, eax
add esp, 0xc
mov dword [ebp - 0x70], edx
test edx, edx
jne 0x1009d755
test dword [ebp - 0xa4], 0x80000000
jne 0x1009d731
cmp dword [ebp - 0xb0], 8
jne 0x1009d6cc
mov eax, dword [ebp - 0xb4]
add eax, dword [ebp - 0x94]
push eax
push edi
call fcn.10072c9c
mov edx, eax
mov dword [ebp - 0x70], edx
pop ecx
pop ecx
test edx, edx
jne 0x1009d755
lea eax, [ebp - 0x6c]
push eax
push 0x100e6a60
push edi
call fcn.10072858
mov edx, eax
add esp, 0xc
mov dword [ebp - 0x70], edx
test edx, edx
jne 0x1009d755
mov eax, dword [ebp - 0x88]
cmp eax, dword [ebx]
jne 0x1009d6ca
lea eax, [ebp - 0x70]
push eax
push 0xac
push dword [ebp - 0x98]
call fcn.100742a0
mov edx, dword [ebp - 0x70]
add esp, 0xc
mov dword [ebx + 0x84], eax
test edx, edx
jne 0x1009d755
mov ecx, dword [ebp - 0x6c]
sub ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov ecx, dword [ebx + 0x84]
mov eax, dword [ebp - 0x68]
push edi
mov dword [ecx + 0xa4], eax
push dword [ebx + 0x84]
call fcn.1009d7bb
mov edx, eax
mov dword [ebp - 0x70], edx
pop ecx
pop ecx
test edx, edx
jne 0x1009d747
inc dword [ebx]
inc dword [ebp - 0x78]
movzx eax, word [ebp - 0x30]
movzx ecx, word [ebp - 0x2e]
mov esi, dword [ebp - 0x78]
add ecx, eax
movzx eax, si
push 0
pop esi
cmp eax, ecx
jb 0x1009d5c5
inc dword [ebp - 0x84]
movzx eax, word [ebp - 0x40]
movzx ecx, word [ebp - 0x3e]
mov ebx, dword [ebp - 0x84]
add ecx, eax
movzx eax, bx
mov ebx, dword [ebp - 0x80]
cmp eax, ecx
jb 0x1009d50f
inc dword [ebp - 0x74]
movzx eax, word [ebp - 0x50]
movzx ecx, word [ebp - 0x4e]
mov ebx, dword [ebp - 0x74]
add ecx, eax
movzx eax, bx
mov ebx, dword [ebp - 0x80]
cmp eax, ecx
jb 0x1009d456
cmp dword [ebx], 0
jne 0x1009d735
push 3
jmp 0x1009d754
mov eax, dword [ebp - 0x88]
cmp eax, dword [ebx]
jl 0x1009d743
push 6
jmp 0x1009d754
test edx, edx
je 0x1009d755
push ebx
call fcn.1009d766
jmp 0x1009d1fa
push 2
pop edx
mov ecx, dword [ebp - 4]
mov eax, edx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100daa0d
leave
ret