//
// GameLevelManager::requestUserAccess from 0x1000aa74c to 0x1000aa8f8 (428 bytes)
//
// 1 xrefs:
// > SupportLayer::onRequestAccess @ 0x100192c64
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool __fastcall GameLevelManager::requestUserAccess(GameLevelManager *a1)
{
cocos2d::CCDictionary *m_friendReqAndUserBlocks; // x19
__int64 v3; // x0
__int64 v4; // x19
cocos2d::CCDictionary *v5; // x21
cocos2d::CCNode *v6; // x22
cocos2d::CCString *v7; // x0
const char *CString; // x0
cocos2d::CCString *v9; // x0
const char *v10; // x0
std::string *v11; // x1
void *__p[2]; // [xsp+30h] [xbp-80h] BYREF
char v14; // [xsp+47h] [xbp-69h]
void *v15[2]; // [xsp+48h] [xbp-68h] BYREF
char v16; // [xsp+5Fh] [xbp-51h]
std::string v17; // [xsp+60h] [xbp-50h] BYREF
std::string v18; // [xsp+78h] [xbp-38h] BYREF
m_friendReqAndUserBlocks = a1->m_friendReqAndUserBlocks;
sub_100009900(&v18, "req_ua");
v3 = cocos2d::CCDictionary::objectForKey_1(m_friendReqAndUserBlocks, &v18);
v4 = v3;
if ( SHIBYTE(v18.__r_.__value_.__r.__words[2]) < 0 )
{
operator delete(v18.__r_.__value_.__l.__data_);
if ( v4 )
return v4 == 0;
}
else if ( v3 )
{
return v4 == 0;
}
v5 = a1->m_friendReqAndUserBlocks;
v6 = cocos2d::CCNode::create();
sub_100009900(&v18, "req_ua");
cocos2d::CCDictionary::setObject_1(v5, v6, &v18);
if ( SHIBYTE(v18.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v18.__r_.__value_.__l.__data_);
GameLevelManager::getBasePostString(&v18);
v7 = (cocos2d::CCString *)sub_100268F4C("%c%s%s%c%c%s", 87, "mfd", "2893", 103, 98, "7");
CString = cocos2d::CCString::getCString(v7);
v9 = (cocos2d::CCString *)sub_100268F4C("&secret=%s", CString);
v10 = cocos2d::CCString::getCString(v9);
std::string::append(&v18, v10);
sub_100009900(&v17, "https://www.boomlings.com/database/requestUserAccess.php");
if ( (v18.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v11 = &v18;
else
v11 = (std::string *)v18.__r_.__value_.__r.__words[0];
sub_100009900(v15, (char *)v11);
sub_100009900(__p, "req_ua");
GameLevelManager::ProcessHttpRequest(a1, &v17, (char *)v15, (const std::string::value_type *)__p, 43);
if ( v14 < 0 )
operator delete(__p[0]);
if ( v16 < 0 )
operator delete(v15[0]);
if ( SHIBYTE(v17.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v17.__r_.__value_.__l.__data_);
if ( SHIBYTE(v18.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v18.__r_.__value_.__l.__data_);
return v4 == 0;
}