{"type": "func", "start": 4608716, "end": 4609026, "name": "GJAccountManager::loginAccount", "pseudocode": "// \n// GJAccountManager::loginAccount from 0x4652cc to 0x465402 (310 bytes)\n// \n// 1 xrefs:\n// > AccountLoginLayer::onSubmit @ 0x46a080\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::loginAccount(GJAccountManager *a1, _DWORD *a2, _DWORD *a3)\n{\n  cocos2d::CCString *v6; // r0\n  char *CString; // r0\n  cocos2d::CCString *v8; // r0\n  char *v9; // r0\n  char *v10; // r11\n  char *v12; // [sp+20h] [bp-1Ch] BYREF\n  char *v13; // [sp+24h] [bp-18h] BYREF\n  char *v14; // [sp+28h] [bp-14h] BYREF\n  const void *v15; // [sp+2Ch] [bp-10h] BYREF\n  char *v16; // [sp+30h] [bp-Ch] BYREF\n\n  if ( GJAccountManager::isDLActive(a1, \"login_account\") )\n    return 0;\n  GJAccountManager::addDLToActive(a1, \"login_account\");\n  GameManager::sharedState();\n  sub_775C20(&v12);\n  v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                              (cocos2d::CCString *)\"udid=%s&userName=%s&gjp2=%s\",\n                              v12,\n                              *a2,\n                              *a3);\n  CString = (char *)cocos2d::CCString::getCString(v6);\n  sub_776584((int)&v13, CString);\n  sub_774544((int)&v13, \"&secret=\");\n  v8 = (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  v9 = (char *)cocos2d::CCString::getCString(v8);\n  sub_774544((int)&v13, v9);\n  v10 = v13;\n  sub_776584((int)&v14, \"https://www.boomlings.com/database/accounts/loginGJAccount.php\");\n  sub_776584((int)&v15, v10);\n  sub_776584((int)&v16, \"LoginAccount\");\n  GJAccountManager::ProcessHttpRequest(a1, &v14, &v15, &v16, 23);\n  sub_774008(&v16);\n  sub_774008(&v15);\n  sub_774008(&v14);\n  sub_774008(&v13);\n  sub_774008(&v12);\n  return 1;\n}", "assembly": "; \n; GJAccountManager::loginAccount from 0x4652cc to 0x465402 (310 bytes)\n; \n; 1 xrefs:\n; > AccountLoginLayer::onSubmit @ 0x46a080\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-R11,LR}                                            ; +0x0, 0x4652cc\nSUB             SP, SP, #0x3C                                          ; +0x4, 0x4652d0\nLDR.W           R8, =(__stack_chk_guard_ptr - 0x4652E0)                ; +0x6, 0x4652d2\nMOV             R6, R1                                                 ; +0xa, 0x4652d6\nLDR             R4, =(aLoginAccount - 0x4652E8); \"login_account\"       ; +0xc, 0x4652d8\nMOV             R10, R0                                                ; +0xe, 0x4652da\nADD             R8, PC; __stack_chk_guard_ptr                          ; +0x10, 0x4652dc\nLDR.W           R8, [R8]; __stack_chk_guard                            ; +0x12, 0x4652de\nMOV             R5, R2                                                 ; +0x16, 0x4652e2\nADD             R4, PC; \"login_account\"                                ; +0x18, 0x4652e4\nLDR.W           R3, [R8]                                               ; +0x1a, 0x4652e6\nMOV             R1, R4; char *                                         ; +0x1e, 0x4652ea\nSTR             R3, [SP,#0x3C+var_8]                                   ; +0x20, 0x4652ec\nBL              _ZN16GJAccountManager10isDLActiveEPKc; GJAccountManager::isDLActive(char const*) ; +0x22, 0x4652ee\nCMP             R0, #0                                                 ; +0x26, 0x4652f2\nBNE             loc_4653C2                                             ; +0x28, 0x4652f4\nMOV             R1, R4; char *                                         ; +0x2a, 0x4652f6\nMOV             R0, R10; this                                          ; +0x2c, 0x4652f8\nBL              _ZN16GJAccountManager13addDLToActiveEPKc; GJAccountManager::addDLToActive(char const*) ; +0x2e, 0x4652fa\nADD.W           R9, SP, #0x3C+var_1C                                   ; +0x32, 0x4652fe\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x36, 0x465302\nADD.W           R1, R0, #0x18C                                         ; +0x3a, 0x465306\nMOV             R0, R9                                                 ; +0x3e, 0x46530a\nBL              sub_775C20                                             ; +0x40, 0x46530c\nLDR             R0, =(aUdidSUsernameS - 0x465318); \"udid=%s&userName=%s&gjp2=%s\" ; +0x44, 0x465310\nLDR             R1, [SP,#0x3C+var_1C]; char *                          ; +0x46, 0x465312\nADD             R0, PC; \"udid=%s&userName=%s&gjp2=%s\"                  ; +0x48, 0x465314\nLDR             R2, [R6]                                               ; +0x4a, 0x465316\nLDR             R3, [R5]                                               ; +0x4c, 0x465318\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x4e, 0x46531a\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x52, 0x46531e\nADD             R4, SP, #0x3C+var_18                                   ; +0x56, 0x465322\nADD             R5, SP, #0x3C+var_C                                    ; +0x58, 0x465324\nMOV             R1, R0; char *                                         ; +0x5a, 0x465326\nMOV             R2, R5                                                 ; +0x5c, 0x465328\nMOV             R0, R4; int                                            ; +0x5e, 0x46532a\nBL              sub_776584                                             ; +0x60, 0x46532c\nLDR             R1, =(aSecret_0 - 0x465338); \"&secret=\"                ; +0x64, 0x465330\nMOV             R0, R4; int                                            ; +0x66, 0x465332\nADD             R1, PC; \"&secret=\"                                     ; +0x68, 0x465334\nBL              sub_774544                                             ; +0x6a, 0x465336\nMOVS            R2, #0x67 ; 'g'                                        ; +0x6e, 0x46533a\nMOVS            R3, #0x63 ; 'c'                                        ; +0x70, 0x46533c\nSTMEA.W         SP, {R2,R3}                                            ; +0x72, 0x46533e\nMOVS            R1, #(dword_54+3); char *                              ; +0x76, 0x465342\nLDR             R3, =(aO1i2r3e45s7t89+0x1A - 0x46534C); \"9g\"           ; +0x78, 0x465344\nLDR             R0, =(aCSSCCS - 0x465352); \"%c%s%s%c%c%s\"              ; +0x7a, 0x465346\nADD             R3, PC; \"9g\"                                           ; +0x7c, 0x465348\nLDR             R2, =(aMfv - 0x465356); \"mfv\"                          ; +0x7e, 0x46534a\nSTR             R3, [SP,#0x3C+var_34]                                  ; +0x80, 0x46534c\nADD             R0, PC; \"%c%s%s%c%c%s\"                                 ; +0x82, 0x46534e\nLDR             R3, =(a3899 - 0x465358); \"3899\"                        ; +0x84, 0x465350\nADD             R2, PC; \"mfv\"                                          ; +0x86, 0x465352\nADD             R3, PC; \"3899\"                                         ; +0x88, 0x465354\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x8a, 0x465356\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x8e, 0x46535a\nMOV             R1, R0; char *                                         ; +0x92, 0x46535e\nMOV             R0, R4; int                                            ; +0x94, 0x465360\nBL              sub_774544                                             ; +0x96, 0x465362\nADD             R6, SP, #0x3C+var_14                                   ; +0x9a, 0x465366\nLDR             R1, =(aHttpsWwwBoomli_64 - 0x465376); \"https://www.boomlings.com/database/acco\"... ; +0x9c, 0x465368\nADD             R2, SP, #0x3C+var_28                                   ; +0x9e, 0x46536a\nLDR.W           R11, [SP,#0x3C+var_18]                                 ; +0xa0, 0x46536c\nMOV             R0, R6; int                                            ; +0xa4, 0x465370\nADD             R1, PC; \"https://www.boomlings.com/database/acco\"...   ; +0xa6, 0x465372\nBL              sub_776584                                             ; +0xa8, 0x465374\nADD             R7, SP, #0x3C+var_10                                   ; +0xac, 0x465378\nMOV             R1, R11; char *                                        ; +0xae, 0x46537a\nADD             R2, SP, #0x3C+var_24                                   ; +0xb0, 0x46537c\nMOV             R0, R7; int                                            ; +0xb2, 0x46537e\nBL              sub_776584                                             ; +0xb4, 0x465380\nLDR             R1, =(aLoginaccount - 0x46538E); \"LoginAccount\"        ; +0xb8, 0x465384\nMOV             R0, R5; int                                            ; +0xba, 0x465386\nADD             R2, SP, #0x3C+var_20                                   ; +0xbc, 0x465388\nADD             R1, PC; \"LoginAccount\"                                 ; +0xbe, 0x46538a\nBL              sub_776584                                             ; +0xc0, 0x46538c\nMOVS            R3, #0x17                                              ; +0xc4, 0x465390\nMOV             R0, R10                                                ; +0xc6, 0x465392\nSTR             R3, [SP,#0x3C+var_3C]                                  ; +0xc8, 0x465394\nMOV             R1, R6                                                 ; +0xca, 0x465396\nMOV             R2, R7                                                 ; +0xcc, 0x465398\nMOV             R3, R5                                                 ; +0xce, 0x46539a\nBL              _ZN16GJAccountManager18ProcessHttpRequestESsSsSs10GJHttpType; GJAccountManager::ProcessHttpRequest(std::string,std::string,std::string,GJHttpType) ; +0xd0, 0x46539c\nMOV             R0, R5                                                 ; +0xd4, 0x4653a0\nBL              sub_774008                                             ; +0xd6, 0x4653a2\nMOV             R0, R7                                                 ; +0xda, 0x4653a6\nBL              sub_774008                                             ; +0xdc, 0x4653a8\nMOV             R0, R6                                                 ; +0xe0, 0x4653ac\nBL              sub_774008                                             ; +0xe2, 0x4653ae\nMOV             R0, R4                                                 ; +0xe6, 0x4653b2\nBL              sub_774008                                             ; +0xe8, 0x4653b4\nMOV             R0, R9                                                 ; +0xec, 0x4653b8\nBL              sub_774008                                             ; +0xee, 0x4653ba\nMOVS            R0, #1                                                 ; +0xf2, 0x4653be\nB               loc_4653C4                                             ; +0xf4, 0x4653c0\nMOVS            R0, #0                                                 ; +0xf6, 0x4653c2\nLDR             R2, [SP,#0x3C+var_8]                                   ; +0xf8, 0x4653c4\nLDR.W           R3, [R8]                                               ; +0xfa, 0x4653c6\nCMP             R2, R3                                                 ; +0xfe, 0x4653ca\nBEQ             loc_4653FC                                             ; +0x100, 0x4653cc\nBLX             __stack_chk_fail                                       ; +0x102, 0x4653ce\nMOV             R0, R5                                                 ; +0x106, 0x4653d2\nBL              sub_774008                                             ; +0x108, 0x4653d4\nB               loc_4653DA                                             ; +0x10c, 0x4653d8\nMOV             R0, R7                                                 ; +0x10e, 0x4653da\nBL              sub_774008                                             ; +0x110, 0x4653dc\nB               loc_4653E2                                             ; +0x114, 0x4653e0\nMOV             R0, R6                                                 ; +0x116, 0x4653e2\nBL              sub_774008                                             ; +0x118, 0x4653e4\nB               loc_4653EA                                             ; +0x11c, 0x4653e8\nMOV             R0, R4                                                 ; +0x11e, 0x4653ea\nBL              sub_774008                                             ; +0x120, 0x4653ec\nB               loc_4653F2                                             ; +0x124, 0x4653f0\nMOV             R0, R9                                                 ; +0x126, 0x4653f2\nBL              sub_774008                                             ; +0x128, 0x4653f4\nBL              __cxa_end_cleanup                                      ; +0x12c, 0x4653f8\nADD             SP, SP, #0x3C ; '<'                                    ; +0x130, 0x4653fc\nPOP.W           {R4-R11,PC}                                            ; +0x132, 0x4653fe", "xrefs": ["AccountLoginLayer::onSubmit @ 0x46a080"], "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"}