Function at 0x100995b4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x34], xmm0
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x100995ed
xor eax, eax
xor edx, edx
jmp 0x10099817
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], 0x4550
je 0x10099619
xor eax, eax
xor edx, edx
jmp 0x10099817
mov edx, dword [ebp - 0x10]
movzx eax, word [edx + 4]
cmp eax, 0x8664
jne 0x10099639
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x50]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1c], 0
jmp 0x10099649
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x50]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], 1
push 0x40
push 0x1000
mov edx, dword [ebp - 0x14]
push edx
push 0
push 0xffffffffffffffff
call dword [0x10020044]
cdq
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x34]
or eax, dword [ebp - 0x30]
jne 0x10099692
mov ecx, dword [ebp - 0x34]
or ecx, dword [ebp - 0x30]
je 0x10099689
push 0x8000
push 0
mov edx, dword [ebp - 0x34]
push edx
push 0xffffffffffffffff
call dword [0x10020048]
nop
xor eax, eax
xor edx, edx
jmp 0x10099817
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 6]
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 4]
cdq
mov ecx, eax
add ecx, 0x14
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x14]
cdq
add ecx, eax
add ecx, 4
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.100a3d34
add esp, 0xc
mov dword [ebp - 0x18], 0
jmp 0x100996e4
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x2c]
jge 0x1009971b
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp + 8]
cdq
mov ecx, dword [ebp - 8]
add eax, dword [ecx + 0x14]
push eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
add eax, dword [ebp - 0x34]
push eax
call fcn.100a3d34
add esp, 0xc
mov ecx, dword [ebp - 8]
add ecx, 0x28
mov dword [ebp - 8], ecx
jmp 0x100996db
mov edx, 8
imul eax, edx, 5
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 0x88]
mov dword [ebp - 0x20], edx
xorps xmm0, xmm0
movlpd qword [ebp - 0x3c], xmm0
cmp dword [ebp + 0x14], 0
je 0x10099755
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
sub ecx, dword [eax + 0x30]
mov edx, dword [ebp + 0x10]
sbb edx, dword [eax + 0x34]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], edx
jmp 0x1009976a
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x34]
sub ecx, dword [eax + 0x30]
mov edx, dword [ebp - 0x30]
sbb edx, dword [eax + 0x34]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0
je 0x100997b7
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.10099974
add esp, 0x14
movzx eax, al
test eax, eax
jne 0x100997b7
mov ecx, dword [ebp - 0x34]
or ecx, dword [ebp - 0x30]
je 0x100997b1
push 0x8000
push 0
mov edx, dword [ebp - 0x34]
push edx
push 0xffffffffffffffff
call dword [0x10020048]
nop
xor eax, eax
xor edx, edx
jmp 0x10099817
mov eax, 8
shl eax, 0
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 0x88]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
cmp dword [eax], 0
je 0x10099811
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.10099824
add esp, 0xc
movzx ecx, al
test ecx, ecx
jne 0x10099811
mov edx, dword [ebp - 0x34]
or edx, dword [ebp - 0x30]
je 0x1009980b
push 0x8000
push 0
mov eax, dword [ebp - 0x34]
push eax
push 0xffffffffffffffff
call dword [0x10020048]
nop
xor eax, eax
xor edx, edx
jmp 0x10099817
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
mov esp, ebp
pop ebp
ret