It’s probably more difficult to reverse engineer than learn it from scratch especially if the code isn’t commented.
Looking at the diagram it seems like shotgun spread or any type of spread so these two resources should help: