Function at 0x4405e4
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
movzx ebx, word [ebp + 0xc]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 1
mov edi, ecx
push ebx
push 0x403
push dword [edi + 0x5d8]
call esi
and dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push 0
push ebx
push 0x419
mov dword [ebp - 4], eax
push dword [edi + 0x5d8]
call esi
lea ecx, [ebp - 0x40]
push ecx
push eax
push 0x41d
push dword [edi + 0x5d8]
call esi
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
push eax
push dword [edi + 0x5d8]
call dword [sym.imp.USER32.dll_ClientToScreen]
mov ebx, 0x485b50
lea ecx, [ebp - 0x18]
push ebx
call fcn.004013c7
lea eax, [ebp - 0x24]
push 0xc1d
push eax
call fcn.0044e20c
pop ecx
mov esi, 0xc1c
pop ecx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.0044e20c
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004015b5
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004015b5
lea ecx, [ebp - 0x1c]
call fcn.0040139b
lea ecx, [ebp - 0x20]
call fcn.0040139b
lea ecx, [ebp - 0x24]
call fcn.0040139b
lea ecx, [ebp - 0x18]
call fcn.0040139b
push ebx
lea ecx, [ebp - 0x18]
call fcn.004013c7
lea eax, [ebp - 0x1c]
push 0xc1e
push eax
call fcn.0044e20c
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.0044e20c
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004015b5
push eax
lea eax, [ebp - 8]
push eax
call fcn.004015b5
lea ecx, [ebp - 0x24]
call fcn.0040139b
lea ecx, [ebp - 0x20]
call fcn.0040139b
lea ecx, [ebp - 0x1c]
call fcn.0040139b
lea ecx, [ebp - 0x18]
call fcn.0040139b
lea eax, [ebp - 0x10]
push 0xcf0c
push eax
call fcn.0044e20c
xor eax, eax
pop ecx
cmp dword [edi + 0x2cc], eax
pop ecx
jne 0x440737
push 8
pop eax
push dword [ebp - 0x14]
mov esi, dword [sym.imp.USER32.dll_AppendMenuW]
push 1
push eax
push dword [ebp - 4]
call esi
mov eax, dword [edi + 0x2cc]
push dword [ebp - 8]
dec eax
neg eax
sbb eax, eax
push 2
and al, 0xf8
add eax, 8
push eax
push dword [ebp - 4]
call esi
push dword [ebp - 8]
mov ebx, 0x800
push 2
push ebx
push dword [ebp - 4]
call esi
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xb3ba
mov ecx, edi
call fcn.0043f620
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push 0x19a
push eax
call fcn.0044e20c
pop ecx
pop ecx
push dword [eax]
push dword [ebp - 0x24]
push 0x10
push dword [ebp - 4]
call esi
lea ecx, [ebp - 0x20]
call fcn.0040139b
mov eax, dword [ebp - 4]
push eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
dec eax
push eax
push 0xb3b3
push dword [ebp - 0x24]
call fcn.0043956d
lea eax, [ebp - 0x24]
push 0x19b
push eax
call fcn.0044e20c
add esp, 0x14
push dword [eax]
push 0xb3b4
push 0
push dword [ebp - 4]
call esi
lea ecx, [ebp - 0x24]
call fcn.0040139b
push 0
push 0
push ebx
push dword [ebp - 4]
call esi
push dword [ebp - 0x10]
push 0x8060
push 0
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x24]
push 0xb5
push eax
call fcn.0044d583
pop ecx
pop ecx
push dword [eax]
push 0x8015
push 0
push dword [ebp - 4]
call esi
lea ecx, [ebp - 0x24]
call fcn.0040139b
push dword [ebp - 8]
push 2
push ebx
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x24]
push 0xc28
push eax
call fcn.0044d583
pop ecx
pop ecx
push dword [eax]
push 0xb3b9
push 0
push dword [ebp - 4]
call esi
lea ecx, [ebp - 0x24]
call fcn.0040139b
push dword [ebp - 8]
push 2
push ebx
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x24]
push 0x3f2
push eax
call fcn.0044e20c
pop ecx
xor ebx, ebx
pop ecx
push dword [eax]
push 0x8493
push ebx
push dword [ebp - 4]
call esi
lea ecx, [ebp - 0x24]
call fcn.0040139b
lea eax, [ebp - 0x24]
push 0x3f3
push eax
call fcn.0044e20c
pop ecx
pop ecx
push dword [eax]
push 0x8492
push ebx
push dword [ebp - 4]
call esi
lea ecx, [ebp - 0x24]
call fcn.0040139b
push ebx
lea eax, [edi + 4]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0x101f
mov dword [ebp - 0x18], eax
push dword [eax]
call ebx
push 0
push 0
push 0x1200
push eax
call ebx
mov ecx, dword [0x481530]
push eax
lea eax, [ebp - 0xc]
push 0x485b54
push eax
mov dword [ebp - 0xc], ecx
call fcn.004017cb
add esp, 0xc
lea ecx, [ebp - 0x1c]
push 0x4830b4
call fcn.004013c7
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push 0x196
push eax
call fcn.0044e20c
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004015b5
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004015b5
push dword [eax]
push 0x8063
push 0
push dword [ebp - 4]
call esi
lea ecx, [ebp - 0x24]
call fcn.0040139b
lea ecx, [ebp - 0x20]
call fcn.0040139b
lea ecx, [ebp - 0x28]
call fcn.0040139b
lea ecx, [ebp - 0x1c]
call fcn.0040139b
mov eax, dword [edi + 0x50]
mov esi, 0x8060
neg eax
sbb eax, eax
and eax, 8
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov ecx, dword [0x493064]
and dword [ebp - 0x1c], 0
test ecx, ecx
je 0x440999
push 0
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push 0x102
push dword [ebp - 4]
call fcn.0041cf85
mov dword [ebp - 0x1c], eax
movzx eax, word [ebp + 0xc]
push 0
push eax
push 0x403
push dword [edi + 0x5d8]
call ebx
mov eax, dword [ebp - 0x1c]
xor ebx, ebx
cmp eax, ebx
je 0x440a3b
cmp eax, 1
jne 0x4409c7
mov dword [edi + 0x2cc], ebx
jmp 0x440a22
cmp eax, 2
jne 0x4409f7
lea eax, [ebp + 0xc]
push 0xb8
push eax
call fcn.0044e20c
mov eax, dword [eax]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
push ebx
push 0x48be08
push eax
call fcn.004173d2
lea ecx, [ebp + 0xc]
call fcn.0040139b
jmp 0x440a22
cmp eax, esi
jne 0x440a2b
xor eax, eax
cmp dword [edi + 0x50], ebx
lea ecx, [edi + 0x2d0]
sete al
mov dword [edi + 0x50], eax
mov dword [ecx], eax
call fcn.004445b1
mov ecx, dword [ebp - 0x18]
push 0x105
push ebx
push ebx
call fcn.00440a6c
mov ecx, edi
call fcn.0044023a
jmp 0x440a3b
mov ecx, dword [ebp - 0x18]
push dword [ecx]
push eax
push 0x111
call fcn.0042ed5f
lea ecx, [ebp - 0xc]
call fcn.0040139b
lea ecx, [ebp - 0x10]
call fcn.0040139b
lea ecx, [ebp - 8]
call fcn.0040139b
lea ecx, [ebp - 0x14]
call fcn.0040139b
lea ecx, [ebp - 4]
call fcn.0042ed76
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10