like this
1 find some code is not use (like CC CC)
2 add what you want add (like maxuser) ,this is add text
3 find GS API like this
004F8963 . 68 10696100 push GameServ.00616910 ; ASCII "commonserver.cfg" (you need add new cmd in this file)
004F8968 . B9 10ECFB09 mov ecx,GameServ.09FBEC10
004F896D . E8 A9A7F0FF call <GameServ.j_CDirPath__GetNewPath> (read new cmd api)004F8972 . 50 push eax ; /IniFileName
004F8973 . 6A 02 push 2 ; |Default = 2
004F8975 . 68 086F6100 push GameServ.00616F08 ; |Key = "BoxOfGoldDropRate" (this is your new cmd)
004F897A . 68 EC686100 push GameServ.006168EC ; |Section = "GameServerInfo"
004F897F . FF15 D09CB70A call dword ptr ds:[<&KERNEL32.GetPrivate>; \GetPrivateProfileIntA (read new cmd api)
004F8985 . A3 F08D6200 mov dword ptr ds:[628DF0],eax (read your new cmd config in this memory)
4 JMP to new place add some code like above api code
5 add your new cmd in commonserver.cfg and push it in GS like this
004F9297 68 10696100 push GameServ.00616910 ; ASCII "commonserver.cfg"
004F929C B9 10ECFB09 mov ecx,GameServ.09FBEC10
004F92A1 E8 759EF0FF call <GameServ.j_CDirPath__GetNewPath>
004F92A6 50 push eax
004F92A7 6A 02 push 2
004F92A9 68 989A6100 push GameServ.00619A98 ; ASCII "newcmd"
004F92AE 68 EC686100 push GameServ.006168EC ; ASCII "GameServerInfo"
004F92B3 FF15 D09CB70A call dword ptr ds:[<&KERNEL32.GetPrivate>; kernel32.GetPrivateProfileIntA
004F92B9 A3 F48D6200 mov dword ptr ds:[628DF4],eax
attention: 628DF4 this memory you need to decide it's didn't use in other code
6 read value (what value in 628dF4 ) and add it to what you want chage