Function at 0x1400778b0
Capabilities:
Print debug messages

Disassembly:
push rsi
push r14
push r15
sub rsp, 0x30
mov r14, rdx
mov rsi, rcx
call fcn.140078610
mov qword [rsp + 0x60], rax
mov r15, rax
test rax, rax
jne 0x1400778f4
mov r8d, 0x100
lea rdx, str.CMMPlatform::OnDeviceRemoved
lea rcx, str._s__d_RETURN_ON_FALSE
add rsp, 0x30
pop r15
pop r14
pop rsi
jmp fcn.14004c3d0
mov rcx, qword [rsi + 0x140]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r13
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
lea rcx, [rsi + 0xa0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov ebx, dword [rsi + 0x138]
lea rcx, [rsi + 0xa0]
mov dword [rsi + 0x13c], 1
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
test ebx, ebx
jle 0x140077950
mov rcx, qword [rsi + 0x148]
mov edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
lea rdx, [rsi + 0xd8]
mov qword [rsp + 0x58], rbp
mov rcx, qword [rdx]
xor r13d, r13d
mov qword [rsp + 0x68], rdi
test rcx, rcx
je 0x140077b03
cmp qword [rcx + 0x10], r15
je 0x140077983
mov rcx, qword [rcx]
test rcx, rcx
jne 0x140077970
jmp 0x140077b03
mov r8, qword [rcx]
cmp rcx, qword [rdx]
jne 0x140077990
mov qword [rdx], r8
jmp 0x140077997
mov rax, qword [rcx + 8]
mov qword [rax], r8
mov r8, qword [rcx + 8]
cmp rcx, qword [rdx + 8]
jne 0x1400779a7
mov qword [rdx + 8], r8
jmp 0x1400779ae
mov rax, qword [rcx]
mov qword [rax + 8], r8
mov rax, qword [rdx + 0x20]
mov qword [rcx], rax
sub qword [rdx + 0x10], 1
mov qword [rdx + 0x20], rcx
jne 0x1400779c8
mov rcx, rdx
call fcn.14000b9a0
lea rcx, [rsi + 0xa0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
call fcn.14001a470
test eax, eax
je 0x140077ae5
call fcn.14001ab90
lea rdi, [rax + 0x80]
mov rbx, qword [rdi]
test rbx, rbx
je 0x140077ae5
nop word [rax + rax]
mov r9, rbx
test rbx, rbx
je 0x140077bf0
mov rbp, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rbp, rbp
je 0x140077adc
lea rax, [rbp + 0x10]
mov r8, r14
sub r8, rax
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140077a44
add rax, 2
test ecx, ecx
jne 0x140077a30
test edx, edx
jne 0x140077adc
cmp r9, qword [rdi]
jne 0x140077a56
mov qword [rdi], rbx
jmp 0x140077a5d
mov rax, qword [r9 + 8]
mov qword [rax], rbx
mov rcx, qword [r9 + 8]
cmp r9, qword [rdi + 8]
jne 0x140077a6d
mov qword [rdi + 8], rcx
jmp 0x140077a74
mov rax, qword [r9]
mov qword [rax + 8], rcx
mov rax, qword [rdi + 0x20]
mov qword [r9], rax
sub qword [rdi + 0x10], 1
mov qword [rdi + 0x20], r9
jne 0x140077a8e
mov rcx, rdi
call fcn.14000b9a0
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x140077ab3
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x48]
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x140077ab3
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbp + 8], r13
mov edx, 0x88
mov rcx, rbp
call fcn.1400a404c
mov r9, r14
lea rdx, str.CAudioSystemEffectsPropertyChangeNotificationNotify::OnRemoveDevice
mov r8d, 0x6f
lea rcx, str._s__d_EpId_s
call fcn.14004c3d0
test rbx, rbx
jne 0x140077a00
lea rcx, [rsi + 0x108]
lea rdx, [rsp + 0x60]
call fcn.140006270
lea rcx, [rsi + 0xa0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov rcx, qword [rsi + 0x140]
mov dword [rsi + 0x13c], r13d
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
inc dword [rsi + 0x9c]
mov rdi, qword [rsi + 0x38]
test rdi, rdi
je 0x140077b8b
cmp dword [rsi + 0x98], r13d
jne 0x140077b8b
lea rcx, [rsi + 0x10]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
test rdi, rdi
je 0x140077bf0
mov rbx, qword [rdi + 0x10]
mov rdi, qword [rdi]
cmp qword [rsi + 0x78], r13
jbe 0x140077b6b
mov rax, qword [rsi + 0x68]
test rax, rax
je 0x140077b6b
cmp qword [rax + 0x10], rbx
je 0x140077b68
mov rax, qword [rax]
test rax, rax
jne 0x140077b58
jmp 0x140077b6b
mov rbx, r13
lea rcx, [rsi + 0x10]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
test rbx, rbx
je 0x140077b86
mov rax, qword [rbx]
mov rdx, r15
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test rdi, rdi
jne 0x140077b26
dec dword [rsi + 0x9c]
lea rcx, [rsi + 0x10]
call fcn.14000acd0
mov dword [rsi + 0xd0], 1
call fcn.14000af30
mov rcx, rax
mov edx, 0x3f5
call fcn.140098be0
call fcn.14000af30
mov rcx, rax
mov edx, 0x3f5
mov r8d, 0x2710
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x58]
mov r12, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x50]
mov r13, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rsi
jmp fcn.1400989d0
mov ecx, 0x80004005
call fcn.140004670
int3