Function at 0x60c970
Capabilities:
Capture webcam image

Disassembly:
mov eax, 0x686c69
call fcn.0062921c
sub esp, 0x64
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x10], edi
sub eax, 1
je 0x60cbde
sub eax, 0x10000
je 0x60cb2d
sub eax, 1
jne 0x60cbda
cmp dword [ebx + 0x24], 3
jne 0x60cbda
lea eax, [ebp - 0x30]
push eax
push 0
push 0x41a
push dword [ebx]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
call ebx
push dword [edi + 0x50]
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x10]
call dword [sym.imp.USER32.dll_FillRect]
mov esi, dword [ebp - 0x24]
mov eax, esi
mov ecx, dword [ebp - 0x2c]
sub eax, ecx
sub eax, 4
cdq
sub eax, edx
sar eax, 1
add ecx, eax
sub esi, eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x2c], ecx
push eax
push dword [edi + 4]
mov dword [ebp - 0x24], esi
call dword [sym.imp.USER32.dll_GetClientRect]
and dword [ebp - 0x30], 0
lea esi, [ebp - 0x30]
mov eax, dword [ebp - 0x58]
lea edi, [ebp - 0x50]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x70]
movsd dword es:[edi], dword [esi]
push eax
push 0
push 0x419
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 8]
push dword [edi]
call ebx
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x48], eax
push 4
mov eax, dword [esi + 0x30]
pop ebx
cmp dword [eax + ebx], 0
je 0x60cae0
push 0x6ac
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [edi], eax
jne 0x60cae0
mov ecx, dword [esi + 0x30]
and dword [ebp - 0x20], 0
and dword [ebp - 0x1c], 0
push dword [edi + 0x10]
mov eax, dword [ecx + 4]
mov eax, dword [eax + 0x54]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 4]
lea ecx, [ebp + 8]
mov eax, dword [eax + 0x60]
mov dword [ebp - 0x14], eax
call fcn.00587f50
and dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x60cad2
mov eax, dword [esi + 0x30]
lea ecx, [ebp - 0x18]
push ecx
push 0x60ae3d
mov eax, dword [eax + ebx]
push dword [eax + 0x64]
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.005806c5
mov ecx, dword [ebp - 0x24]
mov esi, eax
sub ecx, dword [ebp - 0x2c]
push esi
push ecx
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x30]
push ecx
push dword [ebp - 0x2c]
lea ecx, [ebp + 8]
push dword [ebp - 0x30]
call fcn.0058843d
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00409944
jmp 0x60cb02
push 0x717171
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, eax
lea eax, [ebp - 0x30]
push esi
push eax
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_FillRect]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
call fcn.005997c6
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, eax
lea eax, [ebp - 0x50]
push esi
push eax
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_FillRect]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edi, dword [ebp - 0x10]
jmp 0x60cbe1
mov eax, dword [ebx + 0x24]
cmp eax, 2
jne 0x60cbd1
mov edi, 0x7a6b38
lea esi, [ebx + 0x14]
mov ecx, 0x77de0c
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x14]
lea edi, [ebp - 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor edi, edi
push edi
push 0x61
call fcn.005c4a53
mov esi, eax
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x34]
add eax, 0x10
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x38]
add eax, 0x10
cdq
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
push 3
push edi
push edi
push eax
mov eax, dword [ebp - 0x38]
sub eax, ecx
inc eax
push eax
push esi
push dword [ebp - 0x3c]
lea eax, [ecx - 1]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_DrawIconEx]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push dword [ebx + 0x10]
call dword [sym.imp.GDI32.dll_ExcludeClipRect]
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
mov edi, dword [ebp - 0x10]
push 4
jmp 0x60cbe0
cmp eax, 3
jne 0x60cbda
push 0x14
jmp 0x60cbe0
xor ebx, ebx
jmp 0x60cbe1
push 0x30
pop ebx
or dword [edi + 0x10], 0x40
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [0x79fb60], ebx
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4