Function at 0x140014c20
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 0x140014c70
mov r8d, 0x2f
lea rdx, str.CDestructorHelper::AvoidDelete
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005f240
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.14005f240
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 0x140014eb9
mov ecx, dword [r14]
test ecx, ecx
je 0x140014e9f
sub ecx, edx
je 0x140014e0c
sub ecx, edx
je 0x140014d62
cmp ecx, edx
jne 0x140014eac
lock xadd dword [rbx + 0x10c], edx
mov rsi, qword [rbx + 0xa8]
test rsi, rsi
je 0x140014df0
nop dword [rax + rax]
cmp dword [rbx + 0x108], 0
jne 0x140014df0
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
test rsi, rsi
je 0x140014efd
cmp qword [rbx + 0xe8], 0
mov rdi, qword [rsi + 0x10]
mov rsi, qword [rsi]
jbe 0x140014d32
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x140014d32
cmp qword [rax + 0x10], rdi
je 0x140014d30
mov rax, qword [rax]
test rax, rax
jne 0x140014d20
jmp 0x140014d32
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 0x140014d58
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 0x140014ce0
jmp 0x140014df0
lock xadd dword [rbx + 0x10c], edx
mov rsi, qword [rbx + 0xa8]
test rsi, rsi
je 0x140014df0
cmp dword [rbx + 0x108], 0
jne 0x140014df0
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
test rsi, rsi
je 0x140014efd
cmp qword [rbx + 0xe8], 0
mov rdi, qword [rsi + 0x10]
mov rsi, qword [rsi]
jbe 0x140014dc4
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x140014dc4
cmp qword [rax + 0x10], rdi
je 0x140014dc2
mov rax, qword [rax]
test rax, rax
jne 0x140014db2
jmp 0x140014dc4
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 0x140014deb
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 0x140014d76
mov eax, r15d
lock xadd dword [rbx + 0x10c], eax
lea rcx, [rbx + 0x80]
call fcn.14000b430
jmp 0x140014eac
lock xadd dword [rbx + 0x10c], edx
mov rsi, qword [rbx + 0xa8]
test rsi, rsi
je 0x140014df0
cmp dword [rbx + 0x108], 0
jne 0x140014df0
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
test rsi, rsi
je 0x140014efd
cmp qword [rbx + 0xe8], 0
mov rdi, qword [rsi + 0x10]
mov rsi, qword [rsi]
jbe 0x140014e72
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x140014e72
nop dword [rax]
cmp qword [rax + 0x10], rdi
je 0x140014e70
mov rax, qword [rax]
test rax, rax
jne 0x140014e60
jmp 0x140014e72
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 0x140014e95
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 0x140014e20
jmp 0x140014df0
mov rdx, qword [r14 + 8]
lea rcx, [rbx - 8]
call fcn.1400154b0
mov edx, 0x28
mov rcx, r14
call fcn.1400c094c
lock xadd dword [rbx + 0x118], r15d
mov eax, dword [rbx + 0x118]
test eax, eax
jne 0x140014ee1
cmp dword [rbx + reloc.OLEAUT32.dll_BSTR_UserUnmarshal], eax
je 0x140014ee1
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