{"type": "func", "start": 4609852, "end": 4610062, "name": "GJAccountManager::onGetAccountBackupURLCompleted", "pseudocode": "// \n// GJAccountManager::onGetAccountBackupURLCompleted from 0x46573c to 0x46580e (210 bytes)\n// \n// 1 xrefs:\n// > GJAccountManager::handleIt @ 0x465c60\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::onGetAccountBackupURLCompleted(GJAccountManager *a1, const char **a2)\n{\n  int v4; // r9\n  int result; // r0\n  cocos2d::CCString *v6; // r0\n  char *CString; // r0\n  int v8; // r8\n  GJAccountBackupDelegate *m_backupDelegate; // r0\n  char v10[4]; // [sp+4h] [bp-10h] BYREF\n  char v11[4]; // [sp+8h] [bp-Ch] BYREF\n\n  GJAccountManager::removeDLFromActive(a1, \"burl_account\");\n  sub_776584((int)v11, \"-1\");\n  v4 = sub_774DBC(a2, v11);\n  sub_774008(v11);\n  if ( v4 )\n  {\n    v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                (cocos2d::CCString *)\"%s/database/accounts/backupGJAccountNew.php\",\n                                *a2);\n    CString = (char *)cocos2d::CCString::getCString(v6);\n    sub_776584((int)v10, CString);\n    sub_775C20(v11);\n    v8 = GJAccountManager::backupAccount(a1);\n    sub_774008(v11);\n    if ( !v8 )\n    {\n      m_backupDelegate = a1->m_backupDelegate;\n      if ( m_backupDelegate )\n        m_backupDelegate->backupAccountFailed(m_backupDelegate, GenericError, 0);\n    }\n    return sub_774008(v10);\n  }\n  else\n  {\n    result = (int)a1->m_backupDelegate;\n    if ( result )\n      return (*(int (__fastcall **)(int, int, _DWORD))(*(_DWORD *)result + 4))(result, -1, 0);\n  }\n  return result;\n}", "assembly": "; \n; GJAccountManager::onGetAccountBackupURLCompleted from 0x46573c to 0x46580e (210 bytes)\n; \n; 1 xrefs:\n; > GJAccountManager::handleIt @ 0x465c60\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, 0x46573c\nMOV             R8, R1                                                 ; +0x4, 0x465740\nLDR             R5, =(__stack_chk_guard_ptr - 0x46574E)                ; +0x6, 0x465742\nSUB             SP, SP, #0x14                                          ; +0x8, 0x465744\nLDR             R1, =(aBurlAccount - 0x465754); \"burl_account\"         ; +0xa, 0x465746\nADD             R4, SP, #0x14+var_C                                    ; +0xc, 0x465748\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xe, 0x46574a\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x10, 0x46574c\nMOV             R7, R0                                                 ; +0x12, 0x46574e\nADD             R1, PC; \"burl_account\"                                 ; +0x14, 0x465750\nADD             R6, SP, #0x14+var_10                                   ; +0x16, 0x465752\nLDR             R3, [R5]                                               ; +0x18, 0x465754\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x1a, 0x465756\nBL              _ZN16GJAccountManager18removeDLFromActiveEPKc; GJAccountManager::removeDLFromActive(char const*) ; +0x1c, 0x465758\nLDR             R1, =(a1 - 0x465766); \"-1\"                             ; +0x20, 0x46575c\nMOV             R2, R6                                                 ; +0x22, 0x46575e\nMOV             R0, R4; int                                            ; +0x24, 0x465760\nADD             R1, PC; \"-1\"                                           ; +0x26, 0x465762\nBL              sub_776584                                             ; +0x28, 0x465764\nMOV             R0, R8                                                 ; +0x2c, 0x465768\nMOV             R1, R4                                                 ; +0x2e, 0x46576a\nBL              sub_774DBC                                             ; +0x30, 0x46576c\nMOV             R9, R0                                                 ; +0x34, 0x465770\nMOV             R0, R4                                                 ; +0x36, 0x465772\nBL              sub_774008                                             ; +0x38, 0x465774\nCMP.W           R9, #0                                                 ; +0x3c, 0x465778\nBNE             loc_465794                                             ; +0x40, 0x46577c\nLDR.W           R0, [R7,#0x12C]                                        ; +0x42, 0x46577e\nCMP             R0, #0                                                 ; +0x46, 0x465782\nBEQ             loc_4657FC                                             ; +0x48, 0x465784\nLDR             R3, [R0]                                               ; +0x4a, 0x465786\nMOV.W           R1, #0xFFFFFFFF                                        ; +0x4c, 0x465788\nMOV             R2, R9                                                 ; +0x50, 0x46578c\nLDR             R3, [R3,#4]                                            ; +0x52, 0x46578e\nBLX             R3                                                     ; +0x54, 0x465790\nB               loc_4657FC                                             ; +0x56, 0x465792\nLDR             R0, =(aSDatabaseAccou - 0x46579E); \"%s/database/accounts/backupGJAccountNew\"... ; +0x58, 0x465794\nLDR.W           R1, [R8]; char *                                       ; +0x5a, 0x465796\nADD             R0, PC; \"%s/database/accounts/backupGJAccountNew\"...   ; +0x5e, 0x46579a\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x60, 0x46579c\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x64, 0x4657a0\nMOV             R2, R4                                                 ; +0x68, 0x4657a4\nMOV             R1, R0; char *                                         ; +0x6a, 0x4657a6\nMOV             R0, R6; int                                            ; +0x6c, 0x4657a8\nBL              sub_776584                                             ; +0x6e, 0x4657aa\nMOV             R0, R4                                                 ; +0x72, 0x4657ae\nMOV             R1, R6                                                 ; +0x74, 0x4657b0\nBL              sub_775C20                                             ; +0x76, 0x4657b2\nMOV             R0, R7                                                 ; +0x7a, 0x4657b6\nMOV             R1, R4                                                 ; +0x7c, 0x4657b8\nBL              _ZN16GJAccountManager13backupAccountESs; GJAccountManager::backupAccount(std::string) ; +0x7e, 0x4657ba\nMOV             R8, R0                                                 ; +0x82, 0x4657be\nMOV             R0, R4                                                 ; +0x84, 0x4657c0\nBL              sub_774008                                             ; +0x86, 0x4657c2\nCMP.W           R8, #0                                                 ; +0x8a, 0x4657c6\nBEQ             loc_4657D4                                             ; +0x8e, 0x4657ca\nMOV             R0, R6                                                 ; +0x90, 0x4657cc\nBL              sub_774008                                             ; +0x92, 0x4657ce\nB               loc_4657FC                                             ; +0x96, 0x4657d2\nLDR.W           R0, [R7,#0x12C]                                        ; +0x98, 0x4657d4\nCMP             R0, #0                                                 ; +0x9c, 0x4657d8\nBEQ             loc_4657CC                                             ; +0x9e, 0x4657da\nLDR             R3, [R0]                                               ; +0xa0, 0x4657dc\nMOV.W           R1, #0xFFFFFFFF                                        ; +0xa2, 0x4657de\nMOV             R2, R8                                                 ; +0xa6, 0x4657e2\nLDR             R3, [R3,#4]                                            ; +0xa8, 0x4657e4\nBLX             R3                                                     ; +0xaa, 0x4657e6\nB               loc_4657CC                                             ; +0xac, 0x4657e8\nMOV             R0, R4                                                 ; +0xae, 0x4657ea\nBL              sub_774008                                             ; +0xb0, 0x4657ec\nB               loc_4657F2                                             ; +0xb4, 0x4657f0\nMOV             R0, R6                                                 ; +0xb6, 0x4657f2\nBL              sub_774008                                             ; +0xb8, 0x4657f4\nBL              __cxa_end_cleanup                                      ; +0xbc, 0x4657f8\nLDR             R2, [SP,#0x14+var_8]                                   ; +0xc0, 0x4657fc\nLDR             R3, [R5]                                               ; +0xc2, 0x4657fe\nCMP             R2, R3                                                 ; +0xc4, 0x465800\nBEQ             loc_465808                                             ; +0xc6, 0x465802\nBLX             __stack_chk_fail                                       ; +0xc8, 0x465804\nADD             SP, SP, #0x14                                          ; +0xcc, 0x465808\nPOP.W           {R4-R9,PC}                                             ; +0xce, 0x46580a", "xrefs": ["GJAccountManager::handleIt @ 0x465c60"], "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"}