Function at 0x140038fe0
Capabilities:
Check os version
Query or enumerate registry value
Query service status
Set registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x198]
sub rsp, 0x270
mov qword [rbp + 8], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1402f8c60]
xor rax, rsp
mov qword [rbp + 0x160], rax
lea r8, str.TPowerSaver::CreatePowerSaverItem
mov qword [rbp - 0x28], r8
lea r13, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_fordnbk0001_dev_bcmcentennial_rs5dynabookecoservice_tpowersaverstaticlib_tpowersaver.cpp
mov qword [rbp - 0x20], r13
mov dword [rbp - 0x18], 0x137
lea rsi, str.__TPowerSaver::CreatePowerSaverItem_
mov qword [rbp - 0x10], rsi
lea rdi, [0x1402a214c]
mov qword [rbp - 8], rdi
mov dword [rbp], 3
lea rdx, str.ENTER__s
lea rcx, [rbp - 0x20]
call fcn.140008d50
nop
xor r12d, r12d
mov r14d, r12d
mov word [rbp - 0x78], r12w
mov r15d, r12d
mov qword [rbp - 0x70], r12
mov dword [rbp - 0x74], r12d
lea r8, str.TPowerSaver::IsOSVersionWin7orBefore
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r13
mov dword [rsp + 0x60], LoadRegTypeLib
lea rax, str.__TPowerSaver::IsOSVersionWin7orBefore_
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x78], 3
lea rdx, str.ENTER__s
lea rcx, [rsp + 0x58]
call fcn.140008d50
nop
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x44]
call fcn.1401f5d40
mov dword [rbp + 0x40], 0x114
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140039140
cmp dword [rbp + 0x44], 6
ja 0x140039140
cmp dword [rbp + 0x48], 2
jae 0x140039140
mov r8, qword [rsp + 0x50]
lea rdx, str.LEAVE__s
lea rcx, [rsp + 0x58]
call fcn.140008d50
mov dword [rbp + 0x18], 0x142
mov qword [rbp + 0x10], r13
mov ebx, 0x80004005
mov qword [rbp + 0x20], rsi
mov qword [rbp + 0x28], rdi
mov dword [rbp + 0x30], r12d
lea rcx, [rbp + 0x10]
lea rdx, str.Error_Code:_0x_x
mov r8d, ebx
call fcn.140008d50
jmp 0x140039682
mov r8, qword [rsp + 0x50]
lea rdx, str.LEAVE__s
lea rcx, [rsp + 0x58]
call fcn.140008d50
mov qword [rbp - 0x38], r12
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x1402a4578]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400391e4
mov dword [rbp - 0x80], 4
mov dword [rbp - 0x30], 4
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x80]
xor r8d, r8d
lea rdx, str.EcoInitFlag
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400391e4
cmp dword [rbp - 0x74], 1
jne 0x1400391e4
call fcn.140038510
test eax, eax
je 0x1400391e4
call fcn.140038970
test eax, eax
jne 0x1400391e4
mov dword [rbp + 0x18], 0x158
jmp 0x140039113
lea r8, str.GetDriverStatus
mov qword [rbp - 0x68], r8
mov qword [rbp - 0x60], r13
mov dword [rbp - 0x58], 0x2c1
lea rax, str.__GetDriverStatus_
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdi
mov dword [rbp - 0x40], 3
lea rdx, str.ENTER__s
lea rcx, [rbp - 0x60]
call fcn.140008d50
nop
xor edx, edx
xor ecx, ecx
mov r8d, 0x80000000
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x14003925f
mov r8, qword [rbp - 0x68]
lea rdx, str.LEAVE__s
lea rcx, [rbp - 0x60]
call fcn.140008d50
mov ebx, 0x80004005
mov dword [rsp + 0x58], 0x15f
jmp 0x14003936f
mov r8d, 4
lea rdx, str.TVALZ
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x1400392c5
mov ebx, 0x80004003
mov qword [rsp + 0x50], r13
mov dword [rsp + 0x58], 0x2cc
lea rax, str.__GetDriverStatus_
mov qword [rsp + 0x60], rax
lea rdi, [0x1402a214c]
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x70], r12d
mov r8d, ebx
lea rdx, str.Error_Code:_0x_x
lea rcx, [rsp + 0x50]
call fcn.140008d50
jmp 0x140039345
lea rdx, [rbp + 0x10]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, 1
je 0x14003931c
mov dword [rsp + 0x58], 0x2ce
mov qword [rsp + 0x50], r13
mov ebx, 0x80004005
lea rax, str.__GetDriverStatus_
mov qword [rsp + 0x60], rax
lea rax, [0x1402a214c]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], r12d
mov r8d, ebx
lea rdx, str.Error_Code:_0x_x
lea rcx, [rsp + 0x50]
call fcn.140008d50
jmp 0x140039335
cmp dword [rbp + 0x14], 4
je 0x14003932c
mov dword [rsp + 0x58], 0x2cf
jmp 0x1400392df
mov r14d, 1
mov ebx, r12d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rdi, [0x1402a214c]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov r8, qword [rbp - 0x68]
lea rdx, str.LEAVE__s
lea rcx, [rbp - 0x60]
call fcn.140008d50
test ebx, ebx
jns 0x1400393a3
mov dword [rsp + 0x58], 0x15e
mov qword [rsp + 0x50], r13
lea rax, str.__TPowerSaver::CreatePowerSaverItem_
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x70], r12d
lea rcx, [rsp + 0x50]
lea rdx, str.Error_Code:_0x_x
mov r8d, ebx
call fcn.140008d50
jmp 0x140039682
test r14d, r14d
jne 0x1400393b7
mov ebx, 0x80004005
mov dword [rsp + 0x58], 0x15f
jmp 0x14003936f
lea rcx, [rbp - 0x80]
call fcn.14003a0b0
mov ebx, eax
test eax, eax
jns 0x1400393d0
mov dword [rsp + 0x58], 0x161
jmp 0x14003936f
lea rcx, [rbp - 0x78]
call fcn.14003a300
mov ebx, eax
test eax, eax
jns 0x1400393e9
mov dword [rsp + 0x58], 0x162
jmp 0x14003936f
lea rcx, [rbp - 0x70]
call fcn.14003a860
mov ebx, eax
test eax, eax
jns 0x140039405
mov dword [rsp + 0x58], 0x165
jmp 0x14003936f
mov rsi, qword [rbp - 0x70]
mov r13d, dword [rsi]
mov r12d, r13d
mov eax, 0x238
mul r13
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140073210
mov r15, rax
mov qword [rbp - 0x70], rax
test r13d, r13d
je 0x1400394c3
xor edi, edi
xor r14d, r14d
lea rbx, [rax + 0x220]
add r15, 0x10
nop word [rax + rax]
mov rcx, qword [rsi + 8]
movups xmm0, xmmword [rcx + rdi]
movups xmmword [rbx - 0x220], xmm0
mov rax, qword [rsi + 8]
mov ecx, dword [rax + rdi + 0x50]
mov dword [rbx - 8], ecx
mov rdx, qword [rsi + 8]
add rdx, 0x10
add rdx, r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rax, qword [rsi + 8]
mov rcx, qword [rax + rdi + 0x58]
test rcx, rcx
je 0x14003949c
movups xmm0, xmmword [rcx]
movups xmmword [rbx], xmm0
movsd xmm1, qword [rcx + 0x10]
movsd qword [rbx + 0x10], xmm1
mov dword [rbx - 4], 0
add r14, 0x60
add r15, 0x238
add rdi, 0x60
add rbx, 0x238
sub r12, 1
jne 0x140039450
mov r15, qword [rbp - 0x70]
lea r8, str.DeleteTPSRegParameterInfo
mov qword [rbp - 0x68], r8
lea rdi, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_fordnbk0001_dev_bcmcentennial_rs5dynabookecoservice_tpowersaverstaticlib_tpowersaver.cpp
mov qword [rbp - 0x60], rdi
mov dword [rbp - 0x58], 0x496
lea rax, str.__DeleteTPSRegParameterInfo_
mov qword [rbp - 0x50], rax
lea rax, [0x1402a214c]
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x40], 3
lea rdx, str.ENTER__s
lea rcx, [rbp - 0x60]
call fcn.140008d50
nop
cmp dword [rsi], 0
je 0x140039573
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x140039573
mov rax, qword [rcx + 0x58]
test rax, rax
je 0x140039543
mov edx, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, rax
call fcn.14001dee0
mov rax, qword [rsi + 8]
xor r12d, r12d
mov qword [rax + 0x58], r12
mov rcx, qword [rsi + 8]
jmp 0x140039546
xor r12d, r12d
call fcn.14001dee0
mov qword [rsi + 8], r12
mov edx, 0x10
mov rcx, rsi
call fcn.14001dee0
nop
mov r8, qword [rbp - 0x68]
lea rdx, str.LEAVE__s
lea rcx, [rbp - 0x60]
call fcn.140008d50
jmp 0x14003958a
mov r8, qword [rbp - 0x68]
lea rdx, str.LEAVE__s
lea rcx, [rbp - 0x60]
call fcn.140008d50
xor r12d, r12d
mov edx, r13d
mov rcx, r15
call fcn.14003b4e0
mov ebx, eax
test eax, eax
jns 0x1400395b6
lea r13, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_fordnbk0001_dev_bcmcentennial_rs5dynabookecoservice_tpowersaverstaticlib_tpowersaver.cpp
mov dword [rsp + 0x58], 0x175
lea rdi, [0x1402a214c]
jmp 0x14003936f
lea r8, str.TPSItemFirstInitialize
mov qword [rbp - 0x68], r8
mov qword [rbp - 0x60], rdi
mov dword [rbp - 0x58], 0x597
lea rsi, str.__TPSItemFirstInitialize_
mov qword [rbp - 0x50], rsi
lea rdi, [0x1402a214c]
mov qword [rbp - 0x48], rdi
mov dword [rbp - 0x40], 3
lea rdx, str.ENTER__s
lea rcx, [rbp - 0x60]
call fcn.140008d50
nop
mov edx, r13d
mov rcx, r15
call fcn.14003bec0
mov ebx, eax
test eax, eax
jns 0x140039664
lea r13, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_fordnbk0001_dev_bcmcentennial_rs5dynabookecoservice_tpowersaverstaticlib_tpowersaver.cpp
mov qword [rsp + 0x50], r13
mov dword [rsp + 0x58], 0x59f
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x70], r12d
mov r8d, eax
lea rdx, str.Error_Code:_0x_x
lea rcx, [rsp + 0x50]
call fcn.140008d50
nop
mov r8, qword [rbp - 0x68]
lea rdx, str.LEAVE__s
lea rcx, [rbp - 0x60]
call fcn.140008d50
mov dword [rsp + 0x58], 0x177
jmp 0x14003936f
mov r8, qword [rbp - 0x68]
lea rdx, str.LEAVE__s
lea rcx, [rbp - 0x60]
call fcn.140008d50
mov ebx, r12d
lea r13, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_fordnbk0001_dev_bcmcentennial_rs5dynabookecoservice_tpowersaverstaticlib_tpowersaver.cpp
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140039695
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x38], r12
cmp dword [rbp - 0x74], 0
jne 0x1400397e8
lea r8, str.FinishCreatingPowerSaverItem
mov qword [rbp - 0x68], r8
mov qword [rbp - 0x60], r13
mov dword [rbp - 0x58], 0xfda
lea rsi, str.__FinishCreatingPowerSaverItem_
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], rdi
mov dword [rbp - 0x40], 3
lea rdx, str.ENTER__s
lea rcx, [rbp - 0x60]
call fcn.140008d50
nop
mov qword [rbp + 0x10], r12
mov dword [rbp + 0x18], r12d
mov qword [rbp + 0x20], r12
mov qword [rbp - 0x70], r12
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1402a4578]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14003979c
mov dword [rbp + 0x18], r12d
mov rdi, qword [rbp - 0x70]
mov qword [rbp + 0x10], rdi
mov dword [rbp + 0x18], r12d
mov dword [rbp - 0x80], 1
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, [0x1402a4538]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rdi, rdi
je 0x140039784
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, r12
mov qword [rbp + 0x10], r12
mov dword [rbp + 0x18], r12d
test rdi, rdi
je 0x1400397d0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp + 0x10], r12
jmp 0x1400397d0
mov qword [rsp + 0x50], r13
mov dword [rsp + 0x58], 0xfe3
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x70], r12d
mov r8d, 0x80004005
lea rdx, str.Error_Code:_0x_x
lea rcx, [rsp + 0x50]
call fcn.140008d50
nop
mov dword [rbp + 0x18], r12d
mov r8, qword [rbp - 0x68]
lea rdx, str.LEAVE__s
lea rcx, [rbp - 0x60]
call fcn.140008d50
test r15, r15
je 0x1400397fb
mov edx, 0x238
mov rcx, r15
call fcn.14001dee0
nop
mov r8, qword [rbp - 0x28]
lea rdx, str.LEAVE__s
lea rcx, [rbp - 0x20]
call fcn.140008d50
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140072680
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret