Function at 0x14000a550
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 [0x140053008]
xor rax, rsp
mov qword [rbp + 0xb00], rax
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x8f0]
call fcn.14001d250
mov dword [rbp - 0x70], 0x11c
xor edx, edx
mov r8d, 0x118
lea rcx, [rbp - 0x6c]
call fcn.14001d250
xor edi, edi
mov dword [rsp + 0x54], edi
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x14000a5dc
mov dword [rbp - 0x70], 0x114
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x14000a978
cmp dword [rbp - 0x6c], 6
jb 0x14000a5ec
cmp dword [rbp - 0x68], 1
jae 0x14000a978
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x68], 4
movups xmm0, xmmword [str.SOFTWAREAtherosVistaAddOn]
movaps xmmword [rbp + 0xb0], xmm0
movups xmm1, xmmword [0x140041e88]
movaps xmmword [rbp + 0xc0], xmm1
movups xmm0, xmmword [0x140041e98]
movaps xmmword [rbp + 0xd0], xmm0
movsd xmm1, qword [0x140041ea8]
movsd qword [rbp + 0xe0], xmm1
xor edx, edx
mov r8d, 0x1d0
lea rcx, [rbp + 0xe8]
call fcn.14001d250
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 0x14000a6aa
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 0x14000a978
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x4d0]
call fcn.14001d250
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 0x14000a978
lea r8, str.AtherosAtherosServiceConfig.ini
mov edx, 0x104
lea rcx, [rbp + 0x4d0]
call fcn.140021a0c
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.14001d250
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x2c0]
call fcn.14001d250
mov r8d, 0x104
lea rdx, [rbp + 0x2c0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000a7c0
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.140021a0c
lea r8, [rbp + 0x2c0]
lea rdx, str.__s____1___2
lea rcx, [rbp + 0x6e0]
call fcn.140009100
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 0x14000a978
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 0x14000a971
mov rcx, qword [rsp + 0x60]
call fcn.14000a240
call fcn.140009400
mov rcx, rax
test rax, rax
jne 0x14000a87b
mov ecx, 0x80004005
call fcn.1400091b0
int3
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.14000b490
mov rbx, qword [rsp + 0x58]
cmp dword [rbx - 8], 1
jle 0x14000a8bf
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x58]
call fcn.14000b060
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]
or rdi, 0xffffffffffffffff
test eax, eax
jne 0x14000a94e
lea rcx, [rbp + 0x6e0]
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x14000a910
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 0x14000a966
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 0x14000a97a
xor eax, eax
mov rcx, qword [rbp + 0xb00]
xor rcx, rsp
call fcn.140019ce0
lea r11, [rsp + 0xc10]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret