Function at 0x14000c910
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rsi
push r14
sub rsp, 0x98
mov rax, qword [0x14005b0e8]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor esi, esi
mov qword [rsp + 0x48], 0x20
xor eax, eax
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x54], rax
mov rax, qword [0x1417bba30]
mov dword [rsp + 0x5c], esi
mov qword [rsp + 0x60], rsi
mov dword [rsp + 0x40], esi
cmp dword [rax + 0x3c], esi
je 0x14000c96c
lea rdx, [0x14003a9f8]
lea rcx, str._DBG__ALLOC___s__n
call fcn.140001010
mov edx, 0x2c
lea ecx, [rdx - 0x2b]
call qword [sym.imp.msvcrt.dll_calloc]
mov r14, rax
test rax, rax
je 0x14000ce84
mov edx, 8
mov qword [rsp + 0xb0], rbx
mov qword [rsp + 0xc0], rdi
mov qword [rsp + 0x80], r15
lea ecx, [rdx - 7]
call qword [sym.imp.msvcrt.dll_calloc]
mov edx, 8
mov qword [r14 + 0x18], rax
lea ecx, [rdx - 7]
call qword [sym.imp.msvcrt.dll_calloc]
lea rcx, [r14 + 0x28]
mov edx, 4
lea r8, [0x14003a9f8]
mov qword [r14 + 8], rax
mov qword [r14], rcx
call fcn.140031cc0
mov rcx, qword [0x1417bba30]
mov r15, 0xffffffffffffffff
mov dword [r14 + 0x20], 2
cmp dword [rcx + 0x24], esi
je 0x14000ca8c
mov rdi, qword [rcx + 0x220]
mov ebx, esi
mov rax, qword [rdi + 0x18]
cmp qword [rax], rbx
je 0x14000ca1b
nop dword [rax + rax]
inc ebx
lea rax, [rax + 8]
cmp qword [rax], rsi
jne 0x14000ca10
cmp dword [rcx + 0x3c], esi
je 0x14000ca32
mov r8, qword [r14]
lea rcx, str._DBG__APPEND___s_______s__n
mov rdx, qword [rdi]
call fcn.140001010
movsxd rbx, ebx
mov edx, 8
lea rcx, [rbx + 1]
add rcx, 1
cmovb rcx, r15
call qword [sym.imp.msvcrt.dll_calloc]
mov rsi, rax
test rax, rax
je 0x14000ce96
test rbx, rbx
jle 0x14000ca74
xor edx, edx
nop
mov rax, qword [rdi + 0x18]
mov rcx, qword [rax + rdx*8]
mov qword [rsi + rdx*8], rcx
inc rdx
cmp rdx, rbx
jl 0x14000ca60
mov qword [rsi + rbx*8], r14
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.msvcrt.dll_free]
mov qword [rdi + 0x18], rsi
xor esi, esi
mov qword [r14 + 0x10], rdi
mov qword [rsp + 0xb8], rbp
lea rdx, [rsp + 0x40]
lea rcx, str.usb.ids
mov qword [rsp + 0x88], r13
call fcn.14001bde0
mov r9d, 6
lea rdx, [0x14003eba0]
xor r8d, r8d
xor ecx, ecx
mov r13, rax
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rbp, rax
cmp rax, r15
jne 0x14000cbb2
mov rbp, qword [0x1417bba30]
mov rbx, qword [rbp + 0x240]
test rbx, rbx
jne 0x14000cb2f
mov ecx, 0x1a
lea edx, [rbx + 1]
add ecx, 2
call qword [sym.imp.msvcrt.dll_calloc]
mov qword [rbp + 0x240], rax
test rax, rax
je 0x14000cea8
movups xmm0, xmmword [str.SetupDiGetClassDevs_failed]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x14003a920]
movsd qword [rax + 0x10], xmm0
movzx ecx, word [0x14003a928]
mov word [rax + 0x18], cx
jmp 0x14000ce38
mov edx, 1
lea eax, [rdx - 1]
cmp byte [rax + rbx], 0
jne 0x14000cb45
mov edi, edx
cmp byte [rdi + rbx], 0
je 0x14000cb49
inc edx
jmp 0x14000cb34
lea ecx, [rdx + 0x1a]
mov edx, 1
add ecx, 2
cmovb rcx, r15
call qword [sym.imp.msvcrt.dll_calloc]
mov rsi, rax
test rax, rax
je 0x14000cea8
mov r8, rdi
mov rdx, rbx
mov rcx, rax
call sub.msvcrt.dll_memcpy
movups xmm0, xmmword [str.SetupDiGetClassDevs_failed]
mov rcx, rbx
movups xmmword [rdi + rsi], xmm0
movsd xmm0, qword [0x14003a920]
movsd qword [rdi + rsi + 0x10], xmm0
movzx eax, word [0x14003a928]
mov word [rdi + rsi + 0x18], ax
call qword [sym.imp.msvcrt.dll_free]
mov qword [rbp + 0x240], rsi
jmp 0x14000ce38
mov qword [rsp + 0x90], r12
lea r8, [rsp + 0x48]
xor edx, edx
mov rcx, rbp
mov r12d, esi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x14000ce27
mov ebx, dword [rsp + 0x40]
nop dword [rax]
mov rax, qword [0x1417bba30]
lea rdx, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
add rax, 0x250
mov dword [rsp + 0x28], 0xfffe
mov rcx, rbp
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 1]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x14000ce0b
mov r8d, 4
lea rdx, str.Device
mov rcx, r14
call fcn.1400117b0
mov rcx, qword [0x1417bba30]
mov r15, rax
add rcx, 0x250
call fcn.140004890
mov r8, rax
lea rdx, str.HWID
xor r9d, r9d
mov rcx, r15
call fcn.1400118b0
mov r9, qword [0x1417bba30]
mov r8d, ebx
add r9, 0x250
mov dword [rsp + 0x20], 1
mov rdx, r13
mov rcx, r15
call fcn.14001ae90
mov rax, qword [0x1417bba30]
lea rdx, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
add rax, 0x250
mov dword [rsp + 0x28], 0xfffe
mov rcx, rbp
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 2]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x14000ce0b
mov rcx, qword [0x1417bba30]
add rcx, 0x250
cmp word [rcx], 0
je 0x14000ce0b
call fcn.140004890
xor r9d, r9d
lea rdx, str.Compatiable_ID
mov r8, rax
mov rcx, r15
mov rdi, rax
call fcn.1400118b0
xor eax, eax
mov rbx, 0xffffffffffffffff
mov dword [rsp + 0x68], eax
mov word [rsp + 0x6c], ax
mov byte [rsp + 0x6e], al
inc rbx
cmp byte [rdi + rbx], al
jne 0x14000cd07
cmp rbx, 0xc
jb 0x14000cd35
mov r8d, 0xa
lea rdx, str.USBClass_
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_strncmp]
test eax, eax
jne 0x14000cd35
movzx eax, word [rdi + 0xa]
jmp 0x14000cd66
cmp rbx, 0xf
jb 0x14000ce05
mov r8d, 0xd
lea rdx, str.USBDevClass_
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_strncmp]
test eax, eax
jne 0x14000ce05
movzx eax, word [rdi + 0xd]
mov esi, 3
mov word [rsp + 0x68], ax
lea rax, [rsi + 0x18]
cmp rbx, rax
jb 0x14000cdcd
lea rcx, [rdi + 0xc]
mov r8d, 0xa
add rcx, rsi
lea rdx, str.SubClass_
call qword [sym.imp.msvcrt.dll_strncmp]
test eax, eax
jne 0x14000cdcd
movzx eax, word [rsi + rdi + 0x16]
mov word [rsp + 0x6a], ax
lea rax, [rsi + 0x1f]
cmp rbx, rax
jb 0x14000cdcd
lea rcx, [rdi + 0x18]
mov r8d, 6
add rcx, rsi
lea rdx, str.Prot_
call qword [sym.imp.msvcrt.dll_strncmp]
test eax, eax
jne 0x14000cdcd
movzx eax, word [rsi + rdi + 0x1e]
mov word [rsp + 0x6c], ax
xor r9d, r9d
lea r8, [rsp + 0x68]
lea rdx, str.Class_Code
mov rcx, r15
call fcn.1400118b0
mov ebx, dword [rsp + 0x40]
lea r9, [rsp + 0x68]
mov r8d, ebx
mov dword [rsp + 0x20], 1
mov rdx, r13
mov rcx, r15
call fcn.14001b4a0
jmp 0x14000ce09
mov ebx, dword [rsp + 0x40]
xor esi, esi
inc r12d
lea r8, [rsp + 0x48]
mov edx, r12d
mov rcx, rbp
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x14000cbe0
mov rcx, rbp
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov r12, qword [rsp + 0x90]
mov rcx, r13
call qword [sym.imp.msvcrt.dll_free]
mov r13, qword [rsp + 0x88]
mov rax, r14
mov rbp, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xb0]
mov r15, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140029990
add rsp, 0x98
pop r14
pop rsi
ret
lea rdx, str.Failed_to_allocate_memory_in_NWL_NodeAlloc
mov ecx, 0xe
call fcn.140001650
int3
lea rdx, str.Failed_to_allocate_memory_in_NWL_NodeAppendChild
mov ecx, 0xe
call fcn.140001650
int3
lea rdx, str.Failed_to_allocate_memory_in_NWL_NodeAppendMultiSz
mov ecx, 0xe
call fcn.140001650
int3