Function at 0x420dd0
Capabilities:
Enumerate devices by category
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ef870
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x50
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x4213e3
cmp dword [esp + 0x68], ebx
je 0x4213e3
cmp dword [esp + 0x6c], ebx
je 0x4213e3
cmp dword [esp + 0x70], ebx
je 0x4213e3
lea eax, [esp + 0x24]
push ebp
lea edx, [esp + 0x1c]
push eax
push edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], ebx
call fcn.00421400
cmp eax, ebx
mov dword [esp + 0x34], eax
jne 0x4213cc
mov ebp, dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [esp + 0x14]
push eax
push 0x4fcaac
push 1
push ebx
push 0x4fcbac
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebx
call ebp
cmp eax, ebx
jl 0x4213b8
mov eax, dword [esp + 0x14]
push esi
push edi
lea edx, [esp + 0x10]
mov ecx, dword [eax]
push ebx
push edx
push 0x4fcb9c
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jl 0x4210cb
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4210dd
lea edx, [esp + 0x20]
push ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x38], ebx
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x4210bd
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x28]
push edx
push 0x4fc6cc
mov ecx, dword [eax]
push ebx
push ebx
push eax
mov dword [esp + 0x7c], ebx
call dword [ecx + 0x24]
cmp eax, ebx
jl 0x420fd1
mov word [esp + 0x40], bx
push str.FriendlyName
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [esp + 0x38], esi
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x40]
push ebx
push edx
mov ecx, dword [eax]
push esi
push eax
mov byte [esp + 0x78], 2
call dword [ecx + 0xc]
push esi
mov byte [esp + 0x6c], 1
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x48]
mov ecx, dword [0x50d0e0]
cmp eax, ebx
mov esi, eax
mov dword [esp + 0x14], ecx
je 0x420f6e
mov edx, eax
shr edx, 0x10
jne 0x420f36
and eax, 0xffff
lea ecx, [esp + 0x14]
push eax
call fcn.00407b60
jmp 0x420f6e
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
cmp edi, ebx
je 0x420f6e
push edi
lea ecx, [esp + 0x18]
call fcn.00402190
test eax, eax
je 0x420f6e
lea ecx, [edi + edi]
lea eax, [edi + edi + 2]
cmp eax, ecx
jb 0x420f6e
mov edi, dword [esp + 0x14]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x5258f0]
mov byte [esp + 0x68], 3
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.004dec69
add esp, 8
test eax, eax
je 0x421018
mov eax, dword [esp + 0x14]
mov edx, dword [0x50d0e4]
mov byte [esp + 0x68], 1
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x420fc2
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x420fc2
mov edx, dword [esp + 0x14]
lea eax, [edx - 0xc]
push eax
call fcn.004de3a6
add esp, 4
lea eax, [esp + 0x40]
mov byte [esp + 0x68], bl
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x420fe3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x28]
mov dword [esp + 0x68], 0xffffffff
cmp eax, ebx
je 0x420ff9
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push ebx
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x420eac
jmp 0x4210bd
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x34]
push edx
push 0x4fca5c
mov ecx, dword [eax]
push ebx
push ebx
push eax
call dword [ecx + 0x20]
cmp eax, ebx
jl 0x421068
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x38]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jl 0x421068
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov dword [ecx], eax
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x24]
mov dword [eax], edx
mov edx, dword [esp + 0x74]
mov dword [edx], ecx
mov eax, dword [esp + 0x14]
mov edx, dword [0x50d0e4]
mov byte [esp + 0x68], 1
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42109c
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42109c
mov edx, dword [esp + 0x14]
lea eax, [edx - 0xc]
push eax
call fcn.004de3a6
add esp, 4
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x68], 0xffffffff
cmp eax, ebx
je 0x4210bd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x4210cb
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4210dd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4210ef
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x1c]
push eax
push 0x4fcaac
push 1
push ebx
push 0x4fcbac
call ebp
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push ebx
push edx
mov ecx, dword [eax]
push 0x4fcb8c
push eax
call dword [ecx + 0xc]
mov ebp, eax
cmp ebp, ebx
jl 0x42138e
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4213a0
lea edx, [esp + 0x18]
push ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x3c], ebx
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x42137c
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push edx
push 0x4fc6cc
mov ecx, dword [eax]
push ebx
push ebx
push eax
mov dword [esp + 0x7c], 4
call dword [ecx + 0x24]
mov ebp, eax
cmp ebp, ebx
jl 0x42128c
mov word [esp + 0x50], bx
push str.FriendlyName
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [esp + 0x34], esi
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x50]
push ebx
push edx
mov ecx, dword [eax]
push esi
push eax
mov byte [esp + 0x78], 6
call dword [ecx + 0xc]
push esi
mov byte [esp + 0x6c], 5
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x58]
mov ecx, dword [0x50d0e0]
cmp eax, ebx
mov edi, eax
mov dword [esp + 0x78], ecx
je 0x421228
mov edx, eax
shr edx, 0x10
jne 0x4211dc
and eax, 0xffff
lea ecx, [esp + 0x78]
push eax
call fcn.00407b60
jmp 0x421228
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, ebx
je 0x421228
lea eax, [esi + esi + 0xe]
push eax
call fcn.004de48f
add esp, 4
cmp eax, ebx
je 0x421228
mov dword [eax], 1
lea ecx, [esi + esi]
mov word [eax + esi*2 + 0xc], bx
mov dword [eax + 4], esi
mov dword [eax + 8], esi
push ecx
lea edx, [esi + esi + 2]
add eax, 0xc
push edi
push edx
push eax
mov dword [esp + 0x88], eax
call fcn.00402060
add esp, 0x10
mov eax, dword [0x5258f0]
mov byte [esp + 0x68], 7
push eax
mov eax, dword [esp + 0x7c]
push eax
call fcn.004dec69
add esp, 8
test eax, eax
je 0x4212d3
mov eax, dword [esp + 0x78]
mov edx, dword [0x50d0e4]
mov byte [esp + 0x68], 5
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42127c
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42127c
mov edx, dword [esp + 0x78]
lea eax, [edx - 0xc]
push eax
call fcn.004de3a6
add esp, 4
lea eax, [esp + 0x50]
mov byte [esp + 0x68], 4
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x42129e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x68], 0xffffffff
cmp eax, ebx
je 0x4212b4
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push ebx
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x42114c
jmp 0x42137c
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x38]
push edx
push 0x4fca5c
mov ecx, dword [eax]
push ebx
push ebx
push eax
call dword [ecx + 0x20]
mov ebp, eax
cmp ebp, ebx
jl 0x421327
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x3c]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
mov ebp, eax
cmp ebp, ebx
jl 0x421327
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov dword [ecx], eax
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x24]
mov dword [eax], edx
mov edx, dword [esp + 0x74]
mov dword [edx], ecx
mov eax, dword [esp + 0x78]
mov edx, dword [0x50d0e4]
mov byte [esp + 0x68], 5
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42135b
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42135b
mov edx, dword [esp + 0x78]
lea eax, [edx - 0xc]
push eax
call fcn.004de3a6
add esp, 4
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x68], 0xffffffff
cmp eax, ebx
je 0x42137c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x42138e
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4213a0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x1c]
pop edi
cmp eax, ebx
pop esi
je 0x4213b4
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + 0x14], ebx
cmp ebp, ebx
jge 0x4213cc
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x28]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x34]
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
add esp, 0x5c
ret 0x10
mov ecx, dword [esp + 0x54]
mov eax, 0x80004003
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret 0x10