Function at 0x40ba60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xc8
mov eax, dword [0x5c1334]
xor eax, esp
mov dword [esp + 0xc4], eax
mov eax, dword [ebp + 8]
movsd xmm0, qword [0x5a0f78]
push esi
mov esi, dword [ebp + 0xc]
movss xmm1, dword [eax + 8]
subss xmm1, dword [eax]
push edi
mov edi, ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edi
mulss xmm1, dword [0x5a0f20]
movss dword [esp + 0x14], xmm1
movss xmm1, dword [eax + 0xc]
subss xmm1, dword [eax + 4]
mulss xmm1, dword [0x5a0f20]
movss dword [esp + 0xc], xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_tan_precise
xorps xmm4, xmm4
cvtsd2ss xmm4, xmm0
movsd xmm0, qword [0x5a0f98]
mulss xmm4, dword [esp + 0xc]
movss dword [esp + 0x10], xmm4
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
movss xmm3, dword [esp + 0x10]
lea eax, [edi + 0x40]
movss xmm2, dword [esp + 0xc]
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0
xorps xmm5, xmm5
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 0x3f800000
cvtsd2ss xmm5, xmm0
movaps xmm0, xmm3
mulss xmm0, dword [0x5a0fec]
mulss xmm5, xmm2
movss dword [esp + 0x28], xmm0
subss xmm5, xmm3
cmp ecx, eax
je 0x40bb3f
movups xmm0, xmmword [esp + 0x20]
movups xmmword [eax], xmm0
movss xmm4, dword [esp + 0x14]
lea eax, [esp + 0x30]
movss xmm6, dword [0x5a1100]
movaps xmm1, xmm4
push 0x403d20
push 0x4096b0
push 6
xorps xmm1, xmm6
movss dword [esp + 0x70], xmm2
movaps xmm0, xmm2
movss dword [esp + 0x6c], xmm1
xorps xmm0, xmm6
movss dword [esp + 0x74], xmm3
xorps xmm5, xmm6
mov dword [esp + 0x78], 0x3f800000
push 8
push eax
movss dword [esp + 0x84], xmm4
movss dword [esp + 0x88], xmm2
movss dword [esp + 0x8c], xmm3
mov dword [esp + 0x90], 0x3f800000
movss dword [esp + 0x94], xmm4
movss dword [esp + 0x98], xmm0
movss dword [esp + 0x9c], xmm3
mov dword [esp + 0xa0], 0x3f800000
movss dword [esp + 0xa4], xmm1
movss dword [esp + 0xa8], xmm0
movss dword [esp + 0xac], xmm3
mov dword [esp + 0xb0], 0x3f800000
movss dword [esp + 0xb4], xmm1
mov dword [esp + 0xb8], 0
movss dword [esp + 0xbc], xmm5
mov dword [esp + 0xc0], 0x3f800000
movss dword [esp + 0xc4], xmm4
mov dword [esp + 0xc8], 0
movss dword [esp + 0xcc], xmm5
mov dword [esp + 0xd0], 0x3f800000
call fcn.005297cc
movss xmm4, dword [esp + 0x10]
lea eax, [esp + 0x60]
movss xmm5, dword [0x5a1100]
xor edi, edi
mov esi, dword [esp + 0x18]
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 [esp + edi*8 + 0x34], xmm0
movss xmm0, dword [eax]
add eax, 0x10
subss xmm0, dword [esi + 0x40]
mulss xmm0, xmm2
addss xmm0, dword [esi + 0x40]
movss dword [esp + edi*8 + 0x30], xmm0
inc edi
cmp edi, 6
jl 0x40bc68
mov eax, dword [ebp + 0x10]
mov esi, dword [esp + 0x1c]
sub eax, 0
je 0x40bd70
sub eax, 1
je 0x40bd3a
sub eax, 1
jne 0x40bd81
movss xmm0, dword [esp + 0x48]
movss dword [esi], xmm0
movss xmm0, dword [esp + 0x4c]
movss dword [esi + 4], xmm0
movss xmm0, dword [esp + 0x40]
movss dword [esi + 8], xmm0
movss xmm0, dword [esp + 0x44]
movss dword [esi + 0xc], xmm0
movss xmm0, dword [esp + 0x58]
movss dword [esi + 0x10], xmm0
movss xmm0, dword [esp + 0x5c]
movss dword [esi + 0x14], xmm0
movss xmm0, dword [esp + 0x50]
movss dword [esi + 0x18], xmm0
movss xmm0, dword [esp + 0x54]
movss dword [esi + 0x1c], xmm0
jmp 0x40bd81
movups xmm0, xmmword [esp + 0x50]
movups xmmword [esi], xmm0
movss xmm0, dword [esp + 0x38]
movss dword [esi + 0x10], xmm0
movss xmm0, dword [esp + 0x3c]
movss dword [esi + 0x14], xmm0
movss xmm0, dword [esp + 0x30]
movss dword [esi + 0x18], xmm0
movss xmm0, dword [esp + 0x34]
movss dword [esi + 0x1c], xmm0
jmp 0x40bd81
movups xmm0, xmmword [esp + 0x30]
movups xmmword [esi], xmm0
movups xmm0, xmmword [esp + 0x40]
movups xmmword [esi + 0x10], xmm0
movss xmm0, dword [esi]
xorps xmm4, xmm4
movss xmm2, dword [esp + 0x14]
movss xmm1, dword [esp + 0xc]
addss xmm0, xmm2
movss xmm3, dword [0x5a1040]
movss dword [esi], xmm0
movss xmm0, dword [esi + 4]
addss xmm0, xmm1
movss dword [esi + 4], xmm0
movss xmm0, dword [esi + 8]
addss xmm0, xmm2
movss dword [esi + 8], xmm0
movss xmm0, dword [esi + 0xc]
addss xmm0, xmm1
movss dword [esi + 0xc], xmm0
movss xmm0, dword [esi + 0x10]
addss xmm0, xmm2
movss dword [esi + 0x10], xmm0
movss xmm0, dword [esi + 0x14]
addss xmm0, xmm1
movss dword [esi + 0x14], xmm0
movss xmm0, dword [esi + 0x18]
addss xmm0, xmm2
movss xmm2, dword [0x5a0f20]
movss dword [esi + 0x18], xmm0
movss xmm0, dword [esi + 0x1c]
addss xmm0, xmm1
movss dword [esi + 0x1c], xmm0
movss xmm1, dword [esi]
comiss xmm1, xmm4
jb 0x40be1c
movaps xmm0, xmm2
jmp 0x40be1f
movaps xmm0, xmm3
movss xmm5, dword [esi + 4]
addss xmm0, xmm1
comiss xmm5, xmm4
cvttss2si eax, xmm0
jb 0x40be36
movaps xmm0, xmm2
jmp 0x40be39
movaps xmm0, xmm3
addss xmm0, xmm5
movd xmm1, eax
cvtdq2ps xmm1, xmm1
cvttss2si eax, xmm0
movss dword [esi], xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esi + 4], xmm0
movss xmm1, dword [esi + 8]
comiss xmm1, xmm4
jb 0x40be67
movaps xmm0, xmm2
jmp 0x40be6a
movaps xmm0, xmm3
movss xmm5, dword [esi + 0xc]
addss xmm0, xmm1
comiss xmm5, xmm4
cvttss2si eax, xmm0
jb 0x40be81
movaps xmm0, xmm2
jmp 0x40be84
movaps xmm0, xmm3
addss xmm0, xmm5
movd xmm1, eax
cvtdq2ps xmm1, xmm1
cvttss2si eax, xmm0
movss dword [esi + 8], xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esi + 0xc], xmm0
movss xmm0, dword [esi + 0x18]
comiss xmm0, xmm4
jb 0x40beb3
movaps xmm1, xmm2
jmp 0x40beb6
movaps xmm1, xmm3
addss xmm0, xmm1
cvttss2si eax, xmm0
movss xmm0, dword [esi + 0x1c]
comiss xmm0, xmm4
jb 0x40becd
movaps xmm5, xmm2
jmp 0x40bed0
movaps xmm5, xmm3
addss xmm0, xmm5
movd xmm1, eax
cvtdq2ps xmm1, xmm1
cvttss2si eax, xmm0
movss dword [esi + 0x18], xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esi + 0x1c], xmm0
movss xmm0, dword [esi + 0x10]
comiss xmm0, xmm4
jb 0x40beff
movaps xmm1, xmm2
jmp 0x40bf02
movaps xmm1, xmm3
addss xmm0, xmm1
cvttss2si eax, xmm0
movss xmm0, dword [esi + 0x14]
comiss xmm0, xmm4
jae 0x40bf17
movaps xmm2, xmm3
addss xmm0, xmm2
movd xmm1, eax
push 0x403d20
cvtdq2ps xmm1, xmm1
push 6
push 8
cvttss2si eax, xmm0
movss dword [esi + 0x10], xmm1
movd xmm0, eax
lea eax, [esp + 0x3c]
cvtdq2ps xmm0, xmm0
push eax
movss dword [esi + 0x14], xmm0
call fcn.00528966
mov ecx, dword [esp + 0xcc]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.00528802
mov esp, ebp
pop ebp
ret 0xc