Function at 0x10009950
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100307ad
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x10042040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.CCaptureVideo_call_Open_n
call fcn.100079f0
add esp, 4
lea eax, [edi + 0x10]
push eax
push 0x10035c44
push 3
push 0
push 0x10035c74
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x10009d88
lea eax, [edi + 0xc]
push eax
push 0x10035c34
push 1
push 0
push 0x10035c84
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x10009d88
mov eax, dword [edi + 0x10]
push dword [edi + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov ecx, dword [edi + 0xc]
lea eax, [edi + 0x14]
push eax
push 0x10035bc4
push ecx
mov edx, dword [ecx]
call dword [edx]
mov esi, eax
test esi, esi
js 0x10009d88
mov ecx, dword [edi + 0xc]
lea eax, [edi + 0x18]
push eax
push 0x10035bd4
push ecx
mov edx, dword [ecx]
call dword [edx]
mov esi, eax
test esi, esi
js 0x10009d88
mov dword [ebp - 0x74], 0
lea eax, [ebp - 0x74]
mov dword [ebp - 4], 0
push eax
push 0x10035c14
push 1
push 0
push 0x10035c94
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
je 0x10009a4b
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x74]
jmp 0x10009d7e
mov dword [ebp - 0x70], 0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 0x74]
push 0
push edx
push 0x10035ca4
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x10009a8e
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x10009a7f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x74]
jmp 0x10009d7e
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x70]
lea edx, [ebp - 0x80]
push edx
lea edx, [ebp - 0x78]
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
xor esi, esi
nop dword [eax]
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0x7c]
push edx
push 0x10034c0c
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x24]
test eax, eax
js 0x10009b1e
mov eax, 8
lea edx, [ebp - 0x90]
mov word [ebp - 0x90], ax
mov eax, dword [ebp - 0x7c]
push 0
push edx
push str.FriendlyName
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x10009b15
test esi, esi
jne 0x10009b09
mov ecx, dword [ebp - 0x78]
lea eax, [edi + 0x1c]
push eax
push 0x10035c24
push esi
mov edx, dword [ecx]
push esi
push ecx
call dword [edx + 0x20]
push dword [ebp - 0x88]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x78]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x70]
lea edx, [ebp - 0x80]
push edx
lea edx, [ebp - 0x78]
inc esi
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test esi, esi
jle 0x10009ab0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x10009b54
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x10009b68
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [edi + 0xc]
push str.Capture_Filter
push dword [edi + 0x1c]
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
lea eax, [edi + 0x20]
push eax
push 0x10035bf4
push 1
push 0
push 0x10035c04
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x10009d88
mov ecx, dword [edi + 0x20]
mov dword [ebp - 0x6c], 0
test ecx, ecx
je 0x10009bc2
mov eax, dword [ecx]
lea edx, [ebp - 0x6c]
push edx
push 0x10035c24
push ecx
call dword [eax]
test eax, eax
jns 0x10009bc2
mov dword [ebp - 0x6c], 0
mov dword [ebp - 4], 2
lea edx, [ebp - 0x68]
mov eax, dword [edi + 0x20]
xorps xmm0, xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
movups xmm0, xmmword [str.vids]
push edx
push eax
movups xmmword [ebp - 0x68], xmm0
movups xmm0, xmmword [0x10035c64]
movups xmmword [ebp - 0x58], xmm0
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov esi, eax
test esi, esi
js 0x10009d74
mov eax, dword [edi + 0xc]
push str.Grabber
push dword [ebp - 0x6c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
js 0x10009d74
mov eax, dword [edi + 0x10]
push 0
push dword [ebp - 0x6c]
push dword [edi + 0x1c]
mov ecx, dword [eax]
push str.vids
push 0x10035cc4
push eax
call dword [ecx + 0x1c]
test eax, eax
jns 0x10009c6c
mov eax, dword [edi + 0x10]
push 0
push dword [ebp - 0x6c]
push dword [edi + 0x1c]
mov ecx, dword [eax]
push str.vids
push 0x10035cb4
push eax
call dword [ecx + 0x1c]
jmp 0x10009d72
mov eax, dword [edi + 0x20]
lea edx, [ebp - 0x68]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov esi, eax
test esi, esi
js 0x10009d74
cmp dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + 0x34]
mov dword [0x10042ac0], eax
mov eax, dword [ecx + 0x38]
mov dword [0x10042ac4], eax
je 0x10009cb1
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x10009cc5
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x2c], 0
mov eax, dword [edi + 0x20]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [edi + 0x20]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [edi + 0x20]
push 1
push 0x10042abc
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push connect
push 0x1003cbc0
push str.32770
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ecx, dword [edi + 0x18]
mov dword [edi + 8], eax
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x74]
test eax, eax
js 0x10009d69
mov eax, dword [edi + 0x18]
push 0x42000000
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
js 0x10009d69
cmp dword [edi + 0x18], 0
je 0x10009d5e
lea eax, [ebp - 0x20]
push eax
push dword [edi + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [ebp - 0x14]
mov eax, dword [edi + 0x18]
push dword [ebp - 0x18]
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x9c]
mov eax, dword [edi + 0x18]
push 0xffffffffffffffff
push eax
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov eax, dword [edi + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x10009d88
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, str.succeed
test esi, esi
mov eax, str.failed
cmovns eax, ecx
push eax
push str.CCaptureVideo_Open__s_n
call fcn.100079f0
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10011882
mov esp, ebp
pop ebp
ret 8