// // sub_1005707A0 from 0x1005707a0 to 0x100570bd7 (1079 bytes) // // 1 xrefs: // > AccountReviewPopup::requestPage @ 0x10099bb57 // // 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 sub_1005707A0(__int64 a1, int a2, int a3, int a4) { __int64 v6; // r12 __int64 v7; // rax const char *CString; // r13 size_t v9; // rax std::string::size_type v10; // r15 char *data; // r14 size_t v12; // r12 __int64 v13; // rbx __int64 v15; // rbx void *v16; // r14 size_t v17; // rax std::string::size_type v18; // r15 char *v19; // r14 size_t v20; // r12 __int64 v21; // rax __int64 v22; // rax const std::string::value_type *v23; // rax const char *v24; // rbx size_t v25; // rax size_t v26; // r15 char *v27; // r12 size_t v28; // r14 size_t v29; // rax size_t v30; // rbx char *v31; // r15 size_t v32; // r14 char v33; // [rsp+0h] [rbp-B0h] char v34; // [rsp+0h] [rbp-B0h] __int64 v35; // [rsp+8h] [rbp-A8h] std::string v36; // [rsp+10h] [rbp-A0h] BYREF _QWORD v37[2]; // [rsp+28h] [rbp-88h] BYREF void *v38; // [rsp+38h] [rbp-78h] __int128 v39; // [rsp+40h] [rbp-70h] BYREF void *v40; // [rsp+50h] [rbp-60h] int v41; // [rsp+5Ch] [rbp-54h] int v42; // [rsp+60h] [rbp-50h] int v43; // [rsp+64h] [rbp-4Ch] __int64 v44; // [rsp+68h] [rbp-48h] std::string __dst[2]; // [rsp+70h] [rbp-40h] BYREF if ( a2 <= 0 || a3 < 0 ) return 0; v6 = a1; v41 = a2; v7 = sub_10088E820("adminAbuse_%i", v33); CString = (const char *)cocos2d::CCString::getCString(v7); v44 = *(_QWORD *)(a1 + 1088); v9 = strlen(CString); if ( v9 >= 0xFFFFFFFFFFFFFFF8LL ) LABEL_53: sub_100003630(); v10 = v9; v43 = a3; v42 = a4; if ( v9 >= 0x17 ) { v12 = 26; if ( (v9 | 7) != 0x17 ) v12 = (v9 | 7) + 1; data = (char *)operator new(v12); __dst[0].__r_.__value_.__r.__words[2] = (std::string::size_type)data; __dst[0].__r_.__value_.__r.__words[0] = v12 + 1; v6 = a1; __dst[0].__r_.__value_.__l.__size_ = v10; goto LABEL_9; } __dst[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v9); data = __dst[0].__r_.__value_.__s.__data_; if ( v9 ) LABEL_9: memmove(data, CString, v10); data[v10] = 0; v13 = cocos2d::CCDictionary::objectForKey(v44, (char *)__dst); if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__dst[0].__r_.__value_.__l.__data_); if ( v13 ) return 0; v15 = *(_QWORD *)(v6 + 1088); v16 = cocos2d::CCNode::create(); v17 = strlen(CString); if ( v17 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_53; v18 = v17; v44 = (__int64)v16; v35 = v6; 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_21; } __dst[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v17); v19 = __dst[0].__r_.__value_.__s.__data_; if ( v17 ) LABEL_21: memmove(v19, CString, v18); v19[v18] = 0; cocos2d::CCDictionary::setObject(v15, v44, (char *)__dst); if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__dst[0].__r_.__value_.__l.__data_); GameLevelManager::getBasePostString(__dst); v21 = sub_10088E820("%c%s%s%c%c%s", (char)"7"); cocos2d::CCString::getCString(v21); v22 = sub_10088E820("&targetAccountID=%i&page=%i&history=%i&secret=%s", v34); v23 = (const std::string::value_type *)cocos2d::CCString::getCString(v22); std::string::append(__dst, v23); v36.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x40u); v36.__r_.__value_.__r.__words[0] = 65; v36.__r_.__value_.__l.__size_ = 56; strcpy(v36.__r_.__value_.__l.__data_, "https://www.boomlings.com/database/adminGetAbuseInfo.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_100003630(); 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_34; } LOBYTE(v37[0]) = 2 * v25; v27 = (char *)v37 + 1; if ( v25 ) LABEL_34: memmove(v27, v24, v26); v27[v26] = 0; v29 = strlen(CString); if ( v29 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v30 = v29; if ( v29 >= 0x17 ) { v32 = 26; if ( (v29 | 7) != 0x17 ) v32 = (v29 | 7) + 1; v31 = (char *)operator new(v32); v40 = v31; *(_QWORD *)&v39 = v32 | 1; *((_QWORD *)&v39 + 1) = v30; goto LABEL_42; } LOBYTE(v39) = 2 * v29; v31 = (char *)&v39 + 1; if ( v29 ) LABEL_42: memmove(v31, CString, v30); v31[v30] = 0; GameLevelManager::ProcessHttpRequest(v35, &v36, (__int64)v37, &v39, 0x58u); if ( (v39 & 1) != 0 ) { operator delete(v40); if ( (v37[0] & 1) == 0 ) { LABEL_45: if ( (*(_BYTE *)&v36.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_46; LABEL_51: operator delete(v36.__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 *)&v36.__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