Type your comment> @TazWake said:
As discussed, I am not sure I am the best person to answer this - hopefully bumping it will draw a bit more attention though.
So just to check,
rdi
normally contains the first argument - have I remembered that correctly?Why would the address in
rdi
be in main?
Okay so the address for main is being stored into $rdi. Setting 0x40085d as a breakpoint and continuing drops you into main.
Edit: ohh so rdi contains the first arg? I didnt know that but it would make sense and answer my question. Thanks!