Function at 0x40aff0
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov dword [ebp - 0x64], 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 0x40b098
mov dword [ebp - 0x44], 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 - 0x44]
jmp 0x40b383
lea ecx, [ebp - 4]
call fcn.0040f520
mov dword [ebp - 0x68], eax
push 0
lea ecx, [ebp - 0x10]
call fcn.0040f570
push eax
push 0x431088
mov edx, dword [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
call edx
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jl 0x40b0db
push 0
lea ecx, [ebp - 0x10]
call fcn.0040f480
movzx eax, al
test eax, eax
je 0x40b102
mov dword [ebp - 0x48], 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 - 0x48]
jmp 0x40b383
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x10]
call fcn.0040f520
mov dword [ebp - 0x6c], eax
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040f570
push eax
push 1
mov edx, dword [ebp - 0x6c]
push edx
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
call edx
test eax, eax
jne 0x40b2a9
lea ecx, [ebp - 0x34]
call fcn.0040f550
lea ecx, [ebp - 0x2c]
call fcn.0040f520
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x34]
call fcn.0040f570
push eax
push 0x430eec
push 0
push 0
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
call eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x40b17f
lea ecx, [ebp - 0x34]
call fcn.00413400
jmp 0x40b109
mov ecx, 8
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x34]
call fcn.0040f520
mov dword [ebp - 0x74], eax
push 0
lea edx, [ebp - 0x28]
push edx
push 0x42fd28
mov eax, dword [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x40b1c2
lea ecx, [ebp - 0x34]
call fcn.00413400
jmp 0x40b109
push 0xc
call fcn.0042d288
add esp, 4
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x40b1e2
mov ecx, dword [ebp - 0x4c]
call fcn.0040ee90
mov dword [ebp - 0x78], eax
jmp 0x40b1e9
mov dword [ebp - 0x78], 0
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x38]
add ecx, 8
call fcn.004019f0
lea ecx, [ebp - 0x2c]
call fcn.0040f520
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x38]
add ecx, 4
call fcn.0040f570
push eax
push 0x431198
push 0
push 0
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
test eax, eax
jl 0x40b253
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x64]
add ecx, 0x3c
call fcn.0040f400
mov edx, dword [ebp - 0x64]
cmp dword [edx + 0x58], 0
jne 0x40b251
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x38]
mov dword [eax + 0x58], ecx
jmp 0x40b27f
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x40b278
push 1
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x50]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x80], eax
jmp 0x40b27f
mov dword [ebp - 0x80], 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.00412fd0
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
lea ecx, [ebp - 0x34]
call fcn.00413400
jmp 0x40b109
mov ecx, 0x438654
call fcn.00408020
test eax, eax
jne 0x40b32b
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x64]
add ecx, 0x3c
call fcn.00405b30
jmp 0x40b2d0
lea ecx, [ebp - 0x40]
call fcn.00408c40
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, dword [ebp - 0x64]
add ecx, 0x3c
call fcn.00408bc0
push eax
lea ecx, [ebp - 0x40]
call fcn.0041fb40
movzx edx, al
test edx, edx
je 0x40b329
lea ecx, [ebp - 0x40]
call fcn.0040f500
mov ecx, dword [eax]
add ecx, 8
call fcn.0040f230
push eax
mov ecx, 0x438654
call fcn.0040f230
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x40b327
lea ecx, [ebp - 0x40]
call fcn.0040f500
mov ecx, dword [ebp - 0x64]
mov edx, dword [eax]
mov dword [ecx + 0x58], edx
jmp 0x40b2c8
jmp 0x40b35a
mov eax, dword [ebp - 0x64]
cmp dword [eax + 0x58], 0
je 0x40b35a
mov ecx, dword [ebp - 0x64]
mov ecx, dword [ecx + 0x58]
add ecx, 8
call fcn.00408020
test eax, eax
jne 0x40b35a
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 0x58]
add eax, 8
push eax
mov ecx, 0x438654
call fcn.00401960
mov ecx, dword [ebp - 0x64]
add ecx, 0x3c
call fcn.00408bf0
mov dword [ebp - 0x60], 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 - 0x60]
mov esp, ebp
pop ebp
ret