although it is good practice to read the entire code, try to read that part of the source code which is near to the input you need to provide. And hint provided by Int7 is all you need to solve it.
By the way r4v463 & PNTSTR: Do you know how receiving patrol medal works?
I flagged NPIS & rizer123 as spoiler and wonder if moderators assign this medal manually to someone who flagged the post first or to first one who does not have patrol medal yet or only if they are asked to do so or …
NPIS. No, worries. Just delete your post, not to spoil the fun for others. Levels should be challenges. You can be guided by others but not given exact answer.
You can post your answer in the solutions section, to compare how others did it.
you don’t need to understand everything the code does to solve this level. so maybe searching with ctrl+f for terms you might be interested in / know about could get you further.