// // GJMultiplayerManager::onJoinLobbyCompleted from 0x100266980 to 0x100266d9c (1052 bytes) // // 1 xrefs: // > GJMultiplayerManager::handleIt @ 0x1002668b4 // // 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:01:41 +0000 // void __fastcall GJMultiplayerManager::onJoinLobbyCompleted(_QWORD *a1, _QWORD *a2, const char *a3) { const char *v3; // x20 const char *v6; // x1 __int64 v7; // x20 _BOOL4 v8; // w0 _BOOL4 v9; // w22 __int64 v10; // x21 __int64 v11; // x0 char *CString; // x0 __int64 v13; // x0 __int64 v14; // x20 __int64 v15; // x22 __int64 v16; // x0 char *v17; // x0 __int64 v18; // x23 __int64 i; // x24 __int64 v20; // x0 char *v21; // x0 __int64 v22; // x27 __int64 v23; // x0 int v24; // w26 __int64 v25; // x0 char *v26; // x0 __int64 v27; // x0 int v28; // w28 char *v29; // x27 unsigned __int64 v30; // d1 __int64 v31; // x0 __int64 v32; // x0 char *v33; // x0 unsigned __int64 v34; // x9 unsigned __int8 v35; // w8 __int64 v36; // x21 __int64 j; // x22 __int64 v38; // x0 char *v39; // x0 void (__fastcall ***v40)(_QWORD, __int64); // x0 std::string __dst; // [xsp+10h] [xbp-110h] BYREF std::string __str; // [xsp+30h] [xbp-F0h] BYREF std::string v43; // [xsp+48h] [xbp-D8h] BYREF void *v44[2]; // [xsp+60h] [xbp-C0h] BYREF unsigned __int8 v45; // [xsp+77h] [xbp-A9h] void *v46[2]; // [xsp+78h] [xbp-A8h] BYREF char v47; // [xsp+8Fh] [xbp-91h] void *__p[2]; // [xsp+90h] [xbp-90h] BYREF char v49; // [xsp+A7h] [xbp-79h] timeb v50; // [xsp+A8h] [xbp-78h] BYREF v3 = a3; v6 = a3; if ( a3[23] < 0 ) v6 = *(const char **)a3; GJMultiplayerManager::removeDLFromActive(a1, v6); if ( v3[23] < 0 ) v3 = *(const char **)v3; v7 = atoi(v3); sub_100009900(__p, "-1"); v8 = sub_1000045BC(a2, __p); v9 = v8; if ( v49 < 0 ) { operator delete(__p[0]); if ( v9 ) goto LABEL_23; } else if ( v8 ) { LABEL_23: v31 = a1[44]; if ( v31 ) (*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v31 + 8LL))(v31, v7, 0); return; } v10 = sub_1002671EC(a2, "#"); if ( (unsigned int)sub_1002E757C(v10) < 3 ) goto LABEL_23; v11 = cocos2d::CCArray::stringAtIndex(v10, 0); CString = (char *)cocos2d::CCString::getCString(v11); sub_100009900(__p, CString); v13 = cocos2d::CCArray::stringAtIndex(v10, 1); v14 = cocos2d::CCString::intValue(v13); v15 = sub_1002E736C(v14); v16 = cocos2d::CCArray::stringAtIndex(v10, 2); v17 = (char *)cocos2d::CCString::getCString(v16); sub_100009900(v46, v17); v18 = sub_1002671EC(v46, ";"); for ( i = 0; (unsigned int)i < (unsigned int)sub_1002E757C(v18); i = (unsigned int)(i + 1) ) { v20 = cocos2d::CCArray::stringAtIndex(v18, i); v21 = (char *)cocos2d::CCString::getCString(v20); sub_100009900(v44, v21); v22 = sub_1002671EC(v44, ","); if ( (unsigned int)sub_1002E757C(v22) >= 3 ) { v23 = cocos2d::CCArray::stringAtIndex(v22, 0); v24 = cocos2d::CCString::intValue(v23); v25 = cocos2d::CCArray::stringAtIndex(v22, 1); v26 = (char *)cocos2d::CCString::getCString(v25); sub_100009900(&v43, v26); v27 = cocos2d::CCArray::stringAtIndex(v22, 2); v28 = cocos2d::CCString::intValue(v27); v29 = (char *)GJUserScore::create_1(); *((_DWORD *)v29 + 94) = v24; if ( SHIBYTE(v43.__r_.__value_.__r.__words[2]) < 0 ) sub_1000097D0(&__str, v43.__r_.__value_.__l.__data_, v43.__r_.__value_.__l.__size_); else __str = v43; std::string::operator=((std::string *)(v29 + 320), &__str); if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__str.__r_.__value_.__l.__data_); ftime(&v50); LOWORD(v30) = v50.millitm; *((double *)v29 + 94) = (double)v30 / 1000.0 + (double)v50.time + (float)((float)v28 * -1000.0); cocos2d::CCDictionary::setObject_1(a1[41], v29, v24); sub_1002E74E0(v15, v29); if ( SHIBYTE(v43.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v43.__r_.__value_.__l.__data_); } if ( (char)v45 < 0 ) operator delete(v44[0]); } cocos2d::CCDictionary::setObject_1(a1[42], v15, (int)v14); if ( (unsigned int)sub_1002E757C(v10) >= 4 ) { v32 = cocos2d::CCArray::stringAtIndex(v10, 3); v33 = (char *)cocos2d::CCString::getCString(v32); sub_100009900(v44, v33); v34 = v45; v35 = v45; if ( (v45 & 0x80u) != 0 ) v34 = (unsigned __int64)v44[1]; if ( v34 ) { v36 = sub_1002671EC(v44, "|"); for ( j = 0; (unsigned int)j < (unsigned int)sub_1002E757C(v36); j = (unsigned int)(j + 1) ) { v38 = cocos2d::CCArray::stringAtIndex(v36, j); v39 = (char *)cocos2d::CCString::getCString(v38); sub_100009900(&v43, v39); if ( SHIBYTE(v43.__r_.__value_.__r.__words[2]) < 0 ) sub_1000097D0(&__dst, v43.__r_.__value_.__l.__data_, v43.__r_.__value_.__l.__size_); else __dst = v43; sub_100267408(a1, &__dst, v14); if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__dst.__r_.__value_.__l.__data_); if ( SHIBYTE(v43.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v43.__r_.__value_.__l.__data_); } v35 = v45; } if ( (v35 & 0x80) != 0 ) operator delete(v44[0]); } v40 = (void (__fastcall ***)(_QWORD, __int64))a1[44]; if ( v40 ) (**v40)(v40, v14); if ( v47 < 0 ) operator delete(v46[0]); if ( v49 < 0 ) operator delete(__p[0]); }
GD Web Decomp Icon

GD Web Decomp

Raw Source