Function at 0x140048200
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x1400d9180]
xor rax, rsp
mov qword [rbp + 0x60], rax
movzx ebx, dl
xor edx, edx
mov r12, rcx
lea rcx, [rsp + 0x3c]
lea r8d, [rdx + 0x1c]
mov dword [rsp + 0x38], 0x20
call fcn.14005bab0
lea rcx, str.CWaitWakeEnabledHidDevs::printHIDs:_bKeyboards_d_n
mov edx, ebx
call fcn.1400300fc
lea rax, [0x14009e6b0]
lea rcx, [0x14009e710]
test bl, bl
cmovne rcx, rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rdi, rax
test rax, rax
jne 0x140048297
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._CWaitWakeEnabledHidDevs::printHIDs:_SetupDiGetClassDevs_failed._err_d_n
mov edx, eax
call fcn.1400300fc
jmp 0x14004842c
xor ebx, ebx
lea r8, [rsp + 0x38]
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x140048402
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x38]
mov r9d, 0x100
mov rcx, rdi
mov dword [rsp + 0x34], 0x100
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdA]
test eax, eax
jne 0x1400482f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._CWaitWakeEnabledHidDevs::printHIDs:_SetupDiGetDeviceInstanceId_failed._err_d_n
mov edx, eax
call fcn.1400300fc
jmp 0x1400483f2
lea rcx, [rsp + 0x60]
mov edx, 0x100
call fcn.14005d740
lea rdx, str.HID00001124_0000_1000_8000_00805F9B34FB
lea rcx, [rsp + 0x60]
call fcn.14005c79c
test rax, rax
jne 0x140048330
lea rdx, [rsp + 0x60]
lea rcx, str.CWaitWakeEnabledHidDevs::printHIDs:_ignore_non_BT_HID__hs_n
call fcn.1400300fc
jmp 0x1400483f2
xor r9d, r9d
lea rdx, [rsp + 0x38]
mov rcx, rdi
lea r8d, [r9 + 1]
mov dword [rsp + 0x28], 0x20019
mov dword [rsp + 0x20], 1
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140048370
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._CWaitWakeEnabledHidDevs::printHIDs:_SetupDiOpenDevRegKey_failed._err_d_n
jmp 0x1400482e9
lea rax, [rsp + 0x34]
lea rdx, str.WaitWakeEnabled
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x34], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1400483bc
lea rcx, str.CWaitWakeEnabledHidDevs::printHIDs:_no_value_WaitWakeEnabled._RegQueryValueEx_returned__d_n
mov edx, eax
call fcn.1400300fc
mov dword [rsp + 0x30], 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.140047e30
xor r8d, r8d
lea r9, [rsp + 0x60]
cmp dword [rsp + 0x30], r8d
lea rcx, str.CWaitWakeEnabledHidDevs::printHIDs:_previous:_d_current:_d__hs_n
movzx edx, al
setne r8b
call fcn.1400300fc
inc ebx
cmp ebx, 0x3e8
jb 0x140048299
jmp 0x140048423
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
je 0x140048423
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._CWaitWakeEnabledHidDevs::printHIDs:_SetupDiEnumDeviceInfo_failed._err_d_n
mov edx, eax
call fcn.1400300fc
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
lea rcx, str.CWaitWakeEnabledHidDevs::printHIDs:_exits_n
call fcn.1400300fc
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.14005ba20
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret