Function at 0x503c48
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 6
push 0
push 0
dec ecx
jne 0x503c51
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
call fcn.00404be0
xor eax, eax
push ebp
push 0x503e7a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x503e30
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xffffffff
xor edi, edi
push 0x503e98
lea eax, [ebp - 0x10]
call fcn.00406534
mov ecx, eax
mov eax, 0x56fbe0
mov edx, 0x503ea8
call fcn.004ffbd4
test al, al
jne 0x503cc3
call fcn.004041ac
jmp 0x503e37
push 0
lea eax, [ebp - 0x14]
call fcn.00406534
push eax
push ebx
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
je 0x503ce6
call fcn.004041ac
jmp 0x503e37
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
xor ebx, ebx
lea eax, [ebp - 0x20]
call fcn.00404724
mov eax, dword [ebp + 0xc]
call fcn.00404724
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.00408b30
jmp 0x503dfe
push 0
mov eax, esi
call fcn.00406534
push eax
push 1
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
jne 0x503dfc
cmp dword [esi], 0
je 0x503dfe
cmp edi, dword [ebp + 8]
jl 0x503df9
lea eax, [ebp - 0x18]
push eax
push 0
push 0
mov eax, dword [esi]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
test eax, eax
jne 0x503dec
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x18]
call fcn.00404944
mov eax, dword [ebp - 0x18]
push eax
call sub.ole32.dll_CoTaskMemFree
lea eax, [ebp - 0x1c]
call fcn.00406534
push eax
push 0x503eb8
push 0
push 0
mov eax, dword [esi]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
test eax, eax
jne 0x503dec
lea eax, [ebp - 0x38]
push eax
call sub.oleaut32.dll_VariantInit_1
push 0
lea eax, [ebp - 0x38]
push eax
push 0x503ec8
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
jne 0x503de4
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x38]
call fcn.004056e0
lea eax, [ebp - 0x38]
call fcn.004056a0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00503a84
test al, al
je 0x503dd9
mov dword [ebp - 0xc], edi
mov bl, 1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x28]
call fcn.00404778
lea eax, [ebp - 0x1c]
call fcn.00406534
cmp dword [ebp - 0xc], 0xffffffff
jne 0x503df9
mov eax, esi
call fcn.00406534
inc edi
jmp 0x503dfe
mov bl, 1
test bl, bl
je 0x503d11
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x503e37
cmp dword [ebp - 0x14], 0
je 0x503e21
lea eax, [ebp - 0x14]
call fcn.00406534
cmp dword [ebp - 0x10], 0
je 0x503e2f
lea eax, [ebp - 0x10]
call fcn.00406534
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x503e81
lea eax, [ebp - 0x38]
call fcn.00405780
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00404748
lea eax, [ebp - 0x1c]
call fcn.00406534
lea eax, [ebp - 0x14]
call fcn.00406534
lea eax, [ebp - 0x10]
call fcn.00406534
lea eax, [ebp - 4]
call fcn.00404724
ret