//
// PlatformToolbox::getUniqueUserID from 0x2bdc88 to 0x2bdd34 (172 bytes)
//
// 2 xrefs:
// > PlatformToolbox::getUserID @ 0x2bdd50
// > GameManager::firstLoad @ 0x324286
//
// 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
//
PlatformToolbox *__fastcall PlatformToolbox::getUniqueUserID(PlatformToolbox *this)
{
int v2; // r3
int v3; // r7
char *v4; // r8
void *v6; // [sp+4h] [bp-14h] BYREF
int v7[3]; // [sp+8h] [bp-10h] BYREF
if ( cocos2d::JniHelper::getStaticMethodInfo(
v7,
"com/customRobTop/BaseRobTopActivity",
"getUserID",
"()Ljava/lang/String;") )
{
v3 = _JNIEnv::CallStaticObjectMethod(v7[0], v7[1], v7[2], v2);
v4 = (char *)(*(int (__fastcall **)(int, int, _DWORD))(*(_DWORD *)v7[0] + 676))(v7[0], v3, 0);
sub_776584((int)&v6, v4);
(*(void (__fastcall **)(int, int, char *))(*(_DWORD *)v7[0] + 680))(v7[0], v3, v4);
_JNIEnv::DeleteLocalRef(v7[0]);
_JNIEnv::DeleteLocalRef(v7[0]);
*(_DWORD *)this = v6;
v6 = &unk_ACDDA8;
sub_774008(&v6);
}
else
{
sub_776584((int)this, (char *)&unk_939830);
}
return this;
}