Function at 0x14003488c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f90]
mov eax, 0x2090
call fcn.14005ba50
sub rsp, rax
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x20e8], rbx
mov rax, qword [0x1400d9180]
xor rax, rsp
mov qword [rbp + 0x1f80], rax
mov r13d, r8d
mov esi, edx
mov r12, rcx
lea rcx, str.Bluetooth_Service::Control_Install__d_Mouse__d_n
call fcn.1400300fc
xor r14d, r14d
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x50], r14d
mov qword [rsp + 0x58], r14
mov r15d, 0x104
mov dword [rsp + 0x60], r15d
mov edi, 0x20019
test esi, esi
je 0x1400349b9
mov r9d, edi
lea r8, str.SoftwareWidcommBtConfigHID
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x48]
call fcn.14003a60c
test eax, eax
je 0x14003493e
lea rcx, str.Bluetooth_Service::HID_is_not_prepared_n
call fcn.1400300fc
nop
jmp 0x140034bcc
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1d70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1400a0a68]
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400349a1
lea rcx, str.Bluetooth_Service::No_BdAddr_is_not_prepared_n
call fcn.1400300fc
test rbx, rbx
je 0x140034990
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r14
test rbx, rbx
je 0x140034bdc
mov rcx, rbx
jmp 0x140034bd6
test rbx, rbx
je 0x1400349b4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x50], r14d
mov r9d, edi
lea r8, [0x1400a6480]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x48]
call fcn.14003a60c
test eax, eax
je 0x1400349ea
lea rcx, str.Bluetooth_Service::install_key_is_not_prepared_n
call fcn.1400300fc
nop
jmp 0x140034bcc
lea rdx, [0x1400dba00]
lea rcx, [rbp + 0x1b60]
call fcn.14005eaa4
lea rdx, [0x1400a63f8]
lea rcx, [rbp + 0x1b60]
call fcn.14005ea78
mov rax, qword [str.BT2K_INS.dll]
mov qword [rbp + 0x1820], rax
mov rax, qword [0x14009df60]
mov qword [rbp + 0x1828], rax
mov rax, qword [0x14009df68]
mov qword [rbp + 0x1830], rax
movzx eax, word [0x14009df70]
mov word [rbp + 0x1838], ax
mov word [rbp + 0x1950], r14w
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1952]
call fcn.14005bab0
lea rcx, [rsp + 0x70]
call fcn.140026df4
lea rcx, [rsp + 0x70]
call fcn.140022d94
mov rdx, r15
lea rcx, [rbp + 0x1950]
test eax, eax
jne 0x140034aa7
lea rax, [rbp + 0x1820]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x390]
lea r8, [0x14009a050]
call fcn.14005ce1c
jmp 0x140034aba
lea r9, [rbp + 0x1820]
lea r8, [0x14009df50]
call fcn.14005ce1c
lea rcx, [rbp + 0x1950]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
jne 0x140034ae1
lea rcx, str.Bluetooth_Service::BT2K_INS_does_not_exist_n
call fcn.1400300fc
nop
jmp 0x140034bcc
lea rdx, str.BT2K_InstallHID
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
jne 0x140034b14
lea rcx, str.Bluetooth_Service::BT2K_INS_bad_n
call fcn.1400300fc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
jmp 0x140034bcc
cmp dword [0x1400dbc48], r14d
jne 0x140034b3a
mov edx, 1
mov r8d, 0x7530
lea rcx, str.HidServ
call fcn.14003468c
mov dword [0x1400dbc14], eax
test esi, esi
je 0x140034b98
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r15d
lea rax, [rbp + 0x1840]
mov qword [rsp + 0x20], rax
or r9d, 0xffffffff
lea r8, [rbp + 0x1b60]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea r9, [rsp + 0x40]
lea rdx, [rbp + 0x1840]
mov rcx, r12
test r13d, r13d
je 0x140034b8f
lea r8, str.95C7A0A0_3094_11D7_A202_00508B9D7D5AHID_MOUSE
call rdi
mov edi, eax
jmp 0x140034b9c
lea r8, str.95C7A0A0_3094_11D7_A202_00508B9D7D5AHID_KEYBOARD
jmp 0x140034b89
mov edi, dword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
jne 0x140034bbf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Bluetooth_Service::installation_failed_0x_x_n
call fcn.1400300fc
jmp 0x140034bcc
lea rcx, str.Bluetooth_Service::installation_done_n
call fcn.1400300fc
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140034bdc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x1f80]
xor rcx, rsp
call fcn.14005ba20
mov rbx, qword [rsp + 0x20e8]
add rsp, 0x2090
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret