Function at 0x14000ad10
Capabilities:
Check os version
Get common file path
Persist via contextmenuhandlers registry key
Query or enumerate registry value
Read .ini file
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0xb10]
sub rsp, 0xc10
mov rax, qword [0x140052010]
xor rax, rsp
mov qword [rbp + 0xb00], rax
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x8f0]
call fcn.14001bd50
mov dword [rbp - 0x70], 0x11c
xor edx, edx
mov r8d, 0x118
lea rcx, [rbp - 0x6c]
call fcn.14001bd50
xor edi, edi
mov dword [rsp + 0x54], edi
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x14000ad94
mov dword [rbp - 0x70], 0x114
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x14000b128
cmp dword [rbp - 0x6c], 6
jb 0x14000ada4
cmp dword [rbp - 0x68], 1
jae 0x14000b128
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x68], 4
movups xmm0, xmmword [str.SOFTWAREAtherosVistaAddOn]
movaps xmmword [rbp + 0xb0], xmm0
movups xmm1, xmmword [0x1400418d8]
movaps xmmword [rbp + 0xc0], xmm1
movups xmm0, xmmword [0x1400418e8]
movaps xmmword [rbp + 0xd0], xmm0
movsd xmm1, qword [0x1400418f8]
movsd qword [rbp + 0xe0], xmm1
xor edx, edx
mov r8d, 0x1d0
lea rcx, [rbp + 0xe8]
call fcn.14001bd50
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp + 0xb0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000ae62
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.NOGUI
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x50]
test eax, eax
cmovne ecx, edi
mov dword [rsp + 0x50], ecx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x50], edi
jne 0x14000b128
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x4d0]
call fcn.14001bd50
xor r9d, r9d
lea r8d, [r9 + 0x23]
lea rdx, [rbp + 0x4d0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, 1
jne 0x14000b128
lea r8, str.AtherosAtherosServiceConfig.ini
mov edx, 0x104
lea rcx, [rbp + 0x4d0]
call fcn.140025470
lea rax, [rbp + 0x4d0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rbp + 0x8f0]
lea r8, str.Operation
lea rdx, str.operation
lea rcx, str.AthService
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x6e0]
call fcn.14001bd50
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x2c0]
call fcn.14001bd50
mov r8d, 0x104
lea rdx, [rbp + 0x2c0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000af78
lea rcx, [rbp + 0x2c0]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea r8, str.Win7UI.exe
mov edx, 0x104
lea rcx, [rbp + 0x2c0]
call fcn.140025470
lea r8, [rbp + 0x2c0]
lea rdx, str.__s____1___2
lea rcx, [rbp + 0x6e0]
call fcn.140009aa0
lea rax, [rsp + 0x54]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.FunctionDiscoveryItemBluetooth_shellexContextMenuHandlersB8453BE8_4D2E_4165_B37D_38EE104BAE84
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000b128
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x54]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.FunctionDiscoveryItemBluetoothShell
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000b121
mov rcx, qword [rsp + 0x60]
call fcn.14000aa30
call fcn.140009cc0
mov rcx, rax
test rax, rax
je 0x14000b14e
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
lea r8, [rbp + 0x8f0]
lea rdx, str.FunctionDiscoveryItemBluetoothShell_sCommand
lea rcx, [rsp + 0x58]
call fcn.14000b680
mov rbx, qword [rsp + 0x58]
cmp dword [rbx - 8], 1
jle 0x14000b070
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x58]
call fcn.14000b190
mov rbx, qword [rsp + 0x58]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rdi, 0xffffffffffffffff
test eax, eax
jne 0x14000b0fe
lea rcx, [rbp + 0x6e0]
mov rax, rdi
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x14000b0c0
add eax, eax
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x6e0]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14000b116
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x14000b12a
xor eax, eax
mov rcx, qword [rbp + 0xb00]
xor rcx, rsp
call fcn.1400198d0
lea r11, [rsp + 0xc10]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
mov ecx, 0x80004005
call fcn.140009b20
int3