Function at 0x14002ac30
Capabilities:
Query or enumerate registry value

Disassembly:
cmp r8d, 0x218
jne 0x14002af57
push rbx
push rsi
push rdi
sub rsp, 0x80
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x14011f010]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, r9
mov rdi, rcx
mov qword [rsp + 0x20], rbx
mov r9d, r8d
mov r8d, 0x72
lea rdx, str.CCustomizeHonor::OnWindowsPowerMessage
lea rcx, str._s__d___uMsg___d__wParam___d
call fcn.14004c3d0
cmp rbx, 6
jb 0x14002af40
cmp rbx, 7
jbe 0x14002ae4d
cmp rbx, 0x12
je 0x14002ae4d
cmp rbx, 0x8013
jne 0x14002af40
mov r8d, 0x8c
lea rdx, str.CCustomizeHonor::OnWindowsPowerMessage
lea rcx, str._s__d___uMsg__WM_POWERBROADCAST__wParam__PBT_POWERSETTINGCHANGE
call fcn.14004c3d0
mov rdx, qword [rsp + 0xc0]
mov qword [rdi + 0x20], rdx
test rdx, rdx
je 0x14002ae2f
lea rcx, [rsp + 0x38]
call fcn.140043870
nop
mov rdx, qword [rdi + 0x20]
lea rcx, [rdx + 0x14]
mov qword [rsp + 0x28], rcx
mov ecx, dword [rdx + 0x10]
mov dword [rsp + 0x20], ecx
mov r9, qword [rax]
mov r8d, 0x93
lea rdx, str.CCustomizeHonor::OnWindowsPowerMessage
lea rcx, str._s__d_GUID___s__Length___d__Data___d
call fcn.14004c3d0
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002ad3c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rdi + 0x20]
mov rax, qword [rcx]
cmp rax, qword [0x1400b7250]
jne 0x14002af40
mov rax, qword [rcx + 8]
cmp rax, qword [0x1400b7258]
jne 0x14002af40
mov ebx, dword [rcx + 0x14]
mov r9d, ebx
mov r8d, 0x98
lea rdx, str.CCustomizeHonor::OnWindowsPowerMessage
lea rcx, str._s__d_GUID_CONSOLE_DISPLAY_STATE__dwConsoleDisplayState___d
call fcn.14004c3d0
test ebx, ebx
jne 0x14002adc0
mov r8d, 0x9c
lea rdx, str.CCustomizeHonor::OnWindowsPowerMessage
lea rcx, str._s__d_GUID_CONSOLE_DISPLAY_STATE_0__set_1_for_SkipActionForS0
call fcn.14004c3d0
lea r9d, [rbx + 1]
lea r8, str.SkipActionForS0
lea rdx, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov rcx, 0xffffffff80000002
call fcn.14006a7f0
jmp 0x14002af40
cmp ebx, 1
jne 0x14002af40
xor eax, eax
mov dword [rsp + 0x30], eax
lea r9, [rsp + 0x30]
lea r8, str.SkipActionForS0
lea rdx, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov rcx, 0xffffffff80000002
call fcn.14006a6c0
cmp dword [rsp + 0x30], 0
je 0x14002af40
mov r8d, 0xa5
lea rdx, str.CCustomizeHonor::OnWindowsPowerMessage
lea rcx, str._s__d_GUID_CONSOLE_DISPLAY_STATE_1__delay_500ms_to_remove_SkipActionForS0
call fcn.14004c3d0
call fcn.14000af30
mov rcx, rax
mov edx, 0x432
mov r8d, 0x1f4
call fcn.1400989d0
jmp 0x14002af40
mov r8d, 0xad
lea rdx, str.CCustomizeHonor::OnWindowsPowerMessage
lea rcx, str._s__d_lParam_is_NULL
call fcn.14004c3d0
jmp 0x14002af40
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x48], eax
lea r9d, [rax + 1]
lea r8, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x58]
call fcn.140021cb0
test eax, eax
je 0x14002aeb7
lea r9, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov r8d, eax
lea rdx, str.CRegClient::GetRegUI4Property
lea rcx, str._s_nRet_d_szRegKey_s
call fcn.14004c3d0
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14002af40
jmp 0x14002af3a
mov dword [rsp + 0x4c], 4
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.SkipActionForS0
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14002af32
cmp dword [rsp + 0x50], 4
jne 0x14002af32
mov esi, dword [rsp + 0x48]
test rdi, rdi
je 0x14002af0d
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
je 0x14002af40
mov r9, rbx
mov r8d, 0x85
lea rdx, str.CCustomizeHonor::OnWindowsPowerMessage
lea rcx, str._s__d_RESUME__d___delay_500ms_to_remove_SkipActionForS0
call fcn.14004c3d0
jmp 0x14002ae12
test rdi, rdi
je 0x14002af40
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400a4020
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret