// // GameLevelManager::likeItem from 0x14025a9b0 to 0x14025b20c (2140 bytes) // // 3 xrefs: // > LikeItemLayer::triggerLike @ 0x140468e69 // > @ 0x14091c6e8 // > @ 0x14091c6f4 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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:28:45 +0000 // // Hidden C++ exception states: #wind=15 void __fastcall GameLevelManager::likeItem( __int64 a1, unsigned int a2, unsigned int a3, unsigned __int8 a4, unsigned int a5) { unsigned __int8 v5; // bl __int64 v9; // rdi __int64 v10; // rbx cocos2d::CCString *v11; // rax int v12; // ebx void *v13; // r8 __int64 v14; // rax __int64 v15; // rdx cocos2d::CCString *v16; // rax char *CString; // rax size_t v18; // r15 size_t v19; // r8 void *v20; // rcx cocos2d::CCString *v21; // rax const char *v22; // r12 __int64 v23; // rcx cocos2d::CCString *v24; // rax const char *v25; // rax cocos2d::CCString *v26; // rax char *v27; // rax size_t v28; // r8 void **v29; // rdx size_t v30; // r8 __int64 v31; // rdx __int64 v32; // rcx __int64 v33; // rax int v34; // r14d const char *v35; // rsi __int64 v36; // rax int v37; // edi void **v38; // rbx cocos2d::CCString *v39; // rax const char *v40; // rax cocos2d::CCString *v41; // rax const char *v42; // rax size_t v43; // r8 void **v44; // r8 void **v45; // r9 __int64 v46; // rdx size_t v47; // r8 void *v48; // rcx void **v49; // rdx size_t v50; // r8 _QWORD *v51; // rdx void *v52; // rcx uintptr_t Reserveda; // [rsp+20h] [rbp-E0h] uintptr_t Reserved; // [rsp+20h] [rbp-E0h] __int64 v55; // [rsp+28h] [rbp-D8h] void *v57; // [rsp+58h] [rbp-A8h] void *v58; // [rsp+58h] [rbp-A8h] void *v59; // [rsp+58h] [rbp-A8h] __int128 v62; // [rsp+78h] [rbp-88h] BYREF __int64 v63; // [rsp+88h] [rbp-78h] __int64 v64; // [rsp+90h] [rbp-70h] __int128 v65; // [rsp+98h] [rbp-68h] BYREF __int64 v66; // [rsp+A8h] [rbp-58h] __int64 v67; // [rsp+B0h] [rbp-50h] void *Block[2]; // [rsp+B8h] [rbp-48h] BYREF __int64 v69; // [rsp+C8h] [rbp-38h] unsigned __int64 v70; // [rsp+D0h] [rbp-30h] __int128 v71; // [rsp+D8h] [rbp-28h] BYREF __int64 v72; // [rsp+E8h] [rbp-18h] unsigned __int64 v73; // [rsp+F0h] [rbp-10h] void *v74[2]; // [rsp+F8h] [rbp-8h] BYREF __int64 v75; // [rsp+108h] [rbp+8h] unsigned __int64 v76; // [rsp+110h] [rbp+10h] _QWORD Src[4]; // [rsp+118h] [rbp+18h] BYREF void *v78[3]; // [rsp+138h] [rbp+38h] BYREF unsigned __int64 v79; // [rsp+150h] [rbp+50h] void *v80[4]; // [rsp+158h] [rbp+58h] BYREF __int128 v81; // [rsp+178h] [rbp+78h] BYREF __int64 v82; // [rsp+188h] [rbp+88h] __int64 v83; // [rsp+190h] [rbp+90h] v5 = a4; if ( a2 == 1 ) { v9 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v57 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v57); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v9 = qword_14090BFD0; } v10 = AchievementManager::sharedState(); *(_OWORD *)Block = 0; Block[0] = sub_14003D460(0x20u); v69 = 17; v70 = 31; strcpy((char *)Block[0], "geometry.ach.like"); v11 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v10 + 352), Block); v12 = cocos2d::CCString::intValue(v11); if ( v70 > 0xF ) { v13 = Block[0]; if ( v70 + 1 >= 0x1000 ) { v13 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v13 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v13); } if ( v12 < 100 ) { *(_OWORD *)Block = 0; v69 = 0; v70 = 0; Block[0] = sub_14003D460(0x20u); v69 = 17; v70 = 31; strcpy((char *)Block[0], "geometry.ach.like"); GameManager::completedAchievement(v9, Block); v14 = AchievementManager::sharedState(); AchievementManager::reportAchievementWithID(v14, (__int64)"geometry.ach.like", 100); } v5 = a4; } if ( !(unsigned __int8)GameLevelManager::hasLikedItemFullCheck(a1, a2, a3, a5) ) { if ( cocos2d::CCDictionary::count(*(cocos2d::CCDictionary **)(a1 + 896)) >= 0x3E8 ) { cocos2d::CCDictionary::getFirstKey(*(_QWORD *)(a1 + 896), &v71); cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 896), &v71); sub_14003D310((__int64)&v71); } *(_OWORD *)Block = 0; v69 = 0; v70 = 15; LOBYTE(Block[0]) = 0; v15 = 3; if ( a2 != 3 ) v15 = a2; v16 = cocos2d::CCString::createWithFormat("like_%i_%i_%i_%i", v15, a3, v5, a5); CString = (char *)cocos2d::CCString::getCString(v16); v18 = -1; v19 = -1; do ++v19; while ( CString[v19] ); sub_1400405A0(Block, CString, v19); cocos2d::CCDictionary::setObject(*(_QWORD *)(a1 + 896), *(_QWORD *)(a1 + 1648), Block); if ( v70 > 0xF ) { v20 = Block[0]; if ( v70 + 1 >= 0x1000 ) { v20 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v20 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v20); } v21 = cocos2d::CCString::createWithFormat("like_%i_%i_%i_%i", a2, a3, v5, a5); v22 = cocos2d::CCString::getCString(v21); GameLevelManager::getBasePostString(v23, Src); LODWORD(Reserveda) = 103; v24 = cocos2d::CCString::createWithFormat( "%c%s%s%c%c%s", 87, "mfd", "2893", Reserveda, 98, (const char *)&word_14070D040); v25 = cocos2d::CCString::getCString(v24); v26 = cocos2d::CCString::createWithFormat("&itemID=%i&like=%i&type=%i&secret=%s&special=%i", a3, v5, a2, v25, a5); v27 = (char *)cocos2d::CCString::getCString(v26); v28 = -1; do ++v28; while ( v27[v28] ); sub_140044D80(Src, v27, v28); sub_1402190E0(v78, 0xAu); sub_140044D80(Src, "&rs=", 4u); v29 = v78; if ( v79 > 0xF ) v29 = (void **)v78[0]; v30 = -1; do ++v30; while ( *((_BYTE *)v29 + v30) ); sub_140044D80(Src, v29, v30); v31 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v58 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v58); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v31 = qword_14090BFD0; } sub_14003F4F0((__int64)&v71, v31 + 624); v33 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v59 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v59); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v33 = qword_14090BFD0; } v34 = *(_DWORD *)(v33 + 692) - *(_DWORD *)(v33 + 696); v35 = (const char *)&v71; if ( v73 > 0xF ) v35 = (const char *)v71; v36 = GJAccountManager::sharedState(v32); v37 = *(_DWORD *)(v36 + 360) - *(_DWORD *)(v36 + 364); v38 = v78; if ( v79 > 0xF ) v38 = (void **)v78[0]; LODWORD(v55) = 110; LODWORD(Reserved) = 106; v39 = cocos2d::CCString::createWithFormat("%c%s%s%c%c%s", 121, "sg6", "pUrt", Reserved, v55, "0J"); v40 = cocos2d::CCString::getCString(v39); v41 = cocos2d::CCString::createWithFormat( "%i%i%i%i%s%i%s%i%s", a5, a3, a4, a2, (const char *)v38, v37, v35, v34, v40); v42 = cocos2d::CCString::getCString(v41); *(_OWORD *)Block = 0; v69 = 0; v70 = 0; v43 = -1; do ++v43; while ( v42[v43] ); sub_14003D230(Block, v42, v43); sub_14003D310((__int64)&v71); v44 = Block; if ( v70 > 0xF ) v44 = (void **)Block[0]; v45 = Block; if ( v70 > 0xF ) v45 = (void **)Block[0]; v46 = -1; do ++v46; while ( *((_BYTE *)v44 + v46) ); sub_14007E1A0((__int64)v45, v46, v74); sub_14007E470((unsigned __int8 *)v74, &v81); *(_OWORD *)v74 = 0; v75 = 0; v76 = 0; v47 = -1; do ++v47; while ( *((_BYTE *)&v81 + v47) ); sub_14003D230(v74, &v81, v47); v62 = 0; v63 = 5; v64 = 15; strcpy((char *)&v62, "58281"); cocos2d::ZipUtils::base64EncodeEnc(v80, v74, &v62); if ( v76 > 0xF ) { v48 = v74[0]; if ( v76 + 1 >= 0x1000 ) { v48 = *((void **)v74[0] - 1); if ( (unsigned __int64)((char *)v74[0] - (char *)v48 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v48); } v75 = 0; v76 = 15; LOBYTE(v74[0]) = 0; sub_140044D80(Src, "&chk=", 5u); v49 = v80; if ( v80[3] > (void *)0xF ) v49 = (void **)v80[0]; sub_140044D80(Src, v49, (size_t)v80[2]); v81 = 0; v82 = 0; v83 = 0; v50 = -1; do ++v50; while ( v22[v50] ); sub_14003D230(&v81, v22, v50); v51 = Src; if ( Src[3] > 0xFu ) v51 = (_QWORD *)Src[0]; v71 = 0; v72 = 0; v73 = 0; do ++v18; while ( *((_BYTE *)v51 + v18) ); sub_14003D230(&v71, v51, v18); v65 = 0; v66 = 0; v67 = 0; *(_QWORD *)&v65 = sub_14003D460(0x40u); v66 = 52; v67 = 63; strcpy((char *)v65, "https://www.boomlings.com/database/likeGJItem211.php"); GameLevelManager::ProcessHttpRequest( (cocos2d::CCActionManager **)a1, (__int64)&v65, (const char *)&v71, (const char *)&v81, 0x10u); sub_14003D310((__int64)v80); if ( v70 > 0xF ) { v52 = Block[0]; if ( v70 + 1 >= 0x1000 ) { v52 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v52 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v52); } sub_14003D310((__int64)v78); sub_14003D310((__int64)Src); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source