Function at 0x140082dc0
Capabilities:
Print debug messages

Disassembly:
push rdi
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov rbp, rdx
xor r15d, r15d
mov esi, r15d
mov dword [rsp + 0x58], r15d
lea rcx, str.OnAddDevice_n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
test rbp, rbp
jne 0x140082e20
mov r8d, 0x113
lea rdx, str.CVoipStreamCreationTimeMgr::OnAddDevice
lea rcx, str._s__d_RETURN_ON_FALSE
call fcn.14003f0e0
jmp 0x1400830a4
lea rbx, [rbp + 0x20]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
cmp dword [rbp + 0x58], esi
jne 0x140082e3a
mov rcx, rbp
call fcn.1400121d0
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
cmp dword [rbp + 0x8c], esi
je 0x1400830a4
mov rdi, qword [0x1400f54c0]
test rdi, rdi
je 0x140082f42
mov r14, qword [rdi + 0x10]
mov rdi, qword [rdi]
test r14, r14
je 0x140082f09
mov rbx, qword [rbp + 0x148]
call fcn.140003970
mov rcx, rax
test rax, rax
je 0x1400830c8
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x58], rax
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.1400050d0
test al, al
jne 0x140082edb
test rbx, rbx
jne 0x140082eb1
mov eax, r15d
jmp 0x140082eca
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140082ec0
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.140003400
nop
or esi, 1
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x140082f09
mov rcx, qword [r14]
cmp dword [rcx - 0x10], 0
jl 0x140082f09
call fcn.140091080
test rax, rax
je 0x140082f09
sub rax, qword [r14]
sar rax, 1
test eax, eax
js 0x140082f09
mov bl, 1
jmp 0x140082f0b
xor bl, bl
test sil, 1
je 0x140082f35
and esi, 0xfffffffe
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140082f35
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
jne 0x1400830a4
jmp 0x140082e56
mov ecx, 0x38
call fcn.14008b40c
mov rbx, rax
call fcn.140003970
mov rcx, rax
test rax, rax
je 0x1400830d3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbx], rax
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
mov qword [rbx + 0x20], r15
mov qword [rbx + 0x28], r15
mov dword [rbx + 0x30], 0xa
mov rdx, qword [rbp + 0x148]
test rdx, rdx
jne 0x140082f99
mov eax, r15d
jmp 0x140082faa
mov rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], 0
jne 0x140082fa0
mov r8d, eax
mov rcx, rbx
call fcn.140003400
mov rdi, qword [0x1400f54c8]
mov rcx, qword [0x1400f54e0]
test rcx, rcx
jne 0x140083069
mov ecx, dword [reloc.OLEAUT32.dll_VariantCopyInd]
test rcx, rcx
jne 0x140082fdc
mov rcx, r15
jmp 0x140082ffa
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 0x18
jb 0x1400830bd
lea rcx, [rcx + rcx*2]
shl rcx, 3
mov rax, rcx
not rax
cmp rax, 8
jb 0x1400830bd
add rcx, 8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x1400830bd
mov rcx, qword [0x1400f54d8]
mov qword [rax], rcx
mov qword [0x1400f54d8], rax
mov r8d, dword [reloc.OLEAUT32.dll_VariantCopyInd]
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*2]
lea rax, [rax + rcx*8]
add rax, 8
sub r8d, 1
mov rcx, qword [0x1400f54e0]
js 0x140083069
mov qword [rax], rcx
mov rcx, rax
mov qword [0x1400f54e0], rax
sub rax, 0x18
sub r8d, 1
jns 0x140083052
mov rax, qword [rcx]
mov qword [rcx + 0x10], rbx
mov qword [0x1400f54e0], rax
mov qword [rcx + 8], rdi
mov qword [rcx], r15
inc qword [0x1400f54d0]
mov rax, qword [0x1400f54c8]
test rax, rax
je 0x140083096
mov qword [rax], rcx
jmp 0x14008309d
mov qword [0x1400f54c0], rcx
mov qword [0x1400f54c8], rcx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
mov ecx, 0x8007000e
call fcn.140003700
int3
mov ecx, 0x80004005
call fcn.140003700
int3
mov ecx, 0x80004005
call fcn.140003700
int3