// // GameLevelManager::onUploadDeathDataCompleted from 0x834910 to 0x834d30 (1056 bytes) // // 2 xrefs: // > GameLevelManager::handleIt @ 0x85b44c // > @ 0x95f80 // // 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:55:10 +0000 // __int64 __fastcall GameLevelManager::onUploadDeathDataCompleted( GameLevelManager *a1, unsigned __int8 *a2, unsigned __int8 *a3) { int v5; // w0 _BYTE *v7; // x19 unsigned __int8 *v8; // x19 __int64 v9; // x22 unsigned __int64 v10; // x21 char *v11; // x19 char *v12; // x0 const char *v13; // x0 unsigned int v14; // w27 const char *v15; // x0 int v16; // w28 __int64 v17; // x4 __int64 SavedLevel; // x19 char *v19; // x19 char *v20; // x0 int v21; // w0 __int64 v22; // x19 cocos2d::CCString *v23; // x0 size_t v24; // x0 __int64 v25; // x19 cocos2d::CCString *v26; // x0 size_t v27; // x0 char *CString; // [xsp+70h] [xbp+70h] char *v29; // [xsp+70h] [xbp+70h] void *v31; // [xsp+88h] [xbp+88h] BYREF unsigned __int8 *v32; // [xsp+90h] [xbp+90h] __int64 v33; // [xsp+98h] [xbp+98h] void *v34; // [xsp+A0h] [xbp+A0h] BYREF char *v35; // [xsp+A8h] [xbp+A8h] __int64 v36; // [xsp+B0h] [xbp+B0h] __int64 v37[2]; // [xsp+B8h] [xbp+B8h] BYREF void *v38; // [xsp+C8h] [xbp+C8h] __int64 v39[2]; // [xsp+D0h] [xbp+D0h] BYREF void *v40; // [xsp+E0h] [xbp+E0h] GameLevelManager::removeDLFromActive(a1, "UploadDeathData"); v5 = *a2; if ( (v5 & 1) != 0 ) { if ( !*((_QWORD *)a2 + 1) ) return _stack_chk_guard; v7 = *((_BYTE **)a2 + 2); } else { if ( !(v5 >> 1) ) return _stack_chk_guard; v7 = a2 + 1; } if ( *v7 != 49 ) return _stack_chk_guard; v31 = nullptr; v32 = nullptr; v33 = 0; sub_833ACC(a3, &byte_1169BE0, (__int64 *)&v31); v8 = (unsigned __int8 *)v31; if ( 0xAAAAAAAAAAAAAAABLL * ((v32 - (_BYTE *)v31) >> 3) ) { v9 = 0; v10 = 0; while ( 1 ) { v34 = nullptr; v35 = nullptr; v36 = 0; sub_833ACC(&v8[v9], ":", (__int64 *)&v34); v11 = (char *)v34; v12 = v35; if ( 0xAAAAAAAAAAAAAAABLL * ((v35 - (_BYTE *)v34) >> 3) > 2 ) break; if ( !v34 ) goto LABEL_26; if ( v34 == v35 ) { v20 = (char *)v34; } else { do { v35 = v12 - 24; std::string::~string((__int64)(v12 - 24)); v12 = v35; } while ( v11 != v35 ); v20 = (char *)v34; } LABEL_25: operator delete(v20); LABEL_26: v8 = (unsigned __int8 *)v31; ++v10; v9 += 24; if ( v10 >= 0xAAAAAAAAAAAAAAABLL * ((v32 - (_BYTE *)v31) >> 3) ) goto LABEL_27; } v13 = (char *)v34 + 1; if ( (*(_BYTE *)v34 & 1) != 0 ) v13 = *((const char **)v34 + 2); v14 = atoi(v13); v15 = v11 + 25; if ( (v11[24] & 1) != 0 ) v15 = *((const char **)v11 + 5); v16 = atoi(v15); v17 = (unsigned __int8)v11[48] >> 1; if ( (v11[48] & 1) != 0 ) v17 = *((_QWORD *)v11 + 7); if ( v17 == 1 ) { v21 = std::string::compare((__int64)(v11 + 48), 0, 0xFFFFFFFFFFFFFFFFLL, "1", 1u); if ( v16 <= 0 ) { if ( !v21 ) { v22 = *((_QWORD *)a1 + 117); v23 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v14); CString = (char *)cocos2d::CCString::getCString(v23); v39[0] = 0; v39[1] = 0; v40 = nullptr; v24 = strlen(CString); std::string::__init(v39, CString, v24); SavedLevel = cocos2d::CCDictionary::objectForKey(v22, v39); if ( (v39[0] & 1) != 0 ) operator delete(v40); goto LABEL_19; } goto LABEL_18; } } else if ( v16 <= 0 ) { LABEL_18: SavedLevel = GameLevelManager::getSavedLevel(a1, (const char *)v14); LABEL_19: if ( SavedLevel ) *(_BYTE *)(SavedLevel + 1744) = 0; v19 = (char *)v34; if ( !v34 ) goto LABEL_26; v20 = v35; if ( v34 != v35 ) { do { v35 = v20 - 24; std::string::~string((__int64)(v20 - 24)); v20 = v35; } while ( v19 != v35 ); v20 = (char *)v34; } goto LABEL_25; } v25 = *((_QWORD *)a1 + 106); v26 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)(unsigned int)v16); v29 = (char *)cocos2d::CCString::getCString(v26); v37[0] = 0; v37[1] = 0; v38 = nullptr; v27 = strlen(v29); std::string::__init(v37, v29, v27); SavedLevel = cocos2d::CCDictionary::objectForKey(v25, v37); if ( (v37[0] & 1) != 0 ) operator delete(v38); goto LABEL_19; } LABEL_27: if ( v8 ) { while ( v8 != v32 ) { v32 -= 24; std::string::~string((__int64)v32); } operator delete(v31); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source