// // GJSearchObject::getSearchKey from 0x4bb368 to 0x4bb4d2 (362 bytes) // // 2 xrefs: // > GJSearchObject::getKey @ 0x4bb598 // > GJSearchObject::getNextPageKey @ 0x4bb696 // // 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:50:16 +0000 // int __fastcall GJSearchObject::getSearchKey( const char *a1, int a2, int a3, int a4, int a5, unsigned __int8 a6, unsigned __int8 a7, unsigned __int8 a8, int a9, unsigned __int8 a10, unsigned __int8 a11, unsigned __int8 a12, unsigned __int8 a13, unsigned __int8 a14, unsigned __int8 a15, unsigned __int8 a16, unsigned __int8 a17, unsigned __int8 a18, unsigned __int8 a19, int a20, int ActiveDailyID, int a22) { int v27; // r2 cocos2d::CCString *v28; // r0 int v29; // r6 GameLevelManager *v30; // r0 GameLevelManager *v31; // r6 _DWORD *v32; // r0 int v33; // r4 int v34; // r3 int v35; // r1 cocos2d::CCString *v36; // r0 const char *CString; // r0 const char *v38; // r7 size_t v39; // r0 GameLevelManager *v40; // r0 cocos2d::CCString *v41; // r0 _DWORD *v42; // r0 const char *DailyID; // r0 cocos2d::CCString *v44; // r0 char *v45; // r0 int v47; // [sp+54h] [bp-18h] BYREF int v48[3]; // [sp+58h] [bp-14h] BYREF if ( a1 == &byte_9[5] ) { if ( (*(_BYTE *)a2 & 1) != 0 ) v27 = *(_DWORD *)(a2 + 8); else v27 = a2 + 1; v28 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i_%s_%i", &byte_9[5], v27, a5); return cocos2d::CCString::getCString(v28); } else { v30 = (GameLevelManager *)GameLevelManager::vaultTimedType((int)a1, &v47); v31 = v30; if ( v30 ) { v32 = (_DWORD *)GameLevelManager::sharedState(v30); ActiveDailyID = GameLevelManager::getActiveDailyID(v32, v47); } if ( (*(_BYTE *)a2 & 1) != 0 ) v33 = *(_DWORD *)(a2 + 8); else v33 = a2 + 1; if ( (*(_BYTE *)a3 & 1) != 0 ) v34 = *(_DWORD *)(a3 + 8); else v34 = a3 + 1; if ( (*(_BYTE *)a4 & 1) != 0 ) v35 = *(_DWORD *)(a4 + 8); else v35 = a4 + 1; v36 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i_%s_%s_%s_%i_%i_%i_%i_%i_%i_%i_%i_%i_%i_%i_%i_%i_%i_%i_%i_%i_%i", a1, v33, v34, v35, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, ActiveDailyID, a22); CString = (const char *)cocos2d::CCString::getCString(v36); memset(v48, 0, sizeof(v48)); v38 = CString; v39 = strlen(CString); v40 = (GameLevelManager *)std::string::__init(v48, v38, v39); if ( v31 ) { v42 = (_DWORD *)GameLevelManager::sharedState(v40); DailyID = (const char *)GameLevelManager::getDailyID(v42, v47); v44 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"_%i", DailyID); v45 = (char *)cocos2d::CCString::getCString(v44); std::string::append(v48, v45); } v41 = (cocos2d::CCString *)cocos2d::CCString::create(v48); v29 = cocos2d::CCString::getCString(v41); std::string::~string((int)v48); } return v29; }
GD Web Decomp Icon

GD Web Decomp

Raw Source