// // GameLevelManager::getDeathData from 0x4c71ec to 0x4c74f8 (780 bytes) // // 2 xrefs: // > LevelInfoLayer::onEnterTransitionDidFinish @ 0x49f2c8 // > GameLevelManager::forceDeathDataRefetch @ 0x4c753e // // 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:32 +0000 // unsigned int __fastcall GameLevelManager::getDeathData(unsigned int this, int a2, int a3, int a4) { GameLevelManager *v4; // r5 unsigned int v5; // r4 unsigned int v6; // r9 unsigned int v7; // r10 _DWORD *v8; // r3 _DWORD *i; // r6 int v10; // r1 _DWORD *v11; // r0 int v12; // r1 char *v13; // r2 char *v14; // r1 int v15; // r2 char *v16; // r1 int *v17; // r0 int v18; // r1 int v19; // r2 int *v20; // r0 int v21; // r1 int v22; // r2 char *v23; // r1 size_t v24; // r2 int *v25; // r0 int v26; // r1 int v27; // r2 char *v28; // r1 size_t v29; // r2 GJAccountManager *v30; // r0 int v31; // r0 cocos2d::CCString *v32; // r0 char *CString; // r0 const char *v34; // r1 size_t v35; // r0 char *v36; // r1 size_t v37; // r0 const char *v39; // [sp+10h] [bp-6Ch] char *v40; // [sp+10h] [bp-6Ch] int v42; // [sp+1Ch] [bp-60h] BYREF _DWORD v43[2]; // [sp+20h] [bp-5Ch] BYREF char *v44; // [sp+28h] [bp-54h] char *v45[3]; // [sp+2Ch] [bp-50h] BYREF _DWORD v46[3]; // [sp+38h] [bp-44h] BYREF unsigned __int8 v47; // [sp+44h] [bp-38h] BYREF char v48; // [sp+45h] [bp-37h] BYREF size_t v49; // [sp+48h] [bp-34h] char *v50; // [sp+4Ch] [bp-30h] int v51; // [sp+50h] [bp-2Ch] BYREF int v52; // [sp+54h] [bp-28h] int v53; // [sp+58h] [bp-24h] int v54; // [sp+5Ch] [bp-20h] BYREF int v55; // [sp+60h] [bp-1Ch] int v56; // [sp+64h] [bp-18h] int v57; // [sp+68h] [bp-14h] BYREF size_t v58; // [sp+6Ch] [bp-10h] char *v59; // [sp+70h] [bp-Ch] v4 = (GameLevelManager *)this; v42 = a2; if ( a2 > 0 ) { this = (unsigned int)std::__hash_table,std::equal_to,std::allocator>::find( (_DWORD *)(this + 304), (unsigned int *)&v42); if ( !this ) { v5 = *((_DWORD *)v4 + 67); if ( v5 ) { v6 = v5 - 1; v7 = ((v5 - 1) & v5) != 0 ? v42 % v5 : v6 & v42; v8 = *(_DWORD **)(*((_DWORD *)v4 + 66) + 4 * v7); if ( v8 ) { for ( i = (_DWORD *)*v8; i; i = (_DWORD *)*i ) { this = i[1]; if ( ((v5 - 1) & v5) != 0 ) { v10 = this % v5; this /= v5; } else { v10 = v6 & this; } if ( v10 != v7 ) break; if ( i[2] == v42 ) return this; } } } GameToolbox::intToString((GameToolbox *)&v57, v42); v11 = std::string::insert(&v57, 0, "GetDeathData_"); v12 = v11[1]; v13 = (char *)v11[2]; v43[0] = *v11; v43[1] = v12; v44 = v13; *v11 = 0; v11[1] = 0; v11[2] = 0; std::string::~string((int)&v57); if ( (v43[0] & 1) != 0 ) v14 = v44; else v14 = (char *)v43 + 1; if ( !GameLevelManager::isDLActive(v4, v14) ) { if ( (v43[0] & 1) != 0 ) v16 = v44; else v16 = (char *)v43 + 1; GameLevelManager::addDLToActive(v4, v16, v15, LOBYTE(v43[0])); GameLevelManager::getBasePostString((GameLevelManager *)v45); GameToolbox::intToString((GameToolbox *)v46, v42); v17 = std::string::insert(v46, 0, "&levelID="); v18 = v17[1]; v19 = v17[2]; v51 = *v17; v52 = v18; v53 = v19; *v17 = 0; v17[1] = 0; v17[2] = 0; v20 = std::string::append(&v51, "&levelVersion="); v21 = v20[1]; v22 = v20[2]; v54 = *v20; v55 = v21; v56 = v22; *v20 = 0; v20[1] = 0; v20[2] = 0; GameToolbox::intToString((GameToolbox *)&v47, a3); if ( (v47 & 1) != 0 ) { v23 = v50; v24 = v49; } else { v24 = (int)v47 >> 1; v23 = &v48; } v25 = std::string::append(&v54, v23, v24); v26 = v25[1]; v27 = v25[2]; v57 = *v25; v58 = v26; v59 = (char *)v27; *v25 = 0; v25[1] = 0; v25[2] = 0; if ( (v57 & 1) != 0 ) { v28 = v59; v29 = v58; } else { v29 = (int)(unsigned __int8)v57 >> 1; v28 = (char *)&v57 + 1; } std::string::append(v45, v28, v29); std::string::~string((int)&v57); std::string::~string((int)&v47); std::string::~string((int)&v54); std::string::~string((int)&v51); v30 = (GJAccountManager *)std::string::~string((int)v46); if ( a4 ) { v31 = GJAccountManager::sharedState(v30); if ( *(_DWORD *)(v31 + 280) - *(_DWORD *)(v31 + 284) > 0 ) std::string::append(v45, "&refresh=1"); } std::string::append(v45, "&secret="); v32 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%c%s%s%c%c%s", (const char *)&dword_54 + 3, "mfd", "2893", 103, 98, &a1i2r3e45s789g[9]); CString = (char *)cocos2d::CCString::getCString(v32); std::string::append(v45, CString); v51 = 0; v52 = 0; v53 = 0; std::string::__init(&v51, "https://www.boomlings.com/database/getGJDeathData.php", 0x35u); v34 = (const char *)(LOBYTE(v45[0]) << 31); if ( ((int)v45[0] & 1) == 0 ) v34 = (char *)v45 + 1; v54 = 0; if ( ((int)v45[0] & 1) != 0 ) v34 = v45[2]; v55 = 0; v56 = 0; v39 = v34; v35 = strlen(v34); std::string::__init(&v54, v39, v35); if ( (v43[0] & 1) == 0 ) v36 = (char *)v43 + 1; v57 = 0; if ( (v43[0] & 1) != 0 ) v36 = v44; v58 = 0; v59 = nullptr; v40 = v36; v37 = strlen(v36); std::string::__init(&v57, v40, v37); GameLevelManager::ProcessHttpRequest(v4, &v51, (int)&v54, (int)&v57, 106); std::string::~string((int)&v57); std::string::~string((int)&v54); std::string::~string((int)&v51); std::string::~string((int)v45); } return std::string::~string((int)v43); } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source