Function at 0x1008d440
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c13d5
mov eax, dword fs:[0]
push eax
sub esp, 0x30
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 - 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov esi, dword [ebp + 0xc]
xor eax, eax
mov byte [ebp - 4], 3
mov word [esi], ax
lea eax, [ebp - 0x1c]
push eax
push 0x100dae8c
push 0x17
push 0
push 0x100c958c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
js 0x1008d618
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
push 0
push edx
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov edi, eax
test edi, edi
js 0x1008d618
je 0x1008d4e1
mov edi, 0x8000ffff
jmp 0x1008d618
mov eax, dword [ebp - 0x18]
lea edx, [ebp + 0xc]
push edx
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x1008d616
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
push 0x100cd2d4
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x24]
mov edi, eax
test edi, edi
js 0x1008d618
mov edi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x2c]
push eax
call edi
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x2c]
push 0
push edx
push str.FriendlyName
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jns 0x1008d565
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1008d55a
mov dword [ebp - 0x10], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x2c]
push eax
call ebx
jmp 0x1008d5fb
lea eax, [ebp - 0x3c]
push eax
call edi
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x3c]
push 0
push edx
push str.DevicePath
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x1008d5c7
movsx eax, word [esi]
lea edx, [esi + 2]
mov ecx, dword [ebp - 0x24]
shl eax, 0xa
add edx, eax
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x1008d591
movsx eax, word [esi]
lea edx, [esi + 0x10002]
mov ecx, dword [ebp - 0x34]
shl eax, 0xa
add edx, eax
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x1008d5b3
inc word [esi]
lea eax, [ebp - 0x2c]
push eax
call ebx
lea eax, [ebp - 0x3c]
push eax
call ebx
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1008d5e7
mov dword [ebp - 0x10], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1008d5fb
mov dword [ebp - 0x14], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x18]
lea edx, [ebp + 0xc]
push edx
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x1008d502
xor edi, edi
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 2
test eax, eax
je 0x1008d629
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
test eax, eax
je 0x1008d63a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0
test eax, eax
je 0x1008d64b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x1008d65f
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret