Function at 0x403291
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
push edi
push 1
push dword [0x408070]
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
xor esi, esi
mov dword [ebp - 0x14], eax
push esi
push esi
push eax
call dword [sym.imp.USER32.dll_RemoveMenu]
mov edi, dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [ebp - 0xc]
push eax
push 0x406ae0
push 1
mov ebx, 0x406ad0
push esi
push ebx
call edi
cmp eax, esi
jne 0x4033eb
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 4]
push esi
push edx
mov ecx, dword [eax]
push 0x406ac0
push eax
call dword [ecx + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0x1c], esi
je 0x403313
push str.Sorry__you_have_no_video_capture_hardware
call fcn.00403fc7
pop ecx
jmp 0x4033eb
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 8]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
cmp eax, esi
jne 0x4033d2
mov dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x1c]
push edx
push 0x406bd0
mov ecx, dword [eax]
push esi
push esi
push eax
call dword [ecx + 0x24]
cmp eax, esi
jl 0x4033ab
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x2c]
push esi
mov word [ebp - 0x2c], 8
mov ecx, dword [eax]
push edx
push str.FriendlyName
push eax
call dword [ecx + 0xc]
cmp eax, esi
jne 0x4033a2
push esi
push esi
lea eax, [ebp - 0x7c]
push 0x50
push eax
push 0xffffffffffffffff
push dword [ebp - 0x24]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x10]
push esi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_AppendMenuA]
push dword [ebp - 0x24]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
inc dword [ebp - 0x10]
lea edx, [ebp - 0x18]
mov ecx, dword [eax]
push edx
lea edx, [ebp - 8]
push edx
push 1
push eax
call dword [ecx + 0xc]
cmp eax, esi
je 0x40333e
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
push esi
push 0x800
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_AppendMenuA]
lea eax, [ebp - 0xc]
push eax
push 0x406ae0
push 1
push esi
push ebx
call edi
cmp eax, esi
jne 0x4034e8
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 4]
push esi
push edx
mov ecx, dword [eax]
push 0x406a40
push eax
call dword [ecx + 0xc]
mov edi, eax
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp edi, esi
jne 0x4034e8
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 8]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
cmp eax, esi
jne 0x4034df
push 0x1a
pop edi
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x1c]
push edx
push 0x406bd0
mov ecx, dword [eax]
push esi
push esi
push eax
call dword [ecx + 0x24]
cmp eax, esi
jl 0x4034ba
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x2c]
push esi
mov word [ebp - 0x2c], 8
mov ecx, dword [eax]
push edx
push str.FriendlyName
push eax
call dword [ecx + 0xc]
cmp eax, esi
jne 0x4034b1
push esi
push esi
lea eax, [ebp - 0x7c]
push 0x50
push eax
push 0xffffffffffffffff
push dword [ebp - 0x24]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x7c]
push eax
push edi
push esi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_AppendMenuA]
push dword [ebp - 0x24]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 8]
mov ecx, dword [eax]
push edx
push 1
push eax
inc edi
call dword [ecx + 0xc]
cmp eax, esi
je 0x40344f
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
pop esi
pop ebx
leave
ret