//
// PlatformToolbox::loadAndDecryptFileToString from 0x2be430 to 0x2be4f4 (196 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
//
int __fastcall PlatformToolbox::loadAndDecryptFileToString(char *a1, char *a2, int a3)
{
const char *v6; // r7
jstring v8; // r0
void *v9; // r6
char *v10; // r8
const char *v11; // [sp+4h] [bp-18h] BYREF
_JNIEnv *v12[3]; // [sp+8h] [bp-14h] BYREF
sub_776584((int)&v11, (char *)&unk_939830);
sub_774544((int)&v11, a2);
sub_774544((int)&v11, a1);
v6 = v11;
if ( cocos2d::JniHelper::getStaticMethodInfo(
v12,
"com/customRobTop/SimpleCrypto",
"loadAndDecryptFileToString",
"(Ljava/lang/String;)Ljava/lang/String;") )
{
v8 = _JNIEnv::NewStringUTF(v12[0], v6);
v9 = (void *)_JNIEnv::CallStaticObjectMethod((int)v12[0], (int)v12[1], (int)v12[2], (int)v8);
v10 = (char *)v12[0]->functions->GetStringUTFChars(v12[0], v9, 0);
sub_7753B8(a3, v10);
v12[0]->functions->ReleaseStringUTFChars((JNIEnv *)v12[0], v9, v10);
_JNIEnv::DeleteLocalRef((int)v12[0]);
_JNIEnv::DeleteLocalRef((int)v12[0]);
_JNIEnv::DeleteLocalRef((int)v12[0]);
}
return sub_774008(&v11);
}