Function at 0x1400c3750
Capabilities:
Query or enumerate registry value

Disassembly:
cmp r8d, 0x218
jne 0x1400c3bb9
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x140162010]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r15, r9
mov r14, rdx
mov rsi, rcx
mov r12, qword [rsp + 0xf0]
mov r8d, SafeArrayCopy
lea rdx, str.WinPowerMsgProc::OnWindowsMessage
lea rcx, str._s__d___WM_POWERBROADCAST__wParam___d
call fcn.140061d00
mov eax, 1
lock xadd dword [rsi + 0x94], eax
mov rdi, qword [rsi + 0x30]
xor r13d, r13d
test rdi, rdi
je 0x1400c3842
nop dword [rax + rax]
cmp dword [rsi + 0x90], r13d
jne 0x1400c3842
lea rcx, [rsi + 8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
test rdi, rdi
je 0x1400c3bba
mov rbx, qword [rdi + 0x10]
mov rdi, qword [rdi]
cmp qword [rsi + 0x70], r13
jbe 0x1400c3815
mov rax, qword [rsi + 0x60]
test rax, rax
je 0x1400c3815
cmp qword [rax + 0x10], rbx
je 0x1400c3812
mov rax, qword [rax]
test rax, rax
jne 0x1400c3802
jmp 0x1400c3815
mov rbx, r13
lea rcx, [rsi + 8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
test rbx, rbx
je 0x1400c383d
mov rax, qword [rbx]
mov qword [rsp + 0x20], r12
mov r9, r15
mov r8d, 0x218
mov rdx, r14
mov rcx, rbx
call qword [rax]
test rdi, rdi
jne 0x1400c37d0
mov ebp, 0xffffffff
mov eax, ebp
lock xadd dword [rsi + 0x94], eax
mov eax, dword [rsi + 0x94]
test eax, eax
jne 0x1400c38c1
cmp qword [rsi + 0x70], r13
jbe 0x1400c38c1
lea rcx, [rsi + 8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov rbx, qword [rsi + 0x60]
test rbx, rbx
je 0x1400c38ae
mov rcx, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rcx, rcx
je 0x1400c38a9
mov rdx, qword [rsi + 0x30]
test rdx, rdx
je 0x1400c38a9
nop dword [rax]
cmp qword [rdx + 0x10], rcx
je 0x1400c38a0
mov rdx, qword [rdx]
test rdx, rdx
jne 0x1400c3890
jmp 0x1400c38a9
lea rcx, [rsi + 0x30]
call fcn.14000c190
test rbx, rbx
jne 0x1400c3874
lea rcx, [rsi + 0x60]
call fcn.14000c1f0
lea rcx, [rsi + 8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov qword [rsp + 0x20], r15
mov r9d, 0x218
mov r8d, 0x1d
lea rdx, str.WinPowerMsgProc::OnWindowsMessage
lea rcx, str._s__d___uMsg___d__wParam___d
call fcn.140061d00
cmp r15, 6
jb 0x1400c3b99
cmp r15, 7
jbe 0x1400c3aa4
cmp r15, 0x12
je 0x1400c3aa4
cmp r15, 0x8013
jne 0x1400c3b99
mov r8d, 0x37
lea rdx, str.WinPowerMsgProc::OnWindowsMessage
lea rcx, str._s__d___uMsg__WM_POWERBROADCAST__wParam__PBT_POWERSETTINGCHANGE
call fcn.140061d00
mov qword [rsi + 0x98], r12
test r12, r12
je 0x1400c3a86
mov rdx, r12
lea rcx, [rsp + 0x38]
call fcn.140050910
nop
mov rdx, qword [rsi + 0x98]
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, 0x3e
lea rdx, str.WinPowerMsgProc::OnWindowsMessage
lea rcx, str._s__d_GUID___s__Length___d__Data___d
call fcn.140061d00
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebp
sub ebp, 1
jg 0x1400c3997
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsi + 0x98]
mov rax, qword [rcx]
cmp rax, qword [0x1400d92c0]
jne 0x1400c3b99
mov rax, qword [rcx + 8]
cmp rax, qword [0x1400d92c8]
jne 0x1400c3b99
mov ebx, dword [rcx + 0x14]
mov r9d, ebx
mov r8d, 0x43
lea rdx, str.WinPowerMsgProc::OnWindowsMessage
lea rcx, str._s__d_GUID_CONSOLE_DISPLAY_STATE__dwConsoleDisplayState___d
call fcn.140061d00
test ebx, ebx
jne 0x1400c3a1c
lea r8d, [rbx + 0x47]
lea rdx, str.WinPowerMsgProc::OnWindowsMessage
lea rcx, str._s__d_GUID_CONSOLE_DISPLAY_STATE__enter_s0i3
call fcn.140061d00
lea r9d, [rbx + 1]
lea r8, str.s0i3
lea rdx, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov rcx, 0xffffffff80000002
call fcn.1400821f0
jmp 0x1400c3b99
cmp ebx, 1
jne 0x1400c3b99
mov dword [rsp + 0x30], r13d
lea r9, [rsp + 0x30]
lea r8, str.s0i3
lea rdx, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov rcx, 0xffffffff80000002
call fcn.1400820c0
cmp dword [rsp + 0x30], 0
je 0x1400c3b99
lea r8d, [rbx + 0x4f]
lea rdx, str.WinPowerMsgProc::OnWindowsMessage
lea rcx, str._s__d_GUID_CONSOLE_DISPLAY_STATE__weak_up_from_s0i3
call fcn.140061d00
call fcn.14000b5b0
mov rcx, rax
mov edx, 0x441
lea r8d, [rdx - 0x59]
call fcn.1400bb060
jmp 0x1400c3b99
mov r8d, 0x59
lea rdx, str.WinPowerMsgProc::OnWindowsMessage
lea rcx, str._s__d_lParam_is_NULL
call fcn.140061d00
jmp 0x1400c3b99
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], r13
mov dword [rsp + 0x60], r13d
mov qword [rsp + 0x68], r13
mov dword [rsp + 0x48], r13d
lea r9d, [rax + 1]
lea r8, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x58]
call fcn.140027f60
test eax, eax
je 0x1400c3b10
lea r9, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov r8d, eax
lea rdx, str.CRegClient::GetRegUI4Property
lea rcx, str._s_nRet_d_szRegKey_s
call fcn.140061d00
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400c3b99
jmp 0x1400c3b93
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.s0i3
mov rbx, qword [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400c3b8b
cmp dword [rsp + 0x50], 4
jne 0x1400c3b8b
mov edi, dword [rsp + 0x48]
test rbx, rbx
je 0x1400c3b66
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test edi, edi
je 0x1400c3b99
mov r9, r15
mov r8d, 0x30
lea rdx, str.WinPowerMsgProc::OnWindowsMessage
lea rcx, str._s__d_RESUME__d___weak_up_from_s0i3
call fcn.140061d00
jmp 0x1400c3a6b
test rbx, rbx
je 0x1400c3b99
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400c5860
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x80004005
call fcn.140004fd0
int3