Function at 0x1400464f0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
lea rbp, [rsp - 0x28]
sub rsp, 0x128
mov rax, qword [0x1402f8c60]
xor rax, rsp
mov qword [rbp + 0x18], rax
xor esi, esi
mov qword [rsp + 0x30], rsi
call fcn.1400045e0
mov rcx, rax
test rax, rax
je 0x14004689b
mov rax, qword [rax]
mov qword [rsp + 0x140], rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov r9d, 0x20019
lea rdx, [0x140229850]
xor r8d, r8d
mov rcx, 0xffffffff80000002
lea rbx, [rax + 0x18]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400465c4
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140046583
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
movups xmm0, xmmword [0x14023e410]
lea rcx, [rbp - 0x40]
movups xmmword [rbp - 0x40], xmm0
call fcn.140056340
movups xmm0, xmmword [0x14023e410]
lea rdx, [rbp - 0x20]
lea rcx, vtable.CPowrProfUtil.0
movups xmmword [rbp - 0x20], xmm0
call fcn.1400550e0
test eax, eax
jne 0x140046765
mov esi, 0x80
jmp 0x14004687b
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x3c]
xor eax, eax
mov dword [rsp + 0x38], SafeArrayUnaccessData
mov qword [rbp], rax
lea rdx, [0x1402298b0]
mov word [rbp + 8], ax
xor r8d, r8d
lea rax, [rsp + 0x38]
mov dword [rsp + 0x3c], 1
mov qword [rsp + 0x28], rax
lea rax, [rbp]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140046628
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140046567
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140046567
mov qword [rsp + 0x148], rdi
lea r8, [rbp]
mov qword [rsp + 0x150], r14
lea rdx, [0x1402a85d4]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x120], r15
call fcn.1400056c0
lea r15, str.__IsLaterThanWin10RS3_
mov r8d, 0x262
mov qword [rsp + 0x28], r15
lea r9, [0x1402a214c]
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tospower_tosservicemodule.cpp
mov dword [rsp + 0x20], 3
lea rcx, [rsp + 0x70]
call fcn.140008c40
mov rbx, qword [rsp + 0x40]
lea rdx, [0x1402a85d4]
mov r8, rbx
mov rcx, rax
call fcn.140008d50
mov rcx, rsi
lea r8, str.15063
nop dword [rax + rax]
movzx r14d, word [rbx + rcx*2]
inc rcx
movzx eax, word [r8 + rcx*2 - 2]
sub r14d, eax
jne 0x1400466c9
cmp rcx, 6
jne 0x1400466b0
test r14d, r14d
mov qword [rsp + 0x28], r15
mov edi, esi
mov dword [rsp + 0x20], 3
lea r9, [0x1402a214c]
mov r8d, 0x265
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tospower_tosservicemodule.cpp
setg dil
lea rcx, [rbp - 0x68]
call fcn.140008c40
mov rcx, rax
lea rdx, str.bIsLaterThanWin10RS3___d
mov r8d, edi
call fcn.140008d50
mov rcx, qword [rsp + 0x30]
mov r15, qword [rsp + 0x120]
mov rdi, qword [rsp + 0x148]
test rcx, rcx
je 0x14004672e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004674a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test r14d, r14d
mov r14, qword [rsp + 0x150]
jle 0x140046583
call fcn.1400468b0
jmp 0x14004687d
mov rcx, qword [rbp - 0x40]
cmp qword [rbp - 0x20], rcx
jne 0x1400467d1
mov rax, qword [rbp - 0x18]
cmp rax, qword [rbp - 0x38]
jne 0x1400467d1
movups xmm0, xmmword [0x14023e410]
lea rdx, [rbp - 0x30]
xor ecx, ecx
movups xmmword [rbp - 0x30], xmm0
call fcn.1400560c0
test eax, eax
je 0x14004687b
mov rax, qword [rbp - 0x30]
cmp rax, qword [0x14023e410]
jne 0x1400467b5
mov rax, qword [rbp - 0x28]
cmp rax, qword [0x14023e418]
je 0x14004687b
lea rdx, [rbp - 0x30]
lea rcx, vtable.CPowrProfUtil.0
call fcn.140055370
test eax, eax
je 0x1400465ba
mov rcx, qword [rbp - 0x40]
cmp rcx, qword [0x14023e410]
jne 0x1400467e7
mov rax, qword [rbp - 0x38]
cmp rax, qword [0x14023e418]
je 0x1400467ff
lea rdx, [rbp - 0x40]
lea rcx, vtable.CPowrProfUtil.0
call fcn.140054e10
test eax, eax
je 0x1400465ba
movups xmm0, xmmword [0x14023e410]
lea rdx, [rbp - 0x10]
mov ecx, 1
movups xmmword [rbp - 0x10], xmm0
call fcn.1400560c0
test eax, eax
je 0x1400465ba
mov rax, qword [rbp - 0x40]
cmp rax, qword [rbp - 0x10]
jne 0x140046857
mov rax, qword [rbp - 0x38]
cmp rax, qword [rbp - 8]
jne 0x140046857
movups xmm0, xmmword [0x14023e450]
lea rdx, [rsp + 0x50]
mov ecx, 1
movaps xmmword [rsp + 0x50], xmm0
call fcn.140056450
test eax, eax
je 0x1400465ba
movups xmm0, xmmword [0x14023e410]
lea rcx, [rsp + 0x60]
movaps xmmword [rsp + 0x60], xmm0
call fcn.140056620
mov ecx, esi
test eax, eax
mov esi, 0x80
cmove ecx, esi
mov esi, ecx
mov eax, esi
mov rbx, qword [rsp + 0x140]
mov rcx, qword [rbp + 0x18]
xor rcx, rsp
call fcn.140072680
add rsp, 0x128
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140002ad0
int3