// // FRequestProfilePage::loadPage from 0x8f5280 to 0x8f55d4 (852 bytes) // // 5 xrefs: // > FRequestProfilePage::init @ 0x8f5d14 // > FRequestProfilePage::forceReloadRequests @ 0x8f6324 // > FRequestProfilePage::onNextPage @ 0x8f6338 // > FRequestProfilePage::onPrevPage @ 0x8f6344 // > @ 0x78300 // // 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 // void FRequestProfilePage::loadPage(FRequestProfilePage *a1, int a2) { GameLevelManager *v4; // x0 char *FriendRequestKey; // x0 stl::StringData::Internal *m_data; // x1 unsigned __int64 v7; // x20 unsigned __int64 v8; // x25 size_t v9; // x2 unsigned __int64 v10; // x20 CCMenuItemSpriteExtra *m_prevButton; // x2 GameLevelManager *v12; // x0 _BOOL8 v13; // x1 GameLevelManager *v14; // x0 cocos2d::CCArray *StoredOnlineLevels; // x24 void (__fastcall *setupPageInfo)(FRequestProfilePage *__hidden, std::string, const unsigned __int8 *); // x25 GameLevelManager *v17; // x0 char *PageInfo; // x0 void *v19; // x0 _DWORD *v20; // x19 char *v21; // x0 GameLevelManager *v22; // x0 unsigned int *v23; // x19 int v24; // w1 unsigned int *v25; // x1 int v26; // w2 void *v27; // [xsp+68h] [xbp+68h] BYREF __int64 v28; // [xsp+70h] [xbp+70h] BYREF v4 = GameLevelManager::sharedState(); FriendRequestKey = (char *)GameLevelManager::getFriendRequestKey(v4, a1->m_sent, a2); sub_D153B8((int)&v27, FriendRequestKey); m_data = a1->m_key.m_data.m_data; v7 = *((_QWORD *)m_data - 3); if ( v7 ) { v8 = *((_QWORD *)v27 - 3); v9 = v8 > v7 ? *((_QWORD *)m_data - 3) : *((_QWORD *)v27 - 3); if ( memcmp(v27, m_data, v9) || (v10 = v8 - v7, v10 + 0x80000000 > 0xFFFFFFFF) || (_DWORD)v10 ) FRequestProfilePage::untoggleAll(a1); } sub_D18EA8(&a1->m_key, &v27); a1->m_circle->setVisible(a1->m_circle, 1); a1->m_refreshButton->setVisible(a1->m_refreshButton, 0); a1->m_errorLabel->setVisible(a1->m_errorLabel, 0); m_prevButton = a1->m_prevButton; if ( a2 <= 0 ) m_prevButton->setVisible(a1->m_prevButton, 0); else m_prevButton->setVisible(a1->m_prevButton, 1); v12 = GameLevelManager::sharedState(); v13 = GameLevelManager::getStoredOnlineLevels(v12, (const char *)a1->m_key.m_data.m_data) != nullptr; a1->m_nextButton->setVisible(a1->m_nextButton, v13); v14 = GameLevelManager::sharedState(); StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(v14, (const char *)a1->m_key.m_data.m_data); if ( !StoredOnlineLevels ) { FRequestProfilePage::setupCommentsBrowser(a1, nullptr); v22 = GameLevelManager::sharedState(); GameLevelManager::getFriendRequests(v22, a1->m_sent, a2, a1->m_itemCount); a1->m_page = a2; v20 = v27; v21 = (char *)v27 - 24; if ( (char *)v27 - 24 == (char *)&qword_124B6B0 ) return; goto LABEL_18; } setupPageInfo = a1->setupPageInfo; v17 = GameLevelManager::sharedState(); PageInfo = (char *)GameLevelManager::getPageInfo(v17, (const char *)a1->m_key.m_data.m_data); sub_D153B8((int)&v28, PageInfo); ((void (__fastcall *)(FRequestProfilePage *, __int64 *, stl::StringData::Internal *))setupPageInfo)( a1, &v28, a1->m_key.m_data.m_data); v19 = (void *)(v28 - 24); if ( (__int64 *)(v28 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v25 = (unsigned int *)(v28 - 8); do v26 = __ldaxr(v25); while ( __stlxr(v26 - 1, v25) ); } else { v26 = *(_DWORD *)(v28 - 8); *(_DWORD *)(v28 - 8) = v26 - 1; } if ( v26 <= 0 ) operator delete(v19); } a1->loadFRequestsFinished(a1, StoredOnlineLevels, (const unsigned __int8 *)a1->m_key.m_data.m_data); a1->m_page = a2; v20 = v27; v21 = (char *)v27 - 24; if ( (char *)v27 - 24 != (char *)&qword_124B6B0 ) { LABEL_18: if ( &pthread_create ) { v23 = v20 - 2; do v24 = __ldaxr(v23); while ( __stlxr(v24 - 1, v23) ); } else { v24 = *(v20 - 2); *(v20 - 2) = v24 - 1; } if ( v24 <= 0 ) operator delete(v21); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source