//
// PlatformToolbox::getUniqueUserID from 0x394c58 to 0x394d1a (194 bytes)
//
// 2 xrefs:
// > PlatformToolbox::getUserID @ 0x394d34
// > GameManager::firstLoad @ 0x417faa
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:46:19 +0000
//
PlatformToolbox *__fastcall PlatformToolbox::getUniqueUserID(PlatformToolbox *this)
{
int v2; // r3
int v3; // r7
const char *v4; // r0
const char *v5; // r8
size_t v6; // r0
int v7; // r0
int v8; // r1
int v9; // r2
int v11[3]; // [sp+4h] [bp-1Ch] BYREF
int v12; // [sp+10h] [bp-10h] BYREF
int v13; // [sp+14h] [bp-Ch]
int v14; // [sp+18h] [bp-8h]
if ( cocos2d::JniHelper::getStaticMethodInfo(
v11,
"com/customRobTop/BaseRobTopActivity",
"getUserID",
"()Ljava/lang/String;") )
{
v3 = _JNIEnv::CallStaticObjectMethod(v11[0], v11[1], v11[2], v2);
v4 = (const char *)(*(int (__fastcall **)(int, int, _DWORD))(*(_DWORD *)v11[0] + 676))(v11[0], v3, 0);
v12 = 0;
v13 = 0;
v14 = 0;
v5 = v4;
v6 = strlen(v4);
std::string::__init(&v12, v5, v6);
(*(void (__fastcall **)(int, int, const char *))(*(_DWORD *)v11[0] + 680))(v11[0], v3, v5);
_JNIEnv::DeleteLocalRef(v11[0]);
_JNIEnv::DeleteLocalRef(v11[0]);
v7 = v12;
v8 = v13;
v9 = v14;
v12 = 0;
v13 = 0;
v14 = 0;
*(_DWORD *)this = v7;
*((_DWORD *)this + 1) = v8;
*((_DWORD *)this + 2) = v9;
std::string::~string((int)&v12);
}
else
{
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
std::string::__init((int *)this, &unk_B6B226, 0);
}
return this;
}