Function at 0x140054e40
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push r14
push r15
lea rbp, [rsp - 0x3f]
sub rsp, 0xc8
mov rax, qword [0x1402f8c60]
xor rax, rsp
mov qword [rbp + 0x2f], rax
cmp qword [rcx + 0x10], 0
mov r15, rdx
mov rsi, rcx
je 0x1400550b5
xor r14d, r14d
lea rcx, [rbp - 0x59]
mov qword [rbp - 0x49], r14
mov qword [rbp - 0x51], r14
call fcn.140004550
lea rax, [rbp - 0x51]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x140230320]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140054f0c
mov rdx, qword [rbp - 0x59]
mov eax, 0xffffffff
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140054ed0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, [rbp - 0x49]
xor ecx, ecx
lea rdx, [0x14023e450]
call qword [rsi + 0x10]
test eax, eax
jne 0x1400550b5
mov rcx, qword [rbp - 0x49]
test rcx, rcx
je 0x1400550b5
movups xmm0, xmmword [rcx]
movups xmmword [r15], xmm0
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 1
jmp 0x1400550b7
mov rcx, qword [rbp - 0x51]
lea r9, [rbp - 0x3d]
xor eax, eax
mov dword [rbp - 0x41], SafeArrayUnaccessData
mov qword [rbp + 0x17], rax
lea rdx, [0x1402302f0]
mov word [rbp + 0x1f], ax
xor r8d, r8d
lea rax, [rbp - 0x41]
mov dword [rbp - 0x3d], 1
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x17]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140054f6a
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x140054eb0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140054eb0
mov qword [rsp + 0x100], rbx
lea r8, [rbp + 0x17]
mov qword [rsp + 0x108], rdi
lea rdx, [0x1402a85d4]
lea rcx, [rbp - 0x59]
mov qword [rsp + 0xc0], r12
call fcn.1400056c0
lea r12, str.__CPowrProfUtil::IsLaterThanWin10RS3_
mov r8d, 0x1b0
mov qword [rsp + 0x28], r12
lea r9, [0x1402a214c]
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tospowerpowrprofutil.cpp
mov dword [rsp + 0x20], 3
lea rcx, [rbp - 0x39]
call fcn.140008c40
mov rbx, qword [rbp - 0x59]
lea rdx, [0x1402a85d4]
mov r8, rbx
mov rcx, rax
call fcn.140008d50
mov rcx, r14
lea r8, str.15063
nop word [rax + rax]
movzx edi, word [rbx + rcx*2]
inc rcx
movzx eax, word [r8 + rcx*2 - 2]
sub edi, eax
jne 0x140055007
cmp rcx, 6
jne 0x140054ff0
test edi, edi
mov qword [rsp + 0x28], r12
lea r9, [0x1402a214c]
mov dword [rsp + 0x20], 3
mov r8d, 0x1b3
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tospowerpowrprofutil.cpp
lea rcx, [rbp - 0x11]
setg r14b
call fcn.140008c40
mov rcx, rax
lea rdx, str.bIsLaterThanWin10RS3___d
mov r8d, r14d
call fcn.140008d50
mov rcx, qword [rbp - 0x51]
mov r12, qword [rsp + 0xc0]
test rcx, rcx
je 0x140055060
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
mov rbx, qword [rsp + 0x100]
sub eax, 1
jg 0x140055084
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test edi, edi
mov rdi, qword [rsp + 0x108]
jle 0x140054ed0
lea r8, [rbp - 0x49]
xor ecx, ecx
lea rdx, [0x14023e520]
call qword [rsi + 0x10]
test eax, eax
jne 0x1400550b5
mov rcx, qword [rbp - 0x49]
test rcx, rcx
jne 0x140054ef5
xor eax, eax
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140072680
add rsp, 0xc8
pop r15
pop r14
pop rsi
pop rbp
ret