// // GameLevelManager::onUploadDeathDataCompleted from 0x4c6998 to 0x4c6b78 (480 bytes) // // 1 xrefs: // > GameLevelManager::handleIt @ 0x4da61a // // 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 // int __fastcall GameLevelManager::onUploadDeathDataCompleted( GameLevelManager *a1, unsigned __int8 *a2, unsigned __int8 *a3) { int result; // r0 unsigned int v7; // r3 _BYTE *v8; // r4 unsigned int i; // r5 int v10; // r4 const char *v11; // r0 const char *v12; // r9 const char *v13; // r0 int v14; // r0 int v15; // r3 int v16; // r3 const char *v17; // r11 int v18; // r0 int v19; // r9 cocos2d::CCString *v20; // r0 const char *CString; // r11 size_t v22; // r0 int *v23; // r4 int v24; // r0 int v25; // r11 cocos2d::CCString *v26; // r0 const char *v27; // r9 size_t v28; // r0 int SavedLevel; // r9 int v30; // [sp+1Ch] [bp-38h] BYREF int v31; // [sp+20h] [bp-34h] int v32; // [sp+24h] [bp-30h] int v33; // [sp+28h] [bp-2Ch] BYREF int v34; // [sp+2Ch] [bp-28h] int v35; // [sp+30h] [bp-24h] int v36[3]; // [sp+34h] [bp-20h] BYREF int v37[3]; // [sp+40h] [bp-14h] BYREF result = GameLevelManager::removeDLFromActive(a1, "UploadDeathData"); v7 = *a2; if ( (v7 & 1) != 0 ) { if ( !*((_DWORD *)a2 + 1) ) return result; v8 = *((_BYTE **)a2 + 2); } else { if ( !(v7 >> 1) ) return result; v8 = a2 + 1; } if ( *v8 == 49 ) { v30 = 0; v31 = 0; v32 = 0; sub_4C62E0(a3, ",", &v30); for ( i = 0; ; ++i ) { if ( i >= -1431655765 * ((v31 - v30) >> 2) ) return std::__vector_base::~__vector_base((int)&v30); v33 = 0; v34 = 0; v35 = 0; sub_4C62E0((unsigned __int8 *)(v30 + 12 * i), ":", &v33); v10 = v33; if ( (unsigned int)(-1431655765 * ((v34 - v33) >> 2)) > 2 ) break; LABEL_29: std::__vector_base::~__vector_base((int)&v33); } if ( (*(_BYTE *)v33 & 1) != 0 ) v11 = *(const char **)&byte_8[v33]; else v11 = (const char *)(v33 + 1); v12 = (const char *)atoi(v11); if ( (byte_9[v10 + 3] & 1) != 0 ) v13 = *(const char **)((char *)&dword_14 + v10); else v13 = (const char *)(v10 + 13); v14 = atoi(v13); v15 = *((unsigned __int8 *)&dword_18 + v10); if ( (v15 & 1) != 0 ) v16 = *(int *)((char *)&dword_1C + v10); else v16 = v15 >> 1; v17 = (const char *)v14; if ( v16 == 1 ) { v18 = std::string::compare((unsigned __int8 *)(v10 + 24), 0, 0xFFFFFFFF, a1i2r3e45s789g, 1u); if ( (int)v17 > 0 ) { LABEL_21: v19 = *((_DWORD *)a1 + 147); v20 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v17); CString = (const char *)cocos2d::CCString::getCString(v20); memset(v36, 0, sizeof(v36)); v22 = strlen(CString); v23 = v36; std::string::__init(v36, CString, v22); v24 = cocos2d::CCDictionary::objectForKey(v19, v36); LABEL_24: SavedLevel = v24; std::string::~string((int)v23); goto LABEL_27; } if ( !v18 ) { v25 = *((_DWORD *)a1 + 168); v26 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v12); v27 = (const char *)cocos2d::CCString::getCString(v26); memset(v37, 0, sizeof(v37)); v28 = strlen(v27); v23 = v37; std::string::__init(v37, v27, v28); v24 = cocos2d::CCDictionary::objectForKey(v25, v37); goto LABEL_24; } } else if ( v14 > 0 ) { goto LABEL_21; } SavedLevel = GameLevelManager::getSavedLevel(a1, v12); LABEL_27: if ( SavedLevel ) *(_BYTE *)(SavedLevel + 1300) = 0; goto LABEL_29; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source