Function at 0x1400bf3f0
Capabilities:
Query or enumerate registry value

Disassembly:
cmp r8d, 0x218
jne 0x1400bf99d
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x198]
sub rsp, 0x298
mov rax, qword [0x14013c010]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov r12, r9
mov r15, rdx
mov rsi, rcx
mov r13, qword [rbp + 0x200]
mov r8d, SafeArrayCopy
lea rdx, str.WinPowerMsgProc::OnWindowsMessage
lea rcx, str._s__d___WM_POWERBROADCAST__wParam___d
call fcn.14005b9a0
inc dword [rsi + 0x94]
mov rdi, qword [rsi + 0x30]
test rdi, rdi
je 0x1400bf4da
cmp dword [rsi + 0x90], 0
jne 0x1400bf4da
lea rcx, [rsi + 8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
test rdi, rdi
je 0x1400bf99e
mov rbx, qword [rdi + 0x10]
mov rdi, qword [rdi]
cmp qword [rsi + 0x70], 0
jbe 0x1400bf4a6
mov rax, qword [rsi + 0x60]
test rax, rax
je 0x1400bf4a6
cmp qword [rax + 0x10], rbx
je 0x1400bf535
mov rax, qword [rax]
test rax, rax
jne 0x1400bf494
lea rcx, [rsi + 8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
test rbx, rbx
je 0x1400bf4d5
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.0x140048c62.0]
test rdi, rdi
jne 0x1400bf461
dec dword [rsi + 0x94]
cmp dword [rsi + 0x94], 0
jne 0x1400bf5a1
cmp qword [rsi + 0x70], 0
jbe 0x1400bf5a1
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 0x1400bf58e
nop
mov rcx, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rcx, rcx
je 0x1400bf589
mov rax, qword [rsi + 0x30]
test rax, rax
je 0x1400bf589
cmp qword [rax + 0x10], rcx
je 0x1400bf541
mov rax, qword [rax]
test rax, rax
jne 0x1400bf525
jmp 0x1400bf589
lea rcx, [rsi + 8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
jmp 0x1400bf4d5
mov rdx, qword [rax]
cmp rax, qword [rsi + 0x30]
jne 0x1400bf550
mov qword [rsi + 0x30], rdx
jmp 0x1400bf557
mov rcx, qword [rax + 8]
mov qword [rcx], rdx
mov rcx, qword [rax + 8]
cmp rax, qword [rsi + 0x38]
jne 0x1400bf567
mov qword [rsi + 0x38], rcx
jmp 0x1400bf56e
mov rdx, qword [rax]
mov qword [rdx + 8], rcx
mov rdx, qword [rsi + 0x50]
mov qword [rax], rdx
mov qword [rsi + 0x50], rax
sub qword [rsi + 0x40], 1
jne 0x1400bf589
lea rcx, [rsi + 0x30]
call fcn.14000c1e0
test rbx, rbx
jne 0x1400bf510
lea rcx, [rsi + 0x60]
call fcn.14000c1e0
lea rcx, [rsi + 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.14005b9a0
mov rax, r12
sub rax, 6
je 0x1400bf885
sub rax, 1
je 0x1400bf885
sub rax, 0xb
je 0x1400bf885
cmp rax, 0x8001
jne 0x1400bf97b
mov r8d, 0x37
lea rdx, str.WinPowerMsgProc::OnWindowsMessage
lea rcx, str._s__d___uMsg__WM_POWERBROADCAST__wParam__PBT_POWERSETTINGCHANGE
call fcn.14005b9a0
mov qword [rsi + 0x98], r13
test r13, r13
je 0x1400bf867
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp - 0x80]
call fcn.1400c7980
mov r8d, 0x7f
lea rdx, [rbp - 0x80]
lea rcx, [0x1400e6458]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_StringFromGUID2]
mov r8d, 0x7f
lea rdx, [rbp + 0x80]
mov rcx, r13
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_StringFromGUID2]
lea rdx, [rbp + 0x80]
lea rcx, [rbp - 0x80]
test eax, eax
cmovle rdx, rcx
lea rcx, [rsp + 0x30]
call fcn.140003d80
nop
mov rcx, qword [rsi + 0x98]
lea rax, [rcx + 0x14]
mov qword [rsp + 0x28], rax
mov eax, dword [rcx + 0x10]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x30]
mov r8d, 0x3e
lea rdx, str.WinPowerMsgProc::OnWindowsMessage
lea rcx, str._s__d_GUID___s__Length___d__Data___d
call fcn.14005b9a0
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400bf6d6
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140048c62.0]
mov rcx, qword [rsi + 0x98]
mov rax, qword [rcx]
cmp rax, qword [0x1400d6370]
jne 0x1400bf97b
mov rax, qword [rcx + 8]
cmp rax, qword [0x1400d6378]
jne 0x1400bf97b
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.14005b9a0
test ebx, ebx
jne 0x1400bf75b
lea r8d, [rbx + 0x47]
lea rdx, str.WinPowerMsgProc::OnWindowsMessage
lea rcx, str._s__d_GUID_CONSOLE_DISPLAY_STATE__enter_s0i3
call fcn.14005b9a0
lea r9d, [rbx + 1]
lea r8, str.s0i3
lea rdx, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov rcx, 0xffffffff80000002
call fcn.14007ef10
jmp 0x1400bf97b
cmp ebx, 1
jne 0x1400bf97b
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], eax
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x38], eax
mov r9d, ebx
lea r8, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x50]
call fcn.1400280a0
test eax, eax
je 0x1400bf7d0
lea r9, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov r8d, eax
lea rdx, str.CRegClient::GetRegUI4Property
lea rcx, str._s_nRet_d_szRegKey_s
call fcn.14005b9a0
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400bf97b
jmp 0x1400bf975
mov dword [rsp + 0x40], 4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, str.s0i3
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400bf862
cmp dword [rsp + 0x44], 4
jne 0x1400bf862
mov edi, dword [rsp + 0x38]
test rbx, rbx
je 0x1400bf826
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test edi, edi
je 0x1400bf97b
mov r8d, 0x50
lea rdx, str.WinPowerMsgProc::OnWindowsMessage
lea rcx, str._s__d_GUID_CONSOLE_DISPLAY_STATE__weak_up_from_s0i3
call fcn.14005b9a0
call fcn.14000b740
mov rcx, rax
mov edx, 0x441
lea r8d, [rdx - 0x59]
call fcn.1400b5a90
jmp 0x1400bf97b
jmp 0x1400bf96d
mov r8d, 0x59
lea rdx, str.WinPowerMsgProc::OnWindowsMessage
lea rcx, str._s__d_lParam_is_NULL
call fcn.14005b9a0
jmp 0x1400bf97b
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], eax
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x3c], eax
lea r9d, [rax + 1]
lea r8, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x68]
call fcn.1400280a0
test eax, eax
je 0x1400bf8f2
lea r9, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov r8d, eax
lea rdx, str.CRegClient::GetRegUI4Property
lea rcx, str._s_nRet_d_szRegKey_s
call fcn.14005b9a0
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400bf97b
jmp 0x1400bf975
mov dword [rsp + 0x48], 4
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4c]
xor r8d, r8d
lea rdx, str.s0i3
mov rbx, qword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400bf96d
cmp dword [rsp + 0x4c], 4
jne 0x1400bf96d
mov edi, dword [rsp + 0x3c]
test rbx, rbx
je 0x1400bf948
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test edi, edi
je 0x1400bf97b
mov r9, r12
mov r8d, 0x30
lea rdx, str.WinPowerMsgProc::OnWindowsMessage
lea rcx, str._s__d_RESUME__d___weak_up_from_s0i3
call fcn.14005b9a0
jmp 0x1400bf847
test rbx, rbx
je 0x1400bf97b
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400c17f0
add rsp, 0x298
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.140004820
int3