Function at 0x592690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x28], edi
mov eax, dword [edi]
mov ecx, eax
sar ecx, 1
mov dword [ebp - 8], ecx
mov ecx, eax
sar ecx, 2
mov dword [ebp - 0x20], ecx
mov ecx, eax
sar ecx, 3
shl eax, 2
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x2c], eax
call fcn.00580f90
mov ecx, dword [ebp - 8]
mov esi, esp
lea eax, [ecx*4]
mov dword [ebp - 0x24], eax
add eax, esi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
add eax, ecx
mov ecx, dword [ebp - 0x1c]
lea edx, [ecx + eax*4]
xor ecx, ecx
lea eax, [edx + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 8]
mov edi, dword [ebp - 0xc]
add eax, dword [ebp - 0x24]
lea esi, [edi + 4]
mov dword [ebp - 0x18], esi
cmp dword [ebp - 0x14], ecx
jle 0x592752
mov esi, dword [ebp - 0x10]
movss xmm2, dword [esi + 8]
sub edx, 0x10
sub eax, 8
movss xmm3, dword [edx + 8]
addss xmm3, dword [esi]
addss xmm2, dword [edx]
add esi, 0x10
movaps xmm0, xmm3
mulss xmm0, dword [eax]
movaps xmm1, xmm2
mulss xmm1, dword [eax + 4]
addss xmm1, xmm0
movss dword [edi + ecx*4], xmm1
mulss xmm2, dword [eax]
mulss xmm3, dword [eax + 4]
subss xmm2, xmm3
movss dword [edi + ecx*4 + 4], xmm2
add ecx, 2
cmp ecx, dword [ebp - 0x14]
jl 0x592702
jmp 0x592757
mov edi, esi
mov dword [ebp - 0x18], edi
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x10], esi
add edi, 4
mov esi, dword [ebp - 0x14]
sub dword [ebp - 0x10], esi
cmp ecx, dword [ebp - 0x10]
jge 0x5927c4
mov esi, dword [ebp - 0xc]
movss xmm3, dword [edx - 8]
sub edx, 0x10
subss xmm3, dword [edi]
sub eax, 8
movss xmm2, dword [edx]
subss xmm2, dword [edi + 8]
movaps xmm0, xmm3
add edi, 0x10
mulss xmm0, dword [eax]
movaps xmm1, xmm2
mulss xmm1, dword [eax + 4]
addss xmm1, xmm0
movss dword [esi + ecx*4], xmm1
mulss xmm2, dword [eax]
mov esi, dword [ebp - 0x18]
mulss xmm3, dword [eax + 4]
subss xmm2, xmm3
movss dword [esi + ecx*4], xmm2
add ecx, 2
mov esi, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x10]
jl 0x592771
mov edx, dword [ebp - 0x1c]
mov esi, esp
add edx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 8]
jge 0x592836
movss xmm4, dword [0x5c7710]
mov esi, dword [ebp - 0xc]
nop dword [eax]
movss xmm3, dword [edx - 8]
sub edx, 0x10
xorps xmm3, xmm4
sub eax, 8
subss xmm3, dword [edi]
movss xmm2, dword [edx]
xorps xmm2, xmm4
subss xmm2, dword [edi + 8]
movaps xmm0, xmm3
add edi, 0x10
mulss xmm0, dword [eax]
movaps xmm1, xmm2
mulss xmm1, dword [eax + 4]
addss xmm1, xmm0
movss dword [esi + ecx*4], xmm1
mulss xmm2, dword [eax]
mulss xmm3, dword [eax + 4]
subss xmm2, xmm3
movss dword [esi + ecx*4 + 4], xmm2
add ecx, 2
cmp ecx, dword [ebp - 8]
jl 0x5927e0
mov esi, esp
push dword [ebp - 8]
mov edi, dword [ebp - 0x28]
mov ecx, edi
mov edx, dword [ebp - 0xc]
call fcn.00591550
add esp, 4
mov edx, esi
mov ecx, edi
call fcn.005913a0
mov eax, dword [edi + 8]
xor ecx, ecx
mov edx, dword [ebp - 0x24]
add eax, edx
add edx, dword [ebp + 8]
cmp dword [ebp - 0x20], ecx
jle 0x5928b8
movss xmm1, dword [eax]
sub edx, 4
mulss xmm1, dword [esi]
movss xmm0, dword [eax + 4]
mulss xmm0, dword [esi + 4]
addss xmm1, xmm0
mulss xmm1, dword [edi + 0x10]
mov edi, dword [ebp + 8]
movss dword [edi + ecx*4], xmm1
inc ecx
movss xmm1, dword [eax + 4]
movss xmm0, dword [eax]
add eax, 8
mulss xmm1, dword [esi]
mov edi, dword [ebp - 0x28]
mulss xmm0, dword [esi + 4]
add esi, 8
subss xmm1, xmm0
mulss xmm1, dword [edi + 0x10]
movss dword [edx], xmm1
cmp ecx, dword [ebp - 0x20]
jl 0x592864
lea esp, [ebp - 0x34]
pop edi
pop esi
mov esp, ebp
pop ebp
ret