// // GJUserMessage::create from 0x83eb38 to 0x83f3ac (2164 bytes) // // 3 xrefs: // > GameLevelManager::onDownloadUserMessageCompleted @ 0x83f488 // > GameLevelManager::onGetUserMessagesCompleted @ 0x84a708 // > @ 0x91b28 // // 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:55:16 +0000 // __int64 __fastcall GJUserMessage::create(GJUserMessage *this, cocos2d::CCDictionary *a2) { cocos2d::CCString *v3; // x0 int v4; // w28 cocos2d::CCString *v5; // x0 cocos2d::CCString *v6; // x0 cocos2d::CCString *v7; // x0 size_t v8; // x0 cocos2d::CCString *v9; // x0 const char *v10; // x0 size_t v11; // x0 size_t v12; // x1 cocos2d::CCString *v13; // x0 cocos2d::CCString *v14; // x0 cocos2d::CCString *v15; // x0 size_t v16; // x0 cocos2d::CCString *v17; // x0 size_t v18; // x0 GJUserMessage *v19; // x0 __int64 v20; // x24 char v21; // w0 __int64 *v22; // x0 __int64 *v23; // x0 __int64 *v24; // x0 __int64 *v25; // x0 char v26; // w0 char *v28; // [xsp+60h] [xbp+60h] char *v29; // [xsp+60h] [xbp+60h] char v30; // [xsp+6Fh] [xbp+6Fh] char *CString; // [xsp+70h] [xbp+70h] char *v32; // [xsp+70h] [xbp+70h] char v33; // [xsp+70h] [xbp+70h] int v34; // [xsp+78h] [xbp+78h] int v35; // [xsp+7Ch] [xbp+7Ch] __int64 v36; // [xsp+80h] [xbp+80h] BYREF size_t v37; // [xsp+88h] [xbp+88h] void *v38; // [xsp+90h] [xbp+90h] __int64 v39; // [xsp+98h] [xbp+98h] BYREF size_t v40; // [xsp+A0h] [xbp+A0h] _BYTE *v41; // [xsp+A8h] [xbp+A8h] __int64 v42[2]; // [xsp+B0h] [xbp+B0h] BYREF void *v43; // [xsp+C0h] [xbp+C0h] __int64 v44[2]; // [xsp+C8h] [xbp+C8h] BYREF void *v45; // [xsp+D8h] [xbp+D8h] _QWORD v46[3]; // [xsp+E0h] [xbp+E0h] BYREF __int64 v47[2]; // [xsp+F8h] [xbp+F8h] BYREF void *v48; // [xsp+108h] [xbp+108h] __int64 v49[2]; // [xsp+110h] [xbp+110h] BYREF void *v50; // [xsp+120h] [xbp+120h] __int64 v51; // [xsp+128h] [xbp+128h] BYREF size_t v52; // [xsp+130h] [xbp+130h] void *v53; // [xsp+138h] [xbp+138h] __int64 v54[2]; // [xsp+140h] [xbp+140h] BYREF void *v55; // [xsp+150h] [xbp+150h] __int64 v56; // [xsp+158h] [xbp+158h] BYREF size_t v57; // [xsp+160h] [xbp+160h] void *v58; // [xsp+168h] [xbp+168h] GJUserMessage *v59[2]; // [xsp+170h] [xbp+170h] BYREF void *v60; // [xsp+180h] [xbp+180h] __int64 v61; // [xsp+188h] [xbp+188h] BYREF size_t v62; // [xsp+190h] [xbp+190h] void *v63; // [xsp+198h] [xbp+198h] __int64 v64; // [xsp+1A0h] [xbp+1A0h] BYREF size_t v65; // [xsp+1A8h] [xbp+1A8h] void *v66; // [xsp+1B0h] [xbp+1B0h] __int64 v67; // [xsp+1B8h] [xbp+1B8h] BYREF size_t v68; // [xsp+1C0h] [xbp+1C0h] void *v69; // [xsp+1C8h] [xbp+1C8h] __int64 v70; // [xsp+1D0h] [xbp+1D0h] BYREF size_t v71; // [xsp+1D8h] [xbp+1D8h] void *v72; // [xsp+1E0h] [xbp+1E0h] v70 = 0; v71 = 0; v72 = nullptr; std::string::__init(&v70, "1", 1u); v3 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, &v70); v4 = cocos2d::CCString::intValue(v3); if ( (v70 & 1) != 0 ) operator delete(v72); v70 = 0; v71 = 0; v72 = nullptr; std::string::__init(&v70, &byte_120A098, 1u); v5 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, &v70); v35 = cocos2d::CCString::intValue(v5); if ( (v70 & 1) != 0 ) operator delete(v72); v70 = 0; v71 = 0; v72 = nullptr; std::string::__init(&v70, "3", 1u); v6 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, &v70); v34 = cocos2d::CCString::intValue(v6); if ( (v70 & 1) != 0 ) operator delete(v72); v67 = 0; v68 = 0; v69 = nullptr; std::string::__init(&v67, &byte_11BCA00, 1u); v7 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, &v67); CString = (char *)cocos2d::CCString::getCString(v7); v70 = 0; v71 = 0; v72 = nullptr; v8 = strlen(CString); std::string::__init(&v70, CString, v8); LevelTools::base64DecodeString((__int64)&v70, &v36); if ( (v70 & 1) != 0 ) operator delete(v72); if ( (v67 & 1) != 0 ) operator delete(v69); v42[0] = 0; v42[1] = 0; v43 = nullptr; std::string::__init(v42, "5", 1u); v9 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v42); v10 = (const char *)cocos2d::CCString::getCString(v9); v39 = 0; v40 = 0; v41 = nullptr; v32 = (char *)v10; v11 = strlen(v10); std::string::__init(&v39, v32, v11); if ( (v42[0] & 1) != 0 ) operator delete(v43); v12 = (unsigned __int8)v39 >> 1; if ( (v39 & 1) != 0 ) v12 = v40; if ( v12 ) { v44[0] = 0; v44[1] = 0; v45 = nullptr; std::string::__init(v44, "14251", 5u); cocos2d::ZipUtils::base64DecodeEnc(v46, &v39, v44); if ( (v39 & 1) != 0 ) { *v41 = 0; v40 = 0; } else { LOWORD(v39) = 0; } std::string::reserve(&v39, 0); v41 = (_BYTE *)v46[2]; v39 = v46[0]; v40 = v46[1]; if ( (v44[0] & 1) != 0 ) operator delete(v45); } v47[0] = 0; v47[1] = 0; v48 = nullptr; std::string::__init(v47, "8", 1u); v13 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v47); v33 = cocos2d::CCString::boolValue(v13); if ( (v47[0] & 1) != 0 ) operator delete(v48); v49[0] = 0; v49[1] = 0; v50 = nullptr; std::string::__init(v49, "9", 1u); v14 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v49); v30 = cocos2d::CCString::boolValue(v14); if ( (v49[0] & 1) != 0 ) operator delete(v50); v54[0] = 0; v54[1] = 0; v55 = nullptr; std::string::__init(v54, "7", 1u); v15 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v54); v28 = (char *)cocos2d::CCString::getCString(v15); v51 = 0; v52 = 0; v53 = nullptr; v16 = strlen(v28); std::string::__init(&v51, v28, v16); if ( (v54[0] & 1) != 0 ) operator delete(v55); v59[0] = nullptr; v59[1] = nullptr; v60 = nullptr; std::string::__init((__int64 *)v59, "6", 1u); v17 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v59); v29 = (char *)cocos2d::CCString::getCString(v17); v56 = 0; v57 = 0; v58 = nullptr; v18 = strlen(v29); std::string::__init(&v56, v29, v18); v19 = (GJUserMessage *)LOBYTE(v59[0]); if ( ((__int64)v59[0] & 1) != 0 ) operator delete(v60); v20 = GJUserMessage::create(v19); v21 = v56; v61 = 0; *(_DWORD *)(v20 + 320) = v35; *(_DWORD *)(v20 + 316) = v4; *(_DWORD *)(v20 + 324) = v34; v62 = 0; v63 = nullptr; if ( (v21 & 1) != 0 ) { std::string::__init(&v61, v58, v57); } else { v63 = v58; v61 = v56; v62 = v57; } v22 = (__int64 *)(v20 + 376); if ( (__int64 *)(v20 + 376) != &v61 ) { if ( (v61 & 1) != 0 ) std::string::assign(v22, v63, v62); else std::string::assign(v22, (char *)&v61 + 1, (unsigned __int8)v61 >> 1); } if ( (v61 & 1) != 0 ) operator delete(v63); v64 = 0; v65 = 0; v66 = nullptr; if ( (v36 & 1) != 0 ) { std::string::__init(&v64, v38, v37); } else { v66 = v38; v64 = v36; v65 = v37; } v23 = (__int64 *)(v20 + 328); if ( (__int64 *)(v20 + 328) != &v64 ) { if ( (v64 & 1) != 0 ) std::string::assign(v23, v66, v65); else std::string::assign(v23, (char *)&v64 + 1, (unsigned __int8)v64 >> 1); } if ( (v64 & 1) != 0 ) operator delete(v66); v67 = 0; v68 = 0; v69 = nullptr; if ( (v39 & 1) != 0 ) { std::string::__init(&v67, v41, v40); } else { v69 = v41; v67 = v39; v68 = v40; } v24 = (__int64 *)(v20 + 352); if ( (__int64 *)(v20 + 352) != &v67 ) { if ( (v67 & 1) != 0 ) std::string::assign(v24, v69, v68); else std::string::assign(v24, (char *)&v67 + 1, (unsigned __int8)v67 >> 1); } if ( (v67 & 1) != 0 ) operator delete(v69); *(_BYTE *)(v20 + 424) = v33; v70 = 0; v71 = 0; v72 = nullptr; if ( (v51 & 1) != 0 ) { std::string::__init(&v70, v53, v52); } else { v72 = v53; v70 = v51; v71 = v52; } v25 = (__int64 *)(v20 + 400); if ( (__int64 *)(v20 + 400) != &v70 ) { if ( (v70 & 1) != 0 ) std::string::assign(v25, v72, v71); else std::string::assign(v25, (char *)&v70 + 1, (unsigned __int8)v70 >> 1); } if ( (v70 & 1) != 0 ) operator delete(v72); v26 = v56; *(_BYTE *)(v20 + 425) = v30; if ( (v26 & 1) != 0 ) operator delete(v58); if ( (v51 & 1) != 0 ) operator delete(v53); if ( (v39 & 1) != 0 ) operator delete(v41); if ( (v36 & 1) != 0 ) operator delete(v38); return v20; }
GD Web Decomp Icon

GD Web Decomp

Raw Source