Function at 0x1400dcfc0
Capabilities:
Query or enumerate registry value

Disassembly:
cmp r8d, 0x218
jne 0x1400dd4fe
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0x98
mov rax, qword [0x140178010]
xor rax, rsp
mov qword [rbp - 1], rax
mov r12, r9
mov r15, rdx
mov r14, rcx
mov r13, qword [rbp + 0x7f]
mov r8d, SafeArrayCopy
lea rdx, str.WinPowerMsgProc::OnWindowsMessage
lea rcx, str._s__d___WM_POWERBROADCAST__wParam___d
call fcn.14006dd20
lock inc dword [r14 + 0x94]
mov rdi, qword [r14 + 0x30]
test rdi, rdi
je 0x1400dd0aa
nop
cmp dword [r14 + 0x90], 0
jne 0x1400dd0aa
lea rcx, [r14 + 8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
test rdi, rdi
je 0x1400dd4ff
mov rbx, qword [rdi + 0x10]
mov rdi, qword [rdi]
cmp qword [r14 + 0x70], 0
jbe 0x1400dd076
mov rax, qword [r14 + 0x60]
test rax, rax
je 0x1400dd076
cmp qword [rax + 0x10], rbx
je 0x1400dd108
mov rax, qword [rax]
test rax, rax
jne 0x1400dd064
lea rcx, [r14 + 8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
test rbx, rbx
je 0x1400dd0a5
mov rax, qword [rbx]
mov qword [rsp + 0x20], r13
mov r9, r12
mov r8d, 0x218
mov rdx, r15
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x140050923.0]
test rdi, rdi
jne 0x1400dd030
lock dec dword [r14 + 0x94]
mov eax, dword [r14 + 0x94]
test eax, eax
jne 0x1400dd174
cmp qword [r14 + 0x70], 0
jbe 0x1400dd174
lea rcx, [r14 + 8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov rbx, qword [r14 + 0x60]
test rbx, rbx
je 0x1400dd161
mov rcx, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rcx, rcx
je 0x1400dd15c
mov rax, qword [r14 + 0x30]
test rax, rax
je 0x1400dd15c
cmp qword [rax + 0x10], rcx
je 0x1400dd114
mov rax, qword [rax]
test rax, rax
jne 0x1400dd0f8
jmp 0x1400dd15c
lea rcx, [r14 + 8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
jmp 0x1400dd0a5
mov rdx, qword [rax]
cmp rax, qword [r14 + 0x30]
jne 0x1400dd123
mov qword [r14 + 0x30], rdx
jmp 0x1400dd12a
mov rcx, qword [rax + 8]
mov qword [rcx], rdx
mov rcx, qword [rax + 8]
cmp rax, qword [r14 + 0x38]
jne 0x1400dd13a
mov qword [r14 + 0x38], rcx
jmp 0x1400dd141
mov rdx, qword [rax]
mov qword [rdx + 8], rcx
mov rdx, qword [r14 + 0x50]
mov qword [rax], rdx
mov qword [r14 + 0x50], rax
sub qword [r14 + 0x40], 1
jne 0x1400dd15c
lea rcx, [r14 + 0x30]
call fcn.14000c930
test rbx, rbx
jne 0x1400dd0e3
lea rcx, [r14 + 0x60]
call fcn.14000c930
lea rcx, [r14 + 8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov qword [rsp + 0x20], r12
mov r9d, 0x218
mov r8d, 0x1d
lea rdx, str.WinPowerMsgProc::OnWindowsMessage
lea rcx, str._s__d___uMsg___d__wParam___d
call fcn.14006dd20
mov rax, r12
sub rax, 6
je 0x1400dd3fa
sub rax, 1
je 0x1400dd3fa
sub rax, 0xb
je 0x1400dd3fa
cmp rax, 0x8001
jne 0x1400dd4df
mov r8d, 0x37
lea rdx, str.WinPowerMsgProc::OnWindowsMessage
lea rcx, str._s__d___uMsg__WM_POWERBROADCAST__wParam__PBT_POWERSETTINGCHANGE
call fcn.14006dd20
mov qword [r14 + 0x98], r13
test r13, r13
je 0x1400dd3dc
mov rdx, r13
lea rcx, [rbp - 0x51]
call fcn.14005ba00
nop
mov rdx, qword [r14 + 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.14006dd20
nop
mov rdx, qword [rbp - 0x51]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400dd259
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140050923.0]
mov rcx, qword [r14 + 0x98]
mov rax, qword [rcx]
cmp rax, qword [0x1400f56a0]
jne 0x1400dd4df
mov rax, qword [rcx + 8]
cmp rax, qword [0x1400f56a8]
jne 0x1400dd4df
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.14006dd20
test ebx, ebx
jne 0x1400dd2de
lea r8d, [rbx + 0x47]
lea rdx, str.WinPowerMsgProc::OnWindowsMessage
lea rcx, str._s__d_GUID_CONSOLE_DISPLAY_STATE__enter_s0i3
call fcn.14006dd20
lea r9d, [rbx + 1]
lea r8, str.s0i3
lea rdx, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov rcx, 0xffffffff80000002
call fcn.140090400
jmp 0x1400dd4df
cmp ebx, 1
jne 0x1400dd4df
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x31], xmm0
mov qword [rbp - 0x31], rax
mov dword [rbp - 0x29], eax
mov qword [rbp - 0x21], rax
mov dword [rbp - 0x49], eax
mov r9d, ebx
lea r8, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x31]
call fcn.14002b400
test eax, eax
je 0x1400dd34c
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 - 0x31]
test rcx, rcx
je 0x1400dd4df
jmp 0x1400dd4d9
mov dword [rbp - 0x41], 4
lea rax, [rbp - 0x41]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x3d]
xor r8d, r8d
lea rdx, str.s0i3
mov rbx, qword [rbp - 0x31]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400dd3d7
cmp dword [rbp - 0x3d], 4
jne 0x1400dd3d7
mov edi, dword [rbp - 0x49]
test rbx, rbx
je 0x1400dd39b
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test edi, edi
je 0x1400dd4df
mov r8d, 0x50
lea rdx, str.WinPowerMsgProc::OnWindowsMessage
lea rcx, str._s__d_GUID_CONSOLE_DISPLAY_STATE__weak_up_from_s0i3
call fcn.14006dd20
call fcn.14000be90
mov rcx, rax
mov edx, 0x441
lea r8d, [rdx - 0x59]
call fcn.1400d3e30
jmp 0x1400dd4df
jmp 0x1400dd4d1
mov r8d, 0x59
lea rdx, str.WinPowerMsgProc::OnWindowsMessage
lea rcx, str._s__d_lParam_is_NULL
call fcn.14006dd20
jmp 0x1400dd4df
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x19], xmm0
mov qword [rbp - 0x19], rax
mov dword [rbp - 0x11], eax
mov qword [rbp - 9], rax
mov dword [rbp - 0x45], eax
lea r9d, [rax + 1]
lea r8, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x19]
call fcn.14002b400
test eax, eax
je 0x1400dd45d
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 - 0x19]
test rcx, rcx
je 0x1400dd4df
jmp 0x1400dd4d9
mov dword [rbp - 0x39], 4
lea rax, [rbp - 0x39]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x45]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x35]
xor r8d, r8d
lea rdx, str.s0i3
mov rbx, qword [rbp - 0x19]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400dd4d1
cmp dword [rbp - 0x35], 4
jne 0x1400dd4d1
mov edi, dword [rbp - 0x45]
test rbx, rbx
je 0x1400dd4ac
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test edi, edi
je 0x1400dd4df
mov r9, r12
mov r8d, 0x30
lea rdx, str.WinPowerMsgProc::OnWindowsMessage
lea rcx, str._s__d_RESUME__d___weak_up_from_s0i3
call fcn.14006dd20
jmp 0x1400dd3bc
test rbx, rbx
je 0x1400dd4df
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.1400df340
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.140004f30
int3