Function at 0x14000af50
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 rax, rsp
push rbp
lea rbp, [rax - 0xb18]
sub rsp, 0xc10
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x14004e010]
xor rax, rsp
mov qword [rbp + 0xb00], rax
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x8f0]
call fcn.14001c4c0
mov dword [rbp - 0x70], 0x11c
xor edx, edx
mov r8d, 0x118
lea rcx, [rbp - 0x6c]
call fcn.14001c4c0
xor edi, edi
mov dword [rsp + 0x54], edi
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x14000afdc
mov dword [rbp - 0x70], 0x114
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x14000b378
cmp dword [rbp - 0x6c], 6
jb 0x14000afec
cmp dword [rbp - 0x68], 1
jae 0x14000b378
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x68], 4
movups xmm0, xmmword [str.SOFTWAREAtherosVistaAddOn]
movaps xmmword [rbp + 0xb0], xmm0
movups xmm1, xmmword [0x14003d238]
movaps xmmword [rbp + 0xc0], xmm1
movups xmm0, xmmword [0x14003d248]
movaps xmmword [rbp + 0xd0], xmm0
movsd xmm1, qword [0x14003d258]
movsd qword [rbp + 0xe0], xmm1
xor edx, edx
mov r8d, 0x1d0
lea rcx, [rbp + 0xe8]
call fcn.14001c4c0
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 0x14000b0aa
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 0x14000b378
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x4d0]
call fcn.14001c4c0
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 0x14000b378
lea r8, str.AtherosAtherosServiceConfig.ini
mov edx, 0x104
lea rcx, [rbp + 0x4d0]
call fcn.14002242c
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.14001c4c0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x2c0]
call fcn.14001c4c0
mov r8d, 0x104
lea rdx, [rbp + 0x2c0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000b1c0
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.14002242c
lea r8, [rbp + 0x2c0]
lea rdx, str.__s____1___2
lea rcx, [rbp + 0x6e0]
call fcn.140009cd0
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 0x14000b378
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 0x14000b371
mov rcx, qword [rsp + 0x60]
call fcn.14000ac60
call fcn.140009ef0
mov rcx, rax
test rax, rax
je 0x14000b39e
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.14000b8f0
mov rbx, qword [rsp + 0x58]
cmp dword [rbx - 8], 1
jle 0x14000b2b8
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x58]
call fcn.14000b3e0
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 0x14000b34e
lea rcx, [rbp + 0x6e0]
mov rax, rdi
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x14000b310
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 0x14000b366
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 0x14000b37a
xor eax, eax
mov rcx, qword [rbp + 0xb00]
xor rcx, rsp
call fcn.14001a550
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.140009d50
int3