// // MemberListPopup::threadUpdateFinished from 0xc7cbcc to 0xc7cf60 (916 bytes) // // 3 xrefs: // > `non-virtual thunk to'MemberListPopup::threadUpdateFinished @ 0xc7cf68 // > @ 0xfd540 // > @ 0x14ef330 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:05:36 +0000 // __int64 __fastcall MemberListPopup::threadUpdateFinished(ThreadViewPopup **this, int a2, int a3) { GameLevelManager *v6; // x0 GameLevelManager *v7; // x0 GJMessageThread *v8; // x1 cocos2d::CCArray *ThreadMembers; // x23 GameLevelManager *v10; // x0 GameLevelManager *v11; // x0 signed int v12; // w21 __int64 refreshed; // x0 cocos2d::CCArray *v14; // x23 char *v15; // x21 __int64 *v16; // x23 __int64 v17; // x1 void (__fastcall *v18)(__int64 *, __int64, __int64); // x26 size_t v19; // x0 __int64 v20; // x0 GameLevelManager *v21; // x0 __int64 v22; // x0 __int64 v23; // x1 bool v24; // zf __int64 v25; // x1 MemberListPopup *v26; // x0 signed int v27; // w21 __int64 v28; // x2 int v29; // w1 int v30; // w1 cocos2d::CCNotificationCenter *v31; // x0 __int64 v32[2]; // [xsp+58h] [xbp+58h] BYREF void *v33; // [xsp+68h] [xbp+68h] __int64 v34[2]; // [xsp+70h] [xbp+70h] BYREF void *v35; // [xsp+80h] [xbp+80h] if ( *((_DWORD *)*(this + 100) + 14) == a2 ) { v6 = (GameLevelManager *)(unsigned __int8)MemberListPopup::opPending((MemberListPopup *)this); if ( (_BYTE)v6 ) { v7 = (GameLevelManager *)GameLevelManager::sharedState(v6); ThreadMembers = (cocos2d::CCArray *)GameLevelManager::getThreadMembers( v7, (const char *)*((unsigned int *)*(this + 100) + 14)); if ( a3 == 4 ) { if ( !*((_BYTE *)this + 864) ) return _stack_chk_guard; v26 = *(this + 100); *((_BYTE *)this + 864) = 0; MemberListPopup::applyAddOutcome(v26, v8); } else { switch ( a3 ) { case 6: if ( *((int *)this + 217) <= 0 ) return _stack_chk_guard; v27 = 0; if ( ThreadMembers ) { while ( v27 < (int)cocos2d::CCArray::count(ThreadMembers) ) { if ( *(_DWORD *)(cocos2d::CCArray::objectAtIndex(ThreadMembers, v27) + 376) == *((_DWORD *)this + 217) ) { cocos2d::CCArray::removeObjectAtIndex(ThreadMembers, v27, 1); break; } ++v27; } } v28 = (__int64)*(this + 100); v15 = "Member removed"; v29 = *(_DWORD *)(v28 + 168); LODWORD(refreshed) = v29 - 1; if ( v29 < 3 ) refreshed = 1; else refreshed = (unsigned int)refreshed; *(_DWORD *)(v28 + 168) = refreshed; *((_DWORD *)this + 217) = 0; break; case 7: v30 = *((_DWORD *)this + 218); if ( v30 <= 0 ) return _stack_chk_guard; v15 = "Owner changed"; *((_DWORD *)*(this + 100) + 50) = v30; *((_DWORD *)this + 218) = 0; refreshed = MemberListPopup::refreshPolicyBtn((MemberListPopup *)this); break; case 13: if ( !*((_BYTE *)this + 848) ) return _stack_chk_guard; *((_DWORD *)*(this + 100) + 52) = *((_DWORD *)*(this + 100) + 52) != 1; *((_BYTE *)this + 848) = 0; MemberListPopup::refreshPolicyBtn((MemberListPopup *)this); refreshed = *((unsigned int *)*(this + 100) + 52); if ( (_DWORD)refreshed == 1 ) v15 = "Only the owner can add"; else v15 = "Anyone can add"; break; case 11: v10 = (GameLevelManager *)*((unsigned int *)this + 219); if ( (int)v10 <= 0 ) return _stack_chk_guard; v11 = (GameLevelManager *)GameLevelManager::sharedState(v10); v12 = 0; refreshed = GameLevelManager::getThreadPendingInvites( v11, (const char *)*((unsigned int *)*(this + 100) + 14)); v14 = (cocos2d::CCArray *)refreshed; if ( refreshed ) { while ( 1 ) { refreshed = cocos2d::CCArray::count(v14); if ( v12 >= (int)refreshed ) break; if ( *(_DWORD *)(cocos2d::CCArray::objectAtIndex(v14, v12) + 376) == *((_DWORD *)this + 219) ) { refreshed = cocos2d::CCArray::removeObjectAtIndex(v14, v12, 1); break; } ++v12; } } *((_DWORD *)this + 219) = 0; v15 = "Invite cancelled"; break; default: return _stack_chk_guard; } v16 = *(__int64 **)(cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)refreshed) + 272); v17 = *v16; v32[0] = 0; v32[1] = 0; v18 = *(void (__fastcall **)(__int64 *, __int64, __int64))(v17 + 464); v33 = nullptr; v19 = strlen(v15); std::string::__init(v32, v15, v19); v34[0] = 0; v34[1] = 0; v35 = nullptr; std::string::__init(v34, &byte_11B8890, 0); v20 = TextAlertPopup::create((char *)v32, 150, (char *)v34, 0.5, 0.6); v18(v16, v20, 1000); if ( (v34[0] & 1) != 0 ) operator delete(v35); if ( (v32[0] & 1) != 0 ) operator delete(v33); } MemberListPopup::refreshHost((MemberListPopup *)this); MemberListPopup::buildRows(this); v21 = *(this + 101); if ( v21 ) { v22 = GameLevelManager::sharedState(v21); v23 = (__int64)*(this + 101); v24 = v23 == 0; v25 = v23 + 672; if ( v24 ) v25 = 0; *(_QWORD *)(v22 + 1264) = v25; if ( (unsigned int)(a3 - 6) <= 1 || a3 == 4 ) ThreadViewPopup::refetchLatest(*(this + 101)); } else { v31 = (cocos2d::CCNotificationCenter *)cocos2d::CCNotificationCenter::sharedNotificationCenter(nullptr); cocos2d::CCNotificationCenter::postNotification(v31, "ThreadsChangedNotification", nullptr); } } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source