Function at 0x40da49
Capabilities:
Enumerate devices by category

Disassembly:
push 0x38
mov eax, 0x45eb4b
call fcn.00446dd9
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x1c]
push eax
push 0x465854
push 0x17
push ebx
push 0x468840
mov byte [ebp - 4], 1
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x14]
push edx
push dword [ebp + 8]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jne 0x40daac
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], bl
cmp ecx, ebx
je 0x40dc2f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
jmp 0x40dc2c
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.0040d706
mov dword [ebp - 0x10], ebx
jmp 0x40dbc9
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push 0x46b608
push ebx
push ebx
push eax
mov byte [ebp - 4], 3
call dword [ecx + 0x24]
cmp eax, ebx
jne 0x40dba4
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push 8
pop eax
push ebx
lea edx, [ebp - 0x34]
push edx
mov word [ebp - 0x34], ax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push 0x465864
push eax
mov byte [ebp - 4], 4
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
push ebx
push ebx
push eax
call dword [ecx + 0x50]
lea ecx, [ebp - 0x44]
call fcn.0040cfd2
push dword [ebp - 0x24]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 5
call fcn.0040c71c
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x40]
call fcn.0040c71c
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x34]
push edx
push str.Description
push eax
call dword [ecx + 0xc]
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x3c]
call fcn.0040c71c
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x34]
push edx
push str.DevicePath
push eax
call dword [ecx + 0xc]
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x38]
call fcn.0040c71c
lea eax, [ebp - 0x44]
push eax
mov ecx, esi
call fcn.0040d9e6
lea ecx, [ebp - 0x44]
call fcn.0040d001
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x40dbb5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x40dbc6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x10]
push edx
push 1
mov dword [ebp - 0x20], ebx
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 2
call dword [ecx + 0xc]
cmp eax, ebx
je 0x40dacf
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x40dbfc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x40dc0c
mov dword [ebp - 0x1c], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x40dc1c
mov dword [ebp - 0x14], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x40dc2c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x40dc3d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call fcn.00446eb1
ret