Function at 0x140011220
Capabilities:
Print debug messages

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3a8]
sub rsp, 0x4a8
mov rax, qword [0x140040468]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rax, qword [rbp + 0x410]
movsxd rbx, r8d
mov dword [rsp + 0x58], edx
mov qword [rsp + 0x78], rax
mov rax, qword [rbp + 0x418]
or rsi, 0xffffffffffffffff
mov qword [rbp - 0x80], rax
xor eax, eax
mov rdi, rcx
mov r14d, eax
mov r15d, eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x68], rcx
mov eax, 0x18
mov r13, r9
mov qword [rsp + 0x70], rbx
mul rbx
cmovo rax, rsi
mov rcx, rax
call fcn.14001b224
mov rdx, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140011750
test ebx, ebx
jle 0x14001134f
mov rcx, qword [r13]
cmp word [rcx], 0x3d
jne 0x140011328
add rcx, 2
cmp word [rcx], r14w
je 0x140011328
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 0x140011309
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140011727
cmp dword [rsp + 0x50], esi
jne 0x140011316
mov ebx, esi
jmp 0x14001172c
mov rdx, qword [rsp + 0x48]
mov r8d, 1
mov dword [rsp + 0x44], r8d
jmp 0x14001132b
mov r8d, r14d
cmp ebx, r8d
jle 0x140011352
movsxd rax, r8d
mov rcx, qword [r13 + rax*8]
cmp word [rcx], 0x2a
jne 0x14001135d
cmp word [rcx + 2], r14w
jne 0x14001135d
inc r8d
mov dword [rsp + 0x44], r8d
jmp 0x140011352
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 0x140011403
lea rax, [rax + rax*2]
mov r15, rbx
lea rdi, [rdx + rax*8 + 0x10]
nop dword [rax]
mov rbx, qword [r13 + rsi*8]
xor eax, eax
cmp word [rbx], 0x40
mov dword [rbp - 0x68], eax
mov r12d, eax
jne 0x1400113a6
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 0x1400113ba
call qword [sym.imp.USER32.dll_CharNextW]
mov rbx, rax
jmp 0x1400113c7
mov edx, 0x2a
call fcn.14001a250
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 0x1400113e2
cmp eax, 0
jne 0x1400113e8
mov r14d, 1
inc rsi
add rdi, 0x18
cmp rsi, r15
jl 0x140011380
mov r15d, dword [rsp + 0x40]
test r14d, r14d
jne 0x14001142d
mov rdi, qword [rsp + 0x68]
test r15d, r15d
jne 0x14001142d
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 0x140011471
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 + 0x68]
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 0x140011494
lea rcx, str.Fail_to_SetupDiGetClassDevsEx___or_SetupDiCreateDeviceInfoListEx___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ebx, [rdi + 3]
jmp 0x140011730
mov r13, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x60]
mov r12, qword [rsp + 0x48]
cmp rbx, r13
jge 0x1400114f3
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
cmp dword [rbx + 0x10], r12d
je 0x1400114dd
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 0x1400114c0
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 0x140011522
lea rcx, str.Fail_to_SetupDiGetDeviceInfoListDetail___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ebx, 2
jmp 0x140011735
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 + 0x68], rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x14001171d
nop
test rsi, rsi
je 0x1400116b3
mov r12d, dword [rsp + 0x44]
xor eax, eax
mov r15, rbx
mov esi, eax
cmp rbx, r13
jge 0x1400116ea
mov r14, qword [rsp + 0x48]
lea rax, [rbx + rbx*2]
lea r13, [r14 + rax*8 + 0x10]
nop dword [rax]
test esi, esi
jne 0x1400116b3
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 0x1400115ca
xor eax, eax
mov word [rbp + 0x200], ax
cmp dword [r13], 0
je 0x1400115fa
movsxd rax, r12d
lea rcx, [rax + rax*2]
lea rdx, [r14 + rcx*8]
lea rcx, [rbp + 0x200]
call fcn.140010e90
test eax, eax
je 0x14001169a
mov esi, 1
jmp 0x14001169a
lea rdx, [rbp + 0x1d0]
mov r8d, 1
mov rcx, rdi
call fcn.140010c00
lea rdx, [rbp + 0x1d0]
mov r8d, 2
mov rcx, rdi
mov rbx, rax
call fcn.140010c00
movsxd rcx, r12d
lea rdx, [rcx + rcx*2]
mov rcx, rbx
mov rdi, rax
lea r14, [r14 + rdx*8]
mov rdx, r14
call fcn.140011040
test eax, eax
jne 0x140011653
mov rdx, r14
mov rcx, rdi
call fcn.140011040
test eax, eax
je 0x140011658
mov esi, 1
test rbx, rbx
je 0x140011674
mov rcx, qword [rbx - 8]
test rcx, rcx
je 0x14001166b
call fcn.14001a248
lea rcx, [rbx - 8]
call fcn.14001a248
test rdi, rdi
je 0x140011690
mov rcx, qword [rdi - 8]
test rcx, rcx
je 0x140011687
call fcn.14001a248
lea rcx, [rdi - 8]
call fcn.14001a248
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
inc r15
inc r12d
add r13, 0x18
cmp r15, qword [rsp + 0x70]
jl 0x140011590
test esi, esi
je 0x1400116e5
lea rcx, str._match:_n_n
mov dword [0x140043748], 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 0x140011723
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 + 0x70]
mov rsi, qword [rsp + 0x68]
test eax, eax
jne 0x140011560
mov r12, qword [rsp + 0x48]
xor eax, eax
mov ebx, eax
jmp 0x140011735
mov ebx, eax
jmp 0x140011730
mov ebx, 2
or rdi, 0xffffffffffffffff
mov r12, qword [rsp + 0x48]
mov rcx, r12
call fcn.14001a248
cmp rdi, 0xffffffffffffffff
je 0x14001174c
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, ebx
jmp 0x140011755
mov eax, 2
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140019650
add rsp, 0x4a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret