// // GameLevelManager::uploadUserMessage from 0x10054e8a0 to 0x10054ede5 (1349 bytes) // // 1 xrefs: // > GJWriteMessagePopup::onSend @ 0x1002a9eb2 // // 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::uploadUserMessage( GameLevelManager *a1, int a2, __int64 a3, std::string *a4, __m128 a5) { GameLevelManager *v7; // r15 cocos2d::CCString *v8; // rax const char *CString; // r12 size_t v10; // rax std::string::size_type v11; // r13 char *data; // r14 size_t v13; // r15 __int64 v14; // rbx __int64 v15; // r13 cocos2d::CCNode *v16; // r14 size_t v17; // rax std::string::size_type v18; // rbx char *v19; // r14 const char *v20; // r13 GameLevelManager *v21; // r12 size_t v22; // r15 double v23; // xmm0_8 __m128 v24; // xmm0 cocos2d::CCString *v25; // rax cocos2d::CCString *v26; // rax const char *v27; // rax const char *v28; // rbx size_t v29; // rax size_t v30; // r15 const char *v31; // r13 char *v32; // r12 size_t v33; // r14 size_t v34; // rax size_t v35; // rbx char *v36; // r15 size_t v37; // r14 char v38; // [rsp+0h] [rbp-100h] char v39; // [rsp+0h] [rbp-100h] std::string *v40; // [rsp+10h] [rbp-F0h] __int64 v41; // [rsp+18h] [rbp-E8h] cocos2d::CCObject *v42; // [rsp+20h] [rbp-E0h] __int64 v43; // [rsp+28h] [rbp-D8h] __int128 v44; // [rsp+30h] [rbp-D0h] BYREF void *v45; // [rsp+40h] [rbp-C0h] std::string v46; // [rsp+48h] [rbp-B8h] BYREF std::string v47; // [rsp+60h] [rbp-A0h] BYREF _QWORD v48[2]; // [rsp+80h] [rbp-80h] BYREF void *v49; // [rsp+90h] [rbp-70h] _QWORD v50[2]; // [rsp+98h] [rbp-68h] BYREF void *v51; // [rsp+A8h] [rbp-58h] int v52; // [rsp+B4h] [rbp-4Ch] cocos2d::CCNode *m_friendReqAndUserBlocks; // [rsp+B8h] [rbp-48h] std::string __dst[2]; // [rsp+C0h] [rbp-40h] BYREF v7 = a1; v52 = a2; v8 = (cocos2d::CCString *)sub_1007AB580("uMsg_%i", v38); CString = cocos2d::CCString::getCString(v8); m_friendReqAndUserBlocks = (cocos2d::CCNode *)a1->m_friendReqAndUserBlocks; v10 = strlen(CString); if ( v10 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_62; v11 = v10; v41 = a3; v40 = a4; if ( v10 >= 0x17 ) { v13 = 26; if ( (v10 | 7) != 0x17 ) v13 = (v10 | 7) + 1; data = (char *)operator new(v13); __dst[0].__r_.__value_.__r.__words[2] = (std::string::size_type)data; __dst[0].__r_.__value_.__r.__words[0] = v13 + 1; v7 = a1; __dst[0].__r_.__value_.__l.__size_ = v11; goto LABEL_8; } __dst[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v10); data = __dst[0].__r_.__value_.__s.__data_; if ( v10 ) LABEL_8: memmove(data, CString, v11); data[v11] = 0; v14 = cocos2d::CCDictionary::objectForKey_1((__int64)m_friendReqAndUserBlocks, (char *)__dst); if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__dst[0].__r_.__value_.__l.__data_); if ( v14 ) return; v15 = (__int64)v7->m_friendReqAndUserBlocks; v16 = cocos2d::CCNode::create(); v17 = strlen(CString); if ( v17 >= 0xFFFFFFFFFFFFFFF8LL ) LABEL_62: sub_100006BF0(*(double *)a5.i64); v18 = v17; m_friendReqAndUserBlocks = v16; if ( v17 >= 0x17 ) { v43 = v15; v20 = CString; v21 = v7; v22 = 26; if ( (v17 | 7) != 0x17 ) v22 = (v17 | 7) + 1; v19 = (char *)operator new(v22); __dst[0].__r_.__value_.__r.__words[2] = (std::string::size_type)v19; __dst[0].__r_.__value_.__r.__words[0] = v22 + 1; v7 = v21; CString = v20; v15 = v43; __dst[0].__r_.__value_.__l.__size_ = v18; goto LABEL_19; } __dst[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v17); v19 = __dst[0].__r_.__value_.__s.__data_; if ( v17 ) LABEL_19: memmove(v19, CString, v18); v19[v18] = 0; cocos2d::CCDictionary::setObject_1(v15, m_friendReqAndUserBlocks, (char *)__dst); if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__dst[0].__r_.__value_.__l.__data_); GameLevelManager::makeTimeStamp(v7, CString); if ( (*(_BYTE *)v41 & 1) != 0 ) { sub_100006B70(&v47, *(const void **)(v41 + 16), *(_QWORD *)(v41 + 8), *(double *)a5.i64); } else { v47.__r_.__value_.__r.__words[2] = *(_QWORD *)(v41 + 16); a5 = *(__m128 *)v41; *(_OWORD *)&v47.__r_.__value_.__l.0 = *(_OWORD *)v41; } LevelTools::base64EncodeString(__dst, &v47, *(double *)a5.i64); if ( (*(_BYTE *)v41 & 1) != 0 ) operator delete(*(void **)(v41 + 16)); *(_QWORD *)(v41 + 16) = __dst[0].__r_.__value_.__l.__data_; v23 = *(double *)__dst[0].__r_.__value_.__r.__words; *(_OWORD *)v41 = *(_OWORD *)&__dst[0].__r_.__value_.__l.0; *(_WORD *)&__dst[0].__r_.__value_.__l.0 = 0; if ( (*(_BYTE *)&v47.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v47.__r_.__value_.__l.__data_); strcpy((char *)&v44, "\n14251"); cocos2d::ZipUtils::base64EncodeEnc(__dst, v40, &v44, v23); if ( (*(_BYTE *)&v40->__r_.__value_.__s.0 & 1) != 0 ) operator delete(v40->__r_.__value_.__l.__data_); v40->__r_.__value_.__r.__words[2] = __dst[0].__r_.__value_.__r.__words[2]; v24 = *(__m128 *)&__dst[0].__r_.__value_.__l.0; *(_OWORD *)&v40->__r_.__value_.__l.0 = *(_OWORD *)&__dst[0].__r_.__value_.__l.0; *(_WORD *)&__dst[0].__r_.__value_.__l.0 = 0; if ( (v44 & 1) != 0 ) operator delete(v45); GameLevelManager::getBasePostString(__dst, v24); v25 = (cocos2d::CCString *)sub_1007AB580("%c%s%s%c%c%s", (char)"7"); cocos2d::CCString::getCString(v25); v26 = (cocos2d::CCString *)sub_1007AB580("&toAccountID=%i&subject=%s&body=%s&secret=%s", v39); v27 = cocos2d::CCString::getCString(v26); std::string::append(__dst, v27); v46.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x40u); v46.__r_.__value_.__r.__words[0] = 65; v46.__r_.__value_.__l.__size_ = 56; strcpy(v46.__r_.__value_.__l.__data_, "https://www.boomlings.com/database/uploadGJMessage20.php"); v42 = v7; if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) v28 = __dst[0].__r_.__value_.__l.__data_; else v28 = __dst[0].__r_.__value_.__s.__data_; v29 = strlen(v28); if ( v29 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(2.057594829120962e-81); v30 = v29; v31 = CString; if ( v29 >= 0x17 ) { v33 = 26; if ( (v29 | 7) != 0x17 ) v33 = (v29 | 7) + 1; v32 = (char *)operator new(v33); v49 = v32; v48[0] = v33 | 1; v48[1] = v30; goto LABEL_43; } LOBYTE(v48[0]) = 2 * v29; v32 = (char *)v48 + 1; if ( v29 ) LABEL_43: memmove(v32, v28, v30); v32[v30] = 0; v34 = strlen(v31); if ( v34 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(2.057594829120962e-81); v35 = v34; if ( v34 >= 0x17 ) { v37 = 26; if ( (v34 | 7) != 0x17 ) v37 = (v34 | 7) + 1; v36 = (char *)operator new(v37); v51 = v36; v50[0] = v37 | 1; v50[1] = v35; goto LABEL_51; } LOBYTE(v50[0]) = 2 * v34; v36 = (char *)v50 + 1; if ( v34 ) LABEL_51: memmove(v36, v31, v35); v36[v35] = 0; GameLevelManager::ProcessHttpRequest(v42, &v46, (__int64)v48, (__int64)v50, 40); if ( (v50[0] & 1) == 0 ) { if ( (v48[0] & 1) == 0 ) goto LABEL_54; LABEL_59: operator delete(v49); if ( (*(_BYTE *)&v46.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_55: if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) == 0 ) return; goto LABEL_56; } goto LABEL_60; } operator delete(v51); if ( (v48[0] & 1) != 0 ) goto LABEL_59; LABEL_54: if ( (*(_BYTE *)&v46.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_55; LABEL_60: operator delete(v46.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) LABEL_56: operator delete(__dst[0].__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source