//
// sub_1005679E8 from 0x1005679e8 to 0x100567aa4 (188 bytes)
//
// 1 xrefs:
// > cocos2d::extension::CCHttpClient::CCHttpClient @ 0x100240d08
//
// 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
//
__int64 __fastcall sub_1005679E8(__int64 a1)
{
if ( dword_100882BB0++ )
return 0;
off_10085DEB0 = (void *(__cdecl *)(size_t))&_malloc;
off_10085DEB8 = (void (__cdecl *)(void *))&_free;
off_10085DEC0 = (void *(__cdecl *)(void *, size_t))&_realloc;
off_10085DEC8 = (char *(__cdecl *)(const char *))&strdup;
off_10085DED0 = (void *(__cdecl *)(size_t, size_t))&_calloc;
if ( (a1 & 1) == 0 || (unsigned int)sub_100587058() )
{
if ( (a1 & 4) != 0 )
dword_1008B172C = 1;
qword_100882BB8 = a1;
sub_100561098();
return 0;
}
return 2;
}