Function at 0x140047680
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xc0
lea rax, str.RestoreOSPowerPlans
mov r8d, 0x4a0
lea r15, str.__RestoreOSPowerPlans_
mov qword [r11 - 0x60], rax
mov qword [rsp + 0x28], r15
lea r9, [0x1402a214c]
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tospower_tosservicemodule.cpp
mov dword [rsp + 0x20], 3
lea rcx, [r11 - 0x58]
call fcn.140008c40
mov r8, qword [rsp + 0x88]
lea rdx, str.ENTER__s
lea rcx, [rsp + 0x90]
call fcn.140008d50
xor r14d, r14d
lea r12, vtable.RegConfigAccess.0
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r14
mov dword [rsp + 0xf0], r14d
call fcn.14003a020
lea rbp, str.__RegConfigAccess::Create_
lea r9, [0x1402a214c]
mov qword [rsp + 0x28], rbp
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5_toscommonlib_rs5include_regconfig.h
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x58], r14
je 0x140047765
mov r8d, 0x91
mov dword [rsp + 0x20], r14d
call fcn.140008c40
mov ebx, 0x80070006
lea rdx, str.Error_Code:_0x_x
mov r8d, ebx
mov rcx, rax
call fcn.140008d50
jmp 0x14004782e
mov r8d, 0x93
mov dword [rsp + 0x20], 3
call fcn.140008c40
mov rcx, rax
lea r9, [0x1402298d8]
lea r8, str.subKey
lea rdx, str._s___s
call fcn.140008d50
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rdx, [0x1402298d8]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test eax, eax
je 0x14004786d
movzx ebx, di
mov esi, eax
or ebx, 0x80070000
test eax, eax
jle 0x1400477eb
mov esi, ebx
mov qword [rsp + 0x28], rbp
lea r9, [0x1402a214c]
mov r8d, 0x98
mov dword [rsp + 0x20], r14d
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5_toscommonlib_rs5include_regconfig.h
lea rcx, [rsp + 0x60]
call fcn.140008c40
mov rcx, rax
lea rdx, str.Error_Code:_0x_x
mov r8d, esi
call fcn.140008d50
test edi, edi
cmovle ebx, edi
test ebx, ebx
jns 0x14004786d
mov r8d, 0x4ae
mov qword [rsp + 0x28], r15
lea r9, [0x1402a214c]
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tospower_tosservicemodule.cpp
mov dword [rsp + 0x20], r14d
lea rcx, [rsp + 0x60]
call fcn.140008c40
mov rcx, rax
lea rdx, str.Error_Code:_0x_x
mov r8d, ebx
call fcn.140008d50
jmp 0x140047962
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jne 0x1400478c8
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], r14d
lea rcx, [rsp + 0x60]
call fcn.140008c40
mov ebx, 0x80070006
lea rdx, str.Error_Code:_0x_x
mov r8d, ebx
mov rcx, rax
call fcn.140008d50
mov r8d, 0x4af
jmp 0x140047834
lea rax, [rsp + 0xf0]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.TPS_Installed
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test eax, eax
je 0x14004795f
movzx ebx, di
mov esi, eax
or ebx, 0x80070000
test eax, eax
jle 0x14004790a
mov esi, ebx
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], r14d
lea rcx, [rsp + 0x60]
call fcn.140008c40
mov rcx, rax
lea rdx, str.Error_Code:_0x_x
mov r8d, esi
call fcn.140008d50
test edi, edi
cmovle ebx, edi
test ebx, ebx
jns 0x14004795f
mov r8d, 0x4af
jmp 0x140047834
mov ebx, r14d
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], r12
call fcn.140005d10
mov r8, qword [rsp + 0x88]
lea rdx, str.LEAVE__s
lea rcx, [rsp + 0x90]
call fcn.140008d50
lea r11, [rsp + 0xc0]
mov eax, ebx
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret