Function at 0x140010b10
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x20
cmp dword [rcx + reloc.OLEAUT32.dll_BSTR_UserUnmarshal], 0
mov r14, rdx
mov rbx, rcx
je 0x140010b67
mov r8d, 0x2d
lea rdx, str.CDestructorHelper::AvoidDelete
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.140032320
mov r8d, 0x30
lea rdx, str.CAudioDeviceSessionEvents::OnPostEvent
lea rcx, str._s__d_RETURN_ON_FALSE
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp fcn.140032320
mov qword [rsp + 0x30], rbp
mov eax, 1
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rdi
lock xadd dword [rcx + 0x118], eax
test r14, r14
je 0x140010d99
mov ecx, dword [rdx]
test ecx, ecx
je 0x140010d7f
sub ecx, 1
je 0x140010ce5
sub ecx, 1
je 0x140010c54
cmp ecx, 1
jne 0x140010d8c
inc dword [rbx + 0x10c]
mov rsi, qword [rbx + 0xa8]
test rsi, rsi
je 0x140010c3d
cmp dword [rbx + 0x108], 0
jne 0x140010c3d
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
test rsi, rsi
je 0x140010dde
cmp qword [rbx + 0xe8], 0
mov rdi, qword [rsi + 0x10]
mov rsi, qword [rsi]
jbe 0x140010c12
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x140010c12
nop
cmp qword [rax + 0x10], rdi
je 0x140010c10
mov rax, qword [rax]
test rax, rax
jne 0x140010c00
jmp 0x140010c12
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 0x140010c38
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 0x140010bc3
dec dword [rbx + 0x10c]
lea rcx, [rbx + 0x80]
call fcn.140009810
jmp 0x140010d8c
inc dword [rbx + 0x10c]
mov rsi, qword [rbx + 0xa8]
test rsi, rsi
je 0x140010c3d
cmp dword [rbx + 0x108], 0
jne 0x140010c3d
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
test rsi, rsi
je 0x140010de9
cmp qword [rbx + 0xe8], 0
mov rdi, qword [rsi + 0x10]
mov rsi, qword [rsi]
jbe 0x140010cb4
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x140010cb4
cmp qword [rax + 0x10], rdi
je 0x140010cb2
mov rax, qword [rax]
test rax, rax
jne 0x140010ca2
jmp 0x140010cb4
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 0x140010cdb
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 0x140010c66
jmp 0x140010c3d
inc dword [rbx + 0x10c]
mov rsi, qword [rbx + 0xa8]
test rsi, rsi
je 0x140010c3d
nop dword [rax + rax]
cmp dword [rbx + 0x108], 0
jne 0x140010c3d
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
test rsi, rsi
je 0x140010df4
cmp qword [rbx + 0xe8], 0
mov rdi, qword [rsi + 0x10]
mov rsi, qword [rsi]
jbe 0x140010d52
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x140010d52
cmp qword [rax + 0x10], rdi
je 0x140010d50
mov rax, qword [rax]
test rax, rax
jne 0x140010d40
jmp 0x140010d52
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 0x140010d75
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 0x140010d00
jmp 0x140010c3d
mov rdx, qword [rdx + 8]
lea rcx, [rbx - 8]
call fcn.1400113b0
mov edx, 0x28
mov rcx, r14
call fcn.140078f1c
or eax, 0xffffffff
lock xadd dword [rbx + 0x118], eax
mov eax, dword [rbx + 0x118]
test eax, eax
jne 0x140010dc3
cmp dword [rbx + reloc.OLEAUT32.dll_BSTR_UserUnmarshal], eax
je 0x140010dc3
mov rcx, qword [rbx + 0x110]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov ecx, 0x80004005
call fcn.140003fc0
int3
mov ecx, 0x80004005
call fcn.140003fc0
int3
mov ecx, 0x80004005
call fcn.140003fc0
int3