Function at 0x1400024f0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
lea rbp, [rsp - 0x5f0]
sub rsp, 0x6f0
mov rax, qword [0x1400321e8]
xor rax, rsp
mov qword [rbp + 0x5e0], rax
mov rbx, rcx
xor r15d, r15d
lea rcx, [rbp - 0x50]
xor edx, edx
mov r8d, 0x20a
mov r14d, r15d
call fcn.140008aa0
xor edx, edx
lea rcx, [rbp + 0x1c0]
mov r8d, 0x208
call fcn.140008aa0
mov r9d, dword [rbx]
lea r8, str.SYSTEMCurrentControlSetEnumHID00001124_0000_1000_8000_00805f9b34fb_VID000205ac_PID_04xCol01
mov edx, 0x104
mov dword [rsp + 0x78], 0x104
lea rcx, [rbp - 0x50]
mov dword [rsp + 0x64], r15d
mov dword [rsp + 0x68], 0x104
mov dword [rsp + 0x60], 3
mov dword [rsp + 0x7c], 4
mov dword [rsp + 0x6c], 4
call fcn.140002e80
lea rax, [rsp + 0x70]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400025fc
mov r9d, dword [rbx]
lea r8, str.SYSTEMCurrentControlSetEnumHID00001124_0000_1000_8000_00805f9b34fb_VID000205ac_PID_04x
mov edx, 0x104
lea rcx, [rbp - 0x50]
call fcn.140002e80
lea rax, [rsp + 0x70]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400025fc
xor eax, eax
jmp 0x1400027d6
mov rcx, qword [rsp + 0x70]
lea rax, [rbp - 0x60]
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x78]
lea rax, [rbp - 0x78]
xor r9d, r9d
mov qword [rsp + 0x50], rax
lea rdx, [rbp + 0x1c0]
lea rax, [rbp - 0x74]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x6c]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x64]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1400027c8
mov eax, dword [rsp + 0x64]
test eax, eax
je 0x1400027c8
mov qword [rsp + 0x720], rdi
mov edi, r15d
mov qword [rsp + 0x718], rsi
cmp edi, eax
jae 0x1400027b8
mov rcx, qword [rsp + 0x70]
lea rax, [rbp - 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x68]
mov qword [rsp + 0x30], r15
lea r8, [rbp + 0x3d0]
mov qword [rsp + 0x28], r15
mov edx, edi
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x68], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
test eax, eax
jne 0x1400027a9
lea r9, [rbp + 0x3d0]
mov edx, 0x104
lea r8, str._sDevice_Parameters
lea rcx, [rbp - 0x50]
call fcn.140002e80
mov rcx, qword [rsp + 0x70]
lea rax, [rbp - 0x80]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400027a9
mov rcx, qword [rbp - 0x80]
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x7c]
lea rax, [rsp + 0x60]
xor r8d, r8d
lea rdx, str.WaitWakeEnabled
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000279f
cmp dword [rsp + 0x60], r15d
jne 0x14000279f
mov dword [rsp + 0x60], 1
mov ebx, r15d
nop dword [rax]
mov eax, dword [rsp + 0x6c]
lea rdx, str.WaitWakeEnabled
mov rcx, qword [rbp - 0x80]
mov r9d, 4
mov dword [rsp + 0x28], eax
xor r8d, r8d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140002799
inc ebx
cmp ebx, 6
jb 0x140002760
jmp 0x14000279f
mov r14d, 1
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
test esi, esi
jne 0x1400027b8
mov eax, dword [rsp + 0x64]
jmp 0x140002686
mov rsi, qword [rsp + 0x718]
mov rdi, qword [rsp + 0x720]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, r14d
mov rcx, qword [rbp + 0x5e0]
xor rcx, rsp
call fcn.140007800
mov rbx, qword [rsp + 0x728]
add rsp, 0x6f0
pop r15
pop r14
pop rbp
ret