Function at 0x4042a0
Capabilities:
Enumerate devices by category

Disassembly:
push 0xffffffffffffffff
push 0x42817b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x538
push ebx
lea eax, [esp + 0x1c]
push eax
push 0x42a7b4
push 0x17
xor ebx, ebx
push ebx
push 0x42a8d4
mov dword [esp + 0x30], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x4042f6
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x538]
mov dword fs:[0], ecx
add esp, 0x544
ret
mov eax, dword [esp + 0x1c]
push ebx
lea edx, [esp + 0xc]
push edx
lea edx, [esp + 0x554]
push edx
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x40451a
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [esp + 8]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 8]
push ecx
push 1
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], ebx
mov edx, dword [eax]
push eax
call dword [edx + 0xc]
test eax, eax
jl 0x404510
push ebp
mov ebp, dword [esp + 0x560]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
lea ebx, [ebx]
cmp dword [esp + 0x20], ebx
je 0x40450d
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4044ef
lea ecx, [esp + 0x24]
push ecx
push ebx
push ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov edx, dword [eax]
push eax
call dword [edx + 0x50]
cmp eax, ebx
jl 0x4044c1
mov eax, dword [esp + 0x24]
push ebx
push 0x429e8a
push 0x400
lea edx, [esp + 0x154]
push edx
push 0xffffffffffffffff
push eax
push ebx
push ebx
call edi
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
push 0x42e304
push ebx
push ebx
push eax
call dword [edx + 0x24]
cmp eax, ebx
jl 0x4044c1
mov eax, dword [esp + 0x1c]
push ebx
lea ecx, [esp + 0x3c]
push ecx
push 0x429e70
mov word [esp + 0x44], 8
mov edx, dword [eax]
push eax
call dword [edx + 0xc]
cmp eax, ebx
jl 0x4044c1
mov eax, dword [esp + 0x40]
push ebx
push ebx
push 0x100
lea edx, [esp + 0x54]
push edx
push 0xffffffffffffffff
push eax
push ebx
push ebx
mov byte [esp + 0x68], bl
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x42a7a4
push ebx
push ebx
push eax
call dword [ecx + 0x20]
cmp eax, ebx
jl 0x4044c1
lea ecx, [esp + 0x2c]
call fcn.00408380
lea eax, [esp + 0x148]
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x554], ebx
call fcn.00408450
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x30]
call fcn.00408410
mov edx, dword [esp + 0x18]
push edx
call fcn.00403b00
add esp, 4
push eax
lea ecx, [esp + 0x30]
call fcn.00408290
mov eax, dword [ebp + 8]
push ebx
push eax
mov ecx, ebp
call fcn.00403f30
lea ecx, [esp + 0x2c]
mov esi, eax
push ecx
lea ecx, [esi + 8]
call fcn.00408350
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x4044a7
mov dword [eax], esi
jmp 0x4044aa
mov dword [ebp + 4], esi
lea ecx, [esp + 0x2c]
mov dword [ebp + 8], esi
mov dword [esp + 0x550], 0xffffffff
call fcn.004082b0
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4044d3
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4044e5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x14]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jge 0x404360
pop esi
pop edi
pop ebp
mov eax, dword [esp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x53c]
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x544
ret