Function at 0x140027590
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
lea rax, str.__TecoPower::CRegUtil::GetEcoLevelRegValue_
mov dword [rsp + 0x58], 0xc0
mov qword [rsp + 0x60], rax
lea r13, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tecopower_regutil.cpp
mov rsi, r8
mov qword [rsp + 0x50], r13
lea rax, [0x1402a214c]
mov dword [rsp + 0x70], 3
mov r14, rdx
mov qword [rsp + 0x68], rax
mov r15d, ecx
lea r8, str.TecoPower::CRegUtil::GetEcoLevelRegValue
lea rdx, str.ENTER__s
mov qword [rsp + 0x48], r8
lea rcx, [rsp + 0x50]
mov rdi, r9
call fcn.140008d50
xor r12d, r12d
mov qword [rsp + 0x38], r12
call fcn.140002c10
mov rcx, rax
test rax, rax
je 0x140027855
mov rax, qword [rax]
mov qword [rsp + 0x150], rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
test r14, r14
je 0x1400277aa
test rsi, rsi
je 0x1400277aa
cmp dword [rdi], r12d
je 0x1400277aa
mov r9d, dword [rbp + 0x70]
lea eax, [r9 - 1]
cmp eax, 9
ja 0x1400277aa
lea rcx, [0x1402a3bd8]
test r15d, r15d
lea rax, [0x1402a3c78]
cmove rax, rcx
lea r8, str.SOFTWAREDynabookeco_UtilityLevel_
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea rdx, str._s_d_s
call fcn.1400056c0
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14002770a
lea rax, str.__TecoPower::CRegUtil::GetEcoLevelRegValue_
mov qword [rsp + 0x78], r13
mov qword [rbp - 0x78], rax
lea rdx, str.Error_Code:_0x_x
lea rax, [0x1402a214c]
mov dword [rbp - 0x80], 0xd5
mov edi, 0x80004005
mov qword [rbp - 0x70], rax
mov r8d, edi
mov dword [rbp - 0x68], r12d
lea rcx, [rsp + 0x78]
call fcn.140008d50
jmp 0x1400277fb
mov rcx, qword [rsp + 0x38]
test rcx, rcx
jne 0x140027756
lea rax, str.__TecoPower::CRegUtil::GetEcoLevelRegValue_
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x50], rax
lea rdx, str.Error_Code:_0x_x
lea rax, [0x1402a214c]
mov dword [rbp - 0x58], 0xd6
mov edi, 0x80004003
mov qword [rbp - 0x48], rax
mov r8d, edi
mov dword [rbp - 0x40], r12d
lea rcx, [rbp - 0x60]
call fcn.140008d50
jmp 0x1400277fb
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, r14
mov dword [rsp + 0x30], r12d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400277a5
lea rax, str.__TecoPower::CRegUtil::GetEcoLevelRegValue_
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x38]
lea rax, [0x1402a214c]
mov dword [rbp - 0x30], 0xdb
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x18], r12d
jmp 0x1400277d3
mov esi, r12d
jmp 0x1400277e9
lea rax, str.__TecoPower::CRegUtil::GetEcoLevelRegValue_
mov qword [rbp - 0x10], r13
mov qword [rbp], rax
lea rcx, [rbp - 0x10]
lea rax, [0x1402a214c]
mov dword [rbp - 8], 0xc7
mov qword [rbp + 8], rax
mov dword [rbp + 0x10], r12d
mov edi, 0x80004005
lea rdx, str.Error_Code:_0x_x
mov r8d, edi
mov esi, edi
call fcn.140008d50
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400277f9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, esi
lea rdx, [rbx - 0x18]
mov ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
mov rbx, qword [rsp + 0x150]
sub ecx, 1
jg 0x140027820
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov r8, qword [rsp + 0x48]
lea rdx, str.LEAVE__s
lea rcx, [rsp + 0x50]
call fcn.140008d50
lea r11, [rsp + 0x120]
mov eax, edi
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x80004005
call fcn.140002ad0
int3