// // sub_5430BC from 0x5430bc to 0x543272 (438 bytes) // // 2 xrefs: // > LocalLevelManager::tryRecoverAutoSaves @ 0x543994 // > LocalLevelManager::tryRecoverAutoSaves @ 0x543a5c // // 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:52:20 +0000 // unsigned int *__fastcall sub_5430BC(unsigned int *a1, unsigned __int8 *a2) { int v4; // r3 int v5; // r2 unsigned __int8 *v6; // r5 unsigned __int8 *v7; // r2 unsigned __int8 *i; // r4 unsigned __int8 *v9; // r1 unsigned __int8 *v10; // r4 char *v11; // r0 unsigned __int8 *v12; // r3 int v13; // r10 int v14; // t1 int v15; // t1 int v16; // r5 unsigned int v17; // r5 char *v18; // r2 char *v19; // r10 unsigned int v20; // r3 unsigned __int8 *v21; // r11 unsigned __int8 *v22; // r4 const char *v23; // r12 void *v24; // r0 const char *v25; // r5 char *v26; // r0 int v27; // r0 cocos2d::CCString *v28; // r0 const char *CString; // r0 const char *v30; // r5 size_t v31; // r0 unsigned __int8 *v33; // [sp+8h] [bp-2Ch] const char *v34; // [sp+Ch] [bp-28h] int v35; // [sp+14h] [bp-20h] BYREF unsigned int v36; // [sp+18h] [bp-1Ch] char *v37; // [sp+1Ch] [bp-18h] int v38[3]; // [sp+20h] [bp-14h] BYREF v4 = *a2; if ( (v4 & 1) != 0 ) { v5 = *((_DWORD *)a2 + 1); v6 = *((unsigned __int8 **)a2 + 2); } else { v5 = v4 >> 1; v6 = a2 + 1; } if ( v5 <= 8 ) goto LABEL_40; v7 = &v6[v5]; for ( i = v7; ; i = v9 ) { if ( v6 + 8 == i ) goto LABEL_40; v9 = i - 1; if ( *(i - 1) == 101 ) break; LABEL_8: ; } v10 = i - 9; v11 = "e"; v12 = v9; do { v14 = *--v12; v13 = v14; v15 = (unsigned __int8)*--v11; if ( v13 != v15 ) goto LABEL_8; } while ( v12 != v10 ); if ( v12 == v7 || (v16 = v12 - v6, v16 == -1) ) { LABEL_40: std::operator+(a1, a2, " Autosave"); return a1; } v17 = v16 + 9; std::string::basic_string(&v35, a2, v17, 0xFFFFFFFF); if ( (v35 & 1) != 0 ) { if ( !v36 ) goto LABEL_18; if ( v36 <= 1 ) { LABEL_38: std::string::~string((int)&v35); goto LABEL_40; } v18 = v37; LABEL_23: if ( *v18 == 32 ) { if ( (v35 & 1) != 0 ) { v19 = v37; v20 = v36; } else { v20 = (int)(unsigned __int8)v35 >> 1; v19 = (char *)&v35 + 1; } if ( v20 > 1 ) { v21 = (unsigned __int8 *)(v19 + 1); v22 = (unsigned __int8 *)&v19[v20]; v23 = "0123456789"; while ( v21 != v22 ) { v34 = v23; v33 = v21; v24 = memchr(v23, *v21++, 0xAu); v23 = v34; if ( !v24 ) { if ( v33 - (unsigned __int8 *)v19 != -1 ) goto LABEL_38; break; } } } std::string::basic_string(v38, a2, 0, v17); if ( (v38[0] & 1) != 0 ) v25 = (const char *)v38[2]; else v25 = (char *)v38 + 1; if ( (v35 & 1) != 0 ) v26 = v37; else v26 = (char *)&v35 + 1; v27 = atoi(v26); v28 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s %d", v25, v27 + 1); CString = (const char *)cocos2d::CCString::getCString(v28); *a1 = 0; a1[1] = 0; v30 = CString; a1[2] = 0; v31 = strlen(CString); std::string::__init((int *)a1, v30, v31); std::string::~string((int)v38); goto LABEL_39; } goto LABEL_38; } if ( (int)(unsigned __int8)v35 >> 1 ) { if ( (int)(unsigned __int8)v35 >> 1 == 1 ) goto LABEL_38; v18 = (char *)&v35 + 1; goto LABEL_23; } LABEL_18: std::operator+(a1, a2, " 2"); LABEL_39: std::string::~string((int)&v35); return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source