// // sub_1005712B0 from 0x1005712b0 to 0x100571781 (1233 bytes) // // 3 xrefs: // > sub_10093A6C0 @ 0x10093a73c // > ThreadOptionsPopup::FLAlert_Clicked @ 0x10094ac69 // > sub_1009A3B10 @ 0x1009a3bd5 // // 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 sub_1005712B0(__int64 a1, int a2, __int64 a3) { __int64 v4; // rax const char *CString; // r12 __int64 v6; // rbx size_t v7; // rax std::string::size_type v8; // r15 char *data; // r14 size_t v10; // r13 __int64 v11; // rbx __int64 v13; // rbx void *v14; // r14 size_t v15; // rax std::string::size_type v16; // r15 char *v17; // r14 size_t v18; // r13 __int64 v19; // rax __int64 v20; // rax const std::string::value_type *v21; // rax const char *v22; // rbx size_t v23; // rax size_t v24; // r15 const char *v25; // r13 char *v26; // r12 size_t v27; // r14 size_t v28; // rax size_t v29; // rbx char *v30; // r15 size_t v31; // r14 char v32; // [rsp+0h] [rbp-C0h] char v33; // [rsp+0h] [rbp-C0h] __int64 v34; // [rsp+18h] [rbp-A8h] std::string v35; // [rsp+20h] [rbp-A0h] BYREF __int64 v36; // [rsp+38h] [rbp-88h] _QWORD v37[2]; // [rsp+40h] [rbp-80h] BYREF void *v38; // [rsp+50h] [rbp-70h] __int128 v39; // [rsp+58h] [rbp-68h] BYREF void *v40; // [rsp+68h] [rbp-58h] int v41; // [rsp+74h] [rbp-4Ch] __int64 v42; // [rsp+78h] [rbp-48h] std::string __dst[2]; // [rsp+80h] [rbp-40h] BYREF v42 = a1; if ( a2 <= 0 ) return 0; v41 = a2; v4 = sub_10088E820("adminThread_%i_%i", v32); CString = (const char *)cocos2d::CCString::getCString(v4); v6 = *(_QWORD *)(v42 + 1088); v7 = strlen(CString); if ( v7 >= 0xFFFFFFFFFFFFFFF8LL ) LABEL_53: sub_100003630(); v8 = v7; v36 = a3; if ( v7 >= 0x17 ) { v10 = 26; if ( (v7 | 7) != 0x17 ) v10 = (v7 | 7) + 1; data = (char *)operator new(v10); __dst[0].__r_.__value_.__r.__words[2] = (std::string::size_type)data; __dst[0].__r_.__value_.__r.__words[0] = v10 + 1; __dst[0].__r_.__value_.__l.__size_ = v8; goto LABEL_9; } __dst[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v7); data = __dst[0].__r_.__value_.__s.__data_; if ( v7 ) LABEL_9: memmove(data, CString, v8); data[v8] = 0; v11 = cocos2d::CCDictionary::objectForKey(v6, (char *)__dst); if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__dst[0].__r_.__value_.__l.__data_); if ( v11 ) return 0; v13 = *(_QWORD *)(v42 + 1088); v14 = cocos2d::CCNode::create(); v15 = strlen(CString); if ( v15 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_53; v16 = v15; v34 = (__int64)v14; if ( v15 >= 0x17 ) { v18 = 26; if ( (v15 | 7) != 0x17 ) v18 = (v15 | 7) + 1; v17 = (char *)operator new(v18); __dst[0].__r_.__value_.__r.__words[2] = (std::string::size_type)v17; __dst[0].__r_.__value_.__r.__words[0] = v18 + 1; __dst[0].__r_.__value_.__l.__size_ = v16; goto LABEL_21; } __dst[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v15); v17 = __dst[0].__r_.__value_.__s.__data_; if ( v15 ) LABEL_21: memmove(v17, CString, v16); v17[v16] = 0; cocos2d::CCDictionary::setObject(v13, v34, (char *)__dst); if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__dst[0].__r_.__value_.__l.__data_); GameLevelManager::getBasePostString(__dst); v19 = sub_10088E820("%c%s%s%c%c%s", (char)"7"); cocos2d::CCString::getCString(v19); v20 = sub_10088E820("&threadID=%i&action=%s&messageID=%lli&secret=%s", v33); v21 = (const std::string::value_type *)cocos2d::CCString::getCString(v20); std::string::append(__dst, v21); v35.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x40u); v35.__r_.__value_.__r.__words[0] = 65; v35.__r_.__value_.__l.__size_ = 56; strcpy(v35.__r_.__value_.__l.__data_, "https://www.boomlings.com/database/adminThreadAction.php"); if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) v22 = __dst[0].__r_.__value_.__l.__data_; else v22 = __dst[0].__r_.__value_.__s.__data_; v23 = strlen(v22); if ( v23 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v24 = v23; v25 = CString; if ( v23 >= 0x17 ) { v27 = 26; if ( (v23 | 7) != 0x17 ) v27 = (v23 | 7) + 1; v26 = (char *)operator new(v27); v38 = v26; v37[0] = v27 | 1; v37[1] = v24; goto LABEL_34; } LOBYTE(v37[0]) = 2 * v23; v26 = (char *)v37 + 1; if ( v23 ) LABEL_34: memmove(v26, v22, v24); v26[v24] = 0; v28 = strlen(v25); if ( v28 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v29 = v28; if ( v28 >= 0x17 ) { v31 = 26; if ( (v28 | 7) != 0x17 ) v31 = (v28 | 7) + 1; v30 = (char *)operator new(v31); v40 = v30; *(_QWORD *)&v39 = v31 | 1; *((_QWORD *)&v39 + 1) = v29; goto LABEL_42; } LOBYTE(v39) = 2 * v28; v30 = (char *)&v39 + 1; if ( v28 ) LABEL_42: memmove(v30, v25, v29); v30[v29] = 0; GameLevelManager::ProcessHttpRequest(v42, &v35, (__int64)v37, &v39, 0x64u); if ( (v39 & 1) != 0 ) { operator delete(v40); if ( (v37[0] & 1) == 0 ) { LABEL_45: if ( (*(_BYTE *)&v35.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_46; LABEL_51: operator delete(v35.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) == 0 ) return 1; goto LABEL_47; } } else if ( (v37[0] & 1) == 0 ) { goto LABEL_45; } operator delete(v38); if ( (*(_BYTE *)&v35.__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_51; LABEL_46: if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) LABEL_47: operator delete(__dst[0].__r_.__value_.__l.__data_); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source