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

Disassembly:
push 0xffffffffffffffff
push 0x10080d83
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10097288]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov dword [esp + 0x88], ecx
mov edi, dword [esp + 0xbc]
mov ebp, dword [esp + 0xc0]
mov eax, dword [edi]
mov esi, dword [eax + 0x24]
cmp esi, 5
mov al, byte [eax + 0x3c]
sete byte [esp + 0x17]
mov dword [esp + 0x2c], esi
cmp dword [esp + 0xcc], 0
mov byte [esp + 0x16], al
jne 0x100168d5
mov eax, dword [esp + 0xc4]
cmp dword [eax + 0x78], 0x64
jge 0x100169f0
xor ebx, ebx
mov dword [esp + 0x1c], ebx
test esi, esi
jle 0x100169f0
mov eax, dword [ebp]
mov ecx, ebp
push ebx
call dword [eax + 0xc]
mov edx, dword [ebp]
mov ecx, ebp
push ebx
mov esi, eax
call dword [edx + 8]
cmp eax, esi
jge 0x100169df
mov ecx, dword [edi + 4]
mov eax, 0x4bda12f7
mov esi, dword [edi]
sub ecx, esi
imul ecx
mov dword [esp + 0x28], 0
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x100169df
xor eax, eax
mov dword [esp + 0x18], eax
lea ecx, [ecx]
xor ecx, ecx
lea ebx, [eax + esi]
mov dword [esp + 0x20], ecx
cmp dword [ebx + 0x18], ecx
jbe 0x100169a7
mov edx, dword [ebx + 0x14]
xor esi, esi
test edx, edx
je 0x10016993
mov eax, dword [ebp]
mov ecx, ebp
push dword [esp + 0x1c]
call dword [eax + 0xc]
mov edx, dword [ebp]
mov ecx, ebp
push dword [esp + 0x1c]
mov edi, eax
call dword [edx + 8]
mov ecx, dword [esp + 0x1c]
add eax, edi
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebx + ecx*4]
push eax
push esi
push dword [esp + 0x28]
mov edx, dword [ecx]
call dword [edx + 4]
mov edi, dword [esp + 0xbc]
inc esi
mov ebx, dword [edi]
add ebx, dword [esp + 0x18]
mov edx, dword [ebx + 0x14]
cmp esi, edx
jb 0x10016947
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
inc ecx
add ebx, dword [edi]
mov dword [esp + 0x20], ecx
cmp ecx, dword [ebx + 0x18]
jb 0x10016941
mov eax, dword [esp + 0x18]
mov ecx, dword [edi + 4]
add eax, 0x6c
mov esi, dword [edi]
sub ecx, esi
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x18], eax
inc ebx
mov eax, 0x4bda12f7
mov dword [esp + 0x28], ebx
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
mov eax, dword [esp + 0x18]
jl 0x10016930
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
inc ebx
mov dword [esp + 0x1c], ebx
cmp ebx, esi
jl 0x100168e3
mov edx, ebp
lea ecx, [esp + 0x8c]
call fcn.1000a110
mov ebx, 0x1008c970
mov dword [esp + 0xb0], 0
xor eax, eax
mov dword [esp + 0x70], ebx
mov ebx, dword [ebx]
mov dword [esp + 0x18], ebx
cmp ebx, esi
jge 0x10016e5f
inc eax
mov dword [esp + 0x28], eax
cmp esi, 3
jle 0x10016a35
mov eax, dword [ebx*4 + 0x1008c950]
jmp 0x10016a3c
mov eax, dword [ebx*4 + 0x1008c9b0]
push eax
lea ecx, [esp + 0x78]
call fcn.10018f50
mov eax, dword [esp + 0xc4]
mov byte [esp + 0xb0], 1
push dword [0x1009b7b4]
mov eax, dword [eax + 0x78]
push dword [0x1009b7b0]
cdq
push edx
push eax
call fcn.1007f6f0
push 0
push 0x64
push dword [0x1009b7a4]
mov dword [esp + 0x30], eax
mov esi, edx
push dword [0x1009b7a0]
call fcn.1007f6f0
cmp edx, esi
jg 0x10016ead
jl 0x10016a9b
cmp eax, dword [esp + 0x24]
ja 0x10016ead
mov eax, dword [ebp]
mov ecx, ebp
push ebx
call dword [eax + 0xc]
mov edx, dword [ebp]
mov ecx, ebp
push ebx
mov esi, eax
call dword [edx + 8]
cmp eax, esi
jge 0x10016e26
mov eax, dword [ebp]
mov ecx, ebp
push ebx
call dword [eax + 8]
mov ecx, dword [edi]
mov dword [esp + 0x38], eax
push dword [ecx + 0x18]
push dword [ecx + 0x14]
push dword [esp + 0x34]
push dword [esp + 0x34]
push 0
push 0x64
push dword [0x1009b7a4]
push dword [0x1009b7a0]
call fcn.1007f6f0
push dword [0x1009b7b4]
push dword [0x1009b7b0]
push edx
push eax
call fcn.1007f740
push eax
push 0x1008aacc
push 2
call fcn.10052110
add esp, 0x1c
push 0x1008ab5c
push 4
call fcn.10052110
mov esi, dword [edi]
add esp, 8
mov edx, dword [0x1009b7a0]
mov dword [esp + 0x20], 0
mov ecx, dword [esi + 0x18]
mov eax, ecx
imul eax, dword [esi + 0x14]
add edx, eax
mov eax, dword [0x1009b7a4]
mov dword [0x1009b7a0], edx
adc eax, 0
mov dword [0x1009b7a4], eax
test ecx, ecx
je 0x10016cf4
cmp dword [esi + 0x14], 0
je 0x10016efb
mov ecx, dword [edi + 4]
mov eax, 0x4bda12f7
sub ecx, esi
mov dword [esp + 0x1c], 0
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x10016cd1
mov eax, dword [esp + 0x18]
imul ecx, eax, 0x401c
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x34], ecx
jmp 0x10016b9b
mov eax, dword [esp + 0x18]
add ebx, esi
mov eax, dword [ebx + eax*4]
mov dword [esp + 0x30], eax
mov dword [esp + 0x80], 0x1008e13c
mov dword [esp + 0x84], 1
cmp dword [esp + 0x2c], 3
mov byte [esp + 0xb0], 2
jle 0x10016bce
mov esi, dword [ebx + 0xc]
jmp 0x10016bd5
lea esi, [esp + 0x80]
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x2c]
call eax
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0x18]
mov ecx, dword [ecx]
add ecx, dword [esp + 0x34]
test al, al
mov eax, dword [esp + 0x8c]
mov eax, dword [eax + edx*4]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x74]
mov dword [esp + 0x64], eax
mov al, byte [esp + 0x16]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x68], al
mov al, byte [esp + 0x17]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], edx
mov dword [esp + 0x5c], ecx
mov byte [esp + 0x69], al
je 0x10016c57
mov dword [esp + 0x3c], 0x1008e2a0
mov byte [esp + 0xb0], 3
jmp 0x10016c7f
cmp dword [ebx + 0x2c], 8
jg 0x10016c6f
mov dword [esp + 0x3c], 0x1008e300
mov byte [esp + 0xb0], 4
jmp 0x10016c7f
mov dword [esp + 0x3c], 0x1008e380
mov byte [esp + 0xb0], 5
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x3c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ebx, dword [esp + 0x24]
mov eax, 0x4bda12f7
inc dword [esp + 0x1c]
add ebx, 0x6c
mov byte [esp + 0xb0], 1
mov ecx, dword [edi + 4]
mov esi, dword [edi]
sub ecx, esi
imul ecx
mov dword [esp + 0x80], 0x1008e0ac
sar edx, 5
mov eax, edx
mov dword [esp + 0x24], ebx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x1c], eax
jl 0x10016b97
mov eax, dword [esp + 0x20]
mov esi, dword [edi]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esi + 0x18]
jb 0x10016b51
mov eax, dword [0x1009b7a4]
mov edx, dword [0x1009b7a0]
mov ebx, dword [esp + 0x18]
push 0
push 0x2710
push eax
push edx
call fcn.1007f6f0
push dword [0x1009b7b4]
push dword [0x1009b7b0]
push edx
push eax
call fcn.1007f740
cmp dword [esp + 0xcc], 0
mov esi, eax
mov dword [esp + 0x24], esi
je 0x10016e26
cmp ebx, 4
je 0x10016e26
cmp esi, dword [0x1009b7a8]
jl 0x10016e26
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0xa4], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x98], edi
mov dword [0x100982f8], esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x4c], 0
push 0x18
mov byte [esp + 0xb4], 6
call fcn.1006f89d
add esp, 4
test eax, eax
je 0x10016ea8
movdqu xmm0, xmmword [esp + 0x98]
mov dword [eax], 0x1008e648
movdqu xmmword [eax + 4], xmm0
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x3c]
mov byte [esp + 0xb0], 7
push eax
mov eax, dword [esp + 0x8c]
cmp esi, 0x2710
push dword [esp + 0xd4]
sete cl
movzx ecx, cl
mov eax, dword [eax + 8]
push ecx
cdq
push edx
push eax
push esi
call dword [esp + 0xe4]
mov byte [esp + 0xc8], 1
add esp, 0x18
mov ecx, dword [esp + 0x4c]
mov ebx, eax
test ecx, ecx
je 0x10016e18
mov esi, dword [ecx]
lea eax, [esp + 0x3c]
cmp ecx, eax
setne dl
movzx eax, dl
push eax
call dword [esi + 0x10]
mov esi, dword [esp + 0x24]
mov dword [0x1009b7a8], ebx
cmp esi, ebx
jge 0x10016efb
mov byte [esp + 0xb0], 0
mov eax, dword [esp + 0x74]
test eax, eax
je 0x10016e57
push eax
call fcn.1006f76a
add esp, 4
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x70]
add ebx, 4
mov dword [esp + 0x70], ebx
cmp ebx, 0x1008c984
jl 0x10016a14
mov bl, 1
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x10016e8c
push eax
call fcn.1006f76a
add esp, 4
mov al, bl
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
call fcn.1006ebd5
push 0
push 0x64
push dword [0x1009b7a4]
push dword [0x1009b7a0]
call fcn.1007f6f0
push dword [0x1009b7b4]
push dword [0x1009b7b0]
push edx
push eax
call fcn.1007f740
push eax
mov eax, dword [esp + 0xc8]
push dword [eax + 0x78]
push dword [0x1009b7b0]
push dword [0x1009b7a0]
push 0x1008ab60
push 5
call fcn.100520e0
add esp, 0x18
mov eax, dword [esp + 0x74]
test eax, eax
je 0x10016f0c
push eax
call fcn.1006f76a
add esp, 4
xor bl, bl
jmp 0x10016e78