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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x130
movsd xmm2, qword [0x4ae888]
xorps xmm6, xmm6
push esi
push edi
mov edi, ecx
movsd qword [esp + 0xa0], xmm6
xor edx, edx
mov dword [esp + 0xbc], edi
movsd qword [esp + 0x18], xmm6
lea eax, [edi + 0x4994]
movsd xmm0, qword [edi + 0x4920]
lea esi, [edi + 0x4998]
mov dword [esp + 0x54], eax
lea eax, [edi + 0x499c]
movsd qword [esp + 0x88], xmm0
lea ecx, [edi + 0x49a0]
mov dword [edi + 0x49b8], 1
mov dword [esp + 0x24], esi
mov dword [esp + 0x40], eax
mov dword [esp + 0xc], ecx
cmp dword [edi + 0x4970], edx
jl 0x46e8ec
movsd xmm1, qword [0x4af860]
xor ecx, ecx
nop dword [eax]
mov eax, dword [eax]
movsd qword [eax + edx*8], xmm6
mov eax, dword [edi + 0x49a0]
movsd qword [eax + edx*8], xmm6
mov eax, dword [esi]
movsd qword [ecx + eax + 8], xmm6
mov eax, dword [esi]
movsd qword [ecx + eax + 0x18], xmm6
mov eax, dword [esi]
movsd qword [ecx + eax + 0x10], xmm6
mov eax, dword [edi + 0x4994]
movsd xmm0, qword [ecx + eax + 0x18]
ucomisd xmm0, xmm6
lahf
test ah, 0x44
jp 0x46e8bc
mov eax, dword [edi + 0x4994]
movsd qword [ecx + eax + 0x18], xmm2
mov eax, dword [edi + 0x4994]
movsd xmm0, qword [ecx + eax + 8]
comisd xmm0, xmm1
jbe 0x46e8d8
mov dword [edi + 0x49b8], 0
inc edx
lea eax, [edi + 0x499c]
add ecx, 0x20
cmp edx, dword [edi + 0x4970]
jle 0x46e870
jmp 0x46e902
mov dword [esp + 0x40], eax
lea eax, [edi + 0x4994]
mov dword [esp + 0x24], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x54], eax
movsd xmm0, qword [edi + 0x50]
mulsd xmm0, qword [0x4af670]
mov eax, dword [0x7c1d10]
movsd xmm2, qword [0x4af858]
movd xmm1, dword [0x7c1d30]
cvtdq2pd xmm1, xmm1
mulsd xmm0, qword [edi + 0x48]
movsd qword [esp + 0x80], xmm1
divsd xmm2, xmm0
movsd qword [esp + 0x90], xmm2
cmp dword [0x7c1d34], eax
jne 0x46e969
test eax, eax
jne 0x46e969
cmp dword [0x7c1e4c], 1
jne 0x46e969
movsd xmm1, qword [0x4af838]
movsd qword [esp + 0x80], xmm1
mov eax, dword [esi]
movsd xmm0, qword [edi + 0x20]
mov dword [esp + 0x3c], 0
movsd qword [eax + 8], xmm0
mov ecx, dword [edi + 0x4970]
mov eax, dword [esi]
movsd xmm0, qword [edi + 0x2410]
shl ecx, 5
movsd qword [ecx + eax + 8], xmm0
mov eax, dword [esp + 0x40]
mov ecx, dword [edi + 0x4970]
mov eax, dword [eax]
movsd qword [eax + ecx*8], xmm6
mov edx, dword [edi + 0x4970]
mov ecx, edx
mov eax, dword [esi]
shl ecx, 5
movsd xmm0, qword [ecx + eax + 8]
mov eax, dword [esp + 0xc]
mulsd xmm0, xmm0
mov eax, dword [eax]
movsd qword [eax + edx*8], xmm0
mov ecx, dword [edi + 0x4970]
dec ecx
mov dword [esp + 8], ecx
test ecx, ecx
jle 0x46f1d1
movaps xmm0, xmm1
mov edx, ecx
mulsd xmm0, xmm2
shl edx, 5
mov dword [esp + 0x10], edx
movsd qword [esp + 0xd0], xmm0
mov eax, dword [edi + 0x4978]
movsd xmm1, qword [eax + ecx*8]
mov eax, dword [edi + 0x4974]
mulsd xmm1, xmm1
movsd xmm0, qword [eax + ecx*8]
mulsd xmm0, xmm0
addsd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x46ea26
sqrtsd xmm0, xmm0
jmp 0x46ea2b
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
mov eax, dword [edi + 0x4994]
mov ecx, dword [esp + 0x10]
movsd qword [esp + 0x98], xmm0
movsd xmm2, qword [eax + ecx + 0x10]
movsd xmm1, qword [eax + ecx + 8]
lea ecx, [edi + 0x18]
call fcn.0042e5e0
mov eax, dword [edi + 0x4994]
mov ecx, dword [esp + 0x10]
movsd qword [esp + 0x18], xmm0
movsd xmm3, qword [eax + ecx + 0x10]
movsd xmm2, qword [eax + ecx + 8]
movaps xmm1, xmm3
mulsd xmm1, qword [esp + 0xd0]
movaps xmm4, xmm2
mulsd xmm4, xmm2
addsd xmm3, qword [eax + ecx - 0x10]
mulsd xmm1, xmm2
mulsd xmm3, qword [0x4aed20]
mulsd xmm1, xmm0
movsd xmm0, qword [eax + ecx + 0x18]
andps xmm0, xmmword [0x4afb90]
mulsd xmm0, qword [esp + 0x98]
movsd qword [esp + 0x68], xmm3
divsd xmm1, xmm0
movsd xmm0, qword [eax + ecx - 0x18]
addsd xmm0, xmm2
movsd qword [esp + 0xc8], xmm1
divsd xmm4, xmm0
addsd xmm4, qword [eax + ecx - 0x18]
mov eax, dword [0x7c1e70]
mulsd xmm4, qword [0x4aeda8]
movsd qword [esp + 0x28], xmm4
cmp eax, 4
jl 0x46ebda
mulsd xmm4, qword [0x4ae888]
jne 0x46eb4a
sub esp, 0x10
lea eax, [esp + 0x88]
lea ecx, [edi + 0x18]
movsd qword [esp + 8], xmm4
movsd qword [esp], xmm3
push eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00431170
movsd xmm2, qword [esp + 0x68]
movsd xmm4, qword [esp + 0x28]
jmp 0x46ec72
sub esp, 0x10
lea eax, [esp + 0x4c]
lea ecx, [edi + 0x18]
movsd qword [esp + 8], xmm4
movsd qword [esp], xmm3
push 1
push eax
lea eax, [esp + 0x120]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x14c]
push eax
lea eax, [esp + 0x158]
push eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x168]
push eax
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x178]
push eax
call fcn.00431c40
movsd xmm2, qword [esp + 0x68]
movsd xmm4, qword [esp + 0x28]
jmp 0x46ec72
lea ecx, [edi + 0x18]
cmp eax, 3
jne 0x46ec1b
sub esp, 0x10
lea eax, [esp + 0x80]
movsd qword [esp + 8], xmm3
movsd qword [esp], xmm4
push eax
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004307f0
jmp 0x46ec46
movaps xmm2, xmm3
movaps xmm1, xmm4
call fcn.0042e5e0
movsd xmm2, qword [esp + 0x68]
lea ecx, [edi + 0x18]
movsd xmm1, qword [esp + 0x28]
movsd qword [esp + 0x18], xmm0
call fcn.0042e810
movsd qword [esp + 0x30], xmm0
movsd xmm1, qword [esp + 0x90]
mulsd xmm1, qword [esp + 0x18]
movsd xmm2, qword [esp + 0x68]
movsd xmm4, qword [esp + 0x28]
movaps xmm0, xmm4
mulsd xmm1, xmm2
divsd xmm0, xmm1
movsd qword [esp + 0x48], xmm0
cmp dword [edi + 0x49d8], 1
jle 0x46ec95
mov eax, dword [edi + 0x4990]
mov ecx, dword [esp + 8]
movsd xmm0, qword [eax + ecx*8]
movsd qword [esp + 0x88], xmm0
jmp 0x46ec9e
movsd xmm0, qword [esp + 0x88]
mov eax, dword [edi + 0x4994]
sub esp, 0x20
mov edx, dword [esp + 0x30]
movaps xmm3, xmm2
movaps xmm2, xmm4
mov ecx, edi
movsd qword [esp + 0x10], xmm0
movsd xmm0, qword [esp + 0x50]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [eax + edx - 8]
andps xmm0, xmmword [0x4afb90]
movsd qword [esp], xmm0
push dword [esp + 0x5c]
call fcn.0046b850
movsd xmm2, qword [esp + 0x68]
mov eax, dword [edi + 0x4994]
mov edx, dword [esp + 0x10]
movsd xmm6, qword [edi + 0x48d0]
movsd xmm4, qword [edi + 0x48]
mulsd xmm2, xmm0
movaps xmm0, xmm6
mov ecx, dword [esp + 8]
movsd xmm7, qword [eax + edx - 8]
mulsd xmm0, qword [edi + 0x4890]
mov eax, dword [edi + 0x4978]
mulsd xmm2, qword [esp + 0x18]
andps xmm7, xmmword [0x4afb90]
movsd xmm3, qword [esp + 0x28]
movaps xmm1, xmm7
mulsd xmm1, qword [esp + 0x80]
mulsd xmm2, qword [esp + 0x90]
movsd xmm5, qword [esp + 0xc8]
divsd xmm5, qword [esp + 0x98]
mulsd xmm2, xmm4
divsd xmm2, xmm0
movaps xmm0, xmm3
divsd xmm0, xmm1
addsd xmm2, xmm0
movsd xmm0, qword [esp + 0xa0]
divsd xmm5, xmm2
movsd xmm2, qword [eax + ecx*8]
ucomisd xmm2, xmm0
movsd qword [esp + 0xc0], xmm5
lahf
test ah, 0x44
jnp 0x46eda7
movaps xmm0, xmm3
addsd xmm0, xmm3
mulsd xmm0, qword [0x4af370]
mulsd xmm0, xmm2
mulsd xmm0, qword [esp + 0x48]
mulsd xmm6, qword [esp + 0x80]
mov eax, dword [edi + 0x4994]
mulsd xmm4, xmm3
movsd xmm1, qword [eax + edx + 0x28]
movaps xmm3, xmm1
mulsd xmm4, qword [esp + 0x98]
mulsd xmm3, xmm1
mulsd xmm4, xmm7
divsd xmm4, xmm6
subsd xmm0, xmm4
mulsd xmm0, xmm5
movsd qword [esp + 0xa8], xmm0
movsd xmm0, qword [eax + edx + 8]
addsd xmm0, xmm1
divsd xmm3, xmm0
movsd xmm0, qword [eax + edx + 0x30]
addsd xmm3, qword [eax + edx + 8]
addsd xmm0, qword [eax + edx + 0x10]
mov eax, dword [0x7c1e70]
mulsd xmm3, qword [0x4aeda8]
mulsd xmm0, qword [0x4aed20]
movsd qword [esp + 0x68], xmm3
movsd qword [esp + 0x28], xmm0
cmp eax, 4
jl 0x46ef05
mulsd xmm3, qword [0x4ae888]
jne 0x46ee81
sub esp, 0x10
lea eax, [esp + 0x88]
lea ecx, [edi + 0x18]
movsd qword [esp + 8], xmm3
movsd qword [esp], xmm0
push eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00431170
jmp 0x46ef96
sub esp, 0x10
lea eax, [esp + 0x4c]
lea ecx, [edi + 0x18]
movsd qword [esp + 8], xmm3
movsd qword [esp], xmm0
push 1
push eax
lea eax, [esp + 0xf0]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x10c]
push eax
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x11c]
push eax
lea eax, [esp + 0x128]
push eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x148]
push eax
call fcn.00431c40
jmp 0x46ef96
lea ecx, [edi + 0x18]
cmp eax, 3
jne 0x46ef46
sub esp, 0x10
lea eax, [esp + 0x80]
movsd qword [esp + 8], xmm0
movsd qword [esp], xmm3
push eax
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004307f0
jmp 0x46ef71
movaps xmm2, xmm0
movaps xmm1, xmm3
call fcn.0042e5e0
movsd xmm2, qword [esp + 0x28]
lea ecx, [edi + 0x18]
movsd xmm1, qword [esp + 0x68]
movsd qword [esp + 0x18], xmm0
call fcn.0042e810
movsd qword [esp + 0x30], xmm0
movsd xmm1, qword [esp + 0x90]
mulsd xmm1, qword [esp + 0x18]
movsd xmm0, qword [esp + 0x68]
mulsd xmm1, qword [esp + 0x28]
divsd xmm0, xmm1
movsd qword [esp + 0x48], xmm0
cmp dword [edi + 0x49d8], 1
mov ecx, dword [esp + 8]
jle 0x46efb8
mov eax, dword [edi + 0x4990]
movsd xmm0, qword [eax + ecx*8 + 8]
movsd qword [esp + 0x88], xmm0
mov eax, dword [edi + 0x4978]
movsd xmm1, qword [eax + ecx*8 + 8]
mov eax, dword [edi + 0x4974]
mulsd xmm1, xmm1
movsd xmm0, qword [eax + ecx*8 + 8]
mulsd xmm0, xmm0
addsd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x46efeb
sqrtsd xmm0, xmm0
jmp 0x46eff0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
mov eax, dword [edi + 0x4994]
sub esp, 0x20
mov edx, dword [esp + 0x30]
mov ecx, edi
movsd xmm1, qword [esp + 0x50]
movsd xmm3, qword [esp + 0x48]
movsd xmm2, qword [esp + 0x88]
movsd qword [esp + 0xb8], xmm0
movsd xmm0, qword [esp + 0xa8]
movsd qword [esp + 0x10], xmm0
movsd xmm0, qword [eax + edx + 0x18]
andps xmm0, xmmword [0x4afb90]
movsd qword [esp + 8], xmm1
movsd qword [esp], xmm0
push dword [esp + 0x5c]
call fcn.0046b850
movsd xmm2, qword [esp + 0x28]
mov eax, dword [edi + 0x4994]
mov edx, dword [esp + 0x10]
movsd xmm1, qword [edi + 0x48d0]
movsd xmm6, qword [edi + 0x48]
movsd xmm4, qword [esp + 0x68]
movsd xmm3, qword [eax + edx + 0x18]
andps xmm3, xmmword [0x4afb90]
mulsd xmm2, xmm0
movaps xmm0, xmm1
mov eax, dword [edi + 0x4978]
mulsd xmm0, qword [edi + 0x4890]
mov ecx, dword [esp + 8]
movsd xmm7, qword [esp + 0xc8]
mulsd xmm2, qword [esp + 0x18]
divsd xmm7, qword [esp + 0x98]
movsd qword [esp + 0xb0], xmm1
movaps xmm1, xmm3
mulsd xmm2, qword [esp + 0x90]
mulsd xmm1, qword [esp + 0x80]
movsd xmm5, qword [esp + 0xa0]
mulsd xmm2, xmm6
movsd qword [esp + 0x10], xmm3
divsd xmm2, xmm0
movaps xmm0, xmm4
divsd xmm0, xmm1
movsd xmm1, qword [eax + ecx*8 + 8]
ucomisd xmm1, xmm5
addsd xmm2, xmm0
lahf
divsd xmm7, xmm2
test ah, 0x44
jnp 0x46f11b
movaps xmm5, xmm4
addsd xmm5, xmm4
mulsd xmm5, qword [0x4af370]
mulsd xmm5, xmm1
mulsd xmm5, qword [esp + 0x48]
movsd xmm1, qword [esp + 0xc0]
movaps xmm0, xmm7
mov eax, dword [esp + 0x40]
movaps xmm2, xmm1
addsd xmm2, qword [0x4aeef0]
movsd xmm3, qword [esp + 0xa8]
mulsd xmm6, xmm4
mov eax, dword [eax]
addsd xmm2, xmm7
mulsd xmm0, qword [eax + ecx*8 + 8]
mulsd xmm6, qword [esp + 0x98]
subsd xmm2, xmm0
mulsd xmm6, qword [esp + 0x10]
divsd xmm1, xmm2
movsd qword [eax + ecx*8], xmm1
movaps xmm1, xmm7
mov eax, dword [edi + 0x4994]
movsd xmm0, qword [eax + edx + 8]
sub edx, 0x20
mulsd xmm0, xmm0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], edx
subsd xmm3, xmm0
mov eax, dword [eax]
movsd xmm0, qword [esp + 0xb0]
mulsd xmm0, qword [esp + 0x80]
mulsd xmm1, qword [eax + ecx*8 + 8]
divsd xmm6, xmm0
subsd xmm5, xmm6
mulsd xmm5, xmm7
subsd xmm3, xmm5
subsd xmm1, xmm3
divsd xmm1, xmm2
movsd qword [eax + ecx*8], xmm1
dec ecx
mov dword [esp + 8], ecx
test ecx, ecx
jg 0x46e9f5
mov eax, dword [edi + 0x4970]
xor edx, edx
dec eax
mov dword [esp + 8], edx
test eax, eax
jle 0x46f26f
xor ecx, ecx
mov dword [esp + 0x10], ecx
nop dword [eax]
mov esi, dword [esp + 0x24]
xorps xmm1, xmm1
mov eax, dword [esp + 0x40]
mov esi, dword [esi]
mov eax, dword [eax]
movsd xmm0, qword [ecx + esi + 8]
mulsd xmm0, qword [eax + edx*8 + 8]
mov eax, dword [esp + 0xc]
mulsd xmm0, qword [ecx + esi + 8]
mov eax, dword [eax]
addsd xmm0, qword [eax + edx*8 + 8]
ucomisd xmm1, xmm0
ja 0x46f229
sqrtsd xmm0, xmm0
jmp 0x46f22e
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
movsd xmm3, qword [0x4af858]
movsd qword [ecx + esi + 0x28], xmm0
mov eax, dword [eax]
comisd xmm3, xmmword [ecx + eax + 0x28]
jbe 0x46f254
movsd qword [ecx + eax + 0x28], xmm3
mov edx, dword [esp + 8]
add ecx, 0x20
mov eax, dword [edi + 0x4970]
inc edx
dec eax
mov dword [esp + 8], edx
mov dword [esp + 0x10], ecx
cmp edx, eax
jl 0x46f1f0
mov eax, dword [esp + 0x24]
xor ecx, ecx
movsd xmm0, qword [edi + 0x28]
mov dword [esp + 8], ecx
mov eax, dword [eax]
movsd qword [eax + 0x10], xmm0
mov edx, dword [edi + 0x4970]
test edx, edx
jle 0x46f8ca
xor esi, esi
mov dword [esp + 0xc], esi
nop dword [eax]
mov eax, dword [esp + 0x54]
mov eax, dword [eax]
movsd xmm1, qword [esi + eax + 0x28]
movsd xmm0, qword [esi + eax + 8]
movaps xmm3, xmm1
addsd xmm0, xmm1
mulsd xmm3, xmm1
divsd xmm3, xmm0
movsd xmm0, qword [esi + eax + 0x30]
addsd xmm3, qword [esi + eax + 8]
addsd xmm0, qword [esi + eax + 0x10]
mov eax, dword [0x7c1e70]
mulsd xmm3, qword [0x4aeda8]
mulsd xmm0, qword [0x4aed20]
movsd qword [esp + 0x40], xmm3
movsd qword [esp + 0x10], xmm0
cmp eax, 4
jl 0x46f3cf
mulsd xmm3, qword [0x4ae888]
jne 0x46f34b
sub esp, 0x10
lea eax, [esp + 0x88]
lea ecx, [edi + 0x18]
movsd qword [esp + 8], xmm3
movsd qword [esp], xmm0
push eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00431170
jmp 0x46f492
sub esp, 0x10
lea eax, [esp + 0x4c]
lea ecx, [edi + 0x18]
movsd qword [esp + 8], xmm3
movsd qword [esp], xmm0
push 1
push eax
lea eax, [esp + 0x118]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x124]
push eax
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x124]
push eax
lea eax, [esp + 0x120]
push eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x120]
push eax
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x120]
push eax
call fcn.00431c40
jmp 0x46f492
lea ecx, [edi + 0x18]
cmp eax, 3
jne 0x46f410
sub esp, 0x10
lea eax, [esp + 0x80]
movsd qword [esp + 8], xmm0
movsd qword [esp], xmm3
push eax
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004307f0
jmp 0x46f46d
movaps xmm2, xmm0
movaps xmm1, xmm3
call fcn.0042e5e0
movsd xmm2, qword [esp + 0x10]
lea ecx, [edi + 0x18]
movsd xmm1, qword [esp + 0x40]
movsd qword [esp + 0x18], xmm0
call fcn.0042e810
movsd xmm2, qword [esp + 0x10]
mov ecx, edi
movsd xmm1, qword [esp + 0x40]
movsd qword [esp + 0x30], xmm0
call fcn.0046a410
movsd xmm2, qword [esp + 0x10]
mov ecx, edi
movsd xmm1, qword [esp + 0x40]
movsd qword [esp + 0x60], xmm0
call fcn.0046a620
movsd qword [esp + 0x58], xmm0
movsd xmm1, qword [esp + 0x90]
mulsd xmm1, qword [esp + 0x18]
movsd xmm0, qword [esp + 0x40]
mulsd xmm1, qword [esp + 0x10]
divsd xmm0, xmm1
movsd qword [esp + 0x48], xmm0
cmp dword [edi + 0x49d8], 1
mov ecx, dword [esp + 8]
jle 0x46f4b4
mov eax, dword [edi + 0x4990]
movsd xmm0, qword [eax + ecx*8 + 8]
movsd qword [esp + 0x88], xmm0
mov eax, dword [edi + 0x4978]
movsd xmm1, qword [eax + ecx*8 + 8]
mov eax, dword [edi + 0x4974]
mulsd xmm1, xmm1
movsd xmm0, qword [eax + ecx*8 + 8]
mulsd xmm0, xmm0
addsd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x46f4e7
sqrtsd xmm0, xmm0
jmp 0x46f4ec
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
mov eax, dword [esp + 0x54]
sub esp, 0x20
movsd xmm1, qword [esp + 0x50]
mov ecx, edi
movsd xmm3, qword [esp + 0x30]
movsd xmm2, qword [esp + 0x60]
mov eax, dword [eax]
movsd qword [esp + 0x48], xmm0
movsd xmm0, qword [esp + 0xa8]
movsd qword [esp + 0x10], xmm0
movsd xmm0, qword [esi + eax + 0x18]
andps xmm0, xmmword [0x4afb90]
movsd qword [esp + 8], xmm1
movsd qword [esp], xmm0
push dword [esp + 0x5c]
call fcn.0046b850
movsd xmm6, qword [edi + 0x48]
movaps xmm1, xmm0
mov eax, dword [esp + 0x54]
movaps xmm2, xmm6
mulsd xmm2, qword [esp + 0x90]
movaps xmm0, xmm6
mov ecx, dword [esp + 8]
movsd xmm3, qword [esp + 0x28]
movsd xmm4, qword [edi + 0x48d0]
mov eax, dword [eax]
movaps xmm7, xmm4
mulsd xmm2, qword [esp + 0x10]
mulsd xmm0, xmm3
movsd xmm5, qword [esi + eax + 0x18]
andps xmm5, xmmword [0x4afb90]
mulsd xmm2, xmm1
movaps xmm1, xmm5
mov eax, dword [edi + 0x4978]
mulsd xmm1, qword [esp + 0x80]
divsd xmm7, xmm0
mulsd xmm2, qword [esp + 0x18]
movaps xmm0, xmm4
mulsd xmm0, qword [edi + 0x4890]
movsd qword [esp + 0xa8], xmm4
movsd xmm4, qword [esp + 0x40]
movsd qword [esp + 0xb0], xmm5
divsd xmm2, xmm0
movaps xmm0, xmm4
movsd xmm5, qword [esp + 0xa0]
divsd xmm0, xmm1
movaps xmm1, xmm5
addsd xmm2, xmm0
movaps xmm0, xmm4
addsd xmm0, xmm4
divsd xmm7, xmm2
movsd xmm2, qword [eax + ecx*8 + 8]
ucomisd xmm2, xmm5
movsd qword [esp + 0xc0], xmm0
lahf
test ah, 0x44
jnp 0x46f61f
movaps xmm1, xmm0
mulsd xmm1, qword [0x4af370]
mulsd xmm1, xmm2
mulsd xmm1, qword [esp + 0x48]
mov eax, dword [esp + 0x24]
mulsd xmm6, xmm4
mov edi, dword [eax]
mov eax, 0xffffffff
mulsd xmm6, xmm3
movsd xmm2, qword [esi + edi + 8]
movsd xmm0, qword [esi + edi + 0x28]
mov esi, 1
mulsd xmm2, xmm2
mulsd xmm6, qword [esp + 0xb0]
mulsd xmm0, xmm0
subsd xmm2, xmm0
movsd xmm0, qword [esp + 0xa8]
mulsd xmm0, qword [esp + 0x80]
mulsd xmm2, xmm7
divsd xmm6, xmm0
subsd xmm1, xmm6
mulsd xmm1, xmm7
subsd xmm2, xmm1
xorps xmm1, xmm1
comisd xmm5, xmm2
andps xmm2, xmmword [0x4afb90]
movaps xmm0, xmm2
cmova esi, eax
ucomisd xmm1, xmm0
ja 0x46f69e
sqrtsd xmm0, xmm0
jmp 0x46f6a3
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
mov eax, dword [esp + 0x24]
movd xmm1, esi
mov esi, dword [esp + 0xc]
cvtdq2pd xmm1, xmm1
movsd xmm6, qword [0x4aeef0]
mulsd xmm0, xmm1
movsd qword [esi + edi + 0x18], xmm0
mov edx, dword [eax]
mov edi, dword [esp + 0xbc]
movsd xmm0, qword [esp + 0x48]
mov dword [esp + 0xc], edx
movsd xmm1, qword [esi + edx + 0x18]
mulsd xmm0, qword [edi + 0x48d0]
movaps xmm2, xmm1
andps xmm2, xmmword [0x4afb90]
mulsd xmm2, qword [edi + 0x48]
ucomisd xmm1, qword [esp + 0xa0]
movaps xmm3, xmm2
divsd xmm3, xmm0
lahf
movsd qword [esp + 0xa8], xmm3
test ah, 0x44
jnp 0x46f7f4
movsd xmm0, qword [edi + 0x48a8]
mulsd xmm0, qword [0x4af1d8]
mulsd xmm2, qword [esp + 0x58]
mulsd xmm0, qword [edi + 0x48b0]
mulsd xmm0, qword [esp + 0x28]
divsd xmm0, xmm2
movsd qword [esp + 0xb0], xmm0
xorps xmm0, xmmword [0x4afba0]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_exp_precise
mov edx, dword [esp + 0xc]
movsd xmm5, qword [edi + 0x4810]
movsd xmm6, qword [0x4aeef0]
mov eax, dword [edi + 0x4978]
movaps xmm3, xmm6
movsd xmm2, qword [esi + edx + 8]
subsd xmm3, xmm0
movsd xmm1, qword [esi + edx + 0x28]
movsd xmm4, qword [esi + edx + 0x10]
mov ecx, dword [esp + 8]
subsd xmm4, xmm5
mulsd xmm2, xmm2
mulsd xmm1, xmm1
mulsd xmm4, xmm0
movsd xmm0, qword [eax + ecx*8 + 8]
mulsd xmm0, qword [0x4af370]
subsd xmm2, xmm1
addsd xmm4, xmm5
mulsd xmm2, qword [esp + 0x60]
divsd xmm0, qword [esp + 0x58]
divsd xmm2, qword [esp + 0xc0]
mulsd xmm0, xmm3
mulsd xmm2, xmm3
movsd xmm3, qword [esp + 0xa8]
divsd xmm0, qword [esp + 0xb0]
divsd xmm2, qword [esp + 0xb0]
subsd xmm4, xmm2
subsd xmm4, xmm0
jmp 0x46f803
movsd xmm4, qword [edi + 0x4810]
mov ecx, dword [esp + 8]
movaps xmm5, xmm4
cmp dword [edi + 0x49b8], 1
movsd xmm1, qword [esp + 0x28]
je 0x46f856
movaps xmm5, xmm4
mov eax, dword [esp + 0x54]
mulsd xmm5, xmm3
movaps xmm0, xmm3
mulsd xmm0, qword [esp + 0x80]
mov eax, dword [eax]
mulsd xmm5, qword [esp + 0x80]
divsd xmm0, xmm1
divsd xmm5, xmm1
addsd xmm4, qword [esi + eax + 0x30]
addsd xmm0, xmm6
mulsd xmm4, qword [0x4aed20]
addsd xmm5, xmm4
divsd xmm5, xmm0
movsd qword [esi + edx + 0x30], xmm5
cmp dword [edi + 0x49d8], 1
jle 0x46f8b0
mulsd xmm1, qword [edi + 0x48d0]
mov eax, dword [edi + 0x498c]
movsd xmm0, qword [esp + 0x10]
mulsd xmm0, qword [esp + 0x18]
mulsd xmm1, qword [0x4af670]
divsd xmm1, qword [0x4af858]
mulsd xmm1, qword [esp + 0x40]
mulsd xmm1, qword [edi + 0x50]
divsd xmm1, xmm0
movsd qword [eax + ecx*8 + 8], xmm1
mov eax, dword [edi + 0x4988]
movsd qword [eax + ecx*8 + 8], xmm3
mov edx, dword [edi + 0x4970]
inc ecx
add esi, 0x20
mov dword [esp + 8], ecx
mov dword [esp + 0xc], esi
cmp ecx, edx
jl 0x46f2a0
mov ecx, dword [esp + 0x24]
shl edx, 5
mov eax, dword [ecx]
movsd xmm0, qword [edx + eax - 8]
movsd qword [edx + eax + 0x18], xmm0
mov ecx, dword [ecx]
mov eax, dword [edi + 0x4970]
shl eax, 5
cmp dword [0x7c1e90], 5
movsd xmm0, qword [ecx + 0x18]
movsd qword [edi + 0x30], xmm0
movsd xmm0, qword [eax + ecx + 0x18]
movsd qword [edi + 0x2420], xmm0
movsd xmm0, qword [eax + ecx + 0x10]
movsd qword [edi + 0x2418], xmm0
jne 0x46f98a
cmp dword [edi + 0x49d8], 1
jle 0x46f98a
mov ecx, edi
call fcn.0046b7e0
mov esi, 1
cmp dword [edi + 0x49d8], esi
jle 0x46f98a
mov edx, 0x20
mov dword [esp + 0xc], edx
nop
mov eax, dword [esp + 0x24]
mov ecx, 1
movsd xmm0, qword [esp + 0xa0]
mov eax, dword [eax]
movsd xmm3, qword [edx + eax + 0x18]
mov eax, 0xffffffff
comisd xmm0, xmm3
andps xmm3, xmmword [0x4afb90]
cmova ecx, eax
push ecx
push esi
mov ecx, edi
call fcn.00475e40
mov edx, dword [esp + 0xc]
inc esi
add edx, 0x20
mov dword [esp + 0xc], edx
cmp esi, dword [edi + 0x49d8]
jl 0x46f940
pop edi
pop esi
mov esp, ebp
pop ebp
ret