// // GameLevelManager::updateDescription from 0x100556ba0 to 0x100557037 (1175 bytes) // // 1 xrefs: // > EditLevelLayer::FLAlert_Clicked @ 0x1001fe2f8 // // 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 // bool __fastcall GameLevelManager::updateDescription(__int64 a1, int a2, __int64 a3, __m128 a4) { __int64 v5; // r14 cocos2d::CCString *v6; // rax char *CString; // r12 size_t v8; // rax std::string::size_type v9; // r15 char *data; // r13 size_t v11; // r14 __int64 v12; // rbx __int64 v13; // r15 size_t v14; // rax std::string::size_type v15; // r13 char *v16; // rbx char *v17; // r15 __int64 v18; // r12 size_t v19; // r14 std::string::pointer v20; // rdi 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 char *v29; // r12 size_t v30; // rax size_t v31; // rbx char *v32; // r15 size_t v33; // r12 char v35; // [rsp+0h] [rbp-E0h] char v36; // [rsp+0h] [rbp-E0h] __int64 v37; // [rsp+10h] [rbp-D0h] __int64 v38; // [rsp+20h] [rbp-C0h] std::string v39; // [rsp+28h] [rbp-B8h] BYREF std::string v40; // [rsp+40h] [rbp-A0h] BYREF _QWORD v41[2]; // [rsp+60h] [rbp-80h] BYREF void *v42; // [rsp+70h] [rbp-70h] _QWORD v43[2]; // [rsp+78h] [rbp-68h] BYREF void *v44; // [rsp+88h] [rbp-58h] int v45; // [rsp+94h] [rbp-4Ch] char *__s; // [rsp+98h] [rbp-48h] std::string __dst[2]; // [rsp+A0h] [rbp-40h] BYREF v5 = a1; v45 = a2; v6 = (cocos2d::CCString *)sub_1007AB580("desc_%i", v35); CString = (char *)cocos2d::CCString::getCString(v6); v8 = strlen(CString); if ( v8 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_56; v9 = v8; __s = *(char **)(a1 + 608); v37 = a3; if ( v8 >= 0x17 ) { v11 = 26; if ( (v8 | 7) != 0x17 ) v11 = (v8 | 7) + 1; data = (char *)operator new(v11); __dst[0].__r_.__value_.__r.__words[2] = (std::string::size_type)data; __dst[0].__r_.__value_.__r.__words[0] = v11 + 1; v5 = a1; __dst[0].__r_.__value_.__l.__size_ = v9; goto LABEL_8; } __dst[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v8); data = __dst[0].__r_.__value_.__s.__data_; if ( v8 ) LABEL_8: memmove(data, CString, v9); data[v9] = 0; v12 = cocos2d::CCDictionary::objectForKey_1((__int64)__s, (char *)__dst); if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__dst[0].__r_.__value_.__l.__data_); if ( v12 ) return v12 == 0; v13 = *(_QWORD *)(v5 + 608); __s = (char *)cocos2d::CCNode::create(); v14 = strlen(CString); if ( v14 >= 0xFFFFFFFFFFFFFFF8LL ) LABEL_56: sub_100006BF0(*(double *)a4.i64); v15 = v14; if ( v14 >= 0x17 ) { v38 = v13; v17 = CString; v18 = v5; v19 = 26; if ( (v14 | 7) != 0x17 ) v19 = (v14 | 7) + 1; v16 = (char *)operator new(v19); __dst[0].__r_.__value_.__r.__words[2] = (std::string::size_type)v16; __dst[0].__r_.__value_.__r.__words[0] = v19 + 1; v5 = v18; CString = v17; v13 = v38; __dst[0].__r_.__value_.__l.__size_ = v15; goto LABEL_19; } __dst[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v14); v16 = __dst[0].__r_.__value_.__s.__data_; if ( v14 ) LABEL_19: memmove(v16, CString, v15); v16[v15] = 0; v20 = (std::string::pointer)v13; cocos2d::CCDictionary::setObject_1(v13, (cocos2d::CCObject *)__s, (char *)__dst); if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) { v20 = __dst[0].__r_.__value_.__l.__data_; operator delete(__dst[0].__r_.__value_.__l.__data_); } if ( (*(_BYTE *)v37 & 1) != 0 ) { v20 = (std::string::pointer)&v40; sub_100006B70(&v40, *(const void **)(v37 + 16), *(_QWORD *)(v37 + 8), *(double *)a4.i64); } else { v40.__r_.__value_.__r.__words[2] = *(_QWORD *)(v37 + 16); a4 = *(__m128 *)v37; *(_OWORD *)&v40.__r_.__value_.__l.0 = *(_OWORD *)v37; } GameLevelManager::removeDelimiterChars((__int64)v20, &v40, 0); if ( (*(_BYTE *)&v40.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v40.__r_.__value_.__l.__data_); GameLevelManager::getBasePostString(__dst, a4); v21 = (cocos2d::CCString *)sub_1007AB580("%c%s%s%c%c%s", (char)"7"); cocos2d::CCString::getCString(v21); v22 = (cocos2d::CCString *)sub_1007AB580("&levelID=%i&levelDesc=%s&secret=%s", v36); v23 = cocos2d::CCString::getCString(v22); std::string::append(__dst, v23); v39.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x38u); v39.__r_.__value_.__r.__words[0] = 57; v39.__r_.__value_.__l.__size_ = 53; strcpy(v39.__r_.__value_.__l.__data_, "https://www.boomlings.com/database/updateGJDesc20.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; __s = CString; if ( v25 >= 0x17 ) { v28 = 26; if ( (v25 | 7) != 0x17 ) v28 = (v25 | 7) + 1; v27 = (char *)operator new(v28); v42 = v27; v41[0] = v28 | 1; v41[1] = v26; goto LABEL_37; } LOBYTE(v41[0]) = 2 * v25; v27 = (char *)v41 + 1; if ( v25 ) LABEL_37: memmove(v27, v24, v26); v27[v26] = 0; v29 = __s; v30 = strlen(__s); if ( v30 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(2.057594829120962e-81); v31 = v30; if ( v30 >= 0x17 ) { v33 = 26; if ( (v30 | 7) != 0x17 ) v33 = (v30 | 7) + 1; v32 = (char *)operator new(v33); v44 = v32; v43[0] = v33 | 1; v43[1] = v31; v29 = __s; goto LABEL_45; } LOBYTE(v43[0]) = 2 * v30; v32 = (char *)v43 + 1; if ( v30 ) LABEL_45: memmove(v32, v29, v31); v32[v31] = 0; GameLevelManager::ProcessHttpRequest((cocos2d::CCObject *)v5, &v39, (__int64)v41, (__int64)v43, 24); v12 = 0; if ( (v43[0] & 1) != 0 ) { operator delete(v44); if ( (v41[0] & 1) == 0 ) { LABEL_48: if ( (*(_BYTE *)&v39.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_49; LABEL_54: operator delete(v39.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) == 0 ) return v12 == 0; goto LABEL_50; } } else if ( (v41[0] & 1) == 0 ) { goto LABEL_48; } operator delete(v42); if ( (*(_BYTE *)&v39.__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_54; LABEL_49: if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) LABEL_50: operator delete(__dst[0].__r_.__value_.__l.__data_); return v12 == 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source