// // PlatformToolbox::loadAndDecryptFileToString from 0x1004bd270 to 0x1004bd415 (421 bytes) // // 4 xrefs: // > GManager::loadDataFromFile @ 0x1004a55c8 // > GManager::loadDataFromFile @ 0x1004a563c // > GManager::loadDataFromFile @ 0x1004a56cf // > GManager::tryLoadData @ 0x1004a5817 // // 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:03 +0000 // std::string *__fastcall PlatformToolbox::loadAndDecryptFileToString(__int64 a1, __int64 a2, std::string *a3) { NSArray *v3; // rax id v4; // rax id v5; // r12 NSFileManager *v6; // rax NSFileManager *v7; // rax NSString *v8; // rax id v9; // rax NSData *v10; // r14 NSString *v11; // rax NSString *v12; // rax NSData *v13; // rax id v14; // r14 const std::string::value_type *v15; // r15 id v16; // rax std::string *v18; // [rsp+0h] [rbp-30h] v18 = a3; v3 = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, 1u, 1); v4 = -[NSArray objectAtIndex:](v3, "objectAtIndex:", 0); v5 = objc_msgSend(v4, "stringByAppendingPathComponent:", CFSTR("GeometryDash")); v6 = +[NSFileManager defaultManager](&OBJC_CLASS___NSFileManager, "defaultManager"); if ( !-[NSFileManager fileExistsAtPath:](v6, "fileExistsAtPath:", v5) ) { v7 = +[NSFileManager defaultManager](&OBJC_CLASS___NSFileManager, "defaultManager"); -[NSFileManager createDirectoryAtPath:withIntermediateDirectories:attributes:error:]( v7, "createDirectoryAtPath:withIntermediateDirectories:attributes:error:", v5, 0, 0, 0, v18); } v8 = +[NSString stringWithUTF8String:](&OBJC_CLASS___NSString, "stringWithUTF8String:", a1); v9 = objc_msgSend(v5, "stringByAppendingPathComponent:", v8); v10 = +[NSData dataWithContentsOfFile:](&OBJC_CLASS___NSData, "dataWithContentsOfFile:", v9); v11 = +[NSString stringWithFormat:]( &OBJC_CLASS___NSString, "stringWithFormat:", CFSTR("%c%c%s%@%c%s%c%s%@%s"), 105, 112, "u9TUv54y", CFSTR("v]isFM"), 104, "5@;t.5w3", 52, "E2Ry@{", CFSTR("lXrRCGEN"), "IiB@"); v12 = +[NSString stringWithString:](&OBJC_CLASS___NSString, "stringWithString:", v11); v13 = -[NSString dataUsingEncoding:](v12, "dataUsingEncoding:", 4); v14 = -[NSData decryptedWithKey:](v10, "decryptedWithKey:", v13); v15 = (const std::string::value_type *)objc_msgSend(v14, "bytes"); v16 = objc_msgSend(v14, "length"); return std::string::assign(v18, v15, (std::string::size_type)v16); }
GD Web Decomp Icon

GD Web Decomp

Raw Source