Function at 0x668ee0
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6fa46d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x138
mov eax, dword [0x766480]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 0x20]
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x58], 0x3f800000
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
call fcn.0065ee30
movss xmm0, dword [ebx + 0x18]
lea eax, [ebp - 0x80]
sub esp, 0xc
movss dword [esp + 8], xmm0
movss xmm0, dword [ebx + 0x14]
mov dword [esp + 4], 0
movss dword [esp], xmm0
push eax
call fcn.0040468a
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00403ff1
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.0065e180
add esp, 0xc
lea ecx, [ebp - 0xc0]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xc0], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp - 0xb0], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [ebp - 0xa0], xmm0
movups xmm0, xmmword [eax + 0x30]
lea eax, [ebp - 0x6c]
push eax
movups xmmword [ebp - 0x90], xmm0
call fcn.0065e5c0
movss xmm1, dword [ebx + 0x1c]
movss xmm4, dword [ebx + 8]
movaps xmm2, xmm1
movss xmm3, dword [ebx + 0xc]
movaps xmm5, xmm4
movq xmm0, qword [eax]
movq qword [esi], xmm0
movaps xmm0, xmm1
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
mulss xmm2, dword [esi]
mov dword [ebp - 0x4c], 0
mulss xmm0, dword [esi + 4]
mov dword [ebp - 0x48], 0
mulss xmm1, dword [esi + 8]
addss xmm5, xmm2
mov dword [ebp - 0x44], 0
movaps xmm2, xmm3
addss xmm2, xmm0
movss xmm0, dword [ebx + 0x10]
addss xmm0, xmm1
movss dword [ebp - 0x50], xmm0
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
push eax
sub esp, 0xc
unpcklps xmm5, xmm2
mov eax, esp
unpcklps xmm4, xmm3
sub esp, 0xc
mov dword [ebp - 4], 0
movaps xmmword [ebp - 0x70], xmm5
movq qword [ebx + 8], xmm4
movq qword [eax], xmm5
mov dword [eax + 8], ecx
mov ecx, esp
movq qword [ecx], xmm4
mov eax, dword [ebx + 0x10]
mov dword [ecx + 8], eax
mov ecx, 0xf89918
call fcn.005d6d80
mov ecx, dword [ebp - 0x48]
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x4c]
sub ecx, edi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x5c], eax
je 0x669177
mov eax, 0x55555556
xor ecx, ecx
imul dword [ebp - 0x5c]
mov dword [ebp - 0x3c], ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x669177
xor esi, esi
nop
movq xmm0, qword [esi + edi]
movq qword [ebp - 0x38], xmm0
mov eax, dword [esi + edi + 8]
mov dword [ebp - 0x30], eax
movq xmm0, qword [esi + edi + 0xc]
mov ecx, dword [ebp - 0x50]
movq qword [ebp - 0x2c], xmm0
mov eax, dword [esi + edi + 0x14]
mov dword [ebp - 0x24], eax
movq xmm0, qword [esi + edi + 0x18]
movq qword [ebp - 0x20], xmm0
mov eax, dword [esi + edi + 0x20]
movaps xmm0, xmmword [ebp - 0x70]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x38]
push eax
sub esp, 0xc
mov eax, esp
sub esp, 0xc
movq qword [eax], xmm0
movq xmm0, qword [ebx + 8]
mov dword [eax + 8], ecx
mov ecx, esp
mov eax, dword [ebx + 0x10]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
call fcn.0065dba0
add esp, 0x20
test eax, eax
je 0x66914c
movss xmm0, dword [ebp - 0x60]
movss xmm1, dword [ebx + 0x1c]
comiss xmm1, xmm0
jbe 0x66914c
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x66914c
movss dword [ebx + 0x1c], xmm0
mov ecx, dword [ebp - 0x48]
mov eax, 0x38e38e39
mov edi, dword [ebp - 0x4c]
add esi, 0x24
inc dword [ebp - 0x3c]
sub ecx, edi
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x3c], eax
jl 0x6690c0
mov esi, dword [ebp - 0x40]
movss xmm0, dword [esi + 4]
sub esp, 0xc
movss xmm1, dword [esi + 8]
mov edx, esp
movss xmm2, dword [ebx + 0x1c]
mov ecx, 0xf89918
mulss xmm0, xmm2
mulss xmm1, xmm2
mulss xmm2, dword [esi]
addss xmm0, dword [ebx + 0xc]
addss xmm1, dword [ebx + 0x10]
addss xmm2, dword [ebx + 8]
movss dword [esi], xmm2
movss dword [esi + 4], xmm0
movss dword [esi + 8], xmm1
movq xmm0, qword [esi]
mov eax, dword [esi + 8]
movq qword [edx], xmm0
mov dword [edx + 8], eax
call fcn.005d69d0
fstp dword [ebp - 0x40]
movss xmm0, dword [ebp - 0x40]
addss xmm0, dword [0x706c74]
comiss xmm0, dword [esi + 4]
jbe 0x6691e7
movss dword [esi + 4], xmm0
mov esi, dword [ebp - 0x4c]
test esi, esi
je 0x669233
mov ecx, dword [ebp - 0x44]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 2
cmp ecx, 0x1000
jb 0x669229
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x669229
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.006df8f3
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006dfb52
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x1c