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

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x128]
sub rsp, 0x1e8
movaps xmmword [rax - 0x58], xmm6
movaps xmmword [rax - 0x68], xmm7
movaps xmmword [rax - 0x78], xmm8
movaps xmmword [rax - 0x88], xmm11
movaps xmmword [rax - 0x98], xmm12
movaps xmmword [rax - 0xa8], xmm13
mov r15, rdx
mov rdi, rcx
xor r14d, r14d
mov rcx, qword [rcx + 0x20]
mov r9, qword [rdi + 0x28]
sub r9, rcx
movabs rax, 0x2aaaaaaaaaaaaaab
imul r9
mov r12, rdx
sar r12, 2
mov rax, r12
shr rax, 0x3f
add r12, rax
jne 0x180169313
mov qword [rdi + 8], r14
mov byte [rdi + 0x3d], r14b
mov dword [rdi + 0x38], r14d
mov byte [rdi + 0x4d], r14b
jmp 0x180169dec
mov rax, qword [rcx]
cmp qword [rdi + 0x50], rax
je 0x180169332
lea rcx, [rbp + 0x130]
call fcn.1800b6ac0
mov rcx, qword [rax]
mov qword [0x18028c438], rcx
mov rcx, qword [rdi + 0x20]
mov rax, qword [rcx]
mov qword [rdi + 0x50], rax
mov eax, dword [rcx + 8]
mov dword [rdi + 0x58], eax
mov eax, dword [rcx + 0xc]
mov dword [rdi + 0x5c], eax
mov eax, dword [rcx + 0x10]
mov dword [rdi + 0x60], eax
mov ecx, dword [0x18028ab2c]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rcx*8]
mov qword [rbp], rax
mov ecx, 4
mov eax, dword [rcx + rax]
cmp dword [0x1802a3498], eax
jle 0x1801693a3
lea rcx, [0x1802a3498]
call fcn.1801d1cb0
cmp dword [0x1802a3498], 0xffffffff
jne 0x1801693a3
lea rcx, [0x1801e4050]
call fcn.1801d20f0
lea rcx, [0x1802a3498]
call fcn.1801d1c44
mov qword [rsp + 0x64], r14
mov dword [rsp + 0x60], r14d
lea rdx, [rsp + 0x60]
mov rcx, r15
call qword [0x180284fc8]
mov rdx, qword [0x18028cc88]
cmp rdx, qword [0x18028cc90]
je 0x1801693e9
movss xmm0, dword [rsp + 0x68]
movss dword [rdx], xmm0
mov r8, qword [0x18028cc88]
add r8, 4
mov qword [0x18028cc88], r8
jmp 0x180169401
lea r8, [rsp + 0x68]
lea rcx, [0x18028cc80]
call fcn.180164210
mov r8, qword [0x18028cc88]
mov rax, r8
mov rcx, qword [0x18028cc80]
sub rax, rcx
sar rax, 2
cmp rax, 0xa
jbe 0x18016943d
lea rdx, [rcx + 4]
sub r8, rdx
call sub.VCRUNTIME140.dll_memmove
mov r8, qword [0x18028cc88]
sub r8, 4
mov qword [0x18028cc88], r8
mov rcx, qword [0x18028cc80]
mov sil, 1
cmp rcx, r8
je 0x18016946f
movss xmm2, dword [0x18025de50]
movss xmm1, dword [0x18025e2b0]
movss xmm0, dword [rcx]
comiss xmm2, xmm0
jb 0x180169463
comiss xmm0, xmm1
jae 0x180169466
xor sil, sil
add rcx, 4
cmp rcx, r8
jne 0x180169455
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x48]
movss xmm11, dword [rax]
movss dword [rsp + 0x30], xmm11
movss xmm12, dword [rax + 4]
movss dword [rsp + 0x34], xmm12
movss xmm13, dword [rax + 8]
movss dword [rsp + 0x38], xmm13
test sil, sil
je 0x1801695f8
cmp byte [0x18028c9b0], r14b
jne 0x1801695f8
cmp byte [0x18028cc04], r14b
jne 0x1801695f8
xor sil, sil
movss dword [rsp + 0x40], xmm11
movss dword [rsp + 0x44], xmm12
movaps xmm0, xmm13
subss xmm0, dword [0x18025e164]
movss dword [rsp + 0x48], xmm0
mov qword [rbp - 0x6c], r14
mov dword [rbp - 0x70], r14d
mov qword [rbp - 0x60], r14
mov dword [rbp - 0x64], r14d
mov qword [rbp - 0x54], r14
mov dword [rbp - 0x58], r14d
mov dword [rbp - 0x4c], r14d
mov qword [rbp - 0x48], r14
mov dword [rbp - 0x40], r14d
mov qword [rbp - 0x3c], r14
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x20], r14d
mov word [rbp - 0x1c], r14w
mov qword [rbp - 0x18], r14
mov dword [rbp - 0x10], r14d
lea rax, vtable.CTraceFilterHitscan.0
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], r15
mov rcx, r15
call fcn.1800cb5d0
mov rbx, rax
mov rcx, r15
call fcn.1800cb4d0
mov qword [rbp + 0x14], r14
mov dword [rbp + 0x10], r14d
mov qword [rbp + 0x1c], r14
mov qword [rbp + 0x24], r14
mov qword [rbp + 0x2c], r14
mov qword [rbp + 0x34], r14
mov qword [rbp + 0x3c], r14
mov qword [rbp + 0x44], r14
mov dword [rbp + 0x4c], r14d
mov word [rbp + 0x50], r14w
mov qword [rsp + 0x20], rbx
mov r9, rax
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x10]
call fcn.180154410
mov rcx, qword [0x18028c7b8]
mov rax, qword [rcx]
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x50]
mov r8d, 0x201400b
lea rdx, [rbp + 0x10]
call qword [rax + 0x20]
movss xmm0, dword [0x18025df58]
comiss xmm0, dword [rbp - 0x44]
ja 0x1801695cb
cmp byte [rbp - 0x3a], sil
jne 0x1801695cb
cmp byte [rbp - 0x39], sil
je 0x1801695f8
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1801695f8
add rcx, 0x10
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x1801695f8
mov ecx, dword [rax + 0x28]
sub ecx, 0x56
je 0x1801695f5
sub ecx, 2
je 0x1801695f5
cmp ecx, 1
jne 0x1801695f8
mov sil, 1
mov rbx, qword [rdi + 0x20]
movss xmm6, dword [rbx + 8]
movss xmm2, dword [rbx + 0xc]
movss xmm1, dword [rbx + 0x10]
test sil, sil
je 0x180169614
movaps xmm1, xmm13
subss xmm1, xmm13
subss xmm2, xmm12
movaps xmm0, xmm6
subss xmm0, xmm11
mulss xmm0, xmm0
mulss xmm2, xmm2
addss xmm0, xmm2
mulss xmm1, xmm1
addss xmm0, xmm1
cvtps2pd xmm8, xmm0
movss xmm7, dword [0x18025e0e0]
movzx r13d, byte [0x18029e311]
test r13b, r13b
je 0x180169658
movaps xmm0, xmm7
jmp 0x180169660
movss xmm0, dword [0x18025e0fc]
cvtps2pd xmm0, xmm0
movsd xmm1, qword [0x18025dfa8]
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
lea r15, [rdi + 0x28]
comisd xmm0, xmm8
jbe 0x18016971d
mov rax, qword [rbx]
mov qword [rdi + 8], rax
movss dword [rdi + 0x10], xmm6
mov eax, dword [rbx + 0xc]
mov dword [rdi + 0x14], eax
lea rcx, [rbx + 0x10]
mov eax, dword [rcx]
mov dword [rdi + 0x18], eax
mov r9, qword [r15]
lea r8, [rbx + 0x18]
cmp r8, r9
je 0x1801696db
lea rdx, [r8 + 0x10]
nop word [rax + rax]
mov rax, qword [r8]
mov qword [rbx], rax
mov eax, dword [rdx - 8]
mov dword [rcx - 8], eax
mov eax, dword [rdx - 4]
mov dword [rcx - 4], eax
mov eax, dword [rdx]
mov dword [rcx], eax
lea rbx, [rbx + 0x18]
lea rcx, [rcx + 0x18]
add r8, 0x18
lea rdx, [rdx + 0x18]
cmp r8, r9
jne 0x1801696b0
add qword [r15], 0xffffffffffffffe8
lea rcx, [rbp + 0x130]
call fcn.1800b6ac0
mov rcx, qword [rax]
mov qword [0x18028c438], rcx
sub r12, 1
je 0x180169dec
lea rcx, [rbp + 0x130]
call fcn.1800b6ac0
mov rcx, qword [rax]
mov qword [0x18028c418], rcx
movzx r13d, byte [0x18029e311]
mov rbx, qword [rdi + 0x20]
movss xmm0, dword [rbx + 8]
movss dword [rsp + 0x40], xmm0
movss xmm1, dword [rbx + 0xc]
movss dword [rsp + 0x44], xmm1
movss xmm0, dword [rbx + 0x10]
movss dword [rsp + 0x48], xmm0
test sil, sil
je 0x18016974e
movss dword [rsp + 0x48], xmm13
mov rcx, qword [r15]
sub rcx, rbx
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
movabs rsi, 0x431bde82d7b634db
cmp rdx, 1
jbe 0x1801699d5
movss xmm2, dword [rbx + 0x28]
subss xmm2, xmm13
movss xmm0, dword [rbx + 0x24]
subss xmm0, xmm12
movss xmm1, dword [rbx + 0x20]
subss xmm1, xmm11
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm1, xmm0
mulss xmm2, xmm2
addss xmm1, xmm2
cvtps2pd xmm6, xmm1
test r13b, r13b
jne 0x1801697c5
movss xmm7, dword [0x18025e0fc]
xorps xmm0, xmm0
cvtss2sd xmm0, xmm7
movsd xmm1, qword [0x18025dfa8]
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
comisd xmm0, xmm6
jbe 0x1801699d5
lea rcx, [rbx + 0x18]
mov rax, qword [rcx]
mov qword [rdi + 8], rax
mov eax, dword [rcx + 8]
mov dword [rdi + 0x10], eax
mov eax, dword [rcx + 0xc]
mov dword [rdi + 0x14], eax
mov eax, dword [rcx + 0x10]
mov dword [rdi + 0x18], eax
cmp rbx, rcx
je 0x18016984f
mov r8, qword [r15]
cmp rcx, r8
je 0x18016984c
lea rdx, [rbx + 0x10]
add rcx, 0x10
nop word [rax + rax]
mov rax, qword [rcx - 0x10]
mov qword [rbx], rax
mov eax, dword [rcx - 8]
mov dword [rdx - 8], eax
mov eax, dword [rcx - 4]
mov dword [rdx - 4], eax
mov eax, dword [rcx]
mov dword [rdx], eax
add rbx, 0x18
lea rdx, [rdx + 0x18]
lea rcx, [rcx + 0x18]
lea rax, [rcx - 0x10]
cmp rax, r8
jne 0x180169820
mov qword [r15], rbx
cmp r12, 2
je 0x180169dec
lea rcx, [rbp + 0x130]
call fcn.1800b6ac0
mov rcx, qword [rax]
mov qword [0x18028c418], rcx
mov r15, qword [rbp + 0x138]
mov rcx, r15
call fcn.1800ef100
mov rcx, qword [0x18028c748]
mov rdx, qword [rcx]
mov r8, qword [rdx + 0x20]
mov eax, dword [rax]
mov dword [rbp + 0x130], eax
lea rdx, [rbp + 0x130]
call r8
mov rbx, rax
test rax, rax
je 0x180169ccf
lea rcx, [rax + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x40]
test al, al
jne 0x180169ccf
mov rax, qword [rbx]
mov rdx, qword [rax + 0xbe8]
mov rcx, rbx
call rdx
mov esi, eax
cmp eax, 0x11
je 0x1801698e0
cmp eax, 0x63
je 0x1801698e0
cmp eax, 0x4d
jne 0x180169b78
mov rcx, r15
call fcn.1800cb7d0
test dword [rax], 0x200
jne 0x180169b78
mov rax, qword [rbx]
mov rdx, qword [rax + 0xbe8]
mov rcx, rbx
call rdx
cmp eax, 0x63
jne 0x180169b61
mov rax, qword [rbp]
mov ecx, 4
mov eax, dword [rcx + rax]
cmp dword [0x18028cc64], eax
jle 0x1801699c2
lea rcx, [0x18028cc64]
call fcn.1801d1cb0
cmp dword [0x18028cc64], 0xffffffff
jne 0x1801699c2
mov rcx, qword [0x18028c720]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
test rax, rax
je 0x1801699ad
mov r9, qword [r10 + 0x10]
mov rcx, 0xffffffffffffffff
mov r8d, 0x811c9dc5
inc rcx
cmp byte [r9 + rcx], 0
jne 0x180169963
mov rdx, r14
test rcx, rcx
je 0x1801699a4
nop word [rax + rax]
movsx eax, byte [rdx + r9]
xor eax, r8d
imul r8d, eax, 0x1000193
inc rdx
cmp rdx, rcx
jb 0x180169980
cmp r8d, 0xb2dadc71
je 0x180169b4c
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x180169952
mov eax, r14d
mov dword [0x18028cc70], eax
lea rcx, [0x18028cc64]
call fcn.1801d1c44
movsxd rax, dword [0x18028cc70]
cmp byte [rax + rbx], 0
sete al
jmp 0x180169b70
imul ebx, dword [0x18029d714], 0x3e8
lea rcx, [rbp + 0x130]
call fcn.1800b6ac0
mov rcx, qword [rbp + 0x130]
sub rcx, qword [0x18028c438]
mov rax, rsi
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov eax, ebx
cmp rdx, rax
jge 0x18016986f
mov qword [rsp + 0x54], r14
mov dword [rsp + 0x50], r14d
lea rdx, [rsp + 0x50]
mov r15, qword [rbp + 0x138]
mov rcx, r15
call qword [0x180284fc8]
movss xmm0, dword [rsp + 0x50]
movdqa xmm1, xmmword [0x18025eaf0]
andps xmm0, xmm1
movss xmm2, dword [0x18025de10]
comiss xmm2, xmm0
jbe 0x180169b31
movss xmm0, dword [rsp + 0x54]
andps xmm0, xmm1
comiss xmm2, xmm0
jbe 0x180169b31
movzx ebx, byte [0x180297121]
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r14
lea rax, str.Spent_too_much_time_on_the_crumb__assuming_were_stuck
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], 0x35
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
movaps xmm1, xmmword [rbp - 0x80]
movdqa xmmword [rbp - 0x80], xmm1
lea r8, [rsp + 0x70]
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x60]
call fcn.1800bd840
nop
lea rsi, [rbp + 0x60]
cmp qword [rbp + 0x78], 0xf
cmova rsi, qword [rbp + 0x60]
mov dword [rbp + 0x148], 0xff8383ff
test bl, bl
je 0x180169b23
mov rcx, qword [0x18028c728]
mov rax, qword [rcx]
lea r9, str.CNavEngine
lea r8, str.__s_
lea rdx, [rbp + 0x148]
call qword [rax + 0xb8]
mov rcx, qword [0x18028c728]
mov rax, qword [rcx]
mov dword [rbp + 0x130], 0xffffffff
mov r9, rsi
lea r8, [0x18025dc84]
lea rdx, [rbp + 0x130]
call qword [rax + 0xb8]
nop
lea rcx, [rbp + 0x60]
call fcn.1800a3670
jmp 0x180169876
lea rcx, [rbp + 0x130]
call fcn.1800b6ac0
mov rcx, qword [rax]
mov qword [0x18028c418], rcx
jmp 0x180169876
lea r8, str.m_bCharging
mov rdx, qword [r10 + 0x18]
call fcn.1801d1920
jmp 0x1801699b0
mov edx, 1
mov rcx, r15
call fcn.1800cc030
xor al, 1
test al, al
je 0x180169ccf
cmp esi, 0x12
mov rsi, qword [rbp + 0x140]
jne 0x180169b91
test dword [rsi + 0x28], 0x800
jne 0x180169ccf
cmp byte [0x18028c5ce], 0
jne 0x180169bb1
mov rax, qword [rdi + 0x20]
movss xmm0, dword [rax + 0x10]
subss xmm0, xmm13
comiss xmm0, dword [0x18025e0a0]
jbe 0x180169bd3
lea rcx, [rbp + 0x130]
call fcn.1800b6ac0
mov rax, qword [rbp + 0x130]
sub rax, qword [0x18028c420]
cmp rax, 0xbebc200
jge 0x180169c45
lea rcx, [rbp + 0x130]
call fcn.1800b6ac0
mov rcx, qword [rbp + 0x130]
sub rcx, qword [0x18028c420]
cmp rcx, 0xbebc200
jl 0x180169ccf
mov eax, dword [0x1802a0314]
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
lea rcx, [rbp + 0x130]
call fcn.1800b6ac0
mov rcx, qword [rbp + 0x130]
sub rcx, qword [0x18028c418]
movabs rax, 0x431bde82d7b634db
imul rcx
sar rdx, 0x12
mov rcx, rdx
shr rcx, 0x3f
add rdx, rcx
cmp rdx, rbx
jl 0x180169ccf
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi]
call fcn.180166230
test rax, rax
je 0x180169c60
test dword [rax + 4], 0x1008
jne 0x180169ccf
mov eax, 2
mov edx, 4
movzx ecx, byte [0x18028c5ce]
test cl, cl
cmovne eax, edx
or dword [rsi + 0x28], eax
test cl, cl
jne 0x180169c87
mov cl, 1
mov byte [0x18028c5ce], cl
jmp 0x180169c8e
mov r14d, dword [0x18028c5d8]
inc r14d
mov dword [0x18028c5d8], r14d
test cl, cl
je 0x180169ccf
mov rcx, r15
call fcn.1800cb7d0
test byte [rax], 1
je 0x180169ccf
cmp dword [0x18028c5d8], 3
jle 0x180169ccf
mov byte [0x18028c5ce], 0
lea rcx, [rbp + 0x130]
call fcn.1800b6ac0
mov rcx, qword [rax]
mov qword [0x18028c420], rcx
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x48]
mov rbx, rax
mov rcx, r15
call fcn.1800cb6d0
movss xmm0, dword [rax]
addss xmm0, dword [rbx]
movss dword [rsp + 0x30], xmm0
movss xmm1, dword [rbx + 4]
addss xmm1, dword [rax + 4]
movss dword [rsp + 0x34], xmm1
movss xmm0, dword [rbx + 8]
addss xmm0, dword [rax + 8]
movss dword [rsp + 0x38], xmm0
cmp byte [0x18028c818], 0
jne 0x180169db7
cmp dword [0x18029d594], 1
jle 0x180169d65
mov rax, qword [rdi + 0x20]
movss xmm0, dword [rax + 8]
movss dword [rbp + 0x130], xmm0
movss xmm1, dword [rax + 0xc]
movss dword [rbp + 0x134], xmm1
xor r9d, r9d
lea r8, [rsp + 0x30]
lea rdx, [rbp + 0x130]
mov rbx, qword [rbp + 0x140]
mov rcx, rbx
call fcn.180169090
jmp 0x180169dbe
jne 0x180169db7
cmp byte [0x180297821], 0
je 0x180169d79
cmp byte [0x18028cc98], 0
jne 0x180169db7
mov rax, qword [rdi + 0x20]
movss xmm0, dword [rax + 8]
movss dword [rbp + 0x130], xmm0
movss xmm1, dword [rax + 0xc]
movss dword [rbp + 0x134], xmm1
mov r9b, 1
lea r8, [rsp + 0x30]
lea rdx, [rbp + 0x130]
mov rbx, qword [rbp + 0x140]
mov rcx, rbx
call fcn.180169090
jmp 0x180169dbe
mov rbx, qword [rbp + 0x140]
mov ecx, dword [rdi + 0x38]
lea eax, [rcx - 5]
cmp eax, 1
jbe 0x180169dd1
lea eax, [rcx - 2]
cmp eax, 1
ja 0x180169ddc
mov byte [rdi + 0x4c], 1
mov byte [0x18028cac4], 1
lea r8, [rsp + 0x40]
mov rdx, r15
mov rcx, rbx
call fcn.1801cf540
lea r11, [rsp + 0x1e8]
movaps xmm6, xmmword [r11 - 0x18]
movaps xmm7, xmmword [r11 - 0x28]
movaps xmm8, xmmword [r11 - 0x38]
movaps xmm11, xmmword [r11 - 0x48]
movaps xmm12, xmmword [r11 - 0x58]
movaps xmm13, xmmword [r11 - 0x68]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret