Function at 0x14003115c
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
mov qword [rax + 0x20], r13
push rbp
push r14
push r15
lea rbp, [rax - 0x3448]
mov eax, 0x3530
call fcn.14005ba50
sub rsp, rax
mov rax, qword [0x1400d9180]
xor rax, rsp
mov qword [rbp + 0x3420], rax
xor r15d, r15d
lea rcx, [rsp + 0x5c]
xor edx, edx
lea r8d, [r15 + 0x1c]
mov esi, r15d
mov dword [rsp + 0x58], 0x20
call fcn.14005bab0
lea rcx, [rbp - 0x80]
call fcn.1400261f4
lea rcx, [rbp - 0x80]
mov qword [rbp + 0x398], 0xffffffff80000002
call fcn.140022d94
lea rdx, [rbp + 0x2db4]
lea rcx, str.SetEnHcSoftRetry:_EnHcSoftRetryPidVid__ls_n
call fcn.1400300fc
cmp qword [0x1400dbf70], r15
jne 0x140031201
lea rcx, str._SetEnHcSoftRetry:_no_bt_device_n
call fcn.1400300fc
jmp 0x1400314dd
cmp word [rbp + 0x2db4], r15w
jne 0x140031221
lea rcx, str.SetEnHcSoftRetry:_empty_m_szEnHcSoftRetryPidVid_n
call fcn.1400300fc
mov esi, 1
jmp 0x1400314dd
lea rcx, [0x14009e5a0]
mov r9d, 2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov r13, rax
test rax, rax
jne 0x14003125a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._SetEnHcSoftRetry:_SetupDiGetClassDevs_failed._err_d_n
mov edx, eax
call fcn.1400300fc
jmp 0x1400314dd
lea rcx, [rbp + 0x2db4]
mov edx, 0x104
call fcn.140060dac
mov r12, qword [rsp + 0x50]
mov r14d, r15d
lea r8, [rsp + 0x58]
mov edx, r14d
mov rcx, r13
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x1400314b3
lea rax, [rsp + 0x48]
xor r9d, r9d
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x3220]
lea r8d, [r9 + 1]
mov rcx, r13
mov dword [rsp + 0x28], 0x200
mov dword [rsp + 0x48], 0x200
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
jne 0x1400312e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._SetEnHcSoftRetry:_SetupDiGetDeviceRegistryProperty_failed._err_d_n
mov edx, eax
call fcn.1400300fc
jmp 0x1400314a1
lea rcx, [rbp + 0x3220]
mov edx, 0x100
call fcn.140060dac
lea rcx, [rbp + 0x3220]
call fcn.14005d25c
cmp rax, 0x15
jb 0x14003148e
lea rdx, [0x1400a1330]
lea rcx, [rbp + 0x3220]
mov r8d, 8
call fcn.140061244
test eax, eax
jne 0x14003148e
lea rdx, [rbp + 0x3228]
lea rcx, [rbp + 0x2db4]
mov word [rbp + 0x324a], r15w
call fcn.1400604d4
test rax, rax
jne 0x140031358
lea rcx, str.SetEnHcSoftRetry:_ignore_unsupported_HWID__ls_n
jmp 0x140031495
mov edx, dword [rsp + 0x6c]
mov dil, r15b
mov dword [rsp + 0x44], edx
lea rcx, [rsp + 0x44]
xor r8d, r8d
call qword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
test eax, eax
jne 0x1400313bc
mov edx, dword [rsp + 0x44]
lea r9, [rsp + 0x50]
lea rcx, [0x14009e8a0]
xor r8d, r8d
call fcn.140030bac
test al, al
je 0x1400313a9
mov r12, qword [rsp + 0x50]
cmp r12, 0xffffffffffffffff
setne dil
test dil, dil
jne 0x1400313d3
mov edx, dword [rsp + 0x44]
jmp 0x140031363
lea rcx, str.SetEnHcSoftRetry:_OpenDevDrvRegKey_failed_n
call fcn.1400300fc
mov r12, qword [rsp + 0x50]
jmp 0x1400313ca
lea rcx, str.SetEnHcSoftRetry:_CM_Get_Parent_failed._err_d_n
mov edx, eax
call fcn.1400300fc
test dil, dil
je 0x1400314a1
lea rax, [rsp + 0x48]
lea rdx, str.EnHcSoftRetry
mov edi, 4
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x48], edi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x14003141d
lea rcx, str.SetEnHcSoftRetry:_no_value._RegQueryValueEx_returned__d_n
mov edx, eax
call fcn.1400300fc
cmp dword [rsp + 0x40], r15d
je 0x140031432
lea rcx, str.SetEnHcSoftRetry:_value_exists_already_n
call fcn.1400300fc
jmp 0x140031483
lea rax, [rsp + 0x40]
lea rdx, str.EnHcSoftRetry
mov r9d, edi
xor r8d, r8d
mov rcx, r12
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x140031472
lea rcx, str.SetEnHcSoftRetry:_RegSetValueEx_failed._err_d_n
mov edx, eax
call fcn.1400300fc
jmp 0x140031483
lea rcx, str.SetEnHcSoftRetry:_RegSetValueEx_succeeded_n
call fcn.1400300fc
mov esi, 1
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400314a1
lea rcx, str.SetEnHcSoftRetry:_ignore_HWID__ls_n
lea rdx, [rbp + 0x3220]
call fcn.1400300fc
inc r14d
cmp r14d, 0x3e8
jb 0x140031273
jmp 0x1400314d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
je 0x1400314d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._SetEnHcSoftRetry:_SetupDiEnumDeviceInfo_failed._err_d_n
mov edx, eax
call fcn.1400300fc
mov rcx, r13
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
lea rcx, str.SetEnHcSoftRetry:_returns__d_n
mov edx, esi
call fcn.1400300fc
mov eax, esi
mov rcx, qword [rbp + 0x3420]
xor rcx, rsp
call fcn.14005ba20
lea r11, [rsp + 0x3530]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov r12, qword [r11 + 0x30]
mov r13, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret