Function at 0x1400f2090
Capabilities:
Query or enumerate registry value

Disassembly:
cmp r8d, 0x218
jne 0x1400f25ce
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 [0x1401aa010]
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.140075db0
lock inc dword [r14 + 0x94]
mov rdi, qword [r14 + 0x30]
test rdi, rdi
je 0x1400f217a
nop
cmp dword [r14 + 0x90], 0
jne 0x1400f217a
lea rcx, [r14 + 8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
test rdi, rdi
je 0x1400f25cf
mov rbx, qword [rdi + 0x10]
mov rdi, qword [rdi]
cmp qword [r14 + 0x70], 0
jbe 0x1400f2146
mov rax, qword [r14 + 0x60]
test rax, rax
je 0x1400f2146
cmp qword [rax + 0x10], rbx
je 0x1400f21d8
mov rax, qword [rax]
test rax, rax
jne 0x1400f2134
lea rcx, [r14 + 8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
test rbx, rbx
je 0x1400f2175
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.0x14005eeb3.0]
test rdi, rdi
jne 0x1400f2100
lock dec dword [r14 + 0x94]
mov eax, dword [r14 + 0x94]
test eax, eax
jne 0x1400f2244
cmp qword [r14 + 0x70], 0
jbe 0x1400f2244
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 0x1400f2231
mov rcx, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rcx, rcx
je 0x1400f222c
mov rax, qword [r14 + 0x30]
test rax, rax
je 0x1400f222c
cmp qword [rax + 0x10], rcx
je 0x1400f21e4
mov rax, qword [rax]
test rax, rax
jne 0x1400f21c8
jmp 0x1400f222c
lea rcx, [r14 + 8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
jmp 0x1400f2175
mov rdx, qword [rax]
cmp rax, qword [r14 + 0x30]
jne 0x1400f21f3
mov qword [r14 + 0x30], rdx
jmp 0x1400f21fa
mov rcx, qword [rax + 8]
mov qword [rcx], rdx
mov rcx, qword [rax + 8]
cmp rax, qword [r14 + 0x38]
jne 0x1400f220a
mov qword [r14 + 0x38], rcx
jmp 0x1400f2211
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 0x1400f222c
lea rcx, [r14 + 0x30]
call fcn.140015280
test rbx, rbx
jne 0x1400f21b3
lea rcx, [r14 + 0x60]
call fcn.140015280
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.140075db0
mov rax, r12
sub rax, 6
je 0x1400f24ca
sub rax, 1
je 0x1400f24ca
sub rax, 0xb
je 0x1400f24ca
cmp rax, 0x8001
jne 0x1400f25af
mov r8d, 0x37
lea rdx, str.WinPowerMsgProc::OnWindowsMessage
lea rcx, str._s__d___uMsg__WM_POWERBROADCAST__wParam__PBT_POWERSETTINGCHANGE
call fcn.140075db0
mov qword [r14 + 0x98], r13
test r13, r13
je 0x1400f24ac
mov rdx, r13
lea rcx, [rbp - 0x51]
call fcn.14006a160
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.140075db0
nop
mov rdx, qword [rbp - 0x51]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400f2329
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005eeb3.0]
mov rcx, qword [r14 + 0x98]
mov rax, qword [rcx]
cmp rax, qword [0x14010d870]
jne 0x1400f25af
mov rax, qword [rcx + 8]
cmp rax, qword [0x14010d878]
jne 0x1400f25af
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.140075db0
test ebx, ebx
jne 0x1400f23ae
lea r8d, [rbx + 0x47]
lea rdx, str.WinPowerMsgProc::OnWindowsMessage
lea rcx, str._s__d_GUID_CONSOLE_DISPLAY_STATE__enter_s0i3
call fcn.140075db0
lea r9d, [rbx + 1]
lea r8, str.s0i3
lea rdx, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov rcx, 0xffffffff80000002
call fcn.1400986f0
jmp 0x1400f25af
cmp ebx, 1
jne 0x1400f25af
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.140035040
test eax, eax
je 0x1400f241c
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 - 0x31]
test rcx, rcx
je 0x1400f25af
jmp 0x1400f25a9
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 0x1400f24a7
cmp dword [rbp - 0x3d], 4
jne 0x1400f24a7
mov edi, dword [rbp - 0x49]
test rbx, rbx
je 0x1400f246b
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test edi, edi
je 0x1400f25af
mov r8d, 0x50
lea rdx, str.WinPowerMsgProc::OnWindowsMessage
lea rcx, str._s__d_GUID_CONSOLE_DISPLAY_STATE__weak_up_from_s0i3
call fcn.140075db0
call fcn.1400147e0
mov rcx, rax
mov edx, 0x441
lea r8d, [rdx - 0x59]
call fcn.1400e8700
jmp 0x1400f25af
jmp 0x1400f25a1
mov r8d, 0x59
lea rdx, str.WinPowerMsgProc::OnWindowsMessage
lea rcx, str._s__d_lParam_is_NULL
call fcn.140075db0
jmp 0x1400f25af
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.140035040
test eax, eax
je 0x1400f252d
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 - 0x19]
test rcx, rcx
je 0x1400f25af
jmp 0x1400f25a9
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 0x1400f25a1
cmp dword [rbp - 0x35], 4
jne 0x1400f25a1
mov edi, dword [rbp - 0x45]
test rbx, rbx
je 0x1400f257c
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test edi, edi
je 0x1400f25af
mov r9, r12
mov r8d, 0x30
lea rdx, str.WinPowerMsgProc::OnWindowsMessage
lea rcx, str._s__d_RESUME__d___weak_up_from_s0i3
call fcn.140075db0
jmp 0x1400f248c
test rbx, rbx
je 0x1400f25af
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.1400f4410
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.14000ce90
int3