Function at 0x140015480
Capabilities:
Print debug messages

Disassembly:
push rbx
push r14
sub rsp, 0x28
cmp dword [rcx + reloc.OLEAUT32.dll_BSTR_UserUnmarshal], 0
mov r14, rdx
mov rbx, rcx
je 0x1400154d0
mov r8d, 0x2f
lea rdx, str.CDestructorHelper::AvoidDelete
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.140065460
mov r8d, 0x33
lea rdx, str.CAudioDeviceSessionEvents::OnPostEvent
lea rcx, str._s__d_RETURN_ON_FALSE
add rsp, 0x28
pop r14
pop rbx
jmp fcn.140065460
mov qword [rsp + 0x40], rbp
mov edx, 1
mov qword [rsp + 0x48], rsi
mov eax, edx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x20], r15
lock xadd dword [rcx + 0x118], eax
lea r15d, [rdx - 2]
test r14, r14
je 0x140015719
mov ecx, dword [r14]
test ecx, ecx
je 0x1400156ff
sub ecx, edx
je 0x14001566c
sub ecx, edx
je 0x1400155c2
cmp ecx, edx
jne 0x14001570c
lock xadd dword [rbx + 0x10c], edx
mov rsi, qword [rbx + 0xa8]
test rsi, rsi
je 0x140015650
nop dword [rax + rax]
cmp dword [rbx + 0x108], 0
jne 0x140015650
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
test rsi, rsi
je 0x14001575d
cmp qword [rbx + 0xe8], 0
mov rdi, qword [rsi + 0x10]
mov rsi, qword [rsi]
jbe 0x140015592
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x140015592
cmp qword [rax + 0x10], rdi
je 0x140015590
mov rax, qword [rax]
test rax, rax
jne 0x140015580
jmp 0x140015592
xor edi, edi
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
test rdi, rdi
je 0x1400155b8
mov rax, qword [rdi]
mov rcx, rdi
mov r9d, dword [r14 + 0x20]
mov r8, qword [r14 + 0x10]
mov edx, dword [r14 + 0x18]
call qword [rax]
test rsi, rsi
jne 0x140015540
jmp 0x140015650
lock xadd dword [rbx + 0x10c], edx
mov rsi, qword [rbx + 0xa8]
test rsi, rsi
je 0x140015650
cmp dword [rbx + 0x108], 0
jne 0x140015650
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
test rsi, rsi
je 0x14001575d
cmp qword [rbx + 0xe8], 0
mov rdi, qword [rsi + 0x10]
mov rsi, qword [rsi]
jbe 0x140015624
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x140015624
cmp qword [rax + 0x10], rdi
je 0x140015622
mov rax, qword [rax]
test rax, rax
jne 0x140015612
jmp 0x140015624
xor edi, edi
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
test rdi, rdi
je 0x14001564b
mov rax, qword [rdi]
mov rcx, rdi
mov r9d, dword [r14 + 0x1c]
mov r8, qword [r14 + 0x10]
mov edx, dword [r14 + 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test rsi, rsi
jne 0x1400155d6
mov eax, r15d
lock xadd dword [rbx + 0x10c], eax
lea rcx, [rbx + 0x80]
call fcn.14000b8f0
jmp 0x14001570c
lock xadd dword [rbx + 0x10c], edx
mov rsi, qword [rbx + 0xa8]
test rsi, rsi
je 0x140015650
cmp dword [rbx + 0x108], 0
jne 0x140015650
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
test rsi, rsi
je 0x14001575d
cmp qword [rbx + 0xe8], 0
mov rdi, qword [rsi + 0x10]
mov rsi, qword [rsi]
jbe 0x1400156d2
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x1400156d2
nop dword [rax]
cmp qword [rax + 0x10], rdi
je 0x1400156d0
mov rax, qword [rax]
test rax, rax
jne 0x1400156c0
jmp 0x1400156d2
xor edi, edi
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
test rdi, rdi
je 0x1400156f5
mov rax, qword [rdi]
mov rcx, rdi
mov r8, qword [r14 + 0x10]
mov edx, dword [r14 + 0x18]
call qword [rax + 0x10]
test rsi, rsi
jne 0x140015680
jmp 0x140015650
mov rdx, qword [r14 + 8]
lea rcx, [rbx - 8]
call fcn.140015d10
mov edx, 0x28
mov rcx, r14
call fcn.1400d37cc
lock xadd dword [rbx + 0x118], r15d
mov eax, dword [rbx + 0x118]
test eax, eax
jne 0x140015741
cmp dword [rbx + reloc.OLEAUT32.dll_BSTR_UserUnmarshal], eax
je 0x140015741
mov rcx, qword [rbx + 0x110]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop r14
pop rbx
ret
mov ecx, 0x80004005
call fcn.140005560
int3