// // GJUserMessage::create from 0x4cc600 to 0x4cc98c (908 bytes) // // 2 xrefs: // > GameLevelManager::onDownloadUserMessageCompleted @ 0x4cca48 // > GameLevelManager::onGetUserMessagesCompleted @ 0x4d27d0 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:50:41 +0000 // cocos2d::CCNode *__fastcall GJUserMessage::create(GJUserMessage *this, cocos2d::CCDictionary *a2) { cocos2d::CCString *v3; // r0 int v4; // r10 cocos2d::CCString *v5; // r0 cocos2d::CCString *v6; // r0 cocos2d::CCString *v7; // r0 const char *CString; // r8 size_t v9; // r0 cocos2d::CCString *v10; // r0 const char *v11; // r9 size_t v12; // r0 int v13; // r3 cocos2d::CCString *v14; // r0 cocos2d::CCString *v15; // r0 cocos2d::CCString *v16; // r0 size_t v17; // r0 cocos2d::CCString *v18; // r0 const char *v19; // r4 size_t v20; // r0 GJUserMessage *v21; // r0 cocos2d::CCNode *v22; // r4 int v24; // [sp+4h] [bp-D0h] int v25; // [sp+8h] [bp-CCh] char v26; // [sp+Ch] [bp-C8h] char v27; // [sp+10h] [bp-C4h] const char *v28; // [sp+14h] [bp-C0h] _DWORD v29[3]; // [sp+18h] [bp-BCh] BYREF int v30; // [sp+24h] [bp-B0h] BYREF int v31; // [sp+28h] [bp-ACh] _BYTE *v32; // [sp+2Ch] [bp-A8h] int v33[3]; // [sp+30h] [bp-A4h] BYREF int v34[3]; // [sp+3Ch] [bp-98h] BYREF int v35; // [sp+48h] [bp-8Ch] BYREF int v36; // [sp+4Ch] [bp-88h] _BYTE *v37; // [sp+50h] [bp-84h] int v38[3]; // [sp+54h] [bp-80h] BYREF int v39[3]; // [sp+60h] [bp-74h] BYREF int v40[3]; // [sp+6Ch] [bp-68h] BYREF int v41[3]; // [sp+78h] [bp-5Ch] BYREF int v42[3]; // [sp+84h] [bp-50h] BYREF int v43[3]; // [sp+90h] [bp-44h] BYREF int v44[3]; // [sp+9Ch] [bp-38h] BYREF int v45[3]; // [sp+A8h] [bp-2Ch] BYREF int v46[3]; // [sp+B4h] [bp-20h] BYREF int v47; // [sp+C0h] [bp-14h] BYREF int v48; // [sp+C4h] [bp-10h] int v49; // [sp+C8h] [bp-Ch] v47 = 0; v48 = 0; v49 = 0; std::string::__init(&v47, a1i2r3e45s789g, 1u); v3 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, &v47); v4 = cocos2d::CCString::intValue(v3); std::string::~string((int)&v47); v47 = 0; v48 = 0; v49 = 0; std::string::__init(&v47, &a1i2r3e45s789g[2], 1u); v5 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, &v47); v24 = cocos2d::CCString::intValue(v5); std::string::~string((int)&v47); v47 = 0; v48 = 0; v49 = 0; std::string::__init(&v47, &a1i2r3e45s789g[4], 1u); v6 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, &v47); v25 = cocos2d::CCString::intValue(v6); std::string::~string((int)&v47); memset(v46, 0, sizeof(v46)); std::string::__init(v46, &a1i2r3e45s789g[6], 1u); v7 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v46); CString = (const char *)cocos2d::CCString::getCString(v7); v47 = 0; v48 = 0; v49 = 0; v9 = strlen(CString); std::string::__init(&v47, CString, v9); LevelTools::base64DecodeString(v29, &v47); std::string::~string((int)&v47); std::string::~string((int)v46); memset(v33, 0, sizeof(v33)); std::string::__init(v33, &a1i2r3e45s789g[7], 1u); v10 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v33); v11 = (const char *)cocos2d::CCString::getCString(v10); v30 = 0; v31 = 0; v32 = nullptr; v12 = strlen(v11); std::string::__init(&v30, v11, v12); std::string::~string((int)v33); if ( (v30 & 1) != 0 ) v13 = v31; else v13 = (int)(unsigned __int8)v30 >> 1; if ( v13 ) { memset(v34, 0, sizeof(v34)); std::string::__init(v34, "14251", 5u); cocos2d::ZipUtils::base64DecodeEnc(&v35, &v30, v34); if ( (v30 & 1) != 0 ) { *v32 = 0; v31 = 0; } else { LOWORD(v30) = 0; } std::string::reserve(&v30, 0); v30 = v35; v31 = v36; v32 = v37; v35 = 0; v36 = 0; v37 = nullptr; std::string::~string((int)&v35); std::string::~string((int)v34); } memset(v38, 0, sizeof(v38)); std::string::__init(v38, &a1i2r3e45s789g[10], 1u); v14 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v38); v26 = cocos2d::CCString::boolValue(v14); std::string::~string((int)v38); memset(v39, 0, sizeof(v39)); std::string::__init(v39, &a1i2r3e45s789g[11], 1u); v15 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v39); v27 = cocos2d::CCString::boolValue(v15); std::string::~string((int)v39); memset(v41, 0, sizeof(v41)); std::string::__init(v41, &a1i2r3e45s789g[9], 1u); v16 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v41); v28 = (const char *)cocos2d::CCString::getCString(v16); memset(v40, 0, sizeof(v40)); v17 = strlen(v28); std::string::__init(v40, v28, v17); std::string::~string((int)v41); memset(v43, 0, sizeof(v43)); std::string::__init(v43, "6", 1u); v18 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v43); v19 = (const char *)cocos2d::CCString::getCString(v18); memset(v42, 0, sizeof(v42)); v20 = strlen(v19); std::string::__init(v42, v19, v20); v21 = (GJUserMessage *)std::string::~string((int)v43); v22 = GJUserMessage::create(v21); *((_DWORD *)v22 + 66) = v4; *((_DWORD *)v22 + 67) = v24; *((_DWORD *)v22 + 68) = v25; std::string::basic_string(v44, (int)v42); std::string::operator=((unsigned __int8 *)v22 + 300, (unsigned __int8 *)v44); std::string::~string((int)v44); std::string::basic_string(v45, (int)v29); std::string::operator=((unsigned __int8 *)v22 + 276, (unsigned __int8 *)v45); std::string::~string((int)v45); std::string::basic_string(v46, (int)&v30); std::string::operator=((unsigned __int8 *)v22 + 288, (unsigned __int8 *)v46); std::string::~string((int)v46); *((_BYTE *)v22 + 324) = v26; std::string::basic_string(&v47, (int)v40); std::string::operator=((unsigned __int8 *)v22 + 312, (unsigned __int8 *)&v47); std::string::~string((int)&v47); *((_BYTE *)v22 + 325) = v27; std::string::~string((int)v42); std::string::~string((int)v40); std::string::~string((int)&v30); std::string::~string((int)v29); return v22; }
GD Web Decomp Icon

GD Web Decomp

Raw Source