Function at 0x140014a60
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x30
cmp dword [rcx + reloc.OLEAUT32.dll_BSTR_UserUnmarshal], 0
mov r14, rdx
mov rbx, rcx
je 0x140014ab7
mov r8d, 0x2f
lea rdx, str.CDestructorHelper::AvoidDelete
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005b9a0
mov r8d, 0x33
lea rdx, str.CAudioDeviceSessionEvents::OnPostEvent
lea rcx, str._s__d_RETURN_ON_FALSE
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r14
jmp fcn.14005b9a0
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
lock inc dword [rcx + 0x118]
test r14, r14
je 0x140014d2b
mov ecx, dword [rdx]
test ecx, ecx
je 0x140014d11
sub ecx, 1
je 0x140014c6b
sub ecx, 1
je 0x140014ba5
cmp ecx, 1
jne 0x140014d1e
inc dword [rbx + 0x10c]
mov rsi, qword [rbx + 0xa8]
test rsi, rsi
je 0x140014c45
cmp dword [rbx + 0x108], 0
jne 0x140014c45
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
test rsi, rsi
je 0x140014d6b
cmp qword [rbx + 0xe8], 0
mov rdi, qword [rsi + 0x10]
mov rsi, qword [rsi]
jbe 0x140014b5f
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x140014b5f
cmp qword [rax + 0x10], rdi
je 0x140014b96
mov rax, qword [rax]
test rax, rax
jne 0x140014b51
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
test rdi, rdi
je 0x140014b8c
mov rax, qword [rdi]
mov rcx, rdi
mov r9d, dword [r14 + 0x20]
mov r8, qword [r14 + 0x10]
mov edx, dword [r14 + 0x18]
mov rax, qword [rax]
call qword [case.0x140048c62.0]
test rsi, rsi
jne 0x140014b11
jmp 0x140014c45
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
jmp 0x140014b8c
inc dword [rbx + 0x10c]
mov rsi, qword [rbx + 0xa8]
test rsi, rsi
je 0x140014c45
nop dword [rax + rax]
cmp dword [rbx + 0x108], 0
jne 0x140014c45
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
test rsi, rsi
je 0x140014d6b
cmp qword [rbx + 0xe8], 0
mov rdi, qword [rsi + 0x10]
mov rsi, qword [rsi]
jbe 0x140014c0e
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x140014c0e
nop dword [rax]
cmp qword [rax + 0x10], rdi
je 0x140014c5c
mov rax, qword [rax]
test rax, rax
jne 0x140014c00
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
test rdi, rdi
je 0x140014c3c
mov rax, qword [rdi]
mov rcx, rdi
mov r9d, dword [r14 + 0x1c]
mov r8, qword [r14 + 0x10]
mov edx, dword [r14 + 0x18]
mov rax, qword [rax + 8]
call qword [case.0x140048c62.0]
test rsi, rsi
jne 0x140014bc0
dec dword [rbx + 0x10c]
lea rcx, [rbx + 0x80]
call fcn.14000b480
jmp 0x140014d1e
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
jmp 0x140014c3c
inc dword [rbx + 0x10c]
mov rsi, qword [rbx + 0xa8]
test rsi, rsi
je 0x140014c45
nop dword [rax]
cmp dword [rbx + 0x108], 0
jne 0x140014c45
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
test rsi, rsi
je 0x140014d6b
cmp qword [rbx + 0xe8], 0
mov rdi, qword [rsi + 0x10]
mov rsi, qword [rsi]
jbe 0x140014cce
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x140014cce
nop dword [rax]
cmp qword [rax + 0x10], rdi
je 0x140014d02
mov rax, qword [rax]
test rax, rax
jne 0x140014cc0
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
test rdi, rdi
je 0x140014cf8
mov rax, qword [rdi]
mov rcx, rdi
mov r8, qword [r14 + 0x10]
mov edx, dword [r14 + 0x18]
mov rax, qword [rax + 0x10]
call qword [case.0x140048c62.0]
test rsi, rsi
jne 0x140014c80
jmp 0x140014c45
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
jmp 0x140014cf8
mov rdx, qword [rdx + 8]
lea rcx, [rbx - 8]
call fcn.1400153f0
mov edx, 0x28
mov rcx, r14
call fcn.1400c1818
lock dec dword [rbx + 0x118]
mov eax, dword [rbx + 0x118]
jne 0x140014d50
cmp dword [rbx + reloc.OLEAUT32.dll_BSTR_UserUnmarshal], 0
je 0x140014d50
mov rcx, qword [rbx + 0x110]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
mov ecx, 0x80004005
call fcn.140004820
int3