Function at 0x1400394f0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3e0]
sub rsp, 0x4e0
mov rax, qword [0x14007f080]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
mov r15, rdx
mov r14, 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 0x140039702
xor r13d, r13d
mov word [rbp - 0x40], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0x3e]
call fcn.14005fd20
mov dword [rsp + 0x7c], 0x104
mov dword [rsp + 0x78], r13d
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, [rsp + 0x7c]
lea rdx, [rbp - 0x40]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, r13d
cmp dword [rsp + 0x78], r13d
jbe 0x1400396f7
lea r12, str.Bitsum_Highest_Performance
lea rsi, [r13 - 1]
nop dword [rax]
mov dword [rbp - 0x80], 0xff
lea rax, [rbp - 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x80]
lea r8, [rbp + 0x1d0]
mov edx, edi
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400396eb
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.RPCRT4.dll_UuidFromStringW]
test eax, eax
jne 0x1400396eb
call fcn.140001a70
mov rcx, rax
test rax, rax
je 0x140039762
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x78], rax
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rsp + 0x60], xmm0
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x60]
mov rcx, r14
call fcn.140037660
mov rbx, qword [rbp - 0x78]
cmp al, 1
jne 0x1400396d2
mov rdx, r12
mov rcx, rbx
call fcn.14004bd8c
test eax, eax
je 0x140039734
mov rax, rsi
movzx ecx, word [rbx + rax*2 + 2]
cmp cx, word [r12 + rax*2 + 2]
jne 0x1400396d2
add rax, 2
cmp rax, 0x1b
je 0x140039734
movzx ecx, word [rbx + rax*2]
cmp cx, word [r12 + rax*2]
je 0x1400396b0
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400396eb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
inc edi
cmp edi, dword [rsp + 0x78]
jb 0x140039600
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.14003f1d0
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movaps xmm0, xmmword [rbp - 0x50]
movups xmmword [r15], xmm0
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x14003975e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov al, 1
jmp 0x140039704
mov ecx, 0x80004005
call fcn.1400018b0
int3