// // GameLevelManager::uploadComment from 0x83fa00 to 0x840574 (2932 bytes) // // 6 xrefs: // > GameLevelManager::uploadLevelComment @ 0x8405d8 // > GameLevelManager::uploadAccountComment @ 0x8406b0 // > GameLevelManager::uploadEditorSoundComment @ 0x84077c // > GameLevelManager::uploadModRoomComment @ 0x840854 // > ShareCommentLayer::onShare @ 0x90e678 // > @ 0xb8600 // // This function is hookable on this platform (idp: arm, 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 12:55:17 +0000 // __int64 __fastcall GameLevelManager::uploadComment( GameLevelManager *a1, char *a2, unsigned int a3, unsigned int a4, int a5) { char v8; // w0 void *v9; // x2 __int64 v10; // x0 __int64 v11; // x1 cocos2d::CCNode *v12; // x2 __int64 v13; // x3 char v14; // w0 _BOOL4 v15; // w28 char *PostCommentKey; // x22 size_t v17; // x0 __int64 v18; // x27 __int64 v19; // x1 cocos2d::CCNode *v20; // x0 size_t v22; // x0 GameManager *TimeStamp; // x0 __int64 v24; // x2 char v25; // w0 GameManager *v26; // x0 size_t v27; // x1 __int64 v28; // x2 char v29; // w0 __int64 v30; // x0 __int64 v31; // x1 char v32; // w0 __int64 v33; // x0 __int64 v34; // x1 const char *v35; // x27 cocos2d::CCString *v36; // x0 __int64 CString; // x0 cocos2d::CCString *v38; // x0 size_t v39; // x0 cocos2d::CCString *v40; // x0 size_t v41; // x0 const char *v42; // x1 __int64 v43; // x2 cocos2d::CCString *v44; // x0 const char *v45; // x0 size_t v46; // x0 cocos2d::CCString *v47; // x0 size_t v48; // x0 char *v49; // x26 unsigned int v50; // w0 unsigned __int8 *v51; // x3 char *v52; // x2 size_t v53; // x0 char *v54; // x1 size_t v55; // x2 const char *v56; // x1 size_t v57; // x0 size_t v58; // x0 const char *v59; // x1 size_t v60; // x0 size_t v61; // x0 cocos2d::CCString *v62; // x0 size_t v63; // x0 cocos2d::CCString *v64; // x0 size_t v65; // x0 cocos2d::CCString *v66; // x0 size_t v67; // x0 cocos2d::CCString *v68; // x0 size_t v69; // x0 void *v70; // [xsp+60h] [xbp+60h] char *v71; // [xsp+60h] [xbp+60h] char *v72; // [xsp+60h] [xbp+60h] char *v73; // [xsp+60h] [xbp+60h] char *v74; // [xsp+60h] [xbp+60h] char *v75; // [xsp+60h] [xbp+60h] char *v76; // [xsp+60h] [xbp+60h] int v77[2]; // [xsp+70h] [xbp+70h] cocos2d::CCObject *v78; // [xsp+78h] [xbp+78h] cocos2d::CCObject *v79; // [xsp+78h] [xbp+78h] char *v82; // [xsp+88h] [xbp+88h] char *v83; // [xsp+88h] [xbp+88h] char *v84; // [xsp+88h] [xbp+88h] char *v85; // [xsp+88h] [xbp+88h] GameManager *v86; // [xsp+98h] [xbp+98h] BYREF size_t v87; // [xsp+A0h] [xbp+A0h] void *v88; // [xsp+A8h] [xbp+A8h] __int64 v89; // [xsp+B0h] [xbp+B0h] BYREF __int64 v90; // [xsp+B8h] [xbp+B8h] void *v91; // [xsp+C0h] [xbp+C0h] GameManager *v92; // [xsp+C8h] [xbp+C8h] BYREF size_t v93; // [xsp+D0h] [xbp+D0h] void *v94; // [xsp+D8h] [xbp+D8h] __int64 v95; // [xsp+E0h] [xbp+E0h] BYREF __int64 v96; // [xsp+E8h] [xbp+E8h] void *v97; // [xsp+F0h] [xbp+F0h] __int64 v98[2]; // [xsp+F8h] [xbp+F8h] BYREF char *v99; // [xsp+108h] [xbp+108h] __int64 v100[2]; // [xsp+110h] [xbp+110h] BYREF char *v101; // [xsp+120h] [xbp+120h] _QWORD v102[2]; // [xsp+128h] [xbp+128h] BYREF char *v103; // [xsp+138h] [xbp+138h] __int64 v104[2]; // [xsp+140h] [xbp+140h] BYREF void *v105; // [xsp+150h] [xbp+150h] __int64 v106[2]; // [xsp+158h] [xbp+158h] BYREF void *v107; // [xsp+168h] [xbp+168h] __int64 v108[2]; // [xsp+170h] [xbp+170h] BYREF void *v109; // [xsp+180h] [xbp+180h] __int64 v110[2]; // [xsp+188h] [xbp+188h] BYREF void *v111; // [xsp+198h] [xbp+198h] __int64 v112[2]; // [xsp+1A0h] [xbp+1A0h] BYREF void *v113; // [xsp+1B0h] [xbp+1B0h] __int64 v114[2]; // [xsp+1B8h] [xbp+1B8h] BYREF void *v115; // [xsp+1C8h] [xbp+1C8h] __int64 v116; // [xsp+1D0h] [xbp+1D0h] BYREF __int64 v117; // [xsp+1D8h] [xbp+1D8h] void *v118; // [xsp+1E0h] [xbp+1E0h] cocos2d::CCNode *v119; // [xsp+1E8h] [xbp+1E8h] BYREF __int64 v120; // [xsp+1F0h] [xbp+1F0h] void *v121; // [xsp+1F8h] [xbp+1F8h] unsigned __int8 v122[24]; // [xsp+200h] [xbp+200h] BYREF unsigned __int8 v123[48]; // [xsp+218h] [xbp+218h] BYREF v116 = 0; v117 = 0; v8 = *a2; v118 = nullptr; if ( (v8 & 1) != 0 ) { std::string::__init(&v116, *((void **)a2 + 2), *((_QWORD *)a2 + 1)); } else { v9 = *((void **)a2 + 2); v10 = *(_QWORD *)a2; v11 = *((_QWORD *)a2 + 1); v118 = v9; v116 = v10; v117 = v11; } LevelTools::base64EncodeString((__int64)&v116, &v119); if ( (*a2 & 1) != 0 ) { **((_BYTE **)a2 + 2) = 0; *((_QWORD *)a2 + 1) = 0; } else { a2[1] = 0; *a2 = 0; } std::string::reserve((__int64 *)a2, 0); v12 = v119; v13 = v120; v14 = v116; *((_QWORD *)a2 + 2) = v121; *(_QWORD *)a2 = v12; *((_QWORD *)a2 + 1) = v13; if ( (v14 & 1) != 0 ) operator delete(v118); v15 = a3 == 0 || a3 == 6; if ( v15 || a3 - 7 <= 1 ) PostCommentKey = (char *)GameLevelManager::getPostCommentKey(a1, (const char *)a4); else PostCommentKey = "acc_comment"; v119 = nullptr; v120 = 0; v121 = nullptr; v17 = strlen(PostCommentKey); v18 = *((_QWORD *)a1 + 136); std::string::__init((__int64 *)&v119, PostCommentKey, v17); v19 = cocos2d::CCDictionary::objectForKey(v18, &v119); v20 = (cocos2d::CCNode *)(unsigned __int8)v119; if ( ((unsigned __int8)v119 & 1) != 0 ) { v78 = (cocos2d::CCObject *)v19; operator delete(v121); v19 = (__int64)v78; } if ( !v19 ) { *(_QWORD *)v77 = *((_QWORD *)a1 + 136); v79 = (cocos2d::CCObject *)cocos2d::CCNode::create(v20); v119 = nullptr; v120 = 0; v121 = nullptr; v22 = strlen(PostCommentKey); std::string::__init((__int64 *)&v119, PostCommentKey, v22); cocos2d::CCDictionary::setObject(v77[0], v79); if ( ((unsigned __int8)v119 & 1) != 0 ) operator delete(v121); TimeStamp = (GameManager *)GameLevelManager::makeTimeStamp(a1, PostCommentKey); v24 = GameManager::sharedState(TimeStamp) + 632; v25 = *(_BYTE *)v24; v86 = nullptr; v87 = 0; v88 = nullptr; if ( (v25 & 1) != 0 ) { v26 = (GameManager *)std::string::__init((__int64 *)&v86, *(void **)(v24 + 16), *(_QWORD *)(v24 + 8)); } else { v26 = *(GameManager **)v24; v27 = *(_QWORD *)(v24 + 8); v88 = *(void **)(v24 + 16); v86 = v26; v87 = v27; } v28 = GameManager::sharedState(v26) + 608; v29 = *(_BYTE *)v28; v89 = 0; v90 = 0; v91 = nullptr; if ( (v29 & 1) != 0 ) { std::string::__init(&v89, *(void **)(v28 + 16), *(_QWORD *)(v28 + 8)); } else { v30 = *(_QWORD *)v28; v31 = *(_QWORD *)(v28 + 8); v91 = *(void **)(v28 + 16); v89 = v30; v90 = v31; } v92 = nullptr; v93 = 0; v94 = nullptr; if ( ((unsigned __int8)v86 & 1) != 0 ) { std::string::__init((__int64 *)&v92, v88, v87); } else { v94 = v88; v92 = v86; v93 = v87; } GameLevelManager::removeDelimiterChars((__int64)a1, (__int64)&v92, 0); if ( ((unsigned __int8)v92 & 1) != 0 ) operator delete(v94); v32 = *a2; v95 = 0; v96 = 0; v97 = nullptr; if ( (v32 & 1) != 0 ) { std::string::__init(&v95, *((void **)a2 + 2), *((_QWORD *)a2 + 1)); } else { v33 = *(_QWORD *)a2; v34 = *((_QWORD *)a2 + 1); v97 = *((void **)a2 + 2); v95 = v33; v96 = v34; } GameLevelManager::removeDelimiterChars((__int64)a1, (__int64)&v95, 1); if ( (v95 & 1) != 0 ) operator delete(v97); GameLevelManager::getBasePostString(v98); v35 = (char *)&v86 + 1; if ( ((unsigned __int8)v86 & 1) != 0 ) v35 = (const char *)v88; v70 = a2 + 1; if ( (*a2 & 1) != 0 ) v70 = *((void **)a2 + 2); v36 = (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(v36); v38 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"&userName=%s&comment=%s&secret=%s", v35, v70, CString); v71 = (char *)cocos2d::CCString::getCString(v38); v39 = strlen(v71); std::string::append((__int64)v98, v71, v39); if ( a3 ) { if ( a3 - 6 <= 2 ) { std::string::append((__int64)v98, "&levelID=", 9u); v62 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)a4); v73 = (char *)cocos2d::CCString::getCString(v62); v63 = strlen(v73); std::string::append((__int64)v98, v73, v63); if ( a3 == 7 && a5 > 0 ) { std::string::append((__int64)v98, "&percent=", 9u); v64 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)(unsigned int)a5); v74 = (char *)cocos2d::CCString::getCString(v64); v65 = strlen(v74); std::string::append((__int64)v98, v74, v65); } } std::string::append((__int64)v98, "&cType=", 7u); v40 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)a3); v72 = (char *)cocos2d::CCString::getCString(v40); v41 = strlen(v72); std::string::append((__int64)v98, v72, v41); } else { std::string::append((__int64)v98, "&levelID=", 9u); v66 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)a4); v75 = (char *)cocos2d::CCString::getCString(v66); v67 = strlen(v75); std::string::append((__int64)v98, v75, v67); if ( a5 > 0 ) { std::string::append((__int64)v98, "&percent=", 9u); v68 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)(unsigned int)a5); v76 = (char *)cocos2d::CCString::getCString(v68); v69 = strlen(v76); std::string::append((__int64)v98, v76, v69); } } v42 = (char *)&v86 + 1; if ( ((unsigned __int8)v86 & 1) != 0 ) v42 = (const char *)v88; v43 = (__int64)(a2 + 1); if ( (*a2 & 1) != 0 ) v43 = *((_QWORD *)a2 + 2); v44 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%s%s%i%i%i", v42, v43, a4, (unsigned int)a5, a3); v45 = (const char *)cocos2d::CCString::getCString(v44); v100[0] = 0; v100[1] = 0; v101 = nullptr; v82 = (char *)v45; v46 = strlen(v45); std::string::__init(v100, v82, v46); v47 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%c%s%s%c%c%s", (const char *)&dword_78, "PT6", "iUrt", 119, 115, "0J"); v83 = (char *)cocos2d::CCString::getCString(v47); v48 = strlen(v83); std::string::append((__int64)v100, v83, v48); v49 = (char *)v100 + 1; if ( (v100[0] & 1) != 0 ) v49 = v101; v50 = strlen(v49); rtsha1::calc((rtsha1 *)v49, (const void *)v50, (__int64)v122, v51); rtsha1::toHexString((rtsha1 *)v122, v123, v52); v104[0] = 0; v104[1] = 0; v105 = nullptr; v53 = strlen((const char *)v123); std::string::__init(v104, v123, v53); v106[0] = 0; v106[1] = 0; v107 = nullptr; std::string::__init(v106, "29481", 5u); cocos2d::ZipUtils::base64EncodeEnc(v102, v104, v106); if ( (v106[0] & 1) != 0 ) operator delete(v107); if ( (v104[0] & 1) != 0 ) operator delete(v105); std::string::append((__int64)v98, "&chk=", 5u); if ( (v102[0] & 1) != 0 ) { v54 = v103; v55 = v102[1]; } else { v55 = LOBYTE(v102[0]) >> 1; v54 = (char *)v102 + 1; } std::string::append((__int64)v98, v54, v55); if ( v15 || a3 - 7 <= 1 ) { v108[0] = 0; v108[1] = 0; v109 = nullptr; std::string::__init(v108, "https://www.boomlings.com/database/uploadGJComment21.php", 0x38u); v59 = (char *)v98 + 1; if ( (v98[0] & 1) != 0 ) v59 = v99; v85 = (char *)v59; v110[0] = 0; v110[1] = 0; v111 = nullptr; v60 = strlen(v59); std::string::__init(v110, v85, v60); v112[0] = 0; v112[1] = 0; v113 = nullptr; v61 = strlen(PostCommentKey); std::string::__init(v112, PostCommentKey, v61); GameLevelManager::ProcessHttpRequest(a1, v108, (__int64)v110, (char *)v112, 13); if ( (v112[0] & 1) != 0 ) operator delete(v113); if ( (v110[0] & 1) != 0 ) operator delete(v111); if ( (v108[0] & 1) != 0 ) operator delete(v109); } else { v114[0] = 0; v114[1] = 0; v115 = nullptr; std::string::__init(v114, "https://www.boomlings.com/database/uploadGJAccComment20.php", 0x3Bu); v56 = (char *)v98 + 1; if ( (v98[0] & 1) != 0 ) v56 = v99; v84 = (char *)v56; v116 = 0; v117 = 0; v118 = nullptr; v57 = strlen(v56); std::string::__init(&v116, v84, v57); v119 = nullptr; v120 = 0; v121 = nullptr; v58 = strlen(PostCommentKey); std::string::__init((__int64 *)&v119, PostCommentKey, v58); GameLevelManager::ProcessHttpRequest(a1, v114, (__int64)&v116, (char *)&v119, 13); if ( ((unsigned __int8)v119 & 1) != 0 ) operator delete(v121); if ( (v116 & 1) != 0 ) operator delete(v118); if ( (v114[0] & 1) != 0 ) operator delete(v115); } if ( (v102[0] & 1) != 0 ) operator delete(v103); if ( (v100[0] & 1) != 0 ) operator delete(v101); if ( (v98[0] & 1) != 0 ) operator delete(v99); if ( (v89 & 1) != 0 ) operator delete(v91); if ( ((unsigned __int8)v86 & 1) != 0 ) operator delete(v88); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source