Function at 0x10247a13
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 [0x10305014]
mov esi, 0xf
mov ecx, ebx
shl esi, cl
mov edx, 0x1e
shl edx, cl
mov dword [esp + 0x38], edx
xor eax, ebp
mov dword [esp + 0x78], eax
lea eax, [ebx - 0xe]
cmp eax, 0xfffffff4
jb 0x10247ec1
mov dword [esp], 0x280
call fcn.100602f0
mov dword [esp + 0x74], eax
test eax, eax
je 0x10247eba
mov ecx, dword [ebp + 0xc]
dec ebx
mov dword [eax], ebx
mov eax, esi
shr eax, 0x1f
add eax, esi
sar eax, 1
mov edx, dword [esp + 0x74]
mov dword [esp + 0x10], edx
mov dword [edx + 8], eax
mov dword [edx + 4], esi
mov dword [edx + 0xc], ecx
mov dword [edx + 0x260], 0x10247ef0
mov dword [edx + 0x268], 0x102488f0
mov dword [edx + 0x26c], 0x10248e80
mov dword [edx + 0x264], 0x10249240
lea eax, [edx + 0x18]
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.10160690
test eax, eax
js 0x10247eae
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0x18]
xor esi, esi
inc esi
mov dword [esp + 0x2c], esi
mov ecx, eax
shl esi, cl
neg cl
and cl, 3
mov edx, esi
shl edx, cl
mov dword [esp + 0x50], edx
mov edi, 0xf
mov dword [esp + 0x18], eax
mov ecx, eax
shl edi, cl
mov dword [esp], edi
mov dword [esp + 4], 4
call fcn.100602a0
mov dword [ebx + 0x10], eax
test eax, eax
je 0x10247eae
mov dword [esp], edi
mov dword [esp + 4], 4
call fcn.100602a0
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x14], eax
test eax, eax
je 0x10247eae
cmp dword [esp + 0x18], 0x1f
je 0x10247c6b
lea ecx, [esi - 1]
and ecx, 0xeeeeeeef
cmp esi, 2
mov eax, dword [esp + 0x2c]
cmovge eax, esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x4c], ecx
lea eax, [ecx + ecx*4]
lea eax, [eax + eax*2]
mov dword [esp + 0x48], eax
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x20]
mov eax, edx
imul eax, dword [esp + 0x4c]
mov dword [esp + 0x58], eax
lea eax, [edx + edx*4]
lea eax, [eax + eax*2]
mov dword [esp + 0x54], eax
mov dword [esp + 0x30], 0
xor edi, edi
mov dword [esp + 0x5c], ecx
mov esi, edi
mov ecx, dword [esp + 0x18]
shl esi, cl
mov eax, esi
mov dword [esp + 0x40], esi
mov ecx, 0x88888889
imul ecx
mov ebx, edx
add ebx, esi
mov eax, ebx
shr eax, 0x1f
sar ebx, 3
add ebx, eax
add ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
sar ebx, cl
mov esi, dword [esp + 0x30]
mov eax, esi
mov ecx, 0x88888889
imul ecx
add edx, esi
mov eax, edx
shr eax, 0x1f
sar edx, 3
add edx, eax
add edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x18]
sar edx, cl
imul eax, ebx, 0x7ffffff1
add eax, edi
mov ecx, dword [esp + 0x18]
shl eax, cl
add eax, dword [esp + 0x54]
add eax, eax
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0x10]
add ecx, dword [esp + 0x3c]
mov dword [ecx + edi*4], eax
mov eax, edx
shl eax, 4
sub edx, eax
mov ecx, dword [esp + 0x18]
shl edx, cl
mov ecx, dword [esp + 0x5c]
add edx, ecx
add edx, esi
mov ebx, dword [esp + 0x40]
add ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x14]
mov dword [eax + edx*4], ebx
inc edi
add esi, dword [esp + 0x50]
mov dword [esp + 0x30], esi
cmp edi, 0xf
jne 0x10247b98
mov eax, dword [esp + 0x20]
inc eax
mov edx, dword [esp + 0x3c]
add edx, 0x3c
add ecx, dword [esp + 0x48]
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x2c]
mov eax, edx
jne 0x10247b6d
mov eax, dword [esp + 0x74]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.100602a0
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x58], eax
test eax, eax
je 0x10247eae
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 8]
mov dword [esp], eax
mov dword [esp + 4], 8
call fcn.100602a0
mov dword [esi + 0x5c], eax
test eax, eax
je 0x10247eae
movsd xmm0, qword [ebp + 0x14]
xorpd xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x10247ec8
movsd xmm2, qword [0x102b23c8]
andpd xmm0, xmmword [0x102b23d0]
ucomisd xmm0, xmm1
movsd qword [esp + 0x30], xmm2
jb 0x10247ce8
xorps xmm1, xmm1
sqrtsd xmm1, xmm0
jmp 0x10247cfc
movsd qword [esp], xmm0
call fcn.101460b0
fstp qword [esp + 0x68]
movsd xmm1, qword [esp + 0x68]
mov eax, dword [esp + 0x10]
cmp dword [eax + 8], 0
movsd xmm2, qword [esp + 0x30]
jle 0x10247dcb
xorps xmm0, xmm0
cvtsi2sd xmm0, dword [esp + 0x38]
movsd qword [esp + 0x40], xmm0
xor esi, esi
movsd qword [esp + 0x18], xmm1
xorps xmm0, xmm0
cvtsi2sd xmm0, esi
addsd xmm0, xmm2
mulsd xmm0, qword [0x102b23e0]
divsd xmm0, qword [esp + 0x40]
cvtsd2ss xmm0, xmm0
cvtss2sd xmm0, xmm0
movsd qword [esp + 0x20], xmm0
movsd qword [esp], xmm0
call fcn.10143d10
fstp dword [esp + 0x64]
xorps xmm0, xmm0
cvtss2sd xmm0, dword [esp + 0x64]
mulsd xmm0, qword [esp + 0x18]
cvtsd2ss xmm0, xmm0
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x5c]
movss dword [eax + esi*8], xmm0
movsd xmm0, qword [esp + 0x20]
movsd qword [esp], xmm0
call fcn.10146050
movsd xmm2, qword [esp + 0x30]
movsd xmm1, qword [esp + 0x18]
fstp dword [esp + 0x60]
xorps xmm0, xmm0
cvtss2sd xmm0, dword [esp + 0x60]
mulsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
mov eax, dword [esp + 0x74]
mov eax, dword [eax + 0x5c]
movss dword [eax + esi*8 + 4], xmm0
inc esi
mov eax, dword [esp + 0x74]
mov dword [esp + 0x10], eax
cmp esi, dword [eax + 8]
jl 0x10247d27
mov esi, dword [ebp + 8]
xor edi, edi
xorpd xmm1, xmm1
cmp edi, 0xe
ja 0x10247e4f
movapd xmm0, xmm1
mulsd xmm0, qword [0x102b23e0]
divsd xmm0, qword [0x102ef3e8]
mov ebx, dword [esp + 0x74]
cmp dword [ebx + 0xc], 0
movsd qword [esp + 0x18], xmm1
jne 0x10247e05
xorpd xmm0, xmmword [0x102a8d90]
cvtsd2ss xmm0, xmm0
cvtss2sd xmm0, xmm0
movsd qword [esp + 0x10], xmm0
movsd qword [esp], xmm0
call fcn.10143d10
fstp dword [ebx + edi*8 + 0x60]
movsd xmm0, qword [esp + 0x10]
movsd qword [esp], xmm0
call fcn.10146050
mov eax, dword [esp + 0x74]
fstp dword [eax + edi*8 + 0x64]
movsd xmm1, qword [esp + 0x18]
addsd xmm1, qword [0x102991d0]
inc edi
cmp edi, 0x13
jne 0x10247dd4
jmp 0x10247e61
mov eax, dword [esp + 0x74]
movsd xmm0, qword [eax + edi*8 - 0x18]
movsd qword [eax + edi*8 + 0x60], xmm0
jmp 0x10247e3f
mov edi, dword [esp + 0x74]
movaps xmm0, xmmword [0x102ef3f0]
movups xmmword [edi + 0xf8], xmm0
cmp dword [edi + 0xc], 0
je 0x10247e8d
mov dword [edi + 0xfc], 0xbf737871
mov dword [edi + 0x104], 0xbf167918
mov dword [esp], edi
call fcn.10280cbf
mov dword [esi], edi
xor esi, esi
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.10130483
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 0x74]
mov dword [esp], eax
call fcn.102479c0
mov esi, 0xfffffff4
jmp 0x10247e99
mov esi, 0xffffffea
jmp 0x10247e99
mov eax, dword [esp + 0x10]
cvtsi2ss xmm2, dword [eax + 8]
addss xmm2, dword [0x102ef3e0]
cvtss2sd xmm2, xmm2
jmp 0x10247ccb