// // GJComment::create from 0x81b27c to 0x81bbb8 (2364 bytes) // // 4 xrefs: // > GameLevelManager::createAndGetCommentsFull @ 0x84ab58 // > GameLevelManager::createAndGetCommentsFull @ 0x84acb8 // > GJMultiplayerManager::addComment @ 0xac5830 // > @ 0x7f4c8 // // 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 12:54:58 +0000 // __int64 __fastcall GJComment::create(GJComment *this, cocos2d::CCDictionary *a2) { cocos2d::CCString *v3; // x0 size_t v4; // x0 cocos2d::CCString *v5; // x0 cocos2d::CCString *v6; // x0 cocos2d::CCString *v7; // x0 const char *v8; // x0 cocos2d::CCString *v9; // x0 char v10; // w28 cocos2d::CCString *v11; // x0 cocos2d::CCString *v12; // x0 const char *v13; // x0 size_t v14; // x0 cocos2d::CCString *v15; // x0 cocos2d::CCString *v16; // x0 int v17; // w25 cocos2d::CCString *v18; // x0 cocos2d::CCString *v19; // x0 int v20; // w26 cocos2d::CCString *v21; // x0 GJComment *v22; // x0 __int64 v23; // x19 __int64 *v24; // x0 char v25; // w0 __int64 *v26; // x0 cocos2d::CCString *v27; // x0 int v28; // w28 cocos2d::CCString *v29; // x0 size_t v30; // x0 const char *v31; // x1 size_t v32; // x0 cocos2d::CCArray *v33; // x20 cocos2d::CCString *v35; // x0 char v36; // w24 cocos2d::CCString *v37; // x0 char v38; // w23 cocos2d::CCString *v39; // x0 char v40; // w0 char v41; // [xsp+6Fh] [xbp+6Fh] char *v42; // [xsp+70h] [xbp+70h] int v43; // [xsp+70h] [xbp+70h] int v44; // [xsp+78h] [xbp+78h] int v45; // [xsp+7Ch] [xbp+7Ch] int v46; // [xsp+80h] [xbp+80h] int v47; // [xsp+84h] [xbp+84h] char *CString; // [xsp+88h] [xbp+88h] int v49; // [xsp+88h] [xbp+88h] char *v50; // [xsp+88h] [xbp+88h] char *v51; // [xsp+88h] [xbp+88h] __int64 v52; // [xsp+98h] [xbp+98h] BYREF size_t v53; // [xsp+A0h] [xbp+A0h] void *v54; // [xsp+A8h] [xbp+A8h] __int64 v55[2]; // [xsp+B0h] [xbp+B0h] BYREF void *v56; // [xsp+C0h] [xbp+C0h] __int64 v57[2]; // [xsp+C8h] [xbp+C8h] BYREF void *v58; // [xsp+D8h] [xbp+D8h] __int64 v59[2]; // [xsp+E0h] [xbp+E0h] BYREF void *v60; // [xsp+F0h] [xbp+F0h] __int64 v61[2]; // [xsp+F8h] [xbp+F8h] BYREF void *v62; // [xsp+108h] [xbp+108h] __int64 v63[2]; // [xsp+110h] [xbp+110h] BYREF void *v64; // [xsp+120h] [xbp+120h] __int64 v65; // [xsp+128h] [xbp+128h] BYREF size_t v66; // [xsp+130h] [xbp+130h] void *v67; // [xsp+138h] [xbp+138h] __int64 v68[2]; // [xsp+140h] [xbp+140h] BYREF void *v69; // [xsp+150h] [xbp+150h] __int64 v70[2]; // [xsp+158h] [xbp+158h] BYREF void *v71; // [xsp+168h] [xbp+168h] __int64 v72[2]; // [xsp+170h] [xbp+170h] BYREF void *v73; // [xsp+180h] [xbp+180h] __int64 v74[2]; // [xsp+188h] [xbp+188h] BYREF void *v75; // [xsp+198h] [xbp+198h] __int64 v76[2]; // [xsp+1A0h] [xbp+1A0h] BYREF void *v77; // [xsp+1B0h] [xbp+1B0h] GJComment *v78[2]; // [xsp+1B8h] [xbp+1B8h] BYREF void *v79; // [xsp+1C8h] [xbp+1C8h] __int64 v80; // [xsp+1D0h] [xbp+1D0h] BYREF size_t v81; // [xsp+1D8h] [xbp+1D8h] void *v82; // [xsp+1E0h] [xbp+1E0h] __int64 v83; // [xsp+1E8h] [xbp+1E8h] BYREF size_t v84; // [xsp+1F0h] [xbp+1F0h] void *v85; // [xsp+1F8h] [xbp+1F8h] __int64 v86; // [xsp+200h] [xbp+200h] BYREF __int64 v87; // [xsp+208h] [xbp+208h] void *v88; // [xsp+210h] [xbp+210h] __int64 v89; // [xsp+218h] [xbp+218h] BYREF __int64 v90; // [xsp+220h] [xbp+220h] void *v91; // [xsp+228h] [xbp+228h] __int64 v92; // [xsp+230h] [xbp+230h] BYREF __int64 v93; // [xsp+238h] [xbp+238h] void *v94; // [xsp+240h] [xbp+240h] v89 = 0; v90 = 0; v91 = nullptr; std::string::__init(&v89, &byte_120A098, 1u); v3 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, &v89); CString = (char *)cocos2d::CCString::getCString(v3); v92 = 0; v93 = 0; v94 = nullptr; v4 = strlen(CString); std::string::__init(&v92, CString, v4); LevelTools::base64DecodeString((__int64)&v92, &v52); if ( (v92 & 1) != 0 ) operator delete(v94); if ( (v89 & 1) != 0 ) operator delete(v91); v55[0] = 0; v55[1] = 0; v56 = nullptr; std::string::__init(v55, "3", 1u); v5 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v55); v49 = cocos2d::CCString::intValue(v5); if ( (v55[0] & 1) != 0 ) operator delete(v56); v57[0] = 0; v57[1] = 0; v58 = nullptr; std::string::__init(v57, &byte_11BCA00, 1u); v6 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v57); v47 = cocos2d::CCString::intValue(v6); if ( (v57[0] & 1) != 0 ) operator delete(v58); v59[0] = 0; v59[1] = 0; v60 = nullptr; std::string::__init(v59, "6", 1u); v7 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v59); v8 = (const char *)cocos2d::CCString::getCString(v7); v46 = atoi(v8); if ( (v59[0] & 1) != 0 ) operator delete(v60); v61[0] = 0; v61[1] = 0; v62 = nullptr; std::string::__init(v61, "7", 1u); v9 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v61); v10 = cocos2d::CCString::boolValue(v9); if ( (v61[0] & 1) != 0 ) operator delete(v62); v63[0] = 0; v63[1] = 0; v64 = nullptr; std::string::__init(v63, "8", 1u); v11 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v63); v45 = cocos2d::CCString::intValue(v11); if ( (v63[0] & 1) != 0 ) operator delete(v64); v68[0] = 0; v68[1] = 0; v69 = nullptr; std::string::__init(v68, "9", 1u); v12 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v68); v13 = (const char *)cocos2d::CCString::getCString(v12); v65 = 0; v66 = 0; v67 = nullptr; v42 = (char *)v13; v14 = strlen(v13); std::string::__init(&v65, v42, v14); if ( (v68[0] & 1) != 0 ) operator delete(v69); v70[0] = 0; v70[1] = 0; v71 = nullptr; std::string::__init(v70, "10", 2u); v15 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v70); v43 = cocos2d::CCString::intValue(v15); if ( (v70[0] & 1) != 0 ) operator delete(v71); v72[0] = 0; v72[1] = 0; v73 = nullptr; std::string::__init(v72, "11", 2u); v16 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v72); v17 = cocos2d::CCString::intValue(v16); if ( (v72[0] & 1) != 0 ) operator delete(v73); v74[0] = 0; v74[1] = 0; v75 = nullptr; std::string::__init(v74, "13", 2u); v18 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v74); v41 = cocos2d::CCString::boolValue(v18); if ( (v74[0] & 1) != 0 ) operator delete(v75); v76[0] = 0; v76[1] = 0; v77 = nullptr; std::string::__init(v76, "1", 1u); v19 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v76); v20 = cocos2d::CCString::intValue(v19); if ( (v76[0] & 1) != 0 ) operator delete(v77); v78[0] = nullptr; v78[1] = nullptr; v79 = nullptr; std::string::__init((__int64 *)v78, "15", 2u); v21 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v78); v44 = cocos2d::CCString::intValue(v21); v22 = (GJComment *)LOBYTE(v78[0]); if ( ((__int64)v78[0] & 1) != 0 ) operator delete(v79); v23 = GJComment::create(v22); v80 = 0; v81 = 0; v82 = nullptr; if ( (v52 & 1) != 0 ) { std::string::__init(&v80, v54, v53); } else { v82 = v54; v80 = v52; v81 = v53; } v24 = (__int64 *)(v23 + 320); if ( (__int64 *)(v23 + 320) != &v80 ) { if ( (v80 & 1) != 0 ) std::string::assign(v24, v82, v81); else std::string::assign(v24, (char *)&v80 + 1, (unsigned __int8)v80 >> 1); } if ( (v80 & 1) != 0 ) operator delete(v82); *(_DWORD *)(v23 + 372) = v49; *(_DWORD *)(v23 + 376) = v47; *(_DWORD *)(v23 + 368) = v46; v25 = v65; *(_BYTE *)(v23 + 384) = v10; *(_DWORD *)(v23 + 388) = v45; v83 = 0; v84 = 0; v85 = nullptr; if ( (v25 & 1) != 0 ) { std::string::__init(&v83, v67, v66); } else { v85 = v67; v83 = v65; v84 = v66; } v26 = (__int64 *)(v23 + 392); if ( (__int64 *)(v23 + 392) != &v83 ) { if ( (v83 & 1) != 0 ) std::string::assign(v26, v85, v84); else std::string::assign(v26, (char *)&v83 + 1, (unsigned __int8)v83 >> 1); } if ( (v83 & 1) != 0 ) operator delete(v85); *(_DWORD *)(v23 + 420) = v43; *(_BYTE *)(v23 + 428) = v41; *(_DWORD *)(v23 + 424) = v17; *(_DWORD *)(v23 + 380) = v20; *(_DWORD *)(v23 + 444) = v44; v86 = 0; v87 = 0; v88 = nullptr; std::string::__init(&v86, &word_1217DE8, 2u); v27 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, &v86); v28 = cocos2d::CCString::intValue(v27); if ( (v86 & 1) != 0 ) operator delete(v88); if ( v28 == 6 ) *(_DWORD *)(v23 + 436) = 3; if ( v20 ) *(_BYTE *)(v23 + 432) = 1; if ( v17 <= 0 ) goto LABEL_54; v89 = 0; v90 = 0; v91 = nullptr; std::string::__init(&v89, &word_120A570, 2u); v29 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, &v89); v50 = (char *)cocos2d::CCString::getCString(v29); v86 = 0; v87 = 0; v88 = nullptr; v30 = strlen(v50); std::string::__init(&v86, v50, v30); if ( (v89 & 1) != 0 ) { operator delete(v91); v31 = (char *)&v86 + 1; if ( (v86 & 1) == 0 ) goto LABEL_50; goto LABEL_61; } v31 = (char *)&v86 + 1; if ( (v86 & 1) != 0 ) LABEL_61: v31 = (const char *)v88; LABEL_50: v51 = (char *)v31; v92 = 0; v93 = 0; v94 = nullptr; v32 = strlen(v31); std::string::__init(&v92, v51, v32); v33 = sub_80CFCC((unsigned __int8 *)&v92, &byte_1169BE0); if ( (v92 & 1) != 0 ) operator delete(v94); if ( (unsigned int)cocos2d::CCArray::count(v33) > 2 ) { v35 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v33, 0); v36 = cocos2d::CCString::intValue(v35); v37 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v33, 1u); v38 = cocos2d::CCString::intValue(v37); v39 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v33, 2u); v40 = cocos2d::CCString::intValue(v39); *(_BYTE *)(v23 + 429) = v36; *(_BYTE *)(v23 + 430) = v38; *(_BYTE *)(v23 + 431) = v40; if ( (v86 & 1) == 0 ) goto LABEL_54; } else if ( (v86 & 1) == 0 ) { goto LABEL_54; } operator delete(v88); LABEL_54: if ( (v65 & 1) != 0 ) operator delete(v67); if ( (v52 & 1) != 0 ) operator delete(v54); return v23; }
GD Web Decomp Icon

GD Web Decomp

Raw Source