Function at 0x140034490
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 [0x140077040]
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 0x1400346a2
xor r13d, r13d
mov word [rbp - 0x40], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0x3e]
call fcn.14005af20
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 0x140034697
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 0x14003468b
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.RPCRT4.dll_UuidFromStringW]
test eax, eax
jne 0x14003468b
call fcn.140002ed0
mov rcx, rax
test rax, rax
je 0x140034702
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.1400335e0
mov rbx, qword [rbp - 0x78]
cmp al, 1
jne 0x140034672
mov rdx, r12
mov rcx, rbx
call fcn.140040c70
test eax, eax
je 0x1400346d4
mov rax, rsi
movzx ecx, word [rbx + rax*2 + 2]
cmp cx, word [r12 + rax*2 + 2]
jne 0x140034672
add rax, 2
cmp rax, 0x1b
je 0x1400346d4
movzx ecx, word [rbx + rax*2]
cmp cx, word [r12 + rax*2]
je 0x140034650
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14003468b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
inc edi
cmp edi, dword [rsp + 0x78]
jb 0x1400345a0
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.1400398f0
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 0x1400346fe
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov al, 1
jmp 0x1400346a4
mov ecx, 0x80004005
call fcn.140002c40
int3