// // GJAccountManager::syncAccount from 0x583440 to 0x583566 (294 bytes) // // 1 xrefs: // > GJAccountManager::onGetAccountSyncURLCompleted @ 0x583628 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:52:56 +0000 // int __fastcall GJAccountManager::syncAccount(GJAccountManager *a1, int a2) { const char *v2; // r10 int v5; // r2 int v6; // r3 GameLevelManager *v7; // r0 cocos2d::CCString *v8; // r0 const char *CString; // r0 cocos2d::CCString *v10; // r0 char *v11; // r0 size_t v12; // r0 char *v14[3]; // [sp+14h] [bp-34h] BYREF int v15[3]; // [sp+20h] [bp-28h] BYREF int v16[3]; // [sp+2Ch] [bp-1Ch] BYREF int v17[3]; // [sp+38h] [bp-10h] BYREF if ( GJAccountManager::isDLActive(a1, "sync_account") ) return 0; v7 = (GameLevelManager *)GJAccountManager::addDLToActive(a1, "sync_account", v5, v6); GameLevelManager::sharedState(v7); GameLevelManager::getBasePostString((GameLevelManager *)v14); v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%c%s%s%c%c%s", (const char *)&dword_54 + 3, "mfv", "3899", 103, 99, &a1i2r3e45s789g[11]); CString = (const char *)cocos2d::CCString::getCString(v8); v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"&secret=%s", CString); v11 = (char *)cocos2d::CCString::getCString(v10); std::string::append(v14, v11); std::string::basic_string(v15, a2); v16[0] = 0; v16[1] = 0; if ( ((int)v14[0] & 1) == 0 ) v2 = (char *)v14 + 1; v16[2] = 0; if ( ((int)v14[0] & 1) != 0 ) v2 = v14[2]; v12 = strlen(v2); std::string::__init(v16, v2, v12); memset(v17, 0, sizeof(v17)); std::string::__init(v17, "SyncAccount", 0xBu); GJAccountManager::ProcessHttpRequest(a1, (int)v15, (int)v16, (int)v17, 23); std::string::~string((int)v17); std::string::~string((int)v16); std::string::~string((int)v15); std::string::~string((int)v14); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source