//
// GameToolbox::openRateURL from 0x1004ee920 to 0x1004eea11 (241 bytes)
//
// 0 xrefs:
//
// 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 GameToolbox::openRateURL(double a1)
{
cocos2d::CCString *v1; // rax
const char *CString; // r14
size_t v3; // rax
size_t v4; // rbx
char *v5; // r15
size_t v6; // r12
char v7; // [rsp+0h] [rbp-40h]
size_t __dst; // [rsp+8h] [rbp-38h] BYREF
void *__p; // [rsp+18h] [rbp-28h]
v1 = (cocos2d::CCString *)sub_1007AB580("https://www.robtopgames.com/download/%s%s", v7);
CString = cocos2d::CCString::getCString(v1);
v3 = strlen(CString);
if ( v3 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100006BF0(a1);
v4 = v3;
if ( v3 >= 0x17 )
{
v6 = 26;
if ( (v3 | 7) != 0x17 )
v6 = (v3 | 7) + 1;
v5 = (char *)operator new(v6);
__p = v5;
__dst = v6 + 1;
}
else
{
LOBYTE(__dst) = 2 * v3;
v5 = (char *)&__dst + 1;
if ( !v3 )
{
BYTE1(__dst) = 0;
if ( (__dst & 1) == 0 )
return;
LABEL_10:
operator delete(__p);
return;
}
}
memmove(v5, CString, v4);
v5[v4] = 0;
if ( (__dst & 1) != 0 )
goto LABEL_10;
}