Function at 0x1800b59b0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push rbx
push rdi
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
xor ebx, ebx
mov dword [rbp + 0x6f], ebx
test cl, cl
jne 0x1800b5c71
movsd xmm1, qword [0x1801145f0]
movsd xmm0, qword [0x18012dd68]
movsd xmm6, qword [0x180114690]
ucomisd xmm0, xmm6
jp 0x1800b59f6
je 0x1800b59fe
ucomisd xmm0, xmm1
jp 0x1800b5a74
jne 0x1800b5a74
comisd xmm1, xmm0
ja 0x1800b5a62
mov rdi, qword [0x18012e870]
test rdi, rdi
jne 0x1800b5a34
call fcn.1800bafa0
mov rdi, rax
test rax, rax
jne 0x1800b5a22
mov rdi, rbx
jmp 0x1800b5a2d
movsxd rax, dword [0x18012c3bc]
mov rdi, qword [rax + rdi]
mov qword [0x18012e870], rdi
mov rcx, rdi
call fcn.1800ba6f0
test rax, rax
je 0x1800b5a43
mov dword [rax], ebx
mov rcx, rdi
call fcn.1800ba920
test rax, rax
je 0x1800b5a52
mov dword [rax], ebx
mov rcx, rdi
call fcn.1800bab40
test rax, rax
je 0x1800b5a62
mov byte [rax], 1
call fcn.1800b3b20
call fcn.1800b3670
movsd xmm0, qword [0x18012dd68]
comisd xmm0, xmm6
jb 0x1800b5f55
movups xmm0, xmmword [0x1801104f0]
movups xmmword [rbp - 0x29], xmm0
movups xmm1, xmmword [0x180110500]
movups xmmword [rbp - 0x19], xmm1
movups xmm0, xmmword [0x180110510]
movups xmmword [rbp - 9], xmm0
movups xmm1, xmmword [0x180110520]
movups xmmword [rbp + 7], xmm1
movsd xmm0, qword [0x180110530]
movsd qword [rbp + 0x17], xmm0
mov r8d, ebx
cmp dword [0x18012c090], 2
jl 0x1800b5bdf
movdqa xmm5, xmmword [0x1801148f0]
movdqa xmm4, xmmword [0x180114d90]
movdqa xmm6, xmmword [0x180114920]
movdqa xmm7, xmmword [str.88888888]
lea rcx, [rbp - 0x29]
nop dword [rax + 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
pshufhw xmm0, xmm2, 0xd8
pshuflw 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
pshufhw xmm0, xmm2, 0xd8
pshuflw 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 0x1800b5af0
cmp r8d, 0x24
jge 0x1800b5c24
movsxd rax, r8d
lea r9, [rbp - 0x29]
lea r9, [r9 + rax*2]
nop word [rax + rax]
mov eax, 0x51eb851f
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x32
movzx eax, r8w
sub ax, cx
add ax, 0x38
xor word [r9], ax
inc r8d
lea r9, [r9 + 2]
cmp r8d, 0x24
jl 0x1800b5bf0
cmp word [rbp - 0x29], bx
je 0x1800b5c43
lea rax, [rbp - 0x29]
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], bx
jne 0x1800b5c35
inc rcx
jmp 0x1800b5c46
mov rcx, rbx
mov dword [rbp - 0x61], ecx
mov dword [rbp - 0x5d], ecx
lea rax, [rbp - 0x29]
test ecx, ecx
cmove rax, rbx
mov qword [rbp - 0x69], rax
movaps xmm0, xmmword [rbp - 0x69]
movdqa xmmword [rbp - 0x69], xmm0
lea rcx, [rbp - 0x69]
call fcn.1800c4f40
jmp 0x1800b5f55
cmp cl, 1
jne 0x1800b5c80
call fcn.1800b4270
jmp 0x1800b5f55
cmp cl, 2
jne 0x1800b5f55
lea rdi, [0x18012f3e8]
movsd xmm0, qword [0x18012dd68]
ucomisd xmm0, qword [0x180114690]
jp 0x1800b5ca4
je 0x1800b5cb8
ucomisd xmm0, qword [0x1801145f0]
jp 0x1800b5d8e
jne 0x1800b5d8e
call fcn.1800b45f0
xorps xmm0, xmm0
xorps xmm1, xmm1
test al, al
je 0x1800b5cfe
movups xmmword [rbp - 0x49], xmm0
movdqu xmmword [rbp - 0x39], xmm1
mov r8d, 0x1e
lea rdx, str.Successfully_setup_main_Event_
lea rcx, [rbp - 0x49]
call fcn.180013310
nop
mov ebx, 1
mov dword [rbp + 0x6f], ebx
cmp byte [0x18012dce0], 0
je 0x1800b5d5d
lea r8, [rbp - 0x49]
jmp 0x1800b5d33
movups xmmword [rbp - 0x69], xmm0
movdqu xmmword [rbp - 0x59], xmm1
mov r8d, 0x3a
lea rdx, str.Failed_to_setup_main_event__MatchedAsset_couldnt_be_found
lea rcx, [rbp - 0x69]
call fcn.180013310
nop
mov ebx, 2
mov dword [rbp + 0x6f], ebx
cmp byte [0x18012dce0], 0
je 0x1800b5d5d
lea r8, [rbp - 0x69]
lea rax, [rbp + 0x67]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov byte [rbp + 0x67], 0
mov dword [rbp + 0x77], 5
lea r9, [0x18012f3d8]
lea rdx, [rbp + 0x77]
call fcn.180025bb0
nop
test bl, 2
je 0x1800b5d72
and ebx, 0xfffffffd
mov dword [rbp + 0x6f], ebx
lea rcx, [rbp - 0x69]
call fcn.180027960
nop
test bl, 1
je 0x1800b5d86
and ebx, 0xfffffffe
mov dword [rbp + 0x6f], ebx
lea rcx, [rbp - 0x49]
call fcn.180027960
movsd xmm0, qword [0x18012dd68]
movsd xmm6, qword [0x1801146c8]
ucomisd xmm0, qword [0x1801146a0]
jp 0x1800b5da2
je 0x1800b5db2
ucomisd xmm0, xmm6
jp 0x1800b5f55
jne 0x1800b5e88
call fcn.1800b50d0
xorps xmm0, xmm0
xorps xmm1, xmm1
test al, al
je 0x1800b5df6
movups xmmword [rbp - 0x69], xmm0
movdqu xmmword [rbp - 0x59], xmm1
mov r8d, 0x1e
lea rdx, str.Successfully_setup_mini_Event_
lea rcx, [rbp - 0x69]
call fcn.180013310
nop
or ebx, 4
mov dword [rbp + 0x6f], ebx
cmp byte [0x18012dce0], 0
je 0x1800b5e53
lea r8, [rbp - 0x69]
jmp 0x1800b5e29
movups xmmword [rbp - 0x49], xmm0
movdqu xmmword [rbp - 0x39], xmm1
mov r8d, 0x3a
lea rdx, str.Failed_to_setup_mini_event__MatchedAsset_couldnt_be_found
lea rcx, [rbp - 0x49]
call fcn.180013310
nop
or ebx, 8
mov dword [rbp + 0x6f], ebx
cmp byte [0x18012dce0], 0
je 0x1800b5e53
lea r8, [rbp - 0x49]
lea rax, [rbp + 0x67]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov byte [rbp + 0x67], 0
mov dword [rbp + 0x77], 5
lea r9, [0x18012f3d8]
lea rdx, [rbp + 0x77]
call fcn.180025bb0
nop
test bl, 8
je 0x1800b5e68
and ebx, 0xfffffff7
mov dword [rbp + 0x6f], ebx
lea rcx, [rbp - 0x49]
call fcn.180027960
nop
test bl, 4
je 0x1800b5e7c
and ebx, 0xfffffffb
mov dword [rbp + 0x6f], ebx
lea rcx, [rbp - 0x69]
call fcn.180027960
movsd xmm0, qword [0x18012dd68]
ucomisd xmm0, xmm6
jp 0x1800b5f55
jne 0x1800b5f55
call fcn.1800b5850
xorps xmm0, xmm0
xorps xmm1, xmm1
test al, al
je 0x1800b5ed8
movups xmmword [rbp - 0x69], xmm0
movdqu xmmword [rbp - 0x59], xmm1
mov r8d, 0x1f
lea rdx, str.Successfully_setup_world_Event_
lea rcx, [rbp - 0x69]
call fcn.180013310
nop
or ebx, 0x10
mov dword [rbp + 0x6f], ebx
cmp byte [0x18012dce0], 0
je 0x1800b5f35
lea r8, [rbp - 0x69]
jmp 0x1800b5f0b
movups xmmword [rbp - 0x49], xmm0
movdqu xmmword [rbp - 0x39], xmm1
mov r8d, 0x3b
lea rdx, str.Failed_to_setup_world_event__MatchedAsset_couldnt_be_found
lea rcx, [rbp - 0x49]
call fcn.180013310
nop
or ebx, 0x20
mov dword [rbp + 0x6f], ebx
cmp byte [0x18012dce0], 0
je 0x1800b5f35
lea r8, [rbp - 0x49]
lea rax, [rbp + 0x67]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov byte [rbp + 0x67], 0
mov dword [rbp + 0x77], 5
lea r9, [0x18012f3d8]
lea rdx, [rbp + 0x77]
call fcn.180025bb0
nop
test bl, 0x20
je 0x1800b5f47
and ebx, 0xffffffdf
lea rcx, [rbp - 0x49]
call fcn.180027960
nop
test bl, 0x10
je 0x1800b5f55
lea rcx, [rbp - 0x69]
call fcn.180027960
movaps xmm6, xmmword [rsp + 0xd0]
movaps xmm7, xmmword [rsp + 0xc0]
add rsp, 0xe0
pop rdi
pop rbx
pop rbp
ret