//
// GameLevelManager::deleteComment from 0x823aa8 to 0x824064 (1468 bytes)
//
// 6 xrefs:
// > CommentCell::onDelete @ 0x74cfa8
// > GameLevelManager::deleteLevelComment @ 0x824070
// > GameLevelManager::deleteAccountComment @ 0x824080
// > AccountReviewPopup::deleteFilterEntry @ 0xc40974
// > AccountReviewPopup::deleteEntry @ 0xc41320
// > ??> @ 0x76a20
//
// 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 12:55:02 +0000
//
__int64 __fastcall GameLevelManager::deleteComment(
GameLevelManager *a1,
unsigned int a2,
unsigned int a3,
unsigned int a4)
{
char *v8; // x27
size_t v9; // x0
size_t v10; // x19
__int64 v11; // x28
unsigned __int64 v12; // x0
char *v13; // x3
__int64 v14; // x19
cocos2d::CCNode *v15; // x0
__int64 v17; // x22
cocos2d::CCObject *v18; // x19
size_t v19; // x0
cocos2d::CCString *v20; // x0
__int64 CString; // x0
cocos2d::CCString *v22; // x0
size_t v23; // x0
unsigned int v24; // w22
cocos2d::CCString *v25; // x0
size_t v26; // x0
cocos2d::CCString *v27; // x0
size_t v28; // x0
char *v29; // x19
size_t v30; // x0
size_t v31; // x0
cocos2d::CCString *v32; // x0
size_t v33; // x0
size_t v34; // x0
size_t v35; // x0
cocos2d::CCString *v36; // x0
size_t v37; // x0
char *v38; // [xsp+68h] [xbp+68h]
char *v39; // [xsp+68h] [xbp+68h]
char *v40; // [xsp+68h] [xbp+68h]
char *v41; // [xsp+68h] [xbp+68h]
char *v42; // [xsp+68h] [xbp+68h]
__int64 v43[2]; // [xsp+70h] [xbp+70h] BYREF
void *v44; // [xsp+80h] [xbp+80h]
__int64 v45[2]; // [xsp+88h] [xbp+88h] BYREF
void *v46; // [xsp+98h] [xbp+98h]
__int64 v47[2]; // [xsp+A0h] [xbp+A0h] BYREF
void *v48; // [xsp+B0h] [xbp+B0h]
__int64 v49[2]; // [xsp+B8h] [xbp+B8h] BYREF
void *v50; // [xsp+C8h] [xbp+C8h]
__int64 v51[2]; // [xsp+D0h] [xbp+D0h] BYREF
void *v52; // [xsp+E0h] [xbp+E0h]
__int64 v53[2]; // [xsp+E8h] [xbp+E8h] BYREF
void *v54; // [xsp+F8h] [xbp+F8h]
cocos2d::CCNode *v55; // [xsp+100h] [xbp+100h] BYREF
size_t v56; // [xsp+108h] [xbp+108h]
void *v57; // [xsp+110h] [xbp+110h]
v55 = nullptr;
v8 = (char *)GameLevelManager::getDeleteCommentKey(a1, (const char *)a4);
v56 = 0;
v57 = nullptr;
v9 = strlen(v8);
v10 = v9;
v11 = *((_QWORD *)a1 + 136);
if ( v9 > 0xFFFFFFFFFFFFFFEFLL )
sub_62C79C();
if ( v9 > 0x16 )
{
v12 = (v9 + 16) & 0xFFFFFFFFFFFFFFF0LL;
v55 = (cocos2d::CCNode *)(v12 | 1);
v13 = (char *)operator new(v12);
v57 = v13;
v56 = v10;
LABEL_4:
v13 = (char *)memcpy(v13, v8, v10);
goto LABEL_5;
}
LOBYTE(v55) = 2 * v9;
v13 = (char *)&v55 + 1;
if ( v9 )
goto LABEL_4;
LABEL_5:
v13[v10] = 0;
v14 = cocos2d::CCDictionary::objectForKey(v11, &v55);
v15 = (cocos2d::CCNode *)(unsigned __int8)v55;
if ( ((unsigned __int8)v55 & 1) != 0 )
operator delete(v57);
if ( !v14 )
{
v17 = *((_QWORD *)a1 + 136);
v18 = (cocos2d::CCObject *)cocos2d::CCNode::create(v15);
v55 = nullptr;
v56 = 0;
v57 = nullptr;
v19 = strlen(v8);
std::string::__init((__int64 *)&v55, v8, v19);
cocos2d::CCDictionary::setObject(v17, v18);
if ( ((unsigned __int8)v55 & 1) != 0 )
operator delete(v57);
GameLevelManager::getBasePostString(v43);
v20 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%c%s%s%c%c%s",
(const char *)off_50 + 7,
"mfd",
"2893",
103,
98,
"7");
CString = cocos2d::CCString::getCString(v20);
v22 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"&commentID=%i&secret=%s",
(const char *)a2,
CString);
v38 = (char *)cocos2d::CCString::getCString(v22);
v23 = strlen(v38);
std::string::append((__int64)v43, v38, v23);
if ( a3 )
{
v24 = a3 - 6;
if ( a3 - 6 <= 2 )
{
std::string::append((__int64)v43, "&levelID=", 9u);
v36 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)a4);
v42 = (char *)cocos2d::CCString::getCString(v36);
v37 = strlen(v42);
std::string::append((__int64)v43, v42, v37);
std::string::append((__int64)v43, "&cType=", 7u);
v27 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)a3);
}
else
{
std::string::append((__int64)v43, "&cType=", 7u);
v25 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)a3);
v39 = (char *)cocos2d::CCString::getCString(v25);
v26 = strlen(v39);
std::string::append((__int64)v43, v39, v26);
std::string::append((__int64)v43, "&targetAccountID=", 0x11u);
v27 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)a4);
}
v40 = (char *)cocos2d::CCString::getCString(v27);
v28 = strlen(v40);
std::string::append((__int64)v43, v40, v28);
v29 = (char *)v43 + 1;
if ( (v43[0] & 1) == 0 )
{
LABEL_17:
if ( v24 > 2 && a3 )
{
v51[0] = 0;
v51[1] = 0;
v52 = nullptr;
std::string::__init(v51, "https://www.boomlings.com/database/deleteGJAccComment20.php", 0x3Bu);
v53[0] = 0;
v53[1] = 0;
v54 = nullptr;
v30 = strlen(v29);
std::string::__init(v53, v29, v30);
v55 = nullptr;
v56 = 0;
v57 = nullptr;
v31 = strlen(v8);
std::string::__init((__int64 *)&v55, v8, v31);
GameLevelManager::ProcessHttpRequest(a1, v51, (__int64)v53, (char *)&v55, 14);
if ( ((unsigned __int8)v55 & 1) != 0 )
operator delete(v57);
if ( (v53[0] & 1) != 0 )
operator delete(v54);
if ( (v51[0] & 1) != 0 )
operator delete(v52);
LABEL_25:
if ( (v43[0] & 1) != 0 )
operator delete(v44);
return _stack_chk_guard;
}
LABEL_30:
v45[0] = 0;
v45[1] = 0;
v46 = nullptr;
std::string::__init(v45, "https://www.boomlings.com/database/deleteGJComment20.php", 0x38u);
v47[0] = 0;
v47[1] = 0;
v48 = nullptr;
v34 = strlen(v29);
std::string::__init(v47, v29, v34);
v49[0] = 0;
v49[1] = 0;
v50 = nullptr;
v35 = strlen(v8);
std::string::__init(v49, v8, v35);
GameLevelManager::ProcessHttpRequest(a1, v45, (__int64)v47, (char *)v49, 14);
if ( (v49[0] & 1) != 0 )
operator delete(v50);
if ( (v47[0] & 1) != 0 )
operator delete(v48);
if ( (v45[0] & 1) != 0 )
operator delete(v46);
goto LABEL_25;
}
}
else
{
std::string::append((__int64)v43, "&levelID=", 9u);
v32 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)a4);
v41 = (char *)cocos2d::CCString::getCString(v32);
v33 = strlen(v41);
std::string::append((__int64)v43, v41, v33);
v29 = (char *)v43 + 1;
if ( (v43[0] & 1) == 0 )
goto LABEL_30;
v24 = -6;
}
v29 = (char *)v44;
goto LABEL_17;
}
return _stack_chk_guard;
}