// // sub_1000C2180 from 0x1000c2180 to 0x1000c24f4 (884 bytes) // // 5 xrefs: // > sub_1000C2170 @ 0x1000c217c // > sub_1000C25A8 @ 0x1000c25b4 // > sub_100138B90 @ 0x100138bcc // > sub_10054AE8C @ 0x10054af74 // > sub_10054AF84 @ 0x10054b0c4 // // 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:47 +0000 // void __fastcall sub_1000C2180(__int64 a1, int a2, int a3, int a4) { int v4; // w22 __int64 v8; // x0 char *CString; // x20 __int64 v10; // x24 __int64 v11; // x0 __int64 v12; // x24 __int64 v13; // x24 __int64 v14; // x25 __int64 v15; // x0 __int64 v16; // x0 const char *v17; // x0 __int64 v18; // x0 const std::string::value_type *v19; // x0 __int64 v20; // x0 const std::string::value_type *v21; // x0 std::string *v22; // x22 __int64 v23; // x0 const std::string::value_type *v24; // x0 __int64 v25; // x0 const std::string::value_type *v26; // x0 __int64 v27; // x0 const std::string::value_type *v28; // x0 std::string *v29; // x8 void *v30[2]; // [xsp+38h] [xbp-E8h] BYREF char v31; // [xsp+4Fh] [xbp-D1h] void *v32[2]; // [xsp+50h] [xbp-D0h] BYREF char v33; // [xsp+67h] [xbp-B9h] std::string v34; // [xsp+68h] [xbp-B8h] BYREF void *__p[2]; // [xsp+80h] [xbp-A0h] BYREF char v36; // [xsp+97h] [xbp-89h] void *v37[2]; // [xsp+98h] [xbp-88h] BYREF char v38; // [xsp+AFh] [xbp-71h] std::string v39; // [xsp+B0h] [xbp-70h] BYREF std::string v40; // [xsp+C8h] [xbp-58h] BYREF v4 = a4; v8 = sub_1003065B0("delcomment_%i_%i_%i", a4, a2, a3); CString = (char *)cocos2d::CCString::getCString(v8); v10 = *(_QWORD *)(a1 + 1088); sub_100009900(&v40, CString); v11 = cocos2d::CCDictionary::objectForKey(v10, &v40); v12 = v11; if ( SHIBYTE(v40.__r_.__value_.__r.__words[2]) < 0 ) { operator delete(v40.__r_.__value_.__l.__data_); if ( v12 ) return; } else if ( v11 ) { return; } v13 = *(_QWORD *)(a1 + 1088); v14 = cocos2d::CCNode::create(v11); sub_100009900(&v40, CString); v15 = cocos2d::CCDictionary::setObject(v13, v14, &v40); if ( SHIBYTE(v40.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v40.__r_.__value_.__l.__data_); GameLevelManager::getBasePostString(v15, &v40); v16 = sub_1003065B0("%c%s%s%c%c%s", 87, "mfd", "2893", 103, 98, "7"); v17 = (const char *)cocos2d::CCString::getCString(v16); v18 = sub_1003065B0("&commentID=%i&secret=%s", a2, v17); v19 = (const std::string::value_type *)cocos2d::CCString::getCString(v18); std::string::append(&v40, v19); if ( a3 == 6 ) goto LABEL_13; if ( !a3 ) { std::string::append(&v40, "&levelID="); v20 = sub_1003065B0("%i", v4); v21 = (const std::string::value_type *)cocos2d::CCString::getCString(v20); std::string::append(&v40, v21); if ( (v40.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v22 = &v40; else v22 = (std::string *)v40.__r_.__value_.__r.__words[0]; goto LABEL_19; } if ( (unsigned int)(a3 - 7) <= 1 ) { LABEL_13: std::string::append(&v40, "&levelID="); v23 = sub_1003065B0("%i", v4); v24 = (const std::string::value_type *)cocos2d::CCString::getCString(v23); std::string::append(&v40, v24); std::string::append(&v40, "&cType="); v4 = a3; } else { std::string::append(&v40, "&cType="); v25 = sub_1003065B0("%i", a3); v26 = (const std::string::value_type *)cocos2d::CCString::getCString(v25); std::string::append(&v40, v26); std::string::append(&v40, "&targetAccountID="); } v27 = sub_1003065B0("%i", v4); v28 = (const std::string::value_type *)cocos2d::CCString::getCString(v27); v22 = &v40; std::string::append(&v40, v28); if ( (v40.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL ) v22 = (std::string *)v40.__r_.__value_.__r.__words[0]; if ( a3 != 6 && (unsigned int)(a3 - 7) > 1 ) { sub_100009900(&v34, "https://www.boomlings.com/database/deleteGJAccComment20.php"); sub_100009900(v32, (char *)v22); sub_100009900(v30, CString); GameLevelManager::ProcessHttpRequest(a1, &v34, (char *)v32, (const std::string::value_type *)v30, 14); if ( v31 < 0 ) operator delete(v30[0]); if ( v33 < 0 ) operator delete(v32[0]); if ( (SHIBYTE(v34.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 ) goto LABEL_26; v29 = &v34; goto LABEL_25; } LABEL_19: sub_100009900(&v39, "https://www.boomlings.com/database/deleteGJComment20.php"); sub_100009900(v37, (char *)v22); sub_100009900(__p, CString); GameLevelManager::ProcessHttpRequest(a1, &v39, (char *)v37, (const std::string::value_type *)__p, 14); if ( v36 < 0 ) operator delete(__p[0]); if ( v38 < 0 ) operator delete(v37[0]); if ( (SHIBYTE(v39.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 ) goto LABEL_26; v29 = &v39; LABEL_25: operator delete(v29->__r_.__value_.__l.__data_); LABEL_26: if ( SHIBYTE(v40.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v40.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source