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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov ebx, dword [ebp + 0x10]
mov eax, dword [0x101db764]
mov edi, 0xf
mov esi, 0xffffffea
mov ecx, ebx
xor eax, ebp
shl edi, cl
lea ecx, [ebx - 2]
mov dword [esp + 0x78], eax
cmp ecx, 0xb
ja 0x100968eb
mov dword [esp], 0x2a0
call fcn.100539f3
mov esi, 0xfffffff4
test eax, eax
mov dword [esp + 0x74], eax
je 0x100968eb
dec ebx
mov edx, edi
mov ecx, dword [ebp + 0xc]
mov dword [eax], ebx
mov eax, edi
mov dword [esp + 0x24], edx
shr eax, 0x1f
add eax, edi
mov edi, dword [esp + 0x74]
sar eax, 1
mov dword [edi + 8], eax
lea eax, [edi + 0x18]
mov dword [edi + 4], edx
mov dword [edi + 0xc], ecx
mov dword [edi + 0x280], 0x10096900
mov dword [edi + 0x288], 0x1009708c
mov dword [edi + 0x28c], 0x1009744b
mov dword [edi + 0x284], 0x100975f0
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.1000e41b
test eax, eax
js 0x100968da
mov eax, dword [edi + 0x18]
xor edx, edx
mov esi, 0xf
mov dword [esp + 4], 4
inc edx
mov ecx, eax
mov dword [esp + 0x10], eax
shl edx, cl
mov ecx, eax
neg ecx
mov ebx, edx
mov dword [esp + 0x3c], edx
and cl, 3
shl ebx, cl
mov ecx, eax
shl esi, cl
mov dword [esp], esi
call fcn.1005397b
test eax, eax
mov dword [edi + 0x10], eax
je 0x100968da
mov dword [esp], esi
mov dword [esp + 4], 4
call fcn.1005397b
test eax, eax
mov dword [edi + 0x14], eax
je 0x100968da
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], edi
add eax, eax
cmp ecx, 0x1f
jne 0x1009656c
mov esi, dword [esp + 0x28]
jmp 0x1009669a
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
xor edx, edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x50], ebx
dec eax
and eax, 0xeeeeeeef
mov dword [esp + 0x4c], eax
imul eax, eax, 0x3c
mov dword [esp + 0x48], eax
xor eax, eax
mov esi, dword [esp + 0x18]
mov dword [esp + 0x44], eax
xor edi, edi
mov dword [esp + 0x40], edx
mov dword [esp + 0x30], 0
mov eax, esi
imul eax, dword [esp + 0x4c]
mov dword [esp + 0x58], eax
lea eax, [esi + esi*4]
lea eax, [eax + eax*2]
mov dword [esp + 0x54], eax
mov esi, edi
shl esi, cl
mov ecx, 0x88888889
mov eax, esi
mov dword [esp + 0x5c], esi
imul ecx
mov ecx, dword [esp + 0x10]
mov ebx, edx
add ebx, esi
mov esi, dword [esp + 0x30]
mov eax, ebx
sar ebx, 3
shr eax, 0x1f
add ebx, eax
add ebx, dword [esp + 0x18]
mov eax, esi
sar ebx, cl
mov ecx, 0x88888889
imul ecx
mov ecx, dword [esp + 0x10]
add edx, esi
mov eax, edx
sar edx, 3
shr eax, 0x1f
add edx, eax
mov eax, ebx
add edx, dword [esp + 0x58]
shl eax, 4
sub eax, ebx
mov ebx, edi
sub ebx, eax
mov eax, dword [esp + 0x28]
sar edx, cl
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 0x10]
shl ebx, cl
mov ecx, dword [esp + 0x10]
add ebx, dword [esp + 0x54]
add eax, dword [esp + 0x40]
add ebx, ebx
mov dword [eax + edi*4], ebx
lea eax, [edx + edx*4]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x50]
inc edi
lea eax, [eax + eax*2]
shl eax, cl
shl eax, 2
mov edx, dword [edx + 0x14]
sub edx, eax
mov eax, dword [esp + 0x5c]
add edx, dword [esp + 0x44]
add eax, dword [esp + 0x18]
mov dword [edx + esi*4], eax
add esi, ebx
cmp edi, 0xf
mov dword [esp + 0x30], esi
jne 0x100965c0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
inc eax
add edx, dword [esp + 0x48]
add esi, 0x3c
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
mov eax, edx
mov edx, esi
jl 0x10096595
mov esi, dword [esp + 0x74]
mov eax, dword [esp + 0x24]
mov ebx, eax
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.1005397b
test eax, eax
mov dword [esi + 0x5c], eax
je 0x100968da
mov eax, dword [esi + 8]
mov ecx, 8
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.1005397b
test eax, eax
mov dword [esi + 0x60], eax
je 0x100968da
movsd xmm0, qword [ebp + 0x14]
xorps xmm1, xmm1
ucomisd xmm1, xmm0
jbe 0x100966f7
cvtsi2ss xmm2, dword [esi + 8]
addss xmm2, dword [0x101bb9fc]
cvtss2sd xmm2, xmm2
jmp 0x100966ff
movsd xmm2, qword [0x10188ae8]
andpd xmm0, xmmword [0x10188af0]
movsd qword [esp + 0x30], xmm2
ucomisd xmm0, xmm1
jb 0x1009671c
xorps xmm1, xmm1
sqrtsd xmm1, xmm0
jmp 0x10096730
movsd qword [esp], xmm0
call fcn.1016bee0
fstp qword [esp + 0x68]
movsd xmm1, qword [esp + 0x68]
cmp dword [esi + 8], 0
movsd xmm2, qword [esp + 0x30]
jle 0x100967f3
mov edi, esi
xorps xmm0, xmm0
cvtsi2sd xmm0, ebx
xor esi, esi
movsd qword [esp + 0x10], xmm1
movsd qword [esp + 0x28], xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, esi
addsd xmm0, xmm2
mulsd xmm0, qword [0x10187358]
divsd xmm0, qword [esp + 0x28]
cvtsd2ss xmm0, xmm0
cvtss2sd xmm0, xmm0
movsd qword [esp + 0x18], xmm0
movsd qword [esp], xmm0
call fcn.1016ade0
fstp dword [esp + 0x64]
xorps xmm0, xmm0
cvtss2sd xmm0, dword [esp + 0x64]
mov eax, dword [edi + 0x60]
movsd xmm1, qword [esp + 0x18]
mulsd xmm0, qword [esp + 0x10]
cvtsd2ss xmm0, xmm0
movss dword [eax + esi*8], xmm0
movsd qword [esp], xmm1
call fcn.1016be80
movsd xmm2, qword [esp + 0x30]
movsd xmm1, qword [esp + 0x10]
fstp dword [esp + 0x60]
mov eax, dword [esp + 0x74]
xorps xmm0, xmm0
cvtss2sd xmm0, dword [esp + 0x60]
mov eax, dword [eax + 0x60]
mulsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
movss dword [eax + esi*8 + 4], xmm0
inc esi
mov edi, dword [esp + 0x74]
cmp esi, dword [edi + 8]
jl 0x10096757
mov esi, dword [ebp + 8]
movsd xmm2, qword [0x10187360]
xor edi, edi
xorpd xmm1, xmm1
cmp edi, 0xe
ja 0x1009687f
movapd xmm0, xmm1
mov ebx, dword [esp + 0x74]
movsd qword [esp + 0x10], xmm1
mulsd xmm0, qword [0x10187358]
cmp dword [ebx + 0xc], 0
divsd xmm0, qword [0x101bba00]
jne 0x10096835
xorpd xmm0, xmmword [0x101805a0]
cvtsd2ss xmm0, xmm0
cvtss2sd xmm0, xmm0
movsd qword [esp + 0x18], xmm0
movsd qword [esp], xmm0
call fcn.1016ade0
fstp dword [ebx + edi*8 + 0x80]
movsd xmm0, qword [esp + 0x18]
movsd qword [esp], xmm0
call fcn.1016be80
mov eax, dword [esp + 0x74]
movsd xmm2, qword [0x10187360]
fstp dword [eax + edi*8 + 0x84]
movsd xmm1, qword [esp + 0x10]
jmp 0x10096892
mov eax, dword [esp + 0x74]
movsd xmm0, qword [eax + edi*8 + 8]
movsd qword [eax + edi*8 + 0x80], xmm0
inc edi
addsd xmm1, xmm2
cmp edi, 0x13
jne 0x10096804
mov edi, dword [esp + 0x74]
movaps xmm0, xmmword [0x101bba10]
movups xmmword [edi + 0x118], xmm0
cmp dword [edi + 0xc], 0
je 0x100968cc
mov dword [edi + 0x11c], 0xbf737871
mov dword [edi + 0x124], 0xbf167918
mov dword [esp], edi
call fcn.1010c5dc
mov dword [esi], edi
xor esi, esi
jmp 0x100968eb
lea eax, [esp + 0x74]
mov dword [esp], eax
call fcn.100963e8
mov esi, 0xfffffff4
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.1015e65c
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret