Function at 0x1400c9f10
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3e0]
sub rsp, 0x4e0
mov rax, qword [0x140173040]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
mov r14, rdx
mov rsi, rcx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlPowerUserPowerSchemes
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400ca118
xor r12d, r12d
mov word [rbp - 0x40], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0x3e]
call fcn.14012ce40
mov dword [rbp - 0x78], 0x104
mov dword [rsp + 0x78], r12d
lea rax, [rbp - 0x58]
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x6c]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x64]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x5c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp - 0x78]
lea rdx, [rbp - 0x40]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, r12d
cmp dword [rsp + 0x78], ebx
jbe 0x1400ca10d
lea r15, [0x140148e78]
lea rdi, [r12 - 1]
nop dword [rax]
nop dword [rax + rax]
mov dword [rbp - 0x74], 0xff
lea rax, [rbp - 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x74]
lea r8, [rbp + 0x1d0]
mov edx, ebx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400ca101
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.RPCRT4.dll_UuidFromStringW]
test eax, eax
jne 0x1400ca101
mov qword [rbp - 0x80], r12
lea rcx, [rbp - 0x80]
call fcn.1400055e0
nop
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rsp + 0x60], xmm0
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.1400c7dc0
cmp al, 1
jne 0x1400ca0e4
mov rdx, r15
mov rcx, qword [rbp - 0x80]
call fcn.1401103e4
test eax, eax
je 0x1400ca145
mov rax, qword [rbp - 0x80]
mov rcx, rdi
movzx edx, word [rax + rcx*2 + 2]
cmp dx, word [r15 + rcx*2 + 2]
jne 0x1400ca0e8
add rcx, 2
cmp rcx, 0x1b
je 0x1400ca145
movzx edx, word [rax + rcx*2]
cmp dx, word [r15 + rcx*2]
je 0x1400ca0c0
jmp 0x1400ca0e8
mov rax, qword [rbp - 0x80]
lea rdx, [rax - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400ca101
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
inc ebx
cmp ebx, dword [rsp + 0x78]
jb 0x1400ca020
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.1400ff350
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movaps xmm0, xmmword [rbp - 0x50]
movups xmmword [r14], xmm0
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400ca173
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov al, 1
jmp 0x1400ca11a