Function at 0x140038510
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x718]
sub rsp, 0x7f0
mov qword [rbp + 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1402f8c60]
xor rax, rsp
mov qword [rbp + 0x6e0], rax
lea r8, str.IsPowerSaverItemExist
mov qword [rbp - 0x80], r8
lea rax, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_fordnbk0001_dev_bcmcentennial_rs5dynabookecoservice_tpowersaverstaticlib_tpowersaver.cpp
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x70], 0xa9
lea rax, str.__IsPowerSaverItemExist_
mov qword [rbp - 0x68], rax
lea r15, [0x1402a214c]
mov qword [rbp - 0x60], r15
mov dword [rbp - 0x58], 3
lea rdx, str.ENTER__s
lea rcx, [rbp - 0x78]
call fcn.140008d50
nop
xor edi, edi
movups xmm0, xmmword [0x1402ad418]
movups xmmword [rbp + 0x80], xmm0
movups xmm1, xmmword [0x1402ad3b8]
movups xmmword [rbp + 0x90], xmm1
lea rcx, [rbp + 0x80]
call fcn.14003ec80
mov esi, eax
lea r8, str.TPwrBrightness::InitializeDll
mov qword [rsp + 0x50], r8
lea r12, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_fordnbk0001_dev_bcmcentennial_rs5dynabookecoservice_tpwrbrightnessstaticlib_tpwrbrightness.cpp
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x60], 0x23
lea r13, str.__TPwrBrightness::InitializeDll_
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r15
mov dword [rsp + 0x78], 3
lea rdx, str.ENTER__s
lea rcx, [rsp + 0x58]
call fcn.140008d50
nop
mov r14d, 1
mov ebx, r14d
call fcn.14002a690
test al, al
jne 0x140038651
mov qword [rbp - 0x50], r12
mov dword [rbp - 0x48], 0x2a
mov qword [rbp - 0x40], r13
mov qword [rbp - 0x38], r15
mov dword [rbp - 0x30], edi
mov r8d, 0x80004005
lea rdx, str.Error_Code:_0x_x
lea rcx, [rbp - 0x50]
call fcn.140008d50
jmp 0x1400386b3
mov rax, qword [0x1402ad3b8]
cmp rax, qword [rbp + 0x90]
jne 0x1400386b1
mov rax, qword [0x1402ad3c0]
cmp rax, qword [rbp + 0x98]
jne 0x1400386b1
mov dword [rsp + 0x30], edi
lea rdx, [rsp + 0x30]
call fcn.14002aea0
test al, al
jne 0x1400386b1
mov qword [rbp - 0x28], r12
mov dword [rbp - 0x20], 0x2f
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x10], r15
mov dword [rbp - 8], edi
mov r8d, 0x80004005
lea rdx, str.Error_Code:_0x_x
lea rcx, [rbp - 0x28]
call fcn.140008d50
jmp 0x1400386b3
mov ebx, edi
mov r8, qword [rsp + 0x50]
lea rdx, str.LEAVE__s
lea rcx, [rsp + 0x58]
call fcn.140008d50
lea r12, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_fordnbk0001_dev_bcmcentennial_rs5dynabookecoservice_tpowersaverstaticlib_tpowersaver.cpp
mov qword [rbp], r12
mov dword [rbp + 8], reloc.OLEAUT32.dll_UnRegisterTypeLib
lea r13, str.__IsPowerSaverItemExist_
mov qword [rbp + 0x10], r13
mov qword [rbp + 0x18], r15
mov dword [rbp + 0x20], 3
mov r9d, esi
lea r8, str.lRetCooling
lea rdx, str._s___d
lea rcx, [rbp]
call fcn.140008d50
mov qword [rbp + 0x28], r12
mov dword [rbp + 0x30], 0xba
mov qword [rbp + 0x38], r13
mov qword [rbp + 0x40], r15
mov dword [rbp + 0x48], 3
mov r9d, ebx
lea r8, str.lRetBrightness
lea rdx, str._s___d
lea rcx, [rbp + 0x28]
call fcn.140008d50
test esi, esi
je 0x14003874b
test ebx, ebx
jne 0x140038915
movups xmm0, xmmword [0x1402ad428]
movups xmmword [rbp + 0xa0], xmm0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x4d0]
call fcn.1401f5d40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x2c0]
call fcn.1401f5d40
lea rdx, [rbp + 0x2c0]
lea rcx, [rbp + 0xa0]
call fcn.14003af40
lea r9, [rbp + 0x2c0]
lea r8, str.SYSTEMCurrentControlSetControlPowerPowerSettings
lea rdx, str._s_s
lea rcx, [rbp + 0x4d0]
call fcn.14003ec20
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp + 0x4d0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400388de
mov dword [rsp + 0x34], 0x208
mov dword [rsp + 0x38], edi
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xb0]
call fcn.1401f5d40
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
lea rdx, str.FriendlyName
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400388de
call fcn.140002c10
mov rcx, rax
test rax, rax
je 0x14003895c
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0xb0]
mov rsi, 0xffffffffffffffff
cmp rax, 0x10000
jae 0x140038888
lea rax, [rbp + 0xb0]
movzx edx, ax
lea rcx, [rsp + 0x40]
call fcn.140004320
jmp 0x1400388b1
lea rcx, [rbp + 0xb0]
mov rax, rsi
inc rax
cmp word [rcx + rax*2], 0
jne 0x140038892
mov r8d, eax
lea rdx, [rbp + 0xb0]
lea rcx, [rsp + 0x40]
call fcn.140004720
nop
mov rdx, r15
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.140202474
test eax, eax
cmovne edi, r14d
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x1400388de
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rbp + 0x50], r12
mov dword [rbp + 0x58], 0xce
mov qword [rbp + 0x60], r13
mov qword [rbp + 0x68], r15
mov dword [rbp + 0x70], 3
mov r9d, edi
lea r8, str.bReturn
lea rdx, str._s___d
lea rcx, [rbp + 0x50]
call fcn.140008d50
mov r14d, edi
mov r8, qword [rbp - 0x80]
lea rdx, str.LEAVE__s
lea rcx, [rbp - 0x78]
call fcn.140008d50
mov eax, r14d
mov rcx, qword [rbp + 0x6e0]
xor rcx, rsp
call fcn.140072680
lea r11, [rsp + 0x7f0]
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
mov ecx, 0x80004005
call fcn.140002ad0
int3