Function at 0x140010ce0
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 [0x140053008]
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 0x140010d64
lea eax, [rcx + 4]
jmp 0x140010e09
mov eax, 0x18
mov qword [rsp + 0x58], rbx
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.140019d0c
mov qword [rsp + 0x40], rax
mov r8, rax
test rax, rax
je 0x140010e07
test ebx, ebx
jle 0x140010e6f
mov rcx, qword [rsi]
cmp word [rcx], 0x3d
jne 0x140010e45
add rcx, rdi
cmp word [rcx], r14w
je 0x140010e45
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 0x140010ddd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140010de7
mov edx, dword [rsp + 0x48]
test edx, edx
jne 0x140010e33
xor edi, edi
or rbx, 0xffffffffffffffff
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
call fcn.140019d04
cmp rbx, 0xffffffffffffffff
je 0x140010e07
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, edi
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.140019ce0
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 0x140010e4c
mov edx, dword [rsp + 0x48]
mov r9d, r14d
cmp ebx, r9d
jle 0x140010e76
mov eax, r9d
mov rcx, qword [rsi + rax*8]
cmp word [rcx], 0x2a
jne 0x140010e7c
cmp word [rcx + 2], r14w
jne 0x140010e7c
inc r9d
mov dword [rsp + 0x4c], r9d
jmp 0x140010e76
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 0x140010f31
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 0x140010ed0
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 0x140010ee6
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [rsp + 0x78], rax
jmp 0x140010ef4
mov edx, 0x2a
call fcn.14001c998
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 0x140010f11
cmp dword [rbx], r13d
jne 0x140010f17
mov r14d, 1
inc rdi
add rbx, 0x18
cmp rdi, r12
jl 0x140010ea4
mov edx, dword [rsp + 0x48]
mov r12, qword [rsp + 0x68]
mov r13d, dword [rsp + 0x50]
test r14d, r14d
jne 0x140010f5d
test r15d, r15d
jne 0x140010f5d
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 0x140010f98
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 0x140010fbb
lea rcx, str.Fail_to_SetupDiGetClassDevsEx___or_SetupDiCreateDeviceInfoListEx___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea edi, [rbx + 3]
jmp 0x140010deb
mov rdi, qword [rsp + 0x58]
mov r13, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x40]
cmp r13, rdi
jge 0x14001101b
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 0x140011004
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 0x140010fe8
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 0x14001104a
lea rcx, str.Fail_to_SetupDiGetDeviceInfoListDetail___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edi, 2
jmp 0x140010df0
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 0x1400112a1
xor esi, esi
mov eax, esi
test r15d, r15d
cmove eax, r14d
cdqe
mov qword [rbp - 0x60], rax
test rax, rax
je 0x140011239
mov r15d, dword [rsp + 0x4c]
mov r12d, esi
mov qword [rsp + 0x68], r13
cmp r13, rdi
jge 0x14001126f
mov rdi, qword [rsp + 0x40]
lea r13, [r13 + r13*2]
lea r13, [r13 + 2]
lea r13, [rdi + r13*8]
test r12d, r12d
jne 0x140011239
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 0x1400110ef
mov word [rbp + 0x210], si
cmp dword [r13], 0
je 0x140011120
movsxd rax, r15d
lea rcx, [rax + rax*2]
lea rdx, [rdi + rcx*8]
lea rcx, [rbp + 0x210]
call fcn.140010b30
test eax, eax
je 0x140011215
mov r12d, 1
jmp 0x140011215
mov r8d, 1
lea rdx, [rbp + 0x1e0]
mov rcx, rbx
call fcn.1400108b0
mov r8d, 2
lea rdx, [rbp + 0x1e0]
mov rcx, rbx
mov r14, rax
call fcn.1400108b0
mov rsi, rax
mov rbx, r14
test r14, r14
je 0x14001118e
cmp qword [r14], 0
je 0x14001118e
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.140010b30
test eax, eax
jne 0x1400111cb
add rbx, 8
cmp qword [rbx], 0
jne 0x140011170
mov rdi, qword [rsp + 0x40]
mov rbx, rsi
test rsi, rsi
je 0x1400111d1
cmp qword [rsi], 0
je 0x1400111d1
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.140010b30
test eax, eax
jne 0x1400111cb
add rbx, 8
cmp qword [rbx], 0
jne 0x1400111b0
jmp 0x1400111d1
mov r12d, 1
test r14, r14
je 0x1400111ed
mov rcx, qword [r14 - 8]
test rcx, rcx
je 0x1400111e4
call fcn.140019d04
lea rcx, [r14 - 8]
call fcn.140019d04
test rsi, rsi
je 0x140011209
mov rcx, qword [rsi - 8]
test rcx, rcx
je 0x140011200
call fcn.140019d04
lea rcx, [rsi - 8]
call fcn.140019d04
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 0x1400110b6
test r12d, r12d
je 0x14001126a
lea rcx, str._match:_n_n
mov dword [0x1400559b8], 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 0x1400112aa
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 0x140011085
mov rsi, qword [rsp + 0x40]
xor eax, eax
mov edi, eax
jmp 0x140010df0
mov edi, eax
jmp 0x140010deb