// // FriendsProfilePage::setupUsersBrowser from 0x1401404b0 to 0x140140803 (851 bytes) // // 4 xrefs: // > FriendsProfilePage::init @ 0x140140435 // > FriendsProfilePage::getUserListFinished @ 0x14014085c // > FriendsProfilePage::forceReloadList @ 0x140140a1c // > @ 0x1406ca2a8 // // 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 void FriendsProfilePage::setupUsersBrowser(FriendsProfilePage *a1, cocos2d::CCArray *a2, UserListType a3) { CustomListView *v6; // rbx __int64 v7; // rax cocos2d::CCTouchDispatcher *v8; // rax cocos2d::CCDirector *v9; // rax const char *v10; // rdx BoomListType v11; // eax GJCommentListLayer *v12; // rax GJCommentListLayer_vtbl *v13; // rbx const cocos2d::CCPoint *v14; // rax cocos2d::CCLabelProtocol_vtbl *v15; // rbx unsigned int v16; // eax cocos2d::CCString *v17; // rax const char *CString; // rax bool v19; // r9 GameManager *v20; // rcx int v21; // ebx bool v22; // r9 GameManager *v23; // rcx GameManager *v24; // rcx GameManager *v25; // rcx int v26; // [rsp+20h] [rbp-48h] float v27; // [rsp+70h] [rbp+8h] float v28; // [rsp+74h] [rbp+Ch] cocos2d::CCPoint v29; // [rsp+78h] [rbp+10h] BYREF int v30; // [rsp+80h] [rbp+18h] v6 = nullptr; if ( a1->m_listLayer ) { v7 = cocos2d::CCDirector::sharedDirector(a1); v8 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 144LL))(v7); cocos2d::CCTouchDispatcher::unregisterForcePrio(v8, a1->m_listLayer); a1->m_listLayer->removeMeAndCleanup(a1->m_listLayer); a1->m_listLayer = nullptr; } v9 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v9); if ( a2 ) { v11 = User2; if ( !a3 ) v11 = User; v6 = CustomListView::create(a2, nullptr, 196.0, 340.0, v26, v11, 0.0); } v30 = -12684609; v12 = GJCommentListLayer::create(v6, v10, (cocos2d::ccColor4B)-12684609, 340.0, 196.0, 0); a1->m_listLayer = v12; a1->m_mainLayer->addChild_1(a1->m_mainLayer, v12); v13 = a1->m_listLayer->__vftable; cocos2d::CCPoint::CCPoint(&v29, (float)(v27 - 340.0) * 0.5, (float)((float)((float)(v28 - 196.0) * 0.5) - 10.0) + 5.0); v13->setPosition_0(a1->m_listLayer, v14); if ( !a3 && a2 && cocos2d::CCArray::count(a2) ) { v15 = a1->m_totalFriends->__vftable; v16 = cocos2d::CCArray::count(a2); v17 = cocos2d::CCString::createWithFormat("Total friends: %i", v16); CString = cocos2d::CCString::getCString(v17); v15->setString(&a1->m_totalFriends->cocos2d::CCLabelProtocol, CString); } else { a1->m_totalFriends->setString(&a1->m_totalFriends->cocos2d::CCLabelProtocol, " "); if ( a3 || !a2 ) return; } if ( cocos2d::CCArray::count(a2) ) { v20 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v29 = (cocos2d::CCPoint)operator new(0x668u); qword_1406C2ED8 = ((__int64 (__fastcall *)(_QWORD))sub_14017AB00)(v29); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v20 = (GameManager *)qword_1406C2ED8; } GameManager::reportAchievementWithID(v20, "geometry.ach.friends01", 100, v19); v21 = cocos2d::CCArray::count(a2); if ( v21 >= 10 ) { v23 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v29 = (cocos2d::CCPoint)operator new(0x668u); qword_1406C2ED8 = ((__int64 (__fastcall *)(_QWORD))sub_14017AB00)(v29); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v23 = (GameManager *)qword_1406C2ED8; } GameManager::reportAchievementWithID(v23, "geometry.ach.friends02", 100, v22); } if ( v21 >= 25 ) { v24 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v29 = (cocos2d::CCPoint)operator new(0x668u); qword_1406C2ED8 = ((__int64 (__fastcall *)(_QWORD))sub_14017AB00)(v29); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v24 = (GameManager *)qword_1406C2ED8; } GameManager::reportAchievementWithID(v24, "geometry.ach.friends03", 100, v22); } if ( v21 >= 50 ) { v25 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v29 = (cocos2d::CCPoint)operator new(0x668u); qword_1406C2ED8 = ((__int64 (__fastcall *)(_QWORD))sub_14017AB00)(v29); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v25 = (GameManager *)qword_1406C2ED8; } GameManager::reportAchievementWithID(v25, "geometry.ach.friends04", 100, v22); } } }