// // GJAccountManager::getAccountSyncURL from 0x847344 to 0x847694 (848 bytes) // // 2 xrefs: // > AccountLayer::doSync @ 0x84bf54 // > @ 0x33a20 // // 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 // bool GJAccountManager::getAccountSyncURL(GJAccountManager *a1) { _BOOL4 isDLActive; // w1 bool result; // w0 unsigned int m_accountID; // w20 cocos2d::CCString *v5; // x0 const char *CString; // x0 cocos2d::CCString *v7; // x0 char *v8; // x0 char *v9; // x24 char *v10; // x0 char *v11; // x0 char *v12; // x0 char *v13; // x0 unsigned int *v14; // x1 int v15; // w2 unsigned int *v16; // x1 int v17; // w2 unsigned int *v18; // x1 int v19; // w2 unsigned int *v20; // x1 int v21; // w2 char *v22; // [xsp+68h] [xbp+68h] BYREF const char *v23; // [xsp+70h] [xbp+70h] BYREF const char *v24; // [xsp+78h] [xbp+78h] BYREF const char *v25; // [xsp+80h] [xbp+80h] BYREF isDLActive = GJAccountManager::isDLActive(a1, "surl_account"); result = 0; if ( !isDLActive ) { GJAccountManager::addDLToActive(a1, "surl_account"); m_accountID = a1->m_accountID; v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%c%s%s%c%c%s", (const char *)off_50 + 7, "mfd", "2893", 103, 98, "7"); CString = cocos2d::CCString::getCString(v5); v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"accountID=%i&type=2&secret=%s", (const char *)m_accountID, CString); v8 = (char *)cocos2d::CCString::getCString(v7); sub_D153B8((int)&v22, v8); v9 = v22; sub_D153B8((int)&v23, "https://www.boomlings.com/database/getAccountURL.php"); sub_D153B8((int)&v24, v9); sub_D153B8((int)&v25, "AccountSyncURL"); GJAccountManager::ProcessHttpRequest(a1, &v23, &v24, &v25, 55); v10 = (char *)(v25 - 24); if ( v25 - 24 != (const char *)&qword_124B6B0 ) { if ( &pthread_create ) { v16 = (unsigned int *)(v25 - 8); do v17 = __ldaxr(v16); while ( __stlxr(v17 - 1, v16) ); } else { v17 = *((_DWORD *)v25 - 2); *((_DWORD *)v25 - 2) = v17 - 1; } if ( v17 <= 0 ) operator delete(v10); } v11 = (char *)(v24 - 24); if ( v24 - 24 != (const char *)&qword_124B6B0 ) { if ( &pthread_create ) { v18 = (unsigned int *)(v24 - 8); do v19 = __ldaxr(v18); while ( __stlxr(v19 - 1, v18) ); } else { v19 = *((_DWORD *)v24 - 2); *((_DWORD *)v24 - 2) = v19 - 1; } if ( v19 <= 0 ) operator delete(v11); } v12 = (char *)(v23 - 24); if ( v23 - 24 != (const char *)&qword_124B6B0 ) { if ( &pthread_create ) { v20 = (unsigned int *)(v23 - 8); do v21 = __ldaxr(v20); while ( __stlxr(v21 - 1, v20) ); } else { v21 = *((_DWORD *)v23 - 2); *((_DWORD *)v23 - 2) = v21 - 1; } if ( v21 <= 0 ) operator delete(v12); } v13 = v22 - 24; if ( v22 - 24 == (char *)&qword_124B6B0 ) return 1; if ( &pthread_create ) { v14 = (unsigned int *)(v22 - 8); do v15 = __ldaxr(v14); while ( __stlxr(v15 - 1, v14) ); } else { v15 = *((_DWORD *)v22 - 2); *((_DWORD *)v22 - 2) = v15 - 1; } if ( v15 > 0 ) { return 1; } else { operator delete(v13); return 1; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source