// // sub_1000C4DD0 from 0x1000c4dd0 to 0x1000c5384 (1460 bytes) // // 2 xrefs: // > ThreadViewPopup::onSend @ 0x1004f9d80 // > sub_10050A580 @ 0x10050ae00 // // This function is hookable on this platform (idp: arm, 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 10:58:49 +0000 // __int64 __fastcall sub_1000C4DD0( __int64 a1, int a2, int a3, __int128 *a4, __int64 a5, __int64 a6, __int128 *a7, int a8, __int128 *a9, __int64 a10) { __int64 v18; // x8 int v19; // w21 __int64 result; // x0 __int64 v21; // x8 __int64 v22; // x8 __int64 v23; // x27 __int64 v24; // x0 __int64 v25; // x27 __int64 v26; // x8 __int64 v27; // x19 _BYTE *v28; // x20 __int64 v29; // x27 __int64 v30; // x28 __int64 v31; // x0 __int64 v32; // x0 const char *CString; // x0 __int64 v34; // x0 const std::string::value_type *v35; // x0 const char *v36; // x8 __int64 v37; // x0 const std::string::value_type *v38; // x0 __int64 v39; // x8 const std::string::value_type *v40; // x1 std::string::size_type v41; // x2 __int64 v42; // x8 const std::string::value_type *v43; // x1 std::string::size_type v44; // x2 __int64 v45; // x8 const std::string::value_type *v46; // x1 std::string::size_type v47; // x2 __int64 v48; // x0 const std::string::value_type *v49; // x0 const std::string::value_type *v50; // x1 std::string::size_type v51; // x2 std::string *v52; // x1 __int64 v53; // [xsp+30h] [xbp-180h] void *v54[2]; // [xsp+38h] [xbp-178h] BYREF char v55; // [xsp+4Fh] [xbp-161h] void *v56[2]; // [xsp+50h] [xbp-160h] BYREF char v57; // [xsp+67h] [xbp-149h] std::string v58; // [xsp+68h] [xbp-148h] BYREF void *v59[2]; // [xsp+80h] [xbp-130h] BYREF __int64 v60; // [xsp+90h] [xbp-120h] void *v61[2]; // [xsp+A0h] [xbp-110h] BYREF __int64 v62; // [xsp+B0h] [xbp-100h] __int128 __p; // [xsp+C0h] [xbp-F0h] BYREF __int64 v64; // [xsp+D0h] [xbp-E0h] __int128 v65; // [xsp+E0h] [xbp-D0h] BYREF __int64 v66; // [xsp+F0h] [xbp-C0h] __int128 __dst; // [xsp+100h] [xbp-B0h] BYREF __int64 v68; // [xsp+110h] [xbp-A0h] char *v69; // [xsp+120h] [xbp-90h] BYREF std::string::size_type v70; // [xsp+128h] [xbp-88h] unsigned __int8 v71; // [xsp+137h] [xbp-79h] std::string v72; // [xsp+138h] [xbp-78h] BYREF if ( a2 < 0 ) return 0; v18 = *(unsigned __int8 *)(a5 + 23); if ( (v18 & 0x80u) != 0LL ) v18 = *(_QWORD *)(a5 + 8); if ( !v18 ) { result = 0; if ( a2 || (a8 & 1) != 0 ) return result; goto LABEL_9; } if ( !a2 ) { LABEL_9: if ( a3 <= 0 ) { v21 = *((unsigned __int8 *)a7 + 23); if ( (v21 & 0x80u) != 0LL ) v21 = *((_QWORD *)a7 + 1); if ( !v21 ) return 0; } if ( (a8 & 1) == 0 ) { v22 = *((unsigned __int8 *)a4 + 23); if ( (v22 & 0x80u) != 0LL ) v22 = *((_QWORD *)a4 + 1); if ( !v22 ) return 0; } v19 = 1; goto LABEL_18; } v19 = 0; LABEL_18: v23 = *(_QWORD *)(a1 + 1088); sub_100009900(&v72, "threadSend"); v24 = cocos2d::CCDictionary::objectForKey(v23, &v72); v25 = v24; if ( SHIBYTE(v72.__r_.__value_.__r.__words[2]) < 0 ) { operator delete(v72.__r_.__value_.__l.__data_); if ( v25 ) return 0; } else if ( v24 ) { return 0; } v53 = a5; v26 = a1; v27 = a6; v28 = (_BYTE *)v26; v29 = *(_QWORD *)(v26 + 1088); v30 = cocos2d::CCNode::create(v24); sub_100009900(&v72, "threadSend"); v31 = cocos2d::CCDictionary::setObject(v29, v30, &v72); if ( SHIBYTE(v72.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v72.__r_.__value_.__l.__data_); v28[448] = v19 & a8; v28[449] = v19; v28[450] = 0; GameLevelManager::getBasePostString(v31, &v72); v32 = sub_1003065B0("%c%s%s%c%c%s", 87, "mfd", "2893", 103, 98, "7"); CString = (const char *)cocos2d::CCString::getCString(v32); v34 = sub_1003065B0("&threadID=%i&secret=%s", a2, CString); v35 = (const std::string::value_type *)cocos2d::CCString::getCString(v34); std::string::append(&v72, v35); if ( v19 ) { if ( a8 ) std::string::append(&v72, "&isDM=1"); if ( *((char *)a4 + 23) < 0 ) { sub_1000097D0(&__dst, *(void **)a4, *((_QWORD *)a4 + 1)); } else { __dst = *a4; v68 = *((_QWORD *)a4 + 2); } LevelTools::base64EncodeString(&v69, &__dst); if ( (v71 & 0x80u) == 0 ) v36 = (const char *)&v69; else v36 = v69; v37 = sub_1003065B0("&toAccountID=%i&subject=%s", a3, v36); v38 = (const std::string::value_type *)cocos2d::CCString::getCString(v37); std::string::append(&v72, v38); if ( (char)v71 < 0 ) operator delete(v69); if ( SHIBYTE(v68) < 0 ) operator delete((void *)__dst); v39 = *((unsigned __int8 *)a7 + 23); if ( (v39 & 0x80u) != 0LL ) v39 = *((_QWORD *)a7 + 1); if ( v39 ) { std::string::append(&v72, "&targets="); if ( *((char *)a7 + 23) < 0 ) { sub_1000097D0(&v65, *(void **)a7, *((_QWORD *)a7 + 1)); } else { v65 = *a7; v66 = *((_QWORD *)a7 + 2); } LevelTools::base64EncodeString(&v69, &v65); if ( (v71 & 0x80u) == 0 ) v40 = (const std::string::value_type *)&v69; else v40 = v69; if ( (v71 & 0x80u) == 0 ) v41 = v71; else v41 = v70; std::string::append(&v72, v40, v41); if ( (char)v71 < 0 ) operator delete(v69); if ( SHIBYTE(v66) < 0 ) operator delete((void *)v65); } v42 = *((unsigned __int8 *)a9 + 23); if ( (v42 & 0x80u) != 0LL ) v42 = *((_QWORD *)a9 + 1); if ( v42 ) { std::string::append(&v72, "&description="); if ( *((char *)a9 + 23) < 0 ) { sub_1000097D0(&__p, *(void **)a9, *((_QWORD *)a9 + 1)); } else { __p = *a9; v64 = *((_QWORD *)a9 + 2); } LevelTools::base64EncodeString(&v69, &__p); if ( (v71 & 0x80u) == 0 ) v43 = (const std::string::value_type *)&v69; else v43 = v69; if ( (v71 & 0x80u) == 0 ) v44 = v71; else v44 = v70; std::string::append(&v72, v43, v44); if ( (char)v71 < 0 ) operator delete(v69); if ( SHIBYTE(v64) < 0 ) operator delete((void *)__p); } v45 = *(unsigned __int8 *)(a10 + 23); if ( (v45 & 0x80u) != 0LL ) v45 = *(_QWORD *)(a10 + 8); if ( v45 ) { std::string::append(&v72, "&emote="); if ( *(char *)(a10 + 23) < 0 ) { sub_1000097D0(v61, *(void **)a10, *(_QWORD *)(a10 + 8)); } else { *(_OWORD *)v61 = *(_OWORD *)a10; v62 = *(_QWORD *)(a10 + 16); } LevelTools::base64EncodeString(&v69, v61); if ( (v71 & 0x80u) == 0 ) v46 = (const std::string::value_type *)&v69; else v46 = v69; if ( (v71 & 0x80u) == 0 ) v47 = v71; else v47 = v70; std::string::append(&v72, v46, v47); if ( (char)v71 < 0 ) operator delete(v69); if ( SHIBYTE(v62) < 0 ) operator delete(v61[0]); } } if ( v27 ) { v48 = sub_1003065B0("&token=%llu", v27); v49 = (const std::string::value_type *)cocos2d::CCString::getCString(v48); std::string::append(&v72, v49); } std::string::append(&v72, "&body="); if ( *(char *)(v53 + 23) < 0 ) { sub_1000097D0(v59, *(void **)v53, *(_QWORD *)(v53 + 8)); } else { *(_OWORD *)v59 = *(_OWORD *)v53; v60 = *(_QWORD *)(v53 + 16); } LevelTools::base64EncodeString(&v69, v59); if ( (v71 & 0x80u) == 0 ) v50 = (const std::string::value_type *)&v69; else v50 = v69; if ( (v71 & 0x80u) == 0 ) v51 = v71; else v51 = v70; std::string::append(&v72, v50, v51); if ( (char)v71 < 0 ) operator delete(v69); if ( SHIBYTE(v60) < 0 ) operator delete(v59[0]); sub_100009900(&v58, "https://www.boomlings.com/database/sendGJThreadMessage.php"); if ( (v72.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v52 = &v72; else v52 = (std::string *)v72.__r_.__value_.__r.__words[0]; sub_100009900(v56, (char *)v52); sub_100009900(v54, "threadSend"); GameLevelManager::ProcessHttpRequest((__int64)v28, &v58, (char *)v56, (const std::string::value_type *)v54, 91); if ( v55 < 0 ) operator delete(v54[0]); if ( v57 < 0 ) operator delete(v56[0]); if ( SHIBYTE(v58.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v58.__r_.__value_.__l.__data_); if ( SHIBYTE(v72.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v72.__r_.__value_.__l.__data_); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source