//
// GameLevelManager::getGJContentStatus from 0x1402313d0 to 0x1402316dc (780 bytes)
//
// 2 xrefs:
// > CreatorLayer::init @ 0x140136220
// > ??> @ 0x14091befc
//
// 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 11:28:30 +0000
//
// Hidden C++ exception states: #wind=4
void __fastcall GameLevelManager::getGJContentStatus(__int64 a1)
{
__int64 v2; // rbx
void *v3; // r8
__int64 v4; // rbx
__int64 v5; // rax
__int64 v6; // rcx
void *v7; // rcx
cocos2d::CCString *v8; // rax
const char *CString; // rax
cocos2d::CCString *v10; // rax
char *v11; // rax
size_t v12; // rbx
size_t v13; // r8
_QWORD *v14; // rdx
int Reserved; // [rsp+20h] [rbp-69h]
int v16; // [rsp+28h] [rbp-61h]
__int128 v17; // [rsp+40h] [rbp-49h] BYREF
__int64 v18; // [rsp+50h] [rbp-39h]
__int64 v19; // [rsp+58h] [rbp-31h]
__int128 v20; // [rsp+60h] [rbp-29h] BYREF
__int64 v21; // [rsp+70h] [rbp-19h]
__int64 v22; // [rsp+78h] [rbp-11h]
__int128 *v23; // [rsp+80h] [rbp-9h]
__int128 *v24; // [rsp+88h] [rbp-1h]
void *Block[2]; // [rsp+98h] [rbp+Fh] BYREF
__int128 v26; // [rsp+A8h] [rbp+1Fh]
_QWORD Src[4]; // [rsp+B8h] [rbp+2Fh] BYREF
*(_OWORD *)Block = 0;
v26 = 0;
sub_14003D230(Block, "content_status", 0xEu);
v2 = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 1192), Block);
if ( *((_QWORD *)&v26 + 1) > 0xFu )
{
v3 = Block[0];
if ( (unsigned __int64)(*((_QWORD *)&v26 + 1) + 1LL) >= 0x1000 )
{
v3 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v3 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v3);
}
if ( !v2 )
{
*(_OWORD *)Block = 0;
v26 = 0;
sub_14003D230(Block, "content_status", 0xEu);
v4 = *(_QWORD *)(a1 + 1192);
v5 = cocos2d::CCNode::create();
cocos2d::CCDictionary::setObject(v4, v5, Block);
if ( *((_QWORD *)&v26 + 1) > 0xFu )
{
v7 = Block[0];
if ( (unsigned __int64)(*((_QWORD *)&v26 + 1) + 1LL) >= 0x1000 )
{
v7 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v7 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v7);
}
GameLevelManager::getBasePostString(v6, Src);
v16 = 98;
Reserved = 103;
v8 = cocos2d::CCString::createWithFormat(
"%c%s%s%c%c%s",
87,
"mfd",
"2893",
Reserved,
v16,
(const char *)&word_14070D040);
CString = cocos2d::CCString::getCString(v8);
v10 = cocos2d::CCString::createWithFormat("&secret=%s&special=1", CString);
v11 = (char *)cocos2d::CCString::getCString(v10);
v12 = -1;
v13 = -1;
do
++v13;
while ( v11[v13] );
sub_140044D80(Src, v11, v13);
v23 = &v17;
v24 = &v20;
v17 = 0;
v18 = 0;
v19 = 0;
sub_14003D230(&v17, "content_status", 0xEu);
v14 = Src;
if ( Src[3] > 0xFu )
v14 = (_QWORD *)Src[0];
v20 = 0;
v21 = 0;
v22 = 0;
do
++v12;
while ( *((_BYTE *)v14 + v12) );
sub_14003D230(&v20, v14, v12);
*(_OWORD *)Block = 0;
v26 = 0u;
Block[0] = sub_14003D460(0x40u);
*(_QWORD *)&v26 = 57;
*((_QWORD *)&v26 + 1) = 63;
strcpy((char *)Block[0], "https://www.boomlings.com/database/getGJContentStatus.php");
GameLevelManager::ProcessHttpRequest(
(cocos2d::CCActionManager **)a1,
(__int64)Block,
(const char *)&v20,
(const char *)&v17,
0x68u);
sub_14003D310((__int64)Src);
}
}