// // GameLevelManager::likeItem from 0x3d3780 to 0x3d3a0a (650 bytes) // // 1 xrefs: // > LikeItemLayer::triggerLike @ 0x433b76 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void GameLevelManager::likeItem(GameLevelManager *a1, LikeItemType a2, int a3, bool a4, int a5) { _BOOL4 v5; // r7 GameManager *v9; // r0 cocos2d::CCString *v10; // r0 const char *CString; // r0 cocos2d::CCString *v12; // r0 char *v13; // r0 GJAccountManager *v14; // r0 int v15; // r8 int v16; // r9 GameManager *v17; // r0 int v18; // r11 cocos2d::CCString *v19; // r0 const char *v20; // r0 cocos2d::CCString *v21; // r0 char *v22; // r0 const void *v23; // r0 unsigned __int8 *v24; // r3 char *v25; // r2 int v26; // [sp+0h] [bp-9Ch] char *v27; // [sp+18h] [bp-84h] char *LikeItemKey; // [sp+20h] [bp-7Ch] char *v29; // [sp+2Ch] [bp-70h] BYREF char *v30; // [sp+30h] [bp-6Ch] BYREF char *v31; // [sp+34h] [bp-68h] BYREF int v32; // [sp+38h] [bp-64h] BYREF cocos2d::ZipUtils v33; // [sp+3Ch] [bp-60h] BYREF std::string v34; // [sp+40h] [bp-5Ch] BYREF _BYTE v35[4]; // [sp+44h] [bp-58h] BYREF char *v36; // [sp+48h] [bp-54h] BYREF const char *v37; // [sp+4Ch] [bp-50h] BYREF char *v38; // [sp+50h] [bp-4Ch] BYREF unsigned __int8 v39[20]; // [sp+54h] [bp-48h] BYREF unsigned __int8 v40[44]; // [sp+68h] [bp-34h] BYREF v5 = a4; if ( a2 == 1 ) { v9 = GameManager::sharedState(); GameManager::reportAchievementWithID(v9, "geometry.ach.like", 100, 0); } if ( !GameLevelManager::hasLikedItemFullCheck(a1, a2, a3, a5, v26) ) { GameLevelManager::markItemAsLiked(a1, a2, a3, v5, a5); LikeItemKey = (char *)GameLevelManager::getLikeItemKey(a1, a2, a3, v5, a5); GameLevelManager::getBasePostString((GameLevelManager *)&v29); v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%c%s%s%c%c%s", (const char *)&dword_54 + 3, "mfd", "2893", 103, 98, &aO1i2r3e45s7t89[10]); CString = cocos2d::CCString::getCString(v10); v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"&itemID=%i&like=%i&type=%i&secret=%s&special=%i", (const char *)a3, v5, a2, CString, a5); v13 = (char *)cocos2d::CCString::getCString(v12); sub_774544((int)&v29, v13); gen_random((int)&v30, 10); sub_774544((int)&v29, "&rs="); sub_774544((int)&v29, v30); v27 = v30; v14 = GJAccountManager::sharedState(); v15 = v14->m_accountID - v14->m_unkInt1; GameManager::sharedState(); sub_775C20(&v32); v16 = v32; v17 = GameManager::sharedState(); v18 = v17->m_playerUserID.random - v17->m_playerUserID.seed; v19 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%c%s%s%c%c%s", (const char *)&dword_78 + 1, "sg6", "pUrt", 106, 110, "0J"); v20 = cocos2d::CCString::getCString(v19); v21 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i%i%i%i%s%i%s%i%s", (const char *)a5, a3, v5, a2, v27, v15, v16, v18, v20); v22 = (char *)cocos2d::CCString::getCString(v21); sub_776584((int)&v31, v22); sub_774008(&v32); v23 = (const void *)strlen(v31); rtsha1::calc((rtsha1 *)v31, v23, (int)v39, v24); rtsha1::toHexString((rtsha1 *)v39, v40, v25); sub_776584((int)&v34, (char *)v40); sub_776584((int)v35, "58281"); cocos2d::ZipUtils::base64EncodeEnc(&v33, &v34, (std::string)v35); sub_774008(v35); sub_774008(&v34); sub_774544((int)&v29, "&chk="); sub_77441C(&v29, &v33); sub_776584((int)&v36, "https://www.boomlings.com/database/likeGJItem211.php"); sub_776584((int)&v37, v29); sub_776584((int)&v38, LikeItemKey); GameLevelManager::ProcessHttpRequest(a1, &v36, &v37, &v38, 15); sub_774008(&v38); sub_774008(&v37); sub_774008(&v36); sub_774008(&v33); sub_774008(&v31); sub_774008(&v30); sub_774008(&v29); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source