// // GameLevelManager::acceptFriendRequest from 0x726af0 to 0x726fa8 (1208 bytes) // // 2 xrefs: // > FriendRequestPopup::onAccept @ 0x8cb6d8 // > @ 0xb3fa0 // // 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 // // local variable allocation has failed, the output may be wrong! bool GameLevelManager::acceptFriendRequest(GameLevelManager *a1, int a2, int a3) { cocos2d::CCString *v6; // x0 char *CString; // x26 cocos2d::CCDictionary *m_friendReqAndUserBlocks; // x24 __int64 v9; // x27 char *v10; // x0 cocos2d::CCDictionary *v12; // x28 cocos2d::CCNode *v13; // x27 char *v14; // x0 cocos2d::CCString *v15; // x0 const char *v16; // x0 cocos2d::CCString *v17; // x0 size_t v18; // x0 char *v19; // x0 char *v20; // x0 char *v21; // x0 char *v22; // x21 unsigned int *v23; // x1 int v24; // w2 unsigned int *v25; // x20 int v26; // w0 unsigned int *v27; // x1 int v28; // w2 unsigned int *v29; // x1 int v30; // w2 unsigned int *v31; // x1 int v32; // w2 unsigned int *v33; // x1 int v34; // w2 _QWORD v35[2]; // [xsp+0h] [xbp+0h] BYREF const char *v36; // [xsp+68h] [xbp+68h] char *v37; // [xsp+98h] [xbp+98h] BYREF const char *v38; // [xsp+A0h] [xbp+A0h] BYREF const char *v39; // [xsp+A8h] [xbp+A8h] BYREF std::string v40; // [xsp+B0h] [xbp+B0h] BYREF if ( a2 <= 0 || a3 <= 0 ) return 0; v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"accFriendReq_%i_%i", *(const char **)&a2); CString = (char *)cocos2d::CCString::getCString(v6); m_friendReqAndUserBlocks = a1->m_friendReqAndUserBlocks; sub_D153B8((unsigned int)v35 + 176, CString); v9 = cocos2d::CCDictionary::objectForKey(m_friendReqAndUserBlocks, &v40); v10 = (char *)v40.m_data.m_data - 24; if ( (__int64 *)v40.m_data.m_data - 3 == &qword_124B6B0 ) goto LABEL_4; if ( &pthread_create ) { v23 = (unsigned int *)((char *)v40.m_data.m_data - 8); do v24 = __ldaxr(v23); while ( __stlxr(v24 - 1, v23) ); } else { v24 = *((_DWORD *)v40.m_data.m_data - 2); *((_DWORD *)v40.m_data.m_data - 2) = v24 - 1; } if ( v24 > 0 ) { LABEL_4: if ( !v9 ) goto LABEL_6; return 0; } operator delete(v10); if ( v9 ) return 0; LABEL_6: v12 = a1->m_friendReqAndUserBlocks; v13 = cocos2d::CCNode::create(); sub_D153B8((unsigned int)v35 + 176, CString); cocos2d::CCDictionary::setObject((int)v12, v13); v14 = (char *)v40.m_data.m_data - 24; if ( (__int64 *)v40.m_data.m_data - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v31 = (unsigned int *)((char *)v40.m_data.m_data - 8); do v32 = __ldaxr(v31); while ( __stlxr(v32 - 1, v31) ); } else { v32 = *((_DWORD *)v40.m_data.m_data - 2); *((_DWORD *)v40.m_data.m_data - 2) = v32 - 1; } if ( v32 <= 0 ) operator delete(v14); } GameLevelManager::getBasePostString(a1, (__int64)&v37); v15 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%c%s%s%c%c%s", (const char *)off_50 + 7, "mfd", "2893", 103, 98, "7"); v16 = cocos2d::CCString::getCString(v15); v17 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"&targetAccountID=%i&requestID=%i&secret=%s", (const char *)(unsigned int)a2, (unsigned int)a3, v16); v36 = cocos2d::CCString::getCString(v17); v18 = strlen(v36); sub_D15FD4(&v37, v36, v18); sub_D153B8((int)&v38, "https://www.boomlings.com/database/acceptGJFriendRequest20.php"); sub_D153B8((int)&v39, v37); sub_D153B8((int)&v40, CString); GameLevelManager::ProcessHttpRequest(a1, &v38, &v39, (cocos2d::extension::CCHttpClient **)&v40, 31); v19 = (char *)v40.m_data.m_data - 24; if ( (__int64 *)v40.m_data.m_data - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v33 = (unsigned int *)((char *)v40.m_data.m_data - 8); do v34 = __ldaxr(v33); while ( __stlxr(v34 - 1, v33) ); } else { v34 = *((_DWORD *)v40.m_data.m_data - 2); *((_DWORD *)v40.m_data.m_data - 2) = v34 - 1; } if ( v34 <= 0 ) operator delete(v19); } v20 = (char *)(v39 - 24); if ( v39 - 24 != (const char *)&qword_124B6B0 ) { if ( &pthread_create ) { v29 = (unsigned int *)(v39 - 8); do v30 = __ldaxr(v29); while ( __stlxr(v30 - 1, v29) ); } else { v30 = *((_DWORD *)v39 - 2); *((_DWORD *)v39 - 2) = v30 - 1; } if ( v30 <= 0 ) operator delete(v20); } v21 = (char *)(v38 - 24); if ( v38 - 24 != (const char *)&qword_124B6B0 ) { if ( &pthread_create ) { v27 = (unsigned int *)(v38 - 8); do v28 = __ldaxr(v27); while ( __stlxr(v28 - 1, v27) ); } else { v28 = *((_DWORD *)v38 - 2); *((_DWORD *)v38 - 2) = v28 - 1; } if ( v28 <= 0 ) operator delete(v21); } v22 = v37 - 24; if ( v37 - 24 == (char *)&qword_124B6B0 ) return 1; if ( &pthread_create ) { v25 = (unsigned int *)(v37 - 8); do v26 = __ldaxr(v25); while ( __stlxr(v26 - 1, v25) ); } else { v26 = *((_DWORD *)v37 - 2); *((_DWORD *)v37 - 2) = v26 - 1; } if ( v26 > 0 ) return 1; operator delete(v22); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source