ISTM that the "C" in "C9015" is an error. If the transistor is indeed a PNP type, then one would expect an "A" or "B", if anything.
That said, ISTM that the circuit works as follows.
Initially the TL431 is switched off, which means that Q2 is also off. When S1 is closed, battery current flows through D1, C1 and R2. The voltage across C1 is initially 0, and then rises as the capacitor charges. At switch-on, the voltage at the Ref pin of U1 is ...
Vref = (Vbat - Vfd1) x (R4 || R3) / (R2 + R4 || R3)
That's about 12V. This voltage turns on U1 which in turn enables Q2. R4 and R3 now form a potential divider which takes control of U1. In the meantime, C1 becomes fully charged and no more current flows through R2. If the battery voltage now drops below the over-discharge threshold, U1 switches off and Q2 is then latched off. Since C1 is fully charged, it must be discharged to reset the latch. This happens automatically when S1 is opened, ie base current flows from Q1 to ground via R1, thereby switching on Q1 and discharging C1.
The over-discharge threshold voltage is given by ...
Vdis = 2.5V x (1 + R4/R3) = 2.5 x 4.9 = 12.25V