// // GameLevelManager::suggestLevelStars from 0x100547360 to 0x100547791 (1073 bytes) // // 2 xrefs: // > RateStarsLayer::onClose @ 0x10028c640 // > GJRateLevelLayer::onRate @ 0x100506757 // // 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::suggestLevelStars(GameLevelManager *a1, int a2, int a3, int a4) { __m128 v4; // xmm0 GameLevelManager *v7; // rbx cocos2d::CCString *v8; // rax const char *CString; // r14 size_t v10; // rax std::string::size_type v11; // r12 char *data; // r13 size_t v13; // rbx __int64 v14; // r15 __int64 v15; // r15 cocos2d::CCNode *v16; // r13 size_t v17; // rax std::string::size_type v18; // r12 char *v19; // r13 size_t v20; // rbx cocos2d::CCString *v21; // rax cocos2d::CCString *v22; // rax const char *v23; // rax const char *v24; // rbx size_t v25; // rax size_t v26; // r15 char *v27; // r12 size_t v28; // r13 size_t v29; // rax size_t v30; // rbx char *v31; // r15 size_t v32; // r12 char v33; // [rsp+0h] [rbp-C0h] char v34; // [rsp+0h] [rbp-C0h] cocos2d::CCObject *v35; // [rsp+10h] [rbp-B0h] std::string v36; // [rsp+20h] [rbp-A0h] BYREF _QWORD v37[2]; // [rsp+38h] [rbp-88h] BYREF void *v38; // [rsp+48h] [rbp-78h] _QWORD v39[2]; // [rsp+50h] [rbp-70h] BYREF void *v40; // [rsp+60h] [rbp-60h] int v41; // [rsp+6Ch] [rbp-54h] int v42; // [rsp+70h] [rbp-50h] int v43; // [rsp+74h] [rbp-4Ch] cocos2d::CCDictionary *m_friendReqAndUserBlocks; // [rsp+78h] [rbp-48h] std::string __dst[2]; // [rsp+80h] [rbp-40h] BYREF v7 = a1; v41 = a2; v8 = (cocos2d::CCString *)sub_1007AB580("suggest_%i_%i_%i", v33); CString = cocos2d::CCString::getCString(v8); m_friendReqAndUserBlocks = a1->m_friendReqAndUserBlocks; v10 = strlen(CString); if ( v10 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_51; v11 = v10; v43 = a3; v42 = 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_51: sub_100006BF0(*(double *)v4.i64); v18 = v17; m_friendReqAndUserBlocks = (cocos2d::CCDictionary *)v16; v35 = v7; if ( v17 >= 0x17 ) { v20 = 26; if ( (v17 | 7) != 0x17 ) v20 = (v17 | 7) + 1; v19 = (char *)operator new(v20); __dst[0].__r_.__value_.__r.__words[2] = (std::string::size_type)v19; __dst[0].__r_.__value_.__r.__words[0] = v20 + 1; __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::getBasePostString(__dst, v4); v21 = (cocos2d::CCString *)sub_1007AB580("%c%s%s%c%c%s", (char)"3"); cocos2d::CCString::getCString(v21); v22 = (cocos2d::CCString *)sub_1007AB580("&levelID=%i&stars=%i&feature=%i&secret=%s", v34); v23 = cocos2d::CCString::getCString(v22); std::string::append(__dst, v23); v36.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x38u); v36.__r_.__value_.__r.__words[0] = 57; v36.__r_.__value_.__l.__size_ = 55; strcpy(v36.__r_.__value_.__l.__data_, "https://www.boomlings.com/database/suggestGJStars20.php"); if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) v24 = __dst[0].__r_.__value_.__l.__data_; else v24 = __dst[0].__r_.__value_.__s.__data_; v25 = strlen(v24); if ( v25 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(2.057594829120962e-81); v26 = v25; if ( v25 >= 0x17 ) { v28 = 26; if ( (v25 | 7) != 0x17 ) v28 = (v25 | 7) + 1; v27 = (char *)operator new(v28); v38 = v27; v37[0] = v28 | 1; v37[1] = v26; goto LABEL_32; } LOBYTE(v37[0]) = 2 * v25; v27 = (char *)v37 + 1; if ( v25 ) LABEL_32: memmove(v27, v24, v26); v27[v26] = 0; v29 = strlen(CString); if ( v29 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(2.057594829120962e-81); v30 = v29; if ( v29 >= 0x17 ) { v32 = 26; if ( (v29 | 7) != 0x17 ) v32 = (v29 | 7) + 1; v31 = (char *)operator new(v32); v40 = v31; v39[0] = v32 | 1; v39[1] = v30; goto LABEL_40; } LOBYTE(v39[0]) = 2 * v29; v31 = (char *)v39 + 1; if ( v29 ) LABEL_40: memmove(v31, CString, v30); v31[v30] = 0; GameLevelManager::ProcessHttpRequest(v35, &v36, (__int64)v37, (__int64)v39, 45); if ( (v39[0] & 1) == 0 ) { if ( (v37[0] & 1) == 0 ) goto LABEL_43; LABEL_48: operator delete(v38); if ( (*(_BYTE *)&v36.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_44: if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) == 0 ) return; goto LABEL_45; } goto LABEL_49; } operator delete(v40); if ( (v37[0] & 1) != 0 ) goto LABEL_48; LABEL_43: if ( (*(_BYTE *)&v36.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_44; LABEL_49: operator delete(v36.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) LABEL_45: operator delete(__dst[0].__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source