Function at 0x140016af0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa70]
sub rsp, 0xb70
mov rax, qword [0x14006c038]
xor rax, rsp
mov qword [rbp + 0xa60], rax
mov r12d, r8d
mov dword [rsp + 0x30], r8d
mov r13d, edx
mov rdi, rcx
xor edx, edx
lea rcx, [rbp + 0x660]
mov r8d, 0x400
mov r14, r9
call fcn.14001cd80
mov rax, qword [rdi + 0x38]
xor r15d, r15d
mov rbx, rax
mov rsi, 0xffffffffffffffff
test rax, rax
je 0x140016cfc
cmp r13d, 1
jne 0x140016cfc
cmp r12d, r13d
jne 0x140016cfc
test dword [rax + 0x290], 0x100
je 0x140016bb1
test r14, r14
lea r9, str.NULL_DefaultDeviceId
lea r8, str.OnDefaultDeviceChanged_eCapture__eMultimedia__s_n
mov edx, 0x400
cmovne r9, r14
lea rcx, [rbp + 0x660]
call fcn.140002050
lea rcx, [rbp + 0x660]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
mov ecx, 0x114
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
call fcn.14001986c
mov rbx, rax
test r14, r14
je 0x140016cda
mov rcx, rsi
inc rcx
cmp word [r14 + rcx*2], r15w
jne 0x140016bd6
mov r9, rbx
cmp ecx, 0x80
jle 0x140016bf2
mov edx, 0x80
jmp 0x140016bf8
lea eax, [rcx + 1]
movsxd rdx, eax
mov r8, r14
mov rcx, r9
call fcn.140031158
movups xmm0, xmmword [rsp + 0x38]
mov rax, qword [rsp + 0x38]
movups xmmword [rbx + 0x100], xmm0
mov dword [rbx + 0x110], eax
mov r12, qword [rdi + 0x10]
cmp qword [rdi + 0x28], r15
jne 0x140016ca5
mov ecx, dword [rdi + 0x30]
test rcx, rcx
jne 0x140016c35
mov rcx, r15
jmp 0x140016c4f
xor edx, edx
mov rax, rsi
div rcx
cmp rax, 0x18
jb 0x14001707c
lea rcx, [rcx + rcx*2]
shl rcx, 3
add rcx, 8
call fcn.140031424
test rax, rax
je 0x14001707c
mov rcx, qword [rdi + 0x20]
mov qword [rax], rcx
mov qword [rdi + 0x20], rax
mov r8d, dword [rdi + 0x30]
lea ecx, [r8 - 1]
lea rdx, [rcx*2 + 1]
add rdx, rcx
sub r8d, 1
lea rdx, [rax + rdx*8]
js 0x140016ca5
nop dword [rax]
mov rax, qword [rdi + 0x28]
mov qword [rdx], rax
mov qword [rdi + 0x28], rdx
sub rdx, 0x18
sub r8d, 1
jns 0x140016c90
mov rcx, qword [rdi + 0x28]
mov rax, qword [rcx]
mov qword [rcx + 0x10], rbx
mov qword [rdi + 0x28], rax
mov qword [rcx + 8], r12
mov qword [rcx], r15
inc qword [rdi + 0x18]
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x140016ccd
mov qword [rax], rcx
jmp 0x140016cd1
mov qword [rdi + 8], rcx
mov r12d, dword [rsp + 0x30]
mov qword [rdi + 0x10], rcx
mov rbx, qword [rdi + 0x38]
mov rcx, qword [rbx + 0x580]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0x588]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rbx, qword [rdi + 0x38]
test rbx, rbx
je 0x140017050
cmp r13d, 1
ja 0x140017050
cmp r12d, 1
jne 0x140017050
xor edx, edx
lea rcx, [rbp + 0x260]
mov r8d, 0x400
call fcn.14001cd80
test dword [rbx + 0x290], 0x100
je 0x140016d86
test r13d, r13d
lea rcx, str.eCapture
lea rax, str.eRender
mov edx, 0x400
cmovne rax, rcx
lea r9, str.NULL_pwstrDeviceId
test r14, r14
mov qword [rsp + 0x20], rax
lea r8, str.OnDefaultDeviceChanged__s___s_n
cmovne r9, r14
lea rcx, [rbp + 0x260]
call fcn.140002050
lea rcx, [rbp + 0x260]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, [0x1400623d0]
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
mov rbx, rax
test rax, rax
jne 0x140016db3
lea rdx, [0x140062510]
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
mov rbx, rax
jmp 0x140016db7
add rbx, 4
cmp qword [rdi + 0x38], r15
je 0x140017050
test rbx, rbx
je 0x140017050
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x204
call fcn.14001cd80
mov rdx, rbx
call fcn.140016510
xor edx, edx
lea rcx, [rbp + 0x160]
mov r8d, 0x100
mov r14d, eax
call fcn.14001cd80
cmp r14d, esi
je 0x140017050
mov r9, rbx
lea r8, [0x14005b1b8]
mov edx, 0x100
lea rcx, [rsp + 0x50]
call fcn.140002050
mov rcx, qword [rdi + 0x38]
lea r8, [rbp + 0x160]
mov r9d, r14d
mov dword [rbp + 0x50], r14d
mov rdx, rbx
call fcn.140012510
lea rax, [rbp + 0x160]
nop
inc rsi
cmp word [rax + rsi*2], r15w
jne 0x140016e40
test rsi, rsi
je 0x140017050
lea rdx, str.USB_
lea rcx, [rbp + 0x160]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
lea rdx, str.BTHHFENUM_
mov rbx, rax
lea rcx, [rbp + 0x160]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
lea rdx, str.BTHENUM_
mov rsi, rax
lea rcx, [rbp + 0x160]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
lea r9, [rbp + 0x160]
mov edx, 0x100
lea r8, [0x14005b1b8]
mov r14, rax
lea rcx, [rbp + 0x54]
call fcn.140002050
test rbx, rbx
jne 0x140016ec7
test rsi, rsi
jne 0x140016ec7
test r14, r14
je 0x140017050
mov rcx, qword [rdi + 0x38]
test dword [rcx + 0x290], 0x100
je 0x140016f07
lea r9, [rbp + 0x160]
mov edx, 0x400
lea r8, str.OnDefaultDeviceChanged_BT_USB_sz_inst_ID__s_n
lea rcx, [rbp + 0x260]
call fcn.140002050
lea rcx, [rbp + 0x260]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rdi + 0x38]
add rcx, 0x410
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r8, qword [rdi + 0x38]
movabs rsi, 0xfe03f80fe03f81
mov rax, rsi
mov r9, qword [r8 + 0x3f8]
mov rcx, qword [r8 + 0x400]
sub rcx, r9
imul rcx
sar rdx, 1
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x140016f9f
mov rbx, r15
nop dword [rax + rax]
lea rcx, [rbx + r9]
lea rdx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
jne 0x14001702e
mov r8, qword [rdi + 0x38]
mov rax, rsi
inc r15
add rbx, 0x204
mov r9, qword [r8 + 0x3f8]
mov rcx, qword [r8 + 0x400]
sub rcx, r9
imul rcx
sar rdx, 1
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r15, rdx
jb 0x140016f50
lea r9, [r8 + 0x3f8]
mov rdx, qword [r9 + 8]
cmp qword [r9 + 0x10], rdx
je 0x140017021
lea rax, [rsp + 0x50]
mov ecx, 4
nop word [rax + rax]
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rax]
lea rax, [rax + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm1, xmmword [rax - 0x70]
movups xmmword [rdx - 0x70], xmm1
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rdx - 0x60], xmm0
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rdx - 0x50], xmm1
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rdx - 0x40], xmm0
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rdx - 0x30], xmm1
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rdx - 0x20], xmm0
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rdx - 0x10], xmm1
sub rcx, 1
jne 0x140016fc0
mov eax, dword [rax]
mov dword [rdx], eax
add qword [r9 + 8], 0x204
jmp 0x14001702e
lea r8, [rsp + 0x50]
mov rcx, r9
call fcn.14000ac50
mov rcx, qword [rdi + 0x38]
add rcx, 0x410
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rdi + 0x38]
mov rcx, qword [rcx + 0x550]
call qword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
mov rcx, qword [rbp + 0xa60]
xor rcx, rsp
call fcn.140019840
mov rbx, qword [rsp + 0xbc0]
add rsp, 0xb70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x8007000e
call fcn.14000a7f0
int3