What do these two PNP transistors do in this power circuit?
This is an ideal diode circuit. It permits current to flow when the left hand side is at a higher voltage than the right, but blocks current flow otherwise, like a regular diode, but it has minimal forward voltage drop.
The circuit is described in this power electronics tips article