// // NewThreadPopup::threadSendFinished from 0x75ce68 to 0x75d222 (954 bytes) // // 1 xrefs: // > `non-virtual thunk to'NewThreadPopup::threadSendFinished @ 0x75d254 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:59:00 +0000 // NewThreadPopup *__fastcall NewThreadPopup::threadSendFinished(NewThreadPopup *this, int a2, __int64 a3) { NewThreadPopup *v3; // r6 cocos2d::CCDirector *v4; // r0 int v5; // r7 cocos2d::CCArray *v6; // r0 int v7; // r5 cocos2d::CCArray *v8; // r8 unsigned __int8 *v9; // r0 int v10; // r11 cocos2d::CCNotificationCenter *v11; // r0 cocos2d::CCNotificationCenter *v12; // r0 void (__fastcall *v13)(int, cocos2d::CCNode *, int); // r9 cocos2d::CCNode *v14; // r0 NewThreadPopup *v15; // r0 int v16; // r0 int v17; // r5 int v18; // r3 _DWORD *v19; // r7 int v20; // r1 int v21; // r3 int v22; // r3 cocos2d::CCDictionary **v23; // r0 int v24; // r1 int v25; // r2 GJMessageThread *v26; // r1 ThreadViewPopup *v27; // r0 GameLevelManager *v28; // r0 const char *v29; // r10 const char *v30; // r9 cocos2d::CCString *v31; // r0 char *CString; // r0 cocos2d::CCString *v33; // r0 char *v34; // r0 cocos2d::CCNode *v35; // r0 GJMessageThread *v36; // r0 int v37; // r9 int v38; // r0 int v39; // r7 int *v40; // r8 int v41; // r1 int v42; // r2 GJAccountManager *v43; // r0 int v44; // r0 int v45; // r1 int v46; // r2 GJMessageThread *v47; // r1 ThreadViewPopup *v48; // r0 void (__fastcall *v50)(int, cocos2d::CCNode *, int); // [sp+10h] [bp-4Ch] int v51[3]; // [sp+18h] [bp-44h] BYREF int v52[3]; // [sp+24h] [bp-38h] BYREF int v53[3]; // [sp+30h] [bp-2Ch] BYREF int v54; // [sp+3Ch] [bp-20h] BYREF int v55; // [sp+40h] [bp-1Ch] int v56; // [sp+44h] [bp-18h] int v57; // [sp+48h] [bp-14h] BYREF int v58; // [sp+4Ch] [bp-10h] int v59; // [sp+50h] [bp-Ch] v3 = this; if ( *((_BYTE *)this + 556) ) { v4 = (cocos2d::CCDirector *)NewThreadPopup::setSendPending(this, 0); v5 = *(_DWORD *)(cocos2d::CCDirector::sharedDirector(v4) + 220); v6 = *((cocos2d::CCArray **)v3 + 138); if ( v6 ) { v6 = (cocos2d::CCArray *)cocos2d::CCArray::count(v6); v7 = (int)v6; if ( (int)v6 <= 0 ) { v8 = nullptr; } else { v6 = (cocos2d::CCArray *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)v3 + 138), 0); v8 = v6; } } else { v7 = 0; v8 = nullptr; } v9 = (unsigned __int8 *)GameLevelManager::sharedState(v6); v10 = v9[332]; if ( v9[332] ) { v11 = (cocos2d::CCNotificationCenter *)GameLevelManager::sharedState((GameLevelManager *)v9); if ( *((_BYTE *)v11 + 334) ) { v12 = (cocos2d::CCNotificationCenter *)cocos2d::CCNotificationCenter::sharedNotificationCenter(v11); cocos2d::CCNotificationCenter::postNotification(v12, "ThreadsChangedNotification", nullptr); v13 = *(void (__fastcall **)(int, cocos2d::CCNode *, int))(*(_DWORD *)v5 + 232); v54 = 0; v55 = 0; v56 = 0; std::string::__init(&v54, "Message request sent", 0x14u); v57 = 0; v58 = 0; v59 = 0; std::string::__init(&v57, &unk_B6B226, 0); v14 = TextAlertPopup::create((int)&v54, (cocos2d::CCDelayTime *)0x3F000000, 0.6, 150, (int)&v57); v13(v5, v14, 1000); std::string::~string((int)&v57); std::string::~string((int)&v54); v15 = v3; return (NewThreadPopup *)NewThreadPopup::onClose(v15, nullptr); } v16 = GJMessageThread::create(v11); v17 = v16; *(_DWORD *)(v16 + 52) = a2; *(_BYTE *)(v16 + 168) = 1; *(_DWORD *)(v16 + 116) = 2; if ( v8 ) v18 = *((_DWORD *)v8 + 74); else v18 = *((_DWORD *)v3 + 134); *(_DWORD *)(v16 + 56) = v18; v19 = (_DWORD *)(v16 + 60); if ( v8 ) { v20 = (int)v8 + 264; } else { v21 = *((unsigned __int8 *)v3 + 540); if ( (v21 & 1) != 0 ) v22 = *((_DWORD *)v3 + 136); else v22 = v21 >> 1; if ( !v22 ) { v23 = (cocos2d::CCDictionary **)GameLevelManager::sharedState((GameLevelManager *)v16); GameLevelManager::tryGetUsername((GameLevelManager *)&v57, v23, *((_DWORD *)v3 + 134)); goto LABEL_22; } v20 = (int)v3 + 540; } std::string::basic_string(&v57, v20); LABEL_22: if ( (*(_BYTE *)(v17 + 60) & 1) != 0 ) { **(_BYTE **)(v17 + 68) = 0; *(_DWORD *)(v17 + 64) = 0; } else { *(_BYTE *)(v17 + 61) = 0; *(_BYTE *)(v17 + 60) = 0; } std::string::reserve((int *)(v17 + 60), 0); v24 = v58; v25 = v59; *v19 = v57; *(_DWORD *)(v17 + 64) = v24; *(_DWORD *)(v17 + 68) = v25; v57 = 0; v58 = 0; v59 = 0; std::string::~string((int)&v57); std::string::operator=((unsigned __int8 *)(v17 + 72), (unsigned __int8 *)(v17 + 60)); v27 = ThreadViewPopup::create((ThreadViewPopup *)v17, v26); (*(void (__fastcall **)(ThreadViewPopup *))(*(_DWORD *)v27 + 656))(v27); v15 = v3; return (NewThreadPopup *)NewThreadPopup::onClose(v15, nullptr); } v28 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)v9); v29 = *((const char **)v28 + 81); v51[0] = v10; v51[1] = v10; v51[2] = v10; v30 = *(const char **)(GameLevelManager::sharedState(v28) + 328); std::string::__init(v51, "Group chat created", 0x12u); if ( (int)v29 > 0 ) { v31 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)" - %i invited", v29); CString = (char *)cocos2d::CCString::getCString(v31); std::string::append(v51, CString); } if ( (int)v30 > 0 ) { v33 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)" - %i unavailable", v30); v34 = (char *)cocos2d::CCString::getCString(v33); std::string::append(v51, v34); } v50 = *(void (__fastcall **)(int, cocos2d::CCNode *, int))(*(_DWORD *)v5 + 232); std::string::basic_string(v52, (int)v51); memset(v53, 0, sizeof(v53)); std::string::__init(v53, &unk_B6B226, 0); v35 = TextAlertPopup::create((int)v52, (cocos2d::CCDelayTime *)0x3F000000, 0.6, 150, (int)v53); v50(v5, v35, 1000); std::string::~string((int)v53); v36 = (GJMessageThread *)std::string::~string((int)v52); if ( v7 <= 0 ) v37 = 1; else v37 = v7 - (_DWORD)v29 - (_DWORD)v30; v38 = GJMessageThread::create(v36); *(_DWORD *)(v38 + 116) = (v37 & ~(v37 >> 31)) + 1; v39 = v38; v40 = (int *)(v38 + 72); *(_DWORD *)(v38 + 52) = a2; if ( *((_DWORD *)v3 + 158) ) { CCTextInputNode::getString((CCTextInputNode *)&v54, *((_DWORD *)v3 + 158)); } else { v54 = 0; v55 = 0; v56 = 0; std::string::__init(&v54, &unk_B6B226, 0); } if ( (*(_BYTE *)(v39 + 72) & 1) != 0 ) { **(_BYTE **)(v39 + 80) = 0; *(_DWORD *)(v39 + 76) = 0; } else { *(_BYTE *)(v39 + 73) = 0; *(_BYTE *)(v39 + 72) = 0; } std::string::reserve(v40, 0); v41 = v55; v42 = v56; *v40 = v54; v40[1] = v41; v40[2] = v42; v54 = 0; v55 = 0; v56 = 0; v43 = (GJAccountManager *)std::string::~string((int)&v54); v44 = GJAccountManager::sharedState(v43); *(_DWORD *)(v39 + 132) = *(_DWORD *)(v44 + 280) - *(_DWORD *)(v44 + 284); if ( *((_DWORD *)v3 + 159) ) { CCTextInputNode::getString((CCTextInputNode *)&v57, *((_DWORD *)v3 + 159)); } else { v57 = 0; v58 = 0; v59 = 0; std::string::__init(&v57, &unk_B6B226, 0); } if ( (*(_BYTE *)(v39 + 144) & 1) != 0 ) { **(_BYTE **)(v39 + 152) = 0; *(_DWORD *)(v39 + 148) = 0; } else { *(_BYTE *)(v39 + 145) = 0; *(_BYTE *)(v39 + 144) = 0; } std::string::reserve((int *)(v39 + 144), 0); v45 = v58; v46 = v59; *(_DWORD *)(v39 + 144) = v57; *(_DWORD *)(v39 + 148) = v45; *(_DWORD *)(v39 + 152) = v46; v57 = 0; v58 = 0; v59 = 0; std::string::~string((int)&v57); std::string::operator=((unsigned __int8 *)(v39 + 156), (unsigned __int8 *)v3 + 580); v48 = ThreadViewPopup::create((ThreadViewPopup *)v39, v47); (*(void (__fastcall **)(ThreadViewPopup *))(*(_DWORD *)v48 + 656))(v48); NewThreadPopup::onClose(v3, nullptr); return (NewThreadPopup *)std::string::~string((int)v51); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source