// // GJAccountManager::onBackupAccountCompleted from 0x464708 to 0x464836 (302 bytes) // // 1 xrefs: // > GJAccountManager::handleIt @ 0x465bfa // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // int __fastcall GJAccountManager::onBackupAccountCompleted(GJAccountManager *a1, const char **a2) { int v4; // r9 int result; // r0 cocos2d::CCString *v6; // r0 char *CString; // r0 int v8; // r9 GJAccountDelegate *m_accountDelegate; // r0 unsigned int v10; // r6 GJAccountBackupDelegate *m_backupDelegate; // r4 int v12; // r0 GameLevelManager *v13; // r0 LocalLevelManager *v14; // r0 _BYTE v15[4]; // [sp+8h] [bp-Ch] BYREF GJAccountManager::removeDLFromActive(a1, "bak_account"); sub_776584((int)v15, "-1"); v4 = sub_774DBC(a2, v15); sub_774008(v15); if ( v4 ) { v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)0xFFFFFFFE); CString = (char *)cocos2d::CCString::getCString(v6); sub_776584((int)v15, CString); v8 = sub_774DBC(a2, v15); sub_774008(v15); if ( v8 ) { sub_776584((int)v15, (char *)&aO1i2r3e45s7t89[1]); if ( sub_774DBC(a2, v15) ) v10 = (unsigned int)atoi(*a2) >> 31; else v10 = 0; result = sub_774008(v15); if ( v10 ) { m_backupDelegate = a1->m_backupDelegate; if ( m_backupDelegate ) { v12 = atoi(*a2); return ((int (__fastcall *)(GJAccountBackupDelegate *, int, int))m_backupDelegate->backupAccountFailed)( m_backupDelegate, -3, v12); } } else { v13 = GameLevelManager::sharedState(); GameLevelManager::makeTimeStamp(v13, "bak_account"); v14 = LocalLevelManager::sharedState(); LocalLevelManager::markLevelsAsUnmodified(v14); result = (int)a1->m_backupDelegate; if ( result ) return (**(int (__fastcall ***)(int))result)(result); } } else { sub_7753D4((int)&a1->m_password, (char *)&unk_939830); m_accountDelegate = a1->m_accountDelegate; if ( m_accountDelegate ) m_accountDelegate->accountStatusChanged(m_accountDelegate); result = (int)a1->m_backupDelegate; if ( result ) return (*(int (__fastcall **)(int, int, _DWORD))(*(_DWORD *)result + 4))(result, -2, 0); } } else { result = (int)a1->m_backupDelegate; if ( result ) return (*(int (__fastcall **)(int, int, _DWORD))(*(_DWORD *)result + 4))(result, -1, 0); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source