Function at 0x140010570
Capabilities:
Print debug messages

Disassembly:
push rbp
push rbx
push rsi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rax, qword [0x14004d010]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov rax, qword [rbp + 0x418]
mov r13d, r8d
mov rsi, qword [rbp + 0x410]
mov r12, rdx
mov qword [rbp - 0x60], rax
mov rcx, 0xffffffffffffffff
mov rax, qword [rbp + 0x420]
mov qword [rbp - 0x68], rax
xor eax, eax
movsxd rbx, r9d
mov r14d, eax
mov dword [rsp + 0x58], r8d
mov r15d, eax
mov qword [rsp + 0x70], rdx
mov dword [rsp + 0x40], 2
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], eax
test r9d, r9d
jne 0x1400105f8
lea eax, [rcx + 4]
jmp 0x1400106bd
mov eax, 0x18
mov qword [rsp + 0x4f0], rdi
mul rbx
mov rdi, rbx
mov qword [rsp + 0x60], rbx
cmovo rax, rcx
mov rcx, rax
call fcn.140019b6c
mov qword [rsp + 0x48], rax
mov r8, rax
test rax, rax
je 0x1400106b1
test ebx, ebx
jle 0x14001071b
mov rcx, qword [rsi]
cmp word [rcx], 0x3d
jne 0x1400106f1
add rcx, 2
cmp word [rcx], r14w
je 0x1400106f1
mov qword [rsp + 0x28], r14
lea r9, [rsp + 0x50]
mov r8d, 1
mov qword [rsp + 0x20], r12
lea rdx, [rbp + 0x200]
call qword [sym.imp.SETUPAPI.dll_SetupDiClassGuidsFromNameExW]
test eax, eax
jne 0x140010681
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14001068e
mov edx, dword [rsp + 0x50]
test edx, edx
jne 0x1400106df
mov dword [rsp + 0x40], r14d
mov rbx, 0xffffffffffffffff
mov rsi, qword [rsp + 0x48]
mov rcx, rsi
call fcn.140019b64
cmp rbx, 0xffffffffffffffff
je 0x1400106b1
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [rsp + 0x40]
mov rdi, qword [rsp + 0x4f0]
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.140019b40
add rsp, 0x4b0
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret
mov r8, qword [rsp + 0x48]
mov r9d, 1
mov dword [rsp + 0x54], r9d
jmp 0x1400106f8
mov edx, dword [rsp + 0x50]
mov r9d, r14d
cmp ebx, r9d
jle 0x140010722
mov eax, r9d
mov rcx, qword [rsi + rax*8]
cmp word [rcx], 0x2a
jne 0x140010728
cmp word [rcx + 2], r14w
jne 0x140010728
inc r9d
mov dword [rsp + 0x54], r9d
jmp 0x140010722
mov edx, dword [rsp + 0x50]
mov r9d, r14d
mov r15d, 1
mov eax, r9d
mov qword [rsp + 0x78], rax
cmp rax, rbx
jge 0x1400107de
mov r12, qword [rsp + 0x60]
lea rbx, [rax + 1]
lea rbx, [rax + rbx*2]
mov edi, eax
lea rbx, [r8 + rbx*8]
xor r13d, r13d
nop
mov rax, qword [rsi + rdi*8]
mov dword [rbp - 0x70], r13d
mov qword [rbp - 0x78], r13
mov qword [rbp - 0x80], rax
cmp word [rax], 0x40
jne 0x14001077a
mov rcx, rax
mov dword [rbp - 0x70], 1
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [rbp - 0x80], rax
cmp word [rax], 0x27
mov rcx, rax
jne 0x14001078f
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [rbp - 0x80], rax
jmp 0x14001079d
mov edx, 0x2a
call fcn.14001b4e8
mov qword [rbp - 0x78], rax
movups xmm0, xmmword [rbp - 0x80]
movsd xmm1, qword [rbp - 0x70]
movups xmmword [rbx - 0x10], xmm0
movsd qword [rbx], xmm1
cmp qword [rbx - 8], r13
jne 0x1400107b9
cmp dword [rbx], r13d
jne 0x1400107bf
mov r14d, 1
inc rdi
add rbx, 0x18
cmp rdi, r12
jl 0x140010750
mov edx, dword [rsp + 0x50]
mov r12, qword [rsp + 0x70]
mov r13d, dword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
test r14d, r14d
jne 0x14001080a
test r15d, r15d
jne 0x14001080a
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 0x140010845
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 + 0x68], rax
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140010695
mov r13, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x48]
cmp r13, rdi
jge 0x1400108b4
mov r12, qword [rsp + 0x68]
lea rax, [r13*2]
add rax, r13
sub rdi, r13
xor r13d, r13d
lea rbx, [rsi + rax*8]
cmp dword [rbx + 0x10], r13d
je 0x14001089d
mov rdx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r13
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDeviceInfoW]
add rbx, 0x18
sub rdi, 1
jne 0x140010880
mov rdi, qword [rsp + 0x60]
mov rbx, r12
mov r13, qword [rsp + 0x78]
lea rdx, [rbp - 0x50]
mov dword [rbp - 0x50], 0x230
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInfoListDetailW]
test eax, eax
je 0x14001069a
xor eax, eax
mov dword [rbp + 0x1e0], 0x20
mov r12d, eax
mov dword [rsp + 0x40], eax
test r15d, r15d
lea r8, [rbp + 0x1e0]
mov rcx, rbx
cmove r12d, r14d
xor edx, edx
mov dword [rsp + 0x58], r12d
mov r14d, eax
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x140010b36
nop dword [rax]
test r12d, r12d
je 0x140010ac9
mov r15d, dword [rsp + 0x54]
xor esi, esi
mov qword [rsp + 0x70], r13
mov r12d, esi
cmp r13, rdi
jge 0x140010b04
mov rdi, qword [rsp + 0x48]
lea r13, [r13 + r13*2]
lea r13, [r13 + 2]
lea r13, [rdi + r13*8]
test r12d, r12d
jne 0x140010ac4
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 0x14001097c
mov word [rbp + 0x210], si
cmp dword [r13], 0
je 0x1400109ad
movsxd rax, r15d
lea rcx, [rax + rax*2]
lea rdx, [rdi + rcx*8]
lea rcx, [rbp + 0x210]
call fcn.1400103b0
test eax, eax
je 0x140010a99
mov r12d, 1
jmp 0x140010a99
mov r8d, 1
lea rdx, [rbp + 0x1e0]
mov rcx, rbx
call fcn.140010160
mov r8d, 2
lea rdx, [rbp + 0x1e0]
mov rcx, rbx
mov r14, rax
call fcn.140010160
mov rsi, rax
mov rbx, r14
test r14, r14
je 0x140010a16
mov rcx, qword [r14]
test rcx, rcx
je 0x140010a16
movsxd rdx, r15d
lea r8, [rdx + rdx*2]
lea rdi, [rdi + r8*8]
mov rdx, rdi
call fcn.1400103b0
test eax, eax
jne 0x140010a4f
mov rcx, qword [rbx + 8]
add rbx, 8
test rcx, rcx
jne 0x1400109f8
mov rdi, qword [rsp + 0x48]
mov rbx, rsi
test rsi, rsi
je 0x140010a55
mov rax, qword [rsi]
test rax, rax
je 0x140010a55
movsxd rcx, r15d
lea rdx, [rcx + rcx*2]
lea rdi, [rdi + rdx*8]
mov rdx, rdi
mov rcx, rax
call fcn.1400103b0
test eax, eax
jne 0x140010a4f
mov rax, qword [rbx + 8]
add rbx, 8
test rax, rax
jne 0x140010a31
jmp 0x140010a55
mov r12d, 1
test r14, r14
je 0x140010a71
mov rcx, qword [r14 - 8]
test rcx, rcx
je 0x140010a68
call fcn.140019b64
lea rcx, [r14 - 8]
call fcn.140019b64
test rsi, rsi
je 0x140010a8d
mov rcx, qword [rsi - 8]
test rcx, rcx
je 0x140010a84
call fcn.140019b64
lea rcx, [rsi - 8]
call fcn.140019b64
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 0x140010943
mov r14d, dword [rsp + 0x40]
test r12d, r12d
je 0x140010aff
jmp 0x140010ac9
mov r14d, dword [rsp + 0x40]
lea rcx, str._match:_n_n
mov dword [0x1400504ac], 1
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov r9, qword [rbp - 0x68]
lea rdx, [rbp + 0x1e0]
mov rax, qword [rbp - 0x60]
mov r8d, r14d
mov rcx, rbx
call qword [0x140033700]
test eax, eax
jne 0x140010b41
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 [rsp + 0x78]
mov r12d, dword [rsp + 0x58]
test eax, eax
jne 0x140010910
mov rsi, qword [rsp + 0x48]
xor eax, eax
mov dword [rsp + 0x40], eax
jmp 0x14001069a
mov dword [rsp + 0x40], eax
jmp 0x140010695