Function at 0x140010520
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rax, qword [0x140052010]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov rax, qword [rbp + 0x418]
xor r13d, r13d
mov rsi, qword [rbp + 0x410]
mov r12d, r8d
mov qword [rsp + 0x78], rax
mov r15, rdx
mov rax, qword [rbp + 0x420]
mov rcx, 0xffffffffffffffff
mov qword [rbp - 0x60], rax
mov r14d, r13d
movsxd rbx, r9d
mov dword [rsp + 0x40], r8d
mov qword [rsp + 0x70], rdx
mov dword [rsp + 0x50], r13d
mov dword [rsp + 0x54], r13d
mov edi, r13d
mov dword [rsp + 0x58], r13d
test r9d, r9d
jne 0x1400105ad
lea eax, [rcx + 4]
jmp 0x140010abb
mov eax, 0x18
mov qword [rsp + 0x60], rbx
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.1400198fc
mov qword [rsp + 0x48], rax
mov rdx, rax
test ebx, ebx
jle 0x14001065e
mov rcx, qword [rsi]
cmp word [rcx], 0x3d
jne 0x140010647
add rcx, 2
cmp word [rcx], r13w
je 0x140010647
mov qword [rsp + 0x28], r13
lea r9, [rsp + 0x54]
mov r8d, 1
mov qword [rsp + 0x20], r15
lea rdx, [rbp + 0x200]
call qword [sym.imp.SETUPAPI.dll_SetupDiClassGuidsFromNameExW]
test eax, eax
jne 0x14001061e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140010a8f
cmp dword [rsp + 0x54], r13d
jne 0x140010634
mov rcx, qword [rsp + 0x48]
call fcn.1400198f4
jmp 0x140010ab8
mov rdx, qword [rsp + 0x48]
mov edi, 1
mov dword [rsp + 0x58], edi
cmp ebx, 1
jle 0x14001065e
mov rcx, qword [rsi + rdi*8]
cmp word [rcx], 0x2a
jne 0x140010664
cmp word [rcx + 2], r13w
jne 0x140010664
inc edi
mov dword [rsp + 0x58], edi
mov r14d, 1
mov ecx, edi
mov qword [rbp - 0x80], rcx
cmp rcx, rbx
jge 0x14001071f
mov r15, qword [rsp + 0x60]
lea rbx, [rdi + 1]
lea rbx, [rdi + rbx*2]
mov r12d, r13d
lea rbx, [rdx + rbx*8]
nop word [rax + rax]
mov rax, qword [rsi + rdi*8]
mov dword [rbp - 0x68], r13d
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x78], rax
cmp word [rax], 0x40
jne 0x1400106ba
mov rcx, rax
mov dword [rbp - 0x68], 1
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [rbp - 0x78], rax
cmp word [rax], 0x27
mov rcx, rax
jne 0x1400106cf
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [rbp - 0x78], rax
jmp 0x1400106dd
mov edx, 0x2a
call fcn.14001b8f8
mov qword [rbp - 0x70], rax
movups xmm0, xmmword [rbp - 0x78]
movsd xmm1, qword [rbp - 0x68]
movups xmmword [rbx - 0x10], xmm0
movsd qword [rbx], xmm1
cmp qword [rbx - 8], r13
jne 0x1400106f9
cmp dword [rbx], r13d
jne 0x1400106ff
mov r12d, 1
inc rdi
add rbx, 0x18
cmp rdi, r15
jl 0x140010690
mov r15, qword [rsp + 0x70]
test r12d, r12d
mov dword [rsp + 0x50], r12d
mov r12d, dword [rsp + 0x40]
jne 0x140010747
test r14d, r14d
jne 0x140010747
cmp dword [rsp + 0x54], r13d
lea rcx, [rbp + 0x200]
mov r8, r15
mov rsi, r13
cmove rcx, r13
xor r9d, r9d
xor edx, edx
call qword [sym.imp.SETUPAPI.dll_SetupDiCreateDeviceInfoListExW]
jmp 0x140010784
mov eax, dword [rsp + 0x54]
lea rcx, [rbp + 0x200]
test eax, eax
mov qword [rsp + 0x30], r13
mov r9d, 4
mov qword [rsp + 0x28], r15
mov rsi, r13
mov qword [rsp + 0x20], r13
cmovne r9d, esi
or r9d, r12d
test eax, eax
cmove rcx, r13
xor r8d, r8d
xor edx, edx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsExW]
mov qword [rsp + 0x68], rax
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140010a96
mov rdi, qword [rsp + 0x60]
mov r13, qword [rbp - 0x80]
mov r15, qword [rsp + 0x48]
cmp r13, rdi
jge 0x1400107ef
mov r12, qword [rsp + 0x68]
lea rax, [r13*2]
add rax, r13
sub rdi, r13
lea rbx, [r15 + rax*8]
cmp dword [rbx + 0x10], 0
je 0x1400107dd
mov rdx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDeviceInfoW]
add rbx, 0x18
sub rdi, 1
jne 0x1400107c0
mov rdi, qword [rsp + 0x60]
mov rbx, r12
lea rdx, [rbp - 0x50]
mov dword [rbp - 0x50], 0x230
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInfoListDetailW]
test eax, eax
je 0x140010a9b
mov r12d, dword [rsp + 0x50]
lea r8, [rbp + 0x1e0]
test r14d, r14d
mov dword [rbp + 0x1e0], 0x20
mov rcx, rbx
mov dword [rsp + 0x40], esi
cmovne r12d, esi
mov r14d, esi
xor edx, edx
mov dword [rsp + 0x50], r12d
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x140010a6e
test r12d, r12d
je 0x140010a08
mov r15d, dword [rsp + 0x58]
mov r12d, esi
mov qword [rsp + 0x70], r13
cmp r13, rdi
jge 0x140010a3d
mov rdi, qword [rsp + 0x48]
lea r13, [r13 + r13*2]
lea r13, [r13 + 2]
lea r13, [rdi + r13*8]
nop dword [rax + rax]
test r12d, r12d
jne 0x140010a03
mov rax, qword [rbp - 0x38]
lea rdx, [rbp + 0x210]
mov ecx, dword [rbp + 0x1f4]
xor r9d, r9d
mov r8d, 0xc8
mov qword [rsp + 0x20], rax
call qword [sym.imp.CFGMGR32.dll_CM_Get_Device_ID_ExW]
test eax, eax
je 0x1400108b9
mov word [rbp + 0x210], si
cmp dword [r13], 0
je 0x1400108ea
movsxd rax, r15d
lea rcx, [rax + rax*2]
lea rdx, [rdi + rcx*8]
lea rcx, [rbp + 0x210]
call fcn.140010370
test eax, eax
je 0x1400109d8
mov r12d, 1
jmp 0x1400109d8
mov r8d, 1
lea rdx, [rbp + 0x1e0]
mov rcx, rbx
call fcn.140010130
mov r8d, 2
lea rdx, [rbp + 0x1e0]
mov rcx, rbx
mov r14, rax
call fcn.140010130
mov rsi, rax
mov rbx, r14
test r14, r14
je 0x140010953
mov rcx, qword [r14]
test rcx, rcx
je 0x140010953
movsxd rdx, r15d
lea r8, [rdx + rdx*2]
lea rdi, [rdi + r8*8]
mov rdx, rdi
call fcn.140010370
test eax, eax
jne 0x14001098e
mov rcx, qword [rbx + 8]
add rbx, 8
test rcx, rcx
jne 0x140010935
mov rdi, qword [rsp + 0x48]
mov rbx, rsi
test rsi, rsi
je 0x140010994
mov rax, qword [rsi]
test rax, rax
je 0x140010994
movsxd rcx, r15d
lea rdx, [rcx + rcx*2]
lea rdi, [rdi + rdx*8]
nop
mov rdx, rdi
mov rcx, rax
call fcn.140010370
test eax, eax
jne 0x14001098e
mov rax, qword [rbx + 8]
add rbx, 8
test rax, rax
jne 0x140010970
jmp 0x140010994
mov r12d, 1
test r14, r14
je 0x1400109b0
mov rcx, qword [r14 - 8]
test rcx, rcx
je 0x1400109a7
call fcn.1400198f4
lea rcx, [r14 - 8]
call fcn.1400198f4
test rsi, rsi
je 0x1400109cc
mov rcx, qword [rsi - 8]
test rcx, rcx
je 0x1400109c3
call fcn.1400198f4
lea rcx, [rsi - 8]
call fcn.1400198f4
mov rbx, qword [rsp + 0x68]
xor esi, esi
mov rdi, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
inc r15d
inc rcx
add r13, 0x18
mov qword [rsp + 0x70], rcx
cmp rcx, qword [rsp + 0x60]
jl 0x140010880
mov r14d, dword [rsp + 0x40]
test r12d, r12d
je 0x140010a38
jmp 0x140010a08
mov r14d, dword [rsp + 0x40]
lea rcx, str._match:_n_n
mov dword [0x1400554a8], 1
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov r9, qword [rbp - 0x60]
lea rdx, [rbp + 0x1e0]
mov r8d, r14d
mov rcx, rbx
call qword [rsp + 0x78]
test eax, eax
jne 0x140010a80
mov rdi, qword [rsp + 0x60]
inc r14d
lea r8, [rbp + 0x1e0]
mov edx, r14d
mov dword [rsp + 0x40], r14d
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
mov r13, qword [rbp - 0x80]
mov r12d, dword [rsp + 0x50]
test eax, eax
jne 0x140010847
mov r15, qword [rsp + 0x48]
mov rcx, r15
mov qword [rsp + 0x78], rsi
call fcn.1400198f4
mov r13, rsi
jmp 0x140010aaf
mov rcx, qword [rsp + 0x48]
mov r13d, eax
call fcn.1400198f4
jmp 0x140010aaf
mov rbx, 0xffffffffffffffff
mov r15, qword [rsp + 0x48]
mov rcx, r15
call fcn.1400198f4
mov r13d, 2
cmp rbx, 0xffffffffffffffff
je 0x140010ab8
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, r13d
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.1400198d0
mov rbx, qword [rsp + 0x4f0]
add rsp, 0x4b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret