Function at 0x40d450
Capabilities:
Enumerate devices by category

Disassembly:
push edi
mov edi, esp
sub esp, 0x78
mov eax, dword [0x441480]
xor eax, edi
mov dword [edi - 8], eax
mov eax, dword [edi + 8]
push esi
push ebp
xor esi, esi
push ebx
push esi
push esi
mov dword [edi - 0x60], eax
mov dword [0x444a7c], esi
mov dword [0x444a94], esi
mov dword [0x444a98], esi
mov dword [0x444a9c], esi
mov dword [0x444aa0], esi
mov dword [0x444aa4], esi
mov dword [0x444aa8], esi
mov dword [0x444aac], esi
mov dword [0x444ab0], esi
mov dword [0x444ab4], esi
mov dword [0x444ab8], esi
mov dword [0x444abc], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [0x444a7c], eax
cmp eax, esi
jne 0x40d5b4
mov ebx, dword [sym.imp.ole32.dll_CoCreateInstance]
push 0x444aa4
push 0x43e484
push 1
push esi
push 0x43c1fc
call ebx
mov dword [0x444a7c], eax
cmp eax, esi
jne 0x40d5b4
push 0x444aa8
push 0x43c25c
push 1
push esi
push 0x43c1ec
call ebx
mov dword [0x444a7c], eax
cmp eax, esi
jne 0x40d5b4
mov eax, dword [0x444aa8]
mov edx, dword [0x444aa4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov dword [0x444a7c], eax
cmp eax, esi
jne 0x40d5b4
push 0x444a94
push 0x43e520
push 1
push esi
push 0x43c20c
call ebx
mov dword [0x444a7c], eax
cmp eax, esi
jne 0x40d5b4
mov eax, dword [0x444a94]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push 0x444a98
push 0x43c21c
push eax
call edx
mov dword [0x444a7c], eax
cmp eax, esi
jne 0x40d5b4
mov eax, dword [0x444a98]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push 0x444a9c
push 1
push eax
xor ebp, ebp
call edx
mov dword [0x444a7c], eax
cmp eax, esi
jne 0x40d5b4
nop
inc ebp
cmp ebp, 1
jge 0x40d5cc
mov eax, dword [0x444a98]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push 0x444a9c
push 1
push eax
call edx
mov dword [0x444a7c], eax
cmp eax, esi
je 0x40d590
call fcn.0040d380
xor al, al
mov ecx, dword [edi - 8]
xor ecx, edi
pop ebx
pop ebp
pop esi
call fcn.00420bc6
mov esp, edi
pop edi
ret
mov eax, dword [0x444a9c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push 0x444aa0
push 0x43e510
push esi
push esi
push eax
call edx
mov dword [0x444a7c], eax
lea eax, [edi - 0x74]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [0x444aa0]
mov ecx, dword [eax]
push esi
lea edx, [edi - 0x74]
push edx
push str.FriendlyName
push eax
mov eax, dword [ecx + 0xc]
call eax
lea ecx, [edi - 0x74]
push ecx
mov dword [0x444a7c], eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [0x444a9c]
mov edx, dword [eax]
push 0x444aac
push 0x43e494
push esi
push esi
push eax
mov eax, dword [edx + 0x20]
call eax
mov dword [0x444a7c], eax
cmp eax, esi
jne 0x40d5b4
mov eax, dword [0x444aa4]
mov edx, dword [0x444aac]
mov ecx, dword [eax]
push str.Capture_Filter
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov dword [0x444a7c], eax
cmp eax, esi
jne 0x40d5b4
push 0x444ab0
push 0x43e494
push 1
push esi
push 0x43e464
call ebx
mov dword [0x444a7c], eax
cmp eax, esi
jne 0x40d5b4
mov eax, dword [0x444ab0]
mov ecx, dword [eax]
mov edx, dword [ecx]
push 0x444ab4
push 0x43e454
push eax
call edx
mov dword [0x444a7c], eax
cmp eax, esi
jne 0x40d5b4
mov eax, dword [0x444ab4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 1
push eax
call edx
mov dword [0x444a7c], eax
cmp eax, esi
jne 0x40d5b4
push 0x48
lea eax, [edi - 0x54]
push esi
push eax
call fcn.00429890
mov edx, dword [0x43c1d0]
mov ecx, dword [str.vids]
mov eax, dword [0x43c1d4]
mov dword [edi - 0x50], edx
mov ebp, dword [0x43c1dc]
mov dword [edi - 0x54], ecx
mov edx, dword [0x43c1d8]
mov dword [edi - 0x4c], eax
mov eax, dword [0x43c1e0]
mov dword [edi - 0x44], ebp
mov ebp, dword [0x43c1e8]
mov dword [edi - 0x48], edx
mov ecx, dword [0x43c1e4]
mov dword [edi - 0x40], eax
mov eax, dword [0x444ab4]
mov dword [edi - 0x38], ebp
sub esp, 0xfffffff4
lea edx, [edi - 0x54]
mov dword [edi - 0x3c], ecx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
mov dword [0x444a7c], eax
cmp eax, esi
jne 0x40d5b4
mov eax, dword [0x444aa4]
mov edx, dword [0x444ab0]
mov ecx, dword [eax]
push str.SampleGrab
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov dword [0x444a7c], eax
cmp eax, esi
jne 0x40d5b4
push 0x444ab8
push 0x43e494
push 1
push esi
push 0x43e474
call ebx
mov dword [0x444a7c], eax
cmp eax, esi
jne 0x40d5b4
mov eax, dword [0x444aa4]
mov edx, dword [0x444ab8]
mov ecx, dword [eax]
push str.NullRender
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov dword [0x444a7c], eax
cmp eax, esi
jne 0x40d5b4
mov ebp, dword [0x444ab8]
mov eax, dword [0x444aa8]
mov ecx, dword [eax]
push ebp
mov ebx, dword [0x444ab0]
push ebx
mov edx, dword [0x444aac]
push edx
push str.vids
push 0x43c23c
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov dword [0x444a7c], eax
cmp eax, esi
jne 0x40d5b4
mov eax, dword [0x444aa4]
mov ecx, dword [eax]
mov edx, dword [ecx]
push 0x444abc
push 0x43c24c
push eax
call edx
mov dword [0x444a7c], eax
cmp eax, esi
jne 0x40d5b4
mov eax, dword [0x444abc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push eax
call edx
mov dword [0x444a7c], eax
cmp eax, esi
je 0x40d822
cmp eax, 1
je 0x40d802
jmp 0x40d5b4
mov dword [edi - 0x58], esi
mov eax, dword [0x444ab4]
lea edx, [edi - 0x58]
mov ecx, dword [eax]
push esi
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov dword [0x444a7c], eax
cmp eax, esi
jne 0x40d94c
cmp dword [edi - 0x58], esi
je 0x40d825
mov eax, dword [0x444abc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push eax
call edx
mov eax, dword [edi - 0x58]
push eax
call fcn.0041ff97
mov ebx, eax
sub esp, 0xfffffffc
mov dword [edi - 0x5c], ebx
cmp ebx, esi
je 0x40d5b4
mov eax, dword [0x444ab4]
mov ecx, dword [eax]
push ebx
lea edx, [edi - 0x58]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov dword [0x444a7c], eax
cmp eax, esi
jne 0x40d5b4
mov eax, dword [0x444ab4]
mov ecx, dword [eax]
lea edx, [edi - 0x54]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov dword [0x444a7c], eax
cmp eax, esi
jne 0x40d5b4
lea edx, [edi - 0x28]
call fcn.0040cfe0
test eax, eax
je 0x40d5b4
cmp dword [edi - 0x14], 0x58
jb 0x40d5b4
mov ebp, dword [edi - 0x10]
cmp ebp, esi
je 0x40d5b4
mov eax, dword [ebp + 0x38]
mov ecx, dword [ebp + 0x34]
push ebx
call fcn.0040d050
mov ebx, eax
mov esi, dword [ebp + 0x34]
mov edx, dword [ebp + 0x38]
add esp, 4
push esi
mov ecx, dword [edi - 0x60]
push edx
push ebx
call fcn.0040d1a0
sub esp, 0xfffffff4
push ebx
call fcn.00420c59
xor ebp, ebp
add esp, 4
cmp dword [edi - 0x14], ebp
je 0x40d916
mov eax, dword [edi - 0x10]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [edi - 0x14], ebp
mov dword [edi - 0x10], ebp
mov eax, dword [edi - 0x18]
cmp eax, ebp
je 0x40d928
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi - 0x18], ebp
mov eax, dword [edi - 0x5c]
push eax
call fcn.00420c59
add esp, 4
call fcn.0040d380
mov al, 1
mov ecx, dword [edi - 8]
xor ecx, edi
pop ebx
pop ebp
pop esi
call fcn.00420bc6
mov esp, edi
pop edi
ret
cmp eax, 0x80040227
je 0x40d825
jmp 0x40d5b4