Function at 0x40add7
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x41f040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor ebx, ebx
mov edi, ecx
push 2
push ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x40b016
push esi
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [ebp - 0x2c]
push eax
push 0x4010a4
push 1
push ebx
push 0x4010d4
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
call esi
test eax, eax
js 0x40af8f
lea eax, [ebp - 0x28]
push eax
push 0x401094
push 1
push ebx
push 0x4010e4
call esi
test eax, eax
js 0x40af8f
mov eax, dword [ebp - 0x2c]
push dword [ebp - 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
lea eax, [ebp - 0x38]
push eax
push 0x401074
push 1
push ebx
push 0x4010f4
call esi
test eax, eax
js 0x40af8f
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x3c]
push ebx
push edx
push 0x401104
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x40af8f
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x40]
push ebx
push edx
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x40af8f
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x34]
push edx
push 0x401084
push ebx
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x20]
test eax, eax
js 0x40af8f
xor eax, eax
mov dword [ebp - 0x24], 0xff9effbc
mov dword [ebp - 0x20], 0xff8bff8f
mov dword [ebp - 0x1c], 0xff8dff8a
mov dword [ebp - 0x18], 0xffdfff9a
mov dword [ebp - 0x14], 0xff96ffb9
mov dword [ebp - 0x10], 0xff8bff93
mov dword [ebp - 0xc], 0xff8dff9a
mov word [ebp - 8], ax
not word [ebp + eax*2 - 0x24]
inc eax
cmp eax, 0xe
jb 0x40af00
xor eax, eax
lea edx, [ebp - 0x24]
mov word [ebp - 8], ax
mov eax, dword [ebp - 0x28]
push edx
push dword [ebp - 0x34]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x40af8f
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x30]
push edx
push 0x401064
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x40af8f
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x44]
push ebx
push edx
push dword [edi + 4]
mov ecx, dword [eax]
push 0x4010c4
push eax
call dword [ecx + 0x14]
test eax, eax
js 0x40af8f
push dword [ebp - 0x44]
mov eax, dword [ebp - 0x2c]
push ebx
push dword [ebp - 0x34]
mov ecx, dword [eax]
push 0x4010b4
push 0x401114
push eax
call dword [ecx + 0x1c]
test eax, eax
js 0x40af8f
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], ecx
test edx, edx
je 0x40afc0
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x40afca
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x40afd7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x40afe4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x40aff1
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
test ebx, ebx
je 0x40affb
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
test edi, edi
je 0x40b005
mov eax, dword [edi]
push edi
call dword [eax + 8]
test esi, esi
je 0x40b00f
mov eax, dword [esi]
push esi
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00418755
leave
ret