The ABC model helps you see the pattern: what happens BEFORE the behavior (Antecedent) tells you what triggered it. What happens AFTER (Consequence) tells you what reward it got. Together, they reveal the function.
Systematic ABC analysis requires: recording multiple instances of the behavior across different times and settings; identifying patterns (does it always happen in certain situations? Does it always get the same consequence?); and forming a testable hypothesis. Once you have a hypothesis ("this behavior functions as escape from demands"), you test it: predict when it will happen, prevent it by modifying the antecedent (change the task, provide more support) or offering the consequence differently (let them take a break before they meltdown), and monitor whether your prediction was right. If the behavior decreases, your hypothesis was likely correct.