// // NewThreadPopup::threadSendFinished from 0x100948270 to 0x100948b1d (2221 bytes) // // 2 xrefs: // > sub_100948BF0 @ 0x100948bfc // > @ 0x100bc5dd8 // // This function is hookable on this platform (idp: pc, 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 12:38:34 +0000 // void __fastcall NewThreadPopup::threadSendFinished(__int64 a1, int a2) { __int64 v3; // rdi _QWORD *v4; // rax __int64 v5; // r15 __int64 v6; // rdi int v7; // r12d __int64 v8; // rax __int64 v9; // r14 char v10; // r13 __int64 v11; // rax _DWORD *v12; // rax char *v13; // rax __int64 v14; // rdi _QWORD *v15; // rdi _QWORD *v16; // rdi int v17; // r13d int v18; // r14d char *v19; // rax const std::string::value_type *CString; // rax char *v21; // rax const std::string::value_type *v22; // rax char *v23; // r15 std::string *v24; // r14 char *v25; // rax int v26; // r12d int v27; // r14d char *v28; // r15 __int128 *v29; // rdi int v30; // r14d int v31; // eax __int64 v32; // rsi char *v33; // r14 __int64 v34; // rax __int64 v35; // rsi char *v36; // r14 void *v37; // r14 __int64 v38; // rdi _QWORD *v39; // rdi _QWORD *v40; // rdi char v41; // al unsigned __int64 v42; // rdx const void *v43; // rsi void *v44; // r14 __int64 *v45; // rax __int128 v46; // [rsp+8h] [rbp-C8h] BYREF void *v47; // [rsp+18h] [rbp-B8h] __int128 v48; // [rsp+20h] [rbp-B0h] BYREF void *__p; // [rsp+30h] [rbp-A0h] __int128 v50; // [rsp+38h] [rbp-98h] BYREF __int64 v51; // [rsp+48h] [rbp-88h] __int128 v52; // [rsp+50h] [rbp-80h] BYREF void *data; // [rsp+60h] [rbp-70h] _BYTE v54[24]; // [rsp+68h] [rbp-68h] BYREF __int64 v55; // [rsp+80h] [rbp-50h] int v56; // [rsp+8Ch] [rbp-44h] std::string v57; // [rsp+90h] [rbp-40h] BYREF if ( *(_BYTE *)(a1 + 736) != 1 ) return; v56 = a2; *(_BYTE *)(a1 + 736) = 0; v3 = *(_QWORD *)(a1 + 744); if ( v3 ) { (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 1056LL))(v3, 1); v4 = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 744) + 1072LL))(*(_QWORD *)(a1 + 744)); ButtonSprite::setColor(v4, 0xFFFFFF); } v5 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector() + 272); v6 = *(_QWORD *)(a1 + 728); if ( v6 ) { v7 = sub_1007FEF90(v6); if ( v7 > 0 ) { v8 = sub_1007FEFE0(*(_QWORD *)(a1 + 728), 0); v9 = v8; LOBYTE(v8) = 1; v55 = v8; goto LABEL_10; } v55 = 0; } else { v55 = 0; v7 = 0; } v9 = 0; LABEL_10: v10 = *(_BYTE *)(GameLevelManager::sharedState() + 448); v11 = GameLevelManager::sharedState(); if ( v10 == 1 ) { if ( *(_BYTE *)(v11 + 450) == 1 ) { v12 = cocos2d::CCNotificationCenter::sharedNotificationCenter(); cocos2d::CCNotificationCenter::postNotification((__int64)v12, "ThreadsChangedNotification", 0); strcpy(v54, "(Message request sent"); LOWORD(v46) = 0; v13 = TextAlertPopup::create((__int128 *)v54, 0x96u, &v46, 0.5, 0.60000002); (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v5 + 464LL))(v5, v13, 1000); if ( (v46 & 1) != 0 ) { operator delete(v47); if ( (v54[0] & 1) == 0 ) { LABEL_14: v14 = *(_QWORD *)(a1 + 752); if ( !v14 ) { LABEL_16: v15 = *(_QWORD **)(a1 + 880); if ( v15 ) { v15[73] = 0; (*(void (__fastcall **)(_QWORD *, _QWORD))(*v15 + 1160LL))(v15, 0); } v16 = *(_QWORD **)(a1 + 888); if ( v16 ) { v16[73] = 0; (*(void (__fastcall **)(_QWORD *, _QWORD))(*v16 + 1160LL))(v16, 0); } (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 528LL))(a1, 1); return; } LABEL_15: (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v14 + 1368LL))(v14, 0); goto LABEL_16; } } else if ( (v54[0] & 1) == 0 ) { goto LABEL_14; } operator delete(*(void **)&v54[16]); v14 = *(_QWORD *)(a1 + 752); if ( !v14 ) goto LABEL_16; goto LABEL_15; } v23 = (char *)operator new(0x150u); cocos2d::CCObject::CCObject((__int64)v23); *(_QWORD *)v23 = off_100B6FDC8; *(_OWORD *)(v23 + 56) = 0; *(_OWORD *)(v23 + 72) = 0; *(_OWORD *)(v23 + 88) = 0; *(_OWORD *)(v23 + 104) = 0; *(_OWORD *)(v23 + 120) = 0; *(_OWORD *)(v23 + 136) = 0; *(_OWORD *)(v23 + 152) = 0; *((_DWORD *)v23 + 42) = 2; *((_DWORD *)v23 + 52) = 0; *((_QWORD *)v23 + 35) = 0; *((_DWORD *)v23 + 72) = 0; *((_QWORD *)v23 + 37) = 0; *((_WORD *)v23 + 152) = 0; *((_OWORD *)v23 + 11) = 0; *(_OWORD *)(v23 + 189) = 0; *(_OWORD *)(v23 + 216) = 0; *(_OWORD *)(v23 + 232) = 0; *(_OWORD *)(v23 + 248) = 0; *((_WORD *)v23 + 132) = 0; *(_DWORD *)(v23 + 271) = 0; *((_DWORD *)v23 + 67) = 0; *(_OWORD *)(v23 + 308) = 0; *(_QWORD *)(v23 + 324) = 0; cocos2d::CCObject::autorelease((__int64)v23); *((_DWORD *)v23 + 14) = v56; v23[264] = 1; *((_DWORD *)v23 + 42) = 2; if ( v9 ) { *((_DWORD *)v23 + 15) = *(_DWORD *)(v9 + 376); if ( (*(_BYTE *)(v9 + 320) & 1) == 0 ) { v57 = *(std::string *)(v9 + 320); v24 = (std::string *)(v23 + 64); if ( (v23[64] & 1) == 0 ) goto LABEL_72; LABEL_71: operator delete(*((void **)v23 + 10)); goto LABEL_72; } v42 = *(_QWORD *)(v9 + 328); v43 = *(const void **)(v9 + 336); LABEL_70: sub_10001AD30(&v57, v43, v42); v24 = (std::string *)(v23 + 64); if ( (v23[64] & 1) == 0 ) goto LABEL_72; goto LABEL_71; } *((_DWORD *)v23 + 15) = *(_DWORD *)(a1 + 696); v41 = *(_BYTE *)(a1 + 704); if ( (v41 & 1) != 0 ) { v42 = *(_QWORD *)(a1 + 712); if ( v42 ) { v43 = *(const void **)(a1 + 720); goto LABEL_70; } } else if ( v41 ) { v57 = *(std::string *)(a1 + 704); v24 = (std::string *)(v23 + 64); if ( (v23[64] & 1) != 0 ) goto LABEL_71; LABEL_72: *v24 = v57; std::string::operator=((std::string *)(v23 + 88), v24); v44 = operator new(0x4D0u); ThreadViewPopup::ThreadViewPopup(v44); if ( !ThreadViewPopup::init((__int64)v44, (__int64)v23) ) sub_1009A64D0(v44); cocos2d::CCObject::autorelease((__int64)v44); (*(void (__fastcall **)(void *))(*(_QWORD *)v44 + 1312LL))(v44); v14 = *(_QWORD *)(a1 + 752); if ( !v14 ) goto LABEL_16; goto LABEL_15; } v45 = (__int64 *)GameLevelManager::sharedState(); GameLevelManager::tryGetUsername(&v57, v45, *(_DWORD *)(a1 + 696)); v24 = (std::string *)(v23 + 64); if ( (v23[64] & 1) != 0 ) goto LABEL_71; goto LABEL_72; } v17 = *(_DWORD *)(v11 + 440); v18 = *(_DWORD *)(GameLevelManager::sharedState() + 444); strcpy((char *)&v57, "$Group chat created"); if ( v17 > 0 ) { v19 = sub_10088E820(" - %i invited", v17); CString = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v19); std::string::append(&v57, CString); } if ( v18 > 0 ) { v21 = sub_10088E820(" - %i unavailable", v18); v22 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v21); std::string::append(&v57, v22); } if ( (*(_BYTE *)&v57.__r_.__value_.__s.0 & 1) != 0 ) { sub_10001AD30(&v52, v57.__r_.__value_.__l.__data_, v57.__r_.__value_.__l.__size_); } else { data = v57.__r_.__value_.__l.__data_; v52 = *(_OWORD *)&v57.__r_.__value_.__l.0; } LOWORD(v48) = 0; v25 = TextAlertPopup::create(&v52, 0x96u, &v48, 0.5, 0.60000002); (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v5 + 464LL))(v5, v25, 1000); if ( (v48 & 1) != 0 ) operator delete(__p); if ( (v52 & 1) != 0 ) operator delete(data); v26 = v7 - (v18 + v17); v27 = 0; if ( v26 > 0 ) v27 = v26; v28 = (char *)operator new(0x150u); cocos2d::CCObject::CCObject((__int64)v28); *(_QWORD *)v28 = off_100B6FDC8; *(_OWORD *)(v28 + 56) = 0; *(_OWORD *)(v28 + 72) = 0; *(_OWORD *)(v28 + 88) = 0; *(_OWORD *)(v28 + 104) = 0; *(_OWORD *)(v28 + 120) = 0; *(_OWORD *)(v28 + 136) = 0; *(_OWORD *)(v28 + 152) = 0; *((_DWORD *)v28 + 42) = 2; *((_DWORD *)v28 + 52) = 0; *((_QWORD *)v28 + 35) = 0; *((_DWORD *)v28 + 72) = 0; *((_QWORD *)v28 + 37) = 0; *((_WORD *)v28 + 152) = 0; *((_OWORD *)v28 + 11) = 0; *(_OWORD *)(v28 + 189) = 0; *(_OWORD *)(v28 + 216) = 0; *(_OWORD *)(v28 + 232) = 0; *(_OWORD *)(v28 + 248) = 0; *((_WORD *)v28 + 132) = 0; *(_DWORD *)(v28 + 271) = 0; *((_DWORD *)v28 + 67) = 0; *(_OWORD *)(v28 + 308) = 0; *(_QWORD *)(v28 + 324) = 0; v29 = (__int128 *)v28; cocos2d::CCObject::autorelease((__int64)v28); v30 = v27 + 1; v31 = 2; if ( (_BYTE)v55 ) v31 = v30; *((_DWORD *)v28 + 14) = v56; *((_DWORD *)v28 + 42) = v31; v32 = *(_QWORD *)(a1 + 880); if ( v32 ) { v29 = &v50; CCTextInputNode::getString(&v50, v32); v33 = v28 + 88; if ( (v28[88] & 1) == 0 ) goto LABEL_43; goto LABEL_42; } LOWORD(v50) = 0; v33 = v28 + 88; if ( (v28[88] & 1) != 0 ) { LABEL_42: v29 = *((__int128 **)v28 + 13); operator delete(v29); } LABEL_43: *((_QWORD *)v33 + 2) = v51; *(_OWORD *)v33 = v50; v34 = GJAccountManager::sharedState((__int64)v29, v32); *((_DWORD *)v28 + 50) = *(_DWORD *)(v34 + 352) - *(_DWORD *)(v34 + 356); v35 = *(_QWORD *)(a1 + 888); if ( !v35 ) { LOWORD(v50) = 0; v36 = v28 + 216; if ( (v28[216] & 1) == 0 ) goto LABEL_46; goto LABEL_45; } CCTextInputNode::getString(&v50, v35); v36 = v28 + 216; if ( (v28[216] & 1) != 0 ) LABEL_45: operator delete(*((void **)v28 + 29)); LABEL_46: *((_QWORD *)v36 + 2) = v51; *(_OWORD *)v36 = v50; std::string::operator=((std::string *)v28 + 10, (const std::string *)(a1 + 784)); v37 = operator new(0x4D0u); ThreadViewPopup::ThreadViewPopup(v37); if ( !ThreadViewPopup::init((__int64)v37, (__int64)v28) ) sub_1009A64D0(v37); cocos2d::CCObject::autorelease((__int64)v37); (*(void (__fastcall **)(void *))(*(_QWORD *)v37 + 1312LL))(v37); v38 = *(_QWORD *)(a1 + 752); if ( v38 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v38 + 1368LL))(v38, 0); v39 = *(_QWORD **)(a1 + 880); if ( v39 ) { v39[73] = 0; (*(void (__fastcall **)(_QWORD *, _QWORD))(*v39 + 1160LL))(v39, 0); } v40 = *(_QWORD **)(a1 + 888); if ( v40 ) { v40[73] = 0; (*(void (__fastcall **)(_QWORD *, _QWORD))(*v40 + 1160LL))(v40, 0); } (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 528LL))(a1, 1); if ( (*(_BYTE *)&v57.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v57.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source