Function at 0x401100
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0x80004005
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 4]
push eax
push 0x42687c
push 1
push 0
push 0x426a5c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x10], eax
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0x426a3c
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
push ecx
call dword [eax + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x14], 0
je 0x40130f
push 0
lea edx, [ebp - 0xc]
push edx
push 1
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
push edx
call dword [ecx + 0xc]
test eax, eax
jne 0x40130f
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
push 0x426b2c
push 0
push 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc]
push eax
call dword [edx + 0x24]
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push 0
lea edx, [ebp - 0x30]
push edx
push str.FriendlyName
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x1c]
push edx
call dword [ecx + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x4012e8
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x130]
push ecx
call fcn.004197b8
add esp, 8
lea edx, [ebp - 0x130]
push edx
call fcn.00423a04
add esp, 4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
je 0x40121e
cmp dword [ebp - 0x154], 1
je 0x401271
jmp 0x4012da
push str.VIDEO_5
lea ecx, [ebp - 0x130]
push ecx
call fcn.0041975a
add esp, 8
test eax, eax
je 0x40126f
lea edx, [ebp - 0x140]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
push edx
call dword [ecx + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push eax
push 0x42686c
push 0
push 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc]
push eax
call dword [edx + 0x20]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 1
jmp 0x4012da
push str.MICROSOFT_MPEG_4
lea ecx, [ebp - 0x130]
push ecx
call fcn.0041975a
add esp, 8
test eax, eax
jne 0x4012a1
push str.MPEG4_ENC
lea edx, [ebp - 0x130]
push edx
call fcn.0041975a
add esp, 8
test eax, eax
je 0x4012da
lea eax, [ebp - 0x150]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc]
push eax
call dword [edx + 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x42686c
push 0
push 0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [eax + 0x20]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x10], 0
jne 0x4012e8
cmp dword [ebp - 0x18], 0
je 0x4012e8
jmp 0x40130f
lea edx, [ebp - 0x30]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x1c]
push edx
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
push edx
call dword [ecx + 8]
jmp 0x401168
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
push edx
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
push edx
call dword [ecx + 8]
cmp dword [ebp - 0x10], 0
jne 0x40133f
cmp dword [ebp - 0x18], 0
je 0x40133f
mov dword [ebp - 0x158], 1
jmp 0x401349
mov dword [ebp - 0x158], 0
mov eax, dword [ebp - 0x158]
mov esp, ebp
pop ebp
ret