// // GJAccountManager::getAccountSyncURL from 0x1402022b0 to 0x1402025ec (828 bytes) // // 2 xrefs: // > AccountLayer::FLAlert_Clicked @ 0x14007f407 // > @ 0x1406ccb34 // // 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 // // Hidden C++ exception states: #wind=4 bool GJAccountManager::getAccountSyncURL(GJAccountManager *a1) { __int64 v2; // rbx void *v3; // rcx __int64 v5; // rax void *v6; // rcx cocos2d::CCString *v7; // rax const char *CString; // rax cocos2d::CCString *v9; // rax const char *v10; // rax size_t v11; // rbx size_t v12; // r8 void **v13; // rdx void *v14; // rcx __int128 v15; // [rsp+40h] [rbp-49h] BYREF __int64 v16; // [rsp+50h] [rbp-39h] __int64 v17; // [rsp+58h] [rbp-31h] __int128 v18; // [rsp+60h] [rbp-29h] BYREF __int64 v19; // [rsp+70h] [rbp-19h] __int64 v20; // [rsp+78h] [rbp-11h] void **v21; // [rsp+80h] [rbp-9h] __int128 *v22; // [rsp+88h] [rbp-1h] void *Block[2]; // [rsp+98h] [rbp+Fh] BYREF __int64 v24; // [rsp+A8h] [rbp+1Fh] unsigned __int64 v25; // [rsp+B0h] [rbp+27h] void *v26[2]; // [rsp+B8h] [rbp+2Fh] BYREF __int128 v27; // [rsp+C8h] [rbp+3Fh] v24 = 12; v25 = 15; strcpy((char *)Block, "surl_account"); BYTE5(Block[1]) = 0; HIWORD(Block[1]) = 0; v2 = cocos2d::CCDictionary::objectForKey(a1->m_activeDownloads, Block); if ( v25 > 0xF ) { v3 = Block[0]; if ( v25 + 1 >= 0x1000 ) { v3 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v3 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v3); } if ( v2 ) return 0; v5 = cocos2d::CCNode::create(); v24 = 12; v25 = 15; strcpy((char *)Block, "surl_account"); BYTE5(Block[1]) = 0; HIWORD(Block[1]) = 0; cocos2d::CCDictionary::setObject(a1->m_activeDownloads, v5, Block); if ( v25 > 0xF ) { v6 = Block[0]; if ( v25 + 1 >= 0x1000 ) { v6 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v6); } v7 = cocos2d::CCString::createWithFormat("%c%s%s%c%c%s", 87, "mfd", "2893", 103, 98, (const char *)&word_140531E88); CString = cocos2d::CCString::getCString(v7); v9 = cocos2d::CCString::createWithFormat("accountID=%i&type=2&secret=%s", a1->m_accountID, CString); v10 = cocos2d::CCString::getCString(v9); *(_OWORD *)v26 = 0; v27 = 0; v11 = -1; v12 = -1; do ++v12; while ( v10[v12] ); sub_14003A930(v26, v10, v12); v13 = v26; if ( *((_QWORD *)&v27 + 1) > 0xFu ) v13 = (void **)v26[0]; v21 = Block; v22 = &v18; v24 = 14; v25 = 15; strcpy((char *)Block, "AccountSyncURL"); HIBYTE(Block[1]) = 0; v18 = 0; v19 = 0; v20 = 0; do ++v11; while ( *((_BYTE *)v13 + v11) ); sub_14003A930(&v18, v13, v11); v15 = 0; *(_QWORD *)&v15 = sub_14003AA10(0x40u); v16 = 52; v17 = 63; strcpy((char *)v15, "https://www.boomlings.com/database/getAccountURL.php"); GJAccountManager::ProcessHttpRequest(a1, (const char *)&v15, (const char *)&v18, (const char *)Block, 55); if ( *((_QWORD *)&v27 + 1) > 0xFu ) { v14 = v26[0]; if ( (unsigned __int64)(*((_QWORD *)&v27 + 1) + 1LL) >= 0x1000 ) { v14 = *((void **)v26[0] - 1); if ( (unsigned __int64)((char *)v26[0] - (char *)v14 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v14); } return 1; }