// // GameLevelManager::sendAdminAction from 0x10056e960 to 0x10056ee15 (1205 bytes) // // 16 xrefs: // > GameLevelManager::adminDeleteUserComments @ 0x10056efc4 // > sub_10056F100 @ 0x10056f22e // > GameLevelManager::adminCommentUnban @ 0x10056f2e6 // > sub_10056F330 @ 0x10056f45e // > sub_10056F4B0 @ 0x10056f516 // > sub_100571150 @ 0x100571268 // > sub_100571830 @ 0x10057195e // > sub_1005719B0 @ 0x100571a16 // > sub_100571A60 @ 0x100571b8e // > sub_100571BE0 @ 0x100571c46 // > sub_100571C90 @ 0x100571ce8 // > sub_100571D30 @ 0x100571d96 // > sub_100571DE0 @ 0x100571e38 // > sub_100571E80 @ 0x100571ee6 // > sub_100571F30 @ 0x100571f96 // > sub_100571FE0 @ 0x100572046 // // 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:14 +0000 // char __fastcall GameLevelManager::sendAdminAction( __int64 a1, const char *a2, const char *a3, unsigned int a4, int a5, unsigned __int8 *a6, std::string *a7, _QWORD *a8) { char *v10; // rbx __int64 v11; // r13 size_t v12; // rax std::string::size_type v13; // r12 char *data; // r15 size_t v15; // r13 __int64 v16; // r14 __int64 v18; // r14 char *v19; // r15 size_t v20; // rax std::string::size_type v21; // r12 char *v22; // r15 char *v23; // r14 __int64 v24; // rbx size_t v25; // r13 __int64 v26; // rax const std::string::value_type *CString; // rax unsigned int v28; // edx std::string::size_type v29; // rdx const std::string::value_type *v30; // rbx __int64 v31; // rax __int64 v32; // rax const std::string::value_type *v33; // rax size_t v34; // rax std::string::size_type v35; // rbx char *v36; // r14 const char *v37; // rbx size_t v38; // r15 size_t v39; // rax size_t v40; // r14 char *v41; // r12 size_t v42; // r15 size_t v43; // rax size_t v44; // rbx char *v45; // r14 size_t v46; // r15 char v47; // [rsp+0h] [rbp-C0h] char v48; // [rsp+0h] [rbp-C0h] unsigned __int8 *v50; // [rsp+18h] [rbp-A8h] __int64 v51; // [rsp+20h] [rbp-A0h] std::string v52; // [rsp+28h] [rbp-98h] BYREF _QWORD v53[2]; // [rsp+40h] [rbp-80h] BYREF void *v54; // [rsp+50h] [rbp-70h] __int128 v55; // [rsp+58h] [rbp-68h] BYREF void *v56; // [rsp+68h] [rbp-58h] int v57; // [rsp+70h] [rbp-50h] unsigned int v58; // [rsp+74h] [rbp-4Ch] char *v59; // [rsp+78h] [rbp-48h] std::string __dst[2]; // [rsp+80h] [rbp-40h] BYREF if ( a5 <= 0 ) return 0; v10 = (char *)a2; v11 = a1; v58 = a4; v59 = *(char **)(a1 + 1088); v12 = strlen(a2); if ( v12 >= 0xFFFFFFFFFFFFFFF8LL ) LABEL_63: sub_100003630(); v13 = v12; v57 = a5; v50 = a6; if ( v12 >= 0x17 ) { v15 = 26; if ( (v12 | 7) != 0x17 ) v15 = (v12 | 7) + 1; data = (char *)operator new(v15); __dst[0].__r_.__value_.__r.__words[2] = (std::string::size_type)data; __dst[0].__r_.__value_.__r.__words[0] = v15 + 1; v11 = a1; v10 = (char *)a2; __dst[0].__r_.__value_.__l.__size_ = v13; goto LABEL_9; } __dst[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v12); data = __dst[0].__r_.__value_.__s.__data_; if ( v12 ) LABEL_9: memcpy(data, v10, v13); data[v13] = 0; v16 = cocos2d::CCDictionary::objectForKey((__int64)v59, (char *)__dst); if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__dst[0].__r_.__value_.__l.__data_); if ( v16 ) return 0; v18 = *(_QWORD *)(v11 + 1088); v19 = (char *)cocos2d::CCNode::create(); v20 = strlen(v10); if ( v20 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_63; v21 = v20; v59 = v19; if ( v20 >= 0x17 ) { v51 = v18; v23 = v10; v24 = v11; v25 = 26; if ( (v20 | 7) != 0x17 ) v25 = (v20 | 7) + 1; v22 = (char *)operator new(v25); __dst[0].__r_.__value_.__r.__words[2] = (std::string::size_type)v22; __dst[0].__r_.__value_.__r.__words[0] = v25 + 1; v11 = v24; v10 = v23; v18 = v51; __dst[0].__r_.__value_.__l.__size_ = v21; goto LABEL_21; } __dst[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v20); v22 = __dst[0].__r_.__value_.__s.__data_; if ( v20 ) LABEL_21: memcpy(v22, v10, v21); v22[v21] = 0; cocos2d::CCDictionary::setObject(v18, (__int64)v59, (char *)__dst); v59 = v10; if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__dst[0].__r_.__value_.__l.__data_); GameLevelManager::getBasePostString(__dst); v26 = sub_10088E820("&targetAccountID=%i", v47); CString = (const std::string::value_type *)cocos2d::CCString::getCString(v26); std::string::append(__dst, CString); v28 = *v50; if ( (v28 & 1) != 0 ) { v29 = *((_QWORD *)v50 + 1); v30 = *((const std::string::value_type **)v50 + 2); } else { v30 = (const std::string::value_type *)(v50 + 1); v29 = v28 >> 1; } std::string::append(__dst, v30, v29); v31 = sub_10088E820("%c%s%s%c%c%s", (char)"7"); cocos2d::CCString::getCString(v31); v32 = sub_10088E820("&secret=%s", v48); v33 = (const std::string::value_type *)cocos2d::CCString::getCString(v32); std::string::append(__dst, v33); GameLevelManager::appendModReason((__int64)__dst, __dst, a7, a8); v34 = strlen(a3); if ( v34 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v35 = v34; if ( v34 >= 0x17 ) { v38 = 26; if ( (v34 | 7) != 0x17 ) v38 = (v34 | 7) + 1; v36 = (char *)operator new(v38); v52.__r_.__value_.__r.__words[2] = (std::string::size_type)v36; v52.__r_.__value_.__r.__words[0] = v38 | 1; v52.__r_.__value_.__l.__size_ = v35; LABEL_35: memcpy(v36, a3, v35); v36[v35] = 0; if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_31; goto LABEL_36; } v52.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v34); v36 = v52.__r_.__value_.__s.__data_; if ( v34 ) goto LABEL_35; v52.__r_.__value_.__s.__data_[0] = 0; if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) { LABEL_31: v37 = __dst[0].__r_.__value_.__l.__data_; goto LABEL_37; } LABEL_36: v37 = __dst[0].__r_.__value_.__s.__data_; LABEL_37: v39 = strlen(v37); if ( v39 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v40 = v39; if ( v39 >= 0x17 ) { v42 = 26; if ( (v39 | 7) != 0x17 ) v42 = (v39 | 7) + 1; v41 = (char *)operator new(v42); v54 = v41; v53[0] = v42 | 1; v53[1] = v40; goto LABEL_44; } LOBYTE(v53[0]) = 2 * v39; v41 = (char *)v53 + 1; if ( v39 ) LABEL_44: memmove(v41, v37, v40); v41[v40] = 0; v43 = strlen(v59); if ( v43 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v44 = v43; if ( v43 >= 0x17 ) { v46 = 26; if ( (v43 | 7) != 0x17 ) v46 = (v43 | 7) + 1; v45 = (char *)operator new(v46); v56 = v45; *(_QWORD *)&v55 = v46 | 1; *((_QWORD *)&v55 + 1) = v44; goto LABEL_52; } LOBYTE(v55) = 2 * v43; v45 = (char *)&v55 + 1; if ( v43 ) LABEL_52: memcpy(v45, v59, v44); v45[v44] = 0; GameLevelManager::ProcessHttpRequest(v11, &v52, (__int64)v53, &v55, v58); if ( (v55 & 1) != 0 ) { operator delete(v56); if ( (v53[0] & 1) == 0 ) { LABEL_55: if ( (*(_BYTE *)&v52.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_56; LABEL_61: operator delete(v52.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) == 0 ) return 1; goto LABEL_57; } } else if ( (v53[0] & 1) == 0 ) { goto LABEL_55; } operator delete(v54); if ( (*(_BYTE *)&v52.__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_61; LABEL_56: if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) LABEL_57: operator delete(__dst[0].__r_.__value_.__l.__data_); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source