Function at 0x14004c5e0
Capabilities:
Query or enumerate registry value

Disassembly:
cmp r8d, 0x218
jne 0x14004c997
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x3f]
sub rsp, 0x90
mov rax, qword [0x140178010]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rdi, r9
mov rbx, rcx
mov qword [rsp + 0x20], r9
mov r9d, r8d
mov r8d, 0x81
lea rdx, str.CCustomizeHuawei::OnWindowsPowerMessage
lea rcx, str._s__d___uMsg___d__wParam___d
call fcn.14006dd20
mov rax, rdi
sub rax, 6
je 0x14004c894
sub rax, 1
je 0x14004c894
sub rax, 0xb
je 0x14004c894
cmp rax, 0x8001
jne 0x14004c979
mov r8d, 0x9b
lea rdx, str.CCustomizeHuawei::OnWindowsPowerMessage
lea rcx, str._s__d___uMsg__WM_POWERBROADCAST__wParam__PBT_POWERSETTINGCHANGE
call fcn.14006dd20
mov rdx, qword [rbp + 0x7f]
mov qword [rbx + 0x28], rdx
test rdx, rdx
je 0x14004c876
lea rcx, [rbp - 0x21]
call fcn.14005ba00
nop
mov rdx, qword [rbx + 0x28]
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, 0xa2
lea rdx, str.CCustomizeHuawei::OnWindowsPowerMessage
lea rcx, str._s__d_GUID___s__Length___d__Data___d
call fcn.14006dd20
nop
mov rdx, qword [rbp - 0x21]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004c6f2
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140050923.0]
mov rcx, qword [rbx + 0x28]
mov rax, qword [rcx]
cmp rax, qword [0x1400f56a0]
jne 0x14004c979
mov rax, qword [rcx + 8]
cmp rax, qword [0x1400f56a8]
jne 0x14004c979
mov ebx, dword [rcx + 0x14]
mov r9d, ebx
mov r8d, 0xa7
lea rdx, str.CCustomizeHuawei::OnWindowsPowerMessage
lea rcx, str._s__d_GUID_CONSOLE_DISPLAY_STATE__dwConsoleDisplayState___d
call fcn.14006dd20
test ebx, ebx
jne 0x14004c776
mov r8d, 0xab
lea rdx, str.CCustomizeHuawei::OnWindowsPowerMessage
lea rcx, str._s__d_GUID_CONSOLE_DISPLAY_STATE_0__set_1_for_SkipActionForS0
call fcn.14006dd20
lea r9d, [rbx + 1]
lea r8, str.SkipActionForS0
lea rdx, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov rcx, 0xffffffff80000002
call fcn.140090400
jmp 0x14004c979
cmp ebx, 1
jne 0x14004c979
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.14002b400
test eax, eax
je 0x14004c7e4
lea r9, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov r8d, eax
lea rdx, str.CRegClient::GetRegUI4Property
lea rcx, str._s_nRet_d_szRegKey_s
call fcn.14006dd20
nop
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x14004c979
jmp 0x14004c973
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 0x14004c871
cmp dword [rbp - 0xd], 4
jne 0x14004c871
mov edi, dword [rbp - 0x19]
test rbx, rbx
je 0x14004c833
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test edi, edi
je 0x14004c979
mov r8d, SystemTimeToVariantTime
lea rdx, str.CCustomizeHuawei::OnWindowsPowerMessage
lea rcx, str._s__d_GUID_CONSOLE_DISPLAY_STATE_1__delay_500ms_to_remove_SkipActionForS0
call fcn.14006dd20
call fcn.14000be90
mov rcx, rax
mov edx, 0x432
mov r8d, 0x1f4
call fcn.1400d3e30
jmp 0x14004c979
jmp 0x14004c96b
mov r8d, 0xbc
lea rdx, str.CCustomizeHuawei::OnWindowsPowerMessage
lea rcx, str._s__d_lParam_is_NULL
call fcn.14006dd20
jmp 0x14004c979
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.14002b400
test eax, eax
je 0x14004c8f7
lea r9, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov r8d, eax
lea rdx, str.CRegClient::GetRegUI4Property
lea rcx, str._s_nRet_d_szRegKey_s
call fcn.14006dd20
nop
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x14004c979
jmp 0x14004c973
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 0x14004c96b
cmp dword [rbp - 5], 4
jne 0x14004c96b
mov esi, dword [rbp - 0x15]
test rbx, rbx
je 0x14004c946
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
je 0x14004c979
mov r9, rdi
mov r8d, 0x94
lea rdx, str.CCustomizeHuawei::OnWindowsPowerMessage
lea rcx, str._s__d_RESUME__d___delay_500ms_to_remove_SkipActionForS0
call fcn.14006dd20
jmp 0x14004c854
test rbx, rbx
je 0x14004c979
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.1400df340
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret