Function at 0x401fd5
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403aa2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x14]
push eax
push 0x404168
push 1
push 0
push 0x404158
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jl 0x4021fd
cmp dword [ebp - 0x14], 0
je 0x4021fd
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
push edx
call dword [ecx + 0xc]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jl 0x4021ea
cmp dword [ebp - 0x10], 0
je 0x4021ea
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x10]
push edx
call dword [ecx + 0x14]
push 0x4050ac
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x2c], eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x10]
push eax
call dword [edx + 0xc]
test eax, eax
jne 0x4021cd
lea ecx, [ebp - 0x18]
push ecx
push 0x404138
push 0
push 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [eax + 0x24]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jl 0x402196
lea ecx, [ebp - 0x3c]
call fcn.00402db0
mov dword [ebp - 4], 0
push 0
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
push eax
call dword [edx + 0xc]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jl 0x402187
mov ecx, dword [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00403450
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x40]
call fcn.004033a0
test eax, eax
jne 0x40217b
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [eax + 0x20]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jl 0x40215e
cmp dword [ebp - 0x28], 0
je 0x40215e
mov dword [ebp - 0x24], 1
mov edx, dword [ebp - 0x28]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x28]
push ecx
call dword [eax + 8]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004033e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00402dd0
jmp 0x4021cd
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004033e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00402dd0
cmp dword [ebp - 0x18], 0
je 0x4021af
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x1c], 0
je 0x4021c8
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x1c], 0
jmp 0x402090
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
push edx
call dword [ecx + 8]
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x24], 0
je 0x40220c
mov dword [ebp - 0x20], 0
jmp 0x40221f
cmp dword [ebp - 0x24], 0
jne 0x40221f
cmp dword [ebp - 0x20], 0
jl 0x40221f
mov dword [ebp - 0x20], 0x80040154
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret