Function at 0x4bef40
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
mov eax, dword [0x55abcc]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetSubMenu]
push edi
push 4
mov edi, ecx
push eax
call esi
push 0
push eax
call esi
mov ebx, eax
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov esi, eax
push esi
push ebx
mov dword [esp + 0x1c], esi
call fcn.0047efd0
mov ebx, dword [sym.imp.USER32.dll_DeleteMenu]
add esp, 8
push 0x400
push 4
push esi
call ebx
test eax, eax
je 0x4bef98
push 0x400
push 4
push esi
call ebx
test eax, eax
jne 0x4bef8a
mov eax, dword [esp + 0x5c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push 0
mov ecx, dword [eax + 0xc]
mov ebx, dword [eax]
push ecx
push 0x419
push ebx
call ebp
lea ecx, [esp + 0x24]
push ecx
push eax
push 0x41d
push ebx
call ebp
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edx
push ecx
push ebx
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push 0
push edx
push 0
push eax
push ecx
push 0x102
push esi
call dword [sym.imp.USER32.dll_TrackPopupMenu]
test eax, eax
mov dword [esp + 0x18], eax
je 0x4bf0ff
lea edx, [esp + 0x5c]
push eax
push edx
call fcn.004bc810
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x40]
add esp, 8
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x5c]
mov byte [esp + 0x45], al
mov dword [esp + 0x34], 0x20
mov dword [esp + 0x38], 2
mov edx, dword [ecx - 0xc]
lea eax, [ecx - 0xc]
cmp edx, 1
mov dword [esp + 0x10], eax
jg 0x4bf04f
mov edx, dword [ecx - 4]
test edx, edx
jge 0x4bf096
mov ebp, dword [ecx - 8]
test ebp, ebp
jle 0x4bf05c
jne 0x4bf123
mov edi, dword [0x546560]
mov dword [esp + 0x5c], edi
lea ecx, [ebp + ebp + 2]
lea esi, [eax + 0xc]
mov edx, ecx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x60]
mov dword [ecx - 8], ebp
call fcn.00405590
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x14]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x34]
sub edx, edi
push eax
push 0x808a
push 0x440
push ebx
mov dword [esp + 0x5c], ecx
mov word [esp + 0x56], dx
call ebp
mov ecx, dword [esp + 0x18]
mov edx, dword [0x55ab48]
push 0
push ecx
push 0x111
push edx
call ebp
mov eax, dword [esp + 0x5c]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4bf0ff
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4bf0ff
mov edx, dword [esp + 0x5c]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x60]
test esi, esi
mov dword [eax], 0
je 0x4bf114
push esi
call dword [sym.imp.USER32.dll_DestroyMenu]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
lea eax, [ebp + ebp + 0xe]
push eax
call fcn.00531ba5
add esp, 4
test eax, eax
je 0x4bf157
mov dword [eax], 1
mov word [eax + ebp*2 + 0xc], 0
lea edi, [eax + 0xc]
mov dword [eax + 4], ebp
mov dword [eax + 8], ebp
mov eax, dword [esp + 0x10]
mov dword [esp + 0x5c], edi
jmp 0x4bf066
xor ecx, ecx
jmp 0x4bf090