Function at 0x4fb9e0
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 0x4fba04
cmp eax, 0x80ae
jne 0x4fbe69
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 [0x546560]
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 0x4fbad3
mov eax, edx
shr eax, 0x10
jne 0x4fba9a
xor ecx, ecx
mov cx, dx
push ecx
lea ecx, [esp + 0x48]
call fcn.00413c90
jmp 0x4fbad3
push str.Zoom_:__3d___
call ebp
mov esi, eax
test esi, esi
je 0x4fbad3
push esi
lea ecx, [esp + 0x48]
call fcn.00405530
test eax, eax
je 0x4fbad3
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 0x4fbbf9
lea ecx, [esp + 0x20]
push 0xfa
push ecx
mov ecx, ebx
call fcn.004fbe80
mov edx, dword [0x546560]
mov esi, eax
mov eax, str.:__3d___
mov dword [esp + 0x14], edx
test eax, eax
je 0x4fbb0f
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 0x4fbb92
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4fbb5c
mov edx, dword [0x546564]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4fbb63
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4fbb73
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x4c]
call fcn.00405870
jmp 0x4fbb8e
lea ecx, [esp + 0x44]
call fcn.00412670
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 [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4fbbbd
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4fbbbd
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x20]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4fbcb0
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4fbcb0
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
jmp 0x4fbcb0
cmp eax, 0x80ad
jne 0x4fbcb0
lea eax, [esp + 0x20]
push 0xf7
push eax
mov ecx, ebx
call fcn.004fbe80
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 [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4fbc57
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4fbc57
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
lea eax, [esp + 0x20]
push pe_nt_image_headers32
push eax
mov ecx, ebx
call fcn.004fbe80
mov eax, dword [eax]
push eax
push 0x80a2
push 0
push edi
call esi
mov eax, dword [esp + 0x20]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4fbca4
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4fbca4
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.00531732
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 0x4fbcc5
mov ebp, 0x640
mov edi, 0x19
cmp ebp, edi
jle 0x4fbd49
mov esi, 0x2341
mov ecx, dword [esp + 0x44]
mov eax, dword [0x546560]
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 0x4fbd10
add edi, 0x4b
add esi, 0x4b
mov eax, dword [esp + 0x10]
mov ecx, dword [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4fbd3f
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4fbd3f
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
add edi, 0x19
add esi, 0x19
cmp edi, ebp
jl 0x4fbcd3
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 0x4fbe05
mov eax, dword [esp + 0x1c]
cmp eax, 0x80ae
jne 0x4fbda3
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 0x4fbe05
cmp eax, 0x80ad
jne 0x4fbe05
cmp esi, 0x2328
jl 0x4fbdf1
cmp esi, 0x4e20
jg 0x4fbdf1
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 0x4fbdf7
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 [0x546564]
pop edi
pop esi
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4fbe36
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4fbe36
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
test ebp, ebp
je 0x4fbe55
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