Function at 0x418005
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov dword [ebp - 0x4c], ecx
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
and dword [ebp - 0xc], 0
and dword [ebp - 0x18], 0
and dword [ebp - 8], 0
and dword [ebp - 0x54], 0
lea eax, [ebp - 0x18]
push eax
call fcn.00418eda
pop ecx
push eax
push 0x41d954
push 1
push 0
push 0x41a4c0
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp dword [ebp - 0x18], 0
jne 0x418050
jmp 0x41820c
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x30], eax
push 0
lea eax, [ebp - 8]
push eax
push 0x41a4b0
push dword [ebp - 0x18]
call dword [ebp - 0x30]
cmp dword [ebp - 8], 0
jne 0x418077
jmp 0x41820c
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push dword [ebp - 8]
call dword [eax + 0x14]
and dword [ebp - 0x14], 0
xor eax, eax
inc eax
je 0x4181f2
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
push 1
push dword [ebp - 8]
call dword [ebp - 0x38]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4180bc
jmp 0x4181f2
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + eax*4]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0xc]
push eax
push 0x41a430
push 0
push 0
push dword [ebp - 0x3c]
call dword [ebp - 0x40]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4180f8
jmp 0x4181f2
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x44], eax
push 0
lea eax, [ebp - 0x64]
push eax
push str.Description
push dword [ebp - 0xc]
call dword [ebp - 0x44]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x418146
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x48], eax
push 0
lea eax, [ebp - 0x64]
push eax
push str.FriendlyName
push dword [ebp - 0xc]
call dword [ebp - 0x48]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x418151
jmp 0x4181f2
push 0x1c
pop ecx
call fcn.0040698f
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x41816f
mov ecx, dword [ebp - 0x28]
call fcn.00417c9b
mov dword [ebp - 0x2c], eax
jmp 0x418173
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x10], eax
and dword [ebp - 0x1c], 0
jmp 0x418194
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
inc eax
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
test eax, eax
je 0x4181c9
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
mov dx, word [edx]
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
and eax, 0xff
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x1c]
mov byte [ecx + edx], al
jmp 0x418185
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 0x4c]
add eax, 4
mov dword [ebp - 0x50], eax
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0x50]
call fcn.00418d61
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
jmp 0x418086
lea eax, [ebp - 8]
push eax
call fcn.00418ee2
pop ecx
lea eax, [ebp - 0x18]
push eax
call fcn.00418ee2
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
leave
ret