Timiti is a ritual walking on fire in Hindu festivals dating from Tamil Nadu, South India. Maybe you've seen it in Indonesia, whether it's in the movie or in real because this ritual also exist in Indonesia.
This ritual was also carried out in the Nine Emperor Gods festival which was celebrated in Penang, Malaysia. One ritual of purification includes walking on fire with barefoot. They believe that fire will cleanse uncleanness and fight evil from their bodies. So walking on fire symbolizes the power of men and how strongly they desire to free themselves from evil.