Function at 0x14003429c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x1d70]
mov eax, 0x1e70
call fcn.14005ba50
sub rsp, rax
mov rax, qword [0x1400d9180]
xor rax, rsp
mov qword [rbp + 0x1d60], rax
mov r12, rcx
lea rcx, str.Bluetooth_Service::Control_Install__d_WIA_n
mov esi, edx
call fcn.1400300fc
lea r11, [rsp + 0x48]
lea rdx, str.SoftwareWidcommBtConfig
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor r13d, r13d
test eax, eax
je 0x14003431e
lea rcx, str.Bluetooth_Service::WIA_is_not_prepared_n
call fcn.1400300fc
jmp 0x14003458c
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea rdx, str.WIALocationInfo
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1a40]
mov ebx, 0x104
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x140034375
lea rcx, str.Bluetooth_Service::LocationInfo_is_not_prepared_n
call fcn.1400300fc
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14003458c
xor eax, eax
lea r9, [rbp + 0x1801]
lea r8, [rbp + 0x1800]
mov qword [rbp + 0x1801], rax
mov byte [rbp + 0x1809], al
lea rax, [rbp + 0x1805]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x1804]
lea rdx, str._x:_x:_x:_x:_x:_x
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x1803]
lea rcx, [rbp + 0x1a40]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1802]
mov byte [rbp + 0x1800], r13b
mov qword [rsp + 0x20], rax
call fcn.14005e42c
mov edi, 0x208
test esi, esi
je 0x14003441f
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea rdx, str.WIAName
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1b50]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140034359
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [str.BT2K_INS.dll]
lea rcx, [rbp + 0x1832]
mov qword [rbp + 0x1810], rax
mov rax, qword [0x14009df60]
mov r8, rdi
mov qword [rbp + 0x1818], rax
mov rax, qword [0x14009df68]
xor edx, edx
mov qword [rbp + 0x1820], rax
movzx eax, word [0x14009df70]
mov word [rbp + 0x1830], r13w
mov word [rbp + 0x1828], ax
call fcn.14005bab0
lea rcx, [rsp + 0x50]
call fcn.140026df4
lea rcx, [rsp + 0x50]
call fcn.140022d94
mov rdx, rbx
lea rcx, [rbp + 0x1830]
test eax, eax
jne 0x1400344be
lea rax, [rbp + 0x1810]
lea r9, [rbp + 0x370]
lea r8, [0x14009a050]
mov qword [rsp + 0x20], rax
call fcn.14005ce1c
jmp 0x1400344d1
lea r9, [rbp + 0x1810]
lea r8, [0x14009df50]
call fcn.14005ce1c
lea rcx, [rbp + 0x1830]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
jne 0x1400344f2
lea rcx, str.Bluetooth_Service::BT2K_INS_does_not_exist_n
jmp 0x140034314
lea rdx, str.BT2K_InstallBTWIA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.BT2K_RemoveBTWIA
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rdi, rdi
je 0x140034577
test rax, rax
je 0x140034577
test esi, esi
je 0x140034538
lea r8, [rbp + 0x1b50]
lea rdx, [rbp + 0x1800]
mov rcx, r12
call rdi
jmp 0x140034546
lea rcx, [rbp + 0x1800]
mov edx, 1
call rax
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
jne 0x14003456b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Bluetooth_Service::installation_failed_0x_x_n
mov edx, eax
call fcn.1400300fc
jmp 0x14003458c
lea rcx, str.Bluetooth_Service::installation_done_n
jmp 0x140034314
lea rcx, str.Bluetooth_Service::BT2K_INS_bad_n
call fcn.1400300fc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rbp + 0x1d60]
xor rcx, rsp
call fcn.14005ba20
mov rbx, qword [rsp + 0x1eb0]
add rsp, 0x1e70
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret