Function at 0x4138e0
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x42d024]
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 - 0xbc], eax
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x8c], ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jne 0x413e1d
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
lea ecx, [ebp - 0x80]
push ecx
push 0x427550
push 1
push ebx
push 0x425490
call esi
test eax, eax
jne 0x413e1d
lea edx, [ebp - 0x90]
push edx
push 0x4254f0
push 1
push ebx
push 0x425480
call esi
test eax, eax
jne 0x413e1d
mov eax, dword [ebp - 0x90]
mov edx, dword [ebp - 0x80]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x413e1d
lea ecx, [ebp - 0xb0]
push ecx
push 0x42a920
push 1
push ebx
push 0x4254a0
call esi
test eax, eax
jne 0x413e1d
mov eax, dword [ebp - 0xb0]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push ebx
lea ecx, [ebp - 0xac]
push ecx
push 0x4254b0
push eax
call edx
test eax, eax
jne 0x413e1d
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x94]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x413e1d
mov eax, dword [ebp - 0x94]
mov ecx, dword [eax]
lea edx, [ebp - 0xa8]
push edx
push 0x42a910
push ebx
push ebx
push eax
mov eax, dword [ecx + 0x24]
call eax
lea ecx, [ebp - 0xfc]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0xa8]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push ebx
lea ecx, [ebp - 0xfc]
push ecx
push str.FriendlyName
push eax
call edx
lea eax, [ebp - 0xfc]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x94]
mov ecx, dword [eax]
lea edx, [ebp - 0x98]
push edx
push 0x427560
push ebx
push ebx
push eax
mov eax, dword [ecx + 0x20]
call eax
test eax, eax
jne 0x413e1d
mov eax, dword [ebp - 0x80]
mov edx, dword [ebp - 0x98]
mov ecx, dword [eax]
push str.Capture_Filter
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x413e1d
lea ecx, [ebp - 0x88]
push ecx
push 0x427560
push 1
push ebx
push 0x427530
call esi
test eax, eax
jne 0x413e1d
mov eax, dword [ebp - 0x88]
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [ebp - 0x84]
push ecx
push 0x427520
push eax
call edx
test eax, eax
jne 0x413e1d
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 1
push eax
call edx
test eax, eax
jne 0x413e1d
push 0x48
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.00418380
mov edx, dword [0x425464]
mov ecx, dword [str.vids]
mov eax, dword [0x425468]
mov dword [ebp - 0x78], edx
mov edx, dword [0x425470]
mov dword [ebp - 0x7c], ecx
mov ecx, dword [0x42546c]
mov dword [ebp - 0x74], eax
mov eax, dword [0x425474]
mov dword [ebp - 0x6c], edx
mov edx, dword [0x42547c]
mov dword [ebp - 0x70], ecx
mov ecx, dword [0x425478]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x84]
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
test eax, eax
jne 0x413e1d
mov eax, dword [ebp - 0x80]
mov edx, dword [ebp - 0x88]
mov ecx, dword [eax]
push str.SampleGrab
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x413e1d
lea ecx, [ebp - 0xa0]
push ecx
push 0x427560
push 1
push ebx
push 0x427540
call esi
test eax, eax
jne 0x413e1d
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0xa0]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push str.NullRender
push ecx
push eax
call edx
test eax, eax
jne 0x413e1d
mov edx, dword [ebp - 0xa0]
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax]
push edx
mov edx, dword [ebp - 0x88]
push edx
mov edx, dword [ebp - 0x98]
push edx
push str.vids
push 0x4254d0
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jne 0x413e1d
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax]
lea edx, [ebp - 0x8c]
push edx
push 0x4254e0
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jne 0x413e1d
lea esp, [esp]
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push eax
call edx
cmp eax, ebx
je 0x413c3c
cmp eax, 1
je 0x413c20
jmp 0x413e1d
mov dword [ebp - 0xa4], ebx
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0xa4]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
cmp eax, ebx
jne 0x413efd
cmp dword [ebp - 0xa4], ebx
je 0x413c42
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push eax
call edx
mov esi, dword [ebp - 0xa4]
lea esp, [esp]
push esi
call fcn.00414f9a
add esp, 4
mov dword [ebp - 0x9c], eax
cmp eax, ebx
je 0x413c80
mov edx, dword [ebp - 0x9c]
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax]
push edx
lea edx, [ebp - 0xa4]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jne 0x413e0e
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax]
lea edx, [ebp - 0x7c]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
test eax, eax
jne 0x413e0e
lea edx, [ebp - 0x50]
call fcn.00413870
test eax, eax
je 0x413e0e
cmp dword [ebp - 0x3c], 0x58
jb 0x413e0e
mov eax, dword [ebp - 0x38]
cmp eax, ebx
je 0x413e0e
mov edx, dword [eax + 0x38]
lea ecx, [eax + 0x34]
add eax, 0x38
push 0x2c
mov dword [ebp - 0xe4], edx
mov dword [ebp - 0xc0], ecx
mov ecx, dword [ecx]
lea edx, [ebp - 0x34]
mov esi, 0xa
push ebx
push edx
mov dword [ebp - 0xec], 0x28
mov dword [ebp - 0xe8], ecx
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xe0], 0x180001
mov dword [ebp - 0xdc], ebx
mov dword [ebp - 0xd8], ebx
mov dword [ebp - 0xd4], esi
mov dword [ebp - 0xd0], esi
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0xc8], ebx
call fcn.00418380
mov eax, dword [ebp - 0x9c]
add esp, 0xc
push ebx
mov ecx, esi
push ebx
lea esi, [ebp - 0xec]
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0xb8]
push ecx
push ebx
lea edx, [ebp - 0x34]
push edx
push ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0xb8], eax
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov esi, eax
cmp esi, ebx
je 0x413e0e
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc4]
imul eax, dword [ecx]
mov ecx, dword [ebp - 0xb8]
lea edx, [eax + eax*2]
mov eax, dword [ebp - 0x9c]
push edx
push eax
push ecx
call fcn.00418ed0
mov edx, dword [ebp - 0xbc]
add esp, 0xc
push edx
push 0x64
mov ecx, esi
call fcn.00401d80
add esp, 8
push esi
mov dword [ebp - 0xb4], eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 0x3c], ebx
je 0x413dfc
mov eax, dword [ebp - 0x38]
push eax
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 0x413e0e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x40], ebx
mov eax, dword [ebp - 0x9c]
push eax
call fcn.00414f60
add esp, 4
mov eax, dword [ebp - 0x8c]
cmp eax, ebx
je 0x413e2f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0xa0]
cmp eax, ebx
je 0x413e41
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x84]
cmp eax, ebx
je 0x413e53
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x88]
cmp eax, ebx
je 0x413e65
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x98]
cmp eax, ebx
je 0x413e77
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x90]
cmp eax, ebx
je 0x413e89
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x80]
cmp eax, ebx
je 0x413e98
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0xa8]
cmp eax, ebx
je 0x413eaa
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x94]
cmp eax, ebx
je 0x413ebc
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0xac]
cmp eax, ebx
je 0x413ece
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0xb0]
cmp eax, ebx
je 0x413ee0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xb4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413f0d
mov esp, ebp
pop ebp
ret
cmp eax, 0x80040227
je 0x413c42
jmp 0x413e1d