Function at 0x40aa10
Capabilities:
Encode data using xor

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
sub esp, 0xf8
mov eax, dword [0x5bc324]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 8]
movss xmm5, dword [ebx + 0x14]
movaps xmm0, xmm5
mov dword [ebp - 0xd4], ecx
mulss xmm0, dword [0x59cc0c]
push esi
movss xmm3, dword [eax + 8]
movss xmm4, dword [eax + 0xc]
subss xmm3, dword [eax]
subss xmm4, dword [eax + 4]
mov esi, dword [ebx + 0xc]
lea eax, [ecx + 0x40]
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0xd8], esi
mov dword [ebp - 0xf0], 0
mulss xmm3, dword [0x59cb40]
push edi
mulss xmm4, dword [0x59cb40]
mov dword [ebp - 0xec], 0
movss dword [ebp - 0xdc], xmm3
movss dword [ebp - 0xe8], xmm0
movss dword [ebp - 0xe0], xmm4
mov dword [ebp - 0xe4], 0x3f800000
cmp ecx, eax
je 0x40aaca
movups xmm0, xmmword [ebp - 0xf0]
movups xmmword [eax], xmm0
movss xmm6, dword [0x59cd20]
lea eax, [ebp - 0x48]
push 0x403d40
push 0x4096d0
push 8
movaps xmm2, xmm3
movss dword [ebp - 0xcc], xmm4
xorps xmm2, xmm6
movss dword [ebp - 0xc8], xmm5
movaps xmm1, xmm4
movss dword [ebp - 0xd0], xmm2
xorps xmm1, xmm6
mov dword [ebp - 0xc4], 0x3f800000
movaps xmm0, xmm5
movss dword [ebp - 0xc0], xmm3
xorps xmm0, xmm6
movss dword [ebp - 0xbc], xmm4
push 8
push eax
movss dword [ebp - 0xb8], xmm5
mov dword [ebp - 0xb4], 0x3f800000
movss dword [ebp - 0xb0], xmm3
movss dword [ebp - 0xac], xmm1
movss dword [ebp - 0xa8], xmm5
mov dword [ebp - 0xa4], 0x3f800000
movss dword [ebp - 0xa0], xmm2
movss dword [ebp - 0x9c], xmm1
movss dword [ebp - 0x98], xmm5
mov dword [ebp - 0x94], 0x3f800000
movss dword [ebp - 0x90], xmm2
movss dword [ebp - 0x8c], xmm4
movss dword [ebp - 0x88], xmm0
mov dword [ebp - 0x84], 0x3f800000
movss dword [ebp - 0x80], xmm3
movss dword [ebp - 0x7c], xmm4
movss dword [ebp - 0x78], xmm0
mov dword [ebp - 0x74], 0x3f800000
movss dword [ebp - 0x70], xmm3
movss dword [ebp - 0x6c], xmm1
movss dword [ebp - 0x68], xmm0
mov dword [ebp - 0x64], 0x3f800000
movss dword [ebp - 0x60], xmm2
movss dword [ebp - 0x5c], xmm1
movss dword [ebp - 0x58], xmm0
mov dword [ebp - 0x54], 0x3f800000
call fcn.00524972
movss xmm4, dword [ebx + 0x14]
lea eax, [ebp - 0xd0]
movss xmm5, dword [0x59cd20]
xor edi, edi
mov esi, dword [ebp - 0xd4]
push eax
mov ecx, esi
call fcn.0040a3a0
movss xmm0, dword [eax + 8]
movaps xmm2, xmm4
subss xmm0, dword [esi + 0x48]
subss xmm2, dword [esi + 0x48]
divss xmm2, xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 0x44]
mulss xmm0, xmm2
addss xmm0, dword [esi + 0x44]
xorps xmm0, xmm5
movss dword [ebp + edi*8 - 0x44], xmm0
movss xmm0, dword [eax]
add eax, 0x10
subss xmm0, dword [esi + 0x40]
mulss xmm0, xmm2
addss xmm0, dword [esi + 0x40]
movss dword [ebp + edi*8 - 0x48], xmm0
inc edi
cmp edi, 8
jl 0x40ac02
mov eax, dword [ebx + 0x10]
mov esi, dword [ebp - 0xd8]
cmp eax, 5
ja case.default.0x40ac6f
jmp dword [eax*4 + 0x40afa8]
movups xmm0, xmmword [ebp - 0x48]
movups xmmword [esi], xmm0
movups xmm0, xmmword [ebp - 0x38]
jmp 0x40adbb
movss xmm0, dword [ebp - 0x40]
movss dword [esi], xmm0
movss xmm0, dword [ebp - 0x3c]
movss dword [esi + 4], xmm0
movups xmm0, xmmword [ebp - 0x20]
movups xmmword [esi + 8], xmm0
movss xmm0, dword [ebp - 0x38]
movss dword [esi + 0x18], xmm0
movss xmm0, dword [ebp - 0x34]
movss dword [esi + 0x1c], xmm0
jmp case.default.0x40ac6f
movss xmm0, dword [ebp - 0x28]
movss dword [esi], xmm0
movss xmm0, dword [ebp - 0x24]
movss dword [esi + 4], xmm0
movss xmm0, dword [ebp - 0x48]
movss dword [esi + 8], xmm0
movss xmm0, dword [ebp - 0x44]
movss dword [esi + 0xc], xmm0
movss xmm0, dword [ebp - 0x30]
movss dword [esi + 0x10], xmm0
movss xmm0, dword [ebp - 0x2c]
movss dword [esi + 0x14], xmm0
movss xmm0, dword [ebp - 0x10]
movss dword [esi + 0x18], xmm0
movss xmm0, dword [ebp - 0xc]
movss dword [esi + 0x1c], xmm0
jmp case.default.0x40ac6f
movss xmm0, dword [ebp - 0x20]
movss dword [esi], xmm0
movss xmm0, dword [ebp - 0x1c]
movss dword [esi + 4], xmm0
movss xmm0, dword [ebp - 0x28]
movss dword [esi + 8], xmm0
movss xmm0, dword [ebp - 0x24]
movss dword [esi + 0xc], xmm0
movss xmm0, dword [ebp - 0x10]
movss dword [esi + 0x10], xmm0
movss xmm0, dword [ebp - 0xc]
movss dword [esi + 0x14], xmm0
movss xmm0, dword [ebp - 0x18]
movss dword [esi + 0x18], xmm0
movss xmm0, dword [ebp - 0x14]
movss dword [esi + 0x1c], xmm0
jmp case.default.0x40ac6f
movups xmm0, xmmword [ebp - 0x28]
movups xmmword [esi], xmm0
movss xmm0, dword [ebp - 0x40]
movss dword [esi + 0x10], xmm0
movss xmm0, dword [ebp - 0x3c]
movss dword [esi + 0x14], xmm0
movss xmm0, dword [ebp - 0x48]
movss dword [esi + 0x18], xmm0
movss xmm0, dword [ebp - 0x44]
movss dword [esi + 0x1c], xmm0
jmp case.default.0x40ac6f
movss xmm0, dword [ebp - 0x30]
movss dword [esi], xmm0
movss xmm0, dword [ebp - 0x2c]
movss dword [esi + 4], xmm0
movss xmm0, dword [ebp - 0x38]
movss dword [esi + 8], xmm0
movss xmm0, dword [ebp - 0x34]
movss dword [esi + 0xc], xmm0
movups xmm0, xmmword [ebp - 0x18]
movups xmmword [esi + 0x10], xmm0
movss xmm0, dword [esi]
xorps xmm4, xmm4
movss xmm1, dword [ebp - 0xdc]
movss xmm2, dword [ebp - 0xe0]
addss xmm0, xmm1
movss xmm3, dword [0x59cc60]
movss dword [esi], xmm0
movss xmm0, dword [esi + 4]
addss xmm0, xmm2
movss dword [esi + 4], xmm0
movss xmm0, dword [esi + 8]
addss xmm0, xmm1
movss dword [esi + 8], xmm0
movss xmm0, dword [esi + 0xc]
addss xmm0, xmm2
movss dword [esi + 0xc], xmm0
movss xmm0, dword [esi + 0x10]
addss xmm0, xmm1
movss dword [esi + 0x10], xmm0
movss xmm0, dword [esi + 0x14]
addss xmm0, xmm2
movss dword [esi + 0x14], xmm0
movss xmm0, dword [esi + 0x18]
addss xmm0, xmm1
movss dword [esi + 0x18], xmm0
movss xmm0, dword [esi + 0x1c]
addss xmm0, xmm2
movss xmm2, dword [0x59cb40]
movss dword [esi + 0x1c], xmm0
movss xmm0, dword [esi]
comiss xmm0, xmm4
jb 0x40ae5e
movaps xmm1, xmm2
jmp 0x40ae61
movaps xmm1, xmm3
addss xmm0, xmm1
cvttss2si ecx, xmm0
movss xmm0, dword [esi + 4]
comiss xmm0, xmm4
jb 0x40ae78
movaps xmm1, xmm2
jmp 0x40ae7b
movaps xmm1, xmm3
addss xmm0, xmm1
cvttss2si eax, xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss dword [esi], xmm0
movss dword [esi + 4], xmm1
movss xmm0, dword [esi + 8]
comiss xmm0, xmm4
jb 0x40aea9
movaps xmm1, xmm2
jmp 0x40aeac
movaps xmm1, xmm3
addss xmm0, xmm1
cvttss2si ecx, xmm0
movss xmm0, dword [esi + 0xc]
comiss xmm0, xmm4
jb 0x40aec3
movaps xmm1, xmm2
jmp 0x40aec6
movaps xmm1, xmm3
addss xmm0, xmm1
cvttss2si eax, xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss dword [esi + 8], xmm0
movss dword [esi + 0xc], xmm1
movss xmm0, dword [esi + 0x18]
comiss xmm0, xmm4
jb 0x40aef5
movaps xmm1, xmm2
jmp 0x40aef8
movaps xmm1, xmm3
addss xmm0, xmm1
cvttss2si ecx, xmm0
movss xmm0, dword [esi + 0x1c]
comiss xmm0, xmm4
jb 0x40af0f
movaps xmm1, xmm2
jmp 0x40af12
movaps xmm1, xmm3
addss xmm0, xmm1
cvttss2si eax, xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss dword [esi + 0x18], xmm0
movss dword [esi + 0x1c], xmm1
movss xmm0, dword [esi + 0x10]
comiss xmm0, xmm4
jb 0x40af41
movaps xmm1, xmm2
jmp 0x40af44
movaps xmm1, xmm3
addss xmm0, xmm1
cvttss2si ecx, xmm0
movss xmm0, dword [esi + 0x14]
comiss xmm0, xmm4
jae 0x40af59
movaps xmm2, xmm3
addss xmm0, xmm2
push 0x403d40
push 8
push 8
cvttss2si eax, xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movd xmm1, eax
lea eax, [ebp - 0x48]
cvtdq2ps xmm1, xmm1
push eax
movss dword [esi + 0x10], xmm0
movss dword [esi + 0x14], xmm1
call fcn.00523bc6
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00523a6a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10