Function at 0x140020fb0
Capabilities:
Print debug messages

Disassembly:
push rbx
push rdi
sub rsp, 0x748
mov rax, qword [0x14007d038]
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.140028230
mov rax, qword [rdi + 0x38]
test dword [rax + 0x298], 0x100
je 0x14002102c
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, [0x140070048]
mov rcx, rbx
mov qword [rsp + 0x740], rsi
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp qword [rdi + 0x38], 0
mov rbx, rax
je 0x140021289
test rax, rax
je 0x140021289
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x204
call fcn.140028230
add rbx, 4
mov rdx, rbx
call fcn.140020ce0
xor edx, edx
lea rcx, [rsp + 0x230]
mov r8d, 0x100
mov esi, eax
call fcn.140028230
cmp esi, 0xffffffff
je 0x140021289
mov r9, rbx
lea r8, [0x140068228]
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.14001bf90
lea rcx, [rsp + 0x230]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400210f0
test rax, rax
je 0x140021289
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, [0x140068228]
mov rsi, rax
lea rcx, [rsp + 0x124]
call fcn.140002050
test rbx, rbx
jne 0x14002117f
test rbp, rbp
jne 0x14002117f
test rsi, rsi
je 0x140021289
mov rcx, qword [rdi + 0x38]
test dword [rcx + 0x298], 0x100
je 0x1400211c2
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 0x14002129a
add rcx, 0x420
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rdi + 0x38]
add rcx, 0x408
mov rdx, qword [rcx + 8]
cmp qword [rcx + 0x10], rdx
je 0x140021261
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 0x140021200
mov eax, dword [rax]
mov dword [rdx], eax
add qword [rcx + 8], 0x204
jmp 0x14002126b
lea r8, [rsp + 0x20]
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]
jmp 0x140021294
mov rcx, qword [rdi + 0x38]
mov rcx, qword [rcx + 0x5a0]
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.140024cf0
add rsp, 0x748
pop rdi
pop rbx
ret