Function at 0x140011b40
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 [0x140043468]
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 + 0x54], eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x40], 2
test ebx, ebx
jne 0x140011bcd
lea eax, [rsi + 4]
jmp 0x140011c93
mov eax, 0x18
mov qword [rsp + 0x4a8], r12
mov qword [rsp + 0x68], rbx
mul rbx
cmovo rax, rsi
mov rcx, rax
call fcn.14001c224
mov rdx, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140011c7a
test ebx, ebx
jle 0x140011ced
mov rcx, qword [r13]
cmp word [rcx], 0x3d
jne 0x140011cc6
add rcx, 2
cmp word [rcx], r14w
je 0x140011cc6
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 0x140011c50
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140011c5a
cmp dword [rsp + 0x50], esi
jne 0x140011cb4
mov dword [rsp + 0x40], esi
or rdi, 0xffffffffffffffff
mov r12, qword [rsp + 0x48]
mov rcx, r12
call fcn.14001b480
cmp rdi, 0xffffffffffffffff
je 0x140011c7a
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 + 0x40]
mov r12, qword [rsp + 0x4a8]
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.14001a650
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 0x140011cc9
mov r8d, r14d
cmp ebx, r8d
jle 0x140011cf0
movsxd rax, r8d
mov rcx, qword [r13 + rax*8]
cmp word [rcx], 0x2a
jne 0x140011cfb
cmp word [rcx + 2], r14w
jne 0x140011cfb
inc r8d
mov dword [rsp + 0x44], r8d
jmp 0x140011cf0
mov r8d, r14d
mov r15d, 1
mov dword [rsp + 0x54], r15d
movsxd rax, r8d
mov qword [rsp + 0x60], rax
mov rsi, rax
cmp rax, rbx
jge 0x140011da3
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 0x140011d46
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 0x140011d5a
call qword [sym.imp.USER32.dll_CharNextW]
mov rbx, rax
jmp 0x140011d67
mov edx, 0x2a
call fcn.14001b488
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 0x140011d82
cmp eax, 0
jne 0x140011d88
mov r14d, 1
inc rsi
add rdi, 0x18
cmp rsi, r15
jl 0x140011d20
mov r15d, dword [rsp + 0x54]
test r14d, r14d
jne 0x140011dcd
mov rdi, qword [rsp + 0x70]
test r15d, r15d
jne 0x140011dcd
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 0x140011e11
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
je 0x140011c5e
mov r13, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov r12, qword [rsp + 0x48]
cmp rbx, r13
jge 0x140011e83
mov rsi, qword [rsp + 0x58]
lea rax, [rbx + rbx*2]
mov rdi, r13
sub rdi, qword [rsp + 0x60]
xor r15d, r15d
lea rbx, [r12 + rax*8]
nop
cmp dword [rbx + 0x10], r15d
je 0x140011e6d
mov rdx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], r15
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDeviceInfoW]
add rbx, 0x18
dec rdi
jne 0x140011e50
mov r15d, dword [rsp + 0x54]
mov rbx, qword [rsp + 0x60]
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
je 0x140011c63
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 0x140012093
nop dword [rax + rax]
test rsi, rsi
je 0x140012033
mov r12d, dword [rsp + 0x44]
xor eax, eax
mov r15, rbx
mov esi, eax
cmp rbx, r13
jge 0x140012060
mov r14, qword [rsp + 0x48]
lea rax, [rbx + rbx*2]
lea r13, [r14 + rax*8 + 0x10]
nop dword [rax]
test esi, esi
jne 0x140012033
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 0x140011f4a
xor eax, eax
mov word [rbp + 0x200], ax
cmp dword [r13], 0
je 0x140011f7a
movsxd rax, r12d
lea rcx, [rax + rax*2]
lea rdx, [r14 + rcx*8]
lea rcx, [rbp + 0x200]
call fcn.1400117b0
test eax, eax
je 0x14001201a
mov esi, 1
jmp 0x14001201a
lea rdx, [rbp + 0x1d0]
mov r8d, 1
mov rcx, rdi
call fcn.140011520
lea rdx, [rbp + 0x1d0]
mov r8d, 2
mov rcx, rdi
mov rbx, rax
call fcn.140011520
movsxd rcx, r12d
lea rdx, [rcx + rcx*2]
mov rcx, rbx
mov rdi, rax
lea r14, [r14 + rdx*8]
mov rdx, r14
call fcn.140011960
test eax, eax
jne 0x140011fd3
mov rdx, r14
mov rcx, rdi
call fcn.140011960
test eax, eax
je 0x140011fd8
mov esi, 1
test rbx, rbx
je 0x140011ff4
mov rcx, qword [rbx - 8]
test rcx, rcx
je 0x140011feb
call fcn.14001b480
lea rcx, [rbx - 8]
call fcn.14001b480
test rdi, rdi
je 0x140012010
mov rcx, qword [rdi - 8]
test rcx, rcx
je 0x140012007
call fcn.14001b480
lea rcx, [rdi - 8]
call fcn.14001b480
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
inc r15
inc r12d
add r13, 0x18
cmp r15, qword [rsp + 0x68]
jl 0x140011f10
test esi, esi
je 0x14001205b
lea rcx, str._match:_n_n
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 0x14001209e
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 0x140011ee0
mov r12, qword [rsp + 0x48]
xor eax, eax
mov dword [rsp + 0x40], eax
jmp 0x140011c63
mov dword [rsp + 0x40], eax
jmp 0x140011c5e