Function at 0x1400106a0
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 0x1400106f7
mov r8d, 0x2d
lea rdx, str.CDestructorHelper::AvoidDelete
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14002f950
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.14002f950
inc dword [rcx + 0x118]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rdi
test r14, r14
je 0x140010929
mov ecx, dword [rdx]
test ecx, ecx
je 0x14001090f
sub ecx, 1
je 0x140010875
sub ecx, 1
je 0x1400107e4
cmp ecx, 1
jne 0x14001091c
inc dword [rbx + 0x10c]
mov rsi, qword [rbx + 0xa8]
test rsi, rsi
je 0x1400107cd
cmp dword [rbx + 0x108], 0
jne 0x1400107cd
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
test rsi, rsi
je 0x140010963
cmp qword [rbx + 0xe8], 0
mov rdi, qword [rsi + 0x10]
mov rsi, qword [rsi]
jbe 0x1400107a2
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x1400107a2
nop dword [rax]
cmp qword [rax + 0x10], rdi
je 0x1400107a0
mov rax, qword [rax]
test rax, rax
jne 0x140010790
jmp 0x1400107a2
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 0x1400107c8
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 0x140010750
dec dword [rbx + 0x10c]
lea rcx, [rbx + 0x80]
call fcn.1400098a0
jmp 0x14001091c
inc dword [rbx + 0x10c]
mov rsi, qword [rbx + 0xa8]
test rsi, rsi
je 0x1400107cd
cmp dword [rbx + 0x108], 0
jne 0x1400107cd
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
test rsi, rsi
je 0x14001096e
cmp qword [rbx + 0xe8], 0
mov rdi, qword [rsi + 0x10]
mov rsi, qword [rsi]
jbe 0x140010844
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x140010844
cmp qword [rax + 0x10], rdi
je 0x140010842
mov rax, qword [rax]
test rax, rax
jne 0x140010832
jmp 0x140010844
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 0x14001086b
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 0x1400107f6
jmp 0x1400107cd
inc dword [rbx + 0x10c]
mov rsi, qword [rbx + 0xa8]
test rsi, rsi
je 0x1400107cd
nop dword [rax + rax]
cmp dword [rbx + 0x108], 0
jne 0x1400107cd
lea rcx, [rbx + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
test rsi, rsi
je 0x140010979
cmp qword [rbx + 0xe8], 0
mov rdi, qword [rsi + 0x10]
mov rsi, qword [rsi]
jbe 0x1400108e2
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x1400108e2
cmp qword [rax + 0x10], rdi
je 0x1400108e0
mov rax, qword [rax]
test rax, rax
jne 0x1400108d0
jmp 0x1400108e2
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 0x140010905
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 0x140010890
jmp 0x1400107cd
mov rdx, qword [rdx + 8]
lea rcx, [rbx - 8]
call fcn.140010f10
mov edx, 0x28
mov rcx, r14
call fcn.140076db4
sub dword [rbx + 0x118], 1
jne 0x140010948
cmp dword [rbx + reloc.OLEAUT32.dll_BSTR_UserUnmarshal], 0
je 0x140010948
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.140003ec0
int3
mov ecx, 0x80004005
call fcn.140003ec0
int3
mov ecx, 0x80004005
call fcn.140003ec0
int3