Function at 0x407a90
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
call dword [0x42a058]
mov dword [ebp - 0x30], eax
movzx eax, byte [0x42c3d0]
test eax, eax
je 0x407ab2
jmp 0x40817e
mov byte [0x42c3d0], 1
mov dword [0x42c590], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
push 1
mov ecx, dword [0x42c0b0]
push ecx
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x407b0f
push str.Error_Cleaning_Devices_Menu
call fcn.00409940
add esp, 4
jmp 0x40817e
cmp dword [ebp - 0xc], 0
jle 0x407b42
mov dword [ebp - 0x40], 0
jmp 0x407b27
mov eax, dword [ebp - 0x40]
add eax, 1
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
cmp ecx, dword [ebp - 0xc]
jge 0x407b42
push 0x400
push 0
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_RemoveMenu]
jmp 0x407b1e
mov dword [ebp - 0x44], 0
jmp 0x407b54
mov eax, dword [ebp - 0x44]
add eax, 1
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0xa
jae 0x407b6f
mov ecx, dword [ebp - 0x44]
lea edx, [ecx*4 + 0x42c3d4]
push edx
call fcn.00402540
add esp, 4
jmp 0x407b4b
mov dword [ebp - 0x44], 0
jmp 0x407b81
mov eax, dword [ebp - 0x44]
add eax, 1
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0xa
jae 0x407b9c
mov ecx, dword [ebp - 0x44]
lea edx, [ecx*4 + 0x42c3fc]
push edx
call fcn.00402540
add esp, 4
jmp 0x407b78
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x35], 1
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x2c], 0
cmp dword [ebp - 0x24], 0xa
jge 0x407c57
movzx eax, byte [ebp - 0x35]
test eax, eax
je 0x407c57
lea ecx, [ebp - 8]
push ecx
push 0x42687c
push 1
push 0
push 0x426a5c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x407c05
push str.Error_Creating_Device_Enumerator
call fcn.00409940
add esp, 4
jmp 0x40817e
push 0
lea edx, [ebp - 0x10]
push edx
push 0x426a4c
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
call dword [ecx + 0xc]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x407c2b
mov byte [ebp - 0x35], 0
jmp 0x407c52
cmp dword [ebp - 0x24], 0
jne 0x407c3e
push str.This_image_cannot_be_previewed_properly__n_Please_check_you_camera_plug_in_
call fcn.00409940
add esp, 4
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
jmp 0x407bbc
cmp dword [ebp - 0x2c], 0
je 0x407c6f
push str.This_image_cannot_be_previewed_properly___n_Please_check_you_camera_plug_in_again_
call fcn.00409940
add esp, 4
jmp 0x407f30
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x10]
push eax
call dword [edx + 0x14]
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x34]
push edx
push 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x10]
push edx
call dword [ecx + 0xc]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x407f09
mov dword [ebp - 0x48], 0
lea eax, [ebp - 0x48]
push eax
push 0x426b2c
push 0
push 0
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x34]
push eax
call dword [edx + 0x24]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jl 0x407f04
mov word [ebp - 0x60], 8
push 0
lea ecx, [ebp - 0x60]
push ecx
push str.FriendlyName
mov edx, dword [ebp - 0x48]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x48]
push ecx
call dword [eax + 0xc]
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x4c]
push edx
push 0
push 0
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x34]
push edx
call dword [ecx + 0x50]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jl 0x407f04
push str.vid_0ac8pid_c410
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0041975a
add esp, 8
test eax, eax
jne 0x407d8e
push str.vid_0ac8pid_c412
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0041975a
add esp, 8
test eax, eax
jne 0x407d8e
push str.vid_0ac8pid_c416
mov edx, dword [ebp - 0x4c]
push edx
call fcn.0041975a
add esp, 8
test eax, eax
jne 0x407d8e
push str.vid_0ac8pid_c417
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0041975a
add esp, 8
test eax, eax
jne 0x407d8e
push str.vid_0ac8pid_c418
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0041975a
add esp, 8
test eax, eax
jne 0x407d8e
push str.vid_0ac8pid_c41d
mov edx, dword [ebp - 0x4c]
push edx
call fcn.0041975a
add esp, 8
test eax, eax
je 0x407f04
cmp dword [ebp - 0x2c], 0
jne 0x407ee3
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x407db3
mov dword [ebp - 0x94], 0
jmp 0x407e3a
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00419340
lea edx, [eax + eax + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 3
and eax, 0xfffffffc
call fcn.0041a210
mov dword [ebp - 0x80], esp
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x80], 0
je 0x407dec
cmp dword [ebp - 0x18], 0
jne 0x407df8
mov dword [ebp - 0x94], 0
jmp 0x407e3a
mov ecx, dword [ebp - 0x80]
mov byte [ecx], 0
push 0
push 0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x80]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x18]
push ecx
push 0
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
jne 0x407e31
mov dword [ebp - 0x94], 0
jmp 0x407e3a
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
push ecx
mov edx, dword [ebp - 0x14]
add edx, 0x10
push edx
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_AppendMenuA]
cmp dword [0x42c424], 0
je 0x407e7e
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [0x42c424]
mov eax, dword [edx]
mov ecx, dword [0x42c424]
push ecx
call dword [eax + 0x34]
test eax, eax
jne 0x407e7e
mov dword [ebp - 0x1c], 1
mov edx, dword [ebp - 0x1c]
neg edx
sbb edx, edx
and edx, 8
push edx
mov eax, dword [ebp - 0x14]
add eax, 0x10
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov edx, dword [0x42c3b4]
neg edx
sbb edx, edx
and edx, 2
push edx
mov eax, dword [ebp - 0x14]
add eax, 0x10
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x34]
mov dword [eax*4 + 0x42c3d4], ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x34]
push ecx
call dword [eax + 4]
mov edx, dword [ebp - 0x48]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x48]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x34]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
jmp 0x407c7b
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x10]
push edx
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov dword [0x42c590], eax
push 0
push 0
push 0x800
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_AppendMenuA]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
push 0
lea edx, [ebp - 0x10]
push edx
push 0x426a2c
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
call dword [ecx + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
call dword [ecx + 8]
cmp dword [ebp - 0x2c], 0
je 0x407f6f
jmp 0x40817e
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x10]
push edx
call dword [ecx + 0x14]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x34]
push ecx
push 1
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [eax + 0xc]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x408172
lea edx, [ebp - 0x64]
push edx
push 0x426b2c
push 0
push 0
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x34]
push edx
call dword [ecx + 0x24]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jl 0x408158
mov word [ebp - 0x78], 8
push 0
lea eax, [ebp - 0x78]
push eax
push str.FriendlyName
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x64]
push eax
call dword [edx + 0xc]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x40814c
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jne 0x408009
mov dword [ebp - 0x98], 0
jmp 0x4080a5
mov edx, dword [ebp - 0x18]
push edx
call fcn.00419340
lea eax, [eax + eax + 2]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, 3
and eax, 0xfffffffc
call fcn.0041a210
mov dword [ebp - 0x8c], esp
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x98], ecx
cmp dword [ebp - 0x8c], 0
je 0x408048
cmp dword [ebp - 0x18], 0
jne 0x408054
mov dword [ebp - 0x98], 0
jmp 0x4080a5
mov edx, dword [ebp - 0x8c]
mov byte [edx], 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x8c]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x18]
push edx
push 0
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
jne 0x408099
mov dword [ebp - 0x98], 0
jmp 0x4080a5
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x98], ecx
mov edx, dword [ebp - 0x98]
push edx
mov eax, dword [ebp - 0x14]
add eax, 0x1a
push eax
push 0
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_AppendMenuA]
cmp dword [0x42c428], 0
je 0x4080e8
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [0x42c428]
mov ecx, dword [eax]
mov edx, dword [0x42c428]
push edx
call dword [ecx + 0x34]
test eax, eax
jne 0x4080e8
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
neg eax
sbb eax, eax
and eax, 8
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x1a
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov eax, dword [0x42c3b4]
neg eax
sbb eax, eax
and eax, 2
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x1a
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x34]
mov dword [ecx*4 + 0x42c3fc], edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x34]
push edx
call dword [ecx + 4]
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x64]
push edx
call dword [ecx + 8]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x34]
push edx
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x407f7b
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x10]
push eax
call dword [edx + 8]
lea esp, [ebp - 0x98]
mov esp, ebp
pop ebp
ret