// // GameLevelManager::uploadComment from 0x1000a721c to 0x1000a786c (1616 bytes) // // 2 xrefs: // > GameLevelManager::uploadLevelComment @ 0x1000a71d8 // > GameLevelManager::uploadAccountComment @ 0x1000a7a60 // // 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 __fastcall GameLevelManager::uploadComment(GameLevelManager *a1, void **a2, int a3, int a4, int a5) { void **v8; // x23 char *CString; // x21 cocos2d::CCString *v11; // x0 cocos2d::CCDictionary *m_friendReqAndUserBlocks; // x25 __int64 v13; // x0 __int64 v14; // x25 cocos2d::CCDictionary *v15; // x25 cocos2d::CCNode *v16; // x26 GameManager *v17; // x0 char *v18; // x0 __int64 v19; // x0 std::string *p_m_playerName; // x25 const char *v21; // x26 cocos2d::CCString *v22; // x0 const char *v23; // x0 cocos2d::CCString *v24; // x0 const char *v25; // x0 int v26; // w8 cocos2d::CCString *v27; // x0 const char *v28; // x0 cocos2d::CCString *v29; // x0 const char *v30; // x0 std::string *capacitym1; // x8 cocos2d::CCString *v32; // x0 char *v33; // x0 cocos2d::CCString *v34; // x0 const char *v35; // x0 std::string *v36; // x22 size_t v37; // x0 void **v38; // x1 std::string::size_type v39; // x2 std::string *v40; // x1 std::string *v41; // x8 std::string *v42; // x1 void *v43[2]; // [xsp+38h] [xbp-238h] BYREF char v44; // [xsp+4Fh] [xbp-221h] void *v45[2]; // [xsp+50h] [xbp-220h] BYREF char v46; // [xsp+67h] [xbp-209h] std::string v47; // [xsp+68h] [xbp-208h] BYREF void *v48[2]; // [xsp+80h] [xbp-1F0h] BYREF char v49; // [xsp+97h] [xbp-1D9h] void *v50[2]; // [xsp+98h] [xbp-1D8h] BYREF char v51; // [xsp+AFh] [xbp-1C1h] std::string v52; // [xsp+B0h] [xbp-1C0h] BYREF void *v53[2]; // [xsp+C8h] [xbp-1A8h] BYREF char v54; // [xsp+DFh] [xbp-191h] void *v55[2]; // [xsp+E0h] [xbp-190h] BYREF char v56; // [xsp+F7h] [xbp-179h] void *v57[2]; // [xsp+F8h] [xbp-178h] BYREF unsigned __int8 v58; // [xsp+10Fh] [xbp-161h] std::string v59; // [xsp+110h] [xbp-160h] BYREF std::string v60; // [xsp+128h] [xbp-148h] BYREF std::string v61; // [xsp+140h] [xbp-130h] BYREF std::string __p; // [xsp+160h] [xbp-110h] BYREF __int128 v63; // [xsp+180h] [xbp-F0h] BYREF __int64 v64; // [xsp+190h] [xbp-E0h] std::string m_playerName; // [xsp+1A0h] [xbp-D0h] BYREF __int128 __dst; // [xsp+1C0h] [xbp-B0h] BYREF void *v67; // [xsp+1D0h] [xbp-A0h] char __s[16]; // [xsp+1D8h] [xbp-98h] BYREF void *v69; // [xsp+1E8h] [xbp-88h] _BYTE v70[20]; // [xsp+204h] [xbp-6Ch] BYREF v8 = a2; if ( *((char *)a2 + 23) < 0 ) { sub_1000097D0(&__dst, *a2, (unsigned __int64)a2[1]); } else { __dst = *(_OWORD *)a2; v67 = a2[2]; } LevelTools::base64EncodeString(__s, &__dst); if ( *((char *)v8 + 23) < 0 ) operator delete(*v8); *(_OWORD *)v8 = *(_OWORD *)__s; v8[2] = v69; HIBYTE(v69) = 0; __s[0] = 0; if ( SHIBYTE(v67) < 0 ) { operator delete((void *)__dst); if ( a3 ) goto LABEL_8; } else if ( a3 ) { LABEL_8: CString = "acc_comment"; goto LABEL_11; } v11 = (cocos2d::CCString *)sub_100268F4C("c_%i", a4); CString = (char *)cocos2d::CCString::getCString(v11); LABEL_11: m_friendReqAndUserBlocks = a1->m_friendReqAndUserBlocks; sub_100009900(__s, CString); v13 = cocos2d::CCDictionary::objectForKey_1(m_friendReqAndUserBlocks, __s); v14 = v13; if ( SHIBYTE(v69) < 0 ) { operator delete(*(void **)__s); if ( v14 ) return; } else if ( v13 ) { return; } v15 = a1->m_friendReqAndUserBlocks; v16 = cocos2d::CCNode::create(); sub_100009900(__s, CString); cocos2d::CCDictionary::setObject_1(v15, v16, __s); if ( SHIBYTE(v69) < 0 ) operator delete(*(void **)__s); GameLevelManager::makeTimeStamp(a1, CString); v17 = GameManager::sharedState(); if ( v17->m_playerName.m_data.m_short.shortStorage.__elems_[22] < 0 ) sub_1000097D0( &m_playerName, (void *)v17->m_playerName.m_data.m_long.capacitym1, v17->m_playerName.m_data.m_long.size); else m_playerName = v17->m_playerName; v18 = (char *)GameManager::sharedState(); if ( v18[591] < 0 ) { v18 = (char *)sub_1000097D0(&v63, *((void **)v18 + 71), *((_QWORD *)v18 + 72)); } else { v63 = *(_OWORD *)(v18 + 568); v64 = *((_QWORD *)v18 + 73); } if ( m_playerName.m_data.m_short.shortStorage.__elems_[22] < 0 ) v18 = (char *)sub_1000097D0(&__p, (void *)m_playerName.m_data.m_long.capacitym1, m_playerName.m_data.m_long.size); else __p = m_playerName; v19 = GameLevelManager::removeDelimiterChars((__int64)v18, (std::string *)&__p, 0); if ( __p.m_data.m_short.shortStorage.__elems_[22] < 0 ) operator delete((void *)__p.m_data.m_long.capacitym1); if ( *((char *)v8 + 23) < 0 ) v19 = (__int64)sub_1000097D0(&v61, *v8, (unsigned __int64)v8[1]); else v61 = *(std::string *)v8; GameLevelManager::removeDelimiterChars(v19, &v61, 1); if ( SHIBYTE(v61.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v61.__r_.__value_.__l.__data_); GameLevelManager::getBasePostString(&v60); if ( m_playerName.m_data.m_short.shortStorage.__elems_[22] >= 0 ) p_m_playerName = (std::string *)&m_playerName; else p_m_playerName = (std::string *)m_playerName.m_data.m_long.capacitym1; v21 = (const char *)v8; if ( *((char *)v8 + 23) < 0 ) v21 = (const char *)*v8; v22 = (cocos2d::CCString *)sub_100268F4C("%c%s%s%c%c%s", 87, "mfd", "2893", 103, 98, "7"); v23 = cocos2d::CCString::getCString(v22); v24 = (cocos2d::CCString *)sub_100268F4C("&userName=%s&comment=%s&secret=%s", (const char *)p_m_playerName, v21, v23); v25 = cocos2d::CCString::getCString(v24); std::string::append(&v60, v25); if ( a3 ) { std::string::append(&v60, "&cType="); v26 = a3; } else { std::string::append(&v60, "&levelID="); v27 = (cocos2d::CCString *)sub_100268F4C("%i", a4); v28 = cocos2d::CCString::getCString(v27); std::string::append(&v60, v28); if ( a5 < 1 ) goto LABEL_43; std::string::append(&v60, "&percent="); v26 = a5; } v29 = (cocos2d::CCString *)sub_100268F4C("%i", v26); v30 = cocos2d::CCString::getCString(v29); std::string::append(&v60, v30); LABEL_43: capacitym1 = (std::string *)&m_playerName; if ( m_playerName.m_data.m_short.shortStorage.__elems_[22] < 0 ) capacitym1 = (std::string *)m_playerName.m_data.m_long.capacitym1; if ( *((char *)v8 + 23) < 0 ) v8 = (void **)*v8; v32 = (cocos2d::CCString *)sub_100268F4C("%s%s%i%i%i", (const char *)capacitym1, (const char *)v8, a4, a5, a3); v33 = (char *)cocos2d::CCString::getCString(v32); sub_100009900(&v59, v33); v34 = (cocos2d::CCString *)sub_100268F4C("%c%s%s%c%c%s", 120, "PT6", "iUrt", 119, 115, "0J"); v35 = cocos2d::CCString::getCString(v34); v36 = &v59; std::string::append(&v59, v35); if ( (v59.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL ) v36 = (std::string *)v59.__r_.__value_.__r.__words[0]; v37 = strlen((const char *)v36); sub_1000F7448(v36, v37, v70); sub_1000F78E0(v70, __s); sub_100009900(v55, __s); sub_100009900(v53, "29481"); cocos2d::ZipUtils::base64EncodeEnc(v57, v55, v53); if ( v54 < 0 ) operator delete(v53[0]); if ( v56 < 0 ) operator delete(v55[0]); std::string::append(&v60, "&chk="); if ( (v58 & 0x80u) == 0 ) v38 = v57; else v38 = (void **)v57[0]; if ( (v58 & 0x80u) == 0 ) v39 = v58; else v39 = (std::string::size_type)v57[1]; std::string::append(&v60, (const std::string::value_type *)v38, v39); if ( a3 ) { sub_100009900(&v47, "https://www.boomlings.com/database/uploadGJAccComment20.php"); if ( (v60.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v40 = &v60; else v40 = (std::string *)v60.__r_.__value_.__r.__words[0]; sub_100009900(v45, (char *)v40); sub_100009900(v43, CString); GameLevelManager::ProcessHttpRequest(a1, &v47, (char *)v45, (const std::string::value_type *)v43, 13); if ( v44 < 0 ) operator delete(v43[0]); if ( v46 < 0 ) operator delete(v45[0]); if ( (SHIBYTE(v47.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 ) goto LABEL_79; v41 = &v47; } else { sub_100009900(&v52, "https://www.boomlings.com/database/uploadGJComment21.php"); if ( (v60.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v42 = &v60; else v42 = (std::string *)v60.__r_.__value_.__r.__words[0]; sub_100009900(v50, (char *)v42); sub_100009900(v48, CString); GameLevelManager::ProcessHttpRequest(a1, &v52, (char *)v50, (const std::string::value_type *)v48, 13); if ( v49 < 0 ) operator delete(v48[0]); if ( v51 < 0 ) operator delete(v50[0]); if ( (SHIBYTE(v52.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 ) goto LABEL_79; v41 = &v52; } operator delete(v41->__r_.__value_.__l.__data_); LABEL_79: if ( (char)v58 < 0 ) operator delete(v57[0]); if ( SHIBYTE(v59.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v59.__r_.__value_.__l.__data_); if ( SHIBYTE(v60.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v60.__r_.__value_.__l.__data_); if ( SHIBYTE(v64) < 0 ) operator delete((void *)v63); if ( m_playerName.m_data.m_short.shortStorage.__elems_[22] < 0 ) operator delete((void *)m_playerName.m_data.m_long.capacitym1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source