Function at 0x46f6f0
Capabilities:
Encode data using xor

Disassembly:
push ecx
movss xmm0, dword [0x4c8bb0]
push ebx
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx]
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, eax
sar eax, 2
sar esi, 1
lea edx, [eax + esi]
lea edx, [ebp + edx*4]
lea ebp, [eax*4]
mov eax, dword [ebx + 8]
push edi
mov edi, dword [esp + 0x1c]
lea ecx, [edi + esi*4 - 0x1c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebp
add eax, ebp
movss xmm1, dword [ecx + 8]
movss xmm2, dword [eax + 0xc]
movss xmm3, dword [eax + 8]
xorps xmm1, xmm0
cvtps2pd xmm1, xmm1
cvtps2pd xmm2, xmm2
mulsd xmm1, xmm2
movss xmm2, dword [ecx]
cvtps2pd xmm2, xmm2
cvtps2pd xmm3, xmm3
mulsd xmm2, xmm3
subsd xmm1, xmm2
cvtpd2ps xmm1, xmm1
movss dword [edx - 0x10], xmm1
movss xmm1, dword [ecx]
movss xmm2, dword [eax + 0xc]
movss xmm3, dword [ecx + 8]
cvtps2pd xmm1, xmm1
cvtps2pd xmm2, xmm2
mulsd xmm1, xmm2
movss xmm2, dword [eax + 8]
sub edx, 0x10
cvtps2pd xmm2, xmm2
cvtps2pd xmm3, xmm3
mulsd xmm2, xmm3
subsd xmm1, xmm2
cvtpd2ps xmm1, xmm1
movss dword [edx + 4], xmm1
movss xmm1, dword [ecx + 0x18]
movss xmm2, dword [eax + 4]
movss xmm3, dword [ecx + 0x10]
xorps xmm1, xmm0
cvtps2pd xmm2, xmm2
cvtps2pd xmm1, xmm1
mulsd xmm1, xmm2
movss xmm2, dword [eax]
cvtps2pd xmm2, xmm2
cvtps2pd xmm3, xmm3
mulsd xmm2, xmm3
subsd xmm1, xmm2
cvtpd2ps xmm1, xmm1
movss dword [edx + 8], xmm1
movss xmm1, dword [eax + 4]
movss xmm2, dword [ecx + 0x10]
movss xmm3, dword [eax]
cvtps2pd xmm2, xmm2
cvtps2pd xmm1, xmm1
mulsd xmm1, xmm2
movss xmm2, dword [ecx + 0x18]
cvtps2pd xmm2, xmm2
cvtps2pd xmm3, xmm3
mulsd xmm2, xmm3
sub ecx, 0x20
subsd xmm1, xmm2
add eax, 0x10
cvtpd2ps xmm1, xmm1
movss dword [edx + 0xc], xmm1
cmp ecx, edi
jae 0x46f731
mov eax, dword [ebx + 8]
mov edx, dword [esp + 0x18]
lea ecx, [edi + esi*4 - 0x20]
add eax, ebp
jmp 0x46f830
movss xmm1, dword [ecx + 0x18]
movss xmm0, dword [eax - 8]
movss xmm2, dword [ecx + 0x10]
cvtps2pd xmm1, xmm1
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm1
movss xmm1, dword [eax - 4]
cvtps2pd xmm1, xmm1
sub eax, 0x10
cvtps2pd xmm2, xmm2
mulsd xmm1, xmm2
addsd xmm0, xmm1
cvtpd2ps xmm0, xmm0
movss dword [edx], xmm0
movss xmm1, dword [ecx + 0x10]
movss xmm0, dword [eax + 8]
movss xmm2, dword [eax + 0xc]
cvtps2pd xmm1, xmm1
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm1
movss xmm1, dword [ecx + 0x18]
cvtps2pd xmm1, xmm1
cvtps2pd xmm2, xmm2
mulsd xmm1, xmm2
subsd xmm0, xmm1
cvtpd2ps xmm0, xmm0
movss dword [edx + 4], xmm0
movss xmm0, dword [ecx]
movss xmm1, dword [eax + 4]
movss xmm2, dword [ecx + 8]
cvtps2pd xmm1, xmm1
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm1
movss xmm1, dword [eax]
cvtps2pd xmm1, xmm1
cvtps2pd xmm2, xmm2
mulsd xmm1, xmm2
addsd xmm0, xmm1
cvtpd2ps xmm0, xmm0
movss dword [edx + 8], xmm0
movss xmm0, dword [ecx]
movss xmm1, dword [eax]
movss xmm2, dword [ecx + 8]
cvtps2pd xmm1, xmm1
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm1
movss xmm1, dword [eax + 4]
cvtps2pd xmm1, xmm1
cvtps2pd xmm2, xmm2
mulsd xmm1, xmm2
subsd xmm0, xmm1
cvtpd2ps xmm0, xmm0
movss dword [edx + 0xc], xmm0
sub ecx, 0x20
add edx, 0x10
cmp ecx, edi
jae 0x46f830
mov edi, dword [esp + 0x20]
lea ebp, [esi*4]
lea eax, [edi + ebp]
push esi
mov dword [esp + 0x14], eax
push eax
mov eax, ebx
call fcn.0046dd90
add esp, 8
mov ecx, edi
mov eax, ebx
call fcn.0046f450
mov edx, dword [esp + 0x18]
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x20]
movsd xmm0, qword [0x4c8ba0]
mov edi, edx
add eax, ebp
add ecx, 0xc
add edx, 8
jmp 0x46f960
movss xmm1, dword [eax + 4]
movss xmm2, dword [ecx - 0xc]
movss xmm3, dword [eax]
cvtps2pd xmm1, xmm1
cvtps2pd xmm2, xmm2
mulsd xmm1, xmm2
movss xmm2, dword [ecx - 8]
cvtps2pd xmm2, xmm2
cvtps2pd xmm3, xmm3
mulsd xmm2, xmm3
subsd xmm1, xmm2
cvtpd2ps xmm1, xmm1
movss dword [edx - 0xc], xmm1
movss xmm1, dword [ecx - 0xc]
movss xmm2, dword [eax]
movss xmm3, dword [eax + 4]
cvtps2pd xmm1, xmm1
cvtps2pd xmm2, xmm2
mulsd xmm1, xmm2
movss xmm2, dword [ecx - 8]
cvtps2pd xmm2, xmm2
sub edx, 0x10
cvtps2pd xmm3, xmm3
mulsd xmm2, xmm3
addsd xmm1, xmm2
xorpd xmm1, xmm0
cvtpd2ps xmm1, xmm1
movss dword [edi], xmm1
movss xmm1, dword [ecx - 4]
movss xmm2, dword [eax + 0xc]
movss xmm3, dword [ecx]
cvtps2pd xmm1, xmm1
cvtps2pd xmm2, xmm2
mulsd xmm1, xmm2
movss xmm2, dword [eax + 8]
cvtps2pd xmm2, xmm2
cvtps2pd xmm3, xmm3
mulsd xmm2, xmm3
subsd xmm1, xmm2
cvtpd2ps xmm1, xmm1
movss dword [edx], xmm1
movss xmm1, dword [ecx - 4]
movss xmm2, dword [eax + 8]
movss xmm3, dword [ecx]
cvtps2pd xmm1, xmm1
cvtps2pd xmm2, xmm2
mulsd xmm1, xmm2
movss xmm2, dword [eax + 0xc]
cvtps2pd xmm2, xmm2
cvtps2pd xmm3, xmm3
mulsd xmm2, xmm3
addsd xmm1, xmm2
xorpd xmm1, xmm0
cvtpd2ps xmm1, xmm1
movss dword [edi + 4], xmm1
movss xmm1, dword [ecx + 4]
movss xmm2, dword [eax + 0x14]
movss xmm3, dword [eax + 0x10]
cvtps2pd xmm1, xmm1
cvtps2pd xmm2, xmm2
mulsd xmm1, xmm2
movss xmm2, dword [ecx + 8]
cvtps2pd xmm2, xmm2
cvtps2pd xmm3, xmm3
mulsd xmm2, xmm3
subsd xmm1, xmm2
cvtpd2ps xmm1, xmm1
movss dword [edx - 4], xmm1
movss xmm1, dword [ecx + 8]
movss xmm2, dword [eax + 0x14]
movss xmm3, dword [eax + 0x10]
cvtps2pd xmm1, xmm1
cvtps2pd xmm2, xmm2
mulsd xmm1, xmm2
movss xmm2, dword [ecx + 4]
cvtps2pd xmm2, xmm2
cvtps2pd xmm3, xmm3
mulsd xmm2, xmm3
addsd xmm1, xmm2
xorpd xmm1, xmm0
cvtpd2ps xmm1, xmm1
movss dword [edi + 8], xmm1
movss xmm1, dword [ecx + 0xc]
movss xmm2, dword [eax + 0x1c]
movss xmm3, dword [eax + 0x18]
cvtps2pd xmm1, xmm1
cvtps2pd xmm2, xmm2
mulsd xmm1, xmm2
movss xmm2, dword [ecx + 0x10]
cvtps2pd xmm2, xmm2
cvtps2pd xmm3, xmm3
mulsd xmm2, xmm3
subsd xmm1, xmm2
cvtpd2ps xmm1, xmm1
movss dword [edx - 8], xmm1
movss xmm1, dword [ecx + 0x10]
movss xmm2, dword [eax + 0x1c]
movss xmm3, dword [eax + 0x18]
cvtps2pd xmm1, xmm1
cvtps2pd xmm2, xmm2
mulsd xmm1, xmm2
movss xmm2, dword [ecx + 0xc]
cvtps2pd xmm2, xmm2
cvtps2pd xmm3, xmm3
mulsd xmm2, xmm3
addsd xmm1, xmm2
add ecx, 0x20
xorpd xmm1, xmm0
cvtpd2ps xmm1, xmm1
movss dword [edi + 0xc], xmm1
lea ebx, [edx - 8]
lea ebp, [ecx - 0xc]
add edi, 0x10
add eax, 0x20
cmp ebp, ebx
jb 0x46f960
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
movss xmm1, dword [0x4c8bb0]
lea ecx, [ecx + edx + 8]
mov edx, 2
mov eax, edi
sub edx, esi
lea edx, [eax + edx*4]
movss xmm0, dword [eax - 4]
movss dword [edx - 0xc], xmm0
sub eax, 0x10
sub edx, 0x10
xorps xmm0, xmm1
movss dword [ecx - 8], xmm0
movss xmm0, dword [eax + 8]
movss dword [edx], xmm0
xorps xmm0, xmm1
movss dword [ecx - 4], xmm0
movss xmm0, dword [eax + 4]
movss dword [edx - 4], xmm0
xorps xmm0, xmm1
movss dword [ecx], xmm0
movss xmm0, dword [eax]
movss dword [edx - 8], xmm0
xorps xmm0, xmm1
movss dword [ecx + 4], xmm0
add ecx, 0x10
lea esi, [ecx - 8]
cmp esi, eax
jb 0x46fb50
mov edx, dword [esp + 0x10]
mov eax, edi
lea ecx, [edi + 8]
pop edi
pop esi
pop ebp
pop ebx
fld dword [ecx + 4]
sub eax, 0x10
fstp dword [eax]
add ecx, 0x10
fld dword [ecx - 0x10]
fstp dword [eax + 4]
fld dword [ecx - 0x14]
fstp dword [eax + 8]
fld dword [ecx - 0x18]
fstp dword [eax + 0xc]
cmp eax, edx
ja 0x46fbb2
pop ecx
ret