Function at 0x1400353f0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x10], edx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rsi, r8
mov dword [rbp + 0xf], 0x30a
lea r8, str.CBatmgrFunc::SetCurrentRecommendation
mov dword [rbp + 0x27], 3
lea rax, str.__CBatmgrFunc::SetCurrentRecommendation_
mov qword [rbp - 1], r8
lea r13, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_batmgr_batmgrfunc.cpp
mov qword [rbp + 0x17], rax
lea r15, [0x1402a214c]
mov qword [rbp + 7], r13
lea rdx, str.ENTER__s
mov qword [rbp + 0x1f], r15
lea rcx, [rbp + 7]
call fcn.140008d50
lea rax, vtable.RegConfigAccess.0
mov dword [rbp - 0x21], 0x63
mov qword [rbp - 0x39], rax
lea r12, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5_toscommonlib_rs5include_regconfig.h
lea rax, str.__RegConfigAccess::Open_
mov qword [rbp - 0x29], r12
xor r14d, r14d
mov qword [rbp - 0x19], rax
lea r9, str.SoftwareDynabookeco_UtilityBatteryManager
mov qword [rbp - 0x31], r14
lea r8, str.pszSubKey
mov qword [rbp - 0x11], r15
lea rdx, str._s___s
mov dword [rbp - 9], 3
lea rcx, [rbp - 0x29]
call fcn.140008d50
lea rax, [rbp - 0x31]
mov r9d, 0xf013f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareDynabookeco_UtilityBatteryManager
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
je 0x14003556d
movzx ebx, di
mov r8d, eax
or ebx, 0x80070000
test eax, eax
jle 0x140035500
mov r8d, ebx
lea rax, str.__RegConfigAccess::Open_
mov qword [rbp - 0x29], r12
lea rdx, str.Error_Code:_0x_x
mov qword [rbp - 0x19], rax
lea rcx, [rbp - 0x29]
mov dword [rbp - 0x21], 0x67
mov qword [rbp - 0x11], r15
mov dword [rbp - 9], r14d
call fcn.140008d50
test edi, edi
cmovle ebx, edi
test ebx, ebx
jns 0x14003556d
lea rax, str.__CBatmgrFunc::SetCurrentRecommendation_
mov qword [rbp - 0x29], r13
mov r8d, ebx
mov qword [rbp - 0x19], rax
lea rdx, str.Error_Code:_0x_x
mov dword [rbp - 0x21], 0x30f
lea rcx, [rbp - 0x29]
mov qword [rbp - 0x11], r15
mov dword [rbp - 9], r14d
call fcn.140008d50
jmp 0x140035660
mov rcx, qword [rbp - 0x31]
test rcx, rcx
jne 0x1400355ae
lea rax, str.__RegConfigAccess::SetValue_
mov qword [rbp - 0x29], r12
mov ebx, 0x80070006
mov dword [rbp - 0x21], 0x15f
mov r8d, ebx
mov qword [rbp - 0x19], rax
lea rdx, str.Error_Code:_0x_x
mov qword [rbp - 0x11], r15
lea rcx, [rbp - 0x29]
mov dword [rbp - 9], r14d
call fcn.140008d50
jmp 0x140035621
lea rax, [rbp + 0x6f]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test eax, eax
je 0x140035654
movzx ebx, di
mov r8d, eax
or ebx, 0x80070000
test eax, eax
jle 0x1400355ea
mov r8d, ebx
lea rax, str.__RegConfigAccess::SetValue_
mov qword [rbp - 0x29], r12
lea rdx, str.Error_Code:_0x_x
mov qword [rbp - 0x19], rax
lea rcx, [rbp - 0x29]
mov dword [rbp - 0x21], 0x163
mov qword [rbp - 0x11], r15
mov dword [rbp - 9], r14d
call fcn.140008d50
test edi, edi
cmovle ebx, edi
test ebx, ebx
jns 0x140035654
lea rax, str.__CBatmgrFunc::SetCurrentRecommendation_
mov qword [rbp - 0x29], r13
mov r8d, ebx
mov qword [rbp - 0x19], rax
lea rdx, str.Error_Code:_0x_x
mov dword [rbp - 0x21], 0x311
lea rcx, [rbp - 0x29]
mov qword [rbp - 0x11], r15
mov dword [rbp - 9], r14d
call fcn.140008d50
jmp 0x140035657
mov ebx, r14d
lea rcx, [rbp - 0x39]
call fcn.140005d10
lea rax, vtable.RegConfigAccess.0
lea rcx, [rbp - 0x39]
mov qword [rbp - 0x39], rax
call fcn.140005d10
mov r8, qword [rbp - 1]
lea rdx, str.LEAVE__s
lea rcx, [rbp + 7]
call fcn.140008d50
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret