Function at 0x14004af90
Capabilities:
Check if file exists
Create process on windows
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 8]
sub rsp, 0x108
lea rax, str.ModeManager::CheckEcoPlanExist
mov r8d, 0x2af
mov qword [rbp - 0x58], rax
lea r9, [0x1402a214c]
lea rax, str.__ModeManager::CheckEcoPlanExist_
mov qword [rsp + 0x28], rax
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tospowermodemanager.cpp
lea rcx, [rbp - 0x50]
mov dword [rsp + 0x20], 3
call fcn.140008c40
mov r8, qword [rbp - 0x58]
lea rdx, str.ENTER__s
lea rcx, [rbp - 0x50]
call fcn.140008d50
mov rcx, qword [rbp + 0x50]
lea r9, [0x1402a214c]
mov r8d, 0x2b3
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tospowermodemanager.cpp
movzx ebx, byte [rcx + 0x117]
lea rax, [rcx + 0x108]
movzx edi, byte [rcx + 0x116]
movzx esi, byte [rcx + 0x115]
movzx r14d, byte [rcx + 0x114]
movzx r15d, byte [rcx + 0x113]
movzx r12d, byte [rcx + 0x112]
movzx r13d, byte [rcx + 0x111]
mov qword [rsp + 0x70], rax
movzx eax, byte [rcx + 0x110]
mov dword [rbp + 0x50], eax
movzx eax, word [rcx + 0x10e]
mov dword [rbp + 0x60], eax
movzx eax, word [rcx + 0x10c]
lea rcx, [rbp - 0x80]
mov dword [rbp + 0x68], eax
lea rax, str.__ModeManager::CheckEcoPlanExist_
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 3
call fcn.140008c40
mov dword [rsp + 0x68], ebx
lea r8, str.m_ecoPlanGuid
mov rbx, qword [rsp + 0x70]
lea rdx, str._s___08X__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X
mov dword [rsp + 0x60], edi
mov rcx, rax
mov eax, dword [rbp + 0x50]
mov dword [rsp + 0x58], esi
mov r9d, dword [rbx]
mov dword [rsp + 0x50], r14d
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], eax
mov eax, dword [rbp + 0x60]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp + 0x68]
mov dword [rsp + 0x20], eax
call fcn.140008d50
mov rcx, rbx
call fcn.140023f70
lea r13, str.__ModeManager::CheckEcoPlanExist_
mov r8d, 0x2b5
mov qword [rsp + 0x28], r13
lea r9, [0x1402a214c]
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tospowermodemanager.cpp
mov dword [rsp + 0x20], 3
lea rcx, [rbp - 0x80]
mov ebx, eax
call fcn.140008c40
mov rcx, rax
lea rdx, str.TecoPower::VerifyEcoPlan:_result__d
mov r8d, ebx
call fcn.140008d50
mov rax, qword [rbp + 0x58]
xor r15d, r15d
test ebx, ebx
jne 0x14004b14c
mov dword [rax], 1
jmp 0x14004b4e0
mov dword [rax], r15d
lea r12, str.__RegConfigAccess::Open_
lea rax, vtable.RegConfigAccess.0
mov qword [rsp + 0x28], r12
lea r9, [0x1402a214c]
mov qword [rsp + 0x70], rax
mov r8d, 0x63
mov dword [rsp + 0x20], 3
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5_toscommonlib_rs5include_regconfig.h
mov dword [rbp + 0x50], r15d
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x78], r15
mov esi, r15d
call fcn.140008c40
mov rcx, rax
lea r9, [0x14022b3f8]
lea r8, str.pszSubKey
lea rdx, str._s___s
call fcn.140008d50
lea rax, [rsp + 0x78]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x14022b3f8]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
je 0x14004b283
movzx ebx, di
mov r14d, eax
or ebx, 0x80070000
test eax, eax
jle 0x14004b1f9
mov r14d, ebx
mov qword [rsp + 0x28], r12
lea r9, [0x1402a214c]
mov r8d, 0x67
mov dword [rsp + 0x20], r15d
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5_toscommonlib_rs5include_regconfig.h
lea rcx, [rbp - 0x80]
call fcn.140008c40
mov rcx, rax
lea rdx, str.Error_Code:_0x_x
mov r8d, r14d
call fcn.140008d50
test edi, edi
cmovle ebx, edi
test ebx, ebx
jns 0x14004b283
mov qword [rsp + 0x28], r13
lea r9, [0x1402a214c]
mov r8d, 0x2c3
mov dword [rsp + 0x20], r15d
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tospowermodemanager.cpp
lea rcx, [rbp - 0x80]
call fcn.140008c40
mov rcx, rax
lea rdx, str.Error_Code:_0x_x
mov r8d, ebx
call fcn.140008d50
lea rcx, [rsp + 0x70]
call fcn.140005ba0
jmp 0x14004b4e3
lea r8, [rbp + 0x50]
mov qword [rbp - 0x80], r15
xor edx, edx
mov qword [rbp - 0x78], r15
lea rcx, [rbp - 0x80]
mov qword [rbp - 0x70], r15
call fcn.140042790
xor r9d, r9d
lea r8, [rbp - 0x80]
lea rdx, [0x14022b438]
lea rcx, [rsp + 0x70]
call fcn.140042070
mov ebx, eax
test eax, eax
jns 0x14004b347
lea rax, str.__RegConfigAccess::GetValue_
mov r8d, 0x123
mov qword [rsp + 0x28], rax
lea r9, [0x1402a214c]
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5_toscommonlib_rs5include_regconfig.h
mov dword [rsp + 0x20], r15d
lea rcx, [rbp - 0x28]
call fcn.140008c40
mov rcx, rax
lea rdx, str.Error_Code:_0x_x
mov r8d, ebx
call fcn.140008d50
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14004b4d6
mov rdx, qword [rbp - 0x70]
mov rax, rcx
sub rdx, rcx
and rdx, 0xfffffffffffffffc
cmp rdx, 0x1000
jb 0x14004b33d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004b50d
call fcn.14001dee0
jmp 0x14004b4d6
mov rax, qword [rbp - 0x78]
mov rcx, qword [rbp - 0x80]
sub rax, rcx
sar rax, 2
test rax, rax
je 0x14004b35d
mov esi, dword [rcx]
test rcx, rcx
je 0x14004b397
mov rdx, qword [rbp - 0x70]
mov rax, rcx
sub rdx, rcx
and rdx, 0xfffffffffffffffc
cmp rdx, 0x1000
jb 0x14004b392
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004b50d
call fcn.14001dee0
cmp esi, 1
jne 0x14004b4d6
mov rcx, qword [rsp + 0x78]
mov dword [rbp + 0x50], r15d
test rcx, rcx
jne 0x14004b3e4
lea rax, str.__RegConfigAccess::SetValue_
mov r8d, 0x15f
mov qword [rsp + 0x28], rax
lea r9, [0x1402a214c]
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5_toscommonlib_rs5include_regconfig.h
mov dword [rsp + 0x20], r15d
lea rcx, [rbp - 0x28]
call fcn.140008c40
mov r8d, 0x80070006
jmp 0x14004b44d
lea rax, [rbp + 0x50]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x14022b438]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x14004b45c
jle 0x14004b41c
movzx ebx, ax
or ebx, 0x80070000
lea rax, str.__RegConfigAccess::SetValue_
mov r8d, 0x163
mov qword [rsp + 0x28], rax
lea r9, [0x1402a214c]
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5_toscommonlib_rs5include_regconfig.h
mov dword [rsp + 0x20], r15d
lea rcx, [rbp - 0x28]
call fcn.140008c40
mov r8d, ebx
lea rdx, str.Error_Code:_0x_x
mov rcx, rax
call fcn.140008d50
lea rcx, str.C:Program_FilesApoint2KApEcoLed.exe
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14004b4cf
mov qword [rsp + 0x28], r13
lea r9, [0x1402a214c]
mov r8d, 0x2d0
mov dword [rsp + 0x20], 3
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tospowermodemanager.cpp
lea rcx, [rbp - 0x28]
call fcn.140008c40
mov rcx, rax
lea rdx, str.ApEcoLED.exe_set_off
call fcn.140008d50
lea r9, str._off
mov dword [rsp + 0x28], r15d
lea r8, str.C:Program_FilesApoint2KApEcoLed.exe
mov qword [rsp + 0x20], r15
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x14004b4d6
xor ecx, ecx
call fcn.14001e050
lea rcx, [rsp + 0x70]
call fcn.140005ba0
mov ebx, r15d
mov r8, qword [rbp - 0x58]
lea rdx, str.LEAVE__s
lea rcx, [rbp - 0x50]
call fcn.140008d50
mov eax, ebx
add rsp, 0x108
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1401f802c
int3