Function at 0x180040290
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
movaps xmmword [rax - 0x38], xmm6
xor r12d, r12d
movaps xmmword [rax - 0x48], xmm7
mov rbx, rcx
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
movaps xmmword [rax - 0x78], xmm10
mov qword [rcx + 4], r12
mov dword [rcx], r12d
test dl, dl
je 0x1800403ab
mov rcx, qword [0x1801a8d08]
call fcn.18003e254
lea rdx, [rbp - 0x49]
mov rcx, rax
call fcn.18003dfd4
mov r14, qword [0x1801a8d08]
xorps xmm6, xmm6
mov r15d, dword [0x1801a8584]
mov esi, 4
movss xmm0, dword [rax + 8]
movss xmm1, dword [rax + 4]
movss dword [rbp - 0x31], xmm0
movss xmm0, dword [rax]
mov eax, dword [rbp - 0x31]
addss xmm1, dword [0x18015747c]
unpcklps xmm0, xmm1
movsd qword [rbx], xmm0
mov dword [rbx + 8], eax
test r14, r14
jne 0x180040344
and dword [rbp - 0x39], r12d
and dword [rbp - 0x35], r12d
and dword [rbp - 0x31], r12d
jmp 0x18004039e
mov rax, qword gs:[0x58]
mov rcx, qword [rax + r15*8]
mov eax, dword [rsi + rcx]
cmp dword [0x1801a9378], eax
jle 0x180040391
lea rcx, [0x1801a9378]
call fcn.180065450
cmp dword [0x1801a9378], 0xffffffff
jne 0x180040391
mov ecx, 0x1e3bf1a8
call fcn.180039ee8
lea rcx, [0x1801a9378]
mov r8, qword [rax]
mov qword [0x1801a90f0], r8
call fcn.1800653f0
mov rdx, r14
lea rcx, [rbp - 0x39]
call qword [0x1801a90f0]
movsd xmm0, qword [rbp - 0x39]
mov eax, dword [rbp - 0x31]
jmp 0x1800404ab
cmp byte [0x1801a8c26], r12b
xorps xmm6, xmm6
je 0x1800403f5
movss xmm0, dword [0x1801a8e20]
ucomiss xmm0, xmm6
jne 0x1800403de
movss xmm0, dword [0x1801a8e24]
ucomiss xmm0, xmm6
jne 0x1800403de
movss xmm0, dword [0x1801a8e28]
ucomiss xmm0, xmm6
je 0x1800403f5
movsd xmm0, qword [0x1801a8e20]
mov eax, dword [0x1801a8e28]
movsd qword [rcx], xmm0
mov dword [rcx + 8], eax
jmp 0x180040419
mov rcx, qword [0x1801a8bf0]
lea rdx, [rbp - 0x39]
mov r8d, 0x2f
call fcn.18003f440
movsd xmm0, qword [rax]
mov eax, dword [rax + 8]
movsd qword [rbx], xmm0
mov dword [rbx + 8], eax
mov rcx, qword [0x1801a8bf0]
call fcn.18003efe4
mov r15d, dword [0x1801a8584]
mov esi, 4
mov r14, qword [rax]
test r14, r14
jne 0x18004044f
and dword [rbp - 0x39], r12d
and dword [rbp - 0x35], r12d
and dword [rbp - 0x31], r12d
mov eax, dword [rbp - 0x31]
movsd xmm0, qword [rbp - 0x39]
jmp 0x1800404ab
mov rax, qword gs:[0x58]
mov rcx, qword [rax + r15*8]
mov eax, dword [rsi + rcx]
cmp dword [0x1801a982c], eax
jle 0x180040499
lea rcx, [0x1801a982c]
call fcn.180065450
cmp dword [0x1801a982c], 0xffffffff
jne 0x180040499
mov ecx, 0xcf100582
call fcn.18003af98
lea rcx, [0x1801a982c]
mov qword [0x1801a91e0], rax
call fcn.1800653f0
mov rax, qword [0x1801a91e0]
movsd xmm0, qword [r14 + rax]
mov eax, dword [r14 + rax + 8]
mov dword [rbp - 0x41], eax
movsd qword [rbp - 0x49], xmm0
call fcn.18003f9e4
mov rcx, rax
call fcn.1800621e8
mov r13, rax
test rax, rax
je 0x180040c3c
mov r8, qword [rax]
lea r10, [0x1800f37c0]
or r14d, 0xffffffff
test r8, r8
je 0x1800406e1
mov r8, qword [r8 + 0x10]
test r8, r8
je 0x1800406e1
mov edx, r14d
or rax, 0xffffffffffffffff
inc rax
cmp byte [r8 + rax], r12b
jne 0x1800404f7
test eax, eax
je 0x1800406e1
mov r9d, eax
movsx ecx, byte [r8]
mov eax, edx
xor rcx, rax
shr edx, 8
movzx eax, cl
inc r8
xor edx, dword [r10 + rax*4]
sub r9, 1
jne 0x18004050b
not edx
cmp edx, 0x479168ed
jne 0x1800406e1
call fcn.18003f9e4
mov rcx, rax
call fcn.18003f608
mov rcx, rax
call fcn.18003eee4
mov rcx, qword [rax]
call fcn.18003e83c
cmp dword [rax], 0x5bd8cc17
je 0x18004058a
call fcn.18003f9e4
mov rcx, rax
call fcn.18003f608
mov rcx, rax
call fcn.18003eee4
mov rcx, qword [rax]
call fcn.18003e83c
cmp dword [rax], 0x5f867078
je 0x18004058a
movsd xmm9, qword [0x1801574a0]
jmp 0x180040593
movsd xmm9, qword [0x1801574c0]
call fcn.18003f9e4
mov rcx, rax
call fcn.18003f0dc
lea rdx, [rbp - 0x29]
mov rcx, qword [rax]
call fcn.18003edd4
movss xmm7, dword [rbx]
movss xmm8, dword [rbx + 4]
movss xmm6, dword [rbx + 8]
movsd xmm0, qword [rax]
mov eax, dword [rax + 8]
movsd qword [rbp - 0x39], xmm0
subss xmm7, dword [rbp - 0x39]
subss xmm8, dword [rbp - 0x35]
mov dword [rbp - 0x31], eax
subss xmm6, dword [rbp - 0x31]
call fcn.180040210
movss xmm3, dword [0x18015743c]
movss xmm1, dword [rbp - 0x49]
mulss xmm1, dword [0x1801573f8]
divss xmm3, xmm0
xorps xmm0, xmm0
mulss xmm8, xmm8
mulss xmm7, xmm7
mulss xmm6, xmm6
addss xmm8, xmm7
addss xmm8, xmm6
sqrtss xmm0, xmm8
mulss xmm3, xmm0
movss xmm0, dword [rbp - 0x41]
mulss xmm0, dword [0x1801573f8]
mulss xmm1, xmm3
mulss xmm0, xmm3
addss xmm1, dword [rbx]
addss xmm0, dword [rbx + 8]
movss dword [rbx], xmm1
movss dword [rbx + 8], xmm0
call fcn.18003f9e4
mov rcx, rax
call fcn.18003f0dc
lea rdx, [rbp - 0x29]
mov rcx, qword [rax]
call fcn.18003edd4
movss xmm0, dword [rbx + 4]
subss xmm0, dword [rax + 4]
cvtps2pd xmm6, xmm0
call fcn.18003f9e4
mov rcx, rax
call fcn.18003f0dc
lea rdx, [rbp - 0x29]
mov rcx, qword [rax]
call fcn.18003edd4
movss xmm1, dword [rbx + 8]
movaps xmm0, xmm6
movss xmm2, dword [rbx]
subss xmm1, dword [rax + 8]
subss xmm2, dword [rax]
mulss xmm1, xmm1
mulss xmm2, xmm2
addss xmm1, xmm2
sqrtss xmm1, xmm1
cvtps2pd xmm7, xmm1
movaps xmm1, xmm7
call sub.api_ms_win_crt_math_l1_1_0.dll_atan2
call sub.api_ms_win_crt_math_l1_1_0.dll_cos
movaps xmm6, xmm0
call fcn.180040210
xorps xmm1, xmm1
cvtss2sd xmm1, xmm0
mulsd xmm6, xmm1
divsd xmm7, xmm6
mulsd xmm9, xmm7
mulsd xmm9, xmm7
cvtpd2ps xmm0, xmm9
jmp 0x180040c32
mov rax, qword gs:[0x58]
mov r12d, esi
mov r15, qword [rax + r15*8]
mov eax, dword [r15 + r12]
cmp dword [0x1801a9c0c], eax
jle 0x180040731
lea rcx, [0x1801a9c0c]
call fcn.180065450
cmp dword [0x1801a9c0c], 0xffffffff
jne 0x180040731
lea rcx, str.ItemModProjectile__Assembly_CSharp
call fcn.18003e1b8
lea rcx, [0x1801a9c0c]
mov qword [0x1801a95c8], rax
call fcn.1800653f0
cmp qword [0x1801a95c8], 0
je 0x180040c3c
mov rcx, r13
call fcn.18003e9b0
mov rsi, qword [rax]
test rsi, rsi
je 0x180040c3c
mov eax, dword [r15 + r12]
cmp dword [0x1801a9b80], eax
jle 0x180040791
lea rcx, [0x1801a9b80]
call fcn.180065450
cmp dword [0x1801a9b80], 0xffffffff
jne 0x180040791
mov ecx, 0xd10dec8f
call fcn.18003af98
lea rcx, [0x1801a9b80]
mov qword [0x1801a9c70], rax
call fcn.1800653f0
mov rax, qword [0x1801a9c70]
mov rax, qword [rsi + rax]
mov qword [rbp + 0x67], rax
test rax, rax
je 0x180040c3c
mov rsi, qword [0x1801a95c8]
test rsi, rsi
je 0x180040c3c
mov eax, dword [r15 + r12]
cmp dword [0x1801a9998], eax
jle 0x1800407fa
lea rcx, [0x1801a9998]
call fcn.180065450
cmp dword [0x1801a9998], 0xffffffff
jne 0x1800407fa
mov ecx, 0x726340ef
call fcn.180039ee8
lea rcx, [0x1801a9998]
mov r8, qword [rax]
mov qword [0x1801a98a0], r8
call fcn.1800653f0
mov rax, qword [0x1801a98a0]
mov rdx, rsi
mov rcx, qword [rbp + 0x67]
call rax
mov rsi, rax
test rax, rax
je 0x180040c3c
cmp byte [0x1801a8c11], 0
movss xmm7, dword [0x18015743c]
movss xmm9, dword [0x180157478]
je 0x180040836
movaps xmm8, xmm9
jmp 0x18004083a
movaps xmm8, xmm7
mov rax, qword [0x1801a8f18]
mov rcx, rsi
call rax
mov eax, dword [r15 + r12]
movaps xmm10, xmm0
cmp dword [0x1801a9268], eax
jle 0x180040888
lea rcx, [0x1801a9268]
call fcn.180065450
cmp dword [0x1801a9268], 0xffffffff
jne 0x180040888
mov ecx, 0xcdd491cf
call fcn.18003af98
lea rcx, [0x1801a9268]
mov qword [0x1801a9128], rax
call fcn.1800653f0
mov rax, qword [0x1801a9128]
mov rdx, qword [r13]
mulss xmm8, xmm10
mulss xmm8, dword [rax + r13]
test rdx, rdx
je 0x180040977
mov rdx, qword [rdx + 0x10]
test rdx, rdx
je 0x180040977
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], 0
jne 0x1800408b8
test eax, eax
je 0x180040977
mov r8d, eax
lea r9, [0x1800f37c0]
movsx ecx, byte [rdx]
mov eax, r14d
xor rcx, rax
shr r14d, 8
movzx eax, cl
inc rdx
xor r14d, dword [r9 + rax*4]
sub r8, 1
jne 0x1800408d3
not r14d
cmp r14d, 0x643e3521
jne 0x180040977
cmp byte [0x1801a8c11], r8b
je 0x18004090b
movaps xmm8, xmm9
jmp 0x18004090f
movaps xmm8, xmm7
mov rax, qword [0x1801a8f18]
mov rcx, rsi
call rax
mov eax, dword [r15 + r12]
movaps xmm7, xmm0
cmp dword [0x1801a9300], eax
jle 0x18004095f
lea rcx, [0x1801a9300]
call fcn.180065450
cmp dword [0x1801a9300], 0xffffffff
jne 0x18004095f
mov ecx, 0xe205489c
call fcn.180039ee8
lea rcx, [0x1801a9300]
mov rdx, qword [rax]
mov qword [0x1801a9b58], rdx
call fcn.1800653f0
mov rax, qword [0x1801a9b58]
xor edx, edx
mov rcx, r13
call rax
mulss xmm8, xmm7
mulss xmm8, xmm0
ucomiss xmm8, xmm6
je 0x180040c3c
mov eax, dword [r15 + r12]
cmp dword [0x1801a93a0], eax
jle 0x1800409bf
lea rcx, [0x1801a93a0]
call fcn.180065450
cmp dword [0x1801a93a0], 0xffffffff
jne 0x1800409bf
mov ecx, 0xc2fb7f15
call fcn.18003af98
lea rcx, [0x1801a93a0]
mov qword [0x1801a9450], rax
call fcn.1800653f0
mov rax, qword [0x1801a9450]
mov rcx, qword [rsi + rax]
test rcx, rcx
jne 0x1800409d3
xor esi, esi
jmp 0x180040a27
mov eax, dword [r15 + r12]
cmp dword [0x1801a9280], eax
mov rsi, qword [rcx + 0x10]
jle 0x180040a18
lea rcx, [0x1801a9280]
call fcn.180065450
cmp dword [0x1801a9280], 0xffffffff
jne 0x180040a18
mov ecx, 0xad5514be
call fcn.180039ee8
lea rcx, [0x1801a9280]
mov rdx, qword [rax]
mov qword [0x1801a9108], rdx
call fcn.1800653f0
mov rax, qword [0x1801a9108]
mov rcx, rsi
call rax
mov rsi, rax
lea rcx, str.Projectile__Assembly_CSharp
call fcn.18003e1b8
mov r14, rax
test rsi, rsi
je 0x180040c3c
test rax, rax
je 0x180040c3c
mov ecx, dword [r15 + r12]
cmp dword [0x1801a9428], ecx
jle 0x180040a89
lea rcx, [0x1801a9428]
call fcn.180065450
cmp dword [0x1801a9428], 0xffffffff
jne 0x180040a89
mov ecx, 0xe2084f16
call fcn.180039ee8
lea rcx, [0x1801a9428]
mov rdx, qword [rax]
mov qword [0x1801a90e0], rdx
call fcn.1800653f0
mov rax, qword [0x1801a90e0]
mov rdx, r14
mov rcx, rsi
call rax
mov rsi, rax
test rax, rax
je 0x180040c3c
call fcn.18003f9e4
mov rcx, rax
call fcn.18003f0dc
lea rdx, [rbp - 0x29]
mov rcx, qword [rax]
call fcn.18003edd4
movss xmm1, dword [rbx + 4]
xorps xmm4, xmm4
movss xmm2, dword [rbx + 8]
movsd xmm0, qword [rax]
mov eax, dword [rax + 8]
movsd qword [rbp - 0x39], xmm0
subss xmm1, dword [rbp - 0x35]
movss xmm0, dword [rbx]
subss xmm0, dword [rbp - 0x39]
mov dword [rbp - 0x31], eax
subss xmm2, dword [rbp - 0x31]
mulss xmm1, xmm1
mulss xmm0, xmm0
mulss xmm2, xmm2
addss xmm1, xmm0
movss xmm0, dword [rbp - 0x41]
mulss xmm0, dword [0x1801573f8]
addss xmm1, xmm2
sqrtss xmm4, xmm1
movss xmm1, dword [rbp - 0x49]
mulss xmm1, dword [0x1801573f8]
divss xmm4, xmm8
movaps xmm3, xmm4
mulss xmm1, xmm4
mulss xmm3, xmm0
addss xmm1, dword [rbx]
addss xmm3, dword [rbx + 8]
movss dword [rbx], xmm1
movss dword [rbx + 8], xmm3
call fcn.18003f9e4
mov rcx, rax
call fcn.18003f0dc
lea rdx, [rbp - 0x29]
mov rcx, qword [rax]
call fcn.18003edd4
movss xmm0, dword [rbx + 4]
subss xmm0, dword [rax + 4]
cvtps2pd xmm9, xmm0
call fcn.18003f9e4
mov rcx, rax
call fcn.18003f0dc
lea rdx, [rbp - 0x29]
mov rcx, qword [rax]
call fcn.18003edd4
movss xmm1, dword [rbx + 8]
xorps xmm7, xmm7
movss xmm0, dword [rbx]
subss xmm0, dword [rax]
subss xmm1, dword [rax + 8]
mov eax, dword [r15 + r12]
cmp dword [0x1801a92d8], eax
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
sqrtss xmm7, xmm0
jle 0x180040be3
lea rcx, [0x1801a92d8]
call fcn.180065450
cmp dword [0x1801a92d8], 0xffffffff
jne 0x180040be3
mov ecx, 0x24cf107d
call fcn.18003af98
lea rcx, [0x1801a92d8]
mov qword [0x1801a99b0], rax
call fcn.1800653f0
mov rax, qword [0x1801a99b0]
movaps xmm0, xmm9
cvtps2pd xmm7, xmm7
movss xmm6, dword [rax + rsi]
movaps xmm1, xmm7
call sub.api_ms_win_crt_math_l1_1_0.dll_atan2
call sub.api_ms_win_crt_math_l1_1_0.dll_cos
mulss xmm6, dword [0x1801573d4]
xorps xmm1, xmm1
cvtss2sd xmm1, xmm8
mulsd xmm0, xmm1
divsd xmm7, xmm0
cvtps2pd xmm0, xmm6
mulsd xmm0, xmm7
mulsd xmm7, qword [0x1801574b8]
mulsd xmm0, xmm7
cvtpd2ps xmm0, xmm0
addss xmm0, dword [rbx + 4]
movss dword [rbx + 4], xmm0
lea r11, [rsp + 0xa0]
mov rax, rbx
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret