Function at 0x14001b8d0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x598
mov rax, qword [0x140075028]
xor rax, rsp
mov qword [rsp + 0x580], rax
lea rax, [rsp + 0x120]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rcx, [rsp + 0x120]
call fcn.14000d570
nop
lea rax, [rsp + 0xf0]
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 0x14001bd42
movzx eax, word [0x140067734]
mov word [rsp + 0x170], ax
lea rax, [rsp + 0x172]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov dword [rsp + 0x114], 0x104
mov dword [rsp + 0x100], 0
mov dword [rsp + 0xa0], 0x3fff
lea rax, [rsp + 0x140]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x158]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x154]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x150]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x14c]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x148]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x138]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x100]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x114]
lea rdx, [rsp + 0x170]
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x64], 0
jmp 0x14001ba29
mov eax, dword [rsp + 0x64]
inc eax
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x100]
cmp dword [rsp + 0x64], eax
jae 0x14001bb91
mov dword [rsp + 0x110], 0xff
lea rax, [rsp + 0x140]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x110]
lea r8, [rsp + 0x380]
mov edx, dword [rsp + 0x64]
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jne 0x14001bb8c
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x380]
call qword [sym.imp.RPCRT4.dll_UuidFromStringW]
test eax, eax
jne 0x14001bb8c
mov edx, 8
lea rcx, [rsp + 0x108]
call fcn.140014d30
lea rcx, [rsp + 0x108]
call fcn.140004310
nop
lea rax, [rsp + 0xe0]
lea rcx, [rsp + 0x160]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0x108]
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x5b0]
call fcn.140019340
movzx eax, al
cmp eax, 1
jne 0x14001bb7f
lea rdx, str.Bitsum_Highest_Performance
lea rcx, [rsp + 0x108]
call fcn.1400074f0
test eax, eax
je 0x14001bb69
lea rdx, str.Bitsum_Highest_Performance
lea rcx, [rsp + 0x108]
call fcn.140007800
test eax, eax
jne 0x14001bb58
mov dword [rsp + 0x6c], 1
jmp 0x14001bb60
mov dword [rsp + 0x6c], 0
movzx eax, byte [rsp + 0x6c]
test eax, eax
je 0x14001bb7f
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x120]
call fcn.14001c1a0
nop
lea rcx, [rsp + 0x108]
call fcn.140003f10
jmp 0x14001ba1f
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x120]
call fcn.14000d500
cmp rax, 1
jbe 0x14001bd42
lea rax, [rsp + 0xf8]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
lea rax, [rsp + 0x120]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xf8], rax
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0xf8]
call fcn.1400039d0
jmp 0x14001bc6c
lea rax, [rsp + 0x118]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0xf8]
add rax, 0x10
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0x120]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 8]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x78], rax
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x78]
call fcn.1400039d0
lea rax, [rsp + 0x78]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov rax, qword [rax]
cmp qword [rsp + 0xf8], rax
jae 0x14001bceb
mov dword [rsp + 0x70], 1
jmp 0x14001bcf3
mov dword [rsp + 0x70], 0
movzx eax, byte [rsp + 0x70]
mov byte [rsp + 0x60], al
movzx eax, byte [rsp + 0x60]
test eax, eax
je 0x14001bd42
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x90], rax
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x5b0]
call fcn.14001aa00
movzx eax, al
jmp 0x14001bc24
lea rcx, [rsp + 0x120]
call fcn.14000d500
mov dword [rsp + 0x74], eax
lea rcx, [rsp + 0x120]
call fcn.14000d510
mov eax, dword [rsp + 0x74]
mov rcx, qword [rsp + 0x580]
xor rcx, rsp
call fcn.14003f5f0
add rsp, 0x598
pop rdi
pop rsi
ret