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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1028be85
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
push ebx
push esi
push edi
mov eax, dword [0x103fb8f8]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov ebx, ecx
test ebx, ebx
je 0x1016ea6d
lea eax, [ebx + 8]
jmp 0x1016ea6f
xor eax, eax
push eax
lea ecx, [esp + 0x18]
call dword [0x102abd0c]
mov eax, dword [ebx + 0x14]
lea ecx, [esp + 0x14]
add eax, 0x28
mov dword [esp + 0xd0], 0
push eax
call dword [0x102abd04]
mov esi, dword [ebp + 8]
lea eax, [ebx + 0x64]
push eax
lea ecx, [esp + 0x18]
lea eax, [esi + 0xc]
push eax
call dword [0x102abcf0]
mov ecx, dword [ebx + 0x8c]
mov eax, dword [esi + 0x10]
cdq
idiv ecx
mov edi, eax
xor eax, eax
sub edi, ecx
shl edi, 4
test edi, edi
cmovs edi, eax
mov eax, dword [esi + 0x18]
cdq
idiv ecx
mov dword [esp + 0x38], edi
add eax, ecx
lea ecx, [ebx + 0x3c]
shl eax, 4
mov dword [esp + 0x2c], eax
call fcn.1016fe70
cmp dword [esp + 0x2c], eax
jle 0x1016eaf2
lea ecx, [ebx + 0x3c]
call fcn.1016fe70
mov dword [esp + 0x2c], eax
mov esi, dword [esp + 0x2c]
lea ecx, [ebx + 0x3c]
mov eax, edi
sub esi, edi
cdq
inc esi
and edx, 0xf
add eax, edx
sar eax, 4
inc eax
imul eax, dword [ebx + 0x8c]
push esi
push edi
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x74]
push eax
call fcn.1016fca0
mov ecx, eax
call dword [0x102ab4dc]
mov edi, dword [0x102ab514]
lea ecx, [esp + 0x24]
push ecx
mov ecx, eax
mov byte [esp + 0xd4], 1
call edi
lea ecx, [esp + 0x6c]
mov byte [esp + 0xd0], 3
call dword [0x102aba30]
cmp byte [ebx + 0x86], 0
je 0x1016ebf5
push esi
push dword [esp + 0x3c]
lea eax, [esp + 0x38]
push eax
lea ecx, [ebx + 0x40]
call fcn.1016fca0
mov ecx, eax
call dword [0x102ab4dc]
lea ecx, [esp + 0x28]
mov byte [esp + 0xd0], 4
push ecx
mov ecx, eax
call edi
lea ecx, [esp + 0x30]
mov byte [esp + 0xd0], 6
call dword [0x102aba30]
mov eax, dword [esp + 0x24]
xor esi, esi
cmp dword [eax + 4], esi
jle 0x1016ebe3
lea eax, [esp + 0x28]
mov dword [esp + 0x60], esi
push 0x31
lea ecx, [esp + 0x60]
mov dword [esp + 0x60], eax
call dword [0x102ab4ac]
test al, al
je 0x1016ebd9
lea eax, [esp + 0x24]
mov dword [esp + 0x58], esi
push 0x3f
lea ecx, [esp + 0x58]
mov dword [esp + 0x58], eax
call dword [0x102ab4c8]
mov eax, dword [esp + 0x24]
inc esi
cmp esi, dword [eax + 4]
jl 0x1016eba5
lea ecx, [esp + 0x28]
mov byte [esp + 0xd0], 3
call dword [0x102aba30]
mov eax, dword [esp + 0x38]
mov esi, dword [0x102aba98]
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x2c]
jge 0x1016f0a8
mov dword [esp + 0x28], 0
lea ecx, [esp + 0x18]
call dword [0x102aba48]
mov eax, dword [ebx + 0x9c]
lea ecx, [ebx + 0x3c]
xor edi, edi
mov byte [esp + 0xd0], 7
mov dword [esp + 0x1c], eax
mov dword [esp + 0x3c], edi
call fcn.1016fe70
mov ecx, dword [esp + 0x20]
cmp ecx, eax
jge 0x1016f06e
jmp 0x1016ec54
mov ecx, dword [esp + 0x20]
cmp edi, 0x10
jge 0x1016f06e
add edi, ecx
cmp dword [ebx + 0xa0], edi
jg 0x1016ecac
cmp dword [ebx + 0xa4], edi
jle 0x1016ecac
push 1
lea eax, [ebx + 0x74]
push eax
lea ecx, [esp + 0x58]
call dword [0x102aba7c]
lea eax, [esp + 0x50]
mov byte [esp + 0xd0], 8
push eax
lea ecx, [esp + 0x18]
call dword [0x102abb38]
lea ecx, [esp + 0x50]
mov byte [esp + 0xd0], 7
call dword [0x102aba80]
push 1
jmp 0x1016ece7
push 1
lea eax, [ebx + 0x64]
push eax
lea ecx, [esp + 0x38]
call dword [0x102aba7c]
lea eax, [esp + 0x30]
mov byte [esp + 0xd0], 9
push eax
lea ecx, [esp + 0x18]
call dword [0x102abb38]
lea ecx, [esp + 0x30]
mov byte [esp + 0xd0], 7
call dword [0x102aba80]
push 0
lea ecx, [esp + 0x18]
call dword [0x102abb3c]
lea eax, [ebx + 0x44]
push eax
lea ecx, [esp + 0x18]
call esi
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x24]
push 2
test eax, eax
jne 0x1016ee70
push dword [esp + 0x2c]
lea eax, [esp + 0x7c]
push eax
call dword [0x102ab4dc]
lea ecx, [esp + 0x7c]
mov byte [esp + 0xd0], 0xa
push ecx
mov ecx, eax
call dword [0x102ab51c]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd4], 0xb
call dword [0x102ab4a8]
lea ecx, [esp + 0x7c]
mov byte [esp + 0xd0], 0xa
call dword [0x102aba30]
lea ecx, [esp + 0x74]
mov byte [esp + 0xd0], 7
call dword [0x102aba30]
mov eax, dword [esp + 0x18]
xor edi, edi
cmp dword [eax + 4], edi
jle 0x1016ee5a
jmp 0x1016ed80
lea eax, [esp + 0x18]
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], eax
lea ecx, [esp + 0x8c]
lea eax, [esp + 0x86]
push eax
call dword [0x102ab554]
lea ecx, [esp + 0x14]
cmp word [eax], 0x3f
lea eax, [ebx + 0x54]
je 0x1016edb7
lea eax, [ebx + 0x44]
push eax
call esi
lea eax, [esp + 0x18]
mov dword [esp + 0x98], edi
mov dword [esp + 0x94], eax
lea ecx, [esp + 0x94]
lea eax, [esp + 0x6a]
push eax
call dword [0x102ab554]
lea ecx, [esp + 0x64]
movzx eax, word [eax]
push eax
call dword [0x102ab718]
mov ecx, dword [ebx + 0x88]
imul ecx, edi
push eax
lea eax, [esp + 0xa8]
mov byte [esp + 0xd4], 0xc
push eax
add ecx, dword [esp + 0x24]
movd xmm0, ecx
mov ecx, dword [esp + 0x3c]
cvtdq2pd xmm0, xmm0
movsd qword [esp + 0xac], xmm0
movd xmm0, ecx
lea ecx, [esp + 0x1c]
cvtdq2pd xmm0, xmm0
movsd qword [esp + 0xb4], xmm0
call dword [0x102abb34]
lea ecx, [esp + 0x64]
mov byte [esp + 0xd0], 7
call dword [0x102aba64]
mov eax, dword [esp + 0x18]
inc edi
cmp edi, dword [eax + 4]
jl 0x1016ed80
mov edi, dword [esp + 0x1c]
mov eax, dword [ebx + 0x88]
lea edi, [edi + eax*2]
mov dword [esp + 0x1c], edi
jmp 0x1016f04f
sub eax, dword [esp + 0x3c]
add eax, dword [esp + 0x24]
add eax, eax
push eax
cmp dword [ebx + 0xa0], edi
jne 0x1016eef6
lea eax, [esp + 0x88]
push eax
call dword [0x102ab4dc]
lea ecx, [esp + 0x88]
mov byte [esp + 0xd0], 0xd
push ecx
mov ecx, eax
call dword [0x102ab51c]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd4], 0xe
call dword [0x102ab4a8]
lea ecx, [esp + 0x88]
mov byte [esp + 0xd0], 0xd
call dword [0x102aba30]
lea ecx, [esp + 0x80]
mov byte [esp + 0xd0], 7
call dword [0x102aba30]
mov eax, dword [esp + 0x1c]
add eax, dword [ebx + 0x88]
mov dword [esp + 0x1c], eax
jmp 0x1016ef5a
lea eax, [esp + 0x5c]
push eax
call dword [0x102ab4dc]
lea ecx, [esp + 0x78]
mov byte [esp + 0xd0], 0xf
push ecx
push 0x102b8ce0
mov ecx, eax
call dword [0x102ab4b4]
mov ecx, eax
call dword [0x102ab51c]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd4], 0x10
call dword [0x102ab4a8]
lea ecx, [esp + 0x78]
mov byte [esp + 0xd0], 0xf
call dword [0x102aba30]
lea ecx, [esp + 0x54]
mov byte [esp + 0xd0], 7
call dword [0x102aba30]
mov eax, dword [esp + 0x18]
xor edi, edi
cmp dword [eax + 4], edi
jle 0x1016f041
lea esp, [esp]
lea eax, [esp + 0x18]
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], eax
lea ecx, [esp + 0x9c]
lea eax, [esp + 0x84]
push eax
call dword [0x102ab554]
lea ecx, [esp + 0x14]
cmp word [eax], 0x3f
lea eax, [ebx + 0x54]
je 0x1016efa7
lea eax, [ebx + 0x44]
push eax
call esi
lea eax, [esp + 0x18]
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], eax
lea ecx, [esp + 0x40]
lea eax, [esp + 0x72]
push eax
call dword [0x102ab554]
lea ecx, [esp + 0x5c]
movzx eax, word [eax]
push eax
call dword [0x102ab718]
mov ecx, dword [ebx + 0x88]
imul ecx, edi
push eax
lea eax, [esp + 0xb8]
mov byte [esp + 0xd4], 0x11
push eax
add ecx, dword [esp + 0x24]
movd xmm0, ecx
mov ecx, dword [esp + 0x3c]
cvtdq2pd xmm0, xmm0
movsd qword [esp + 0xbc], xmm0
movd xmm0, ecx
lea ecx, [esp + 0x1c]
cvtdq2pd xmm0, xmm0
movsd qword [esp + 0xc4], xmm0
call dword [0x102abb34]
lea ecx, [esp + 0x5c]
mov byte [esp + 0xd0], 7
call dword [0x102aba64]
mov eax, dword [esp + 0x18]
inc edi
cmp edi, dword [eax + 4]
jl 0x1016ef70
mov ecx, dword [ebx + 0x88]
imul ecx, dword [eax + 4]
add dword [esp + 0x1c], ecx
mov edi, dword [esp + 0x3c]
lea ecx, [ebx + 0x3c]
inc edi
mov dword [esp + 0x3c], edi
call fcn.1016fe70
mov ecx, dword [esp + 0x20]
add ecx, edi
cmp ecx, eax
jl 0x1016ec50
lea ecx, [esp + 0x18]
mov byte [esp + 0xd0], 3
call dword [0x102aba64]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
add eax, 0x10
add ecx, dword [ebx + 0x8c]
add dword [esp + 0x28], 0x20
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], ecx
cmp eax, dword [esp + 0x2c]
jl 0x1016ec15
push 0
lea ecx, [esp + 0x18]
call dword [0x102abb3c]
mov edi, dword [0x102ac230]
mov ecx, ebx
push 0
call edi
mov ecx, eax
call dword [0x102abb44]
push eax
lea ecx, [esp + 0x18]
call esi
cmp byte [ebx + 0x84], 0
je 0x1016f176
mov ecx, ebx
call dword [0x102acb44]
test al, al
je 0x1016f176
cmp byte [ebx + 0x85], 0
mov ecx, ebx
push 0
je 0x1016f133
call edi
mov ecx, eax
call dword [0x102abb44]
mov ecx, dword [ebx + 0x90]
push eax
mov eax, dword [ebx + 0x8c]
add eax, 0xfffffffe
mov dword [esp + 0x44], ecx
add eax, dword [ebx + 0x94]
dec ecx
add ecx, dword [ebx + 0x88]
mov dword [esp + 0x48], eax
inc eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
jmp 0x1016f166
call edi
mov ecx, eax
call dword [0x102abb44]
mov ecx, dword [ebx + 0x90]
mov esi, dword [ebx + 0x8c]
mov edx, dword [ebx + 0x94]
mov dword [esp + 0x40], ecx
inc ecx
mov dword [esp + 0x48], ecx
lea ecx, [esi - 1]
mov dword [esp + 0x44], edx
add ecx, edx
mov dword [esp + 0x4c], ecx
push eax
lea eax, [esp + 0x44]
push eax
mov eax, dword [0x102abcf0]
lea ecx, [esp + 0x1c]
call eax
lea ecx, [ebx + 0x3c]
call fcn.1016fe70
cmp dword [ebx + 0xac], eax
je 0x1016f19c
lea ecx, [ebx + 0x3c]
call fcn.1016fe70
push eax
mov ecx, ebx
mov dword [ebx + 0xac], eax
call fcn.10242d90
lea ecx, [esp + 0x24]
mov byte [esp + 0xd0], 0
call dword [0x102aba30]
lea ecx, [esp + 0x14]
mov dword [esp + 0xd0], 0xffffffff
call dword [0x102abd08]
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4