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

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov rax, qword [0x140332240]
xor rax, rsp
mov qword [rbp + 0x38], rax
mov byte [rsp + 0x40], r9b
mov r10, rdx
mov rdi, rcx
mov dword [rbp + 0x28], r8d
xor ebx, ebx
movss xmm6, dword [rbp + 0xc8]
movaps xmm7, xmm6
cmp r8d, 9
jne 0x1400396cc
movss xmm0, dword [rcx]
jmp 0x1400396d4
movss xmm0, dword [0x1402f3050]
mulss xmm6, xmm0
mov ecx, dword [rcx + 0x74]
inc ecx
mov dword [rdi + 0x74], ecx
mov eax, 0x14f8b589
imul ecx
sar edx, 0xd
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x186a0
sub ecx, eax
inc ecx
mov dword [rbp + 0x20], ecx
mov qword [rbp + 0x18], rbx
mov r13, qword [rdi + 8]
mov r14, qword [rdi + 0x10]
cmp qword [r10 + 0x18], 0xf
jbe 0x140039714
mov r10, qword [r10]
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], rbx
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [r10 + r8], bl
jne 0x140039730
mov rdx, r10
lea rcx, [rbp - 0x40]
call fcn.140016ce0
nop
lea rdx, [rbp - 0x40]
mov r15, qword [rbp - 0x40]
mov r12, qword [rbp - 0x28]
cmp r12, 0xf
cmova rdx, r15
movabs r9, 0xcbf29ce484222325
mov rcx, rbx
mov rbx, qword [rbp - 0x30]
test rbx, rbx
je 0x140039793
movabs r8, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
xor r9, rax
imul r9, r8
inc rcx
cmp rcx, rbx
jb 0x140039780
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x20]
lea rcx, [r14 + 0x78]
call fcn.140016850
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x1400397b4
mov rcx, qword [r14 + 0x80]
cmp rcx, qword [r14 + 0x80]
jne 0x140039870
movabs rax, 0x7fffffffffffffff
sub rax, rbx
cmp rax, 0x11
jb 0x140039d78
lea rax, [rbp - 0x40]
cmp r12, 0xf
cmova rax, r15
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x11
lea r9, str.Couldnt_find_ID
lea rcx, [rbp - 8]
call fcn.1400191e0
nop
mov r8d, 0x16
lea rdx, str.__reverted_to_default_
lea rcx, [rbp - 8]
call fcn.140019680
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
xor r12d, r12d
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], r12
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x50], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], r12b
lea rcx, [rbp - 0x60]
call fcn.140016e20
nop
lea rcx, [rbp - 8]
call fcn.140016e20
lea edx, [r12 + 1]
mov rcx, r14
call fcn.140014d10
jmp 0x140039877
mov rax, qword [rcx + 0x30]
xor r12d, r12d
lea rcx, [rbp + 0x18]
mov qword [rsp + 0x20], rcx
mov r9b, 1
xor r8d, r8d
mov rdx, qword [rax + 0x18]
mov rcx, r13
call qword [sym.imp.fmod.dll_public:_enum_FMOD_RESULT___cdecl_FMOD::System::playSound_class_FMOD::Sound____ptr64__class_FMOD::ChannelGroup____ptr64__bool__class_FMOD::Channel____ptr64____ptr64____ptr64]
nop
lea rcx, [rbp - 0x40]
call fcn.140016e20
mov r15, qword [rbp + 0x18]
test r15, r15
je 0x140039d3e
lea r14, [rdi + 0x58]
mov rsi, qword [r14]
mov rax, qword [rsi + 8]
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x18], r12d
mov rbx, rsi
mov ecx, dword [rbp + 0x20]
cmp byte [rax + 0x19], 0
jne 0x1400398f6
nop dword [rax]
mov qword [rbp - 0x20], rax
cmp dword [rax + 0x20], ecx
jge 0x1400398e3
mov dword [rbp - 0x18], r12d
mov rax, qword [rax + 0x10]
jmp 0x1400398f0
mov dword [rbp - 0x18], 1
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1400398d0
cmp byte [rbx + 0x19], 0
jne 0x140039905
cmp ecx, dword [rbx + 0x20]
jge 0x140039999
movabs rax, 0x249249249249249
cmp qword [r14 + 8], rax
je 0x140039d72
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], r12
mov ecx, 0x70
call fcn.14026cc5c
mov r8, rax
mov eax, dword [rbp + 0x20]
mov dword [r8 + 0x20], eax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [r8 + 0x28], xmm0
movups xmmword [r8 + 0x38], xmm0
movups xmmword [r8 + 0x48], xmm0
movups xmmword [r8 + 0x58], xmm0
mov qword [r8 + 0x68], rax
mov qword [r8 + 0x30], rax
mov dword [r8 + 0x38], 0x3f800000
mov byte [r8 + 0x3c], al
mov qword [r8 + 0x40], rax
mov byte [r8 + 0x48], al
mov dword [r8 + 0x4c], 0x3f800000
mov qword [r8], rsi
mov qword [r8 + 8], rsi
mov qword [r8 + 0x10], rsi
mov word [r8 + 0x18], ax
movups xmm0, xmmword [rbp - 0x20]
movaps xmmword [rbp - 0x60], xmm0
lea rdx, [rbp - 0x60]
mov rcx, r14
call fcn.14003a500
mov rbx, rax
mov qword [rbx + 0x28], r15
lea rax, [rbx + 0x30]
lea rcx, [rsp + 0x58]
cmp rax, rcx
je 0x1400399b2
mov qword [rax], 0
movss dword [rbx + 0x38], xmm6
mov byte [rbx + 0x3c], 0
mov qword [rbx + 0x40], 0
mov byte [rbx + 0x48], 0
movss dword [rbx + 0x4c], xmm7
movzx eax, byte [rsp + 0x78]
mov byte [rbx + 0x50], al
movzx eax, byte [rsp + 0x79]
mov byte [rbx + 0x51], al
movzx eax, byte [rsp + 0x7a]
mov byte [rbx + 0x52], al
movzx eax, byte [rsp + 0x7b]
mov byte [rbx + 0x53], al
movzx eax, byte [rsp + 0x7c]
mov byte [rbx + 0x54], al
movzx eax, byte [rsp + 0x7d]
mov byte [rbx + 0x55], al
movzx eax, byte [rsp + 0x7e]
mov byte [rbx + 0x56], al
movzx eax, byte [rsp + 0x7f]
mov byte [rbx + 0x57], al
movzx eax, byte [rbp - 0x80]
mov byte [rbx + 0x58], al
movzx eax, byte [rbp - 0x7f]
mov byte [rbx + 0x59], al
movzx eax, byte [rbp - 0x7e]
mov byte [rbx + 0x5a], al
movzx eax, byte [rbp - 0x7d]
mov byte [rbx + 0x5b], al
movzx eax, byte [rbp - 0x7c]
mov byte [rbx + 0x5c], al
movzx eax, byte [rbp - 0x7b]
mov byte [rbx + 0x5d], al
movzx eax, byte [rbp - 0x7a]
mov byte [rbx + 0x5e], al
movzx eax, byte [rbp - 0x79]
mov byte [rbx + 0x5f], al
movzx eax, byte [rbp - 0x78]
mov byte [rbx + 0x60], al
movzx eax, byte [rbp - 0x77]
mov byte [rbx + 0x61], al
movzx eax, byte [rbp - 0x76]
mov byte [rbx + 0x62], al
movzx eax, byte [rbp - 0x75]
mov byte [rbx + 0x63], al
movzx eax, byte [rbp - 0x74]
mov byte [rbx + 0x64], al
movzx eax, byte [rbp - 0x73]
mov byte [rbx + 0x65], al
movzx eax, byte [rbp - 0x72]
mov byte [rbx + 0x66], al
movzx eax, byte [rbp - 0x71]
mov byte [rbx + 0x67], al
movzx eax, byte [rbp - 0x70]
mov byte [rbx + 0x68], al
movzx eax, byte [rbp - 0x6f]
mov byte [rbx + 0x69], al
movzx eax, byte [rbp - 0x6e]
mov byte [rbx + 0x6a], al
movzx eax, byte [rbp - 0x6d]
mov byte [rbx + 0x6b], al
movzx eax, byte [rbp - 0x6c]
mov byte [rbx + 0x6c], al
movzx eax, byte [rbp - 0x6b]
mov byte [rbx + 0x6d], al
movzx eax, byte [rbp - 0x6a]
mov byte [rbx + 0x6e], al
movzx eax, byte [rbp - 0x69]
mov byte [rbx + 0x6f], al
mov r8, qword [r14]
mov rax, qword [r8 + 8]
mov rdx, r8
mov ecx, dword [rbp + 0x20]
cmp byte [rax + 0x19], 0
jne 0x140039ade
cmp dword [rax + 0x20], ecx
jge 0x140039ad2
mov rax, qword [rax + 0x10]
jmp 0x140039ad8
mov rdx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140039ac7
cmp byte [rdx + 0x19], 0
jne 0x140039af6
cmp ecx, dword [rdx + 0x20]
jl 0x140039af6
cmp rdx, r8
je 0x140039af6
movss dword [rdx + 0x38], xmm6
mov ecx, dword [rbp + 0x20]
mov r9, qword [r14]
mov rax, qword [r9 + 8]
mov rdx, r9
mov r8, r9
cmp byte [rax + 0x19], 0
jne 0x140039b2b
nop dword [rax]
cmp dword [rax + 0x20], ecx
jge 0x140039b1b
mov rax, qword [rax + 0x10]
jmp 0x140039b21
mov rdx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140039b10
mov r8, qword [rdi + 0x58]
cmp byte [rdx + 0x19], 0
jne 0x140039b5f
cmp ecx, dword [rdx + 0x20]
jl 0x140039b5f
test r12b, r12b
cmovne r8, r9
cmp rdx, r8
je 0x140039b5f
mov rcx, qword [rdx + 0x28]
cmp byte [rsp + 0x40], 0
jne 0x140039b51
xor edx, edx
jmp 0x140039b56
mov edx, 0xffffffff
call qword [sym.imp.fmod.dll_public:_enum_FMOD_RESULT___cdecl_FMOD::Channel::setLoopCount_int____ptr64]
mov ecx, dword [rbp + 0x20]
mov r9, qword [rdi + 0x58]
mov rax, qword [r9 + 8]
mov rdx, r9
mov r8, r9
cmp byte [rax + 0x19], 0
jne 0x140039b8a
cmp dword [rax + 0x20], ecx
jge 0x140039b7e
mov rax, qword [rax + 0x10]
jmp 0x140039b84
mov rdx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140039b73
cmp byte [rdx + 0x19], 0
jne 0x140039bb6
cmp ecx, dword [rdx + 0x20]
jl 0x140039bb6
test r12b, r12b
cmovne r8, r9
cmp rdx, r8
je 0x140039bb6
movss xmm1, dword [rbp + 0xc0]
mov rcx, qword [rdx + 0x28]
call qword [sym.imp.fmod.dll_public:_enum_FMOD_RESULT___cdecl_FMOD::ChannelControl::setPitch_float____ptr64]
mov ecx, dword [rbp + 0x20]
mov r9, qword [rdi + 0x58]
mov rax, qword [r9 + 8]
mov r8, r9
mov rdx, r9
cmp byte [rbp + 0xd0], 0
je 0x140039c85
cmp byte [rax + 0x19], 0
jne 0x140039bee
cmp dword [rax + 0x20], ecx
jge 0x140039be2
mov rax, qword [rax + 0x10]
jmp 0x140039be8
mov r8, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140039bd7
cmp byte [r8 + 0x19], 0
jne 0x140039c2a
cmp ecx, dword [r8 + 0x20]
jl 0x140039c2a
test r12b, r12b
cmovne rdx, r9
cmp r8, rdx
je 0x140039c31
add r8, 0x30
mov r9, qword [rbp + 0xd8]
cmp r8, r9
je 0x140039c31
mov eax, dword [r9]
mov dword [r8], eax
mov eax, dword [r9 + 4]
mov dword [r8 + 4], eax
mov ecx, dword [rbp + 0x20]
jmp 0x140039c31
test r12b, r12b
cmove rdx, r9
mov r9, qword [rdi + 0x58]
mov rax, qword [r9 + 8]
mov r8, r9
cmp byte [rax + 0x19], 0
jne 0x140039c59
cmp dword [rax + 0x20], ecx
jge 0x140039c4d
mov rax, qword [rax + 0x10]
jmp 0x140039c53
mov r8, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140039c42
cmp byte [r8 + 0x19], 0
jne 0x140039c66
cmp ecx, dword [r8 + 0x20]
jge 0x140039c69
mov r8, r9
cmp r8, rdx
je 0x140039c7c
movss xmm0, dword [rbp + 0xe0]
movss dword [r8 + 0x40], xmm0
mov byte [rbx + 0x48], 1
jmp 0x140039d0d
cmp byte [rax + 0x19], 0
jne 0x140039ca7
nop dword [rax + rax]
cmp dword [rax + 0x20], ecx
jge 0x140039c9b
mov rax, qword [rax + 0x10]
jmp 0x140039ca1
mov rdx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140039c90
cmp byte [rdx + 0x19], 0
jne 0x140039cc3
cmp ecx, dword [rdx + 0x20]
jl 0x140039cc3
test r12b, r12b
cmovne r8, r9
cmp rdx, r8
je 0x140039cc3
movss dword [rdx + 0x38], xmm6
movss xmm1, dword [rdi + 0x70]
mulss xmm1, xmm6
mov rcx, qword [rbx + 0x28]
cmp dword [rbx + 0x44], 9
je 0x140039cdb
mulss xmm1, dword [rdi + 4]
call qword [sym.imp.fmod.dll_public:_enum_FMOD_RESULT___cdecl_FMOD::ChannelControl::setVolume_float____ptr64]
xor edx, edx
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.fmod.dll_public:_enum_FMOD_RESULT___cdecl_FMOD::ChannelControl::setPaused_bool____ptr64]
mov r9d, eax
test eax, eax
je 0x140039d0d
mov ecx, eax
call fcn.14003afb0
mov r8, rax
mov edx, r9d
lea rcx, str.FMOD_error____d___s_n
call fcn.14003af50
cmp dword [rbp + 0x28], 0
jl 0x140039d3e
lea rcx, [rdi + 0x18]
lea r8, [rbp + 0x28]
lea rdx, [rbp - 0x20]
call fcn.140039f80
mov rcx, qword [rax]
add rcx, 0x28
lea r8, [rbp + 0x20]
lea rdx, [rbp - 0x60]
call fcn.14003a1e0
mov eax, dword [rbp + 0x28]
mov dword [rbx + 0x44], eax
mov eax, dword [rbp + 0x20]
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.14026cac0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x58]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140036840
nop
call fcn.140016b20
nop
int3