Function at 0x14000ad90
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 [0x14004d010]
xor rax, rsp
mov qword [rbp + 0xb00], rax
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x8f0]
call fcn.14001b960
mov dword [rbp - 0x70], 0x11c
xor edx, edx
mov r8d, 0x118
lea rcx, [rbp - 0x6c]
call fcn.14001b960
xor edi, edi
mov dword [rsp + 0x54], edi
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x14000ae1c
mov dword [rbp - 0x70], 0x114
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x14000b1be
cmp dword [rbp - 0x6c], 6
jb 0x14000ae2c
cmp dword [rbp - 0x68], 1
jae 0x14000b1be
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x68], 4
movups xmm0, xmmword [str.SOFTWAREAtherosVistaAddOn]
movaps xmmword [rbp + 0xb0], xmm0
movups xmm1, xmmword [0x14003c468]
movaps xmmword [rbp + 0xc0], xmm1
movups xmm0, xmmword [0x14003c478]
movaps xmmword [rbp + 0xd0], xmm0
movsd xmm1, qword [0x14003c488]
movsd qword [rbp + 0xe0], xmm1
xor edx, edx
mov r8d, 0x1d0
lea rcx, [rbp + 0xe8]
call fcn.14001b960
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 0x14000aeea
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 0x14000b1be
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x4d0]
call fcn.14001b960
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 0x14000b1be
lea r8, str.AtherosAtherosServiceConfig.ini
mov edx, 0x104
lea rcx, [rbp + 0x4d0]
call fcn.1400216f4
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.14001b960
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x2c0]
call fcn.14001b960
mov r8d, 0x104
lea rdx, [rbp + 0x2c0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000b000
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.1400216f4
lea r8, [rbp + 0x2c0]
lea rdx, str.__s____1___2
lea rcx, [rbp + 0x6e0]
call fcn.140009af0
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 0x14000b1be
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 0x14000b1b7
mov rcx, qword [rsp + 0x60]
call fcn.14000aaa0
call fcn.140009d20
mov rcx, rax
test rax, rax
je 0x14000b1e4
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [0x140033700]
add rax, 0x18
mov qword [rsp + 0x58], rax
lea r8, [rbp + 0x8f0]
lea rdx, str.FunctionDiscoveryItemBluetoothShell_sCommand
lea rcx, [rsp + 0x58]
call fcn.14000b730
mov rbx, qword [rsp + 0x58]
cmp dword [rbx - 8], 1
jle 0x14000b0ff
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x58]
call fcn.14000b220
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 0x14000b18e
lea rcx, [rbp + 0x6e0]
mov rax, rdi
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x14000b150
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 0x14000b1ac
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [0x140033700]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x14000b1c0
xor eax, eax
mov rcx, qword [rbp + 0xb00]
xor rcx, rsp
call fcn.140019b40
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.140009b70
int3