Function at 0x495a90
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63e3b8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x6eed24]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x38], edi
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x70], eax
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push 0
push dword [ebx + 0xc]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
push 0x419
push dword [edi + 0x40]
mov dword [ebp - 0x58], esi
call ebx
push 0
push 0
push 0x418
push dword [edi + 0x40]
sub eax, 2
mov dword [ebp - 0x50], eax
call ebx
lea ebx, [eax - 2]
mov eax, edi
mov edi, dword [eax + 0x34]
mov dword [ebp - 0x54], edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x5c], edi
test edi, edi
je 0x495b26
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov eax, dword [ebp - 0x38]
test edi, edi
je 0x495bd3
mov edi, edi
dec ebx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x44], ebx
mov ecx, dword [eax + 0x38]
lea edx, [ebp - 0x3c]
push edx
push edi
push ecx
mov eax, dword [ecx]
mov byte [ebp - 4], 3
call dword [eax + 0x54]
cmp dword [ebp - 0x50], ebx
je 0x495bc2
test edi, edi
je 0x495b6a
mov eax, edi
xor edi, edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x5c], edi
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 6
call dword [ecx + 8]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x48], edi
cmp edi, eax
je 0x495ba7
mov ebx, eax
mov byte [ebp - 4], 7
test ebx, ebx
je 0x495b87
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [ebp - 0x3c]
mov ecx, edi
mov edi, ebx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x5c], edi
cmp dword [ebp - 0x48], 0
mov byte [ebp - 4], 8
je 0x495ba4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x44]
mov byte [ebp - 4], 9
test eax, eax
je 0x495bb5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x38]
test edi, edi
jne 0x495b30
jmp 0x495bd3
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 4
test eax, eax
je 0x495bd3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, dword [ebp - 0x38]
mov ecx, dword [ebx + 0x30]
test ecx, ecx
je 0x495bee
mov dword [ebx + 0x30], 0
mov eax, dword [ecx]
push ecx
mov byte [ebp - 4], 0xb
call dword [eax + 8]
mov ecx, dword [ebx + 0x30]
cmp ecx, edi
je 0x495c17
mov byte [ebp - 4], 0xc
test edi, edi
je 0x495c06
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [ebx + 0x30]
mov dword [ebx + 0x30], edi
mov byte [ebp - 4], 0xd
test ecx, ecx
je 0x495c17
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x4c], 0
mov ecx, dword [ebx + 0x38]
lea edx, [ebp - 0x4c]
push edx
push 0
push 0
mov eax, dword [ecx]
push edi
push ecx
mov byte [ebp - 4], 0xe
call dword [eax + 0x48]
mov dword [ebp - 0x48], eax
test eax, eax
jns 0x495d13
mov dword [ebp - 0x38], 0
mov edx, dword [ebx + 0x38]
lea eax, [ebp - 0x38]
push eax
push 0
push 0
mov ecx, dword [edx]
push edi
push edx
mov byte [ebp - 4], 0xf
call dword [ecx + 0x50]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov ebx, dword [ebp - 0x48]
lea eax, [ebp - 0x68]
push 0
push eax
push ebx
mov byte [ebp - 4], 0x10
call fcn.004d1050
add esp, 0xc
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x68]
mov byte [ebp - 4], 0x11
test eax, eax
jne 0x495cac
mov eax, 0x649aa0
push eax
push ebx
push dword [ebp - 0x38]
lea eax, [ebp - 0x7c]
push str._r_n_ENUM_ERROR:_foder__ls___code_08X__desc__ls__r_n
push eax
call fcn.004034c0
add esp, 0x14
mov eax, dword [ebp - 0x7c]
mov byte [ebp - 4], 0x12
test eax, eax
je 0x495cd6
push eax
call fcn.00446420
add esp, 4
mov eax, dword [ebp - 0x68]
mov byte [ebp - 4], 0x13
test eax, eax
je 0x495cea
push eax
call fcn.00446420
add esp, 4
push dword [ebp - 0x38]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x64], 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ebx, dword [sym.imp.USER32.dll_DestroyMenu]
jmp 0x495f2e
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x40]
push edx
push eax
mov byte [ebp - 4], 0x16
mov ecx, dword [eax]
call dword [ecx + 0x20]
test eax, eax
js 0x495e22
mov edi, 0x1168
jmp 0x495d40
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x38]
push edx
push eax
mov byte [ebp - 4], 0x17
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov dword [ebp - 0x44], 0
mov ecx, dword [ebx + 0x38]
lea edx, [ebp - 0x44]
push edx
push dword [ebp - 0x38]
mov byte [ebp - 4], 0x18
mov eax, dword [ecx]
push ecx
call dword [eax + 0x54]
mov dword [ebp - 0x3c], 0
mov ecx, dword [ebx + 0x38]
lea edx, [ebp - 0x3c]
push edx
push dword [ebp - 0x44]
mov byte [ebp - 4], 0x19
mov eax, dword [ecx]
push 0
push dword [ebp - 0x38]
push ecx
call dword [eax + 0x50]
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x50]
mov dword [ebp - 0x50], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
test dword [ebp - 0x50], 0x100000
je 0x495dc3
push dword [ebp - 0x3c]
push edi
push 0x400
push 0xffffffffffffffff
push esi
call dword [sym.imp.USER32.dll_InsertMenuW]
inc edi
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x495ddb
mov dword [ebp - 0x40], 0
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 0x1b
call dword [ecx + 8]
push dword [ebp - 0x3c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 0x1c
test eax, eax
je 0x495df5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x38]
mov byte [ebp - 4], 0x1d
test eax, eax
je 0x495e06
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x40]
push edx
push eax
mov byte [ebp - 4], 0x16
mov ecx, dword [eax]
call dword [ecx + 0x20]
test eax, eax
jns 0x495d40
mov edi, dword [ebp - 0x54]
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push str.SubMenu
push dword [ebp - 0x58]
mov esi, eax
push 0x410
push 0
push esi
mov dword [ebp - 0x48], esi
call dword [sym.imp.USER32.dll_InsertMenuW]
push 0
push esi
call dword [sym.imp.USER32.dll_GetSubMenu]
mov esi, eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x6c]
push 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push dword [eax + 0xc]
mov dword [ebp - 0x14], 0
push 0x419
push dword [ebx + 0x40]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x20]
push ecx
push eax
push 0x41d
push dword [ebx + 0x40]
call dword [sym.imp.USER32.dll_SendMessageW]
push 2
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebx + 0x40]
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
sub ecx, 4
mov dword [ebp - 0x30], eax
sub edx, 0x19
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
push eax
push dword [ebx + 4]
mov dword [ebp - 0x34], 0x14
push ecx
push edx
push 0
push esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ecx
mov dword [ebx + 0x50], 1
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
push 0
push 0
push 0x4c8
push dword [ebx + 0x4c]
mov dword [ebx + 0x50], 0
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 0x70]
mov ebx, dword [sym.imp.USER32.dll_DestroyMenu]
mov dword [eax], 0
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x495f1a
push eax
call ebx
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 0x1e
test eax, eax
je 0x495f2b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp - 0x58]
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 4], 0x1f
test eax, eax
je 0x495f3f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0x20
test edi, edi
je 0x495f4d
mov eax, dword [edi]
push edi
call dword [eax + 8]
test esi, esi
je 0x495f54
push esi
call ebx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b2558
mov esp, ebp
pop ebp
ret 0xc