//
// GameLevelManager::performNetworkTest from 0x10051abc0 to 0x10051ad33 (371 bytes)
//
// 1 xrefs:
// > MenuLayer::firstNetworkTest @ 0x100391bfd
//
// 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
//
void __fastcall GameLevelManager::performNetworkTest(GameLevelManager *a1)
{
char *v1; // rbx
unsigned int v2; // eax
cocos2d::extension::CCHttpClient *Instance; // rax
char __s[15]; // [rsp+9h] [rbp-27h] BYREF
if ( !a1->m_testedNetwork )
{
a1->m_testedNetwork = 1;
strcpy(__s, "temp");
v1 = (char *)operator new(0xD8u);
cocos2d::CCObject::CCObject((__int64)v1);
*(_QWORD *)v1 = off_1008B9708;
*(_OWORD *)(v1 + 168) = 0;
*((_QWORD *)v1 + 23) = 0;
*((_OWORD *)v1 + 4) = 0;
*((_OWORD *)v1 + 5) = 0;
*((_OWORD *)v1 + 6) = 0;
*((_OWORD *)v1 + 7) = 0;
*((_QWORD *)v1 + 16) = 0;
*((_DWORD *)v1 + 14) = 5;
*((_DWORD *)v1 + 48) = 0;
v1[196] = 0;
*((_QWORD *)v1 + 25) = 0;
*((_DWORD *)v1 + 52) = 0;
*(_OWORD *)(v1 + 136) = 0;
*(_OWORD *)(v1 + 152) = 0;
std::string::assign((std::string *)(v1 + 64), "https://www.google.com");
*((_DWORD *)v1 + 51) = 1;
*((_DWORD *)v1 + 14) = 1;
*((_QWORD *)v1 + 17) = a1;
*((_QWORD *)v1 + 18) = GameLevelManager::onProcessHttpRequestCompleted;
*((_QWORD *)v1 + 19) = 0;
cocos2d::CCObject::retain(a1);
v2 = strlen(__s);
sub_1000D4430((void **)v1 + 11, __s, &__s[v2], v2);
std::string::assign((std::string *)(v1 + 112), "tag");
*((_DWORD *)v1 + 48) = 56;
Instance = cocos2d::extension::CCHttpClient::getInstance();
cocos2d::extension::CCHttpClient::send(Instance, (cocos2d::extension::CCHttpRequest *)v1);
cocos2d::CCObject::release((cocos2d::CCObject *)v1);
}
}