Function at 0x14000a870
Capabilities:
Check os version
Persist via contextmenuhandlers registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x908]
sub rsp, 0xa00
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x140040468]
xor rax, rsp
mov qword [rbp + 0x8f0], rax
xor edi, edi
mov word [rbp + 0x6e0], di
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x6e2]
call fcn.14001cc90
mov dword [rbp - 0x70], 0x11c
xor edx, edx
mov r8d, 0x118
lea rcx, [rbp - 0x6c]
call fcn.14001cc90
mov dword [rsp + 0x54], edi
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x14000a90a
mov dword [rbp - 0x70], 0x114
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x14000a90a
xor eax, eax
jmp 0x14000ac2e
cmp dword [rbp - 0x6c], 6
jb 0x14000a916
cmp dword [rbp - 0x68], 1
jae 0x14000a903
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x68], 4
movups xmm0, xmmword [str.SOFTWAREAtherosVistaAddOn]
movaps xmmword [rbp + 0x2c0], xmm0
movups xmm1, xmmword [0x140030990]
movaps xmmword [rbp + 0x2d0], xmm1
movups xmm0, xmmword [0x1400309a0]
movaps xmmword [rbp + 0x2e0], xmm0
movsd xmm1, qword [0x1400309b0]
movsd qword [rbp + 0x2f0], xmm1
xor edx, edx
mov r8d, 0x1d0
lea rcx, [rbp + 0x2f8]
call fcn.14001cc90
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdx
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp + 0x2c0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000a9d4
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 0x14000a903
lea rcx, [rbp + 0x6e0]
call fcn.14000a1f0
test eax, eax
je 0x14000a903
mov word [rbp + 0x4d0], di
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x4d2]
call fcn.14001cc90
mov word [rbp + 0xb0], di
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0xb2]
call fcn.14001cc90
mov r8d, 0x104
lea rdx, [rbp + 0xb0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000aa8b
lea rcx, [rbp + 0xb0]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea r8, str.Win7UI.exe
mov edx, 0x104
lea rcx, [rbp + 0xb0]
call fcn.140019c94
lea r8, [rbp + 0xb0]
lea rdx, str.__s____1___2
lea rcx, [rbp + 0x4d0]
call fcn.140019670
lea rax, [rsp + 0x54]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
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 0x14000a903
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x54]
mov qword [rsp + 0x40], rdx
lea rax, [rsp + 0x58]
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 0x14000ac29
mov rcx, qword [rsp + 0x58]
call fcn.14000a470
lea rcx, [0x140041470]
mov rax, qword [0x140041470]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x60], rax
lea r8, [rbp + 0x6e0]
lea rdx, str.FunctionDiscoveryItemBluetoothShell_sCommand
lea rcx, [rsp + 0x60]
call fcn.14000b610
mov rbx, qword [rsp + 0x60]
cmp dword [rbx - 8], 1
jle 0x14000ab7d
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x60]
call fcn.14000b370
mov rbx, qword [rsp + 0x60]
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 rsi, 0xffffffffffffffff
test eax, eax
jne 0x14000ac06
xor eax, eax
mov rcx, rsi
lea rdi, [rbp + 0x4d0]
repne scasw ax, word [rdi]
not rcx
dec rcx
add ecx, ecx
mov dword [rsp + 0x28], ecx
lea rax, [rbp + 0x4d0]
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 2]
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], esi
dec esi
test esi, esi
jg 0x14000ac1e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rcx, qword [rbp + 0x8f0]
xor rcx, rsp
call fcn.140019650
lea r11, [rsp + 0xa00]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret