// // GameLevelManager::getThreads from 0x100572960 to 0x100572d3d (989 bytes) // // 1 xrefs: // > MessageThreadsPage::loadPage @ 0x10092a947 // // 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 12:32:15 +0000 // char __fastcall GameLevelManager::getThreads(__int64 a1, int a2, std::string *a3, __int64 a4, unsigned __int8 *a5) { __int64 v7; // rdi __int64 v8; // rbx __int64 v10; // rbx void *v11; // rax __int64 v12; // rax __int64 v13; // rbx __int64 v14; // rax const std::string::value_type *CString; // rax unsigned int v16; // eax const std::string::value_type *data; // rsi std::string::size_type size; // rdx unsigned int v19; // eax const std::string::value_type *v20; // rsi std::string::size_type v21; // rdx const char *v22; // r14 size_t v23; // rax size_t v24; // r15 char *v25; // r12 size_t v26; // r13 char v27; // [rsp+0h] [rbp-D0h] std::string v29; // [rsp+18h] [rbp-B8h] BYREF std::string v30; // [rsp+30h] [rbp-A0h] BYREF __int128 v31; // [rsp+48h] [rbp-88h] BYREF void *v32; // [rsp+58h] [rbp-78h] _QWORD __dst[2]; // [rsp+60h] [rbp-70h] BYREF void *v34; // [rsp+70h] [rbp-60h] std::string v35; // [rsp+78h] [rbp-58h] BYREF std::string v36; // [rsp+90h] [rbp-40h] BYREF if ( a2 < 0 ) return 0; v7 = *(_QWORD *)(a1 + 1088); v36.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)20; strcpy(v36.__r_.__value_.__s.__data_, "getThreads"); v8 = cocos2d::CCDictionary::objectForKey(v7, (char *)&v36); if ( (*(_BYTE *)&v36.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v36.__r_.__value_.__l.__data_); if ( v8 ) return 0; v10 = *(_QWORD *)(a1 + 1088); v11 = cocos2d::CCNode::create(); v36.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)20; strcpy(v36.__r_.__value_.__s.__data_, "getThreads"); cocos2d::CCDictionary::setObject(v10, (__int64)v11, (char *)&v36); if ( (*(_BYTE *)&v36.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v36.__r_.__value_.__l.__data_); GameLevelManager::getBasePostString(&v36); v12 = sub_10088E820("%c%s%s%c%c%s", (char)"7"); v13 = a1; cocos2d::CCString::getCString(v12); v14 = sub_10088E820("&page=%i&filter=%i&removed=1&secret=%s", v27); CString = (const std::string::value_type *)cocos2d::CCString::getCString(v14); std::string::append(&v36, CString); v16 = (unsigned int)a3->__r_.__value_.__l.0; if ( (v16 & 1) != 0 ) { if ( !a3->__r_.__value_.__l.__size_ ) goto LABEL_22; } else if ( !(v16 >> 1) ) { goto LABEL_22; } std::string::append(&v36, "&search="); if ( (*(_BYTE *)&a3->__r_.__value_.__s.0 & 1) != 0 ) sub_10001AD30(&v30, a3->__r_.__value_.__l.__data_, a3->__r_.__value_.__l.__size_); else v30 = *a3; LevelTools::base64EncodeString(&v35, &v30); if ( (*(_BYTE *)&v35.__r_.__value_.__s.0 & 1) != 0 ) { data = v35.__r_.__value_.__l.__data_; size = v35.__r_.__value_.__l.__size_; } else { size = *(_BYTE *)&v35.__r_.__value_.__l.0 >> 1; data = v35.__r_.__value_.__s.__data_; } std::string::append(&v36, data, size); if ( (*(_BYTE *)&v35.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v35.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v30.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v30.__r_.__value_.__l.__data_); LABEL_22: v19 = *a5; if ( (v19 & 1) != 0 ) { if ( !*((_QWORD *)a5 + 1) ) goto LABEL_31; } else if ( !(v19 >> 1) ) { goto LABEL_31; } std::operator+(&v35, "&user=", a5); if ( (*(_BYTE *)&v35.__r_.__value_.__s.0 & 1) != 0 ) { v20 = v35.__r_.__value_.__l.__data_; v21 = v35.__r_.__value_.__l.__size_; } else { v21 = *(_BYTE *)&v35.__r_.__value_.__l.0 >> 1; v20 = v35.__r_.__value_.__s.__data_; } std::string::append(&v36, v20, v21); if ( (*(_BYTE *)&v35.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v35.__r_.__value_.__l.__data_); LABEL_31: v29.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x38u); v29.__r_.__value_.__r.__words[0] = 57; v29.__r_.__value_.__l.__size_ = 51; strcpy(v29.__r_.__value_.__l.__data_, "https://www.boomlings.com/database/getGJThreads.php"); if ( (*(_BYTE *)&v36.__r_.__value_.__s.0 & 1) != 0 ) v22 = v36.__r_.__value_.__l.__data_; else v22 = v36.__r_.__value_.__s.__data_; v23 = strlen(v22); if ( v23 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v24 = v23; if ( v23 >= 0x17 ) { v26 = 26; if ( (v23 | 7) != 0x17 ) v26 = (v23 | 7) + 1; v25 = (char *)operator new(v26); v34 = v25; __dst[0] = v26 | 1; __dst[1] = v24; goto LABEL_41; } LOBYTE(__dst[0]) = 2 * v23; v25 = (char *)__dst + 1; if ( v23 ) LABEL_41: memmove(v25, v22, v24); v25[v24] = 0; LOBYTE(v31) = 20; strcpy((char *)&v31 + 1, "getThreads"); GameLevelManager::ProcessHttpRequest(v13, &v29, (__int64)__dst, &v31, 0x5Cu); if ( (v31 & 1) != 0 ) { operator delete(v32); if ( (__dst[0] & 1) == 0 ) { LABEL_44: if ( (*(_BYTE *)&v29.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_45; LABEL_50: operator delete(v29.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v36.__r_.__value_.__s.0 & 1) == 0 ) return 1; goto LABEL_46; } } else if ( (__dst[0] & 1) == 0 ) { goto LABEL_44; } operator delete(v34); if ( (*(_BYTE *)&v29.__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_50; LABEL_45: if ( (*(_BYTE *)&v36.__r_.__value_.__s.0 & 1) != 0 ) LABEL_46: operator delete(v36.__r_.__value_.__l.__data_); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source