Function at 0x140045170
Capabilities:
Query or enumerate registry value

Disassembly:
cmp r8d, 0x218
jne 0x140045527
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x3f]
sub rsp, 0x90
mov rax, qword [0x1401aa010]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rdi, r9
mov rbx, rcx
mov qword [rsp + 0x20], r9
mov r9d, r8d
mov r8d, 0x77
lea rdx, str.CCustomizeHonor::OnWindowsPowerMessage
lea rcx, str._s__d___uMsg___d__wParam___d
call fcn.140075db0
mov rax, rdi
sub rax, 6
je 0x140045424
sub rax, 1
je 0x140045424
sub rax, 0xb
je 0x140045424
cmp rax, 0x8001
jne 0x140045509
mov r8d, 0x91
lea rdx, str.CCustomizeHonor::OnWindowsPowerMessage
lea rcx, str._s__d___uMsg__WM_POWERBROADCAST__wParam__PBT_POWERSETTINGCHANGE
call fcn.140075db0
mov rdx, qword [rbp + 0x7f]
mov qword [rbx + 0x20], rdx
test rdx, rdx
je 0x140045406
lea rcx, [rbp - 0x21]
call fcn.14006a160
nop
mov rdx, qword [rbx + 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, 0x98
lea rdx, str.CCustomizeHonor::OnWindowsPowerMessage
lea rcx, str._s__d_GUID___s__Length___d__Data___d
call fcn.140075db0
nop
mov rdx, qword [rbp - 0x21]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140045282
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005eeb3.0]
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
cmp rax, qword [0x14010d870]
jne 0x140045509
mov rax, qword [rcx + 8]
cmp rax, qword [0x14010d878]
jne 0x140045509
mov ebx, dword [rcx + 0x14]
mov r9d, ebx
mov r8d, 0x9d
lea rdx, str.CCustomizeHonor::OnWindowsPowerMessage
lea rcx, str._s__d_GUID_CONSOLE_DISPLAY_STATE__dwConsoleDisplayState___d
call fcn.140075db0
test ebx, ebx
jne 0x140045306
mov r8d, 0xa1
lea rdx, str.CCustomizeHonor::OnWindowsPowerMessage
lea rcx, str._s__d_GUID_CONSOLE_DISPLAY_STATE_0__set_1_for_SkipActionForS0
call fcn.140075db0
lea r9d, [rbx + 1]
lea r8, str.SkipActionForS0
lea rdx, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov rcx, 0xffffffff80000002
call fcn.1400986f0
jmp 0x140045509
cmp ebx, 1
jne 0x140045509
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 1], xmm0
mov qword [rbp - 1], rax
mov dword [rbp + 7], eax
mov qword [rbp + 0xf], rax
mov dword [rbp - 0x19], eax
mov r9d, ebx
lea r8, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 1]
call fcn.140035040
test eax, eax
je 0x140045374
lea r9, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov r8d, eax
lea rdx, str.CRegClient::GetRegUI4Property
lea rcx, str._s_nRet_d_szRegKey_s
call fcn.140075db0
nop
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x140045509
jmp 0x140045503
mov dword [rbp - 0x11], 4
lea rax, [rbp - 0x11]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0xd]
xor r8d, r8d
lea rdx, str.SkipActionForS0
mov rbx, qword [rbp - 1]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140045401
cmp dword [rbp - 0xd], 4
jne 0x140045401
mov edi, dword [rbp - 0x19]
test rbx, rbx
je 0x1400453c3
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test edi, edi
je 0x140045509
mov r8d, 0xaa
lea rdx, str.CCustomizeHonor::OnWindowsPowerMessage
lea rcx, str._s__d_GUID_CONSOLE_DISPLAY_STATE_1__delay_500ms_to_remove_SkipActionForS0
call fcn.140075db0
call fcn.1400147e0
mov rcx, rax
mov edx, 0x432
mov r8d, 0x1f4
call fcn.1400e8700
jmp 0x140045509
jmp 0x1400454fb
mov r8d, SystemTimeToVariantTime
lea rdx, str.CCustomizeHonor::OnWindowsPowerMessage
lea rcx, str._s__d_lParam_is_NULL
call fcn.140075db0
jmp 0x140045509
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x17], rax
mov dword [rbp + 0x1f], eax
mov qword [rbp + 0x27], rax
mov dword [rbp - 0x15], eax
lea r9d, [rax + 1]
lea r8, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov rdx, 0xffffffff80000002
lea rcx, [rbp + 0x17]
call fcn.140035040
test eax, eax
je 0x140045487
lea r9, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov r8d, eax
lea rdx, str.CRegClient::GetRegUI4Property
lea rcx, str._s_nRet_d_szRegKey_s
call fcn.140075db0
nop
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x140045509
jmp 0x140045503
mov dword [rbp - 9], 4
lea rax, [rbp - 9]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x15]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 5]
xor r8d, r8d
lea rdx, str.SkipActionForS0
mov rbx, qword [rbp + 0x17]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400454fb
cmp dword [rbp - 5], 4
jne 0x1400454fb
mov esi, dword [rbp - 0x15]
test rbx, rbx
je 0x1400454d6
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
je 0x140045509
mov r9, rdi
mov r8d, 0x8a
lea rdx, str.CCustomizeHonor::OnWindowsPowerMessage
lea rcx, str._s__d_RESUME__d___delay_500ms_to_remove_SkipActionForS0
call fcn.140075db0
jmp 0x1400453e4
test rbx, rbx
je 0x140045509
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400f4410
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret