// // sub_911DAC from 0x911dac to 0x9120b4 (776 bytes) // // 2 xrefs: // > LocalLevelManager::tryRecoverAutoSaves @ 0x912e38 // > LocalLevelManager::tryRecoverAutoSaves @ 0x91349c // // 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:57:17 +0000 // unsigned __int64 *__usercall sub_911DAC@(__int64 a1@, unsigned __int64 *a2@) { __int64 v4; // x1 __int64 v5; // x3 __int64 v7; // x1 __int64 v8; // x0 int v9; // t1 __int64 v10; // x2 unsigned __int64 v11; // x23 int v12; // w25 unsigned __int64 v13; // x1 char *v14; // x27 unsigned __int8 *v15; // x21 unsigned __int8 *v16; // x26 char *v17; // x1 char *v18; // x0 int v19; // w0 cocos2d::CCString *v20; // x0 const char *CString; // x0 size_t v22; // x0 char *v23; // [xsp+68h] [xbp+68h] char *v24; // [xsp+68h] [xbp+68h] __int64 v25; // [xsp+78h] [xbp+78h] BYREF unsigned __int64 v26; // [xsp+80h] [xbp+80h] char *v27; // [xsp+88h] [xbp+88h] __int64 v28[2]; // [xsp+90h] [xbp+90h] BYREF void *v29; // [xsp+A0h] [xbp+A0h] if ( (*(_BYTE *)a1 & 1) != 0 ) { v4 = *(_QWORD *)(a1 + 8); v5 = *(_QWORD *)(a1 + 16); if ( v4 == -1 ) { LABEL_3: std::operator+(" Autosave", a1, a2); return a2; } } else { v5 = a1 + 1; v4 = *(_BYTE *)a1 >> 1; } if ( v4 <= 8 ) goto LABEL_3; v7 = v5 + v4; if ( v7 == v5 + 8 ) goto LABEL_3; v8 = v7; while ( 1 ) { v9 = *(unsigned __int8 *)--v8; if ( v9 == 101 && *(_BYTE *)(v8 - 1) == 118 && *(_BYTE *)(v8 - 2) == 97 && *(_BYTE *)(v8 - 3) == 115 && *(_BYTE *)(v8 - 4) == 111 && *(_BYTE *)(v8 - 5) == 116 && *(_BYTE *)(v8 - 6) == 117 && *(_BYTE *)(v8 - 7) == 65 ) { v10 = v8 - 8; if ( *(_BYTE *)(v8 - 8) == 32 ) break; } if ( v5 + 8 == v8 ) goto LABEL_3; } if ( v7 == v10 || v10 - v5 == -1 ) goto LABEL_3; v11 = v10 - v5 + 9; std::string::basic_string(&v25, a1, v11, 0xFFFFFFFFFFFFFFFFLL); v12 = v25 & 1; if ( v12 ) { v13 = v26; if ( v26 ) { if ( v26 <= 1 || (v14 = v27, *v27 != 32) ) { LABEL_24: operator delete(v27); goto LABEL_3; } goto LABEL_31; } LABEL_38: std::operator+(" 2", a1, a2); goto LABEL_39; } LODWORD(v13) = (int)(unsigned __int8)v25 >> 1; if ( !(_DWORD)v13 ) goto LABEL_38; v13 = (int)v13; if ( (int)v13 == 1 || BYTE1(v25) != 32 ) goto LABEL_3; v14 = (char *)&v25 + 1; LABEL_31: v15 = (unsigned __int8 *)&v14[v13]; v16 = (unsigned __int8 *)(v14 + 1); if ( &v14[v13] != v14 + 1 ) { while ( memchr("0123456789", *v16, 0xAu) ) { if ( v15 == ++v16 ) goto LABEL_41; } if ( v16 - (unsigned __int8 *)v14 != -1 ) { if ( !v12 ) goto LABEL_3; goto LABEL_24; } } LABEL_41: std::string::basic_string(v28, a1, 0, v11); v17 = (char *)v28 + 1; if ( (v28[0] & 1) != 0 ) v17 = (char *)v29; v18 = (char *)&v25 + 1; if ( (v25 & 1) != 0 ) v18 = v27; v23 = v17; v19 = atoi(v18); v20 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%s %d", v23, (unsigned int)(v19 + 1)); CString = (const char *)cocos2d::CCString::getCString(v20); *a2 = 0; a2[1] = 0; a2[2] = 0; v24 = (char *)CString; v22 = strlen(CString); std::string::__init((__int64 *)a2, v24, v22); if ( (v28[0] & 1) != 0 ) operator delete(v29); LABEL_39: if ( (v25 & 1) != 0 ) operator delete(v27); return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source