Function at 0x4654f7
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0x10]
push 1
pop eax
mov esi, 0x8004
mov dword [ebp - 8], eax
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0xc], esi
jne 0x465ab4
and dword [ebp - 8], 0
push ebx
push edi
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov dword [ebp + 0x10], eax
call fcn.0040a0d4
lea ecx, [ebp - 0x14]
mov dword [ebp + 0xc], eax
call fcn.00473bce
mov ecx, dword [ebp + 0xc]
mov ebx, 0x80
push esi
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.0043bdc4
push eax
lea ecx, [ebp - 0x1c]
call fcn.00473c07
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [ebp - 0x10]
push eax
call fcn.004065e8
lea ecx, [ebp - 0x1c]
call fcn.00473bfc
lea ecx, [ebp - 0xc]
call fcn.00401085
lea edi, [ebp - 0x14]
lea eax, [ebp - 0x10]
neg edi
sbb edi, edi
and edi, eax
push dword [edi]
push esi
mov esi, dword [sym.imp.USER32.dll_AppendMenuW]
push 0
push dword [ebp + 0x10]
call esi
push 0
push 0
push 0x800
push dword [ebp + 0x10]
call esi
mov ecx, dword [ebp + 0xc]
push 0x8012
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.0043bdc4
push eax
lea ecx, [ebp - 0x1c]
call fcn.00473c07
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [ebp - 0x10]
push eax
call fcn.004065e8
lea ecx, [ebp - 0x1c]
call fcn.00473bfc
lea ecx, [ebp - 0xc]
call fcn.00401085
push dword [edi]
push 0x8012
push 0
push dword [ebp + 0x10]
call esi
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xdc]
test ecx, ecx
je 0x46561b
call fcn.0047c066
test eax, eax
je 0x46561b
push 8
push 0x8012
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_CheckMenuItem]
lea eax, [ebp - 0xc]
push 0x8034
push eax
call fcn.00416a2f
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00473c07
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [ebp - 0x10]
push eax
call fcn.004065e8
lea ecx, [ebp - 0x1c]
call fcn.00473bfc
lea ecx, [ebp - 0xc]
call fcn.00401085
push dword [edi]
push 0x8034
push 0
push dword [ebp + 0x10]
call esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
neg eax
sbb eax, eax
and eax, 8
push eax
push 0x8034
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_CheckMenuItem]
push 0
push 0
push 0x800
push dword [ebp + 0x10]
call esi
mov ecx, dword [ebp + 0xc]
push 0x8029
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.0043bdc4
push eax
lea ecx, [ebp - 0x1c]
call fcn.00473c07
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [ebp - 0x10]
push eax
call fcn.004065e8
lea ecx, [ebp - 0x1c]
call fcn.00473bfc
lea ecx, [ebp - 0xc]
call fcn.00401085
push dword [edi]
push 0x8029
push 0
push dword [ebp + 0x10]
call esi
mov ecx, dword [ebp + 0xc]
push 0x8031
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.0043bdc4
push eax
lea ecx, [ebp - 0x1c]
call fcn.00473c07
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
neg eax
sbb eax, eax
and eax, ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.004065e8
lea ecx, [ebp - 0x1c]
call fcn.00473bfc
lea ecx, [ebp - 0xc]
call fcn.00401085
push dword [edi]
push 0x8031
push 0
push dword [ebp + 0x10]
call esi
mov ecx, dword [ebp + 0xc]
push 0x8063
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.0043bdc4
push eax
lea ecx, [ebp - 0x1c]
call fcn.00473c07
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [ebp - 0x10]
push eax
call fcn.004065e8
lea ecx, [ebp - 0x1c]
call fcn.00473bfc
lea ecx, [ebp - 0xc]
call fcn.00401085
push dword [edi]
push 0x8063
push 0
push dword [ebp + 0x10]
call esi
mov ecx, dword [ebp + 0xc]
push 0x803b
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.0043bdc4
push eax
lea ecx, [ebp - 0x1c]
call fcn.00473c07
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [ebp - 0x10]
push eax
call fcn.004065e8
lea ecx, [ebp - 0x1c]
call fcn.00473bfc
lea ecx, [ebp - 0xc]
call fcn.00401085
push dword [edi]
push 0x803b
push 0
push dword [ebp + 0x10]
call esi
mov ecx, dword [ebp + 0xc]
push 0x805e
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.0043bdc4
push eax
lea ecx, [ebp - 0x1c]
call fcn.00473c07
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [ebp - 0x10]
push eax
call fcn.004065e8
lea ecx, [ebp - 0x1c]
call fcn.00473bfc
lea ecx, [ebp - 0xc]
call fcn.00401085
push dword [edi]
push 0x805e
push 0
push dword [ebp + 0x10]
call esi
mov ecx, dword [ebp + 0xc]
push 0x802f
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.0043bdc4
push eax
lea ecx, [ebp - 0x1c]
call fcn.00473c07
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [ebp - 0x10]
push eax
call fcn.004065e8
lea ecx, [ebp - 0x1c]
call fcn.00473bfc
lea ecx, [ebp - 0xc]
call fcn.00401085
push dword [edi]
push 0x802f
push 0
push dword [ebp + 0x10]
call esi
push 0
push 0
push 0x800
push dword [ebp + 0x10]
call esi
mov ecx, dword [ebp + 0xc]
push 0x8017
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.0043bdc4
push eax
lea ecx, [ebp - 0x1c]
call fcn.00473c07
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [ebp - 0x10]
push eax
call fcn.004065e8
lea ecx, [ebp - 0x1c]
call fcn.00473bfc
lea ecx, [ebp - 0xc]
call fcn.00401085
push dword [edi]
push 0x8017
push 0
push dword [ebp + 0x10]
call esi
mov ecx, dword [ebp + 0xc]
push 0x8061
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.0043bdc4
push eax
lea ecx, [ebp - 0x1c]
call fcn.00473c07
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [ebp - 0x10]
push eax
call fcn.004065e8
lea ecx, [ebp - 0x1c]
call fcn.00473bfc
lea ecx, [ebp - 0xc]
call fcn.00401085
push dword [edi]
push 0x8061
push 0
push dword [ebp + 0x10]
call esi
mov ecx, dword [ebp + 0xc]
push 0xe140
lea eax, [ebp + 0xc]
push ebx
push eax
call fcn.0043bdc4
push eax
lea ecx, [ebp - 0x1c]
call fcn.00473c07
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push eax
call fcn.004052bf
lea ecx, [ebp - 0x1c]
call fcn.00473bfc
lea ecx, [ebp + 0xc]
call fcn.00401085
push dword [edi]
xor ebx, ebx
push 0xe140
push ebx
push dword [ebp + 0x10]
call esi
push ebx
push ebx
push 0x800
push dword [ebp + 0x10]
call esi
mov ebx, 0xe141
lea eax, [ebp + 0xc]
push ebx
push eax
call fcn.00416a2f
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00473c07
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push eax
call fcn.004052bf
lea ecx, [ebp - 0x1c]
call fcn.00473bfc
lea ecx, [ebp + 0xc]
call fcn.00401085
push dword [edi]
xor edi, edi
push ebx
push edi
push dword [ebp + 0x10]
call esi
call fcn.0040a08b
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
push 0x117
push eax
call esi
mov ebx, 0x8004
push edi
mov edi, dword [ebp - 4]
push ebx
push 0x419
push dword [edi + 0xe4]
call esi
lea ecx, [ebp - 0x2c]
push ecx
push eax
push 0x41d
push dword [edi + 0xe4]
call esi
lea eax, [ebp - 0x2c]
push eax
push dword [edi + 0xe4]
call dword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x465a09
lea eax, [ebp - 0x24]
push eax
push dword [edi + 0xe4]
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [ebp - 0x24]
push 1
push ebx
push 0x402
push dword [edi + 0xe4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
call esi
push 0
push ebx
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [edi + 4]
push 0
push eax
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push 0x100
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
push dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
call dword [sym.imp.USER32.dll_DestroyMenu]
push 0
push ebx
push 0x402
push dword [edi + 0xe4]
call esi
xor eax, eax
cmp dword [ebp + 0xc], eax
je 0x465aaa
cmp dword [ebp + 0xc], 0x8034
jne 0x465a96
xor ecx, ecx
cmp dword [edi + 0x60], eax
sete cl
mov dword [edi + 0x60], ecx
mov ecx, edi
call fcn.00466cfe
jmp 0x465aaa
push eax
movzx eax, word [ebp + 0xc]
push eax
push 0x111
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [ebp - 0x14]
call fcn.00473bfc
pop edi
pop ebx
mov eax, dword [ebp - 8]
pop esi
leave
ret 0xc