Function at 0x1400212d0
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 [0x14007d038]
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.140028230
mov rax, qword [rdi + 0x38]
xor r15d, r15d
mov rbx, rax
mov rsi, 0xffffffffffffffff
test rax, rax
je 0x1400214dc
cmp r13d, 1
jne 0x1400214dc
cmp r12d, r13d
jne 0x1400214dc
test dword [rax + 0x298], 0x100
je 0x140021391
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.140024d1c
mov rbx, rax
test r14, r14
je 0x1400214ba
mov rcx, rsi
inc rcx
cmp word [r14 + rcx*2], r15w
jne 0x1400213b6
mov r9, rbx
cmp ecx, 0x80
jle 0x1400213d2
mov edx, 0x80
jmp 0x1400213d8
lea eax, [rcx + 1]
movsxd rdx, eax
mov r8, r14
mov rcx, r9
call fcn.14003c608
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 0x140021485
mov ecx, dword [rdi + 0x30]
test rcx, rcx
jne 0x140021415
mov rcx, r15
jmp 0x14002142f
xor edx, edx
mov rax, rsi
div rcx
cmp rax, 0x18
jb 0x1400218a6
lea rcx, [rcx + rcx*2]
shl rcx, 3
add rcx, 8
call fcn.14003c8d4
test rax, rax
je 0x1400218a6
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 0x140021485
nop dword [rax]
mov rax, qword [rdi + 0x28]
mov qword [rdx], rax
mov qword [rdi + 0x28], rdx
sub rdx, 0x18
sub r8d, 1
jns 0x140021470
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 0x1400214ad
mov qword [rax], rcx
jmp 0x1400214b1
mov qword [rdi + 8], rcx
mov r12d, dword [rsp + 0x30]
mov qword [rdi + 0x10], rcx
mov rbx, qword [rdi + 0x38]
mov rcx, qword [rbx + 0x590]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0x598]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rbx, qword [rdi + 0x38]
test rbx, rbx
je 0x14002187a
cmp r13d, 1
ja 0x14002187a
cmp r12d, 1
jne 0x14002187a
xor edx, edx
lea rcx, [rbp + 0x260]
mov r8d, 0x400
call fcn.140028230
test dword [rbx + 0x298], 0x100
je 0x140021566
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, [0x140070048]
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
mov rbx, rax
test rax, rax
jne 0x140021593
lea rdx, [0x140070190]
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
mov rbx, rax
jmp 0x140021597
add rbx, 4
cmp qword [rdi + 0x38], r15
je 0x14002187a
test rbx, rbx
je 0x14002187a
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x204
call fcn.140028230
mov rdx, rbx
call fcn.140020ce0
xor edx, edx
lea rcx, [rbp + 0x160]
mov r8d, 0x100
mov r14d, eax
call fcn.140028230
cmp r14d, esi
je 0x14002187a
mov r9, rbx
lea r8, [0x140068228]
mov edx, 0x100
lea rcx, [rsp + 0x50]
call fcn.140002050
mov rax, qword [rdi + 0x38]
mov dword [rbp + 0x50], r14d
cmp dword [rax + 0x278], r15d
je 0x140021842
mov r9d, r14d
lea r8, [rbp + 0x160]
mov rdx, rbx
mov rcx, rax
call fcn.14001bf90
lea rax, [rbp + 0x160]
nop
inc rsi
cmp word [rax + rsi*2], r15w
jne 0x140021630
test rsi, rsi
je 0x14002187a
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, [0x140068228]
mov r14, rax
lea rcx, [rbp + 0x54]
call fcn.140002050
test rbx, rbx
jne 0x1400216b7
test rsi, rsi
jne 0x1400216b7
test r14, r14
je 0x14002187a
mov rcx, qword [rdi + 0x38]
test dword [rcx + 0x298], 0x100
je 0x1400216f7
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, 0x420
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r8, qword [rdi + 0x38]
movabs rsi, 0xfe03f80fe03f81
mov rax, rsi
mov r9, qword [r8 + 0x408]
mov rcx, qword [r8 + 0x410]
sub rcx, r9
imul rcx
sar rdx, 1
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x14002178f
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 0x14002181e
mov r8, qword [rdi + 0x38]
mov rax, rsi
inc r15
add rbx, 0x204
mov r9, qword [r8 + 0x408]
mov rcx, qword [r8 + 0x410]
sub rcx, r9
imul rcx
sar rdx, 1
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r15, rdx
jb 0x140021740
lea r9, [r8 + 0x408]
mov rdx, qword [r9 + 8]
cmp qword [r9 + 0x10], rdx
je 0x140021811
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 0x1400217b0
mov eax, dword [rax]
mov dword [rdx], eax
add qword [r9 + 8], 0x204
jmp 0x14002181e
lea r8, [rsp + 0x50]
mov rcx, r9
call fcn.140014100
mov rcx, qword [rdi + 0x38]
add rcx, 0x420
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rdi + 0x38]
mov rcx, qword [rcx + 0x560]
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x14002187a
test dword [rax + 0x298], 0x100
je 0x14002187a
lea r9, [rbp + 0x160]
mov edx, 0x400
lea r8, str.OnDefaultDeviceChanged___s__not_need_check_if_BT_USB_HWID_n
lea rcx, [rbp + 0x260]
call fcn.140002050
lea rcx, [rbp + 0x260]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
mov rcx, qword [rbp + 0xa60]
xor rcx, rsp
call fcn.140024cf0
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.14000b010
int3