Function at 0x10016308
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e6390
push 0x100c1d20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffb0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x34], 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10016437
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
sub eax, dword [edx + 4]
mov ecx, dword [ebp + 0x10]
cmp eax, dword [ecx + 8]
jae 0x100163ac
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
sub eax, dword [edx + 4]
mov dword [ebp - 0x4c], eax
jmp 0x100163b5
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x4c], edx
cmp dword [ebp - 0x4c], 0x100000
jae 0x100163ee
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
sub ecx, dword [eax + 4]
mov edx, dword [ebp + 0x10]
cmp ecx, dword [edx + 8]
jae 0x100163dd
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
sub ecx, dword [eax + 4]
mov dword [ebp - 0x50], ecx
jmp 0x100163e6
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 8]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x54], ecx
jmp 0x100163f5
mov dword [ebp - 0x54], 0x100000
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 4]
push edx
mov ecx, dword [ebp - 0x48]
call fcn.100166b1
test eax, eax
je 0x10016437
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0x30], ecx
jmp 0x1001669b
mov edx, dword [ebp + 8]
mov dword [ebp - 0x28], edx
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0x40
jae 0x10016453
mov dword [ebp - 0x44], 1
jmp 0x100164cf
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
je 0x1001646c
mov dword [ebp - 0x44], 1
jmp 0x100164cf
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x3c]
add eax, 0x138
cmp dword [ebp + 0xc], eax
jae 0x10016485
mov dword [ebp - 0x44], 1
jmp 0x100164cf
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x28]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
cmp dword [eax], 0x4550
je 0x100164a5
mov dword [ebp - 0x44], 1
jmp 0x100164cf
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov dx, word [ecx + 6]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x3c]
add eax, 0xf8
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0x28]
mov dword [ebp - 0x38], edx
xor eax, eax
test eax, eax
jne 0x10016444
mov dword [ebp - 4], 0xffffffff
jmp 0x100164ef
cmp dword [ebp - 0x44], 0
jne 0x100164fb
cmp dword [ebp - 0x1c], 0
jne 0x1001654e
cmp dword [ebp + 0xc], 0xa0000
jae 0x1001650c
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x58], ecx
jmp 0x10016513
mov dword [ebp - 0x58], 0xa0000
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x48]
call fcn.100166b1
test eax, eax
je 0x10016549
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x30], edx
jmp 0x1001669b
jmp 0x1001669b
mov dword [ebp - 0x2c], 0
jmp 0x10016569
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x28
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x24]
jae 0x1001669b
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [eax + 0xc]
jb 0x100165a1
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x1c]
add eax, dword [ecx + 8]
cmp dword [ebp - 0x38], eax
jae 0x100165a1
mov dword [ebp - 4], 0xffffffff
jmp 0x10016557
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x48]
call fcn.100161dd
test eax, eax
jne 0x100165ba
mov dword [ebp - 4], 0xffffffff
jmp 0x10016557
cmp dword [ebp + 0x14], 2
jne 0x100165f2
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0xc]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 8], 0x10000
jae 0x100165e3
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x5c], ecx
jmp 0x100165ea
mov dword [ebp - 0x5c], 0x10000
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x20], edx
jmp 0x10016622
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x14]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x10], 0x10000
jae 0x10016615
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x60], ecx
jmp 0x1001661c
mov dword [ebp - 0x60], 0x10000
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
add ecx, dword [ebp + 0xc]
cmp eax, ecx
jbe 0x1001663e
mov dword [ebp - 4], 0xffffffff
jmp 0x10016557
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x48]
call fcn.100166b1
test eax, eax
je 0x10016678
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x30], edx
mov dword [ebp - 4], 0xffffffff
jmp 0x1001669b
mov dword [ebp - 4], 0xffffffff
jmp 0x10016696
jmp 0x10016557
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10