// // NewThreadPopup::friendPicked from 0xc7eec4 to 0xc7f080 (444 bytes) // // 3 xrefs: // > `non-virtual thunk to'NewThreadPopup::friendPicked @ 0xc7f088 // > @ 0x51268 // > @ 0x14efbe0 // // 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:38 +0000 // __int64 __fastcall NewThreadPopup::friendPicked(NewThreadPopup *this, GJUserScore *a2) { cocos2d::CCArray *v4; // x0 signed int i; // w19 bool v6; // zf bool v7; // cc cocos2d::CCArray *v8; // x0 cocos2d::CCDirector *v9; // x0 __int64 *v10; // x19 __int64 v11; // x3 void (__fastcall *v12)(__int64 *, __int64, __int64); // x23 __int64 v13; // x0 __int64 v15[2]; // [xsp+48h] [xbp+48h] BYREF void *v16; // [xsp+58h] [xbp+58h] __int64 v17[2]; // [xsp+60h] [xbp+60h] BYREF void *v18; // [xsp+70h] [xbp+70h] if ( a2 ) { v4 = *((cocos2d::CCArray **)this + 91); if ( v4 ) { if ( *((_BYTE *)this + 737) ) { cocos2d::CCArray::removeAllObjects(v4); LABEL_15: cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 91), a2); NewThreadPopup::updateRecipientLabel(this); } else { for ( i = 0; ; ++i ) { v7 = i < (int)cocos2d::CCArray::count(v4); v8 = *((cocos2d::CCArray **)this + 91); if ( !v7 ) break; v6 = *(_DWORD *)(cocos2d::CCArray::objectAtIndex(v8, i) + 376) == *((_DWORD *)a2 + 94); v4 = *((cocos2d::CCArray **)this + 91); if ( v6 ) { cocos2d::CCArray::removeObjectAtIndex(v4, i, 1); NewThreadPopup::updateRecipientLabel(this); return _stack_chk_guard; } } v9 = (cocos2d::CCDirector *)cocos2d::CCArray::count(v8); if ( (int)v9 <= 8 ) goto LABEL_15; v10 = *(__int64 **)(cocos2d::CCDirector::sharedDirector(v9) + 272); v11 = *v10; v15[0] = 0; v15[1] = 0; v12 = *(void (__fastcall **)(__int64 *, __int64, __int64))(v11 + 464); v16 = nullptr; std::string::__init(v15, "Member limit reached", 0x14u); v17[0] = 0; v17[1] = 0; v18 = nullptr; std::string::__init(v17, &byte_11B8890, 0); v13 = TextAlertPopup::create((char *)v15, 150, (char *)v17, 0.5, 0.6); v12(v10, v13, 1000); if ( (v17[0] & 1) != 0 ) operator delete(v18); if ( (v15[0] & 1) != 0 ) operator delete(v16); } } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source