Function at 0x140010960
Capabilities:
Print debug messages

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rax, qword [0x14003e468]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rax, qword [rbp + 0x410]
mov rdi, rcx
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rbp + 0x418]
lea rcx, str.EnumerateDevices_Start_n_n
mov r13, r9
movsxd rbx, r8d
mov dword [rsp + 0x58], edx
mov qword [rbp - 0x80], rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
or rsi, 0xffffffffffffffff
mov r14d, eax
mov r15d, eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x54], 2
test ebx, ebx
jne 0x1400109ed
lea eax, [rsi + 4]
jmp 0x140010ab3
mov eax, 0x18
mov qword [rsp + 0x4a8], r12
mov qword [rsp + 0x68], rbx
mul rbx
cmovo rax, rsi
mov rcx, rax
call fcn.14001a3b4
mov rdx, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140010a9a
test ebx, ebx
jle 0x140010b0d
mov rcx, qword [r13]
cmp word [rcx], 0x3d
jne 0x140010ae6
add rcx, 2
cmp word [rcx], r14w
je 0x140010ae6
xor esi, esi
lea r9, [rsp + 0x50]
lea rdx, [rbp + 0x1f0]
lea r8d, [rsi + 1]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiClassGuidsFromNameExW]
test eax, eax
jne 0x140010a70
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140010a7a
cmp dword [rsp + 0x50], esi
jne 0x140010ad4
mov dword [rsp + 0x54], esi
or rdi, 0xffffffffffffffff
mov r12, qword [rsp + 0x48]
mov rcx, r12
call fcn.1400193d8
cmp rdi, 0xffffffffffffffff
je 0x140010a9a
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
lea rcx, str.EnumerateDevices_End_n_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [rsp + 0x54]
mov r12, qword [rsp + 0x4a8]
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.1400187e0
add rsp, 0x4b0
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rdx, qword [rsp + 0x48]
mov r8d, 1
mov dword [rsp + 0x44], r8d
jmp 0x140010ae9
mov r8d, r14d
cmp ebx, r8d
jle 0x140010b10
movsxd rax, r8d
mov rcx, qword [r13 + rax*8]
cmp word [rcx], 0x2a
jne 0x140010b1b
cmp word [rcx + 2], r14w
jne 0x140010b1b
inc r8d
mov dword [rsp + 0x44], r8d
jmp 0x140010b10
mov r8d, r14d
mov r15d, 1
mov dword [rsp + 0x40], r15d
movsxd rax, r8d
mov qword [rsp + 0x60], rax
mov rsi, rax
cmp rax, rbx
jge 0x140010bc3
lea rax, [rax + rax*2]
mov r15, rbx
lea rdi, [rdx + rax*8 + 0x10]
nop dword [rax + rax]
mov rbx, qword [r13 + rsi*8]
xor eax, eax
cmp word [rbx], 0x40
mov dword [rbp - 0x68], eax
mov r12d, eax
jne 0x140010b66
mov rcx, rbx
mov dword [rbp - 0x68], 1
call qword [sym.imp.USER32.dll_CharNextW]
mov rbx, rax
cmp word [rbx], 0x27
mov rcx, rbx
jne 0x140010b7a
call qword [sym.imp.USER32.dll_CharNextW]
mov rbx, rax
jmp 0x140010b87
mov edx, 0x2a
call fcn.1400193e0
mov r12, rax
mov rax, qword [rbp - 0x68]
mov qword [rdi - 0x10], rbx
mov qword [rdi - 8], r12
mov qword [rdi], rax
cmp qword [rdi - 8], 0
jne 0x140010ba2
cmp eax, 0
jne 0x140010ba8
mov r14d, 1
inc rsi
add rdi, 0x18
cmp rsi, r15
jl 0x140010b40
mov r15d, dword [rsp + 0x40]
test r14d, r14d
jne 0x140010bed
mov rdi, qword [rsp + 0x70]
test r15d, r15d
jne 0x140010bed
cmp dword [rsp + 0x50], r15d
mov eax, 0
lea rcx, [rbp + 0x1f0]
cmove rcx, rax
xor r9d, r9d
xor edx, edx
mov r8, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiCreateDeviceInfoListExW]
jmp 0x140010c31
mov eax, dword [rsp + 0x50]
mov edx, 0
mov r9d, 4
test eax, eax
mov qword [rsp + 0x30], rdx
lea rcx, [rbp + 0x1f0]
cmovne r9d, edx
or r9d, dword [rsp + 0x58]
test eax, eax
mov rax, qword [rsp + 0x70]
cmove rcx, rdx
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rdx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsExW]
mov rdi, rax
mov qword [rsp + 0x58], rax
cmp rax, 0xffffffffffffffff
jne 0x140010c51
lea rcx, str.Fail_to_SetupDiGetClassDevsEx___or_SetupDiCreateDeviceInfoListEx___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140010a7e
mov r13, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov r12, qword [rsp + 0x48]
cmp rbx, r13
jge 0x140010cb3
mov rsi, qword [rsp + 0x58]
lea rax, [rbx + rbx*2]
mov rdi, r13
sub rdi, qword [rsp + 0x60]
lea rbx, [r12 + rax*8]
xor r12d, r12d
nop dword [rax]
cmp dword [rbx + 0x10], r12d
je 0x140010c9d
mov rdx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], r12
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDeviceInfoW]
add rbx, 0x18
dec rdi
jne 0x140010c80
mov rbx, qword [rsp + 0x60]
mov r12, qword [rsp + 0x48]
mov rdi, rsi
lea rdx, [rbp - 0x60]
mov rcx, rdi
mov dword [rbp - 0x60], 0x230
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInfoListDetailW]
test eax, eax
jne 0x140010cdd
lea rcx, str.Fail_to_SetupDiGetDeviceInfoListDetail___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140010a83
mov eax, 0
test r15d, r15d
lea r8, [rbp + 0x1d0]
cmovne r14d, eax
mov rcx, rdi
xor edx, edx
movsxd rsi, r14d
mov dword [rbp + 0x1d0], 0x20
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x70], rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x140010edd
nop dword [rax]
test rsi, rsi
je 0x140010e73
mov r12d, dword [rsp + 0x44]
xor eax, eax
mov r15, rbx
mov esi, eax
cmp rbx, r13
jge 0x140010eaa
mov r14, qword [rsp + 0x48]
lea rax, [rbx + rbx*2]
lea r13, [r14 + rax*8 + 0x10]
nop dword [rax]
test esi, esi
jne 0x140010e73
mov rax, qword [rbp - 0x48]
mov ecx, dword [rbp + 0x1e4]
lea rdx, [rbp + 0x200]
xor r9d, r9d
mov r8d, 0xc8
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_CM_Get_Device_ID_ExW]
test eax, eax
je 0x140010d8a
xor eax, eax
mov word [rbp + 0x200], ax
cmp dword [r13], 0
je 0x140010dba
movsxd rax, r12d
lea rcx, [rax + rax*2]
lea rdx, [r14 + rcx*8]
lea rcx, [rbp + 0x200]
call fcn.1400105d0
test eax, eax
je 0x140010e5a
mov esi, 1
jmp 0x140010e5a
lea rdx, [rbp + 0x1d0]
mov r8d, 1
mov rcx, rdi
call fcn.140010340
lea rdx, [rbp + 0x1d0]
mov r8d, 2
mov rcx, rdi
mov rbx, rax
call fcn.140010340
movsxd rcx, r12d
lea rdx, [rcx + rcx*2]
mov rcx, rbx
mov rdi, rax
lea r14, [r14 + rdx*8]
mov rdx, r14
call fcn.140010780
test eax, eax
jne 0x140010e13
mov rdx, r14
mov rcx, rdi
call fcn.140010780
test eax, eax
je 0x140010e18
mov esi, 1
test rbx, rbx
je 0x140010e34
mov rcx, qword [rbx - 8]
test rcx, rcx
je 0x140010e2b
call fcn.1400193d8
lea rcx, [rbx - 8]
call fcn.1400193d8
test rdi, rdi
je 0x140010e50
mov rcx, qword [rdi - 8]
test rcx, rcx
je 0x140010e47
call fcn.1400193d8
lea rcx, [rdi - 8]
call fcn.1400193d8
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
inc r15
inc r12d
add r13, 0x18
cmp r15, qword [rsp + 0x68]
jl 0x140010d50
test esi, esi
je 0x140010ea5
lea rcx, str._match:_n_n
mov dword [0x140041748], 1
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov r9, qword [rbp - 0x80]
mov r8d, dword [rsp + 0x40]
lea rdx, [rbp + 0x1d0]
mov rcx, rdi
call qword [rsp + 0x78]
test eax, eax
jne 0x140010ee8
mov rbx, qword [rsp + 0x60]
mov eax, dword [rsp + 0x40]
lea r8, [rbp + 0x1d0]
mov rcx, rdi
inc eax
mov edx, eax
mov dword [rsp + 0x40], eax
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
mov r13, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
test eax, eax
jne 0x140010d20
mov r12, qword [rsp + 0x48]
xor eax, eax
mov dword [rsp + 0x54], eax
jmp 0x140010a83
mov dword [rsp + 0x54], eax
jmp 0x140010a7e