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