Function at 0x40a9f0
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 [0x5c1334]
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 [0x5a0fec]
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 [0x5a0f20]
push edi
mulss xmm4, dword [0x5a0f20]
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 0x40aaaa
movups xmm0, xmmword [ebp - 0xf0]
movups xmmword [eax], xmm0
movss xmm6, dword [0x5a1100]
lea eax, [ebp - 0x48]
push 0x403d20
push 0x4096b0
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.005297cc
movss xmm4, dword [ebx + 0x14]
lea eax, [ebp - 0xd0]
movss xmm5, dword [0x5a1100]
xor edi, edi
mov esi, dword [ebp - 0xd4]
push eax
mov ecx, esi
call fcn.0040a380
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 0x40abe2
mov eax, dword [ebx + 0x10]
mov esi, dword [ebp - 0xd8]
cmp eax, 5
ja case.default.0x40ac4f
jmp dword [eax*4 + 0x40af88]
movups xmm0, xmmword [ebp - 0x48]
movups xmmword [esi], xmm0
movups xmm0, xmmword [ebp - 0x38]
jmp 0x40ad9b
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.0x40ac4f
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.0x40ac4f
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.0x40ac4f
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.0x40ac4f
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 [0x5a1040]
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 [0x5a0f20]
movss dword [esi + 0x1c], xmm0
movss xmm0, dword [esi]
comiss xmm0, xmm4
jb 0x40ae3e
movaps xmm1, xmm2
jmp 0x40ae41
movaps xmm1, xmm3
addss xmm0, xmm1
cvttss2si ecx, xmm0
movss xmm0, dword [esi + 4]
comiss xmm0, xmm4
jb 0x40ae58
movaps xmm1, xmm2
jmp 0x40ae5b
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 0x40ae89
movaps xmm1, xmm2
jmp 0x40ae8c
movaps xmm1, xmm3
addss xmm0, xmm1
cvttss2si ecx, xmm0
movss xmm0, dword [esi + 0xc]
comiss xmm0, xmm4
jb 0x40aea3
movaps xmm1, xmm2
jmp 0x40aea6
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 0x40aed5
movaps xmm1, xmm2
jmp 0x40aed8
movaps xmm1, xmm3
addss xmm0, xmm1
cvttss2si ecx, xmm0
movss xmm0, dword [esi + 0x1c]
comiss xmm0, xmm4
jb 0x40aeef
movaps xmm1, xmm2
jmp 0x40aef2
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 0x40af21
movaps xmm1, xmm2
jmp 0x40af24
movaps xmm1, xmm3
addss xmm0, xmm1
cvttss2si ecx, xmm0
movss xmm0, dword [esi + 0x14]
comiss xmm0, xmm4
jae 0x40af39
movaps xmm2, xmm3
addss xmm0, xmm2
push 0x403d20
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.00528966
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00528802
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10