Function at 0x1800afa10
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
lea rbp, [rax - 0x5f]
sub rsp, 0x100
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
mov rax, qword [0x18011f040]
xor rax, rsp
mov qword [rbp + 0x27], rax
test cl, cl
jne 0x1800afcd1
xor ebx, ebx
movsd xmm1, qword [0x180108a50]
movsd xmm0, qword [0x180120d48]
movsd xmm6, qword [0x180108af0]
ucomisd xmm0, xmm6
jp 0x1800afa6b
je 0x1800afa73
ucomisd xmm0, xmm1
jp 0x1800afad6
jne 0x1800afad6
comisd xmm1, xmm0
ja 0x1800afac4
call fcn.1800b4600
mov rdi, rax
test rax, rax
jne 0x1800afa8b
mov rdi, rbx
jmp 0x1800afa96
movsxd rax, dword [0x18011f3d4]
mov rdi, qword [rax + rdi]
mov rcx, rdi
call fcn.1800b3cf0
test rax, rax
je 0x1800afaa5
mov dword [rax], ebx
mov rcx, rdi
call fcn.1800b3f30
test rax, rax
je 0x1800afab4
mov dword [rax], ebx
mov rcx, rdi
call fcn.1800b4160
test rax, rax
je 0x1800afac4
mov byte [rax], 1
call fcn.1800ae110
call fcn.1800adc40
movsd xmm0, qword [0x180120d48]
comisd xmm0, xmm6
jb 0x1800afebf
movups xmm0, xmmword [0x1801056a0]
movups xmmword [rbp - 0x49], xmm0
movups xmm1, xmmword [0x1801056b0]
movups xmmword [rbp - 0x39], xmm1
movups xmm0, xmmword [0x1801056c0]
movups xmmword [rbp - 0x29], xmm0
movups xmm1, xmmword [0x1801056d0]
movups xmmword [rbp - 0x19], xmm1
movsd xmm0, qword [0x1801056e0]
movsd qword [rbp - 9], xmm0
mov r8d, ebx
cmp dword [0x18011f018], 2
jl 0x1800afc3f
movdqa xmm5, xmmword [0x180108e60]
movdqa xmm4, xmmword [0x180109000]
movdqa xmm6, xmmword [0x180108e90]
movdqa xmm7, xmmword [str.00000000]
lea rcx, [rbp - 0x49]
nop dword [rax]
movd xmm2, r8d
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 xmm3, xmm1, 0xd8
movq xmm2, xmm7
paddw xmm3, xmm2
movq xmm0, qword [rcx]
xorps xmm3, xmm0
movq qword [rcx], xmm3
lea eax, [r8 + 4]
movd xmm2, eax
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 xmm3, xmm1, 0xd8
movq xmm2, xmm7
paddw xmm3, xmm2
movq xmm0, qword [rcx + 8]
xorps xmm3, xmm0
movq qword [rcx + 8], xmm3
add r8d, 8
lea rcx, [rcx + 0x10]
cmp r8d, 0x20
jl 0x1800afb50
cmp r8d, 0x24
jge 0x1800afc84
movsxd rax, r8d
lea r9, [rbp - 0x49]
lea r9, [r9 + rax*2]
nop word [rax + rax]
mov eax, 0x4bda12f7
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x36
movzx eax, r8w
sub ax, cx
add ax, 0x30
xor word [r9], ax
inc r8d
lea r9, [r9 + 2]
cmp r8d, 0x24
jl 0x1800afc50
cmp word [rbp - 0x49], bx
je 0x1800afca3
lea rax, [rbp - 0x49]
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], bx
jne 0x1800afc95
inc rcx
jmp 0x1800afca6
mov rcx, rbx
mov dword [rbp + 0xf], ecx
mov dword [rbp + 0x13], ecx
lea rax, [rbp - 0x49]
test ecx, ecx
cmove rax, rbx
mov qword [rbp + 7], rax
movaps xmm0, xmmword [rbp + 7]
movdqa xmmword [rbp + 7], xmm0
lea rcx, [rbp + 7]
call fcn.1800be6a0
jmp 0x1800afebf
cmp cl, 1
jne 0x1800afce0
call fcn.1800ae810
jmp 0x1800afebf
cmp cl, 2
jne 0x1800afebf
xor ebx, ebx
movsd xmm6, qword [0x180120d48]
ucomisd xmm6, qword [0x180108af0]
jp 0x1800afcff
je 0x1800afd0b
ucomisd xmm6, qword [0x180108a50]
jp 0x1800afd75
jne 0x1800afd75
call fcn.1800aec60
xorps xmm0, xmm0
test al, al
je 0x1800afd42
movups xmmword [rsp + 0x20], xmm0
mov qword [rbp - 0x79], rbx
mov qword [rbp - 0x71], rbx
mov r8d, 0x1e
lea rdx, str.Successfully_setup_main_Event_
lea rcx, [rsp + 0x20]
call fcn.18001d0a0
lea rcx, [rsp + 0x20]
jmp 0x1800afd68
movups xmmword [rbp - 0x69], xmm0
mov qword [rbp - 0x59], rbx
mov qword [rbp - 0x51], rbx
mov r8d, 0x3a
lea rdx, str.Failed_to_setup_main_event__MatchedAsset_couldnt_be_found
lea rcx, [rbp - 0x69]
call fcn.18001d0a0
lea rcx, [rbp - 0x69]
call fcn.18008f5c0
movsd xmm6, qword [0x180120d48]
ucomisd xmm6, qword [0x180108b00]
jp 0x1800afdeb
jne 0x1800afdeb
call fcn.1800af650
xorps xmm0, xmm0
test al, al
je 0x1800afdb5
movups xmmword [rbp - 0x69], xmm0
mov qword [rbp - 0x59], rbx
mov qword [rbp - 0x51], rbx
mov r8d, 0x1e
lea rdx, str.Successfully_setup_mini_Event_
lea rcx, [rbp - 0x69]
call fcn.18001d0a0
lea rcx, [rbp - 0x69]
jmp 0x1800afdde
movups xmmword [rsp + 0x20], xmm0
mov qword [rbp - 0x79], rbx
mov qword [rbp - 0x71], rbx
mov r8d, 0x3a
lea rdx, str.Failed_to_setup_mini_event__MatchedAsset_couldnt_be_found
lea rcx, [rsp + 0x20]
call fcn.18001d0a0
lea rcx, [rsp + 0x20]
call fcn.18008f5c0
movsd xmm6, qword [0x180120d48]
movsd xmm7, qword [0x180108b28]
ucomisd xmm6, xmm7
jp 0x1800afebf
jne 0x1800afebf
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], rax
lea rcx, [rbp + 7]
call fcn.1800ada80
nop
mov rdi, qword [rbp + 7]
mov rsi, qword [rbp + 0xf]
cmp rdi, rsi
je 0x1800afe85
mov rcx, rdi
call fcn.1800b1a60
test rax, rax
je 0x1800afe85
add rdi, 0x20
cmp rdi, rsi
jne 0x1800afe27
ucomisd xmm6, xmm7
jp 0x1800afe4a
jne 0x1800afe4a
call fcn.1800b3080
mov byte [0x180121b42], 1
lea rcx, [rbp + 7]
call fcn.18001ec30
xorps xmm0, xmm0
movups xmmword [rbp - 0x69], xmm0
mov qword [rbp - 0x59], rbx
mov qword [rbp - 0x51], rbx
mov r8d, 0x1f
lea rdx, str.Successfully_setup_world_Event_
lea rcx, [rbp - 0x69]
call fcn.18001d0a0
lea rcx, [rbp - 0x69]
jmp 0x1800afeba
lea rcx, [rbp + 7]
call fcn.18001ec30
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rbp - 0x79], rbx
mov qword [rbp - 0x71], rbx
mov r8d, 0x3b
lea rdx, str.Failed_to_setup_world_event__MatchedAsset_couldnt_be_found
lea rcx, [rsp + 0x20]
call fcn.18001d0a0
lea rcx, [rsp + 0x20]
call fcn.18008f5c0
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1800cac90
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop rbp
ret