Function at 0x592a10
Capabilities:
Enumerate devices by category

Disassembly:
push 0xffffffffffffffff
push 0x621380
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
lea eax, [esp + 0xc]
push eax
push 0x692404
push 1
xor esi, esi
push esi
push 0x692544
mov dword [esp + 0x1c], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x592a71
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push esi
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x84]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 8]
cmp eax, esi
je 0x592ea6
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 8]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x80], esi
call eax
test eax, eax
jne 0x592e5b
push ebx
push ebp
push edi
nop
cmp dword [esp + 0x24], 1
jne 0x592e58
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push 0x694520
push esi
push esi
push eax
mov eax, dword [ecx + 0x24]
call eax
test eax, eax
jl 0x592e2c
mov eax, dword [esp + 0x20]
push esi
lea edx, [esp + 0x68]
push edx
mov word [esp + 0x6c], 8
mov dword [esp + 0x74], esi
mov ecx, dword [eax]
push str.FriendlyName
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jl 0x592e20
mov ecx, dword [esp + 0x6c]
mov ebp, 0x6575cc
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
call fcn.004039e0
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov byte [esp + 0x7c], 2
mov ebx, 1
lea ebx, [ebx]
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
cmp esi, eax
mov edi, eax
je 0x592b6f
mov edi, edi
mov edx, dword [esp + 0x30]
mov eax, dword [esi]
push edx
push eax
call fcn.005f9576
add esp, 8
test eax, eax
je 0x592cf0
add esi, 0xc
cmp esi, edi
jne 0x592b50
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x4c]
call fcn.00590a70
mov ecx, dword [esp + 0x88]
push 0x692534
push ecx
call fcn.00409a20
add esp, 8
test eax, eax
je 0x592c5c
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0x50]
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push eax
xor bl, bl
call edx
test eax, eax
jl 0x592be3
mov eax, dword [esp + 0x1c]
push 0xb
push str._device:cm:
push eax
call fcn.005fb2b9
add esp, 0xc
test eax, eax
jne 0x592bcf
mov bl, 1
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test bl, bl
mov edi, str.__VFW_DirectShow_
jne 0x592be8
mov edi, str.__DirectShow_
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x592bf0
sub eax, edx
sar eax, 1
lea ecx, [edi + eax*2]
cmp edi, ecx
je 0x592c5c
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
sub ecx, edi
sar ecx, 1
sub eax, edx
sub esi, edx
sar eax, 1
mov ebp, ecx
sar esi, 1
mov ecx, eax
sub ecx, esi
cmp ecx, ebp
jae 0x592c38
push eax
push esi
push ebp
lea ecx, [esp + 0x3c]
call fcn.00518d68
mov edx, dword [esp + 0x30]
add ebp, ebp
push ebp
lea edx, [edx + esi*2]
push edi
push edx
call fcn.005f7b00
mov eax, dword [esp + 0x40]
add esp, 0xc
add eax, ebp
mov dword [esp + 0x34], eax
mov word [eax], 0
mov ebp, 0x6575cc
mov eax, dword [esp + 0x10]
test eax, eax
mov ebx, eax
mov dword [esp + 0x2c], ebx
je 0x592c72
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
test ebx, ebx
mov byte [esp + 0x7c], 3
mov dword [esp + 0x54], ebx
je 0x592c87
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
push ebx
call ecx
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
sub esi, eax
sar esi, 1
mov byte [esp + 0x7c], 4
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
mov edi, eax
je 0x592cd9
push 0
push esi
lea ecx, [esp + 0x60]
call fcn.00518d09
mov eax, dword [esp + 0x58]
cmp eax, ebp
je 0x592cd9
add esi, esi
push esi
push edi
push eax
call fcn.005f7b00
mov edx, dword [esp + 0x64]
lea eax, [esi + edx]
mov dword [esp + 0x68], eax
add esp, 0xc
mov word [eax], 0
mov edi, dword [esp + 0x84]
mov edx, dword [edi + 4]
test edx, edx
mov byte [esp + 0x7c], 5
jne 0x592d60
xor ecx, ecx
jmp 0x592d68
cmp ebx, 1
jne 0x592d40
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x34]
sub esi, ecx
sar eax, 1
sar esi, 1
cmp eax, esi
mov edi, ecx
jae 0x592d1c
push eax
push esi
lea ecx, [esp + 0x44]
call fcn.00518d09
mov eax, dword [esp + 0x3c]
cmp eax, ebp
je 0x592d40
add esi, esi
push esi
push edi
push eax
call fcn.005f7b00
mov eax, dword [esp + 0x48]
add esp, 0xc
add eax, esi
mov dword [esp + 0x40], eax
mov word [eax], 0
mov ecx, dword [esp + 0x3c]
add ebx, 1
push ebx
push ecx
lea edx, [esp + 0x38]
push 0x670430
push edx
call fcn.0051905c
add esp, 0x10
jmp 0x592b40
mov ecx, dword [edi + 8]
sub ecx, edx
sar ecx, 4
test edx, edx
je 0x592da3
mov eax, dword [edi + 0xc]
sub eax, edx
sar eax, 4
cmp ecx, eax
jae 0x592da3
mov ecx, dword [esp + 0x2c]
mov esi, dword [edi + 8]
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x28]
push eax
push ecx
push edi
lea edx, [esp + 0x60]
push edx
push 1
push esi
call fcn.00590560
add esp, 0x18
add esi, 0x10
mov dword [edi + 8], esi
jmp 0x592db5
mov eax, dword [edi + 8]
lea ecx, [esp + 0x54]
push ecx
push 1
push eax
mov ecx, edi
call fcn.00590d20
mov eax, dword [esp + 0x58]
cmp eax, ebp
mov byte [esp + 0x7c], 3
je 0x592dcb
push eax
call fcn.005f7371
add esp, 4
mov eax, dword [esp + 0x54]
test eax, eax
je 0x592ddb
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
test ebx, ebx
mov byte [esp + 0x7c], 2
je 0x592dec
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
push ebx
call edx
mov eax, dword [esp + 0x6c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x3c]
cmp eax, ebp
je 0x592e08
push eax
call fcn.005f7371
add esp, 4
mov eax, dword [esp + 0x30]
cmp eax, ebp
mov byte [esp + 0x7c], 0
je 0x592e1e
push eax
call fcn.005f7371
add esp, 4
xor esi, esi
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x14]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
je 0x592ab0
pop edi
pop ebp
pop ebx
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
cmp eax, edx
je 0x592e99
sub eax, 0xc
mov dword [esp + 0x40], eax
mov ecx, dword [eax]
cmp ecx, 0x6575cc
je 0x592e95
push ecx
call fcn.005f7371
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
add esp, 4
cmp eax, edx
jne 0x592e73
cmp edx, esi
je 0x592ea6
push edx
call fcn.005f7a6f
add esp, 4
mov ecx, dword [esp + 0x68]
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret