// // GameLevelManager::uploadUserMessage from 0x4ccaa4 to 0x4ccd0c (616 bytes) // // 1 xrefs: // > GJWriteMessagePopup::onSend @ 0x5d9fa4 // // 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 GameLevelManager::uploadUserMessage(GameLevelManager *a1, const char *a2, int a3, int a4) { const char *v5; // r11 const char *UploadMessageKey; // r0 int v9; // r10 const char *v10; // r8 size_t v11; // r0 int v12; // r7 cocos2d::CCNode *result; // r0 cocos2d::CCObject *v14; // r0 cocos2d::CCObject *v15; // r10 size_t v16; // r0 float v17; // r2 int v18; // r3 int v19; // r0 int v20; // r1 int v21; // r2 _BYTE *v22; // r2 bool v23; // zf int v24; // r3 int v25; // r0 int v26; // r1 int v27; // r2 int v28; // r6 int v29; // r5 cocos2d::CCString *v30; // r0 int CString; // r0 cocos2d::CCString *v32; // r0 char *v33; // r0 size_t v34; // r0 size_t v35; // r0 int v36; // [sp+14h] [bp-40h] char *v37[3]; // [sp+1Ch] [bp-38h] BYREF int v38[3]; // [sp+28h] [bp-2Ch] BYREF int v39; // [sp+34h] [bp-20h] BYREF int v40; // [sp+38h] [bp-1Ch] int v41; // [sp+3Ch] [bp-18h] int v42; // [sp+40h] [bp-14h] BYREF int v43; // [sp+44h] [bp-10h] int v44; // [sp+48h] [bp-Ch] v5 = a2; UploadMessageKey = (const char *)GameLevelManager::getUploadMessageKey(a1, a2); v42 = 0; v43 = 0; v44 = 0; v9 = *((_DWORD *)a1 + 187); v10 = UploadMessageKey; v11 = strlen(UploadMessageKey); std::string::__init(&v42, v10, v11); v12 = cocos2d::CCDictionary::objectForKey(v9, &v42); result = (cocos2d::CCNode *)std::string::~string((int)&v42); if ( !v12 ) { v36 = *((_DWORD *)a1 + 187); v14 = (cocos2d::CCObject *)cocos2d::CCNode::create(result); v42 = 0; v43 = 0; v44 = 0; v15 = v14; v16 = strlen(v10); std::string::__init(&v42, v10, v16); cocos2d::CCDictionary::setObject(v36, v15); std::string::~string((int)&v42); GameLevelManager::makeTimeStamp(a1, v10, v17, v18); std::string::basic_string(&v39, a3); LevelTools::base64EncodeString(&v42, &v39); if ( (*(_BYTE *)a3 & 1) != 0 ) { **(_BYTE **)(a3 + 8) = 0; *(_DWORD *)(a3 + 4) = 0; } else { *(_BYTE *)(a3 + 1) = 0; *(_BYTE *)a3 = 0; } std::string::reserve((int *)a3, 0); v19 = v42; v20 = v43; v21 = v44; v42 = 0; v43 = 0; v44 = 0; *(_DWORD *)a3 = v19; *(_DWORD *)(a3 + 4) = v20; *(_DWORD *)(a3 + 8) = v21; std::string::~string((int)&v42); std::string::~string((int)&v39); v39 = 0; v40 = 0; v41 = 0; std::string::__init(&v39, "14251", 5u); cocos2d::ZipUtils::base64EncodeEnc(&v42, a4, &v39); v24 = *(_BYTE *)a4 & 1; v23 = v24 == 0; if ( (*(_BYTE *)a4 & 1) != 0 ) { v22 = *(_BYTE **)(a4 + 8); v24 = 0; } else { *(_BYTE *)(a4 + 1) = v24; *(_BYTE *)a4 = v24; } if ( !v23 ) { *v22 = v24; *(_DWORD *)(a4 + 4) = v24; } std::string::reserve((int *)a4, 0); v25 = v42; v26 = v43; v27 = v44; v42 = 0; v43 = 0; v44 = 0; *(_DWORD *)a4 = v25; *(_DWORD *)(a4 + 4) = v26; *(_DWORD *)(a4 + 8) = v27; std::string::~string((int)&v42); std::string::~string((int)&v39); GameLevelManager::getBasePostString((GameLevelManager *)v37); if ( (*(_BYTE *)a3 & 1) != 0 ) v28 = *(_DWORD *)(a3 + 8); else v28 = a3 + 1; if ( (*(_BYTE *)a4 & 1) != 0 ) v29 = *(_DWORD *)(a4 + 8); else v29 = a4 + 1; v30 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%c%s%s%c%c%s", (const char *)&dword_54 + 3, "mfd", "2893", 103, 98, &a1i2r3e45s789g[9]); CString = cocos2d::CCString::getCString(v30); v32 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"&toAccountID=%i&subject=%s&body=%s&secret=%s", v5, v28, v29, CString); v33 = (char *)cocos2d::CCString::getCString(v32); std::string::append(v37, v33); memset(v38, 0, sizeof(v38)); std::string::__init(v38, "https://www.boomlings.com/database/uploadGJMessage20.php", 0x38u); v39 = 0; v40 = 0; if ( ((int)v37[0] & 1) == 0 ) v5 = (char *)v37 + 1; v41 = 0; if ( ((int)v37[0] & 1) != 0 ) v5 = v37[2]; v34 = strlen(v5); std::string::__init(&v39, v5, v34); v42 = 0; v43 = 0; v44 = 0; v35 = strlen(v10); std::string::__init(&v42, v10, v35); GameLevelManager::ProcessHttpRequest(a1, v38, (int)&v39, (int)&v42, 46); std::string::~string((int)&v42); std::string::~string((int)&v39); std::string::~string((int)v38); return (cocos2d::CCNode *)std::string::~string((int)v37); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source