// // sub_10026053C from 0x10026053c to 0x100260838 (764 bytes) // // 2 xrefs: // > LocalLevelManager::tryRecoverAutoSaves @ 0x10025ff0c // > LocalLevelManager::tryRecoverAutoSaves @ 0x100260318 // // 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 11:01:38 +0000 // void __usercall sub_10026053C(__int64 **__return_ptr a1@, std::string *__str@) { size_t v4; // x8 char v5; // w10 std::string::size_type size; // x9 std::string *v7; // x11 std::string::size_type v8; // x12 std::string *v9; // x12 std::string *v10; // x14 std::string *v11; // x13 __int64 v12; // x15 int v13; // w16 int v14; // w17 signed __int64 v15; // x23 int v16; // w24 std::string *v17; // x0 std::string::size_type v18; // x8 size_t v19; // x21 std::string *v20; // x1 __int64 v21; // x25 std::string::value_type *v22; // x26 std::string::size_type v23; // x27 size_t v24; // x21 std::string *v25; // x1 std::string *p_a; // x20 std::string *v27; // x0 int v28; // w0 __int64 v29; // x0 char *CString; // x0 std::string __a; // [xsp+18h] [xbp-88h] BYREF std::string v32; // [xsp+30h] [xbp-70h] BYREF std::allocator v33; // [xsp+4Fh] [xbp-51h] BYREF v4 = HIBYTE(__str->__r_.__value_.__r.__words[2]); v5 = v4; v7 = (std::string *)__str->__r_.__value_.__r.__words[0]; size = __str->__r_.__value_.__l.__size_; if ( (v4 & 0x80u) != 0LL ) { v8 = __str->__r_.__value_.__l.__size_; } else { v7 = __str; v8 = HIBYTE(__str->__r_.__value_.__r.__words[2]); } if ( !v8 ) goto LABEL_45; v9 = (std::string *)((char *)v7 + v8); v10 = v7; v11 = v9; do { if ( v10->__r_.__value_.__s.__data_[0] == 32 ) { v12 = 1; while ( v12 != 9 ) { if ( (std::string *)((char *)v10 + v12) == v9 ) goto LABEL_15; v13 = (unsigned __int8)v10->__r_.__value_.__s.__data_[v12]; v14 = (unsigned __int8)aAutosave_0[v12++]; if ( v13 != v14 ) goto LABEL_7; } v11 = v10; } LABEL_7: v10 = (std::string *)((char *)v10 + 1); } while ( v10 != v9 ); LABEL_15: if ( v11 == v9 ) goto LABEL_45; v15 = (char *)v11 - (char *)v7; if ( (char *)v11 - (char *)v7 == -1 ) goto LABEL_45; std::string::basic_string(&v32, __str, v15 + 9, 0xFFFFFFFFFFFFFFFFLL, (std::allocator *)&__a); v16 = SHIBYTE(v32.__r_.__value_.__r.__words[2]); if ( (SHIBYTE(v32.__r_.__value_.__r.__words[2]) & 0x8000000000000000LL) != 0 ) { v18 = v32.__r_.__value_.__l.__size_; if ( v32.__r_.__value_.__l.__size_ ) { if ( v32.__r_.__value_.__l.__size_ == 1 ) { LABEL_24: v17 = (std::string *)v32.__r_.__value_.__r.__words[0]; LABEL_43: operator delete(v17); goto LABEL_44; } v17 = (std::string *)v32.__r_.__value_.__r.__words[0]; if ( *v32.__r_.__value_.__l.__data_ != 32 ) goto LABEL_43; LABEL_39: v21 = 0; v22 = &v17->__r_.__value_.__s.__data_[1]; v23 = v18 - 1; while ( memchr("0123456789", v22[v21], 0xAu) ) { if ( v23 == ++v21 ) goto LABEL_58; } if ( v21 == -2 ) { LABEL_58: std::string::basic_string(&__a, __str, 0, v15 + 9, &v33); if ( (__a.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) p_a = &__a; else p_a = (std::string *)__a.__r_.__value_.__r.__words[0]; if ( (v32.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v27 = &v32; else v27 = (std::string *)v32.__r_.__value_.__r.__words[0]; v28 = atoi((const char *)v27); v29 = sub_1003065B0("%s %d", (const char *)p_a, v28 + 1); CString = (char *)cocos2d::CCString::getCString(v29); sub_100009900(a1, CString); if ( SHIBYTE(__a.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__a.__r_.__value_.__l.__data_); goto LABEL_36; } if ( (v16 & 0x80000000) == 0 ) goto LABEL_44; goto LABEL_24; } } else { if ( SHIBYTE(v32.__r_.__value_.__r.__words[2]) == 1 ) goto LABEL_44; if ( *((_BYTE *)&v32.__r_.__value_.__s + 23) ) { if ( v32.__r_.__value_.__s.__data_[0] == 32 ) { v17 = &v32; v18 = SHIBYTE(v32.__r_.__value_.__r.__words[2]); goto LABEL_39; } LABEL_44: v4 = HIBYTE(__str->__r_.__value_.__r.__words[2]); size = __str->__r_.__value_.__l.__size_; v5 = HIBYTE(__str->__r_.__value_.__r.__words[2]); LABEL_45: if ( v5 >= 0 ) v24 = v4; else v24 = size; sub_100026068((__int64)a1, v24 + 9); if ( *((char *)a1 + 23) < 0 ) a1 = (__int64 **)*a1; if ( v24 ) { if ( (__str->__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v25 = __str; else v25 = (std::string *)__str->__r_.__value_.__r.__words[0]; memmove(a1, v25, v24); } strcpy((char *)a1 + v24, " Autosave"); return; } } if ( (__str->__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v19 = HIBYTE(__str->__r_.__value_.__r.__words[2]); else v19 = __str->__r_.__value_.__l.__size_; sub_100026068((__int64)a1, v19 + 2); if ( *((char *)a1 + 23) < 0 ) a1 = (__int64 **)*a1; if ( v19 ) { if ( (__str->__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v20 = __str; else v20 = (std::string *)__str->__r_.__value_.__r.__words[0]; memmove(a1, v20, v19); } strcpy((char *)a1 + v19, " 2"); LABEL_36: if ( SHIBYTE(v32.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v32.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source