// // GameLevelManager::likeItem from 0x728ab8 to 0x7292fc (2116 bytes) // // 2 xrefs: // > LikeItemLayer::triggerLike @ 0x7eac58 // > @ 0x3c270 // // 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 v8; // w24 cocos2d::CCString *v10; // x0 const char *CString; // x0 cocos2d::CCString *v12; // x0 size_t v13; // x0 size_t v14; // x0 char *v15; // x28 GJAccountManager *v16; // x0 unsigned int v17; // w26 GameManager *v18; // x0 int v19; // w27 cocos2d::CCString *v20; // x0 const char *v21; // x0 cocos2d::CCString *v22; // x0 char *v23; // x0 int *p_m_leaderboardLevelPoints; // x0 char *v25; // x23 unsigned int v26; // w0 unsigned __int8 *v27; // x3 char *v28; // x2 char *v29; // x0 void *v30; // x0 int *p_m_unknown2; // x0 char *v32; // x0 char *v33; // x0 void *v34; // x0 char *v35; // x0 char *v36; // x0 char *v37; // x25 unsigned int *v38; // x21 int v39; // w0 GameManager *v40; // x0 unsigned int *v41; // x1 int v42; // w2 unsigned int *v43; // x1 int v44; // w2 unsigned int *v45; // x1 int v46; // w2 unsigned int *p_m_practiceOpacity; // x1 int m_practiceOpacity_low; // w2 unsigned int *v49; // x1 int v50; // w2 unsigned int *p_timeoutForConnect; // x1 int timeoutForConnect; // w2 unsigned int *v53; // x1 int v54; // w2 unsigned int *v55; // x1 int v56; // w2 unsigned int *v57; // x1 int v58; // w2 GameManager *v59; // [xsp+78h] [xbp+68h] char *LikeItemKey; // [xsp+80h] [xbp+70h] const char *v61; // [xsp+88h] [xbp+78h] char *v62; // [xsp+88h] [xbp+78h] char *v63; // [xsp+A0h] [xbp+90h] BYREF char *v64; // [xsp+A8h] [xbp+98h] BYREF char *v65; // [xsp+B0h] [xbp+A0h] BYREF GameManager *v66; // [xsp+B8h] [xbp+A8h] BYREF __int64 v67; // [xsp+C0h] [xbp+B0h] BYREF __int64 v68; // [xsp+C8h] [xbp+B8h] BYREF std::string v69; // [xsp+D0h] [xbp+C0h] BYREF const char *v70; // [xsp+D8h] [xbp+C8h] BYREF const char *v71; // [xsp+E0h] [xbp+D0h] BYREF cocos2d::extension::CCHttpClient *v72; // [xsp+E8h] [xbp+D8h] BYREF unsigned __int8 v73[24]; // [xsp+F0h] [xbp+E0h] BYREF unsigned __int8 v74[48]; // [xsp+108h] [xbp+F8h] BYREF std::string v75; // 0:x2.8 v8 = a4; if ( a2 == 1 ) { v40 = GameManager::sharedState(); GameManager::reportAchievementWithID(v40, "geometry.ach.like", 100, 0); } if ( !GameLevelManager::hasLikedItemFullCheck(a1, a2, a3, a5, a5) ) { GameLevelManager::markItemAsLiked(a1, a2, a3, v8, a5); LikeItemKey = (char *)GameLevelManager::getLikeItemKey(a1, a2, a3, v8, a5); GameLevelManager::getBasePostString(a1, (__int64)&v63); v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%c%s%s%c%c%s", (const char *)off_50 + 7, "mfd", "2893", 103, 98, "7"); 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 *)(unsigned int)a3, v8, (unsigned int)a2, CString, (unsigned int)a5); v61 = cocos2d::CCString::getCString(v12); v13 = strlen(v61); sub_D15FD4(&v63, v61, v13); gen_random(10, (__int64)&v64); sub_D15FD4(&v63, "&rs=", 4); v62 = v64; v14 = strlen(v64); sub_D15FD4(&v63, v62, v14); v15 = v64; v16 = GJAccountManager::sharedState(); v17 = v16->m_accountID - v16->m_unkInt1; GameManager::sharedState(); sub_D18D28(&v66); v59 = v66; v18 = GameManager::sharedState(); v19 = v18->m_playerUserID.random - v18->m_playerUserID.seed; v20 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%c%s%s%c%c%s", (const char *)&dword_78 + 1, "sg6", "pUrt", 106, 110, "0J"); v21 = cocos2d::CCString::getCString(v20); v22 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i%i%i%i%s%i%s%i%s", (const char *)(unsigned int)a5, (unsigned int)a3, v8, (unsigned int)a2, v15, v17, v59, v19, v21); v23 = (char *)cocos2d::CCString::getCString(v22); sub_D153B8((int)&v65, v23); p_m_leaderboardLevelPoints = &v66[-1].m_leaderboardLevelPoints; if ( &v66[-1].m_leaderboardLevelPoints != (int *)&qword_124B6B0 ) { if ( &pthread_create ) { p_m_practiceOpacity = (unsigned int *)&v66[-1].m_practiceOpacity; do m_practiceOpacity_low = __ldaxr(p_m_practiceOpacity); while ( __stlxr(m_practiceOpacity_low - 1, p_m_practiceOpacity) ); } else { m_practiceOpacity_low = LODWORD(v66[-1].m_practiceOpacity); LODWORD(v66[-1].m_practiceOpacity) = m_practiceOpacity_low - 1; } if ( m_practiceOpacity_low <= 0 ) operator delete(p_m_leaderboardLevelPoints); } v25 = v65; v26 = strlen(v65); rtsha1::calc((rtsha1 *)v25, (const void *)v26, (__int64)v73, v27); rtsha1::toHexString((rtsha1 *)v73, v74, v28); sub_D153B8((int)&v68, (char *)v74); sub_D153B8((int)&v69, "58281"); cocos2d::ZipUtils::base64EncodeEnc((cocos2d::ZipUtils *)&v68, &v69, v75); v29 = (char *)v69.m_data.m_data - 24; if ( (__int64 *)v69.m_data.m_data - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v41 = (unsigned int *)((char *)v69.m_data.m_data - 8); do v42 = __ldaxr(v41); while ( __stlxr(v42 - 1, v41) ); } else { v42 = *((_DWORD *)v69.m_data.m_data - 2); *((_DWORD *)v69.m_data.m_data - 2) = v42 - 1; } if ( v42 <= 0 ) operator delete(v29); } v30 = (void *)(v68 - 24); if ( (__int64 *)(v68 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v43 = (unsigned int *)(v68 - 8); do v44 = __ldaxr(v43); while ( __stlxr(v44 - 1, v43) ); } else { v44 = *(_DWORD *)(v68 - 8); *(_DWORD *)(v68 - 8) = v44 - 1; } if ( v44 <= 0 ) operator delete(v30); } sub_D15FD4(&v63, "&chk=", 5); sub_D15E14(&v63, &v67); sub_D153B8((int)&v70, "https://www.boomlings.com/database/likeGJItem211.php"); sub_D153B8((int)&v71, v63); sub_D153B8((int)&v72, LikeItemKey); GameLevelManager::ProcessHttpRequest(a1, &v70, &v71, &v72, 15); p_m_unknown2 = &v72[-1].m_unknown2; if ( &v72[-1].m_unknown2 != (int *)&qword_124B6B0 ) { if ( &pthread_create ) { p_timeoutForConnect = (unsigned int *)&v72[-1]._timeoutForConnect; do timeoutForConnect = __ldaxr(p_timeoutForConnect); while ( __stlxr(timeoutForConnect - 1, p_timeoutForConnect) ); } else { timeoutForConnect = v72[-1]._timeoutForConnect; v72[-1]._timeoutForConnect = timeoutForConnect - 1; } if ( timeoutForConnect <= 0 ) operator delete(p_m_unknown2); } v32 = (char *)(v71 - 24); if ( v71 - 24 != (const char *)&qword_124B6B0 ) { if ( &pthread_create ) { v45 = (unsigned int *)(v71 - 8); do v46 = __ldaxr(v45); while ( __stlxr(v46 - 1, v45) ); } else { v46 = *((_DWORD *)v71 - 2); *((_DWORD *)v71 - 2) = v46 - 1; } if ( v46 <= 0 ) operator delete(v32); } v33 = (char *)(v70 - 24); if ( v70 - 24 != (const char *)&qword_124B6B0 ) { if ( &pthread_create ) { v53 = (unsigned int *)(v70 - 8); do v54 = __ldaxr(v53); while ( __stlxr(v54 - 1, v53) ); } else { v54 = *((_DWORD *)v70 - 2); *((_DWORD *)v70 - 2) = v54 - 1; } if ( v54 <= 0 ) operator delete(v33); } v34 = (void *)(v67 - 24); if ( (__int64 *)(v67 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v49 = (unsigned int *)(v67 - 8); do v50 = __ldaxr(v49); while ( __stlxr(v50 - 1, v49) ); } else { v50 = *(_DWORD *)(v67 - 8); *(_DWORD *)(v67 - 8) = v50 - 1; } if ( v50 <= 0 ) operator delete(v34); } v35 = v65 - 24; if ( v65 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v57 = (unsigned int *)(v65 - 8); do v58 = __ldaxr(v57); while ( __stlxr(v58 - 1, v57) ); } else { v58 = *((_DWORD *)v65 - 2); *((_DWORD *)v65 - 2) = v58 - 1; } if ( v58 <= 0 ) operator delete(v35); } v36 = v64 - 24; if ( v64 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v55 = (unsigned int *)(v64 - 8); do v56 = __ldaxr(v55); while ( __stlxr(v56 - 1, v55) ); } else { v56 = *((_DWORD *)v64 - 2); *((_DWORD *)v64 - 2) = v56 - 1; } if ( v56 <= 0 ) operator delete(v36); } v37 = v63 - 24; if ( v63 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v38 = (unsigned int *)(v63 - 8); do v39 = __ldaxr(v38); while ( __stlxr(v39 - 1, v38) ); } else { v39 = *((_DWORD *)v63 - 2); *((_DWORD *)v63 - 2) = v39 - 1; } if ( v39 <= 0 ) operator delete(v37); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source