The format of the age3Yrec replay file

I would like to use c# to make a tool for automatic read the player name and civilization of the replay file.
Could Devs Provide me how to decode extra information in age3Yrec files?