Function at 0x403fa0
Capabilities:
Enumerate devices by category

Disassembly:
push 0xffffffffffffffff
push 0x409e00
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 0x40404b
mov eax, dword [esp + 0x18]
mov byte [esp + 0x34], 1
cmp eax, ebx
je 0x40400a
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x34], bl
cmp eax, ebx
je 0x40401c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
cmp eax, ebx
je 0x40437a
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 0x4040ba
mov eax, dword [esp + 0x18]
mov byte [esp + 0x34], 1
cmp eax, ebx
je 0x404079
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x34], bl
cmp eax, ebx
je 0x40408b
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
cmp eax, ebx
je 0x4042a4
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 0x40410f
mov eax, dword [esp + 0x18]
mov byte [esp + 0x34], 1
cmp eax, ebx
je 0x4040cf
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x34], bl
cmp eax, ebx
je 0x4040e1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
cmp eax, ebx
je 0x4040f7
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 0x404206
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 0x404256
mov word [esp + 0x1c], bx
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x1c]
push ebx
push edx
mov ecx, dword [eax]
push 0x40c700
push eax
mov byte [esp + 0x44], 4
call dword [ecx + 0xc]
cmp eax, ebx
jge 0x4041a6
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 0x4041ec
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x4041ec
mov eax, dword [esp + 0x24]
push eax
push ebp
call fcn.004054a6
add esp, 8
test eax, eax
je 0x4042b9
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 0x4041ec
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 0x404133
mov eax, dword [esp + 0x18]
mov byte [esp + 0x34], 1
cmp eax, ebx
je 0x404219
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x34], bl
cmp eax, ebx
je 0x40422b
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
cmp eax, ebx
je 0x404241
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 0x404269
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x34], 1
cmp eax, ebx
je 0x40427c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x34], bl
cmp eax, ebx
je 0x40428e
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
cmp eax, ebx
je 0x4042a4
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 0x4042f1
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 0x404325
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 0x40433f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x34], 1
cmp eax, ebx
je 0x404352
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x34], bl
cmp eax, ebx
je 0x404364
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
cmp eax, ebx
je 0x40437a
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