Function at 0x404e5d
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 0x30], 3
movzx eax, byte [0x497f1c]
test eax, eax
je 0x404e7a
jmp 0x405279
mov byte [0x497f1c], 1
and dword [0x4980b0], 0
and dword [ebp - 0x18], 0
and dword [ebp - 0x20], 0
and dword [ebp - 0x10], 0
push 1
push dword [0x4981c8]
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x404ec5
jmp 0x405279
cmp dword [ebp - 0xc], 0
jle 0x404ef2
and dword [ebp - 0x10], 0
jmp 0x404ed8
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jge 0x404ef2
push 0x400
push 0
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_RemoveMenu]
jmp 0x404ed1
and dword [ebp - 0x10], 0
jmp 0x404eff
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xa
jae 0x404f18
mov eax, dword [ebp - 0x10]
lea eax, [eax*4 + 0x497f20]
push eax
call fcn.00401645
pop ecx
jmp 0x404ef8
and dword [ebp - 0x10], 0
jmp 0x404f25
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xa
jae 0x404f3e
mov eax, dword [ebp - 0x10]
lea eax, [eax*4 + 0x497f48]
push eax
call fcn.00401645
pop ecx
jmp 0x404f1e
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x47d030
push 1
push 0
push 0x47e220
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x404f68
jmp 0x405279
and dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0x47e200
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push dword [ebp - 8]
call dword [eax + 0xc]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x404fa0
push str.Sorry__you_have_no_video_capture_hardware._r_n_r_nVideo_capture_will_not_function_properly.
call fcn.004060ca
pop ecx
jmp 0x405100
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push dword [ebp - 0x14]
call dword [eax + 0x14]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x34]
push eax
push 1
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push dword [ebp - 0x14]
call dword [eax + 0xc]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4050db
and dword [ebp - 0x3c], 0
lea eax, [ebp - 0x3c]
push eax
push 0x4861d8
push 0
push 0
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
push dword [ebp - 0x34]
call dword [eax + 0x24]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jl 0x4050c4
push 8
pop eax
mov word [ebp - 0x50], ax
push 0
lea eax, [ebp - 0x50]
push eax
push str.FriendlyName
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
push dword [ebp - 0x3c]
call dword [eax + 0xc]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4050b9
push dword [ebp - 0x48]
mov eax, dword [ebp - 0x18]
add eax, 0x10
push eax
push 0
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_AppendMenuW]
cmp dword [0x497f70], 0
je 0x40505c
push dword [ebp - 0x34]
mov eax, dword [0x497f70]
mov eax, dword [eax]
push dword [0x497f70]
call dword [eax + 0x34]
test eax, eax
jne 0x40505c
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x20]
neg eax
sbb eax, eax
and eax, 8
push eax
mov eax, dword [ebp - 0x18]
add eax, 0x10
push eax
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov eax, dword [0x497f0c]
neg eax
sbb eax, eax
and eax, 2
push eax
mov eax, dword [ebp - 0x18]
add eax, 0x10
push eax
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_EnableMenuItem]
and dword [ebp - 0x20], 0
push dword [ebp - 0x48]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x34]
mov dword [eax*4 + 0x497f20], ecx
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
push dword [ebp - 0x34]
call dword [eax + 4]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
push dword [ebp - 0x3c]
call dword [eax + 8]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
push dword [ebp - 0x34]
call dword [eax + 8]
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
jmp 0x404fab
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push dword [ebp - 0x14]
call dword [eax + 8]
mov eax, dword [ebp - 0x18]
mov dword [0x4980b0], eax
push 0
push 0
push 0x800
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_AppendMenuW]
and dword [ebp - 0x18], 0
and dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0x47e1c0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push dword [ebp - 8]
call dword [eax + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push dword [ebp - 8]
call dword [eax + 8]
cmp dword [ebp - 0x2c], 0
je 0x405137
jmp 0x405279
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push dword [ebp - 0x14]
call dword [eax + 0x14]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x34]
push eax
push 1
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push dword [ebp - 0x14]
call dword [eax + 0xc]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x40526e
lea eax, [ebp - 0x54]
push eax
push 0x4861d8
push 0
push 0
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
push dword [ebp - 0x34]
call dword [eax + 0x24]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jl 0x405257
push 8
pop eax
mov word [ebp - 0x68], ax
push 0
lea eax, [ebp - 0x68]
push eax
push str.FriendlyName
mov eax, dword [ebp - 0x54]
mov eax, dword [eax]
push dword [ebp - 0x54]
call dword [eax + 0xc]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x40524c
push dword [ebp - 0x60]
mov eax, dword [ebp - 0x18]
add eax, 0x1a
push eax
push 0
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_AppendMenuW]
cmp dword [0x497f74], 0
je 0x4051ef
push dword [ebp - 0x34]
mov eax, dword [0x497f74]
mov eax, dword [eax]
push dword [0x497f74]
call dword [eax + 0x34]
test eax, eax
jne 0x4051ef
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x20]
neg eax
sbb eax, eax
and eax, 8
push eax
mov eax, dword [ebp - 0x18]
add eax, 0x1a
push eax
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov eax, dword [0x497f0c]
neg eax
sbb eax, eax
and eax, 2
push eax
mov eax, dword [ebp - 0x18]
add eax, 0x1a
push eax
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_EnableMenuItem]
and dword [ebp - 0x20], 0
push dword [ebp - 0x60]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x34]
mov dword [eax*4 + 0x497f48], ecx
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
push dword [ebp - 0x34]
call dword [eax + 4]
mov eax, dword [ebp - 0x54]
mov eax, dword [eax]
push dword [ebp - 0x54]
call dword [eax + 8]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
push dword [ebp - 0x34]
call dword [eax + 8]
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
jmp 0x405142
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push dword [ebp - 0x14]
call dword [eax + 8]
leave
ret