Function at 0x140059540
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xa0
mov ebx, edx
lea rax, str.MessageWnd::saveLastBrightnessLevelInAIO
lea r14, str.__MessageWnd::saveLastBrightnessLevelInAIO_
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x28], r14
lea r9, [0x1402a214c]
mov r8d, 0x3fb
mov dword [rsp + 0x20], 3
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tospowermessagewnd.cpp
lea rcx, [rsp + 0x70]
call fcn.140008c40
mov r8, qword [rsp + 0x68]
lea rdx, str.ENTER__s
lea rcx, [rsp + 0x70]
call fcn.140008d50
xor ebp, ebp
mov dword [rsp + 0xd8], ebx
lea r15, str.__RegConfigAccess::Open_
mov qword [rsp + 0x38], rbp
lea r12, vtable.RegConfigAccess.0
mov qword [rsp + 0x28], r15
lea r9, [0x1402a214c]
mov qword [rsp + 0x30], r12
lea r8d, [rbp + 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
lea rcx, [rsp + 0x40]
call fcn.140008c40
mov rcx, rax
lea r9, [0x140231220]
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, [0x140231220]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
je 0x1400596a1
movzx ebx, di
mov esi, eax
or ebx, 0x80070000
test eax, eax
jle 0x140059654
mov esi, ebx
mov qword [rsp + 0x28], r15
lea r9, [0x1402a214c]
mov r8d, 0x67
mov dword [rsp + 0x20], ebp
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5_toscommonlib_rs5include_regconfig.h
lea rcx, [rsp + 0x40]
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 0x1400596a1
mov r8d, 0x402
jmp 0x14005978a
mov rcx, qword [rsp + 0x38]
test rcx, rcx
jne 0x1400596f5
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], ebp
lea rcx, [rsp + 0x40]
call fcn.140008c40
mov ebx, 0x80070006
lea rdx, str.Error_Code:_0x_x
mov r8d, ebx
mov rcx, rax
call fcn.140008d50
jmp 0x140059784
lea rax, [rsp + 0xd8]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.LastBrightnessLevelInAIO
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test eax, eax
je 0x1400597bf
movzx ebx, di
mov esi, eax
or ebx, 0x80070000
test eax, eax
jle 0x14005973b
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], ebp
lea rcx, [rsp + 0x40]
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 0x1400597bf
mov r8d, 0x405
mov qword [rsp + 0x28], r14
lea r9, [0x1402a214c]
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tospowermessagewnd.cpp
mov dword [rsp + 0x20], ebp
lea rcx, [rsp + 0x40]
call fcn.140008c40
mov rcx, rax
lea rdx, str.Error_Code:_0x_x
mov r8d, ebx
call fcn.140008d50
jmp 0x1400597cb
lea rcx, [rsp + 0x30]
call fcn.140005d10
mov ebx, ebp
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], r12
call fcn.140005d10
mov r8, qword [rsp + 0x68]
lea rdx, str.LEAVE__s
lea rcx, [rsp + 0x70]
call fcn.140008d50
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret