Function at 0x1008e820
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c154d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x100e7c94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 3
mov dword [eax], 0
lea eax, [ebp - 0x20]
push eax
push 0x100dae8c
push 0x17
push 0
push 0x100c958c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x1008ea32
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
push 0
push edx
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
js 0x1008ea32
je 0x1008e8c2
mov esi, 0x8000ffff
jmp 0x1008ea32
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x10]
push 0
push edx
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x1008ea30
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
nop word [eax + eax]
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
push 0x100cd2d4
push 0
mov ecx, dword [eax]
push 0
push eax
mov byte [ebp - 4], 4
call dword [ecx + 0x24]
mov esi, eax
test esi, esi
js 0x1008eabb
lea eax, [ebp - 0x30]
push eax
call ebx
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x30]
push 0
push edx
push str.DevicePath
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jns 0x1008e98b
lea eax, [ebp - 0x30]
push eax
call edi
lea eax, [ebp - 0x30]
push eax
call ebx
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x30]
push 0
push edx
push str.FriendlyName
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jns 0x1008e98b
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1008e971
mov dword [ebp - 0x10], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 3
test eax, eax
je 0x1008ea17
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1008ea17
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp + 0xc]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1008e9b7
test dx, dx
je 0x1008e9b3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1008e9b7
add eax, 4
add ecx, 4
test dx, dx
jne 0x1008e991
xor eax, eax
jmp 0x1008e9bc
sbb eax, eax
or eax, 1
test eax, eax
lea eax, [ebp - 0x30]
push eax
je 0x1008ea8d
call edi
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1008e9de
mov dword [ebp - 0x18], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1008e9f2
mov dword [ebp - 0x10], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1008ea09
mov dword [ebp - 0x14], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x1008ea17
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x10]
push 0
push edx
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x1008e8f0
xor esi, esi
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 2
test eax, eax
je 0x1008ea43
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 1
test eax, eax
je 0x1008ea54
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0
test eax, eax
je 0x1008ea65
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x1008ea79
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call edi
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
push edx
push 0x100cbf7c
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x20]
mov esi, eax
test esi, esi
js 0x1008eabb
mov eax, dword [ebp - 0x18]
push dword [ebp + 0x10]
push 0x100daec4
mov ecx, dword [eax]
push eax
call dword [ecx]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 3
test eax, eax
je 0x1008ea32
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1008ea32