Function at 0x20198b60
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rcx]
mov edx, 0x7d4a48c9
call fcn.20199440
mov rcx, qword [rsi + 8]
mov edx, dword [rcx]
mov rcx, rax
mov r8d, 0xe8562bf5
call fcn.20199430
mov qword [rsi + 0x18], rax
test rax, rax
je 0x20198ce1
mov ecx, 0x30
mov edx, 0x4465f4e6
call fcn.200810a0
mov qword [rbp - 8], rax
mov rcx, qword [rsi]
call fcn.20198160
mov rcx, rax
call fcn.20198160
lea rcx, [rsi + 0x20]
mov r8, qword [rsi + 0x18]
add r8, 0x10
mov rdx, qword [rbp - 8]
mov qword [rdx], r8
xorps xmm0, xmm0
movups xmmword [rdx + 8], xmm0
mov qword [rdx + 0x18], 0
mov qword [rdx + 0x20], rax
mov byte [rdx + 0x28], 0
call fcn.201961b0
mov r8, qword [rsi + 0x18]
mov rdx, qword [rsi + 0x20]
mov dword [rsp + 0x20], 0x5c8edfc3
lea r9, [0x20197b40]
lea rcx, [rbp - 0x40]
call fcn.20199410
mov rax, qword [rbp - 0x40]
mov qword [rbp - 0x10], rax
mov ecx, 0xc
call fcn.2032be0c
mov rdx, rax
mov qword [rbp - 0x18], rdi
mov rax, qword [rsi + 8]
mov rcx, qword [rsi + 0x18]
mov edi, dword [rcx + 0x28]
mov rbx, qword [rsi + 0x20]
mov dword [rdx], 0
mov dword [rdx + 8], 0
mov eax, dword [rax + 8]
mov ecx, eax
xor ecx, 1
and eax, 1
lea eax, [rcx + rax*2]
add edi, eax
and eax, 1
add edi, eax
mov dword [rdx + 4], edi
mov rcx, qword [rbp - 0x10]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
mov qword [rbp - 8], rdx
call qword [case.0x200fc05d.0]
movzx eax, ax
add edi, eax
mov rax, qword [rbp - 8]
mov dword [rax + 8], edi
mov r14d, dword [rax + 4]
lea rax, [0x20377974]
movsxd r13, dword [0x20377974]
add r13, rax
mov edi, dword [0x20377964]
mov rcx, rbx
call fcn.201828b0
movzx eax, ax
add r14d, eax
mov r8, qword [rbp - 8]
mov dword [r8], r14d
mov rcx, qword [rsi + 0x28]
mov r14d, dword [0x2045d000]
lea r15d, [r14 + 1]
mov dword [0x2045d000], r15d
test r14d, r15d
je 0x20198ce8
xor r12d, r12d
jmp 0x20198d12
xor ebx, ebx
jmp 0x20198e4e
xor eax, eax
xor r12d, r12d
test edi, edi
jle 0x20198d12
nop word cs:[rax + rax]
movsxd rdx, eax
mov rdx, qword [r13 + rdx]
xor r12, rdx
add eax, 8
cmp eax, edi
jl 0x20198d00
cmp rcx, r8
je 0x20198d25
test rcx, rcx
je 0x20198d25
call fcn.200807d0
mov r8, qword [rbp - 8]
mov qword [rsi + 0x28], r8
mov ebx, dword [r8]
mov rcx, qword [rsi]
call fcn.20198160
mov rdi, qword [rbp - 0x18]
mov rcx, rax
mov edx, ebx
call fcn.20199850
mov qword [rsi + 0x10], rax
xor ebx, ebx
cmp byte [0x204a2298], 0
jne 0x20198e39
test rax, rax
je 0x20198e39
mov rcx, rsi
call fcn.20198f40
and r14d, r15d
mov rax, qword [0x20377968]
xor ecx, ecx
cmp r14d, 1
sbb rcx, rcx
sub rax, r12
test rax, rcx
setne al
or al, byte [0x204a2298]
and al, 1
mov byte [0x204a2298], al
mov eax, dword [rsi + 0x38]
mov dword [rdi], eax
mov rcx, qword [rsi + 0x18]
call fcn.20196d20
test al, al
je 0x20198dd4
movzx r8d, word [rsi + 0x3c]
mov rax, qword [rsi + 0x10]
add r8, qword [rax + 8]
mov rax, qword [rsi + 0x28]
mov edx, dword [0x204a1e00]
add edx, dword [rax + 4]
add rdx, r8
mov rcx, qword [rbp - 0x10]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x200fc05d.0]
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 0x18]
cmp dword [rax + 0x18], 0
je 0x20198e37
mov rax, qword [rsi + 0x28]
mov eax, dword [rax + 8]
mov rcx, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
mov r8d, dword [rdx + 0x10]
sub r8d, eax
mov ecx, dword [rcx + 8]
mov rdx, qword [rdx + 8]
movzx r9d, word [rsi + 0x3c]
add r9, rdx
add rdx, rax
mov eax, dword [rsi + 0x38]
mov qword [rbp - 0x40], r9
mov dword [rbp - 0x38], ecx
mov qword [rbp - 0x30], rdx
mov dword [rbp - 0x28], r8d
mov dword [rbp - 0x20], eax
mov rcx, qword [rsi + 0x20]
lea rdx, [rbp - 0x40]
call fcn.20182950
mov ebx, eax
test al, al
jne 0x20198e39
mov dword [rsi + 0x38], 0
jmp 0x20198e39
mov bl, 1
mov rcx, qword [rbp - 0x10]
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [case.0x200fc05d.0]
mov eax, ebx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret