Function at 0x40470d
Capabilities:
Enumerate devices by category

Disassembly:
push 0xffffffffffffffff
push 0x41a8c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x834
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
xor ebp, ebp
push ebp
mov dword [esp + 0x850], ebp
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, ebp
jge 0x404764
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.CoInitialize_failed.
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00403e10
lea ecx, [esp + 0x10]
mov dword [esp + 0x84c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x404937
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
push eax
push 0x41c630
push 1
push ebp
push 0x41c650
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebp
jge 0x404796
push str._Error_1____________
call fcn.00407600
add esp, 4
jmp 0x404921
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push ebp
mov dword [esp + 0x18], ebp
mov ecx, dword [eax]
push edx
push 0x41c640
push eax
call dword [ecx + 0xc]
cmp eax, ebp
jne 0x404911
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x404907
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
push 0x41d138
mov ecx, dword [eax]
push ebp
push ebp
push eax
call dword [ecx + 0x24]
cmp eax, ebp
jl 0x4048df
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x34]
push ebp
push edx
mov ecx, dword [eax]
push str.FriendlyName
push eax
call dword [ecx + 0xc]
cmp eax, ebp
jl 0x4048d5
mov ecx, dword [esp + 0x3c]
push ebp
push ebp
lea eax, [esp + 0x4c]
push 0x800
push eax
push 0xffffffffffffffff
push ecx
push ebp
push ebp
call edi
lea edx, [esp + 0x44]
lea ecx, [esp + 0x10]
push edx
call fcn.00419f6e
lea eax, [esp + 0x44]
push eax
push str.str_s_n
call fcn.00407600
add esp, 8
lea ecx, [esp + 0x28]
push 5
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push str.Bison
push eax
mov byte [esp + 0x854], 1
call esi
add esp, 8
test eax, eax
je 0x4048ba
lea edx, [esp + 0x24]
push 5
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push str.Lenov
push eax
call esi
add esp, 8
lea ecx, [esp + 0x24]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4048bc
mov bl, 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x84c], 0
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x404746
mov eax, dword [esp + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
lea edx, [esp + 0x1c]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x4047e5
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x1c]
push eax
mov edx, dword [eax]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 0x10]
mov dword [esp + 0x84c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x844]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x840
ret