Function at 0x14005b9e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rbx
push rdi
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rax + 8], rsi
lea r9, [0x1402a214c]
mov qword [rax - 0x20], r14
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tospowerquerypowerpipehandler.cpp
mov qword [rax - 0x28], r15
lea r14, str.__QueryPowerPipeHandler::LoadPowerSaveSetting_
movaps xmmword [rax - 0x38], xmm6
mov rdi, rcx
lea rax, str.QueryPowerPipeHandler::LoadPowerSaveSetting
mov qword [rsp + 0x28], r14
mov r8d, 0x3a5
mov qword [rbp - 9], rax
lea rcx, [rbp - 1]
mov dword [rsp + 0x20], 3
call fcn.140008c40
mov r8, qword [rbp - 9]
lea rdx, str.ENTER__s
lea rcx, [rbp - 1]
call fcn.140008d50
lea rax, [rbp - 0x39]
xor r15d, r15d
mov r9d, 0x2001f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rbp - 0x39], r15
lea rdx, [0x1402327b8]
mov rcx, 0xffffffff80000002
mov ebx, r15d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test eax, eax
jne 0x14005becd
mov rbx, qword [rbp - 0x39]
lea rax, [rbp + 0x77]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x7f]
lea rax, [rbp + 0x6f]
mov dword [rbp + 0x6f], r15d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.EcoModeSavePerSec
mov dword [rbp + 0x77], 4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
je 0x14005bb0e
cmp eax, 2
jne 0x14005bb19
mov qword [rsp + 0x28], r14
lea r9, [0x1402a214c]
mov r8d, 0x3ba
mov dword [rsp + 0x20], eax
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tospowerquerypowerpipehandler.cpp
lea rcx, [rbp - 0x31]
call fcn.140008c40
mov rcx, rax
lea rdx, str.CRegKey::QueryDWORDValue_ERROR_FILE_NOT_FOUND__d
mov r8d, esi
call fcn.140008d50
jmp 0x14005bbaf
cmp dword [rbp + 0x7f], 4
je 0x14005bb4f
mov esi, 0xd
mov qword [rsp + 0x28], r14
lea r9, [0x1402a214c]
mov r8d, 0x3bd
mov dword [rsp + 0x20], 2
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tospowerquerypowerpipehandler.cpp
lea rcx, [rbp - 0x31]
call fcn.140008c40
lea rdx, str.CRegKey::QueryDWORDValue_failed__d
jmp 0x14005bf25
mov eax, dword [rbp + 0x6f]
lea r9, [0x1402a214c]
xorps xmm6, xmm6
mov qword [rsp + 0x28], r14
mov r8d, 0x3b7
mov dword [rsp + 0x20], 3
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tospowerquerypowerpipehandler.cpp
cvtsi2sd xmm6, rax
lea rcx, [rbp - 0x31]
divsd xmm6, qword [0x140235360]
movsd qword [rdi + 0x90], xmm6
call fcn.140008c40
mov r9d, dword [rbp + 0x6f]
lea rdx, str.EcoModeSavePerSecond__f___d
movaps xmm2, xmm6
mov rcx, rax
movq r8, xmm2
call fcn.140008d50
lea rax, [rbp + 0x77]
mov dword [rbp + 0x6f], r15d
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x7f]
lea rax, [rbp + 0x6f]
mov dword [rbp + 0x77], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.EcoModeSaveDataCount
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005bc33
cmp dword [rbp + 0x7f], 4
jne 0x14005bc33
mov eax, dword [rbp + 0x6f]
lea r9, [0x1402a214c]
mov qword [rsp + 0x28], r14
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tospowerquerypowerpipehandler.cpp
mov r8d, 0x3c5
mov dword [rdi + 0xa8], eax
lea rcx, [rbp - 0x31]
mov dword [rsp + 0x20], 3
call fcn.140008c40
mov r8d, dword [rbp + 0x6f]
lea rdx, str.EcoModeSaveDataCount__d
mov rcx, rax
call fcn.140008d50
lea rax, [rbp + 0x77]
mov dword [rbp + 0x6f], r15d
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x7f]
lea rax, [rbp + 0x6f]
mov dword [rbp + 0x77], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.MaxEcoModeSavePerSec
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005bcd1
cmp dword [rbp + 0x7f], 4
jne 0x14005bcd1
mov eax, dword [rbp + 0x6f]
lea r9, [0x1402a214c]
xorps xmm6, xmm6
mov qword [rsp + 0x28], r14
mov r8d, 0x3cc
mov dword [rsp + 0x20], 3
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tospowerquerypowerpipehandler.cpp
cvtsi2sd xmm6, rax
lea rcx, [rbp - 0x31]
divsd xmm6, qword [0x140235360]
movsd qword [rdi + 0xa0], xmm6
call fcn.140008c40
mov r9d, dword [rbp + 0x6f]
lea rdx, str.MaxEcoModeSavePerSecond__f___d
movaps xmm2, xmm6
mov rcx, rax
movq r8, xmm2
call fcn.140008d50
lea rax, [rbp + 0x77]
mov dword [rbp + 0x6f], r15d
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x7f]
lea rax, [rbp + 0x6f]
mov dword [rbp + 0x77], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x1402328f0]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005bd6f
cmp dword [rbp + 0x7f], 4
jne 0x14005bd6f
mov eax, dword [rbp + 0x6f]
lea r9, [0x1402a214c]
xorps xmm6, xmm6
mov qword [rsp + 0x28], r14
mov r8d, 0x3d3
mov dword [rsp + 0x20], 3
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tospowerquerypowerpipehandler.cpp
cvtsi2sd xmm6, rax
lea rcx, [rbp - 0x31]
divsd xmm6, qword [0x140235360]
movsd qword [rdi + 0x138], xmm6
call fcn.140008c40
mov r9d, dword [rbp + 0x6f]
lea rdx, str.EcoModeSavePerSecond__f___d
movaps xmm2, xmm6
mov rcx, rax
movq r8, xmm2
call fcn.140008d50
lea rax, [rbp + 0x77]
mov dword [rbp + 0x6f], r15d
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x7f]
lea rax, [rbp + 0x6f]
mov dword [rbp + 0x77], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.IgnoreAfterPlugCount
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005bdb6
cmp dword [rbp + 0x7f], 4
jne 0x14005bdb6
mov eax, dword [rbp + 0x6f]
mov dword [rdi + 0x12c], eax
mov qword [rsp + 0x28], r14
lea r9, [0x1402a214c]
mov r8d, 0x3db
mov dword [rsp + 0x20], 3
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tospowerquerypowerpipehandler.cpp
lea rcx, [rbp - 0x31]
call fcn.140008c40
mov r8d, dword [rdi + 0x12c]
lea rdx, str.IgnoreAfterPlugCount__d
mov rcx, rax
call fcn.140008d50
lea rax, [rbp + 0x77]
mov dword [rbp + 0x6f], 0x1e
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x7f]
lea rax, [rbp + 0x6f]
mov dword [rbp + 0x77], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.QueryPowerInterval
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005be40
cmp dword [rbp + 0x7f], 4
jne 0x14005be40
mov eax, dword [rbp + 0x6f]
mov dword [rdi + 0x130], eax
mov esi, dword [rdi + 0x130]
cmp esi, 2
jg 0x14005be8c
lea rax, [rbp + 0x77]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rdi + 0x130], 0x1e
lea rdx, str.QueryPowerInterval
mov dword [rbp + 0x77], 0x1e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [rdi + 0x130]
mov qword [rsp + 0x28], r14
lea r9, [0x1402a214c]
mov r8d, 0x3e6
mov dword [rsp + 0x20], 3
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tospowerquerypowerpipehandler.cpp
lea rcx, [rbp - 0x31]
call fcn.140008c40
mov rcx, rax
lea rdx, str.QueryPowerInterval__d
mov r8d, esi
call fcn.140008d50
mov dil, 1
jmp 0x14005bf33
mov qword [rsp + 0x28], r14
lea r9, [0x1402a214c]
mov dword [rsp + 0x20], 2
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tospowerquerypowerpipehandler.cpp
lea rcx, [rbp - 0x31]
cmp esi, 2
jne 0x14005bf13
mov r8d, 0x3aa
call fcn.140008c40
mov rcx, rax
lea rdx, str.CRegKey::Open_ERROR_FILE_NOT_FOUND__d
mov r8d, esi
call fcn.140008d50
mov dil, 1
jmp 0x14005bf33
mov r8d, 0x3ae
call fcn.140008c40
lea rdx, str.CRegKey::Open_failed__d
mov r8d, esi
mov rcx, rax
call fcn.140008d50
xor dil, dil
movaps xmm6, xmmword [rsp + 0x90]
mov r15, qword [rsp + 0xa0]
mov r14, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0xd0]
test rbx, rbx
je 0x14005bf61
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8, qword [rbp - 9]
lea rdx, str.LEAVE__s
lea rcx, [rbp - 1]
call fcn.140008d50
movzx eax, dil
add rsp, 0xb0
pop rdi
pop rbx
pop rbp
ret