Function at 0x14002a690
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xb8
mov qword [rbp + 0x17], 0xfffffffffffffffe
lea r8, str.CTPwrBrightnessApp::IsTPSBrightnessLevelCtrl
mov qword [rbp - 0x19], r8
lea rdi, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_fordnbk0001_dev_bcmcentennial_rs5dynabookecoservice_tpwrbrightnessstaticlib_tpwrbrightnessimpl.cpp
mov qword [rbp - 0x11], rdi
mov dword [rbp - 9], 0x2f
lea r14, str.__CTPwrBrightnessApp::IsTPSBrightnessLevelCtrl_
mov qword [rbp - 1], r14
lea r15, [0x1402a214c]
mov qword [rbp + 7], r15
mov dword [rbp + 0xf], 3
lea rdx, str.ENTER__s
lea rcx, [rbp - 0x11]
call fcn.140008d50
nop
xor esi, esi
mov qword [rbp + 0x7f], rsi
mov dword [rbp + 0x67], 4
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWARETOSHIBAPowerSaverDebug
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002a77b
lea rax, [rbp + 0x67]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x77]
xor r8d, r8d
lea rdx, str.TPSBrLv
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, esi
test eax, eax
cmove ebx, dword [rbp + 0x6f]
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x14002a77b
mov dil, 1
jmp 0x14002a823
mov rbx, rsi
mov qword [rbp - 0x31], rbx
mov dword [rbp - 0x29], esi
mov qword [rbp - 0x21], rsi
mov qword [rbp + 0x67], rsi
lea rax, [rbp + 0x67]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetEnumACPIPNP0C0A
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002a84b
mov dword [rbp - 0x29], esi
mov rbx, qword [rbp + 0x67]
mov qword [rbp - 0x31], rbx
mov dword [rbp - 0x29], esi
test rbx, rbx
je 0x14002a7de
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rsi
mov qword [rbp - 0x31], rbx
mov dword [rbp - 0x29], esi
mov qword [rbp - 0x59], rdi
mov dword [rbp - 0x51], 0x3f
mov qword [rbp - 0x49], r14
mov qword [rbp - 0x41], r15
mov dword [rbp - 0x39], 2
lea rdx, str.IsTPSBrightnessLevelCtrl_false
lea rcx, [rbp - 0x59]
call fcn.140008d50
xor dil, dil
test rbx, rbx
je 0x14002a820
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x31], rsi
mov dword [rbp - 0x29], esi
mov r8, qword [rbp - 0x19]
lea rdx, str.LEAVE__s
lea rcx, [rbp - 0x11]
call fcn.140008d50
movzx eax, dil
add rsp, 0xb8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14002a8e0
nop
test al, al
jne 0x14002a7de
mov qword [rbp - 0x59], rdi
mov dword [rbp - 0x51], 0x37
mov qword [rbp - 0x49], r14
mov qword [rbp - 0x41], r15
mov dword [rbp - 0x39], 2
lea rdx, str.IsWMIGetBrightnessLevel_false
lea rcx, [rbp - 0x59]
call fcn.140008d50
mov dword [rbp + 0x67], esi
lea rdx, [rbp + 0x67]
call fcn.14002aea0
cmp al, 1
jne 0x14002a7de
mov edx, dword [rbp + 0x67]
call fcn.14002b0a0
cmp al, 1
jne 0x14002a7de
mov qword [rbp - 0x59], rdi
mov dword [rbp - 0x51], 0x39
mov qword [rbp - 0x49], r14
mov qword [rbp - 0x41], r15
mov dword [rbp - 0x39], 2
lea rdx, str.IsHCIGetBrightnessLevel_true
lea rcx, [rbp - 0x59]
call fcn.140008d50
mov dil, 1
jmp 0x14002a80e