//
// GameLevelManager::reportLevel from 0x4b5260 to 0x4b5360 (256 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:50:07 +0000
//
int __fastcall GameLevelManager::reportLevel(GameLevelManager *this, const char *a2)
{
int result; // r0
cocos2d::CCString *v5; // r0
int CString; // r0
cocos2d::CCString *v7; // r0
const char *v8; // r9
size_t v9; // r0
cocos2d::CCString *v10; // r0
const char *v11; // r9
size_t v12; // r0
int v13[3]; // [sp+10h] [bp-2Ch] BYREF
int v14[3]; // [sp+1Ch] [bp-20h] BYREF
int v15[3]; // [sp+28h] [bp-14h] BYREF
result = GameLevelManager::hasReportedLevel(this, a2);
if ( !result )
{
GameLevelManager::markLevelAsReported((cocos2d::CCDictionary **)this, a2);
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%c%s%s%c%c%s",
(const char *)&dword_54 + 3,
"mfd",
"2893",
103,
98,
&a1i2r3e45s789g[9]);
CString = cocos2d::CCString::getCString(v5);
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"levelID=%i&secret=%s",
a2,
CString);
memset(v13, 0, sizeof(v13));
v8 = (const char *)cocos2d::CCString::getCString(v7);
std::string::__init(v13, "https://www.boomlings.com/database/reportGJLevel.php", 0x34u);
memset(v14, 0, sizeof(v14));
v9 = strlen(v8);
std::string::__init(v14, v8, v9);
v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", a2);
v11 = (const char *)cocos2d::CCString::getCString(v10);
memset(v15, 0, sizeof(v15));
v12 = strlen(v11);
std::string::__init(v15, v11, v12);
GameLevelManager::ProcessHttpRequest(this, v13, (int)v14, (int)v15, 19);
std::string::~string((int)v15);
std::string::~string((int)v14);
return std::string::~string((int)v13);
}
return result;
}