Function at 0x140030d8c
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 + 0x2ba0]
lea rcx, str.SetForceHCResetOnResume:_ForceHCResetOnResumePidVid__ls_n
call fcn.1400300fc
cmp qword [0x1400dbf70], r15
jne 0x140030e31
lea rcx, str._SetForceHCResetOnResume:_no_bt_device_n
call fcn.1400300fc
jmp 0x14003110d
cmp word [rbp + 0x2ba0], r15w
jne 0x140030e51
lea rcx, str.SetForceHCResetOnResume:_empty_m_szForceHCResetOnResumePidVid_n
call fcn.1400300fc
mov esi, 1
jmp 0x14003110d
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 0x140030e8a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._SetForceHCResetOnResume:_SetupDiGetClassDevs_failed._err_d_n
mov edx, eax
call fcn.1400300fc
jmp 0x14003110d
lea rcx, [rbp + 0x2ba0]
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 0x1400310e3
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 0x140030f14
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._SetForceHCResetOnResume:_SetupDiGetDeviceRegistryProperty_failed._err_d_n
mov edx, eax
call fcn.1400300fc
jmp 0x1400310d1
lea rcx, [rbp + 0x3220]
mov edx, 0x100
call fcn.140060dac
lea rcx, [rbp + 0x3220]
call fcn.14005d25c
cmp rax, 0x15
jb 0x1400310be
lea rdx, [0x1400a1330]
lea rcx, [rbp + 0x3220]
mov r8d, 8
call fcn.140061244
test eax, eax
jne 0x1400310be
lea rdx, [rbp + 0x3228]
lea rcx, [rbp + 0x2ba0]
mov word [rbp + 0x324a], r15w
call fcn.1400604d4
test rax, rax
jne 0x140030f88
lea rcx, str.SetForceHCResetOnResume:_ignore_unsupported_HWID__ls_n
jmp 0x1400310c5
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 0x140030fec
mov edx, dword [rsp + 0x44]
lea r9, [rsp + 0x50]
lea rcx, [0x14009e8a0]
mov r8b, 1
call fcn.140030bac
test al, al
je 0x140030fd9
mov r12, qword [rsp + 0x50]
cmp r12, 0xffffffffffffffff
setne dil
test dil, dil
jne 0x140031003
mov edx, dword [rsp + 0x44]
jmp 0x140030f93
lea rcx, str.SetForceHCResetOnResume:_OpenDevDrvRegKey_failed_n
call fcn.1400300fc
mov r12, qword [rsp + 0x50]
jmp 0x140030ffa
lea rcx, str.SetForceHCResetOnResume:_CM_Get_Parent_failed._err_d_n
mov edx, eax
call fcn.1400300fc
test dil, dil
je 0x1400310d1
lea rax, [rsp + 0x48]
lea rdx, str.ForceHCResetOnResume
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 0x14003104d
lea rcx, str.SetForceHCResetOnResume:_no_value._RegQueryValueEx_returned__d_n
mov edx, eax
call fcn.1400300fc
cmp dword [rsp + 0x40], r15d
je 0x140031062
lea rcx, str.SetForceHCResetOnResume:_value_exists_already_n
call fcn.1400300fc
jmp 0x1400310b3
lea rax, [rsp + 0x40]
lea rdx, str.ForceHCResetOnResume
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 0x1400310a2
lea rcx, str.SetForceHCResetOnResume:_RegSetValueEx_failed._err_d_n
mov edx, eax
call fcn.1400300fc
jmp 0x1400310b3
lea rcx, str.SetForceHCResetOnResume:_RegSetValueEx_succeeded_n
call fcn.1400300fc
mov esi, 1
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400310d1
lea rcx, str.SetForceHCResetOnResume:_ignore_HWID__ls_n
lea rdx, [rbp + 0x3220]
call fcn.1400300fc
inc r14d
cmp r14d, 0x3e8
jb 0x140030ea3
jmp 0x140031104
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
je 0x140031104
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._SetForceHCResetOnResume:_SetupDiEnumDeviceInfo_failed._err_d_n
mov edx, eax
call fcn.1400300fc
mov rcx, r13
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
lea rcx, str.SetForceHCResetOnResume:_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