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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x158]
sub rsp, 0x220
movaps xmmword [rax - 0x48], xmm6
mov rbx, rdx
xor r15d, r15d
mov dword [rbp + 0x10], r15d
mov qword [rbp + 0x18], r15
mov qword [rbp + 0x20], r15
mov ecx, 0x18
call fcn.180183b24
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x28], r15
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], 7
mov qword [rbp + 0x48], 8
mov dword [rbp + 0x10], 0x3f800000
mov r8, rax
mov edx, 0x10
lea rcx, [rbp + 0x28]
call fcn.180090e50
nop
mov ecx, dword [0x18023228c]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov eax, dword [rdx + rax]
cmp dword [0x180233ef0], eax
jle 0x180100672
lea rcx, [0x180233ef0]
call fcn.180183aac
cmp dword [0x180233ef0], 0xffffffff
jne 0x180100672
mov rcx, qword [0x180233b80]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
test rax, rax
je 0x18010065d
nop dword [rax]
mov r9, qword [r10 + 0x10]
mov rcx, 0xffffffffffffffff
mov r8d, 0x811c9dc5
inc rcx
cmp byte [r9 + rcx], 0
jne 0x180100611
mov rdx, r15
test rcx, rcx
je 0x180100654
nop dword [rax]
nop word [rax + rax]
movsx eax, byte [r9 + rdx]
xor eax, r8d
imul r8d, eax, 0x1000193
inc rdx
cmp rdx, rcx
jb 0x180100630
cmp r8d, 0xb47de3de
je 0x180100aa5
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x180100600
mov eax, r15d
mov dword [0x180233ed0], eax
lea rcx, [0x180233ef0]
call fcn.180183a40
movsxd r14, dword [0x180233ed0]
add r14, rbx
je 0x180100a79
mov rdi, r15
mov rdx, qword [r14]
movdqa xmm6, xmmword [0x180209c60]
test rdx, rdx
je 0x180100966
lea r12, str.Resetting_weapon_
movabs r13, 0x1000000000000000
nop word [rax + rax]
mov eax, edx
and eax, 0xfff
cmp eax, 0x800
jae 0x180100954
mov rcx, qword [0x180233ba8]
mov rax, qword [rcx]
mov dword [rbp + 0x178], edx
lea rdx, [rbp + 0x178]
call qword [rax + 0x20]
mov rbx, rax
test rax, rax
je 0x180100954
mov rcx, qword [rax]
mov rdx, qword [rcx + 0xa50]
mov rcx, rax
call rdx
mov dword [rbp + 0x160], eax
mov rcx, rbx
call fcn.1800ad920
mov esi, dword [rax]
lea r8, [rbp + 0x160]
lea rdx, [rbp + 0xe0]
lea rcx, [rbp + 0x10]
call fcn.1800d7db0
mov rcx, qword [rax]
mov byte [rcx + 0x14], 1
lea r8, [rbp + 0x160]
lea rdx, [rbp + 0xf0]
lea rcx, [0x180242e68]
call fcn.180102f20
mov rcx, qword [rax]
cmp dword [rcx + 0x30], esi
je 0x180100954
mov qword [rsp + 0x28], 0
movdqu xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x40], 0xffffffff
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
mov ecx, 0x10
call fcn.180183b24
mov qword [rax + 8], r15
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x48]
mov qword [rax], rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], r15
mov ecx, 0x10
call fcn.180183b24
mov qword [rax + 8], r15
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
mov qword [rax], rcx
lea r8, [rbp + 0x160]
lea rdx, [rbp + 0x100]
lea rcx, [0x180242e68]
call fcn.180102f20
mov rcx, qword [rax]
add rcx, 0x18
lea rdx, [rsp + 0x28]
call fcn.180100b20
nop
lea rcx, [rsp + 0x70]
call fcn.1800a2890
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x70], r15
mov edx, 0x10
call fcn.1801839fc
lea rcx, [rsp + 0x48]
call fcn.1800a2890
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x48], r15
mov edx, 0x10
call fcn.1801839fc
lea rcx, [rbx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov ebx, eax
lea r8, [rbp + 0x160]
lea rdx, [rbp + 0xc0]
lea rcx, [0x180242e68]
call fcn.180102f20
mov rcx, qword [rax]
mov dword [rcx + 0x2c], ebx
lea r8, [rbp + 0x160]
lea rdx, [rbp + 0xd0]
lea rcx, [0x180242e68]
call fcn.180102f20
mov rcx, qword [rax]
mov dword [rcx + 0x30], esi
movzx ebx, byte [0x18023de21]
mov qword [rbp + 0x70], r12
mov qword [rbp + 0x78], 0x13
mov dword [rbp + 0x58], esi
mov qword [rbp + 0x50], r13
mov qword [rbp + 0x60], 1
lea rax, [rbp + 0x50]
mov qword [rbp + 0x68], rax
movaps xmm0, xmmword [rbp + 0x60]
movdqa xmmword [rbp + 0xa0], xmm0
movaps xmm1, xmmword [rbp + 0x70]
movdqa xmmword [rbp + 0xb0], xmm1
lea r8, [rbp + 0xa0]
lea rdx, [rbp + 0xb0]
lea rcx, [rbp + 0x80]
call fcn.1800cc930
nop
lea rsi, [rbp + 0x80]
cmp qword [rbp + 0x98], 0xf
cmova rsi, qword [rbp + 0x80]
mov dword [rsp + 0x20], 0xffffff00
test bl, bl
je 0x180100948
mov rcx, qword [0x180233b88]
mov rax, qword [rcx]
lea r9, str.Crithack
lea r8, str.__s_
lea rdx, [rsp + 0x20]
call qword [rax + 0xb8]
mov rcx, qword [0x180233b88]
mov rax, qword [rcx]
mov dword [rbp + 0x170], 0xffffffff
mov r9, rsi
lea r8, [0x180208cfc]
lea rdx, [rbp + 0x170]
call qword [rax + 0xb8]
nop
lea rcx, [rbp + 0x80]
call fcn.180090ac0
inc rdi
mov rax, qword [r14 + rdi*8]
mov edx, eax
test rax, rax
jne 0x1801006b0
mov rdi, qword [0x180242e70]
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x180100a79
nop dword [rax]
lea r8, [rbx + 0x10]
lea rdx, [rbp + 0xd0]
lea rcx, [rbp + 0x10]
call fcn.1800d7db0
mov rcx, qword [rax]
cmp byte [rcx + 0x14], 0
jne 0x180100a6d
mov qword [rbp - 0x68], 0
movdqu xmmword [rbp - 0x60], xmm6
mov dword [rbp - 0x50], 0xffffffff
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], r15
mov ecx, 0x10
call fcn.180183b24
mov qword [rax + 8], r15
mov qword [rbp - 0x48], rax
lea rcx, [rbp - 0x48]
mov qword [rax], rcx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r15
mov qword [rbp - 8], r15
mov qword [rbp], r15
mov ecx, 0x10
call fcn.180183b24
mov qword [rax + 8], r15
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x20]
mov qword [rax], rcx
lea r8, [rbx + 0x10]
lea rdx, [rbp + 0xc0]
lea rcx, [0x180242e68]
call fcn.180102f20
mov rcx, qword [rax]
add rcx, 0x18
lea rdx, [rbp - 0x68]
call fcn.180100b20
nop
lea rcx, [rbp - 0x20]
call fcn.1800a2890
mov rcx, qword [rbp - 0x20]
mov qword [rbp - 0x20], r15
mov edx, 0x10
call fcn.1801839fc
lea rcx, [rbp - 0x48]
call fcn.1800a2890
mov rcx, qword [rbp - 0x48]
mov qword [rbp - 0x48], r15
mov edx, 0x10
call fcn.1801839fc
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x180100980
lea rcx, [rbp + 0x10]
call fcn.180085de0
mov rbx, qword [rsp + 0x268]
movaps xmm6, xmmword [rsp + 0x210]
add rsp, 0x220
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, str.m_hMyWeapons
mov rdx, qword [r10 + 0x18]
call fcn.180183640
jmp 0x180100660