// // gen_random from 0x807ab0 to 0x807c1c (364 bytes) // // 11 xrefs: // > GameLevelManager::rewardSessionToken @ 0x81d930 // > GameLevelManager::downloadLevel @ 0x81ffdc // > GameLevelManager::rateStars @ 0x820818 // > GameLevelManager::getLevelLeaderboard @ 0x821b88 // > GameLevelManager::getLevelLeaderboard @ 0x821c40 // > GameLevelManager::likeItem @ 0x82b0a8 // > GameLevelManager::getGJChallenges @ 0x82c1bc // > GameLevelManager::uploadLevelList @ 0x8466a0 // > GameLevelManager::updateUserScore @ 0x853154 // > GameLevelManager::uploadLevel @ 0x855850 // > @ 0xb7568 // // This function is hookable on this platform (idp: arm, 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:54:46 +0000 // __int64 *__usercall gen_random@(int a1@, __int64 *a2@) { cocos2d::CCString *v4; // x25 int v5; // w24 int v6; // w0 const char *v7; // x0 size_t v8; // x0 char *CString; // [xsp+58h] [xbp+58h] char *v11; // [xsp+58h] [xbp+58h] __int64 v12[2]; // [xsp+60h] [xbp+60h] BYREF void *v13; // [xsp+70h] [xbp+70h] v12[0] = 0; v12[1] = 0; v13 = nullptr; std::string::__init(v12, &byte_11B8890, 0); v4 = (cocos2d::CCString *)cocos2d::CCString::create(v12); if ( (v12[0] & 1) != 0 ) operator delete(v13); if ( a1 > 0 ) { v5 = 0; do { ++v5; CString = (char *)cocos2d::CCString::getCString(v4); v6 = rand(); v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%s%c", CString, *((unsigned __int8 *)&dword_1147010[4] + v6 % 0x3EuLL)); } while ( v5 != a1 ); } v7 = (const char *)cocos2d::CCString::getCString(v4); *a2 = 0; a2[1] = 0; a2[2] = 0; v11 = (char *)v7; v8 = strlen(v7); std::string::__init(a2, v11, v8); return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source