Function at 0x140042320
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
xor r13d, r13d
lea rax, vtable.RegConfigAccess.0
mov qword [rbp - 0x29], rax
mov r12d, r9d
mov qword [rbp - 0x21], r13
mov rsi, rdx
mov ebx, 0x80004005
cmp r8d, 1
jne 0x140042587
lea r15, str.__RegConfigAccess::Open_
mov qword [rsp + 0x28], r15
lea r9, [0x1402a214c]
lea r8d, [r13 + 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, [rbp - 0x19]
call fcn.140008c40
mov rcx, rax
lea r9, [0x140228058]
lea r8, str.pszSubKey
lea rdx, str._s___s
call fcn.140008d50
lea rax, [rbp - 0x21]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x140228058]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
je 0x140042447
movzx ebx, di
mov r14d, eax
or ebx, 0x80070000
test eax, eax
jle 0x1400423f6
mov r14d, ebx
mov qword [rsp + 0x28], r15
lea r9, [0x1402a214c]
mov r8d, 0x67
mov dword [rsp + 0x20], r13d
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5_toscommonlib_rs5include_regconfig.h
lea rcx, [rbp - 0x19]
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 0x140042447
mov r8d, 0x58
lea rcx, [rbp - 0x19]
jmp 0x140042669
mov r8, rsi
mov qword [rbp - 0x19], r13
xor edx, edx
mov qword [rbp - 0x11], r13
lea rcx, [rbp - 0x19]
mov qword [rbp - 9], r13
call fcn.140042790
xor r9d, r9d
lea r8, [rbp - 0x19]
lea rdx, str.SyncCoolingWithPowerSlider
lea rcx, [rbp - 0x29]
call fcn.140042070
mov ebx, eax
test eax, eax
jns 0x140042506
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], r13d
lea rcx, [rbp + 0xf]
call fcn.140008c40
mov rcx, rax
lea rdx, str.Error_Code:_0x_x
mov r8d, ebx
call fcn.140008d50
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x14004255b
mov rdx, qword [rbp - 9]
mov rax, rcx
sub rdx, rcx
and rdx, 0xfffffffffffffffc
cmp rdx, 0x1000
jb 0x1400424ff
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004277c
call fcn.14001dee0
jmp 0x14004255b
mov rax, qword [rbp - 0x11]
mov rcx, qword [rbp - 0x19]
sub rax, rcx
sar rax, 2
test rax, rax
je 0x14004251e
mov eax, dword [rcx]
mov dword [rsi], eax
test rcx, rcx
je 0x140042558
mov rdx, qword [rbp - 9]
mov rax, rcx
sub rdx, rcx
and rdx, 0xfffffffffffffffc
cmp rdx, 0x1000
jb 0x140042553
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004277c
call fcn.14001dee0
mov ebx, r13d
lea rcx, [rbp - 0x29]
call fcn.140005ba0
lea r11, [rsp + 0x90]
mov eax, ebx
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
test r8d, r8d
jne 0x14004255b
lea r15, str.__RegConfigAccess::Open_
mov r8d, 0x63
mov qword [rsp + 0x28], r15
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], 3
lea rcx, [rbp + 0xf]
call fcn.140008c40
mov rcx, rax
lea r9, [0x140228058]
lea r8, str.pszSubKey
lea rdx, str._s___s
call fcn.140008d50
lea rax, [rbp - 0x21]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x140228058]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
je 0x1400426a4
movzx ebx, di
mov r14d, eax
or ebx, 0x80070000
test eax, eax
jle 0x14004261d
mov r14d, ebx
mov qword [rsp + 0x28], r15
lea r9, [0x1402a214c]
mov r8d, 0x67
mov dword [rsp + 0x20], r13d
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5_toscommonlib_rs5include_regconfig.h
lea rcx, [rbp + 0xf]
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 0x1400426a4
mov r8d, 0x5e
lea rcx, [rbp + 0xf]
lea rax, str.__PowerSliderMonitor::RegConfigProc_
mov qword [rsp + 0x28], rax
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tospowerpowerslidermonitor.h
lea r9, [0x1402a214c]
mov dword [rsp + 0x20], r13d
call fcn.140008c40
mov rcx, rax
lea rdx, str.Error_Code:_0x_x
mov r8d, ebx
call fcn.140008d50
jmp 0x14004255b
mov rcx, qword [rbp - 0x21]
test rcx, rcx
jne 0x1400426f7
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], r13d
lea rcx, [rbp + 0xf]
call fcn.140008c40
mov ebx, 0x80070006
lea rdx, str.Error_Code:_0x_x
mov r8d, ebx
mov rcx, rax
call fcn.140008d50
jmp 0x14004255b
mov dword [rsp + 0x28], 4
lea rdx, str.SyncCoolingWithPowerSlider
mov r9d, r12d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test eax, eax
je 0x140042558
movzx ebx, di
mov esi, eax
or ebx, 0x80070000
test eax, eax
jle 0x140042732
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], r13d
lea rcx, [rbp + 0xf]
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
jmp 0x14004255b
call fcn.1401f802c
int3