Thaw corn and place in food processor. Puree corn, milk, eggs, sugar, salt, pepper and chiles. Saute onion in butter until soft. Then add squash and bell pepper. Cook over low heat stirring frequently for 20 minutes until squash is cooked. Add corn mixture and continute to cook until it thickens slightly about 5 minutes. Add cheese, remove from heat and serve.