// // GameLevelManager::uploadComment from 0x14023e350 to 0x14023ed85 (2613 bytes) // // 6 xrefs: // > ShareCommentLayer::onShare @ 0x14062f74b // > ShareCommentLayer::onShare @ 0x14062f7e2 // > ShareCommentLayer::onShare @ 0x14062f87f // > ShareCommentLayer::onShare @ 0x14062f92b // > ShareCommentLayer::onShare @ 0x14062f9ac // > @ 0x14091c160 // // 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:35 +0000 // // Hidden C++ exception states: #wind=16 void __fastcall GameLevelManager::uploadComment(__int64 a1, const char *a2, unsigned int a3, unsigned int a4, int a5) { __int64 v9; // rax __int64 v10; // rbx void *v11; // rcx char *CString; // rsi cocos2d::CCString *v13; // rax size_t v14; // rdi size_t v15; // r8 __int64 v16; // rbx size_t v17; // r8 __int64 v18; // rbx __int64 v19; // rax void *v20; // rcx __int64 v21; // rdx __int64 v22; // rdx __int64 v23; // rax __int64 v24; // rcx __int64 v25; // rax __int64 v26; // r8 __int64 v27; // rcx __int64 v28; // rcx const char *v29; // r14 const char *v30; // rbx cocos2d::CCString *v31; // rax const char *v32; // rax cocos2d::CCString *v33; // rax char *v34; // rax size_t v35; // r8 int v36; // ebx cocos2d::CCString *v37; // rax char *v38; // rax size_t v39; // r8 cocos2d::CCString *v40; // rax char *v41; // rax size_t v42; // r8 cocos2d::CCString *v43; // rax char *v44; // rax size_t v45; // r8 cocos2d::CCString *v46; // rax char *v47; // rax size_t v48; // r8 cocos2d::CCString *v49; // rax char *v50; // rax size_t v51; // r8 cocos2d::CCString *v52; // rax const char *v53; // r8 const char *v54; // rdx cocos2d::CCString *v55; // rax const char *v56; // rax size_t v57; // r8 cocos2d::CCString *v58; // rax char *v59; // rax size_t v60; // r8 void **v61; // r8 void **v62; // r9 __int64 v63; // rdx size_t v64; // r8 void *v65; // rcx void **v66; // rdx size_t v67; // r8 _QWORD *v68; // rdx const char *v69; // r9 const char *v70; // r8 size_t v71; // r8 _QWORD *v72; // rdx uintptr_t Reserved; // [rsp+20h] [rbp-E0h] __int64 v74; // [rsp+28h] [rbp-D8h] void *v75; // [rsp+40h] [rbp-C0h] void *v76; // [rsp+40h] [rbp-C0h] __int128 v79; // [rsp+58h] [rbp-A8h] BYREF __int64 v80; // [rsp+68h] [rbp-98h] __int64 v81; // [rsp+70h] [rbp-90h] __int128 *v82; // [rsp+78h] [rbp-88h] __int128 v83; // [rsp+80h] [rbp-80h] BYREF __int64 v84; // [rsp+90h] [rbp-70h] __int64 v85; // [rsp+98h] [rbp-68h] const char *v86; // [rsp+A0h] [rbp-60h] void *v87[2]; // [rsp+A8h] [rbp-58h] BYREF __int64 v88; // [rsp+B8h] [rbp-48h] unsigned __int64 v89; // [rsp+C0h] [rbp-40h] _QWORD Src[3]; // [rsp+C8h] [rbp-38h] BYREF unsigned __int64 v91; // [rsp+E0h] [rbp-20h] void *Block[2]; // [rsp+E8h] [rbp-18h] BYREF __int128 v93; // [rsp+F8h] [rbp-8h] void *v94[2]; // [rsp+108h] [rbp+8h] BYREF __int64 v95; // [rsp+118h] [rbp+18h] unsigned __int64 v96; // [rsp+120h] [rbp+20h] _QWORD v97[3]; // [rsp+128h] [rbp+28h] BYREF unsigned __int64 v98; // [rsp+140h] [rbp+40h] void *v99[4]; // [rsp+148h] [rbp+48h] BYREF _BYTE v100[32]; // [rsp+168h] [rbp+68h] BYREF __int128 v101; // [rsp+188h] [rbp+88h] BYREF __int64 v102; // [rsp+198h] [rbp+98h] __int64 v103; // [rsp+1A0h] [rbp+A0h] v86 = a2; v9 = sub_14003F4F0((__int64)&v101, (__int64)a2); v10 = v9; if ( *(_QWORD *)(v9 + 16) ) { cocos2d::ZipUtils::base64URLEncode(Block, v9); } else { *(_OWORD *)Block = 0; v93 = 0u; *(_OWORD *)Block = *(_OWORD *)v9; v93 = *(_OWORD *)(v9 + 16); *(_QWORD *)(v9 + 16) = 0; *(_QWORD *)(v9 + 24) = 15; *(_BYTE *)v9 = 0; } sub_14003D310(v10); sub_140059C40((__int64)a2, (__int64)Block); if ( *((_QWORD *)&v93 + 1) > 0xFu ) { v11 = Block[0]; if ( (unsigned __int64)(*((_QWORD *)&v93 + 1) + 1LL) >= 0x1000 ) { v11 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v11 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v11); } if ( a3 && a3 - 6 > 2 ) { CString = "acc_comment"; } else { v13 = cocos2d::CCString::createWithFormat("c_%i", a4); CString = (char *)cocos2d::CCString::getCString(v13); } *(_OWORD *)v87 = 0; v88 = 0; v89 = 0; v14 = -1; v15 = -1; do ++v15; while ( CString[v15] ); sub_14003D230(v87, CString, v15); v16 = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 1200), v87); sub_14003D310((__int64)v87); if ( !v16 ) { *(_OWORD *)v87 = 0; v88 = 0; v89 = 0; v17 = -1; do ++v17; while ( CString[v17] ); sub_14003D230(v87, CString, v17); v18 = *(_QWORD *)(a1 + 1200); v19 = cocos2d::CCNode::create(); cocos2d::CCDictionary::setObject(v18, v19, v87); if ( v89 > 0xF ) { v20 = v87[0]; if ( v89 + 1 >= 0x1000 ) { v20 = *((void **)v87[0] - 1); if ( (unsigned __int64)((char *)v87[0] - (char *)v20 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v20); } GameLevelManager::makeTimeStamp(a1, CString); v21 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v75 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v75); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v21 = qword_14090BFD0; } sub_14003F4F0((__int64)v97, v21 + 656); v22 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v76 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v76); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v22 = qword_14090BFD0; } sub_14003F4F0((__int64)v100, v22 + 624); v23 = sub_14003F4F0((__int64)&v101, (__int64)v97); GameLevelManager::removeDelimiterChars(v24, v23, 0); v25 = sub_14003F4F0((__int64)&v101, (__int64)a2); LOBYTE(v26) = 1; GameLevelManager::removeDelimiterChars(v27, v25, v26); GameLevelManager::getBasePostString(v28, Src); v29 = a2; if ( *((_QWORD *)a2 + 3) > 0xFu ) v29 = *(const char **)a2; v30 = (const char *)v97; if ( v98 > 0xF ) v30 = (const char *)v97[0]; v31 = cocos2d::CCString::createWithFormat("%c%s%s%c%c%s", 87, "mfd", "2893", 103, 98, (const char *)&word_14070D040); v32 = cocos2d::CCString::getCString(v31); v33 = cocos2d::CCString::createWithFormat("&userName=%s&comment=%s&secret=%s", v30, v29, v32); v34 = (char *)cocos2d::CCString::getCString(v33); v35 = -1; do ++v35; while ( v34[v35] ); sub_140044D80(Src, v34, v35); if ( a3 ) { if ( a3 - 6 > 2 ) { sub_140044D80(Src, "&cType=", 7u); v43 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, a3); v44 = (char *)cocos2d::CCString::getCString(v43); v45 = -1; do ++v45; while ( v44[v45] ); sub_140044D80(Src, v44, v45); v36 = a4; goto LABEL_54; } sub_140044D80(Src, "&levelID=", 9u); v36 = a4; v46 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, a4); v47 = (char *)cocos2d::CCString::getCString(v46); v48 = -1; do ++v48; while ( v47[v48] ); sub_140044D80(Src, v47, v48); if ( a3 == 7 && a5 > 0 ) { sub_140044D80(Src, "&percent=", 9u); v49 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, (unsigned int)a5); v50 = (char *)cocos2d::CCString::getCString(v49); v51 = -1; do ++v51; while ( v50[v51] ); sub_140044D80(Src, v50, v51); } sub_140044D80(Src, "&cType=", 7u); v52 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, a3); v41 = (char *)cocos2d::CCString::getCString(v52); v42 = -1; do ++v42; while ( v41[v42] ); } else { sub_140044D80(Src, "&levelID=", 9u); v36 = a4; v37 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, a4); v38 = (char *)cocos2d::CCString::getCString(v37); v39 = -1; do ++v39; while ( v38[v39] ); sub_140044D80(Src, v38, v39); if ( a5 <= 0 ) goto LABEL_54; sub_140044D80(Src, "&percent=", 9u); v40 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, (unsigned int)a5); v41 = (char *)cocos2d::CCString::getCString(v40); v42 = -1; do ++v42; while ( v41[v42] ); } sub_140044D80(Src, v41, v42); LABEL_54: v53 = a2; if ( *((_QWORD *)a2 + 3) > 0xFu ) v53 = *(const char **)a2; v54 = (const char *)v97; if ( v98 > 0xF ) v54 = (const char *)v97[0]; v55 = cocos2d::CCString::createWithFormat("%s%s%i%i%i", v54, v53, v36, a5, a3); v56 = cocos2d::CCString::getCString(v55); *(_OWORD *)Block = 0; v93 = 0u; v57 = -1; do ++v57; while ( v56[v57] ); sub_14003D230(Block, v56, v57); LODWORD(v74) = 115; LODWORD(Reserved) = 119; v58 = cocos2d::CCString::createWithFormat("%c%s%s%c%c%s", 120, "PT6", "iUrt", Reserved, v74, "0J"); v59 = (char *)cocos2d::CCString::getCString(v58); v60 = -1; do ++v60; while ( v59[v60] ); sub_140044D80(Block, v59, v60); v61 = Block; if ( *((_QWORD *)&v93 + 1) > 0xFu ) v61 = (void **)Block[0]; v62 = Block; if ( *((_QWORD *)&v93 + 1) > 0xFu ) v62 = (void **)Block[0]; v63 = -1; do ++v63; while ( *((_BYTE *)v61 + v63) ); sub_14007E1A0((__int64)v62, v63, v94); sub_14007E470((unsigned __int8 *)v94, &v101); *(_OWORD *)v94 = 0; v95 = 0; v96 = 0; v64 = -1; do ++v64; while ( *((_BYTE *)&v101 + v64) ); sub_14003D230(v94, &v101, v64); v83 = 0; v84 = 5; v85 = 15; strcpy((char *)&v83, "29481"); cocos2d::ZipUtils::base64EncodeEnc(v99, v94, &v83); if ( v96 > 0xF ) { v65 = v94[0]; if ( v96 + 1 >= 0x1000 ) { v65 = *((void **)v94[0] - 1); if ( (unsigned __int64)((char *)v94[0] - (char *)v65 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v65); } v95 = 0; v96 = 15; LOBYTE(v94[0]) = 0; sub_140044D80(Src, "&chk=", 5u); v66 = v99; if ( v99[3] > (void *)0xF ) v66 = (void **)v99[0]; sub_140044D80(Src, v66, (size_t)v99[2]); if ( a3 && a3 - 6 > 2 ) { v79 = 0; v80 = 0; v81 = 0; v67 = -1; do ++v67; while ( CString[v67] ); sub_14003D230(&v79, CString, v67); v68 = Src; if ( v91 > 0xF ) v68 = (_QWORD *)Src[0]; v101 = 0; v102 = 0; v103 = 0; do ++v14; while ( *((_BYTE *)v68 + v14) ); sub_14003D230(&v101, v68, v14); *(_OWORD *)v87 = 0; v88 = 0; v89 = 0; v87[0] = sub_14003D460(0x40u); v88 = 59; v89 = 63; strcpy((char *)v87[0], "https://www.boomlings.com/database/uploadGJAccComment20.php"); v69 = (const char *)&v79; v70 = (const char *)&v101; } else { v82 = &v101; v101 = 0; v102 = 0; v103 = 0; v71 = -1; do ++v71; while ( CString[v71] ); sub_14003D230(&v101, CString, v71); v72 = Src; if ( v91 > 0xF ) v72 = (_QWORD *)Src[0]; v79 = 0; v80 = 0; v81 = 0; do ++v14; while ( *((_BYTE *)v72 + v14) ); sub_14003D230(&v79, v72, v14); *(_OWORD *)v87 = 0; v88 = 0; v89 = 0; v87[0] = sub_14003D460(0x40u); v88 = 56; v89 = 63; strcpy((char *)v87[0], "https://www.boomlings.com/database/uploadGJComment21.php"); v69 = (const char *)&v101; v70 = (const char *)&v79; } GameLevelManager::ProcessHttpRequest((cocos2d::CCActionManager **)a1, (__int64)v87, v70, v69, 0xDu); sub_14003D310((__int64)v99); sub_14003D310((__int64)Block); sub_14003D310((__int64)Src); sub_14003D310((__int64)v100); sub_14003D310((__int64)v97); } sub_14003D310((__int64)a2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source