Function at 0x1400105e0
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 [0x14004b008]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov rax, qword [rbp + 0x418]
or rcx, 0xffffffffffffffff
mov rsi, qword [rbp + 0x410]
mov r13d, r8d
mov qword [rbp - 0x68], rax
mov r12, rdx
mov rax, qword [rbp + 0x420]
mov qword [rbp - 0x70], rax
lea edi, [rcx + 3]
xor eax, eax
movsxd rbx, r9d
mov dword [rsp + 0x50], r8d
mov r14d, eax
mov qword [rsp + 0x68], rdx
mov r15d, eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x4c], eax
test r9d, r9d
jne 0x140010664
lea eax, [rcx + 4]
jmp 0x140010709
mov eax, 0x18
mov qword [rsp + 0x58], rbx
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.14001928c
mov qword [rsp + 0x40], rax
mov r8, rax
test rax, rax
je 0x140010707
test ebx, ebx
jle 0x14001076f
mov rcx, qword [rsi]
cmp word [rcx], 0x3d
jne 0x140010745
add rcx, rdi
cmp word [rcx], r14w
je 0x140010745
mov qword [rsp + 0x28], r14
lea r9, [rsp + 0x48]
mov r8d, 1
mov qword [rsp + 0x20], r12
lea rdx, [rbp + 0x200]
call qword [sym.imp.SETUPAPI.dll_SetupDiClassGuidsFromNameExW]
test eax, eax
jne 0x1400106dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400106e7
mov edx, dword [rsp + 0x48]
test edx, edx
jne 0x140010733
xor edi, edi
or rbx, 0xffffffffffffffff
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
call fcn.140019284
cmp rbx, 0xffffffffffffffff
je 0x140010707
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, edi
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.140019260
mov rbx, qword [rsp + 0x4f0]
add rsp, 0x4b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r8, qword [rsp + 0x40]
mov r9d, 1
mov dword [rsp + 0x4c], r9d
jmp 0x14001074c
mov edx, dword [rsp + 0x48]
mov r9d, r14d
cmp ebx, r9d
jle 0x140010776
mov eax, r9d
mov rcx, qword [rsi + rax*8]
cmp word [rcx], 0x2a
jne 0x14001077c
cmp word [rcx + 2], r14w
jne 0x14001077c
inc r9d
mov dword [rsp + 0x4c], r9d
jmp 0x140010776
mov edx, dword [rsp + 0x48]
mov r9d, r14d
mov r15d, 1
mov ecx, r9d
mov qword [rsp + 0x70], rcx
mov edi, r9d
cmp rcx, rbx
jge 0x140010831
mov r12, qword [rsp + 0x58]
lea rbx, [rcx + 1]
lea rbx, [rcx + rbx*2]
xor r13d, r13d
lea rbx, [r8 + rbx*8]
mov rax, qword [rsi + rdi*8]
mov dword [rbp - 0x78], r13d
mov qword [rbp - 0x80], r13
mov qword [rsp + 0x78], rax
cmp word [rax], 0x40
jne 0x1400107d0
mov rcx, rax
mov dword [rbp - 0x78], 1
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [rsp + 0x78], rax
cmp word [rax], 0x27
mov rcx, rax
jne 0x1400107e6
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [rsp + 0x78], rax
jmp 0x1400107f4
mov edx, 0x2a
call fcn.14001bed8
mov qword [rbp - 0x80], rax
movups xmm0, xmmword [rsp + 0x78]
movsd xmm1, qword [rbp - 0x78]
movups xmmword [rbx - 0x10], xmm0
movsd qword [rbx], xmm1
cmp qword [rbx - 8], r13
jne 0x140010811
cmp dword [rbx], r13d
jne 0x140010817
mov r14d, 1
inc rdi
add rbx, 0x18
cmp rdi, r12
jl 0x1400107a4
mov edx, dword [rsp + 0x48]
mov r12, qword [rsp + 0x68]
mov r13d, dword [rsp + 0x50]
test r14d, r14d
jne 0x14001085d
test r15d, r15d
jne 0x14001085d
test edx, edx
lea rcx, [rbp + 0x200]
mov eax, 0
mov r8, r12
cmove rcx, rax
xor r9d, r9d
xor edx, edx
call qword [sym.imp.SETUPAPI.dll_SetupDiCreateDeviceInfoListExW]
jmp 0x140010898
mov eax, 0
lea rcx, [rbp + 0x200]
test edx, edx
mov qword [rsp + 0x30], rax
mov r9d, 4
mov qword [rsp + 0x28], r12
cmovne r9d, eax
mov qword [rsp + 0x20], rax
or r9d, r13d
test edx, edx
cmove rcx, rax
xor r8d, r8d
xor edx, edx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsExW]
mov qword [rsp + 0x60], rax
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400108bb
lea rcx, str.Fail_to_SetupDiGetClassDevsEx___or_SetupDiCreateDeviceInfoListEx___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea edi, [rbx + 3]
jmp 0x1400106eb
mov rdi, qword [rsp + 0x58]
mov r13, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x40]
cmp r13, rdi
jge 0x14001091b
mov r12, qword [rsp + 0x60]
lea rax, [r13*2]
add rax, r13
sub rdi, r13
lea rbx, [rsi + rax*8]
xor esi, esi
cmp dword [rbx + 0x10], esi
je 0x140010904
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 0x1400108e8
mov rsi, qword [rsp + 0x40]
mov rbx, r12
mov rdi, qword [rsp + 0x58]
lea rdx, [rbp - 0x50]
mov dword [rbp - 0x50], 0x230
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInfoListDetailW]
test eax, eax
jne 0x14001094a
lea rcx, str.Fail_to_SetupDiGetDeviceInfoListDetail___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edi, 2
jmp 0x1400106f0
xor eax, eax
mov dword [rbp + 0x1e0], 0x20
lea r8, [rbp + 0x1e0]
mov dword [rsp + 0x50], eax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x140010ba1
xor esi, esi
mov eax, esi
test r15d, r15d
cmove eax, r14d
cdqe
mov qword [rbp - 0x60], rax
test rax, rax
je 0x140010b39
mov r15d, dword [rsp + 0x4c]
mov r12d, esi
mov qword [rsp + 0x68], r13
cmp r13, rdi
jge 0x140010b6f
mov rdi, qword [rsp + 0x40]
lea r13, [r13 + r13*2]
lea r13, [r13 + 2]
lea r13, [rdi + r13*8]
test r12d, r12d
jne 0x140010b39
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 0x1400109ef
mov word [rbp + 0x210], si
cmp dword [r13], 0
je 0x140010a20
movsxd rax, r15d
lea rcx, [rax + rax*2]
lea rdx, [rdi + rcx*8]
lea rcx, [rbp + 0x210]
call fcn.140010430
test eax, eax
je 0x140010b15
mov r12d, 1
jmp 0x140010b15
mov r8d, 1
lea rdx, [rbp + 0x1e0]
mov rcx, rbx
call fcn.1400101b0
mov r8d, 2
lea rdx, [rbp + 0x1e0]
mov rcx, rbx
mov r14, rax
call fcn.1400101b0
mov rsi, rax
mov rbx, r14
test r14, r14
je 0x140010a8e
cmp qword [r14], 0
je 0x140010a8e
movsxd rcx, r15d
lea rdx, [rcx + rcx*2]
lea rdi, [rdi + rdx*8]
nop dword [rax]
mov rcx, qword [rbx]
mov rdx, rdi
call fcn.140010430
test eax, eax
jne 0x140010acb
add rbx, 8
cmp qword [rbx], 0
jne 0x140010a70
mov rdi, qword [rsp + 0x40]
mov rbx, rsi
test rsi, rsi
je 0x140010ad1
cmp qword [rsi], 0
je 0x140010ad1
movsxd rax, r15d
lea rcx, [rax + rax*2]
lea rdi, [rdi + rcx*8]
nop word [rax + rax]
mov rcx, qword [rbx]
mov rdx, rdi
call fcn.140010430
test eax, eax
jne 0x140010acb
add rbx, 8
cmp qword [rbx], 0
jne 0x140010ab0
jmp 0x140010ad1
mov r12d, 1
test r14, r14
je 0x140010aed
mov rcx, qword [r14 - 8]
test rcx, rcx
je 0x140010ae4
call fcn.140019284
lea rcx, [r14 - 8]
call fcn.140019284
test rsi, rsi
je 0x140010b09
mov rcx, qword [rsi - 8]
test rcx, rcx
je 0x140010b00
call fcn.140019284
lea rcx, [rsi - 8]
call fcn.140019284
mov rbx, qword [rsp + 0x60]
xor esi, esi
mov rdi, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
inc r15d
inc rcx
add r13, 0x18
mov qword [rsp + 0x68], rcx
cmp rcx, qword [rsp + 0x58]
jl 0x1400109b6
test r12d, r12d
je 0x140010b6a
lea rcx, str._match:_n_n
mov dword [0x14004d9b8], 1
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov r9, qword [rbp - 0x70]
lea rdx, [rbp + 0x1e0]
mov r8d, dword [rsp + 0x50]
mov rcx, rbx
call qword [rbp - 0x68]
test eax, eax
jne 0x140010baa
mov rdi, qword [rsp + 0x58]
mov eax, dword [rsp + 0x50]
lea r8, [rbp + 0x1e0]
inc eax
mov rcx, rbx
mov edx, eax
mov dword [rsp + 0x50], eax
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
mov r13, qword [rsp + 0x70]
test eax, eax
mov rax, qword [rbp - 0x60]
jne 0x140010985
mov rsi, qword [rsp + 0x40]
xor eax, eax
mov edi, eax
jmp 0x1400106f0
mov edi, eax
jmp 0x1400106eb