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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, r9
mov r14, r8
mov rdi, rdx
test rdx, rdx
je 0x18015941e
mov rcx, rdx
call fcn.1800c3e00
cmp byte [rax], 0
jne 0x18015941e
mov rcx, rdi
call fcn.1800c4100
mov ecx, dword [rax]
shr ecx, 0xd
test cl, 1
jne 0x18015941e
mov rcx, rdi
call fcn.1800c3f00
mov ecx, dword [rax]
shr ecx, 7
test cl, 1
jne 0x18015941e
mov rcx, rdi
call fcn.180151810
cmp byte [rax], 2
jne 0x18015941e
mov rcx, rdi
call fcn.1800c4100
mov ecx, dword [rax]
shr ecx, 0x12
test cl, 1
jne 0x18015941e
cmp dword [0x180267800], 1
je 0x18015941e
cmp byte [0x1802613d4], 0
jne 0x18015941e
test r14, r14
je 0x180159206
mov rcx, r14
call fcn.1800c3d00
cmp dword [rax], 0x2da
jne 0x180159206
test byte [rbx + 0x28], 1
je 0x180159206
mov rax, qword [0x180267958]
test byte [rax + 0x28], 1
je 0x18015941e
mov rcx, rdi
call fcn.1800c3f00
mov ecx, dword [rax]
shr ecx, 0x11
test cl, 1
jne 0x18015941e
test dword [rbx + 0x28], 0x800
je 0x18015941a
mov ecx, dword [0x180265dfc]
mov rax, qword gs:[0x58]
mov ebp, 4
mov rbx, qword [rax + rcx*8]
xor esi, esi
mov eax, dword [rbx + rbp]
cmp dword [0x180267bac], eax
jle 0x1801592f1
lea rcx, [0x180267bac]
call fcn.1801b3c6c
cmp dword [0x180267bac], 0xffffffff
jne 0x1801592f1
mov rcx, qword [0x1802676e0]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
test rax, rax
je 0x1801592dd
mov r8, qword [r10 + 0x10]
mov rcx, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rcx
cmp byte [r8 + rcx], 0
jne 0x180159291
mov rdx, rsi
test rcx, rcx
je 0x1801592d4
nop dword [rax]
nop word [rax + rax]
movsx eax, byte [rdx + r8]
xor eax, r9d
imul r9d, eax, 0x1000193
inc rdx
cmp rdx, rcx
jb 0x1801592b0
cmp r9d, 0x7c5cc931
je 0x18015939b
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x180159280
mov eax, esi
mov dword [0x180267ba4], eax
lea rcx, [0x180267bac]
call fcn.1801b3c00
movsxd rax, dword [0x180267ba4]
cmp byte [rax + rdi], 0
je 0x1801593ec
mov eax, dword [rbx + rbp]
cmp dword [0x180267b98], eax
jle 0x1801593d4
lea rcx, [0x180267b98]
call fcn.1801b3c6c
cmp dword [0x180267b98], 0xffffffff
jne 0x1801593d4
mov rcx, qword [0x1802676e0]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
test rax, rax
je 0x1801593c2
mov r8, qword [r10 + 0x10]
mov rcx, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rcx
cmp byte [r8 + rcx], 0
jne 0x180159354
mov rdx, rsi
test rcx, rcx
je 0x180159390
nop word [rax + rax]
movsx eax, byte [rdx + r8]
xor eax, r9d
imul r9d, eax, 0x1000193
inc rdx
cmp rdx, rcx
jb 0x180159370
cmp r9d, 0x7c5cc931
je 0x1801593b0
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x180159343
jmp 0x1801593c2
lea r8, str.m_bShieldEquipped
mov rdx, qword [r10 + 0x18]
call fcn.1801b3800
jmp 0x1801592df
lea r8, str.m_flChargeMeter
mov rdx, qword [r10 + 0x18]
call fcn.1801b3800
mov esi, eax
mov dword [0x180267ba0], esi
lea rcx, [0x180267b98]
call fcn.1801b3c00
movsxd rax, dword [0x180267ba0]
vmovss xmm0, dword [rax + rdi]
vucomiss xmm0, dword [0x18023bde4]
jp 0x1801593ec
je 0x18015941e
test r14, r14
je 0x18015941a
mov rax, qword [r14]
mov rdx, qword [rax + 0xbe8]
mov rcx, r14
call rdx
cmp eax, 0x3b
jne 0x18015941a
cmp dword [0x180267804], 2
jne 0x18015941a
mov rcx, r14
call fcn.180158f60
test al, al
jne 0x18015941e
mov al, 1
jmp 0x180159420
xor al, al
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret