Function at 0x14005ff40
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
sub rsp, 0xa0
mov rsi, rdx
lea rax, str.ChangeSettingPipeHandler::_saveSetting
mov rbp, rcx
mov qword [rsp + 0x68], rax
lea r13, str.__ChangeSettingPipeHandler::_saveSetting_
mov r8d, 0xff
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_tospowerchangesettingpipehandler.cpp
mov dword [rsp + 0x20], 3
lea rcx, [rsp + 0x70]
call fcn.140008c40
mov r8, qword [rsp + 0x68]
lea rdx, str.ENTER__s
lea rcx, [rsp + 0x70]
call fcn.140008d50
test rsi, rsi
jne 0x14005fff2
xor edi, edi
mov qword [rsp + 0x28], r13
lea r9, [0x1402a214c]
mov dword [rsp + 0x20], edi
mov r8d, 0x102
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tospowerchangesettingpipehandler.cpp
lea rcx, [rsp + 0x40]
call fcn.140008c40
mov ebx, 0x80070057
lea rdx, str.Error_Code:_0x_x
mov r8d, ebx
mov rcx, rax
call fcn.140008d50
jmp 0x1400602b3
mov qword [rsp + 0xd8], r14
mov rcx, rbp
mov r14d, dword [rsi]
mov qword [rsp + 0xe0], r15
call fcn.14005fd80
lea rax, vtable.RegConfigAccess.0
xor edi, edi
mov qword [rsp + 0x30], rax
lea r9, [0x1402a214c]
lea rax, str.__RegConfigAccess::Open_
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x28], rax
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5_toscommonlib_rs5include_regconfig.h
lea r8d, [rdi + 0x63]
mov dword [rsp + 0x20], 3
lea rcx, [rsp + 0x40]
call fcn.140008c40
mov rcx, rax
lea r9, [0x1402356c0]
lea r8, str.pszSubKey
lea rdx, str._s___s
call fcn.140008d50
lea rax, [rsp + 0x38]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x1402356c0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r15d, eax
test eax, eax
je 0x14006014c
movzx ebx, r15w
or ebx, 0x80070000
mov qword [rsp + 0xd0], r12
mov r12d, eax
test eax, eax
jle 0x1400600bb
mov r12d, ebx
lea rax, str.__RegConfigAccess::Open_
mov r8d, 0x67
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], edi
lea rcx, [rsp + 0x40]
call fcn.140008c40
mov rcx, rax
lea rdx, str.Error_Code:_0x_x
mov r8d, r12d
call fcn.140008d50
mov r12, qword [rsp + 0xd0]
test r15d, r15d
cmovle ebx, r15d
test ebx, ebx
jns 0x14006014c
mov qword [rsp + 0x28], r13
lea r9, [0x1402a214c]
mov r8d, 0x110
mov dword [rsp + 0x20], edi
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tospowerchangesettingpipehandler.cpp
lea rcx, [rsp + 0x40]
call fcn.140008c40
mov rcx, rax
lea rdx, str.Error_Code:_0x_x
mov r8d, ebx
call fcn.140008d50
jmp 0x140060299
test r14b, 2
je 0x140060181
mov eax, dword [rsi + 4]
lea r9, [rbp + 0xc]
mov r8d, 4
mov dword [rbp + 0xc], eax
lea rdx, str.ShowToastWhenModeChanged
lea rcx, [rsp + 0x30]
call fcn.1400089c0
mov ebx, dword [rbp + 0xc]
call fcn.1400431e0
mov dword [rax + 0x140], ebx
test r14b, 4
je 0x1400601a8
mov eax, dword [rsi + 8]
lea r9, [rbp + 0x10]
mov r8d, 4
mov dword [r9], eax
lea rdx, str.ShowDADOMsg
lea rcx, [rsp + 0x30]
call fcn.1400089c0
test r14b, 8
je 0x1400601cf
mov eax, dword [rsi + 0xc]
lea r9, [rbp + 0x14]
mov r8d, 4
mov dword [r9], eax
lea rdx, str.ShowToastAfterAttainGoal
lea rcx, [rsp + 0x30]
call fcn.1400089c0
test r14b, 0x10
je 0x140060297
mov rcx, qword [rsp + 0x38]
add rbp, 0x18
mov eax, dword [rsi + 0x10]
mov dword [rbp], eax
test rcx, rcx
jne 0x140060223
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], edi
lea rcx, [rsp + 0x40]
call fcn.140008c40
mov r8d, 0x80070006
jmp 0x140060288
mov dword [rsp + 0x28], 4
lea rdx, str.HistoryViewMode
mov r9d, 4
mov qword [rsp + 0x20], rbp
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x140060297
jle 0x140060257
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], edi
lea rcx, [rsp + 0x40]
call fcn.140008c40
mov r8d, ebx
lea rdx, str.Error_Code:_0x_x
mov rcx, rax
call fcn.140008d50
mov ebx, edi
lea rcx, [rsp + 0x30]
call fcn.140005ba0
mov r15, qword [rsp + 0xe0]
mov r14, qword [rsp + 0xd8]
mov r8, qword [rsp + 0x68]
lea rdx, str.LEAVE__s
lea rcx, [rsp + 0x70]
call fcn.140008d50
mov eax, ebx
add rsp, 0xa0
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret