Function at 0x140034a60
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
push rbp
push rbx
push rsi
push rdi
push r12
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xf8
mov r12, rdx
mov dword [rbp - 1], 0x2a0
mov r15, rcx
mov dword [rbp + 0x17], 3
lea r8, str.CBatmgrFunc::GetCurrentBatteryLifecycleInfo
lea rdi, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_batmgr_batmgrfunc.cpp
mov qword [rbp - 0x11], r8
lea rbx, str.__CBatmgrFunc::GetCurrentBatteryLifecycleInfo_
mov qword [rbp - 9], rdi
lea rsi, [0x1402a214c]
mov qword [rbp + 7], rbx
lea rdx, str.ENTER__s
mov qword [rbp + 0xf], rsi
lea rcx, [rbp - 9]
call fcn.140008d50
test r12, r12
jne 0x140034b03
mov qword [rbp - 0x79], rdi
lea rdx, str.Error_Code:_0x_x
mov qword [rbp - 0x69], rbx
lea rcx, [rbp - 0x79]
xor ebx, ebx
mov dword [rbp - 0x71], 0x2a2
mov edi, 0x80004005
mov qword [rbp - 0x61], rsi
mov r8d, edi
mov dword [rbp - 0x59], ebx
call fcn.140008d50
jmp 0x140034e59
mov qword [rsp + 0x130], r13
lea r9, [r12 + 8]
mov qword [rsp + 0xf0], r14
lea r8, [r12 + 4]
lea r14, [r12 + 0xc]
mov rdx, r12
mov rcx, r15
mov qword [rsp + 0x20], r14
call fcn.140032e40
mov r9d, dword [r12 + 4]
lea rax, str.__CBatmgrFunc::GetCurrentBatteryLifecycleInfo_
mov r8d, dword [r12]
lea rdx, str.dyna:Mode1_d_Mode2_d_Recommendation1_d_Recommendation2_d_iDisable_d
mov qword [rbp - 0x69], rax
lea rcx, [rbp - 0x79]
mov eax, dword [r12 + 0x10]
mov dword [rsp + 0x30], eax
mov eax, dword [r14]
mov dword [rsp + 0x28], eax
mov eax, dword [r12 + 8]
mov dword [rsp + 0x20], eax
mov qword [rbp - 0x79], rdi
mov dword [rbp - 0x71], 0x2a5
mov qword [rbp - 0x61], rsi
mov dword [rbp - 0x59], 2
call fcn.140008d50
xor ebx, ebx
lea r8, str.SoftwareDynabookeco_UtilityBatteryManager
mov r9d, 0x20019
mov qword [rbp - 0x79], rbx
mov rdx, 0xffffffff80000002
mov dword [rbp - 0x71], ebx
lea rcx, [rbp - 0x79]
mov qword [rbp - 0x69], rbx
call fcn.140026300
mov rcx, r15
mov dword [rbp + 0x6f], ebx
mov edi, eax
call fcn.1400359c0
mov rsi, qword [rbp - 0x79]
test eax, eax
jne 0x140034c11
lea rax, [rbp + 0x7f]
mov dword [rbp + 0x7f], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rbp + 0x6f]
xor r8d, r8d
lea rdx, str.CurrentMode
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x140034c0a
cmp dword [rsp + 0x40], 4
mov edi, ebx
mov eax, 0xd
cmovne edi, eax
mov eax, dword [rbp + 0x6f]
mov dword [r12], eax
mov r8d, dword [r12]
lea rax, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_batmgr_batmgrfunc.cpp
mov qword [rbp - 0x79], rax
lea rdx, str.GetCurrentBatteryLifecycleInfo_pMode__Mode1___d
lea rax, str.__CBatmgrFunc::GetCurrentBatteryLifecycleInfo_
mov dword [rbp - 0x71], 0x2b0
mov qword [rbp - 0x69], rax
lea rcx, [rbp - 0x79]
lea rax, [0x1402a214c]
mov dword [rbp - 0x59], 3
mov qword [rbp - 0x61], rax
call fcn.140008d50
lea rax, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_batmgr_batmgrfunc.cpp
test edi, edi
je 0x140034ca3
mov dword [rbp - 0x71], 0x2b1
mov qword [rbp - 0x79], rax
lea rdx, str.Error_Code:_0x_x
lea rax, str.__CBatmgrFunc::GetCurrentBatteryLifecycleInfo_
mov dword [rbp - 0x59], ebx
mov qword [rbp - 0x69], rax
lea rcx, [rbp - 0x79]
mov edi, 0x80004005
lea rax, [0x1402a214c]
mov r8d, edi
mov qword [rbp - 0x61], rax
mov r14d, edi
call fcn.140008d50
jmp 0x140034e27
mov qword [rbp - 0x39], rax
lea r8, str.CBatmgrFunc::IsSecBattShow
lea rax, str.__CBatmgrFunc::IsSecBattShow_
mov qword [rbp - 0x41], r8
mov qword [rbp - 0x29], rax
lea rdx, str.ENTER__s
lea rax, [0x1402a214c]
mov dword [rbp - 0x31], 0x279
lea rcx, [rbp - 0x39]
mov qword [rbp - 0x21], rax
mov dword [rbp - 0x19], 3
call fcn.140008d50
lea r9, [rbp - 0x4d]
mov dword [rbp - 0x51], ebx
lea r8, [rbp - 0x51]
mov dword [rbp - 0x4d], ebx
lea rdx, [rbp + 0x7f]
mov dword [rbp + 0x7f], ebx
mov rcx, r15
call fcn.140033c80
cmp dword [rbp + 0x7f], ebx
jne 0x140034e7f
mov r8, qword [rbp - 0x41]
lea rdx, str.LEAVE__s
lea rcx, [rbp - 0x39]
call fcn.140008d50
mov dword [r12 + 4], 2
mov dword [r14], 2
lea rdx, [rbp + 0x7f]
mov dword [rbp + 0x7f], ebx
mov rcx, r15
call fcn.140032150
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
call fcn.1400356b0
mov edi, dword [rbp + 0x7f]
lea r15, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_batmgr_batmgrfunc.cpp
lea r14, str.__CBatmgrFunc::GetCurrentBatteryLifecycleInfo_
mov qword [rbp - 0x79], r15
lea r13, [0x1402a214c]
mov qword [rbp - 0x69], r14
mov r9d, edi
mov qword [rbp - 0x61], r13
lea r8, str.dwDockedBefore
mov dword [rbp - 0x71], 0x2dc
lea rdx, str._s___d
mov dword [rbp - 0x59], 3
lea rcx, [rbp - 0x79]
call fcn.140008d50
mov qword [rbp - 0x69], r14
lea r8, str.iBattCount
mov r14d, dword [rsp + 0x40]
lea rdx, str._s___d
mov r9d, r14d
mov qword [rbp - 0x79], r15
lea rcx, [rbp - 0x79]
mov dword [rbp - 0x71], 0x2dd
mov qword [rbp - 0x61], r13
mov dword [rbp - 0x59], 3
call fcn.140008d50
cmp edi, 1
jne 0x140034dde
cmp r14d, 2
cmovl edi, ebx
mov r9d, ebx
mov qword [rbp - 0x79], r15
test edi, edi
mov dword [rbp - 0x71], 0x2e0
lea rax, str.__CBatmgrFunc::GetCurrentBatteryLifecycleInfo_
mov qword [rbp - 0x61], r13
sete r9b
mov qword [rbp - 0x69], rax
lea r8, str.pMode__iDisable
mov dword [r12 + 0x10], r9d
lea rdx, str._s___d
mov dword [rbp - 0x59], 3
lea rcx, [rbp - 0x79]
call fcn.140008d50
mov r14d, ebx
test rsi, rsi
je 0x140034e38
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, rbx
mov edi, r14d
mov r14, qword [rsp + 0xf0]
mov r13, qword [rsp + 0x130]
test rsi, rsi
je 0x140034e59
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8, qword [rbp - 0x11]
lea rdx, str.LEAVE__s
lea rcx, [rbp - 9]
call fcn.140008d50
mov eax, edi
add rsp, 0xf8
pop r15
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
cmp dword [rbp - 0x51], 1
jne 0x14003504b
cmp dword [rbp - 0x4d], 1
jne 0x14003504b
mov r9d, 0x2001f
mov dword [rsp + 0x40], 1
lea r8, str.SoftwareDynabookeco_UtilityBatteryManager
mov qword [rbp - 0x79], rbx
mov rdx, 0xffffffff80000002
mov dword [rbp - 0x71], ebx
lea rcx, [rbp - 0x79]
mov qword [rbp - 0x69], rbx
call fcn.140026300
mov r14, qword [rbp - 0x79]
test eax, eax
jne 0x140034f33
lea rax, [rbp - 0x49]
mov dword [rbp + 0x7f], ebx
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x45]
lea rax, [rbp + 0x7f]
mov dword [rbp - 0x49], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.CurrentMode2
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rbp + 0x7f], 2
jne 0x140034f33
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x48], ebx
lea rdx, str.CurrentMode2
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test r14, r14
je 0x140034f41
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r14, [r12 + 0xc]
mov r8, qword [rbp - 0x41]
lea rdx, str.LEAVE__s
lea rcx, [rbp - 0x39]
call fcn.140008d50
cmp dword [rsp + 0x40], ebx
je 0x140034d20
mov rcx, r15
call fcn.1400359c0
test eax, eax
jne 0x140034fbe
lea rax, [rbp + 0x7f]
mov dword [rbp + 0x7f], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x48]
lea rax, [rbp + 0x6f]
xor r8d, r8d
lea rdx, str.CurrentMode2
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x140034fb6
cmp dword [rsp + 0x48], 4
mov edi, ebx
mov eax, 0xd
cmovne edi, eax
mov eax, dword [rbp + 0x6f]
mov dword [r12 + 4], eax
mov r8d, dword [r12 + 4]
lea rax, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_batmgr_batmgrfunc.cpp
mov qword [rbp - 0x79], rax
lea rdx, str.GetCurrentBatteryLifecycleInfo_pMode__Mode2___d
lea rax, str.__CBatmgrFunc::GetCurrentBatteryLifecycleInfo_
mov dword [rbp - 0x71], 0x2ba
mov qword [rbp - 0x69], rax
lea rcx, [rbp - 0x79]
lea rax, [0x1402a214c]
mov dword [rbp - 0x59], 3
mov qword [rbp - 0x61], rax
call fcn.140008d50
mov dword [r15], ebx
mov eax, dword [r12]
cmp eax, 1
je 0x14003501a
cmp eax, 0x50
je 0x14003501a
mov ecx, ebx
cmp eax, 0x46
jne 0x140035026
mov dword [r15], 1
mov ecx, 1
mov eax, dword [r12 + 4]
cmp eax, 1
je 0x14003503a
cmp eax, 0x50
je 0x14003503a
cmp eax, 0x46
jne 0x140035040
lea eax, [rcx + 2]
mov dword [r15], eax
test edi, edi
je 0x140035054
mov edi, ebx
jmp 0x140034e3b
mov dword [rsp + 0x40], ebx
jmp 0x140034f46
cmp dword [rbp + 0x77], ebx
je 0x140034d30
lea rax, [rbp + 0x7f]
mov dword [rbp + 0x7f], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x48]
lea rax, [rbp + 0x6f]
xor r8d, r8d
lea rdx, str.Recommendation
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
mov edi, 0xd
test eax, eax
jne 0x1400350a3
cmp dword [rsp + 0x48], 4
mov ecx, ebx
cmovne ecx, edi
mov eax, dword [rbp + 0x6f]
mov dword [r12 + 8], eax
test ecx, ecx
je 0x1400350c2
lea rax, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_batmgr_batmgrfunc.cpp
mov dword [rbp - 0x71], 0x2cd
jmp 0x140034c66
lea rax, [rbp + 0x7f]
mov dword [rbp + 0x7f], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x48]
lea rax, [rbp + 0x6f]
xor r8d, r8d
lea rdx, str.Recommendation2
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test eax, eax
jne 0x140035103
cmp dword [rsp + 0x48], 4
mov ecx, ebx
cmovne ecx, edi
mov eax, dword [rbp + 0x6f]
mov dword [r14], eax
test ecx, ecx
je 0x140034d30
lea rax, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_batmgr_batmgrfunc.cpp
mov dword [rbp - 0x71], 0x2d0
jmp 0x140034c66