Function at 0x100b2710
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x101efd48]
mov dword [ebp - 0x10], 0
push esi
test eax, eax
jne 0x100b2742
push eax
push str.Setupapi.dll
call fcn.100b5120
add esp, 8
mov dword [0x101efd48], eax
test eax, eax
je 0x100b29ae
cmp dword [0x101efd4c], 0
jne 0x100b2769
push str.SetupDiGetClassDevsW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x101efd4c], eax
test eax, eax
je 0x100b29ae
mov eax, dword [0x101efd48]
cmp dword [0x101efd50], 0
jne 0x100b2790
push str.SetupDiEnumDeviceInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x101efd50], eax
test eax, eax
je 0x100b29ae
mov eax, dword [0x101efd48]
cmp dword [0x101efd58], 0
jne 0x100b27b7
push str.SetupDiGetDeviceRegistryPropertyW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x101efd58], eax
test eax, eax
je 0x100b29ae
mov eax, dword [0x101efd48]
cmp dword [0x101efd54], 0
jne 0x100b27de
push str.SetupDiGetDeviceInterfaceDetailW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x101efd54], eax
test eax, eax
je 0x100b29ae
mov eax, dword [0x101efd48]
cmp dword [0x101efd60], 0
jne 0x100b2800
push str.SetupDiDestroyDeviceInfoList
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x101efd60], eax
test eax, eax
je 0x100b29ae
mov esi, dword [0x101efd4c]
mov ecx, esi
push 6
push 0
push 0
push 0
call dword [section..00cfg]
call esi
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x100b29ae
push ebx
push edi
mov edi, dword [ebp + 0x10]
push edi
push 0
push eax
xorps xmm0, xmm0
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
mov dword [edi + 0x18], 0
mov dword [edi], 0x1c
mov esi, dword [0x101efd50]
mov ecx, esi
call dword [section..00cfg]
call esi
test eax, eax
je 0x100b2992
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], ebx
cmp eax, 1
jae 0x100b296d
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push ebx
push 2
push edi
push dword [ebp - 4]
lfence
mov esi, dword [0x101efd58]
mov ecx, esi
call dword [section..00cfg]
call esi
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x100b2960
add esi, 4
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x100b2960
push 0
push esi
mov esi, dword [0x101efd58]
mov ecx, esi
push ebx
push 0
push 2
push edi
push dword [ebp - 4]
call dword [section..00cfg]
call esi
test eax, eax
je 0x100b2960
cmp word [ebx], 0
mov edi, ebx
je 0x100b294c
mov eax, dword [ebp + 8]
mov esi, dword [eax*4 + 0x101eb054]
cmp word [esi], 0
je 0x100b2927
push esi
push edi
call fcn.10007000
add esp, 8
test eax, eax
jne 0x100b2921
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100b2905
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], cx
jne 0x100b28f2
jmp 0x100b2927
cmp word [esi], 0
jne 0x100b294c
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100b2930
sub ecx, edx
sar ecx, 1
lea edi, [edi + ecx*2]
add edi, 2
cmp word [edi], ax
jne 0x100b28e2
jmp 0x100b295d
mov eax, dword [ebp - 8]
mov ecx, 1
cmp word [edi], ax
cmovne eax, ecx
mov dword [ebp - 8], eax
mov edi, dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], 1
je 0x100b297e
mov eax, dword [ebp - 0x10]
inc eax
push edi
push eax
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
jmp 0x100b282d
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
pop edi
pop ebx
mov dword [ecx], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
mov esi, dword [0x101efd60]
mov ecx, esi
call dword [section..00cfg]
call esi
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret