Function at 0x401d00
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539cb8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x59a4d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], ecx
cmp dword [ebp + 8], 0
jne 0x401d38
mov eax, 0x80070057
jmp 0x402063
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp - 0x4c]
cmp dword [ecx + 0xfdc], 0
je 0x401d7c
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0xfdc]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0xfdc]
mov eax, dword [eax]
push edx
mov ecx, dword [eax + 4]
call ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0xfdc]
mov dword [edx], ecx
xor eax, eax
jmp 0x402063
push str.CreateDevEnum_n
call fcn.0041c650
add esp, 4
push 0
lea ecx, [ebp - 0x10]
call fcn.00415f90
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00408420
push eax
push 0x566e0c
push 1
push 0
push 0x566ddc
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x401ddd
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x40], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00414290
mov eax, dword [ebp - 0x40]
jmp 0x402063
push str.CreateClassEnum_n
call fcn.0041c650
add esp, 4
push 0
lea ecx, [ebp - 0x14]
call fcn.00415f90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.004083e0
mov dword [ebp - 0x50], eax
push 0x40
lea ecx, [ebp - 0x14]
call fcn.00408420
push eax
push 0x566dec
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x18], eax
push str.CreateClassEnum_ok_n
call fcn.0041c650
add esp, 4
cmp dword [ebp - 0x18], 0
jne 0x402031
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x14]
call fcn.004083e0
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x20]
push edx
push 1
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
test eax, eax
jne 0x402031
lea ecx, [ebp - 0x24]
call fcn.00415f70
mov byte [ebp - 4], 2
push str.BindToStorage_n
call fcn.0041c650
add esp, 4
lea ecx, [ebp - 0x24]
call fcn.00408420
push eax
push 0x562e10
push 0
push 0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [edx + 0x24]
call ecx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x402012
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push str.Read_DevicePath_n
call fcn.0041c650
add esp, 4
lea ecx, [ebp - 0x24]
call fcn.004083e0
mov dword [ebp - 0x58], eax
push 0
lea eax, [ebp - 0x34]
push eax
push str.DevicePath
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
call ecx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x402012
push 0x56d58c
call fcn.0041c650
add esp, 4
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00417ef0
add esp, 4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
push 0x56d5a4
call fcn.0041c650
add esp, 8
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x38]
cmp edx, dword [ecx + 0x18]
jne 0x401ffb
mov dword [ebp - 0x3c], 0
push str.BindToObject_n
call fcn.0041c650
add esp, 4
lea eax, [ebp - 0x3c]
push eax
push 0x566e1c
push 0
push 0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [edx + 0x20]
call ecx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x401ffb
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [eax + 4]
call edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [eax + 4]
call edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x3c]
mov dword [eax + 0xfdc], ecx
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push str.GetDShowFilter_ok_n
call fcn.0041c650
add esp, 4
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ecx + 8]
call eax
mov dword [ebp - 0x44], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00414290
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00414290
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00414290
mov eax, dword [ebp - 0x44]
jmp 0x402063
push str.VariantClear_n
call fcn.0041c650
add esp, 4
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [eax + 8]
call edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00414290
jmp 0x401e42
push str.GetDShowFilter_Fail_n
call fcn.0041c650
add esp, 4
mov dword [ebp - 0x48], 0x80004005
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00414290
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00414290
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4