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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe0
movsd xmm1, qword [0x4af858]
push esi
push edi
mov edi, ecx
movsd qword [esp + 0x58], xmm2
mov ecx, 1
mov dword [esp + 0x1c], ecx
movsd xmm0, qword [edi + 0x50]
mulsd xmm0, qword [0x4af670]
mulsd xmm0, qword [edi + 0x48]
divsd xmm1, xmm0
movsd qword [esp + 0x60], xmm1
cmp dword [edi + 0x49d8], ecx
jle 0x47027b
movd xmm0, dword [ebp + 8]
lea esi, [edi + 0x18]
cvtdq2pd xmm0, xmm0
mov dword [esp + 0xc], 0x20
mulsd xmm0, xmm1
mulsd xmm0, xmm2
mulsd xmm0, xmm2
movsd qword [esp + 0x78], xmm0
movaps xmm0, xmm2
andps xmm0, xmmword [0x4afb90]
movsd qword [esp + 0xb0], xmm0
nop dword [eax + eax]
mov eax, dword [edi + 0x49dc]
movsd xmm1, qword [eax + ecx*8]
subsd xmm1, qword [eax + ecx*8 - 8]
mov eax, dword [edi + 0x49e0]
movsd xmm2, qword [eax + ecx*8]
subsd xmm2, qword [eax + ecx*8 - 8]
mulsd xmm1, xmm1
movaps xmm0, xmm2
movsd qword [esp + 0x38], xmm2
mulsd xmm0, xmm2
addsd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x46fcf6
sqrtsd xmm0, xmm0
jmp 0x46fcfb
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
movsd xmm2, qword [edi + 0x48d0]
movsd xmm3, qword [edi + 0x48]
movaps xmm1, xmm2
mulsd xmm1, qword [edi + 0x4890]
movsd xmm4, qword [esp + 0x78]
mulsd xmm4, xmm3
mulsd xmm1, xmm2
movsd qword [esp + 0xa8], xmm0
mulsd xmm4, xmm3
mulsd xmm3, qword [esp + 0x58]
divsd xmm4, xmm1
movsd xmm1, qword [edi + 0x48b0]
mulsd xmm1, qword [0x4af1d8]
mulsd xmm4, xmm0
mulsd xmm1, qword [edi + 0x48a8]
movsd qword [esp + 0x80], xmm4
mulsd xmm1, xmm0
xorps xmm0, xmm0
movsd qword [esp + 0x68], xmm0
movsd xmm0, qword [0x4af858]
comisd xmm0, xmmword [edi + 0x2410]
divsd xmm1, xmm3
movsd qword [esp + 0x90], xmm1
jb 0x46fd96
movsd xmm0, qword [edi + 0x20]
movsd qword [edi + 0x2410], xmm0
movsd xmm4, qword [edi + 0x4810]
comisd xmm4, xmmword [edi + 0x2418]
jb 0x46fdb0
movsd qword [edi + 0x2418], xmm4
mov eax, dword [edi + 0x49e4]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x18], 0
addsd xmm4, qword [ecx + eax - 0x10]
mulsd xmm4, qword [0x4aed20]
movsd qword [edi + 0x49b0], xmm4
movsd xmm1, qword [ecx + eax + 8]
movsd xmm0, qword [ecx + eax - 0x18]
movaps xmm3, xmm1
mulsd xmm3, xmm1
addsd xmm0, xmm1
divsd xmm3, xmm0
movsd xmm0, qword [esp + 0x38]
addsd xmm3, qword [ecx + eax - 0x18]
movaps xmm1, xmm0
mulsd xmm0, qword [0x4af370]
mulsd xmm1, qword [0x4af498]
mulsd xmm3, qword [0x4aeda8]
movsd qword [esp + 0x38], xmm0
movsd qword [esp + 0x88], xmm1
movsd qword [edi + 0x49a8], xmm3
mov eax, dword [0x7c1e70]
cmp eax, 4
jl 0x46ff05
movsd xmm0, qword [edi + 0x49a8]
mulsd xmm0, qword [0x4ae888]
jne 0x46fe8e
sub esp, 0x10
lea eax, [esp + 0x60]
mov ecx, esi
movsd qword [esp + 8], xmm0
movsd qword [esp], xmm4
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00431170
jmp 0x46ffd2
sub esp, 0x10
lea eax, [esp + 0x84]
mov ecx, esi
movsd qword [esp + 8], xmm0
movsd qword [esp], xmm4
push 1
push eax
lea eax, [esp + 0xd0]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0xec]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0xfc]
push eax
lea eax, [esp + 0x108]
push eax
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x118]
push eax
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x128]
push eax
call fcn.00431c40
jmp 0x46ffd2
movsd xmm1, qword [edi + 0x49a8]
mov ecx, esi
cmp eax, 3
jne 0x46ff47
sub esp, 0x10
lea eax, [esp + 0x58]
movsd qword [esp + 8], xmm4
movsd qword [esp], xmm1
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.004307f0
jmp 0x46ffac
movaps xmm2, xmm4
call fcn.0042e5e0
movsd xmm2, qword [edi + 0x49b0]
mov ecx, esi
movsd xmm1, qword [edi + 0x49a8]
movsd qword [esp + 0x10], xmm0
call fcn.0042e810
movsd xmm2, qword [edi + 0x49b0]
mov ecx, edi
movsd xmm1, qword [edi + 0x49a8]
movsd qword [esp + 0x28], xmm0
call fcn.0046a410
movsd xmm2, qword [edi + 0x49b0]
mov ecx, edi
movsd xmm1, qword [edi + 0x49a8]
movsd qword [esp + 0x30], xmm0
call fcn.0046a620
movsd qword [esp + 0x20], xmm0
movsd xmm1, qword [esp + 0x10]
mulsd xmm1, qword [esp + 0x60]
movsd xmm0, qword [edi + 0x49a8]
mulsd xmm1, qword [edi + 0x49b0]
divsd xmm0, xmm1
movsd qword [esp + 0x40], xmm0
movsd xmm3, qword [edi + 0x49b0]
sub esp, 0x20
movsd xmm2, qword [edi + 0x49a8]
xorps xmm0, xmm0
mov ecx, edi
movsd qword [esp + 0x10], xmm0
movsd xmm0, qword [esp + 0x48]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0x78]
movsd qword [esp], xmm0
push 0
call fcn.0046b850
mulsd xmm0, qword [esp + 0x80]
mov esi, dword [edi + 0x49e4]
movsd xmm2, qword [esp + 0x10]
movsd xmm1, qword [edi + 0x49b0]
mov eax, dword [esp + 0xc]
mulsd xmm0, xmm2
mulsd xmm2, qword [esp + 0x60]
movsd xmm4, qword [eax + esi - 0x18]
mulsd xmm0, xmm1
mulsd xmm2, xmm1
movsd xmm1, qword [esp + 0x88]
movsd xmm3, qword [edi + 0x49a8]
mulsd xmm4, xmm4
divsd xmm1, xmm2
subsd xmm4, xmm0
mulsd xmm1, xmm3
mulsd xmm1, xmm3
subsd xmm4, xmm1
xorps xmm1, xmm1
andps xmm4, xmmword [0x4afb90]
movaps xmm0, xmm4
ucomisd xmm1, xmm0
ja 0x470089
sqrtsd xmm0, xmm0
jmp 0x47008e
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
mov eax, dword [esp + 0xc]
movsd qword [eax + esi + 8], xmm0
mov esi, dword [edi + 0x49e4]
movsd xmm2, qword [eax + esi + 8]
movsd xmm0, qword [eax + esi - 0x18]
movaps xmm3, xmm2
addsd xmm0, xmm2
mulsd xmm3, xmm2
divsd xmm3, xmm0
movsd xmm0, qword [esp + 0x90]
divsd xmm0, qword [esp + 0x20]
addsd xmm3, qword [eax + esi - 0x18]
movsd qword [esp + 0x98], xmm0
xorps xmm0, xmmword [0x4afba0]
mulsd xmm3, qword [0x4aeda8]
movsd qword [esp + 0xa0], xmm3
movsd qword [edi + 0x49a8], xmm3
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_exp_precise
mov edx, dword [esp + 0xc]
movaps xmm2, xmm0
movsd xmm6, qword [0x4aeef0]
movaps xmm5, xmm6
movsd xmm1, qword [edi + 0x4810]
subsd xmm5, xmm2
movsd xmm0, qword [edx + esi + 8]
movsd xmm3, qword [edx + esi - 0x18]
mulsd xmm0, xmm0
divsd xmm5, qword [esp + 0x98]
mulsd xmm3, xmm3
movsd xmm4, qword [edx + esi - 0x10]
subsd xmm4, xmm1
subsd xmm3, xmm0
movsd xmm0, qword [esp + 0xa0]
addsd xmm0, xmm0
mulsd xmm4, xmm2
divsd xmm3, xmm0
movsd xmm0, qword [esp + 0x38]
addsd xmm4, xmm1
divsd xmm0, qword [esp + 0x20]
mulsd xmm3, qword [esp + 0x30]
mulsd xmm0, xmm5
movsd xmm1, qword [esp + 0x68]
mulsd xmm3, xmm5
subsd xmm4, xmm3
subsd xmm4, xmm0
movsd qword [edx + esi + 0x10], xmm4
mov eax, dword [edi + 0x49e4]
movsd xmm4, qword [edx + eax + 0x10]
addsd xmm4, qword [edx + eax - 0x10]
mulsd xmm4, qword [0x4aed20]
movsd qword [edi + 0x49b0], xmm4
movsd xmm0, qword [edx + eax + 8]
subsd xmm1, xmm0
andps xmm1, xmmword [0x4afb90]
comisd xmm6, xmm1
ja 0x4701e0
mov ecx, dword [esp + 0x18]
lea esi, [edi + 0x18]
inc ecx
movsd qword [esp + 0x68], xmm0
mov dword [esp + 0x18], ecx
cmp ecx, 0x64
jle 0x46fe31
movsd xmm0, qword [esp + 0xa8]
lea esi, [edi + 0x18]
mulsd xmm0, qword [edi + 0x48d0]
add edx, 0x20
mov ecx, dword [esp + 0x1c]
mulsd xmm4, qword [esp + 0x10]
mov eax, dword [edi + 0x498c]
movsd xmm1, qword [esp + 0xb0]
mulsd xmm0, qword [0x4af670]
mov dword [esp + 0xc], edx
divsd xmm0, qword [0x4af858]
mulsd xmm0, qword [edi + 0x49a8]
mulsd xmm0, qword [edi + 0x50]
divsd xmm0, xmm4
movsd qword [eax + ecx*8], xmm0
movsd xmm0, qword [esp + 0x40]
mulsd xmm0, qword [edi + 0x48d0]
mov eax, dword [edi + 0x4988]
mulsd xmm1, qword [edi + 0x48]
divsd xmm1, xmm0
xorps xmm0, xmm0
movsd qword [eax + ecx*8], xmm1
mov eax, dword [edi + 0x4984]
movsd qword [eax + ecx*8], xmm0
inc ecx
mov dword [esp + 0x1c], ecx
cmp ecx, dword [edi + 0x49d8]
jl 0x46fcb0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4