Function at 0x401d20
Capabilities:
Enumerate devices by category

Disassembly:
sub esp, 0x28
push ebx
push ebp
mov ebp, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
push esi
push edi
lea ecx, [ebp + ebp*2]
xor eax, eax
shl ecx, 2
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
xor esi, esi
and ecx, 3
push esi
rep stosb byte es:[edi], al
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x14]
mov dword [esp + 0x18], esi
push eax
push 1
mov dword [esp + 0x18], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.ole32.dll_CoGetMalloc]
lea ecx, [esp + 0x18]
push ecx
push 0x407168
push 1
push esi
push 0x407188
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x401edd
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push esi
push ecx
mov edx, dword [eax]
push 0x407178
push eax
call dword [edx + 0xc]
test eax, eax
jne 0x401edd
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
cmp ebp, esi
mov dword [esp + 0x24], esi
jbe 0x401edd
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x40]
push esi
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x401edd
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x1c]
push edx
push 0x407148
mov ecx, dword [eax]
push esi
push esi
push eax
call dword [ecx + 0x24]
test eax, eax
jne 0x401edd
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x28]
push esi
mov word [esp + 0x2c], 8
mov ecx, dword [eax]
push edx
push str.FriendlyName
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x401edd
mov eax, dword [esp + 0x44]
cmp eax, esi
je 0x401e49
push eax
mov eax, dword [esp + 0x34]
push eax
call fcn.00401fc0
add esp, 8
test eax, eax
je 0x401e98
mov ecx, dword [esp + 0x30]
push ecx
call edi
cmp eax, esi
mov dword [ebx + 4], eax
je 0x401edd
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x34], esi
mov ecx, dword [eax]
push esi
push esi
push eax
call dword [ecx + 0x50]
test eax, eax
jne 0x401edd
mov eax, dword [esp + 0x3c]
push eax
call edi
cmp eax, esi
mov dword [ebx], eax
je 0x401edd
mov ecx, dword [esp + 0x20]
inc ecx
add ebx, 0xc
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x30], esi
cmp eax, esi
je 0x401eba
mov ecx, dword [esp + 0x14]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x14]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x3c], esi
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x40], esi
inc eax
cmp eax, ebp
mov dword [esp + 0x24], eax
jb 0x401dd3
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x40]
cmp eax, esi
je 0x401ef6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x401f04
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x401f12
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x401f20
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x3c]
cmp ecx, esi
je 0x401f37
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x401f45
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x401f45
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret