Function at 0x412830
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x42a004]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
push edi
push ebx
push ebx
mov dword [ebp - 0x90], eax
mov dword [0x42bec8], ebx
mov dword [0x42c8ec], ebx
mov dword [0x42c8f0], ebx
mov dword [0x42c8f4], ebx
mov dword [0x42c8f8], ebx
mov dword [0x42c8fc], ebx
mov dword [0x42c900], ebx
mov dword [0x42c904], ebx
mov dword [0x42c908], ebx
mov dword [0x42c90c], ebx
mov dword [0x42c910], ebx
mov dword [0x42c914], ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [0x42bec8], eax
cmp eax, ebx
jne 0x412999
mov edi, dword [sym.imp.ole32.dll_CoCreateInstance]
push 0x42c8fc
push 0x425530
push 1
push ebx
push 0x423478
call edi
mov dword [0x42bec8], eax
cmp eax, ebx
jne 0x412999
push 0x42c900
push 0x4234d8
push 1
push ebx
push 0x423468
call edi
mov dword [0x42bec8], eax
cmp eax, ebx
jne 0x412999
mov eax, dword [0x42c900]
mov edx, dword [0x42c8fc]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov dword [0x42bec8], eax
cmp eax, ebx
jne 0x412999
push 0x42c8ec
push 0x427f1c
push 1
push ebx
push 0x423488
call edi
mov dword [0x42bec8], eax
cmp eax, ebx
jne 0x412999
mov eax, dword [0x42c8ec]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push ebx
push 0x42c8f0
push 0x423498
push eax
call edx
mov dword [0x42bec8], eax
cmp eax, ebx
jne 0x412999
mov eax, dword [0x42c8f0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push ebx
push 0x42c8f4
push 1
push eax
xor esi, esi
call edx
mov dword [0x42bec8], eax
cmp eax, ebx
jne 0x412999
inc esi
cmp esi, 1
jae 0x4129b1
mov eax, dword [0x42c8f0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push ebx
push 0x42c8f4
push 1
push eax
call edx
mov dword [0x42bec8], eax
cmp eax, ebx
je 0x412975
call fcn.00412760
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00412e08
mov esp, ebp
pop ebp
ret
mov eax, dword [0x42c8f4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push 0x42c8f8
push 0x427f0c
push ebx
push ebx
push eax
call edx
mov dword [0x42bec8], eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [0x42c8f8]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0xcc]
push edx
push 0x427ea0
push eax
mov eax, dword [ecx + 0xc]
call eax
lea ecx, [ebp - 0xcc]
push ecx
mov dword [0x42bec8], eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [0x42c8f4]
mov edx, dword [eax]
push 0x42c904
push 0x425540
push ebx
push ebx
push eax
mov eax, dword [edx + 0x20]
call eax
mov dword [0x42bec8], eax
cmp eax, ebx
jne 0x412999
mov eax, dword [0x42c8fc]
mov edx, dword [0x42c904]
mov ecx, dword [eax]
push str.Capture_Filter
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov dword [0x42bec8], eax
cmp eax, ebx
jne 0x412999
push 0x42c908
push 0x425540
push 1
push ebx
push 0x425510
call edi
mov dword [0x42bec8], eax
cmp eax, ebx
jne 0x412999
mov eax, dword [0x42c908]
mov ecx, dword [eax]
mov edx, dword [ecx]
push 0x42c90c
push 0x425500
push eax
call edx
mov dword [0x42bec8], eax
cmp eax, ebx
jne 0x412999
mov eax, dword [0x42c90c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 1
push eax
call edx
mov dword [0x42bec8], eax
cmp eax, ebx
jne 0x412999
push 0x48
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.00417250
mov edx, dword [0x42344c]
mov ecx, dword [str.vids]
mov eax, dword [0x423450]
mov dword [ebp - 0x78], edx
mov edx, dword [0x423458]
mov dword [ebp - 0x7c], ecx
mov ecx, dword [0x423454]
mov dword [ebp - 0x74], eax
mov eax, dword [0x42345c]
mov dword [ebp - 0x6c], edx
mov edx, dword [0x423464]
mov dword [ebp - 0x70], ecx
mov ecx, dword [0x423460]
mov dword [ebp - 0x68], eax
mov eax, dword [0x42c90c]
mov dword [ebp - 0x60], edx
add esp, 0xc
lea edx, [ebp - 0x7c]
mov dword [ebp - 0x64], ecx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
mov dword [0x42bec8], eax
cmp eax, ebx
jne 0x412999
mov eax, dword [0x42c8fc]
mov edx, dword [0x42c908]
mov ecx, dword [eax]
push str.SampleGrab
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov dword [0x42bec8], eax
cmp eax, ebx
jne 0x412999
push 0x42c910
push 0x425540
push 1
push ebx
push 0x425520
call edi
mov dword [0x42bec8], eax
cmp eax, ebx
jne 0x412999
mov eax, dword [0x42c8fc]
mov edx, dword [0x42c910]
mov ecx, dword [eax]
push str.NullRender
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov dword [0x42bec8], eax
cmp eax, ebx
jne 0x412999
mov edx, dword [0x42c910]
mov eax, dword [0x42c900]
mov ecx, dword [eax]
push edx
mov edx, dword [0x42c908]
push edx
mov edx, dword [0x42c904]
push edx
push str.vids
push 0x4234b8
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov dword [0x42bec8], eax
cmp eax, ebx
jne 0x412999
mov eax, dword [0x42c8fc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push 0x42c914
push 0x4234c8
push eax
call edx
mov dword [0x42bec8], eax
cmp eax, ebx
jne 0x412999
mov eax, dword [0x42c914]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push eax
call edx
mov dword [0x42bec8], eax
cmp eax, ebx
je 0x412c10
cmp eax, 1
je 0x412bf0
jmp 0x412999
mov dword [ebp - 0x80], ebx
mov eax, dword [0x42c90c]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x80]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov dword [0x42bec8], eax
cmp eax, ebx
jne 0x412df8
cmp dword [ebp - 0x80], ebx
je 0x412c13
mov eax, dword [0x42c914]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push eax
call edx
mov esi, dword [ebp - 0x80]
push esi
call fcn.00413e95
add esp, 4
mov dword [ebp - 0x84], eax
cmp eax, ebx
je 0x412c47
mov edx, dword [ebp - 0x84]
mov eax, dword [0x42c90c]
mov ecx, dword [eax]
push edx
lea edx, [ebp - 0x80]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov dword [0x42bec8], eax
cmp eax, ebx
jne 0x412999
mov eax, dword [0x42c90c]
mov ecx, dword [eax]
lea edx, [ebp - 0x7c]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov dword [0x42bec8], eax
cmp eax, ebx
jne 0x412999
lea edx, [ebp - 0x50]
call fcn.004126f0
test eax, eax
je 0x412999
cmp dword [ebp - 0x3c], 0x58
jb 0x412999
mov eax, dword [ebp - 0x38]
cmp eax, ebx
je 0x412999
mov edx, dword [eax + 0x38]
lea ecx, [eax + 0x34]
add eax, 0x38
push 0x2c
mov dword [ebp - 0xb4], edx
mov dword [ebp - 0x94], ecx
mov ecx, dword [ecx]
lea edx, [ebp - 0x34]
mov esi, 0xa
push ebx
push edx
mov dword [ebp - 0xbc], 0x28
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0xb0], 0x180001
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], ebx
call fcn.00417250
add esp, 0xc
push ebx
push ebx
mov ecx, esi
lea eax, [ebp - 0x88]
push eax
lea esi, [ebp - 0xbc]
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x84]
push ebx
lea ecx, [ebp - 0x34]
push ecx
push ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x88], edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov esi, eax
cmp esi, ebx
je 0x412999
mov edx, dword [ebp - 0x94]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x8c]
imul eax, dword [ecx]
lea edx, [eax + eax*2]
mov eax, dword [ebp - 0x88]
push edx
push edi
push eax
call fcn.00417da0
mov edi, dword [ebp - 0x90]
add esp, 0xc
push 0x64
mov ecx, esi
call fcn.00401aa0
add esp, 4
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 0x3c], ebx
je 0x412dbf
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov eax, dword [ebp - 0x40]
cmp eax, ebx
je 0x412dd1
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [ebp - 0x40], ebx
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.00415c41
add esp, 4
call fcn.00412760
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00412e08
mov esp, ebp
pop ebp
ret
cmp eax, 0x80040227
je 0x412c13
jmp 0x412999