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

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x54]
xor ebp, ebp
push 0xffffffffffffff9d
pop eax
push 0x34
push 0
inc ebp
mov dword [esp + 0x1c], eax
push edi
mov dword [esp + 0x1c], ebp
call fcn.004314a0
mov esi, dword [esp + 0x68]
add esp, 4
mov eax, dword [esi]
mov dword [edi + 0x24], eax
movd xmm0, dword [esi]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x5c63cc]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.0059aba0
movsd xmm0, qword [0x5c07b0]
fstp qword [esp + 0x40]
movsd qword [esp], xmm0
call fcn.0059aba0
movsd xmm0, qword [esp + 0x40]
fstp qword [esp + 0x38]
divsd xmm0, qword [esp + 0x38]
addsd xmm0, qword [0x5c04e8]
movsd qword [esp], xmm0
call fcn.0059a9f0
movd xmm0, dword [esp + 0x6c]
mov ebx, dword [esp + 0x68]
cvtdq2ps xmm0, xmm0
movd xmm1, ebx
mulss xmm0, dword [0x5c6364]
cvtdq2pd xmm1, xmm1
cvtps2pd xmm0, xmm0
fsub qword [0x5bfbe0]
mulsd xmm0, qword [0x5c04e8]
fstp qword [esp + 0x40]
cvttsd2si eax, qword [esp + 0x40]
divsd xmm0, xmm1
mov dword [edi + 0x20], eax
movsd qword [esp + 0x40], xmm1
movsd qword [esp], xmm0
call fcn.0059aba0
mov ecx, dword [edi + 0x20]
mov eax, ebp
fmul qword [0x5c6390]
inc ecx
movd xmm0, dword [esi]
shl eax, cl
cvtdq2pd xmm0, xmm0
fsub qword [0x5c63b0]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
fstp qword [esp + 0x38]
mulsd xmm1, qword [esp + 0x38]
subsd xmm1, xmm0
movd xmm0, ebx
cvtdq2ps xmm0, xmm0
cvttsd2si eax, xmm1
addss xmm0, dword [0x5c6364]
movd xmm1, dword [esp + 0x6c]
cvtdq2ps xmm1, xmm1
mov dword [edi + 0x1c], eax
mulss xmm0, xmm1
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x5c04e8]
divsd xmm0, qword [esp + 0x40]
movsd qword [esp], xmm0
call fcn.0059aba0
fmul qword [0x5c6390]
mov ecx, dword [edi + 0x20]
fsub qword [0x5c63b0]
fstp qword [esp + 0x38]
inc ecx
mov eax, ebp
shl eax, cl
mov ebp, ebx
shl ebp, 2
push ebp
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [esp + 0x3c]
addsd xmm0, qword [0x5c04e8]
cvttsd2si eax, xmm0
sub eax, dword [edi + 0x1c]
inc eax
mov dword [edi + 0x28], eax
call fcn.005785d4
push ebp
mov dword [edi + 0x10], eax
call fcn.005785d4
push ebp
mov dword [edi + 0x14], eax
call fcn.005785d4
mov dword [edi + 0x18], eax
add esp, 0x14
mov eax, dword [esp + 0x58]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x64]
mov dword [edi], ebx
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], 0x3f800000
cmp eax, 0x6590
jge 0x46d009
and dword [edi + 0x30], 0
jmp 0x46d027
cmp eax, 0x9470
jge 0x46d019
mov dword [edi + 0x30], 0x3f70a3d7
jmp 0x46d027
cmp eax, 0xb3b0
jle 0x46d027
mov dword [edi + 0x30], 0x3fa33333
xor esi, esi
xor ebp, ebp
xorps xmm0, xmm0
lea eax, [ebp + 1]
cvtsi2sd xmm0, eax
push ecx
push ecx
mov dword [esp + 0x64], eax
mulsd xmm0, qword [0x5c6380]
subsd xmm0, qword [0x5c07b0]
addsd xmm0, qword [0x5c63b0]
mulsd xmm0, qword [0x5c6388]
movsd qword [esp], xmm0
call fcn.0059ae90
fstp qword [esp + 0x38]
movsd xmm0, qword [esp + 0x38]
xorps xmm1, xmm1
cvtsi2sd xmm1, dword [esp + 0x6c]
addsd xmm0, xmm0
mulsd xmm0, qword [esp + 0x40]
divsd xmm0, xmm1
addsd xmm0, qword [0x5c04e8]
movsd qword [esp], xmm0
call fcn.0059a9f0
pop ecx
fstp qword [esp + 0x34]
pop ecx
cvttsd2si ecx, qword [esp + 0x30]
cmp esi, ecx
jge 0x46d0f8
movss xmm2, dword [ebp*4 + 0x5c0828]
mov eax, ecx
movss xmm1, dword [ebp*4 + 0x5c082c]
sub eax, esi
subss xmm1, xmm2
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
cmp esi, ebx
jge 0x46d0f8
mov eax, dword [edi + 0x10]
xorps xmm0, xmm0
cvtss2sd xmm0, xmm2
addsd xmm0, qword [0x5bfa40]
cvtpd2ps xmm0, xmm0
movss dword [eax + esi*4], xmm0
inc esi
movaps xmm0, xmm1
addss xmm2, xmm0
cmp esi, ecx
jl 0x46d0cd
mov ebp, dword [esp + 0x5c]
cmp ebp, 0x57
jl 0x46d02b
jmp 0x46d112
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx + esi*4 - 4]
mov dword [ecx + esi*4], eax
inc esi
cmp esi, ebx
jl 0x46d107
xor esi, esi
test ebx, ebx
jle 0x46d448
mov eax, dword [esp + 0x64]
lea ecx, [ebx + ebx]
cdq
idiv ecx
and dword [esp + 0x2c], esi
and dword [esp + 0x5c], esi
mov ebp, eax
imul eax, ebp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x2c]
imul eax, esi
xorps xmm0, xmm0
push ecx
push ecx
cvtsi2ss xmm0, eax
mulss xmm0, dword [0x5c6358]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.0059aee0
fmul qword [0x5c63a8]
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [esp + 0x64]
fstp qword [esp + 0x28]
mulss xmm0, dword [0x5c6360]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.0059aee0
mov eax, dword [esp + 0x64]
xorps xmm0, xmm0
mov edx, dword [esp + 0x1c]
fstp qword [esp + 0x38]
movsd xmm1, qword [esp + 0x38]
mulsd xmm1, qword [0x5c63c0]
pop ecx
cvtsi2ss xmm0, eax
mov eax, dword [esp + 0x5c]
pop ecx
addsd xmm1, qword [esp + 0x20]
mulss xmm0, dword [0x5c635c]
mov eax, dword [eax + 0x78]
add eax, edx
cvtps2pd xmm0, xmm0
addsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movss dword [esp + 0x30], xmm0
cmp eax, esi
jge 0x46d2ae
mov edi, dword [esp + 0x28]
mov eax, ebp
imul eax, edx
mov ecx, edi
imul ecx, edx
mov dword [esp + 0x18], eax
mov ebx, eax
mov dword [esp + 0x20], ecx
mov eax, ecx
xorps xmm0, xmm0
imul eax, edx
push ecx
push ecx
cvtsi2ss xmm0, eax
mulss xmm0, dword [0x5c6358]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.0059aee0
fmul qword [0x5c63a8]
xorps xmm0, xmm0
cvtsi2ss xmm0, ebx
fstp qword [esp + 0x48]
mulss xmm0, dword [0x5c6360]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.0059aee0
mov eax, dword [esp + 0x60]
xorps xmm0, xmm0
cvtsi2ss xmm0, ebx
pop ecx
pop ecx
fstp qword [esp + 0x18]
mulss xmm0, dword [0x5c635c]
movsd xmm1, qword [esp + 0x18]
mulsd xmm1, qword [0x5c63c0]
cvtps2pd xmm0, xmm0
addsd xmm1, qword [esp + 0x40]
addsd xmm1, xmm0
movss xmm0, dword [esp + 0x30]
subss xmm0, dword [eax + 0x70]
cvtps2pd xmm0, xmm0
comisd xmm0, xmm1
jbe 0x46d2a6
mov edx, dword [esp + 0x14]
add ebx, ebp
mov ecx, dword [esp + 0x20]
inc edx
mov eax, dword [eax + 0x78]
add ecx, edi
add eax, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], ecx
cmp eax, esi
jl 0x46d1f3
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x60]
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
jg 0x46d39f
mov edi, dword [esp + 0x28]
mov edx, ebp
imul edx, ecx
mov eax, edi
imul eax, ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 0x7c]
add eax, esi
cmp ecx, eax
jl 0x46d380
mov eax, dword [esp + 0x18]
xorps xmm0, xmm0
imul eax, ecx
push ecx
push ecx
cvtsi2ss xmm0, eax
mulss xmm0, dword [0x5c6358]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.0059aee0
fmul qword [0x5c63a8]
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [esp + 0x28]
fstp qword [esp + 0x50]
mulss xmm0, dword [0x5c6360]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.0059aee0
mov edx, dword [esp + 0x28]
xorps xmm0, xmm0
mov eax, dword [esp + 0x60]
fstp qword [esp + 0x48]
movsd xmm1, qword [esp + 0x48]
mulsd xmm1, qword [0x5c63c0]
pop ecx
cvtsi2ss xmm0, edx
pop ecx
mov ecx, dword [esp + 0x10]
addsd xmm1, qword [esp + 0x48]
mulss xmm0, dword [0x5c635c]
cvtps2pd xmm0, xmm0
addsd xmm1, xmm0
movss xmm0, dword [esp + 0x30]
addss xmm0, dword [eax + 0x74]
cvtps2pd xmm0, xmm0
comisd xmm0, xmm1
jbe 0x46d39b
jmp 0x46d384
mov eax, dword [esp + 0x58]
add dword [esp + 0x18], edi
inc ecx
add edx, ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], edx
cmp ecx, ebx
jle 0x46d2d4
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x14]
add dword [esp + 0x5c], ebp
shl eax, 0x10
add eax, 0xfffeffff
add ecx, eax
mov eax, dword [edi + 0x18]
mov dword [eax + esi*4], ecx
inc esi
mov eax, dword [esp + 0x2c]
add eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
cmp esi, ebx
jl 0x46d13f
xor esi, esi
movd xmm1, dword [esp + 0x64]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
push ecx
push ecx
cvtdq2pd xmm1, xmm1
addss xmm0, dword [0x5c6364]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x5c04e8]
mulsd xmm0, xmm1
divsd xmm0, qword [esp + 0x40]
movsd qword [esp], xmm0
call fcn.0059aba0
fmul qword [0x5c6390]
xor eax, eax
pop ecx
pop ecx
mov ecx, dword [edi + 0x20]
inc eax
inc ecx
fsub qword [0x5c63b0]
shl eax, cl
movd xmm0, eax
mov eax, dword [edi + 0x14]
cvtdq2pd xmm0, xmm0
fstp qword [esp + 0x48]
mulsd xmm0, qword [esp + 0x48]
addsd xmm0, qword [0x5c04e8]
cvttsd2si ecx, xmm0
mov dword [eax + esi*4], ecx
inc esi
cmp esi, ebx
jl 0x46d3ce
mov eax, dword [esp + 0x58]
push ecx
push ecx
movss xmm0, dword [eax + 0x1c]
movss dword [esp + 4], xmm0
movss xmm0, dword [eax + 0x18]
add eax, 0x24
movss dword [esp], xmm0
movd xmm0, dword [esp + 0x6c]
cvtdq2pd xmm0, xmm0
push ebx
push ecx
mulsd xmm0, qword [0x5c04e8]
divsd xmm0, qword [esp + 0x48]
cvtpd2ps xmm0, xmm0
movss dword [esp], xmm0
push eax
call fcn.0046e49b
push 0xc
mov dword [edi + 8], eax
call fcn.005785d4
mov ebp, ebx
mov dword [edi + 0xc], eax
add esp, 0x18
xor esi, esi
shl ebp, 2
push ebp
call fcn.005785d4
pop ecx
mov ecx, dword [edi + 0xc]
mov dword [esi + ecx], eax
add esi, 4
cmp esi, 0xc
jl 0x46d4a6
xor esi, esi
test ebx, ebx
jle 0x46d5a4
movsd xmm1, qword [esp + 0x38]
addsd xmm1, xmm1
movsd qword [esp + 0x38], xmm1
xorps xmm0, xmm0
xorps xmm2, xmm2
cvtsi2sd xmm2, dword [esp + 0x64]
push ecx
push ecx
cvtsi2sd xmm0, esi
addsd xmm0, qword [0x5c04e8]
mulsd xmm0, xmm2
divsd xmm0, xmm1
movsd qword [esp], xmm0
call fcn.0059aba0
fmul qword [0x5c6390]
xorps xmm1, xmm1
movss xmm2, dword [0x5c63d4]
movsd xmm3, qword [0x5bfbe0]
pop ecx
pop ecx
fsub qword [0x5c63b0]
xor ecx, ecx
fstp qword [esp + 0x48]
movsd xmm0, qword [esp + 0x48]
addsd xmm0, xmm0
cvtpd2ps xmm0, xmm0
maxss xmm1, xmm0
xorps xmm0, xmm0
minss xmm2, xmm1
cvttss2si eax, xmm2
cvtsi2ss xmm0, eax
lea edx, [eax*4 + 0x88]
subss xmm2, xmm0
cvtps2pd xmm0, xmm2
subsd xmm3, xmm0
mov eax, dword [edi + 4]
movaps xmm0, xmm2
movss xmm1, dword [eax + edx - 4]
mulss xmm0, dword [eax + edx]
add edx, 0x44
mov eax, dword [edi + 0xc]
cvtps2pd xmm1, xmm1
mov eax, dword [ecx + eax]
add ecx, 4
cvtss2sd xmm0, xmm0
mulsd xmm1, xmm3
addsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movss dword [eax + esi*4], xmm0
cmp ecx, 0xc
jl 0x46d55b
movsd xmm1, qword [esp + 0x38]
inc esi
cmp esi, ebx
jl 0x46d4d5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret