Function at 0x140034410
Capabilities:
Query or enumerate registry value

Disassembly:
cmp r8d, 0x218
jne 0x140034845
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x14013c010]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rdi, r9
mov rsi, rcx
mov qword [rsp + 0x20], r9
mov r9d, r8d
mov r8d, 0x74
lea rdx, str.CCustomizeHonor::OnWindowsPowerMessage
lea rcx, str._s__d___uMsg___d__wParam___d
call fcn.14005b9a0
mov rax, rdi
sub rax, 6
je 0x14003472e
sub rax, 1
je 0x14003472e
sub rax, 0xb
je 0x14003472e
cmp rax, 0x8001
jne 0x140034824
mov r8d, 0x8e
lea rdx, str.CCustomizeHonor::OnWindowsPowerMessage
lea rcx, str._s__d___uMsg__WM_POWERBROADCAST__wParam__PBT_POWERSETTINGCHANGE
call fcn.14005b9a0
mov rbx, qword [rbp + 0x1d0]
mov qword [rsi + 0x20], rbx
test rbx, rbx
je 0x140034710
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp - 0x80]
call fcn.1400c7980
mov r8d, 0x7f
lea rdx, [rbp - 0x80]
lea rcx, [0x1400e6458]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_StringFromGUID2]
mov r8d, 0x7f
lea rdx, [rbp + 0x80]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_StringFromGUID2]
lea rdx, [rbp + 0x80]
lea rcx, [rbp - 0x80]
test eax, eax
cmovle rdx, rcx
lea rcx, [rsp + 0x30]
call fcn.140003d80
nop
mov rcx, qword [rsi + 0x20]
lea rax, [rcx + 0x14]
mov qword [rsp + 0x28], rax
mov eax, dword [rcx + 0x10]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x30]
mov r8d, 0x95
lea rdx, str.CCustomizeHonor::OnWindowsPowerMessage
lea rcx, str._s__d_GUID___s__Length___d__Data___d
call fcn.14005b9a0
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14003457e
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140048c62.0]
mov rcx, qword [rsi + 0x20]
mov rax, qword [rcx]
cmp rax, qword [0x1400d6370]
jne 0x140034824
mov rax, qword [rcx + 8]
cmp rax, qword [0x1400d6378]
jne 0x140034824
mov ebx, dword [rcx + 0x14]
mov r9d, ebx
mov r8d, 0x9a
lea rdx, str.CCustomizeHonor::OnWindowsPowerMessage
lea rcx, str._s__d_GUID_CONSOLE_DISPLAY_STATE__dwConsoleDisplayState___d
call fcn.14005b9a0
test ebx, ebx
jne 0x140034602
mov r8d, 0x9e
lea rdx, str.CCustomizeHonor::OnWindowsPowerMessage
lea rcx, str._s__d_GUID_CONSOLE_DISPLAY_STATE_0__set_1_for_SkipActionForS0
call fcn.14005b9a0
lea r9d, [rbx + 1]
lea r8, str.SkipActionForS0
lea rdx, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov rcx, 0xffffffff80000002
call fcn.14007ef10
jmp 0x140034824
cmp ebx, 1
jne 0x140034824
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], eax
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x38], eax
mov r9d, ebx
lea r8, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x50]
call fcn.1400280a0
test eax, eax
je 0x140034677
lea r9, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov r8d, eax
lea rdx, str.CRegClient::GetRegUI4Property
lea rcx, str._s_nRet_d_szRegKey_s
call fcn.14005b9a0
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140034824
jmp 0x14003481e
mov dword [rsp + 0x40], 4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, str.SkipActionForS0
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14003470b
cmp dword [rsp + 0x44], 4
jne 0x14003470b
mov edi, dword [rsp + 0x38]
test rbx, rbx
je 0x1400346cd
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test edi, edi
je 0x140034824
mov r8d, 0xa7
lea rdx, str.CCustomizeHonor::OnWindowsPowerMessage
lea rcx, str._s__d_GUID_CONSOLE_DISPLAY_STATE_1__delay_500ms_to_remove_SkipActionForS0
call fcn.14005b9a0
call fcn.14000b740
mov rcx, rax
mov edx, 0x432
mov r8d, 0x1f4
call fcn.1400b5a90
jmp 0x140034824
jmp 0x140034816
mov r8d, 0xaf
lea rdx, str.CCustomizeHonor::OnWindowsPowerMessage
lea rcx, str._s__d_lParam_is_NULL
call fcn.14005b9a0
jmp 0x140034824
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], eax
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x3c], eax
lea r9d, [rax + 1]
lea r8, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x68]
call fcn.1400280a0
test eax, eax
je 0x14003479b
lea r9, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov r8d, eax
lea rdx, str.CRegClient::GetRegUI4Property
lea rcx, str._s_nRet_d_szRegKey_s
call fcn.14005b9a0
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140034824
jmp 0x14003481e
mov dword [rsp + 0x48], 4
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4c]
xor r8d, r8d
lea rdx, str.SkipActionForS0
mov rbx, qword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140034816
cmp dword [rsp + 0x4c], 4
jne 0x140034816
mov esi, dword [rsp + 0x3c]
test rbx, rbx
je 0x1400347f1
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
je 0x140034824
mov r9, rdi
mov r8d, 0x87
lea rdx, str.CCustomizeHonor::OnWindowsPowerMessage
lea rcx, str._s__d_RESUME__d___delay_500ms_to_remove_SkipActionForS0
call fcn.14005b9a0
jmp 0x1400346ee
test rbx, rbx
je 0x140034824
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400c17f0
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret