Function at 0x140014b40
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 0x140014b90
mov r8d, 0x2f
lea rdx, str.CDestructorHelper::AvoidDelete
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.140061d00
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.140061d00
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 0x140014dd9
mov ecx, dword [r14]
test ecx, ecx
je 0x140014dbf
sub ecx, edx
je 0x140014d2c
sub ecx, edx
je 0x140014c82
cmp ecx, edx
jne 0x140014dcc
lock xadd dword [rbx + 0x10c], edx
mov rsi, qword [rbx + 0xa8]
test rsi, rsi
je 0x140014d10
nop dword [rax + rax]
cmp dword [rbx + 0x108], 0
jne 0x140014d10
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
test rsi, rsi
je 0x140014e1d
cmp qword [rbx + 0xe8], 0
mov rdi, qword [rsi + 0x10]
mov rsi, qword [rsi]
jbe 0x140014c52
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x140014c52
cmp qword [rax + 0x10], rdi
je 0x140014c50
mov rax, qword [rax]
test rax, rax
jne 0x140014c40
jmp 0x140014c52
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 0x140014c78
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 0x140014c00
jmp 0x140014d10
lock xadd dword [rbx + 0x10c], edx
mov rsi, qword [rbx + 0xa8]
test rsi, rsi
je 0x140014d10
cmp dword [rbx + 0x108], 0
jne 0x140014d10
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
test rsi, rsi
je 0x140014e1d
cmp qword [rbx + 0xe8], 0
mov rdi, qword [rsi + 0x10]
mov rsi, qword [rsi]
jbe 0x140014ce4
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x140014ce4
cmp qword [rax + 0x10], rdi
je 0x140014ce2
mov rax, qword [rax]
test rax, rax
jne 0x140014cd2
jmp 0x140014ce4
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 0x140014d0b
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 0x140014c96
mov eax, r15d
lock xadd dword [rbx + 0x10c], eax
lea rcx, [rbx + 0x80]
call fcn.14000b350
jmp 0x140014dcc
lock xadd dword [rbx + 0x10c], edx
mov rsi, qword [rbx + 0xa8]
test rsi, rsi
je 0x140014d10
cmp dword [rbx + 0x108], 0
jne 0x140014d10
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
test rsi, rsi
je 0x140014e1d
cmp qword [rbx + 0xe8], 0
mov rdi, qword [rsi + 0x10]
mov rsi, qword [rsi]
jbe 0x140014d92
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x140014d92
nop dword [rax]
cmp qword [rax + 0x10], rdi
je 0x140014d90
mov rax, qword [rax]
test rax, rax
jne 0x140014d80
jmp 0x140014d92
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 0x140014db5
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 0x140014d40
jmp 0x140014d10
mov rdx, qword [r14 + 8]
lea rcx, [rbx - 8]
call fcn.1400153d0
mov edx, 0x28
mov rcx, r14
call fcn.1400c588c
lock xadd dword [rbx + 0x118], r15d
mov eax, dword [rbx + 0x118]
test eax, eax
jne 0x140014e01
cmp dword [rbx + reloc.OLEAUT32.dll_BSTR_UserUnmarshal], eax
je 0x140014e01
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.140004fd0
int3