Function at 0x10015ad0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x68
movsd xmm1, qword [ebp + 0x10]
movapd xmm2, xmm3
mulsd xmm1, qword [0x100a3710]
push esi
movsd xmm3, qword [0x100a36a8]
mulsd xmm2, qword [0x100a3710]
mov esi, dword [ebp + 8]
movaps xmm0, xmm1
mov dword [esp + 0x24], esi
mulsd xmm0, xmm3
push edi
mov edi, ecx
mov dword [esi], 0
subsd xmm2, xmm0
movapd xmm0, xmm2
movsd qword [edi + 8], xmm2
addsd xmm0, xmm1
movsd xmm1, qword [0x100a3640]
comisd xmm1, xmm2
movsd qword [edi], xmm0
jbe 0x10015b3a
movsd qword [edi + 8], xmm1
movsd xmm1, qword [0x100a36e8]
comisd xmm0, xmm1
jbe 0x10015b4c
movsd qword [edi], xmm1
movsd xmm1, qword [edi + 8]
movsd xmm2, qword [edi]
subsd xmm2, xmm1
addsd xmm1, qword [edi]
mulsd xmm2, xmm3
mulsd xmm1, xmm3
movsd qword [esp + 0x20], xmm2
movaps xmm0, xmm1
call fcn.100854c0
movapd xmm2, xmm0
movsd xmm0, qword [esp + 0x20]
movsd qword [esp + 0x10], xmm2
call fcn.100854c0
movsd xmm1, qword [esp + 0x10]
divsd xmm1, xmm0
movsd xmm0, qword [esp + 0x20]
movsd qword [esp + 0x10], xmm1
movsd qword [edi + 0x10], xmm1
call fcn.100864c0
movsd xmm1, qword [0x100a36b8]
divsd xmm1, xmm0
mov ecx, dword [ebp + 0xc]
movsd xmm2, qword [esp + 0x10]
movapd xmm0, xmm2
movsd qword [edi + 0x18], xmm1
mulsd xmm0, xmm2
movsd qword [edi + 0x20], xmm0
movapd xmm0, xmm1
mulsd xmm0, xmm1
mulsd xmm1, xmm2
movsd qword [edi + 0x28], xmm0
movsd qword [edi + 0x30], xmm1
mulsd xmm1, qword [0x100a36d8]
movsd qword [edi + 0x38], xmm1
mov eax, dword [ecx]
mov dword [esp + 0x10], eax
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0xc], eax
test eax, eax
jle 0x10015d39
xor edx, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
mov esi, dword [ecx + 8]
sub esp, 0x10
add esi, edx
mov eax, esp
mov ecx, edi
movdqu xmm0, xmmword [esi]
movdqu xmmword [eax], xmm0
lea eax, [esp + 0x60]
push eax
call fcn.10015e40
movdqu xmm0, xmmword [esi + 0x20]
sub esp, 0x10
mov ecx, edi
mov eax, esp
movdqu xmmword [eax], xmm0
lea eax, [esp + 0x40]
push eax
call fcn.10015e40
mov esi, dword [esp + 0x28]
movsd xmm3, qword [esp + 0x50]
movsd xmm1, qword [esp + 0x58]
movsd xmm0, xmm3
movsd xmm4, qword [esp + 0x38]
movapd xmm2, xmm1
mov eax, dword [esi]
movapd xmm5, xmm4
movsd xmm7, qword [0x100a3920]
movsd xmm6, qword [esp + 0x30]
xorpd xmm2, xmm7
cdq
xorpd xmm5, xmm7
sub eax, edx
unpcklpd xmm0, xmm1
sar eax, 1
movsd xmm1, qword [esp + 0x68]
shl eax, 6
add eax, dword [esi + 8]
unpcklpd xmm3, xmm2
movapd xmm2, xmm1
mov ecx, dword [ebp + 0xc]
xorpd xmm2, xmm7
movdqu xmmword [eax], xmm0
movdqu xmmword [eax + 0x10], xmm3
movsd xmm3, qword [esp + 0x60]
movsd xmm0, xmm6
unpcklpd xmm0, xmm4
movsd xmm4, qword [esp + 0x48]
movdqu xmmword [eax + 0x20], xmm0
unpcklpd xmm6, xmm5
movsd xmm0, xmm3
movdqu xmmword [eax + 0x30], xmm6
add dword [esi], 2
mov eax, dword [esi]
movapd xmm5, xmm4
movsd xmm6, qword [esp + 0x40]
xorpd xmm5, xmm7
cdq
sub eax, edx
unpcklpd xmm0, xmm1
mov edx, dword [esp + 0x1c]
sar eax, 1
add edx, 0x40
shl eax, 6
add eax, dword [esi + 8]
unpcklpd xmm3, xmm2
mov dword [esp + 0x1c], edx
movdqu xmmword [eax], xmm0
movsd xmm0, xmm6
unpcklpd xmm6, xmm5
movdqu xmmword [eax + 0x10], xmm3
unpcklpd xmm0, xmm4
movdqu xmmword [eax + 0x20], xmm0
movdqu xmmword [eax + 0x30], xmm6
add dword [esi], 2
dec dword [esp + 0x20]
jne 0x10015c13
mov eax, dword [esp + 0xc]
test byte [esp + 0x10], 1
je 0x10015dc9
mov ecx, dword [ecx + 8]
sub esp, 0x10
shl eax, 6
add ecx, eax
mov dword [esp + 0x1c], eax
mov eax, esp
movdqu xmm0, xmmword [ecx]
mov ecx, edi
movdqu xmmword [eax], xmm0
lea eax, [esp + 0x60]
push eax
call fcn.10015e40
mov eax, dword [ebp + 0xc]
sub esp, 0x10
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax + 8]
mov eax, esp
movdqu xmm0, xmmword [edx + ecx + 0x20]
mov ecx, edi
movdqu xmmword [eax], xmm0
lea eax, [esp + 0x40]
push eax
call fcn.10015e40
mov eax, dword [esi]
movdqu xmm0, xmmword [esp + 0x50]
cdq
sub eax, edx
sar eax, 1
shl eax, 6
add eax, dword [esi + 8]
movdqu xmmword [eax], xmm0
movdqu xmm0, xmmword [esp + 0x60]
movdqu xmmword [eax + 0x10], xmm0
movdqu xmm0, xmmword [esp + 0x30]
movdqu xmmword [eax + 0x20], xmm0
movdqu xmm0, xmmword [esp + 0x40]
movdqu xmmword [eax + 0x30], xmm0
add dword [esi], 2
mov eax, dword [ebp + 0xc]
movsd xmm0, qword [eax + 0x18]
movsd qword [esp + 0x28], xmm0
movsd xmm0, qword [edi + 8]
addsd xmm0, qword [eax + 0x10]
mulsd xmm0, qword [0x100a36a8]
call fcn.100864c0
mov eax, dword [ebp + 0xc]
movsd qword [esp + 0x10], xmm0
movsd xmm0, qword [edi]
addsd xmm0, qword [eax + 0x10]
mulsd xmm0, qword [0x100a36a8]
call fcn.100864c0
mulsd xmm0, qword [esp + 0x10]
call fcn.100863c0
call fcn.100851b0
mulsd xmm0, qword [0x100a36d8]
mov eax, edi
pop edi
movsd qword [esi + 0x10], xmm0
movsd xmm0, qword [esp + 0x24]
movsd qword [esi + 0x18], xmm0
pop esi
mov esp, ebp
pop ebp
ret 0x10