Function at 0x4fc5c0
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x34]
push ebx
push ebp
mov ebx, ecx
mov eax, dword [eax + 0xc]
cmp eax, 0x80ad
mov dword [esp + 0x14], eax
je 0x4fc5e4
cmp eax, 0x80ae
jne 0x4fca49
mov ecx, dword [esp + 0x40]
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
mov dword [ecx], 1
mov edx, dword [ebx + 0x39c]
push 0
push eax
push 0x419
push edx
call esi
mov edx, dword [ebx + 0x39c]
lea ecx, [esp + 0x2c]
push ecx
push eax
push 0x41d
push edx
call esi
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x39c]
lea edx, [esp + 0x24]
mov dword [esp + 0x28], ecx
push edx
push eax
call dword [sym.imp.USER32.dll_ClientToScreen]
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov ecx, dword [0x547570]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, str.Zoom_:__3d___
mov edi, eax
test edx, edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x44], ecx
je 0x4fc6b3
mov eax, edx
shr eax, 0x10
jne 0x4fc67a
xor ecx, ecx
mov cx, dx
push ecx
lea ecx, [esp + 0x48]
call fcn.00413ae0
jmp 0x4fc6b3
push str.Zoom_:__3d___
call ebp
mov esi, eax
test esi, esi
je 0x4fc6b3
push esi
lea ecx, [esp + 0x48]
call fcn.00405530
test eax, eax
je 0x4fc6b3
mov edi, dword [esp + 0x44]
lea ecx, [esi + esi]
mov eax, ecx
mov esi, str.Zoom_:__3d___
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp eax, 0x80ae
jne 0x4fc7d9
lea ecx, [esp + 0x20]
push 0xfa
push ecx
mov ecx, ebx
call fcn.004fca60
mov edx, dword [0x547570]
mov esi, eax
mov eax, str.:__3d___
mov dword [esp + 0x14], edx
test eax, eax
je 0x4fc6ef
push str.:__3d___
call ebp
mov ecx, dword [esi]
push str.:__3d___
push eax
push ecx
mov ecx, dword [ecx - 8]
push ecx
lea ecx, [esp + 0x24]
call fcn.004059f0
lea edx, [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
call fcn.00405440
lea ecx, [esp + 0x14]
call fcn.00405700
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x10]
cmp ecx, eax
je 0x4fc772
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4fc73c
mov edx, dword [0x547574]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4fc743
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4fc753
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x4c]
call fcn.00405870
jmp 0x4fc76e
lea ecx, [esp + 0x44]
call fcn.004124c0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x44], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x10]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4fc79d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4fc79d
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x20]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4fc890
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4fc890
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
jmp 0x4fc890
cmp eax, 0x80ad
jne 0x4fc890
lea eax, [esp + 0x20]
push 0xf7
push eax
mov ecx, ebx
call fcn.004fca60
mov eax, dword [eax]
mov esi, dword [sym.imp.USER32.dll_AppendMenuW]
push eax
push 0x80a1
push 0
push edi
call esi
mov eax, dword [esp + 0x20]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4fc837
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4fc837
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
lea eax, [esp + 0x20]
push 0xf8
push eax
mov ecx, ebx
call fcn.004fca60
mov eax, dword [eax]
push eax
push 0x80a2
push 0
push edi
call esi
mov eax, dword [esp + 0x20]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4fc884
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4fc884
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
push 0
push 0
push 0x800
push edi
call esi
mov eax, dword [esp + 0x1c]
mov ebp, 0x44c
cmp eax, 0x80ae
jne 0x4fc8a5
mov ebp, 0x640
mov edi, 0x19
cmp ebp, edi
jle 0x4fc929
mov esi, 0x2341
mov ecx, dword [esp + 0x44]
mov eax, dword [0x547570]
push edi
lea edx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x1c], eax
call fcn.00405cb0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
add esp, 0xc
push eax
push esi
push 0
push ecx
call dword [sym.imp.USER32.dll_AppendMenuW]
cmp esi, 0x251c
jl 0x4fc8f0
add edi, 0x4b
add esi, 0x4b
mov eax, dword [esp + 0x10]
mov ecx, dword [0x547574]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4fc91f
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4fc91f
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
add edi, 0x19
add esi, 0x19
cmp edi, ebp
jl 0x4fc8b3
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x18]
push 0
push ecx
push 0
push edx
push eax
push 0x102
push ebp
call dword [sym.imp.USER32.dll_TrackPopupMenu]
mov esi, eax
test esi, esi
je 0x4fc9e5
mov eax, dword [esp + 0x1c]
cmp eax, 0x80ae
jne 0x4fc983
mov ecx, dword [ebx + 0x108]
lea eax, [esi - 0x2328]
push eax
push 1
push 0x405
push ecx
mov dword [ebx + 0xf8], eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4fc9e5
cmp eax, 0x80ad
jne 0x4fc9e5
cmp esi, 0x2328
jl 0x4fc9d1
cmp esi, 0x4e20
jg 0x4fc9d1
mov edx, dword [ebx + 0x10c]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esi - 0x2328]
push eax
push 1
push 0x405
push edx
mov dword [ebx + 0xfc], eax
call edi
mov eax, dword [ebx + 4]
push 0
push 0x80a0
push 0x111
push eax
call edi
jmp 0x4fc9d7
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebx + 4]
push 0
push esi
push 0x111
push ecx
call edi
mov eax, dword [esp + 0x44]
mov ecx, dword [0x547574]
pop edi
pop esi
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4fca16
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4fca16
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
test ebp, ebp
je 0x4fca35
push ebp
call dword [sym.imp.USER32.dll_DestroyMenu]
mov ecx, dword [esp + 0x40]
pop ebp
xor eax, eax
pop ebx
mov dword [ecx], 0
add esp, 0x2c
ret 0xc
mov edx, dword [esp + 0x40]
pop ebp
xor eax, eax
pop ebx
mov dword [edx], 0
add esp, 0x2c
ret 0xc
mov eax, dword [esp + 0x40]
pop ebp
pop ebx
mov dword [eax], 0
xor eax, eax
add esp, 0x2c
ret 0xc