// // sub_100581860 from 0x100581860 to 0x100581c9f (1087 bytes) // // 1 xrefs: // > ReportPopup::FLAlert_Clicked @ 0x1009674b7 // // 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:20 +0000 // void __fastcall sub_100581860(__int64 a1, __int64 a2, int a3, __int64 a4, __int64 *a5, __int64 a6) { __int64 v7; // rax __int64 v8; // rax char *v9; // r15 __int64 v10; // rax __int64 v11; // rax const char *CString; // rbx size_t v13; // rax std::string::size_type v14; // r14 char *data; // r12 __int64 v16; // rax const std::string::value_type *v17; // rax const char *v18; // rbx size_t v19; // r13 size_t v20; // rax size_t v21; // r14 char *v22; // r15 size_t v23; // r12 __int64 v24; // rax const char *v25; // rbx size_t v26; // rax size_t v27; // r14 char *v28; // r15 size_t v29; // r12 char v30; // [rsp+0h] [rbp-E0h] std::string v32; // [rsp+20h] [rbp-C0h] BYREF std::string v33; // [rsp+38h] [rbp-A8h] BYREF _QWORD v34[2]; // [rsp+50h] [rbp-90h] BYREF void *v35; // [rsp+60h] [rbp-80h] __int128 v36; // [rsp+68h] [rbp-78h] BYREF void *v37; // [rsp+78h] [rbp-68h] __int128 v38; // [rsp+80h] [rbp-60h] BYREF void *__p; // [rsp+90h] [rbp-50h] std::string __dst; // [rsp+98h] [rbp-48h] BYREF int v41; // [rsp+B4h] [rbp-2Ch] v41 = a3; if ( *a5 == a5[1] ) return; sub_10056F010(&v32, a5); GJAccountManager::sharedState((__int64)&v32, (__int64)a5); v7 = GJAccountManager::sharedState((__int64)&v32, (__int64)a5); if ( (*(_BYTE *)(v7 + 368) & 1) != 0 ) { sub_10001AD30(&v38, *(const void **)(v7 + 384), *(_QWORD *)(v7 + 376)); } else { v8 = v7 + 368; __p = *(void **)(v8 + 16); v38 = *(_OWORD *)v8; } if ( (v38 & 1) != 0 ) LOBYTE(v9) = (_BYTE)__p; else v9 = (char *)&v38 + 1; v10 = sub_10088E820("%c%s%s%c%c%s", (char)"7"); cocos2d::CCString::getCString(v10); v11 = sub_10088E820("type=%i&targetID=%i&special=%i&reasons=%s&accountID=%i&gjp2=%s&secret=%s", (char)v9); CString = (const char *)cocos2d::CCString::getCString(v11); v13 = strlen(CString); if ( v13 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v14 = v13; if ( v13 >= 0x17 ) { v19 = 26; if ( (v13 | 7) != 0x17 ) v19 = (v13 | 7) + 1; data = (char *)operator new(v19); __dst.__r_.__value_.__r.__words[2] = (std::string::size_type)data; __dst.__r_.__value_.__r.__words[0] = v19 | 1; __dst.__r_.__value_.__l.__size_ = v14; } else { __dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v13); data = __dst.__r_.__value_.__s.__data_; if ( !v13 ) { __dst.__r_.__value_.__s.__data_[0] = 0; if ( (v38 & 1) == 0 ) goto LABEL_13; goto LABEL_12; } } memmove(data, CString, v14); data[v14] = 0; if ( (v38 & 1) != 0 ) LABEL_12: operator delete(__p); LABEL_13: if ( a6 > 0 ) { v16 = sub_10088E820("&messageID=%lli", v30); v17 = (const std::string::value_type *)cocos2d::CCString::getCString(v16); std::string::append(&__dst, v17); } v33.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x38u); v33.__r_.__value_.__r.__words[0] = 57; v33.__r_.__value_.__l.__size_ = 54; strcpy(v33.__r_.__value_.__l.__data_, "https://www.boomlings.com/database/reportGJContent.php"); if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 ) v18 = __dst.__r_.__value_.__l.__data_; else v18 = __dst.__r_.__value_.__s.__data_; v20 = strlen(v18); if ( v20 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v21 = v20; if ( v20 >= 0x17 ) { v23 = 26; if ( (v20 | 7) != 0x17 ) v23 = (v20 | 7) + 1; v22 = (char *)operator new(v23); v35 = v22; v34[0] = v23 | 1; v34[1] = v21; goto LABEL_30; } LOBYTE(v34[0]) = 2 * v20; v22 = (char *)v34 + 1; if ( v20 ) LABEL_30: memmove(v22, v18, v21); v22[v21] = 0; v24 = sub_10088E820("%i", v30); v25 = (const char *)cocos2d::CCString::getCString(v24); v26 = strlen(v25); if ( v26 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v27 = v26; if ( v26 >= 0x17 ) { v29 = 26; if ( (v26 | 7) != 0x17 ) v29 = (v26 | 7) + 1; v28 = (char *)operator new(v29); v37 = v28; *(_QWORD *)&v36 = v29 | 1; *((_QWORD *)&v36 + 1) = v27; goto LABEL_38; } LOBYTE(v36) = 2 * v26; v28 = (char *)&v36 + 1; if ( v26 ) LABEL_38: memmove(v28, v25, v27); v28[v27] = 0; GameLevelManager::ProcessHttpRequest(a1, &v33, (__int64)v34, &v36, 0x14u); if ( (v36 & 1) != 0 ) { operator delete(v37); if ( (v34[0] & 1) == 0 ) { LABEL_41: if ( (*(_BYTE *)&v33.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_42; LABEL_48: operator delete(v33.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_43: if ( (*(_BYTE *)&v32.__r_.__value_.__s.0 & 1) == 0 ) return; goto LABEL_44; } goto LABEL_49; } } else if ( (v34[0] & 1) == 0 ) { goto LABEL_41; } operator delete(v35); if ( (*(_BYTE *)&v33.__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_48; LABEL_42: if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_43; LABEL_49: operator delete(__dst.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v32.__r_.__value_.__s.0 & 1) != 0 ) LABEL_44: operator delete(v32.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source