Function at 0x40b5e0
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c8
mov eax, dword [0x438374]
xor eax, ebp
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x194], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.00413050
mov dword [ebp - 0x18], 0
xor eax, eax
mov word [ebp - 0x28], ax
xor ecx, ecx
mov dword [ebp - 0x26], ecx
mov dword [ebp - 0x22], ecx
mov dword [ebp - 0x1e], ecx
mov word [ebp - 0x1a], cx
mov dword [ebp - 0xc], 0
push 0
lea ecx, [ebp - 0x10]
call fcn.00413050
push 0
lea ecx, [ebp - 4]
call fcn.00413050
lea ecx, [ebp - 4]
call fcn.0040f570
push eax
push 0x431188
push 3
push 0
push 0x431078
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x40b69b
mov dword [ebp - 0x178], 0
lea ecx, [ebp - 4]
call fcn.00413400
lea ecx, [ebp - 0x10]
call fcn.00413400
lea ecx, [ebp - 0x2c]
call fcn.00413400
mov eax, dword [ebp - 0x178]
jmp 0x40bc69
lea ecx, [ebp - 4]
call fcn.0040f520
mov dword [ebp - 0x198], eax
push 0
lea ecx, [ebp - 0x10]
call fcn.0040f570
push eax
push 0x4310b8
mov edx, dword [ebp - 0x198]
push edx
mov eax, dword [ebp - 0x198]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
call edx
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jl 0x40b6e7
push 0
lea ecx, [ebp - 0x10]
call fcn.0040f480
movzx eax, al
test eax, eax
je 0x40b714
mov dword [ebp - 0x17c], 0
lea ecx, [ebp - 4]
call fcn.00413400
lea ecx, [ebp - 0x10]
call fcn.00413400
lea ecx, [ebp - 0x2c]
call fcn.00413400
mov eax, dword [ebp - 0x17c]
jmp 0x40bc69
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x10]
call fcn.0040f520
mov dword [ebp - 0x19c], eax
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040f570
push eax
push 1
mov edx, dword [ebp - 0x19c]
push edx
mov eax, dword [ebp - 0x19c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
call edx
test eax, eax
jne 0x40bb98
lea ecx, [ebp - 0x38]
call fcn.0040f550
lea ecx, [ebp - 0x2c]
call fcn.0040f520
mov dword [ebp - 0x1a0], eax
lea ecx, [ebp - 0x38]
call fcn.0040f570
push eax
push 0x430eec
push 0
push 0
mov eax, dword [ebp - 0x1a0]
push eax
mov ecx, dword [ebp - 0x1a0]
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
call eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x40b7a6
lea ecx, [ebp - 0x38]
call fcn.00413400
jmp 0x40b71b
mov ecx, 8
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x38]
call fcn.0040f520
mov dword [ebp - 0x1a4], eax
push 0
lea edx, [ebp - 0x28]
push edx
push str.FriendlyName
mov eax, dword [ebp - 0x1a4]
push eax
mov ecx, dword [ebp - 0x1a4]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x40b7f2
lea ecx, [ebp - 0x38]
call fcn.00413400
jmp 0x40b71b
push 0x28
call fcn.0042d288
add esp, 4
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
je 0x40b81e
mov ecx, dword [ebp - 0x180]
call fcn.0040ef20
mov dword [ebp - 0x1a8], eax
jmp 0x40b828
mov dword [ebp - 0x1a8], 0
mov ecx, dword [ebp - 0x1a8]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x44]
add ecx, 8
call fcn.004019f0
lea ecx, [ebp - 0x3c]
call fcn.00401920
lea ecx, [ebp - 0x40]
call fcn.00401920
lea eax, [ebp - 0x3c]
push eax
push 0x1003
mov ecx, dword [ebp - 0x44]
add ecx, 8
call fcn.0040f230
push eax
mov ecx, dword [ebp - 0x194]
call fcn.0040b390
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x2c]
call fcn.0040f520
mov dword [ebp - 0x1ac], eax
mov ecx, dword [ebp - 0x44]
add ecx, 4
call fcn.0040f570
push eax
push 0x431198
push 0
push 0
mov ecx, dword [ebp - 0x1ac]
push ecx
mov edx, dword [ebp - 0x1ac]
mov eax, dword [edx]
mov ecx, dword [eax + 0x20]
call ecx
test eax, eax
jl 0x40bb5e
lea edx, [ebp - 0x44]
push edx
mov ecx, dword [ebp - 0x194]
add ecx, 0x24
call fcn.0040f400
mov eax, dword [ebp - 0x194]
cmp dword [eax + 0x54], 0
jne 0x40b8dc
mov ecx, dword [ebp - 0x194]
mov edx, dword [ebp - 0x44]
mov dword [ecx + 0x54], edx
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x54], 0
push 0
lea ecx, [ebp - 0x48]
call fcn.00413050
push 0
lea ecx, [ebp - 0x50]
call fcn.00413050
mov ecx, dword [ebp - 0x44]
add ecx, 4
call fcn.0040f520
mov dword [ebp - 0x1b0], eax
lea ecx, [ebp - 0x48]
call fcn.0040f570
push eax
mov eax, dword [ebp - 0x1b0]
push eax
mov ecx, dword [ebp - 0x1b0]
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
call eax
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jl 0x40bb4e
lea ecx, [ebp - 0x48]
call fcn.0040f520
mov dword [ebp - 0x1b4], eax
mov ecx, dword [ebp - 0x1b4]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x1b4]
push eax
mov ecx, dword [edx + 0x14]
call ecx
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x48]
call fcn.0040f520
mov dword [ebp - 0x1b8], eax
push 0
lea ecx, [ebp - 0x50]
call fcn.0040f570
push eax
push 1
mov edx, dword [ebp - 0x1b8]
push edx
mov eax, dword [ebp - 0x1b8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
call edx
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x40bb4e
lea ecx, [ebp - 0x50]
call fcn.0040f520
mov dword [ebp - 0x1bc], eax
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x1bc]
push ecx
mov edx, dword [ebp - 0x1bc]
mov eax, dword [edx]
mov ecx, dword [eax + 0x24]
call ecx
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x4c]
cmp edx, dword [ebp - 0x5c]
jne 0x40bb3f
mov dword [ebp - 0x168], 0
push 0x104
push 0
lea eax, [ebp - 0x164]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x50]
call fcn.0040f520
mov dword [ebp - 0x1c0], eax
lea ecx, [ebp - 0x168]
push ecx
mov edx, dword [ebp - 0x1c0]
push edx
mov eax, dword [ebp - 0x1c0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
call edx
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jl 0x40bb19
push 0x10
call fcn.0042d288
add esp, 4
mov dword [ebp - 0x184], eax
cmp dword [ebp - 0x184], 0
je 0x40ba55
mov ecx, dword [ebp - 0x184]
call fcn.0040f0b0
mov dword [ebp - 0x1c4], eax
jmp 0x40ba5f
mov dword [ebp - 0x1c4], 0
mov eax, dword [ebp - 0x1c4]
mov dword [ebp - 0x16c], eax
lea ecx, [ebp - 0x50]
push ecx
mov ecx, dword [ebp - 0x16c]
add ecx, 0xc
call fcn.00403ee0
lea edx, [ebp - 0x160]
push edx
mov ecx, dword [ebp - 0x16c]
call fcn.004019f0
mov eax, dword [ebp - 0x16c]
mov ecx, dword [ebp - 0x58]
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x50]
call fcn.0040f520
mov dword [ebp - 0x1c8], eax
mov ecx, dword [ebp - 0x16c]
add ecx, 8
call fcn.0040f570
push eax
push 0x4311e8
mov edx, dword [ebp - 0x1c8]
push edx
mov eax, dword [ebp - 0x1c8]
mov ecx, dword [eax]
mov edx, dword [ecx]
call edx
lea eax, [ebp - 0x16c]
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 0xc
call fcn.0040f400
cmp dword [ebp - 0x34], 0
je 0x40bb19
lea ecx, [ebp - 0x3c]
call fcn.0040f230
push eax
mov ecx, dword [ebp - 0x16c]
call fcn.0040f230
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x40bb19
mov ecx, dword [ebp - 0x44]
cmp dword [ecx + 0x24], 0xffffffff
jne 0x40bb19
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x58]
mov dword [edx + 0x24], eax
cmp dword [ebp - 0x168], 0
je 0x40bb36
mov ecx, dword [ebp - 0x168]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x168]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 0x58]
add edx, 1
mov dword [ebp - 0x58], edx
push 0
lea ecx, [ebp - 0x50]
call fcn.00412fd0
jmp 0x40b962
lea ecx, [ebp - 0x50]
call fcn.00413400
lea ecx, [ebp - 0x48]
call fcn.00413400
push 0
lea ecx, [ebp - 0x2c]
call fcn.00412fd0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x40]
call fcn.00401a20
lea ecx, [ebp - 0x3c]
call fcn.00401a20
lea ecx, [ebp - 0x38]
call fcn.00413400
jmp 0x40b71b
mov ecx, 0x438658
call fcn.00408020
test eax, eax
jne 0x40bc37
lea edx, [ebp - 0x174]
push edx
mov ecx, dword [ebp - 0x194]
add ecx, 0x24
call fcn.00405b30
jmp 0x40bbcc
lea ecx, [ebp - 0x174]
call fcn.00408c40
lea eax, [ebp - 0x18c]
push eax
mov ecx, dword [ebp - 0x194]
add ecx, 0x24
call fcn.00408bc0
push eax
lea ecx, [ebp - 0x174]
call fcn.0041fb40
movzx ecx, al
test ecx, ecx
je 0x40bc37
lea ecx, [ebp - 0x174]
call fcn.0040f500
mov ecx, dword [eax]
add ecx, 8
call fcn.0040f230
push eax
mov ecx, 0x438658
call fcn.0040f230
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x40bc35
lea ecx, [ebp - 0x174]
call fcn.0040f500
mov edx, dword [ebp - 0x194]
mov eax, dword [eax]
mov dword [edx + 0x54], eax
jmp 0x40bbc1
mov ecx, dword [ebp - 0x194]
add ecx, 0x24
call fcn.00408bf0
mov dword [ebp - 0x190], eax
lea ecx, [ebp - 4]
call fcn.00413400
lea ecx, [ebp - 0x10]
call fcn.00413400
lea ecx, [ebp - 0x2c]
call fcn.00413400
mov eax, dword [ebp - 0x190]
mov ecx, dword [ebp - 0x60]
xor ecx, ebp
call fcn.0042d238
mov esp, ebp
pop ebp
ret