{"type": "func", "start": 4608444, "end": 4608680, "name": "GJAccountManager::registerAccount", "pseudocode": "// \n// GJAccountManager::registerAccount from 0x4651bc to 0x4652a8 (236 bytes)\n// \n// 1 xrefs:\n// > AccountRegisterLayer::onSubmit @ 0x46908a\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nint __fastcall GJAccountManager::registerAccount(GJAccountManager *a1, const char **a2, int *a3, int *a4)\n{\n  const char *v8; // r6\n  int v9; // r5\n  int v10; // r4\n  cocos2d::CCString *v11; // r0\n  const char *CString; // r0\n  cocos2d::CCString *v13; // r0\n  char *v14; // r6\n  char *v16; // [sp+20h] [bp-14h] BYREF\n  const void *v17; // [sp+24h] [bp-10h] BYREF\n  char *v18; // [sp+28h] [bp-Ch] BYREF\n\n  if ( GJAccountManager::isDLActive(a1, \"reg_account\") )\n    return 0;\n  GJAccountManager::addDLToActive(a1, \"reg_account\");\n  v8 = *a2;\n  v9 = *a3;\n  v10 = *a4;\n  v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                               (cocos2d::CCString *)\"%c%s%s%c%c%s\",\n                               (const char *)&dword_54 + 3,\n                               \"mfv\",\n                               \"3899\",\n                               103,\n                               99,\n                               &aO1i2r3e45s7t89[13]);\n  CString = cocos2d::CCString::getCString(v11);\n  v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                               (cocos2d::CCString *)\"userName=%s&password=%s&email=%s&secret=%s\",\n                               v8,\n                               v9,\n                               v10,\n                               CString);\n  v14 = (char *)cocos2d::CCString::getCString(v13);\n  sub_776584((int)&v16, \"https://www.boomlings.com/database/accounts/registerGJAccount.php\");\n  sub_776584((int)&v17, v14);\n  sub_776584((int)&v18, \"RegisterAccount\");\n  GJAccountManager::ProcessHttpRequest(a1, &v16, &v17, &v18, 22);\n  sub_774008(&v18);\n  sub_774008(&v17);\n  sub_774008(&v16);\n  return 1;\n}", "assembly": "; \n; GJAccountManager::registerAccount from 0x4651bc to 0x4652a8 (236 bytes)\n; \n; 1 xrefs:\n; > AccountRegisterLayer::onSubmit @ 0x46908a\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH.W          {R4-R9,LR}                                             ; +0x0, 0x4651bc\nMOV             R9, R3                                                 ; +0x4, 0x4651c0\nLDR             R7, =(__stack_chk_guard_ptr - 0x4651CE)                ; +0x6, 0x4651c2\nSUB             SP, SP, #0x34                                          ; +0x8, 0x4651c4\nLDR             R4, =(aRegAccount - 0x4651D4); \"reg_account\"           ; +0xa, 0x4651c6\nMOV             R6, R1                                                 ; +0xc, 0x4651c8\nADD             R7, PC; __stack_chk_guard_ptr                          ; +0xe, 0x4651ca\nLDR             R7, [R7]; __stack_chk_guard                            ; +0x10, 0x4651cc\nMOV             R8, R0                                                 ; +0x12, 0x4651ce\nADD             R4, PC; \"reg_account\"                                  ; +0x14, 0x4651d0\nMOV             R5, R2                                                 ; +0x16, 0x4651d2\nLDR             R3, [R7]                                               ; +0x18, 0x4651d4\nMOV             R1, R4; char *                                         ; +0x1a, 0x4651d6\nSTR             R3, [SP,#0x34+var_8]                                   ; +0x1c, 0x4651d8\nBL              _ZN16GJAccountManager10isDLActiveEPKc; GJAccountManager::isDLActive(char const*) ; +0x1e, 0x4651da\nCMP             R0, #0                                                 ; +0x22, 0x4651de\nBNE             loc_46527A                                             ; +0x24, 0x4651e0\nMOV             R1, R4; char *                                         ; +0x26, 0x4651e2\nMOV             R0, R8; this                                           ; +0x28, 0x4651e4\nBL              _ZN16GJAccountManager13addDLToActiveEPKc; GJAccountManager::addDLToActive(char const*) ; +0x2a, 0x4651e6\nLDR             R6, [R6]                                               ; +0x2e, 0x4651ea\nLDR             R5, [R5]                                               ; +0x30, 0x4651ec\nMOVS            R2, #0x67 ; 'g'                                        ; +0x32, 0x4651ee\nMOVS            R3, #0x63 ; 'c'                                        ; +0x34, 0x4651f0\nSTMEA.W         SP, {R2,R3}                                            ; +0x36, 0x4651f2\nLDR             R3, =(aO1i2r3e45s7t89+0x1A - 0x465200); \"9g\"           ; +0x3a, 0x4651f6\nMOVS            R1, #(dword_54+3); char *                              ; +0x3c, 0x4651f8\nLDR             R0, =(aCSSCCS - 0x465206); \"%c%s%s%c%c%s\"              ; +0x3e, 0x4651fa\nADD             R3, PC; \"9g\"                                           ; +0x40, 0x4651fc\nLDR             R2, =(aMfv - 0x46520A); \"mfv\"                          ; +0x42, 0x4651fe\nSTR             R3, [SP,#0x34+var_2C]                                  ; +0x44, 0x465200\nADD             R0, PC; \"%c%s%s%c%c%s\"                                 ; +0x46, 0x465202\nLDR             R3, =(a3899 - 0x465210); \"3899\"                        ; +0x48, 0x465204\nADD             R2, PC; \"mfv\"                                          ; +0x4a, 0x465206\nLDR.W           R4, [R9]                                               ; +0x4c, 0x465208\nADD             R3, PC; \"3899\"                                         ; +0x50, 0x46520c\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x52, 0x46520e\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x56, 0x465212\nMOV             R1, R6; char *                                         ; +0x5a, 0x465216\nMOV             R2, R5                                                 ; +0x5c, 0x465218\nMOV             R3, R4                                                 ; +0x5e, 0x46521a\nADD             R4, SP, #0x34+var_14                                   ; +0x60, 0x46521c\nADD             R5, SP, #0x34+var_10                                   ; +0x62, 0x46521e\nSTR             R0, [SP,#0x34+var_34]                                  ; +0x64, 0x465220\nLDR             R0, =(aUsernameSPassw - 0x465228); \"userName=%s&password=%s&email=%s&secret\"... ; +0x66, 0x465222\nADD             R0, PC; \"userName=%s&password=%s&email=%s&secret\"...   ; +0x68, 0x465224\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x6a, 0x465226\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x6e, 0x46522a\nLDR             R1, =(aHttpsWwwBoomli_63 - 0x465236); \"https://www.boomlings.com/database/acco\"... ; +0x72, 0x46522e\nADD             R2, SP, #0x34+var_20                                   ; +0x74, 0x465230\nADD             R1, PC; \"https://www.boomlings.com/database/acco\"...   ; +0x76, 0x465232\nMOV             R6, R0                                                 ; +0x78, 0x465234\nMOV             R0, R4; int                                            ; +0x7a, 0x465236\nBL              sub_776584                                             ; +0x7c, 0x465238\nMOV             R0, R5; int                                            ; +0x80, 0x46523c\nMOV             R1, R6; char *                                         ; +0x82, 0x46523e\nADD             R2, SP, #0x34+var_1C                                   ; +0x84, 0x465240\nBL              sub_776584                                             ; +0x86, 0x465242\nADD             R6, SP, #0x34+var_C                                    ; +0x8a, 0x465246\nLDR             R1, =(aRegisteraccoun - 0x465252); \"RegisterAccount\"   ; +0x8c, 0x465248\nADD             R2, SP, #0x34+var_18                                   ; +0x8e, 0x46524a\nMOV             R0, R6; int                                            ; +0x90, 0x46524c\nADD             R1, PC; \"RegisterAccount\"                              ; +0x92, 0x46524e\nBL              sub_776584                                             ; +0x94, 0x465250\nMOVS            R3, #0x16                                              ; +0x98, 0x465254\nMOV             R0, R8                                                 ; +0x9a, 0x465256\nSTR             R3, [SP,#0x34+var_34]                                  ; +0x9c, 0x465258\nMOV             R1, R4                                                 ; +0x9e, 0x46525a\nMOV             R2, R5                                                 ; +0xa0, 0x46525c\nMOV             R3, R6                                                 ; +0xa2, 0x46525e\nBL              _ZN16GJAccountManager18ProcessHttpRequestESsSsSs10GJHttpType; GJAccountManager::ProcessHttpRequest(std::string,std::string,std::string,GJHttpType) ; +0xa4, 0x465260\nMOV             R0, R6                                                 ; +0xa8, 0x465264\nBL              sub_774008                                             ; +0xaa, 0x465266\nMOV             R0, R5                                                 ; +0xae, 0x46526a\nBL              sub_774008                                             ; +0xb0, 0x46526c\nMOV             R0, R4                                                 ; +0xb4, 0x465270\nBL              sub_774008                                             ; +0xb6, 0x465272\nMOVS            R0, #1                                                 ; +0xba, 0x465276\nB               loc_46527C                                             ; +0xbc, 0x465278\nMOVS            R0, #0                                                 ; +0xbe, 0x46527a\nLDR             R2, [SP,#0x34+var_8]                                   ; +0xc0, 0x46527c\nLDR             R3, [R7]                                               ; +0xc2, 0x46527e\nCMP             R2, R3                                                 ; +0xc4, 0x465280\nBEQ             loc_4652A2                                             ; +0xc6, 0x465282\nBLX             __stack_chk_fail                                       ; +0xc8, 0x465284\nMOV             R0, R6                                                 ; +0xcc, 0x465288\nBL              sub_774008                                             ; +0xce, 0x46528a\nB               loc_465290                                             ; +0xd2, 0x46528e\nMOV             R0, R5                                                 ; +0xd4, 0x465290\nBL              sub_774008                                             ; +0xd6, 0x465292\nB               loc_465298                                             ; +0xda, 0x465296\nMOV             R0, R4                                                 ; +0xdc, 0x465298\nBL              sub_774008                                             ; +0xde, 0x46529a\nBL              __cxa_end_cleanup                                      ; +0xe2, 0x46529e\nADD             SP, SP, #0x34 ; '4'                                    ; +0xe6, 0x4652a2\nPOP.W           {R4-R9,PC}                                             ; +0xe8, 0x4652a4", "xrefs": ["AccountRegisterLayer::onSubmit @ 0x46908a"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}