Function at 0x401290
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x419448]
push ebx
xor ebx, ebx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
push edi
mov edi, ebx
test eax, eax
jne 0x4012c3
cmp dword [0x419444], ebx
je 0x4012da
mov dword [0x419444], ebx
test eax, eax
jne 0x4012da
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x419448], ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jne 0x40152d
push esi
lea eax, [ebp - 0x14]
xor esi, esi
push eax
push 0x410250
inc esi
push esi
push ebx
push 0x410260
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x401520
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 8]
push ebx
push edx
push 0x410270
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
test eax, eax
jne 0x401517
jmp 0x40132e
inc dword [0x419444]
mov ecx, dword [ebp - 8]
push esi
push ecx
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
je 0x401328
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [0x419444]
test eax, eax
je 0x40150e
imul eax, eax, 0x618
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x419448], eax
test eax, eax
je 0x40150e
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x10]
push ebx
push edx
push esi
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
test eax, eax
jne 0x40150e
mov esi, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp edi, dword [0x419444]
jae 0x40150e
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
and dword [ebp - 0xc], 0
push edx
push 0x410240
mov eax, dword [ecx]
push 0
push 0
push ecx
call dword [eax + 0x24]
test eax, eax
js 0x4014ec
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x24]
push 0
push edx
push str.DevicePath
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x44]
push 0
push edx
push str.DeviceNode
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x34]
push 0
push edx
push str.FriendlyName
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4014e3
cmp dword [ebp - 0x2c], 0
je 0x4014e3
cmp dword [ebp - 0x48], 0
je 0x401442
mov ecx, eax
call fcn.004010ce
test eax, eax
je 0x4014e3
mov eax, dword [ebp - 0x1c]
push 0x104
push eax
mov eax, dword [0x419448]
add eax, 0x208
add eax, esi
push eax
call ebx
mov eax, dword [0x419448]
push 0x104
push dword [ebp - 0x2c]
add eax, 0x410
add eax, esi
push eax
call ebx
mov edx, dword [ebp - 0x1c]
mov ecx, str.DevicePath
call fcn.00402574
mov edx, dword [ebp - 0x2c]
mov ecx, str.FriendlyName
call fcn.00402574
cmp dword [ebp - 0x3c], 0
je 0x4014ad
mov eax, dword [0x419448]
push 0x104
push dword [ebp - 0x3c]
add eax, esi
push eax
call ebx
mov edx, dword [ebp - 0x3c]
mov ecx, str.DeviceNode
call fcn.00402574
mov ecx, dword [0x419448]
add ecx, 0x208
add ecx, esi
call fcn.00401197
test eax, eax
je 0x4014dc
mov edx, dword [0x419448]
mov ecx, str.Fix_Conexant_DevicePath
add edx, 0x208
add edx, esi
call fcn.00402574
inc edi
add esi, 0x618
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x10]
push 0
push edx
push 1
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
test eax, eax
je 0x40138d
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [0x419444], edi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00403410
leave
ret