The whole function of CLogin::OnPacket is broken. Go to IDA-View, manually highlight the methods in it, i.e, the ones with the switch statements, then press 'p' to create your own function.
*PS: Nope, I'm not, just browsing through forums and decided to play around with IDA for a while.