Mole de Pollo Ranchero Estilo Nayarit

Ingredients: 12 chicken legs 2 liters of water 1 onion 6 garlic cloves Salt to taste 10 dried California or guajillo chilies 2 tomatoes 2 cups of water 1 tablespoon of oregano 1 tablespoon of cumin 1 teaspoon of black pepper 1 cup of powdered corn masa or wheat flour 1/4 cup of oil Chicken broth (as needed)