Function at 0x404960
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov al, byte [0x426740]
push ebx
push esi
push edi
test al, al
jne 0x404d7c
mov eax, dword [0x426944]
xor esi, esi
push 1
push eax
mov byte [0x426740], 1
mov dword [0x4268fc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp eax, 0xffffffff
jne 0x4049c5
push str.Error_Cleaning_Devices_Menu
call fcn.00405be0
add esp, 4
lea esp, [ebp - 0x40]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, esi
jle 0x4049de
mov esi, dword [sym.imp.USER32.dll_RemoveMenu]
mov edi, eax
push 0x400
push 0
push ebx
call esi
dec edi
jne 0x4049d1
mov edi, 0x426744
mov esi, 0xa
push edi
call fcn.00401470
add esp, 4
add edi, 4
dec esi
jne 0x4049e8
mov edi, 0x42676c
mov esi, 0xa
push edi
call fcn.00401470
add esp, 4
add edi, 4
dec esi
jne 0x404a01
lea ecx, [ebp - 0x14]
xor esi, esi
push ecx
push 0x41cb90
push 1
push esi
push 0x41de10
mov dword [ebp - 0x14], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
je 0x404a47
push str.Error_Creating_Device_Enumerator
call fcn.00405be0
add esp, 4
lea esp, [ebp - 0x40]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 8]
push esi
mov dword [ebp - 8], esi
mov edx, dword [eax]
push ecx
push 0x41ddf0
push eax
call dword [edx + 0xc]
test eax, eax
je 0x404a73
push str.Sorry__you_have_no_video_capture_hardware._r_n_r_nVideo_capture_will_not_function_properly.
call fcn.00405be0
add esp, 4
jmp 0x404bee
mov eax, dword [ebp - 8]
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 4]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x404bce
mov edi, 0x10
mov dword [ebp - 0x24], edi
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x18]
push edx
push 0x41e930
mov dword [ebp - 0x18], esi
mov ecx, dword [eax]
push esi
push esi
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x404b9f
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x34]
push esi
mov word [ebp - 0x34], 8
mov ecx, dword [eax]
push edx
push str.FriendlyName
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x404b96
mov eax, dword [ebp - 0x2c]
cmp eax, esi
mov dword [ebp - 0x1c], eax
jne 0x404aed
xor eax, eax
jmp 0x404b25
push eax
call fcn.0040c3c0
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0040dd20
mov eax, dword [ebp - 0x1c]
mov esi, esp
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, dword [ebp - 0x24]
mov eax, esi
xor esi, esi
push eax
push edi
push esi
push ebx
call dword [sym.imp.USER32.dll_AppendMenuA]
mov eax, dword [0x426794]
cmp eax, esi
je 0x404b4d
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x34]
test eax, eax
jne 0x404b4d
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
neg eax
sbb eax, eax
and eax, 8
push eax
push edi
push ebx
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov ecx, dword [0x426724]
neg ecx
sbb ecx, ecx
and ecx, 2
push ecx
push edi
push ebx
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0xc], esi
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
push eax
mov dword [ecx*4 + 0x426744], eax
mov edx, dword [eax]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x20]
inc ecx
push edx
lea edx, [ebp - 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax]
push edx
inc edi
push 1
push eax
mov dword [ebp - 0x24], edi
call dword [ecx + 0xc]
test eax, eax
je 0x404a9f
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov edx, dword [ebp - 0x10]
push esi
push esi
push 0x800
push ebx
mov dword [0x4268fc], edx
call dword [sym.imp.USER32.dll_AppendMenuA]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 8]
push esi
push edx
mov ecx, dword [eax]
push 0x41dd70
push eax
mov dword [ebp - 0xc], esi
call dword [ecx + 0xc]
mov edi, eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp edi, esi
jne 0x404d7c
mov eax, dword [ebp - 8]
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 4]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x404d73
mov edi, 0x1a
mov dword [ebp - 0x18], 0x42676c
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x24]
push edx
push 0x41e930
mov ecx, dword [eax]
push esi
push esi
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x404d42
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x34]
push esi
mov word [ebp - 0x34], 8
mov ecx, dword [eax]
push edx
push str.FriendlyName
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x404d39
mov eax, dword [ebp - 0x2c]
cmp eax, esi
mov dword [ebp - 0x1c], eax
jne 0x404c95
xor eax, eax
jmp 0x404ccd
push eax
call fcn.0040c3c0
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0040dd20
mov eax, dword [ebp - 0x1c]
mov esi, esp
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, dword [ebp - 0x10]
mov eax, esi
xor esi, esi
push eax
push edi
push esi
push ebx
call dword [sym.imp.USER32.dll_AppendMenuA]
mov eax, dword [0x426798]
cmp eax, esi
je 0x404cf5
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x34]
test eax, eax
jne 0x404cf5
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
neg eax
sbb eax, eax
and eax, 8
push eax
push edi
push ebx
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov ecx, dword [0x426724]
neg ecx
sbb ecx, ecx
and ecx, 2
push ecx
push edi
push ebx
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0xc], esi
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
push eax
mov dword [ecx], eax
mov edx, dword [eax]
call dword [edx + 4]
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x20]
add eax, 4
push edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
inc edi
mov ecx, dword [eax]
push edx
push 1
push eax
mov dword [ebp - 0x10], edi
call dword [ecx + 0xc]
test eax, eax
je 0x404c4a
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea esp, [ebp - 0x40]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret