// // GJAccountManager::onBackupAccountCompleted from 0x10039f498 to 0x10039f674 (476 bytes) // // 1 xrefs: // > GJAccountManager::handleIt @ 0x10039ee38 // // 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 // void __fastcall GJAccountManager::onBackupAccountCompleted(__int64 a1, char *a2) { _BOOL4 v4; // w0 _BOOL4 v5; // w21 __int64 v6; // x0 void (__fastcall *v7)(__int64, __int64, _QWORD); // x8 __int64 v8; // x1 cocos2d::CCString *v9; // x0 char *CString; // x0 _BOOL4 v11; // w0 _BOOL4 v12; // w21 void (__fastcall ***v13)(_QWORD); // x0 const char *v14; // x0 int v15; // w21 GameLevelManager *v16; // x0 LocalLevelManager *v17; // x0 void (__fastcall ***v18)(_QWORD); // x0 __int64 v19; // x19 __int64 v20; // x2 void *__p[2]; // [xsp+8h] [xbp-38h] BYREF char v22; // [xsp+1Fh] [xbp-21h] GJAccountManager::removeDLFromActive((GJAccountManager *)a1, "bak_account"); sub_100009900(__p, "-1"); v4 = sub_1000045BC(a2, __p); v5 = v4; if ( v22 < 0 ) { operator delete(__p[0]); if ( v5 ) { LABEL_3: v6 = *(_QWORD *)(a1 + 416); if ( v6 ) { v7 = *(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v6 + 8LL); v8 = 0xFFFFFFFFLL; LABEL_12: v7(v6, v8, 0); return; } return; } } else if ( v4 ) { goto LABEL_3; } v9 = (cocos2d::CCString *)sub_100268F4C("%i", -2); CString = (char *)cocos2d::CCString::getCString(v9); sub_100009900(__p, CString); v11 = sub_1000045BC(a2, __p); v12 = v11; if ( (v22 & 0x80000000) == 0 ) { if ( v11 ) goto LABEL_8; LABEL_15: sub_100009900(__p, "1"); if ( sub_1000045BC(a2, __p) ) { if ( v22 < 0 ) operator delete(__p[0]); } else { v14 = a2; if ( a2[23] < 0 ) v14 = *(const char **)a2; v15 = atoi(v14); if ( v22 < 0 ) operator delete(__p[0]); if ( v15 < 0 ) { v19 = *(_QWORD *)(a1 + 416); if ( v19 ) { if ( a2[23] < 0 ) a2 = *(char **)a2; v20 = atoi(a2); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v19 + 8LL))(v19, 4294967293LL, v20); } return; } } v16 = GameLevelManager::sharedState(); GameLevelManager::makeTimeStamp(v16, "bak_account"); v17 = LocalLevelManager::sharedState(); LocalLevelManager::markLevelsAsUnmodified(v17); v18 = *(void (__fastcall ****)(_QWORD))(a1 + 416); if ( v18 ) (**v18)(v18); return; } operator delete(__p[0]); if ( !v12 ) goto LABEL_15; LABEL_8: std::string::assign((std::string *)(a1 + 448), ""); v13 = *(void (__fastcall ****)(_QWORD))(a1 + 408); if ( v13 ) (**v13)(v13); v6 = *(_QWORD *)(a1 + 416); if ( v6 ) { v7 = *(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v6 + 8LL); v8 = 4294967294LL; goto LABEL_12; } }