Complex sentence: Those soldiers who were able to escape the rampage, rather than retreating, chose to veer to the sides and attack the flanks of Hemu's cavalry, pelting them with their superior archery.
Split into simpler sentences: Those soldiers who were able to escape the rampage did not run away. Instead, they withdrew to the sides and fell on Hemu's cavalry, pelting them with their superior archery.