Function at 0x1400167e0
Capabilities:
Print debug messages

Disassembly:
push rbx
push rdi
sub rsp, 0x748
mov rax, qword [0x14006c038]
xor rax, rsp
mov qword [rsp + 0x730], rax
mov rbx, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x330]
mov r8d, 0x400
call fcn.14001cd80
mov rax, qword [rdi + 0x38]
test dword [rax + 0x290], 0x100
je 0x14001685c
test rbx, rbx
lea r9, str.NULL_pwstrDeviceId
lea r8, str.OnDeviceAdded__s_n
mov edx, 0x400
cmovne r9, rbx
lea rcx, [rsp + 0x330]
call fcn.140002050
lea rcx, [rsp + 0x330]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov qword [rsp + 0x770], rbp
lea rdx, [0x1400623d0]
mov rcx, rbx
mov qword [rsp + 0x740], rsi
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp qword [rdi + 0x38], 0
mov rbx, rax
je 0x140016aa9
test rax, rax
je 0x140016aa9
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x204
call fcn.14001cd80
add rbx, 4
mov rdx, rbx
call fcn.140016510
xor edx, edx
lea rcx, [rsp + 0x230]
mov r8d, 0x100
mov esi, eax
call fcn.14001cd80
cmp esi, 0xffffffff
je 0x140016aa9
mov r9, rbx
lea r8, [0x14005b1b8]
mov edx, 0x100
lea rcx, [rsp + 0x20]
call fcn.140002050
mov rcx, qword [rdi + 0x38]
lea r8, [rsp + 0x230]
mov r9d, esi
mov dword [rsp + 0x120], esi
mov rdx, rbx
call fcn.140012510
lea rcx, [rsp + 0x230]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140016920
test rax, rax
je 0x140016aa9
lea rdx, str.USB_
lea rcx, [rsp + 0x230]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
lea rdx, str.BTHHFENUM_
mov rbx, rax
lea rcx, [rsp + 0x230]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
lea rdx, str.BTHENUM_
mov rbp, rax
lea rcx, [rsp + 0x230]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
lea r9, [rsp + 0x230]
mov edx, 0x100
lea r8, [0x14005b1b8]
mov rsi, rax
lea rcx, [rsp + 0x124]
call fcn.140002050
test rbx, rbx
jne 0x1400169af
test rbp, rbp
jne 0x1400169af
test rsi, rsi
je 0x140016aa9
lea r9, [rsp + 0x230]
mov edx, 0x400
lea r8, str.OnDeviceAdded_BT_USB__s_n
lea rcx, [rsp + 0x330]
call fcn.140002050
lea rcx, [rsp + 0x330]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rdi + 0x38]
cmp dword [rcx + 0x278], 0
je 0x140016aba
add rcx, 0x410
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rdi + 0x38]
add rcx, 0x3f8
mov rdx, qword [rcx + 8]
cmp qword [rcx + 0x10], rdx
je 0x140016a81
lea rax, [rsp + 0x20]
mov r8d, 4
nop dword [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 r8, 1
jne 0x140016a20
mov eax, dword [rax]
mov dword [rdx], eax
add qword [rcx + 8], 0x204
jmp 0x140016a8b
lea r8, [rsp + 0x20]
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]
jmp 0x140016ab4
mov rcx, qword [rdi + 0x38]
mov rcx, qword [rcx + 0x590]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rsi, qword [rsp + 0x740]
xor eax, eax
mov rbp, qword [rsp + 0x770]
mov rcx, qword [rsp + 0x730]
xor rcx, rsp
call fcn.140019840
add rsp, 0x748
pop rdi
pop rbx
ret