// // GJAccountManager::backupAccount from 0x100447548 to 0x100447810 (712 bytes) // // 1 xrefs: // > GJAccountManager::onGetAccountBackupURLCompleted @ 0x1004465b4 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:05:15 +0000 // bool __fastcall GJAccountManager::backupAccount(__int64 a1, __int64 a2) { __int64 DLObject; // x19 void *v5; // x0 __int64 v6; // x0 __int64 v7; // x0 int v8; // w8 __int64 v9; // x0 __int64 v10; // x0 int v11; // w8 __int64 v12; // x0 const std::string::value_type *v13; // x1 const std::string::value_type *v14; // x1 void *v15; // x0 const std::string::value_type *CString; // x0 std::string *v17; // x1 void *__p[2]; // [xsp+30h] [xbp-E0h] BYREF char v20; // [xsp+47h] [xbp-C9h] void *v21[2]; // [xsp+48h] [xbp-C8h] BYREF char v22; // [xsp+5Fh] [xbp-B1h] void *__dst[2]; // [xsp+60h] [xbp-B0h] BYREF __int64 v24; // [xsp+70h] [xbp-A0h] std::string v25; // [xsp+78h] [xbp-98h] BYREF std::string::value_type *v26; // [xsp+90h] [xbp-80h] BYREF __int64 v27; // [xsp+98h] [xbp-78h] unsigned __int8 v28; // [xsp+A7h] [xbp-69h] std::string::value_type *v29; // [xsp+A8h] [xbp-68h] BYREF __int64 v30; // [xsp+B0h] [xbp-60h] unsigned __int8 v31; // [xsp+BFh] [xbp-51h] std::string __str; // [xsp+C0h] [xbp-50h] BYREF DLObject = GJAccountManager::getDLObject(a1, "bak_account"); if ( !DLObject ) { v5 = cocos2d::CCNode::create(); GJAccountManager::addDLToActive(a1, "bak_account", (__int64)v5); if ( *(char *)(a1 + 391) < 0 ) sub_1000097D0(&__str, *(void **)(a1 + 368), *(_QWORD *)(a1 + 376)); else __str = *(std::string *)(a1 + 368); std::string::assign((std::string *)(a1 + 368), "0"); *(_BYTE *)(GameManager::sharedState() + 346) = 1; *(_BYTE *)(GameManager::sharedState() + 440) = 1; v6 = MusicDownloadManager::sharedState(); MusicDownloadManager::clearUnusedSongs(v6); v7 = GameManager::sharedState(); GManager::getCompressedSaveString(v7, (__int64)&v29); v8 = v31; if ( (v31 & 0x80u) != 0 ) v8 = v30; *(_DWORD *)(a1 + 440) = v8; *(_BYTE *)(GameManager::sharedState() + 346) = 0; v9 = LocalLevelManager::sharedState(); LocalLevelManager::updateLevelOrder(v9); v10 = LocalLevelManager::sharedState(); GManager::getCompressedSaveString(v10, (__int64)&v26); v11 = v28; if ( (v28 & 0x80u) != 0 ) v11 = v27; *(_DWORD *)(a1 + 444) = v11; *(_BYTE *)(GameManager::sharedState() + 440) = 0; std::string::operator=((std::string *)(a1 + 368), &__str); v12 = GameLevelManager::sharedState(); GameLevelManager::getBasePostString(v12, &v25); std::string::append(&v25, "&saveData="); if ( (v31 & 0x80u) == 0 ) v13 = (const std::string::value_type *)&v29; else v13 = v29; std::string::append(&v25, v13); std::string::append(&v25, ";"); if ( (v28 & 0x80u) == 0 ) v14 = (const std::string::value_type *)&v26; else v14 = v26; std::string::append(&v25, v14); std::string::append(&v25, "&secret="); v15 = sub_1003065B0("%c%s%s%c%c%s", 87, "mfv", "3899", 103, 99, "9"); CString = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v15); std::string::append(&v25, CString); if ( *(char *)(a2 + 23) < 0 ) { sub_1000097D0(__dst, *(void **)a2, *(_QWORD *)(a2 + 8)); } else { *(_OWORD *)__dst = *(_OWORD *)a2; v24 = *(_QWORD *)(a2 + 16); } if ( (v25.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v17 = &v25; else v17 = (std::string *)v25.__r_.__value_.__r.__words[0]; sub_100009900(v21, (char *)v17); sub_100009900(__p, "BackupAccount"); GJAccountManager::ProcessHttpRequest( a1, (const std::string::value_type *)__dst, (char *)v21, (const std::string::value_type *)__p, 22); if ( v20 < 0 ) operator delete(__p[0]); if ( v22 < 0 ) operator delete(v21[0]); if ( SHIBYTE(v24) < 0 ) operator delete(__dst[0]); if ( SHIBYTE(v25.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v25.__r_.__value_.__l.__data_); if ( (char)v28 < 0 ) operator delete(v26); if ( (char)v31 < 0 ) operator delete(v29); if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__str.__r_.__value_.__l.__data_); } return DLObject == 0; }