Function at 0x403bb0
Capabilities:
Enumerate devices by category

Disassembly:
push 0xffffffffffffffff
push 0x409dc0
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 eax, dword [esp + 0x44]
lea ecx, [esp + 0x18]
push ecx
push 0x40c6f0
push 7
push ebx
push 0x40a268
mov byte [esp + 0x48], 2
mov dword [eax], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jge 0x403c5b
mov eax, dword [esp + 0x18]
mov byte [esp + 0x34], 1
cmp eax, ebx
je 0x403c1a
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x34], bl
cmp eax, ebx
je 0x403c2c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
cmp eax, ebx
je 0x403f8a
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
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
push ebx
push edx
mov edx, dword [esp + 0x44]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
mov esi, eax
cmp esi, ebx
jge 0x403cca
mov eax, dword [esp + 0x18]
mov byte [esp + 0x34], 1
cmp eax, ebx
je 0x403c89
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x34], bl
cmp eax, ebx
je 0x403c9b
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
cmp eax, ebx
je 0x403eb4
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
je 0x403d1f
mov eax, dword [esp + 0x18]
mov byte [esp + 0x34], 1
cmp eax, ebx
je 0x403cdf
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x34], bl
cmp eax, ebx
je 0x403cf1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
cmp eax, ebx
je 0x403d07
mov edx, dword [eax]
push eax
call dword [edx + 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 edx, [esp + 0x10]
push ebx
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x403e16
mov ebp, dword [esp + 0x40]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x3c]
push edx
push 0x40a158
mov ecx, dword [eax]
push ebx
push ebx
push eax
mov byte [esp + 0x48], 3
call dword [ecx + 0x24]
mov esi, eax
cmp esi, ebx
jl 0x403e66
mov word [esp + 0x1c], bx
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x1c]
push ebx
push edx
mov ecx, dword [eax]
push str.FriendlyName
push eax
mov byte [esp + 0x44], 4
call dword [ecx + 0xc]
cmp eax, ebx
jge 0x403db6
lea eax, [esp + 0x10]
push ebx
push eax
call fcn.00402b50
lea ecx, [esp + 0x1c]
push ecx
call edi
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x34], 2
cmp eax, ebx
je 0x403dfc
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x403dfc
mov eax, dword [esp + 0x24]
push eax
push ebp
call fcn.004054a6
add esp, 8
test eax, eax
je 0x403ec9
lea ecx, [esp + 0x10]
push ebx
push ecx
call fcn.00402b50
lea edx, [esp + 0x3c]
push ebx
push edx
call fcn.00402b50
lea eax, [esp + 0x1c]
push eax
call edi
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x34], 2
cmp eax, ebx
je 0x403dfc
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 0x403d43
mov eax, dword [esp + 0x18]
mov byte [esp + 0x34], 1
cmp eax, ebx
je 0x403e29
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x34], bl
cmp eax, ebx
je 0x403e3b
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
cmp eax, ebx
je 0x403e51
mov ecx, dword [eax]
push eax
call dword [ecx + 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 + 0x3c]
mov byte [esp + 0x34], 2
cmp eax, ebx
je 0x403e79
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x34], 1
cmp eax, ebx
je 0x403e8c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x34], bl
cmp eax, ebx
je 0x403e9e
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
cmp eax, ebx
je 0x403eb4
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 dword [esp + 0x40], ebx
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x40]
push ecx
push 0x40a218
mov edx, dword [eax]
push ebx
push ebx
push eax
mov byte [esp + 0x48], 5
call dword [edx + 0x20]
mov esi, eax
cmp esi, ebx
jl 0x403f01
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
push ecx
push 0x40c6c0
mov edx, dword [eax]
push eax
call dword [edx]
lea edx, [esp + 0x10]
push ebx
push edx
call fcn.00402b50
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00402b50
lea ecx, [esp + 0x40]
push ebx
push ecx
call fcn.00402b50
mov eax, dword [esp + 0x40]
mov byte [esp + 0x34], 4
cmp eax, ebx
je 0x403f35
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea eax, [esp + 0x1c]
push eax
call edi
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x34], 2
cmp eax, ebx
je 0x403f4f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x34], 1
cmp eax, ebx
je 0x403f62
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x34], bl
cmp eax, ebx
je 0x403f74
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
cmp eax, ebx
je 0x403f8a
mov edx, dword [eax]
push eax
call dword [edx + 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