Function at 0x10016508
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
nop dword [eax]
cmp edi, 5
ja case.0x100164a5.0
jmp dword [edi*4 + 0x10016724]
mov edx, dword [esi + 0x18]
add eax, 0x78
mov edi, dword [esi + 8]
mov dword [ebp + 8], edx
mov edx, dword [esi + 0x14]
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], edx
jmp 0x1001652a
mov edx, dword [esi + 0x18]
add eax, 0x60
mov edi, dword [esi + 8]
mov dword [ebp + 8], edx
mov edx, dword [esi + 0x14]
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], edx
jmp 0x1001652a
mov edx, dword [esi + 0x18]
add eax, 0x68
mov edi, dword [esi + 8]
mov dword [ebp + 8], edx
mov edx, dword [esi + 0x14]
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], edx
jmp 0x1001652a
mov ecx, dword [esi + 0x18]
add eax, 0x70
mov edi, dword [esi + 8]
mov dword [ebp + 8], ecx
mov ecx, dword [esi + 0x14]
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], ecx
jmp 0x1001652a
cmp dword [ebp - 8], 5
lea edi, [eax + 0x58]
mov edx, dword [esi + 0x18]
mov dword [ebp + 8], edx
mov edx, dword [esi + 0x14]
mov dword [ebp + 0xc], edi
mov edi, dword [esi + 8]
mov dword [ebp - 4], edx
je 0x10016705
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
test ecx, ecx
jne 0x1001653f
push ecx
call fcn.100b28d0
add esp, 4
jmp 0x1001656b
mov eax, dword [eax]
cdq
push edx
push eax
push 0xfff0b9d8
push ecx
call fcn.100b2aa0
mov eax, dword [ebp + 0xc]
add esp, 0x10
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 0xc]
cmp eax, ecx
je 0x1001656b
push 1
push eax
push ecx
call fcn.100b3520
add esp, 0xc
push 0xffffffffffffffff
push ebx
call fcn.100b1d10
add esp, 8
mov dword [ebp + 0xc], eax
cmp byte [esi + 5], 0
mov edx, eax
mov ecx, ebx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
je 0x100165d0
mov edx, dword [esi + 0x3c]
test edx, edx
jne 0x10016595
mov eax, dword [esi + 0x34]
jmp 0x100165a6
mov ecx, dword [esi + 0x38]
mov eax, dword [ebp + 8]
mov eax, dword [ecx + eax]
mov eax, dword [eax + edx]
add eax, ecx
add eax, dword [esi + 0x34]
push dword [esi + 0x2c]
lea ecx, [ebp - 0x18]
push dword [esi + 0x28]
push dword [esi + 0x24]
push dword [esi + 0x20]
push ecx
push dword [esi + 0x1c]
mov ecx, dword [ebp + 8]
push dword [ebp - 8]
add ecx, eax
mov eax, dword [esi + 0x30]
push ebx
call eax
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
cmp byte [esi], 0
je 0x100165f3
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x100166fa
cmp eax, 3
je 0x100166fa
cmp eax, 2
je 0x100166fa
cmp byte [esi + 1], 0
jne 0x100166fa
cmp byte [esi + 2], 0
jne 0x100166fa
cmp byte [esi + 3], 0
jne 0x100166fa
cmp byte [esi + 4], 0
jne 0x100166fa
cmp byte [esi + 6], 0
je 0x10016647
cmp dword [edi + 0x14], 0xf
mov eax, dword [edi + 0x10]
jbe 0x1001662c
mov edi, dword [edi]
push eax
push edi
push ebx
call fcn.100b2870
push 0
push dword [esi + 0x10]
push ebx
call fcn.100b2760
add esp, 0x18
jmp 0x100166e2
cmp byte [esi + 7], 0
mov dword [ebp + 0xc], edx
je 0x100166a9
cmp dword [edi + 0x14], 0xf
mov eax, dword [esi + 0xc]
mov dword [ebp + 8], eax
mov eax, dword [edi + 0x10]
jbe 0x10016661
mov edi, dword [edi]
push eax
push edi
push ebx
call fcn.100b2870
mov edi, dword [ebp + 8]
add esp, 0xc
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x10016681
push ebx
call fcn.100b28d0
add esp, 4
jmp 0x100166e2
mov eax, dword [edi]
cdq
push edx
push eax
push 0xfff0b9d8
push ecx
call fcn.100b2aa0
mov eax, dword [edi + 4]
add esp, 0x10
cmp ebx, eax
je 0x100166e2
push 1
push ebx
push eax
call fcn.100b3520
add esp, 0xc
jmp 0x100166e2
cmp dword [edi + 0x14], 0xf
mov eax, dword [esi + 0x10]
mov dword [ebp + 8], eax
mov eax, dword [edi + 0x10]
jbe 0x100166ba
mov edi, dword [edi]
push eax
push edi
push ebx
call fcn.100b2870
push ebx
call fcn.100b28d0
mov eax, dword [ebp - 4]
push dword [eax + 8]
push ebx
call fcn.100b2850
push 2
push dword [ebp + 8]
push ebx
call fcn.100b2760
add esp, 0x24
push dword [ebp + 0xc]
push ebx
call fcn.100b2ba0
push 0xfffffffffffffffe
push dword [ebp - 0x14]
call fcn.100b2fe0
add esp, 0x10
jmp 0x10016705
push 0xfffffffffffffffe
push ecx
call fcn.100b2fe0
add esp, 8
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
inc edi
mov dword [ebp - 8], edi
cmp edi, 6
jl 0x100164a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8