Function at 0x140025d70
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r12
push r13
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x1402f8c60]
xor rax, rsp
mov qword [rbp], rax
xor r13d, r13d
mov r12, rcx
mov dword [rcx], r13d
mov qword [rsp + 0x38], r13
call fcn.140002c10
mov rcx, rax
test rax, rax
je 0x140026027
mov rax, qword [rax]
mov qword [rsp + 0x148], rbx
mov qword [rsp + 0x150], rsi
mov qword [rsp + 0x158], rdi
mov qword [rsp + 0x118], r14
mov qword [rsp + 0x110], r15
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov r9d, 0x20019
lea rdx, [0x1402a3530]
xor r8d, r8d
mov rcx, 0xffffffff80000002
lea rbx, [rax + 0x18]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140025e60
mov edi, 0x80004005
mov dword [rsp + 0x50], 0x765
lea rsi, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tecopower_tecopower.cpp
mov dword [rsp + 0x68], r13d
lea r14, str.__TecoPower::IsLaterThanWin10RS3_
mov qword [rsp + 0x48], rsi
lea r15, [0x1402a214c]
mov qword [rsp + 0x58], r14
mov r8d, edi
mov qword [rsp + 0x60], r15
lea rdx, str.Error_Code:_0x_x
lea rcx, [rsp + 0x48]
call fcn.140008d50
jmp 0x140025fb7
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x34]
xor eax, eax
mov dword [rsp + 0x30], SafeArrayUnaccessData
mov qword [rbp - 0x18], rax
lea rdx, [0x1402a34c8]
mov word [rbp - 0x10], ax
mov edi, 1
lea rax, [rsp + 0x30]
mov dword [rsp + 0x34], edi
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140025ef8
mov edi, 0x80004005
mov dword [rsp + 0x78], 0x76b
lea rsi, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tecopower_tecopower.cpp
mov dword [rbp - 0x70], r13d
lea r14, str.__TecoPower::IsLaterThanWin10RS3_
mov qword [rsp + 0x70], rsi
lea r15, [0x1402a214c]
mov qword [rbp - 0x80], r14
mov r8d, edi
mov qword [rbp - 0x78], r15
lea rdx, str.Error_Code:_0x_x
lea rcx, [rsp + 0x70]
call fcn.140008d50
jmp 0x140025fb7
lea r8, [rbp - 0x18]
lea rdx, [0x1402a85d4]
lea rcx, [rsp + 0x40]
call fcn.1400056c0
mov rbx, qword [rsp + 0x40]
lea rsi, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tecopower_tecopower.cpp
lea r14, str.__TecoPower::IsLaterThanWin10RS3_
mov qword [rbp - 0x68], rsi
lea r15, [0x1402a214c]
mov dword [rbp - 0x60], 0x76d
mov r8, rbx
mov qword [rbp - 0x58], r14
lea rdx, [0x1402a85d4]
mov qword [rbp - 0x50], r15
lea rcx, [rbp - 0x68]
mov dword [rbp - 0x48], 3
call fcn.140008d50
mov rax, r13
lea r8, str.15063
nop
movzx ecx, word [rbx + rax*2]
inc rax
cmp cx, word [r8 + rax*2 - 2]
jne 0x140025f7b
cmp rax, 6
jne 0x140025f60
cmp cx, word [r8 + rax*2 - 2]
jbe 0x140025f83
mov dword [r12], edi
jmp 0x140025f87
mov edi, dword [r12]
mov r8d, edi
mov qword [rbp - 0x40], rsi
lea rdx, str.bIsLaterThanWin10RS3___d
mov dword [rbp - 0x38], 0x770
lea rcx, [rbp - 0x40]
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], r15
mov dword [rbp - 0x20], 3
call fcn.140008d50
mov edi, r13d
mov rcx, qword [rsp + 0x38]
mov r15, qword [rsp + 0x110]
mov r14, qword [rsp + 0x118]
mov rsi, qword [rsp + 0x150]
test rcx, rcx
je 0x140025fdf
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rbx - 0x18]
mov ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
mov rbx, qword [rsp + 0x148]
sub ecx, 1
jg 0x140026004
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, edi
mov rdi, qword [rsp + 0x158]
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140072680
add rsp, 0x120
pop r13
pop r12
pop rbp
ret
mov ecx, 0x80004005
call fcn.140002ad0
int3