Function at 0x140015100
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 0x140015157
mov r8d, 0x2f
lea rdx, str.CDestructorHelper::AvoidDelete
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14006dd20
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.14006dd20
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
lock inc dword [rcx + 0x118]
test r14, r14
je 0x1400153cb
mov ecx, dword [rdx]
test ecx, ecx
je 0x1400153b1
sub ecx, 1
je 0x14001530c
sub ecx, 1
je 0x140015246
cmp ecx, 1
jne 0x1400153be
lock inc dword [rbx + 0x10c]
mov rsi, qword [rbx + 0xa8]
test rsi, rsi
je 0x1400152e5
cmp dword [rbx + 0x108], 0
jne 0x1400152e5
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
test rsi, rsi
je 0x14001540b
cmp qword [rbx + 0xe8], 0
mov rdi, qword [rsi + 0x10]
mov rsi, qword [rsi]
jbe 0x140015200
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x140015200
cmp qword [rax + 0x10], rdi
je 0x140015237
mov rax, qword [rax]
test rax, rax
jne 0x1400151f2
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
test rdi, rdi
je 0x14001522d
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.0x140050923.0]
test rsi, rsi
jne 0x1400151b2
jmp 0x1400152e5
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
jmp 0x14001522d
lock inc dword [rbx + 0x10c]
mov rsi, qword [rbx + 0xa8]
test rsi, rsi
je 0x1400152e5
nop dword [rax]
cmp dword [rbx + 0x108], 0
jne 0x1400152e5
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
test rsi, rsi
je 0x14001540b
cmp qword [rbx + 0xe8], 0
mov rdi, qword [rsi + 0x10]
mov rsi, qword [rsi]
jbe 0x1400152ae
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x1400152ae
nop dword [rax]
cmp qword [rax + 0x10], rdi
je 0x1400152fd
mov rax, qword [rax]
test rax, rax
jne 0x1400152a0
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
test rdi, rdi
je 0x1400152dc
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.0x140050923.0]
test rsi, rsi
jne 0x140015260
lock dec dword [rbx + 0x10c]
lea rcx, [rbx + 0x80]
call fcn.14000bbd0
jmp 0x1400153be
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
jmp 0x1400152dc
lock inc dword [rbx + 0x10c]
mov rsi, qword [rbx + 0xa8]
test rsi, rsi
je 0x1400152e5
nop
cmp dword [rbx + 0x108], 0
jne 0x1400152e5
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
test rsi, rsi
je 0x14001540b
cmp qword [rbx + 0xe8], 0
mov rdi, qword [rsi + 0x10]
mov rsi, qword [rsi]
jbe 0x14001536e
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x14001536e
nop dword [rax]
cmp qword [rax + 0x10], rdi
je 0x1400153a2
mov rax, qword [rax]
test rax, rax
jne 0x140015360
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
test rdi, rdi
je 0x140015398
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.0x140050923.0]
test rsi, rsi
jne 0x140015320
jmp 0x1400152e5
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
jmp 0x140015398
mov rdx, qword [rdx + 8]
lea rcx, [rbx - 8]
call fcn.140015a70
mov edx, 0x28
mov rcx, r14
call fcn.1400df368
lock dec dword [rbx + 0x118]
mov eax, dword [rbx + 0x118]
jne 0x1400153f0
cmp dword [rbx + reloc.OLEAUT32.dll_BSTR_UserUnmarshal], 0
je 0x1400153f0
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.140004f30
int3