Here are some quotes from the END USER ACCESS AND LICENSE AGREEMENT (Part 2-B) you probably signed as it is required in order to play the game.
Except to the extent permitted under applicable law, you may not decompile, disassemble, translate, derive source code from, create derivative works based on, or reverse engineer the Software by any means whatsoever. You may not extract code from all or part of the Software, or authorise any third party to perform or to attempt to perform such operations on the Software. You may not remove, alter, circumvent or obscure any product identification, copyright, or other intellectual property notices in the Software.
It is also strictly prohibited to use any third-party software or any other device with a view to modifying the Software in any way, intercepting or scanning Game traffic or communications, changing the way the Game plays or playing in an abnormal manner or in a way that could impair the correct operation of the Game. Such prohibited third party software or devices can include, but are not limited to, those in the nature of "addons", "hacks", "cheats", "trainers", "mods", or the like by any name. The authorizations granted to you in accordance with this EUALA may under no circumstances be used for the purpose of creating or supplying any opportunity for third parties to access the Game, including through server emulators or similar devices. To the fullest extent permitted by applicable law, you agree that EA may scan your computer’s memory or hard disk drive to detect or locate any such unauthorized third party program or devices, with or without any prior notice to you at any time.
So I definitely do not think gamedev.stackexchange.com is the good place to ask this question as people evolving here are probably prone to respect game licenses as they are mostly game creators themselves.
However, technically speaking the question is interesting and could probably have some instructive answers on stackexchange.com