// // sub_1004FCC08 from 0x1004fcc08 to 0x1004fd014 (1036 bytes) // // 2 xrefs: // > ThreadViewPopup::threadUpdateFinished @ 0x1004fca50 // > MemberListPopup::threadUpdateFinished @ 0x100508b48 // // 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 11:06:51 +0000 // void __fastcall sub_1004FCC08(__int64 a1) { __int64 v2; // x23 __int64 v3; // x22 __int64 v4; // x20 int v5; // w25 int v6; // w19 int v7; // w21 __int64 v8; // x19 char *CString; // x1 std::string *v10; // x0 __int128 v11; // q0 std::string *v12; // x0 __int128 v13; // q0 void **v14; // x1 std::string::size_type v15; // x2 std::string *v16; // x0 __int128 v17; // q0 std::string *v18; // x0 __int128 v19; // q0 void **v20; // x1 std::string::size_type v21; // x2 std::string *v22; // x0 __int128 v23; // q0 std::string *v24; // x0 __int128 v25; // q0 void **v26; // x1 std::string::size_type v27; // x2 std::string *v28; // x1 __int64 v29; // x0 void *v30; // x0 void *v31; // x0 _QWORD *v32; // x0 void *v33[2]; // [xsp+10h] [xbp-F0h] BYREF char v34; // [xsp+27h] [xbp-D9h] std::string v35; // [xsp+28h] [xbp-D8h] BYREF std::string v36; // [xsp+40h] [xbp-C0h] BYREF void *__p[2]; // [xsp+60h] [xbp-A0h] BYREF signed __int64 v38; // [xsp+70h] [xbp-90h] std::string v39; // [xsp+78h] [xbp-88h] BYREF void *v40[2]; // [xsp+90h] [xbp-70h] BYREF char v41; // [xsp+A7h] [xbp-59h] _QWORD v42[2]; // [xsp+A8h] [xbp-58h] BYREF char v43; // [xsp+BFh] [xbp-41h] v2 = *(_QWORD *)(GameLevelManager::sharedState() + 688); v3 = *(_QWORD *)(GameLevelManager::sharedState() + 696); v4 = *(_QWORD *)(GameLevelManager::sharedState() + 704); if ( v2 ) { v5 = sub_1002E757C(v2); if ( v3 ) goto LABEL_3; LABEL_6: v6 = 0; if ( v4 ) goto LABEL_4; goto LABEL_7; } v5 = 0; if ( !v3 ) goto LABEL_6; LABEL_3: v6 = sub_1002E757C(v3); if ( v4 ) { LABEL_4: v7 = sub_1002E757C(v4); goto LABEL_8; } LABEL_7: v7 = 0; LABEL_8: *(_DWORD *)(a1 + 168) += v5; if ( v6 | v7 ) { memset(&v39, 0, sizeof(v39)); if ( v5 >= 1 ) { sub_100508830(&v35, v2); v10 = std::string::insert(&v35, 0, "Added: "); v11 = *(_OWORD *)&v10->__r_.__value_.__l.__data_; v36.__r_.__value_.__r.__words[2] = v10->__r_.__value_.__r.__words[2]; *(_OWORD *)&v36.__r_.__value_.__l.__data_ = v11; v10->__r_.__value_.__l.__size_ = 0; v10->__r_.__value_.__r.__words[2] = 0; v10->__r_.__value_.__r.__words[0] = 0; v12 = std::string::append(&v36, "\n"); v13 = *(_OWORD *)&v12->__r_.__value_.__l.__data_; v38 = v12->__r_.__value_.__r.__words[2]; *(_OWORD *)__p = v13; v12->__r_.__value_.__l.__size_ = 0; v12->__r_.__value_.__r.__words[2] = 0; v12->__r_.__value_.__r.__words[0] = 0; if ( v38 >= 0 ) v14 = __p; else v14 = (void **)__p[0]; if ( v38 >= 0 ) v15 = HIBYTE(v38); else v15 = (std::string::size_type)__p[1]; std::string::append(&v39, (const std::string::value_type *)v14, v15); if ( SHIBYTE(v38) < 0 ) operator delete(__p[0]); if ( SHIBYTE(v36.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v36.__r_.__value_.__l.__data_); if ( SHIBYTE(v35.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v35.__r_.__value_.__l.__data_); } if ( v6 >= 1 ) { sub_100508830(&v35, v3); v16 = std::string::insert(&v35, 0, "Invited: "); v17 = *(_OWORD *)&v16->__r_.__value_.__l.__data_; v36.__r_.__value_.__r.__words[2] = v16->__r_.__value_.__r.__words[2]; *(_OWORD *)&v36.__r_.__value_.__l.__data_ = v17; v16->__r_.__value_.__l.__size_ = 0; v16->__r_.__value_.__r.__words[2] = 0; v16->__r_.__value_.__r.__words[0] = 0; v18 = std::string::append(&v36, "\n"); v19 = *(_OWORD *)&v18->__r_.__value_.__l.__data_; v38 = v18->__r_.__value_.__r.__words[2]; *(_OWORD *)__p = v19; v18->__r_.__value_.__l.__size_ = 0; v18->__r_.__value_.__r.__words[2] = 0; v18->__r_.__value_.__r.__words[0] = 0; if ( v38 >= 0 ) v20 = __p; else v20 = (void **)__p[0]; if ( v38 >= 0 ) v21 = HIBYTE(v38); else v21 = (std::string::size_type)__p[1]; std::string::append(&v39, (const std::string::value_type *)v20, v21); if ( SHIBYTE(v38) < 0 ) operator delete(__p[0]); if ( SHIBYTE(v36.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v36.__r_.__value_.__l.__data_); if ( SHIBYTE(v35.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v35.__r_.__value_.__l.__data_); } if ( v7 >= 1 ) { sub_100508830(&v35, v4); v22 = std::string::insert(&v35, 0, "Unavailable: "); v23 = *(_OWORD *)&v22->__r_.__value_.__l.__data_; v36.__r_.__value_.__r.__words[2] = v22->__r_.__value_.__r.__words[2]; *(_OWORD *)&v36.__r_.__value_.__l.__data_ = v23; v22->__r_.__value_.__l.__size_ = 0; v22->__r_.__value_.__r.__words[2] = 0; v22->__r_.__value_.__r.__words[0] = 0; v24 = std::string::append(&v36, "\n"); v25 = *(_OWORD *)&v24->__r_.__value_.__l.__data_; v38 = v24->__r_.__value_.__r.__words[2]; *(_OWORD *)__p = v25; v24->__r_.__value_.__l.__size_ = 0; v24->__r_.__value_.__r.__words[2] = 0; v24->__r_.__value_.__r.__words[0] = 0; if ( v38 >= 0 ) v26 = __p; else v26 = (void **)__p[0]; if ( v38 >= 0 ) v27 = HIBYTE(v38); else v27 = (std::string::size_type)__p[1]; std::string::append(&v39, (const std::string::value_type *)v26, v27); if ( SHIBYTE(v38) < 0 ) operator delete(__p[0]); if ( SHIBYTE(v36.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v36.__r_.__value_.__l.__data_); if ( SHIBYTE(v35.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v35.__r_.__value_.__l.__data_); } if ( v6 >= 1 ) std::string::append(&v39, "\nInvited users join when they accept."); if ( (v39.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v28 = &v39; else v28 = (std::string *)v39.__r_.__value_.__r.__words[0]; sub_100009900(v33, (char *)v28); v29 = sub_10034A8F8(0, (__int64)"Add Members", (__int64)v33, (__int64)"OK", 0); (*(void (__fastcall **)(__int64))(*(_QWORD *)v29 + 1312LL))(v29); if ( v34 < 0 ) operator delete(v33[0]); if ( SHIBYTE(v39.__r_.__value_.__r.__words[2]) < 0 ) { v30 = (void *)v39.__r_.__value_.__r.__words[0]; LABEL_64: operator delete(v30); } } else { v8 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector() + 272); if ( v5 == 1 ) { CString = "Member added"; } else { v31 = sub_1003065B0("%i members added", v5); CString = (char *)cocos2d::CCString::getCString((__int64)v31); } sub_100009900(v42, CString); sub_100009900(v40, ""); v32 = TextAlertPopup::create((__int64)v42, 150, (__int64)v40, 0.5, 0.6); (*(void (__fastcall **)(__int64, _QWORD *, __int64))(*(_QWORD *)v8 + 464LL))(v8, v32, 1000); if ( v41 < 0 ) operator delete(v40[0]); if ( v43 < 0 ) { v30 = (void *)v42[0]; goto LABEL_64; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source