Function at 0x1800cfe50
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x38]
sub rsp, 0x120
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x180149040]
xor rax, rsp
mov qword [rbp + 8], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
mov r8d, 0xe
lea rdx, str.LevelStreaming
lea rcx, [rbp - 0x70]
call fcn.180016150
nop
xor r9d, r9d
lea rcx, [rbp - 0x70]
call fcn.180063580
mov r14, rax
lea rcx, [rbp - 0x70]
call fcn.18002d3d0
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x80], xmm1
mov r8d, socket
lea rdx, str.LevelStreamingKismet
lea rcx, [rsp + 0x70]
call fcn.180016150
nop
xor r9d, r9d
lea rcx, [rsp + 0x70]
call fcn.180063580
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov r8d, 0x11
lea rdx, str.SetShouldBeLoaded
lea rcx, [rsp + 0x50]
call fcn.180016150
nop
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.180063000
mov rbx, rax
lea rcx, [rsp + 0x50]
call fcn.18002d3d0
nop
lea rcx, [rsp + 0x70]
call fcn.18002d3d0
test rbx, rbx
jne 0x1800d0019
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
lea r8d, [rbx + 0x15]
lea rdx, str.LevelStreamingDynamic
lea rcx, [rbp - 0x30]
call fcn.180016150
nop
xor r9d, r9d
lea rcx, [rbp - 0x30]
call fcn.180063580
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov r8d, 0x11
lea rdx, str.SetShouldBeLoaded
lea rcx, [rsp + 0x50]
call fcn.180016150
nop
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.180063000
mov rbx, rax
lea rcx, [rsp + 0x50]
call fcn.18002d3d0
nop
lea rcx, [rbp - 0x30]
call fcn.18002d3d0
test rbx, rbx
jne 0x1800d0019
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
lea r8d, [rbx + 0x11]
lea rdx, str.SetShouldBeLoaded
lea rcx, [rsp + 0x50]
call fcn.180016150
nop
lea rdx, [rsp + 0x50]
xor ecx, ecx
call fcn.180063000
nop
lea rcx, [rsp + 0x50]
call fcn.18002d3d0
xor edi, edi
lea r15, [0x18014bfd8]
lea esi, [rdi + 1]
movsd xmm0, qword [0x18014adb8]
movsd xmm6, qword [0x18012eb08]
mov eax, dword [0x18014adc0]
comisd xmm0, xmm6
jb 0x1800d0253
cmp eax, 0x17
jge 0x1800d0253
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x80], xmm1
lea r8d, [rdi + 0x12]
lea rdx, str.SetShouldBeVisible
lea rcx, [rsp + 0x70]
call fcn.180016150
nop
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.180063000
mov rcx, rax
mov ebx, edi
test rax, rax
jne 0x1800d00f9
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
xor r8d, r8d
lea rdx, [0x18011f470]
lea rcx, [rsp + 0x50]
call fcn.180016150
nop
cmp byte [0x18014add8], dil
je 0x1800d00ed
mov byte [rsp + 0x40], dil
mov dword [rsp + 0x48], 2
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [0x18014bfc8]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x48]
call fcn.180028480
nop
lea rcx, [rsp + 0x50]
call fcn.18002d3d0
jmp 0x1800d0104
movsxd rax, dword [0x1801493ac]
mov rbx, qword [rax + rcx]
mov qword [rbp], rbx
lea rcx, [rsp + 0x70]
call fcn.18002d3d0
mov dword [rsp + 0x48], 0x20c48348
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rdi
mov edx, 4
lea rcx, [rsp + 0x70]
call fcn.18000f200
mov rcx, qword [rsp + 0x70]
mov eax, dword [rsp + 0x48]
mov dword [rcx], eax
lea rax, [rcx + 4]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x28], 0x800
mov dword [rsp + 0x20], edi
mov r9b, 1
lea r8, [rsp + 0x70]
lea rdx, [rbp - 0x10]
lea rcx, [rbp]
call fcn.1800acbf0
mov rbx, rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.18000f200
mov rcx, qword [rsp + 0x50]
mov byte [rcx], 0xe8
inc rcx
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x28], 0x800
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.1800acbf0
mov rcx, rax
mov rbx, qword [rax]
test rbx, rbx
je 0x1800d01d2
movsxd rax, dword [rbx + 1]
add rbx, 5
add rbx, rax
mov qword [rcx], rbx
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
xor r8d, r8d
lea rdx, [0x18011f470]
lea rcx, [rsp + 0x50]
call fcn.180016150
nop
cmp byte [0x18014add8], 0
je 0x1800d0234
mov byte [rsp + 0x40], 0
mov dword [rsp + 0x48], 2
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [0x18014bfc8]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x48]
call fcn.180028480
nop
lea rcx, [rsp + 0x50]
call fcn.18002d3d0
mov qword [0x18014c980], rbx
movsd xmm0, qword [0x18014adb8]
mov eax, dword [0x18014adc0]
comisd xmm0, xmmword [0x18012ec00]
jb 0x1800d0633
cmp eax, 0x17
jge 0x1800d088e
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov r8d, 0x1f
lea rdx, str.SetIsRequestingUnloadAndRemoval
lea rcx, [rsp + 0x50]
call fcn.180016150
nop
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.180063000
mov rcx, rax
mov rbx, rdi
test rax, rax
jne 0x1800d0314
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
xor r8d, r8d
lea rdx, [0x18011f470]
lea rcx, [rbp - 0x70]
call fcn.180016150
nop
cmp byte [0x18014add8], 0
je 0x1800d0309
mov byte [rsp + 0x40], 0
mov dword [rsp + 0x48], 2
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [0x18014bfc8]
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x48]
call fcn.180028480
nop
lea rcx, [rbp - 0x70]
call fcn.18002d3d0
jmp 0x1800d031f
movsxd rax, dword [0x1801493ac]
mov rbx, qword [rax + rcx]
mov qword [rbp], rbx
lea rcx, [rsp + 0x50]
call fcn.18002d3d0
mov dword [rsp + 0x48], 0x20c48348
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
mov edx, 4
lea rcx, [rsp + 0x50]
call fcn.18000f200
mov rcx, qword [rsp + 0x50]
mov eax, dword [rsp + 0x48]
mov dword [rcx], eax
lea rax, [rcx + 4]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x28], 0x800
mov dword [rsp + 0x20], edi
mov r9b, 1
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x30]
lea rcx, [rbp]
call fcn.1800acbf0
mov rbx, rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rdi
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.18000f200
mov rcx, qword [rsp + 0x70]
mov byte [rcx], 0xe8
inc rcx
mov qword [rsp + 0x78], rcx
mov dword [rsp + 0x28], 0x800
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, [rsp + 0x70]
lea rdx, [rbp - 0x10]
mov rcx, rbx
call fcn.1800acbf0
mov rcx, rax
mov rbx, qword [rax]
test rbx, rbx
je 0x1800d03ed
movsxd rax, dword [rbx + 1]
add rbx, 5
add rbx, rax
mov qword [rcx], rbx
movsd xmm0, qword [0x18014adb8]
ucomisd xmm0, qword [0x18012ec58]
jp 0x1800d05d0
jne 0x1800d05d0
movups xmm0, xmmword [0x18012bac0]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [0x18012bad0]
movups xmmword [rbp - 0x60], xmm1
movups xmm0, xmmword [0x18012bae0]
movups xmmword [rbp - 0x50], xmm0
mov eax, dword [0x18012baf0]
mov dword [rbp - 0x40], eax
movzx eax, word [0x18012baf4]
mov word [rbp - 0x3c], ax
movzx eax, byte [0x18012baf6]
mov byte [rbp - 0x3a], al
cmp dword [0x180149018], 2
jl 0x1800d0583
movdqa xmm5, xmmword [0x18012ef50]
movdqa xmm4, xmmword [0x18012f0f0]
movdqa xmm6, xmmword [0x18012ef80]
movdqa xmm0, xmmword [str.7777777777777777]
movdqa xmmword [rbp - 0x30], xmm0
lea rcx, [rbp - 0x6c]
mov edx, dword [rbp - 0x30]
movd xmm2, edi
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x18012f030]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rdi + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x18012f030]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add edi, 8
mov eax, edi
lea rcx, [rcx + 8]
cmp edi, 0x30
jl 0x1800d0481
cmp eax, 0x37
jge 0x1800d05bd
movsxd rax, edi
lea r8, [rbp - 0x70]
add r8, rax
nop dword [rax]
mov eax, 0x51eb851f
imul edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, dil
sub al, cl
add al, 0x37
xor byte [r8], al
inc edi
lea r8, [r8 + 1]
cmp edi, 0x37
jl 0x1800d0590
xor r8d, r8d
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x30]
call fcn.1800387f0
mov rbx, qword [rax]
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
xor r8d, r8d
lea rdx, [0x18011f470]
lea rcx, [rbp - 0x70]
call fcn.180016150
nop
cmp byte [0x18014add8], 0
je 0x1800d062e
mov byte [rsp + 0x40], 0
mov dword [rsp + 0x48], 2
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [0x18014bfc8]
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x48]
call fcn.180028480
nop
jmp 0x1800d087e
comisd xmm0, xmm6
jb 0x1800d088e
comisd xmm0, xmmword [0x18012eb58]
jb 0x1800d064c
cmp eax, 7
jl 0x1800d064e
mov esi, edi
mov eax, dword [0x18012bab8]
movups xmm0, xmmword [0x18012ba80]
mov dword [rbp - 0x38], eax
movups xmmword [rbp - 0x70], xmm0
movzx eax, word [0x18012babc]
movups xmm0, xmmword [0x18012baa0]
mov word [rbp - 0x34], ax
movups xmmword [rbp - 0x50], xmm0
movzx eax, byte [0x18012babe]
movsd xmm0, qword [0x18012bab0]
movups xmm1, xmmword [0x18012ba90]
mov byte [rbp - 0x32], al
movsd qword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x60], xmm1
cmp dword [0x180149018], 2
jl 0x1800d07d5
movdqa xmm5, xmmword [0x18012ef50]
movdqa xmm4, xmmword [0x18012f0f0]
movdqa xmm6, xmmword [0x18012ef80]
movdqa xmm0, xmmword [str.7777777777777777]
movdqa xmmword [rbp - 0x30], xmm0
lea rcx, [rbp - 0x6c]
mov edx, dword [rbp - 0x30]
movd xmm2, edi
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x18012f030]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rdi + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x18012f030]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add edi, 8
mov eax, edi
lea rcx, [rcx + 8]
cmp edi, 0x38
jl 0x1800d06d3
cmp eax, 0x3f
jge 0x1800d080d
movsxd rax, edi
lea r8, [rbp - 0x70]
add r8, rax
nop
mov eax, 0x51eb851f
imul edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, dil
sub al, cl
add al, 0x37
xor byte [r8], al
inc edi
lea r8, [r8 + 1]
cmp edi, 0x3f
jl 0x1800d07e0
mov r8d, esi
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x30]
call fcn.1800387f0
mov rbx, qword [rax]
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
xor r8d, r8d
lea rdx, [0x18011f470]
lea rcx, [rbp - 0x70]
call fcn.180016150
nop
cmp byte [0x18014add8], 0
je 0x1800d087e
mov byte [rsp + 0x40], 0
mov dword [rsp + 0x48], 2
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [0x18014bfc8]
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x48]
call fcn.180028480
nop
lea rcx, [rbp - 0x70]
call fcn.18002d3d0
mov qword [0x18014c990], rbx
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.1800ed380
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop rbp
ret