Function at 0x14003085c
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x1b70]
mov eax, 0x1c70
call fcn.14005ba50
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x1cb0], rbx
mov rax, qword [0x1400d9180]
xor rax, rsp
mov qword [rbp + 0x1b60], rax
mov r12d, edx
mov ebx, ecx
mov r8d, edx
mov edx, ecx
lea rcx, str.PreInstallHid_start___index__d__mouse__d
call fcn.1400300fc
xor r13d, r13d
mov dword [rsp + 0x30], r13d
mov rax, qword [str.BT2K_INS.dll]
mov qword [rbp + 0x1818], rax
mov rax, qword [0x14009df60]
mov qword [rbp + 0x1820], rax
mov rax, qword [0x14009df68]
mov qword [rbp + 0x1828], rax
movzx eax, word [0x14009df70]
mov word [rbp + 0x1830], ax
mov word [rbp + 0x1950], r13w
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1952]
call fcn.14005bab0
lea rcx, [rsp + 0x60]
call fcn.140026df4
lea rcx, [rsp + 0x60]
call fcn.140022d94
mov edi, 0x104
lea rcx, [rbp + 0x1950]
mov edx, edi
test eax, eax
jne 0x140030954
lea rax, [rbp + 0x1818]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x380]
lea r8, [0x14009a050]
call fcn.14005ce1c
jmp 0x140030967
lea r9, [rbp + 0x1818]
lea r8, [0x14009df50]
call fcn.14005ce1c
lea rcx, [rbp + 0x1950]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
jne 0x14003098d
lea rcx, str.Bluetooth_Service::BT2K_INS_does_not_exist_n
call fcn.1400300fc
jmp 0x140030b04
lea r8, str.95C7A0A0_3094_11D7_A202_00508B9D7D5AHID_MOUSE
mov rdx, rdi
lea rcx, [rbp + 0x1840]
call fcn.140060048
test r12d, r12d
jne 0x1400309be
lea r8, str.95C7A0A0_3094_11D7_A202_00508B9D7D5AHID_KEYBOARD
mov rdx, rdi
lea rcx, [rbp + 0x1840]
call fcn.140060048
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x40], r13d
mov qword [rsp + 0x48], r13
mov r9d, 0x2001f
lea r8, str.SoftwareWidcommBtConfigHID
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x38]
call fcn.14003a60c
mov dword [rbp + 0x1810], 0xffffffff
mov byte [rbp + 0x1814], 0xff
add bl, bl
mov byte [rbp + 0x1815], bl
test r12d, r12d
jne 0x140030a11
inc bl
mov byte [rbp + 0x1815], bl
mov dword [rsp + 0x28], 6
lea rax, [rbp + 0x1810]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
lea rdx, [0x1400a0a68]
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rbx, rbx
je 0x140030a59
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r13
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], r13d
lea rdx, str.BT2K_InstallHID
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140030ae9
lea r9, [rsp + 0x30]
lea r8, [rbp + 0x1840]
xor edx, edx
xor ecx, ecx
call rax
mov edi, eax
test eax, eax
je 0x140030ae9
mov ecx, 0x3a98
call fcn.14002fb5c
lea rdx, str.BT2K_RemoveHIDbyBdAddr
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140030aba
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x1810]
call rax
mov edi, eax
test edi, edi
jne 0x140030aca
lea rcx, str.BT2K_RemoveHIDbyBdAddr_failed
call fcn.1400300fc
lea rcx, str.PreInstallHid_done
call fcn.1400300fc
nop
test rbx, rbx
je 0x140030ae5
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x140030b06
lea rcx, str.BT2K_InstallHID_failed
call fcn.1400300fc
nop
test rbx, rbx
je 0x140030b04
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rbp + 0x1b60]
xor rcx, rsp
call fcn.14005ba20
mov rbx, qword [rsp + 0x1cb0]
add rsp, 0x1c70
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret