// // GameLevelManager::likeItem from 0x4c03b8 to 0x4c06d4 (796 bytes) // // 1 xrefs: // > LikeItemLayer::triggerLike @ 0x545392 // // 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:23 +0000 // int __fastcall GameLevelManager::likeItem(GameManager *a1, const char *a2, const char *a3, int a4, const char *a5) { GameManager *v9; // r0 int result; // r0 const char *LikeItemKey; // r9 cocos2d::CCString *v12; // r0 int CString; // r0 cocos2d::CCString *v14; // r0 char *v15; // r0 int v16; // r2 int v17; // r3 char *v18; // r1 GJAccountManager *v19; // r0 char *v20; // r11 GameManager *v21; // r0 int v22; // r0 int *v23; // r0 char *v24; // r10 int v25; // r0 cocos2d::CCString *v26; // r0 int v27; // r0 cocos2d::CCString *v28; // r0 const char *v29; // r4 size_t v30; // r0 char *v31; // r4 const void *v32; // r0 unsigned __int8 *v33; // r3 char *v34; // r2 size_t v35; // r0 char *v36; // r1 size_t v37; // r2 const char *v38; // r1 size_t v39; // r0 size_t v40; // r0 int v41; // [sp+1Ch] [bp-D0h] const char *v42; // [sp+1Ch] [bp-D0h] int v43; // [sp+20h] [bp-CCh] char *v44[3]; // [sp+2Ch] [bp-C0h] BYREF int v45[2]; // [sp+38h] [bp-B4h] BYREF char *v46; // [sp+40h] [bp-ACh] int v47[2]; // [sp+44h] [bp-A8h] BYREF char *v48; // [sp+4Ch] [bp-A0h] int v49[3]; // [sp+50h] [bp-9Ch] BYREF unsigned __int8 v50; // [sp+5Ch] [bp-90h] BYREF char v51; // [sp+5Dh] [bp-8Fh] BYREF size_t v52; // [sp+60h] [bp-8Ch] char *v53; // [sp+64h] [bp-88h] int v54[3]; // [sp+68h] [bp-84h] BYREF int v55[3]; // [sp+74h] [bp-78h] BYREF int v56[3]; // [sp+80h] [bp-6Ch] BYREF int v57[3]; // [sp+8Ch] [bp-60h] BYREF int v58[3]; // [sp+98h] [bp-54h] BYREF unsigned __int8 v59[20]; // [sp+A4h] [bp-48h] BYREF unsigned __int8 v60[44]; // [sp+B8h] [bp-34h] BYREF if ( a2 == (_BYTE *)&dword_0 + 1 ) { v9 = (GameManager *)GameManager::sharedState(a1); GameManager::reportAchievementWithID(v9, "geometry.ach.like", (const char *)&dword_64, 0); } result = GameLevelManager::hasLikedItemFullCheck((int)a1, a2); if ( !result ) { GameLevelManager::markItemAsLiked((int)a1, a2); LikeItemKey = (const char *)GameLevelManager::getLikeItemKey((int)a1, a2); GameLevelManager::getBasePostString((GameLevelManager *)v44); v12 = (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(v12); v14 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"&itemID=%i&like=%i&type=%i&secret=%s&special=%i", a3, a4, a2, CString, a5); v15 = (char *)cocos2d::CCString::getCString(v14); std::string::append(v44, v15); gen_random(v45, 10, v16, v17); std::string::append(v44, "&rs="); if ( (v45[0] & 1) != 0 ) v18 = v46; else v18 = (char *)v45 + 1; v19 = (GJAccountManager *)std::string::append(v44, v18); if ( (v45[0] & 1) != 0 ) v20 = v46; else v20 = (char *)v45 + 1; v21 = (GameManager *)GJAccountManager::sharedState(v19); v41 = *((_DWORD *)v21 + 70) - *((_DWORD *)v21 + 71); v22 = GameManager::sharedState(v21); v23 = std::string::basic_string(v49, v22 + 436); if ( (v49[0] & 1) != 0 ) v24 = (char *)v49[2]; else v24 = (char *)v49 + 1; v25 = GameManager::sharedState((GameManager *)v23); v43 = *(_DWORD *)(v25 + 464) - *(_DWORD *)(v25 + 468); v26 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%c%s%s%c%c%s", (const char *)&dword_78 + 1, "sg6", "pUrt", 106, 110, "0J"); v27 = cocos2d::CCString::getCString(v26); v28 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i%i%i%i%s%i%s%i%s", a5, a3, a4, a2, v20, v41, v24, v43, v27); v29 = (const char *)cocos2d::CCString::getCString(v28); v47[0] = 0; v47[1] = 0; v48 = nullptr; v30 = strlen(v29); std::string::__init(v47, v29, v30); std::string::~string((int)v49); if ( (v47[0] & 1) != 0 ) v31 = v48; else v31 = (char *)v47 + 1; v32 = (const void *)strlen(v31); rtsha1::calc((rtsha1 *)v31, v32, (int)v59, v33); rtsha1::toHexString((rtsha1 *)v59, v60, v34); memset(v54, 0, sizeof(v54)); v35 = strlen((const char *)v60); std::string::__init(v54, v60, v35); memset(v55, 0, sizeof(v55)); std::string::__init(v55, "58281", 5u); cocos2d::ZipUtils::base64EncodeEnc(&v50, v54, v55); std::string::~string((int)v55); std::string::~string((int)v54); std::string::append(v44, "&chk="); if ( (v50 & 1) != 0 ) { v36 = v53; v37 = v52; } else { v37 = (int)v50 >> 1; v36 = &v51; } std::string::append(v44, v36, v37); memset(v56, 0, sizeof(v56)); std::string::__init(v56, "https://www.boomlings.com/database/likeGJItem211.php", 0x34u); v57[0] = 0; v57[1] = 0; if ( ((int)v44[0] & 1) == 0 ) v38 = (char *)v44 + 1; v57[2] = 0; if ( ((int)v44[0] & 1) != 0 ) v38 = v44[2]; v42 = v38; v39 = strlen(v38); std::string::__init(v57, v42, v39); memset(v58, 0, sizeof(v58)); v40 = strlen(LikeItemKey); std::string::__init(v58, LikeItemKey, v40); GameLevelManager::ProcessHttpRequest(a1, v56, (int)v57, (int)v58, 16); std::string::~string((int)v58); std::string::~string((int)v57); std::string::~string((int)v56); std::string::~string((int)&v50); std::string::~string((int)v47); std::string::~string((int)v45); return std::string::~string((int)v44); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source