Function at 0x404390
Capabilities:
Enumerate devices by category

Disassembly:
push 0xffffffffffffffff
push 0x409e38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov edi, dword [esp + 0x40]
lea eax, [esp + 0x18]
push eax
push 0x40c6f0
push 7
push ebx
push 0x40a268
mov byte [esp + 0x48], 2
mov word [edi], bx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jge 0x40443c
mov eax, dword [esp + 0x18]
mov byte [esp + 0x34], 1
cmp eax, ebx
je 0x4043fb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x34], bl
cmp eax, ebx
je 0x40440d
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
cmp eax, ebx
je 0x4046c7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ebx
push ecx
mov ecx, dword [esp + 0x44]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0xc]
mov esi, eax
cmp esi, ebx
jge 0x4044a7
mov eax, dword [esp + 0x18]
mov byte [esp + 0x34], 1
cmp eax, ebx
je 0x40446a
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x34], bl
cmp eax, ebx
je 0x40447c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
cmp eax, ebx
je 0x404492
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
je 0x4044fc
mov eax, dword [esp + 0x18]
mov byte [esp + 0x34], 1
cmp eax, ebx
je 0x4044bc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x34], bl
cmp eax, ebx
je 0x4044ce
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
cmp eax, ebx
je 0x4044e4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
pop ebp
mov eax, 0x8000ffff
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ebx
push ecx
mov edx, dword [eax]
push 1
push eax
call dword [edx + 0xc]
test eax, eax
jne 0x404629
mov ebp, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [esp + 0x40], ebx
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x40]
push ecx
push 0x40a158
mov edx, dword [eax]
push ebx
push ebx
push eax
mov byte [esp + 0x48], 3
call dword [edx + 0x24]
mov esi, eax
cmp esi, ebx
jl 0x404679
mov word [esp + 0x1c], bx
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x1c]
push ebx
push ecx
mov edx, dword [eax]
push str.FriendlyName
push eax
mov byte [esp + 0x44], 4
call dword [edx + 0xc]
cmp eax, ebx
jl 0x404599
movsx eax, word [edi]
mov edx, dword [esp + 0x24]
shl eax, 0xa
push edx
lea ecx, [eax + edi + 2]
push ecx
call fcn.004053ee
mov eax, dword [esp + 0x48]
add esp, 8
lea ecx, [esp + 0x1c]
mov edx, dword [eax]
push ebx
push ecx
push 0x40c700
push eax
call dword [edx + 0xc]
cmp eax, ebx
jge 0x4045ba
lea edx, [esp + 0x10]
push ebx
push edx
call fcn.00402b50
lea eax, [esp + 0x1c]
push eax
call ebp
mov eax, dword [esp + 0x40]
mov byte [esp + 0x34], 2
cmp eax, ebx
je 0x40460f
jmp 0x404609
movsx eax, word [edi]
mov edx, dword [esp + 0x24]
shl eax, 0xa
push edx
lea ecx, [eax + edi + 0x6002]
push ecx
call fcn.004053ee
add esp, 8
inc word [edi]
lea edx, [esp + 0x10]
push ebx
push edx
call fcn.00402b50
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x4045f1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edx, [esp + 0x1c]
mov dword [esp + 0x40], ebx
push edx
call ebp
mov eax, dword [esp + 0x40]
mov byte [esp + 0x34], 2
cmp eax, ebx
je 0x40460f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ebx
push ecx
mov edx, dword [eax]
push 1
push eax
call dword [edx + 0xc]
test eax, eax
je 0x40451c
mov eax, dword [esp + 0x18]
mov byte [esp + 0x34], 1
cmp eax, ebx
je 0x40463c
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x34], bl
cmp eax, ebx
je 0x40464e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
cmp eax, ebx
je 0x404664
mov edx, dword [eax]
push eax
call dword [edx + 8]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov eax, dword [esp + 0x40]
mov byte [esp + 0x34], 2
cmp eax, ebx
je 0x40468c
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x34], 1
cmp eax, ebx
je 0x40469f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x34], bl
cmp eax, ebx
je 0x4046b1
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
cmp eax, ebx
je 0x4046c7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret