Function at 0x140015220
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 0x140015270
mov r8d, 0x2f
lea rdx, str.CDestructorHelper::AvoidDelete
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.140064950
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.140064950
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 0x1400154b9
mov ecx, dword [r14]
test ecx, ecx
je 0x14001549f
sub ecx, edx
je 0x14001540c
sub ecx, edx
je 0x140015362
cmp ecx, edx
jne 0x1400154ac
lock xadd dword [rbx + 0x10c], edx
mov rsi, qword [rbx + 0xa8]
test rsi, rsi
je 0x1400153f0
nop dword [rax + rax]
cmp dword [rbx + 0x108], 0
jne 0x1400153f0
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
test rsi, rsi
je 0x1400154fd
cmp qword [rbx + 0xe8], 0
mov rdi, qword [rsi + 0x10]
mov rsi, qword [rsi]
jbe 0x140015332
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x140015332
cmp qword [rax + 0x10], rdi
je 0x140015330
mov rax, qword [rax]
test rax, rax
jne 0x140015320
jmp 0x140015332
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 0x140015358
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 0x1400152e0
jmp 0x1400153f0
lock xadd dword [rbx + 0x10c], edx
mov rsi, qword [rbx + 0xa8]
test rsi, rsi
je 0x1400153f0
cmp dword [rbx + 0x108], 0
jne 0x1400153f0
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
test rsi, rsi
je 0x1400154fd
cmp qword [rbx + 0xe8], 0
mov rdi, qword [rsi + 0x10]
mov rsi, qword [rsi]
jbe 0x1400153c4
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x1400153c4
cmp qword [rax + 0x10], rdi
je 0x1400153c2
mov rax, qword [rax]
test rax, rax
jne 0x1400153b2
jmp 0x1400153c4
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 0x1400153eb
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 0x140015376
mov eax, r15d
lock xadd dword [rbx + 0x10c], eax
lea rcx, [rbx + 0x80]
call fcn.14000b8f0
jmp 0x1400154ac
lock xadd dword [rbx + 0x10c], edx
mov rsi, qword [rbx + 0xa8]
test rsi, rsi
je 0x1400153f0
cmp dword [rbx + 0x108], 0
jne 0x1400153f0
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
test rsi, rsi
je 0x1400154fd
cmp qword [rbx + 0xe8], 0
mov rdi, qword [rsi + 0x10]
mov rsi, qword [rsi]
jbe 0x140015472
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x140015472
nop dword [rax]
cmp qword [rax + 0x10], rdi
je 0x140015470
mov rax, qword [rax]
test rax, rax
jne 0x140015460
jmp 0x140015472
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 0x140015495
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 0x140015420
jmp 0x1400153f0
mov rdx, qword [r14 + 8]
lea rcx, [rbx - 8]
call fcn.140015ab0
mov edx, 0x28
mov rcx, r14
call fcn.1400ce23c
lock xadd dword [rbx + 0x118], r15d
mov eax, dword [rbx + 0x118]
test eax, eax
jne 0x1400154e1
cmp dword [rbx + reloc.OLEAUT32.dll_BSTR_UserUnmarshal], eax
je 0x1400154e1
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