Function at 0x180016490
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x88
mov r15, rdx
mov rdi, rcx
mov qword [rbp - 0x49], rcx
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x1800164cd
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov eax, dword [rdi + 0x4c]
cmp eax, 0x7fffffff
jne 0x1800164e8
dec eax
mov dword [rdi + 0x4c], eax
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov rsi, qword [r15]
mov qword [rbp + 0x7f], rsi
mov rcx, qword [rdi + 0x170]
mov rax, qword [rcx]
lea rdx, [rbp + 0x77]
call qword [rax + 0x10]
mov r12, rax
mov qword [rbp - 0x41], rax
mov rbx, qword [rsi + 0x28]
mov rdx, qword [rsi + 0x30]
cmp rbx, rdx
je 0x180016570
lea r14, [rbx + 0x10]
nop dword [rax + rax]
mov rsi, qword [rbx]
mov rcx, qword [r12]
mov rax, qword [rsi]
mov r13, qword [rax + 0x20]
cmp r14, rdx
lea rdx, [rbp + 0x67]
je 0x18001655d
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rdx, rax
mov rcx, rsi
call r13
add rbx, 0x10
add r14, 0x10
mov rax, qword [rbp + 0x7f]
mov rdx, qword [rax + 0x30]
cmp rbx, rdx
jne 0x180016520
jmp 0x180016570
mov qword [r12], 0
mov qword [rbp + 0x67], rcx
mov rcx, rsi
call r13
nop
mov rcx, qword [r12]
test rcx, rcx
je 0x180016583
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rcx, qword [rdi + 0x1b8]
xor r12d, r12d
test rcx, rcx
je 0x18001663e
mov rbx, qword [r15]
lea rax, [rbp - 0x29]
mov qword [rbp + 0x67], rax
mov qword [rbp + 0xf], r12
mov rax, qword [rcx]
lea rdx, [rbp - 0x29]
call qword [rax]
mov r8, rax
mov qword [rbp + 0xf], rax
add rbx, 0x48
mov rcx, rax
lea rax, [rbp - 0x29]
cmp rbx, rax
je 0x180016629
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1800165e2
mov rax, qword [rcx]
cmp rcx, rbx
setne dl
call qword [rax + 0x20]
mov qword [rbx + 0x38], r12
mov r8, qword [rbp + 0xf]
mov rcx, r8
test r8, r8
je 0x180016629
lea rax, [rbp - 0x29]
cmp rcx, rax
jne 0x18001661f
mov rax, qword [r8]
mov rdx, rbx
call qword [rax + 8]
mov qword [rbx + 0x38], rax
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x18001663e
mov rax, qword [rcx]
lea rdx, [rbp - 0x29]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp + 0xf], r12
jmp 0x18001663e
mov qword [rbx + 0x38], r8
mov qword [rbp + 0xf], r12
jmp 0x18001663e
test rcx, rcx
je 0x18001663e
mov rax, qword [rcx]
lea rdx, [rbp - 0x29]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov rsi, qword [r15]
mov r14, qword [rsi + 0x18]
lea r8, [rsi + 8]
mov r13, qword [rsi + 0x20]
cmp r13, 0xf
jbe 0x180016657
mov r8, qword [rsi + 8]
movabs rdx, 0xcbf29ce484222325
mov rcx, r12
test r14, r14
je 0x180016694
movabs r9, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + r8]
xor rdx, rax
imul rdx, r9
inc rcx
cmp rcx, r14
jb 0x180016680
mov rcx, qword [rdi + 0x160]
and rcx, rdx
add rcx, rcx
mov rax, qword [rdi + 0x148]
mov rbx, qword [rax + rcx*8 + 8]
cmp rbx, qword [rdi + 0x138]
je 0x180016704
mov r12, qword [rax + rcx*8]
nop word [rax + rax]
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x1800166d2
mov rdx, qword [rdx]
lea rcx, [rsi + 8]
cmp r13, 0xf
jbe 0x1800166e0
mov rcx, qword [rsi + 8]
cmp r14, rax
jne 0x1800166f1
mov r8, r14
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1800166fc
cmp rbx, r12
je 0x180016701
mov rbx, qword [rbx + 8]
jmp 0x1800166c0
xor r12d, r12d
jmp 0x180016707
xor r12d, r12d
mov rbx, r12
test rbx, rbx
je 0x18001671a
cmp rbx, qword [rdi + 0x138]
je 0x18001671a
mov ecx, dword [rbx + 0x30]
jmp 0x180016720
mov ecx, dword [rdi + 0x178]
xchg dword [rsi + 0x40], ecx
mov rcx, qword [r15]
mov eax, dword [rdi + 0x17c]
xchg dword [rcx + 0x44], eax
mov rdx, qword [rdi + 0x1f0]
test rdx, rdx
je 0x18001674a
mov rcx, qword [r15]
add rcx, 0x88
call fcn.180013d10
cmp byte [rdi + 0x1e8], 0
je 0x180016776
mov rax, qword [r15]
mov qword [rbp - 0x39], rax
mov rax, qword [r15 + 8]
mov qword [rbp - 0x31], rax
mov qword [r15], r12
mov qword [r15 + 8], r12
lea rdx, [rbp - 0x39]
mov rcx, rdi
call fcn.1800167d0
nop
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
nop
mov rbx, qword [r15 + 8]
test rbx, rbx
je 0x1800167b5
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1800167b5
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1800167b5
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret