Function at 0x1800494a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x18006c058]
xor edi, edi
mov rbx, rcx
test rax, rax
je 0x1800494c4
mov rax, qword [rax + 0x98]
jmp 0x1800494c7
mov rax, rdi
cmp dword [rax + 0x28], edi
jne 0x1800494d1
call fcn.180006010
call fcn.180006d70
call fcn.18000d800
cmp byte [rbx], dil
je 0x1800497da
mov rax, qword [0x18006c058]
xorps xmm1, xmm1
movss xmm0, dword [rax + 0x18]
addss xmm0, xmm0
mulss xmm0, dword [0x1800617c4]
addss xmm0, dword [0x18006c544]
comiss xmm1, xmm0
ja 0x180049518
movss xmm1, dword [0x1800617b0]
minss xmm1, xmm0
comiss xmm1, dword [0x180061714]
movss dword [0x18006c544], xmm1
jbe 0x1800497af
call fcn.18000c290
xor ecx, ecx
call fcn.1800264e0
mov rax, qword [0x18006c058]
xor ecx, ecx
movss xmm1, dword [0x18006c544]
mov qword [rax + 0x3834], 0x3f800000
mov dword [rax + 0x383c], 0x40400000
mov dword [rax + 0x380c], edi
mov dword [rax + 0x3870], 0x40400000
mov dword [rax + 0x386c], 0x40a00000
or dword [rax + 0x3fe0], 2
mov dword [rax + 0x4000], 0x44518000
mov dword [rax + 0x4004], 0x4405c000
mov dword [rax + 0x3fe8], 1
call fcn.180009ee0
cmp dword [0x18006b428], 2
mov r8d, edi
mov eax, dword [str.RV__6C]
movsd xmm0, qword [str.szvu__]
mov dword [rsp + 0x28], eax
movzx eax, word [0x1800602cc]
mov word [rsp + 0x2c], ax
movzx eax, byte [0x1800602ce]
mov byte [rsp + 0x2e], al
movsd qword [rsp + 0x20], xmm0
jl 0x1800496c8
movdqa xmm2, xmmword [0x180061a90]
mov r8d, 8
movdqa xmm4, xmmword [0x180061da0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180061ac0]
psubd xmm2, xmm0
movd xmm0, dword [str.szvu__]
andps xmm2, xmmword [0x180061ad0]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x180061af0]
xorps xmm2, xmm0
movd dword [rsp + 0x20], xmm2
movdqa xmm2, xmmword [0x180061aa0]
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180061ac0]
psubd xmm2, xmm0
movd xmm0, dword [rsp + 0x24]
andps xmm2, xmmword [0x180061ad0]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x180061af0]
xorps xmm2, xmm0
movd dword [rsp + 0x24], xmm2
movsxd rax, r8d
lea r9, [rsp + 0x20]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x4bda12f7
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x36
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x35
xor byte [r9 - 1], al
cmp r8d, 0xf
jl 0x1800496e0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x1ab
call fcn.1800135f0
call fcn.180049080
call fcn.180048220
call fcn.180048c90
call fcn.180047ef0
call fcn.180015810
mov rcx, qword [0x18006c058]
movsxd rax, dword [rcx + 0x4060]
mov r8, qword [rcx + 0x4068]
lea rdx, [rax + rax*2]
movsxd rax, dword [r8 + rdx*4 - 0xc]
lea r10, [rax + rax*2]
lea rax, [0x180059c20]
cmp dword [rax + r10*4], 8
mov r9d, dword [rax + r10*4 + 8]
jne 0x1800497a9
mov eax, dword [rax + r10*4 + 4]
cmp eax, 1
jne 0x18004978a
mov eax, dword [r8 + rdx*4 - 8]
mov dword [r9 + rcx + 0x37f8], eax
jmp 0x1800497a9
cmp eax, 2
jne 0x1800497a9
mov eax, dword [r8 + rdx*4 - 8]
mov dword [r9 + rcx + 0x37f8], eax
mov eax, dword [r8 + rdx*4 - 4]
mov dword [r9 + rcx + 0x37fc], eax
dec dword [rcx + 0x4060]
call fcn.18000fe20
call fcn.1800101c0
mov rax, qword [0x18006c058]
mov rcx, qword [rax + 0x40e0]
mov rcx, qword [rcx]
add rcx, 0x48
cmp byte [rcx], dil
cmove rcx, rdi
call fcn.180005890
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret