// // sub_10053053C from 0x10053053c to 0x100530ee4 (2472 bytes) // // 4 xrefs: // > AutoBackupPopup::init @ 0x100530044 // > AutoBackupPopup::backupsChanged @ 0x100531bac // > sub_100531BB0 @ 0x100531bd4 // > AutoBackupPopup::textChanged @ 0x100531ce8 // // 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:07:20 +0000 // void __fastcall sub_10053053C(__int64 a1) { _QWORD *v2; // x24 __int64 v3; // x21 __int64 v4; // x20 __int64 v5; // x8 unsigned __int64 v6; // x26 __int64 v7; // x25 char *v8; // x8 int v9; // w28 __int64 *v10; // x21 __int64 **v11; // x27 int v12; // w10 char *v13; // x22 signed __int64 v14; // x23 _BOOL4 v15; // w20 char *v16; // x20 int v17; // w24 __int64 **v18; // x0 char *v19; // x8 char *v20; // x0 char *v21; // x25 __int64 v23; // x8 __int64 v24; // x20 unsigned __int64 v25; // x21 __int64 v26; // x0 __int64 v27; // x27 __int64 v28; // x8 __int64 v29; // x0 __int64 v30; // x8 __int64 v31; // x20 __int64 v32; // x21 __int64 v33; // x24 void *v34; // x28 void *v35; // x22 char *v36; // x22 _BOOL8 v37; // x1 __int64 v38; // x0 float v39; // s13 char *v40; // x22 float v41; // s8 void *v42; // x0 void *v43; // x28 float v44; // s8 void *v45; // x28 __int64 v46; // x0 float v47; // s11 float v48; // s14 void *v49; // x28 float v50; // s15 float v51; // s8 void *v52; // x28 __int64 v53; // x0 float v54; // s11 float v55; // s14 void *v56; // x28 float v57; // s0 float v58; // s8 float v59; // s14 const char *v60; // x0 void *v61; // x28 float v62; // s10 __int64 v63; // x23 size_t v64; // x28 std::string *v65; // x22 const void *v66; // x1 void **v67; // x1 std::string::size_type v68; // x2 std::string *v69; // x0 __int128 v70; // q0 __int64 v71; // x0 void *v72; // x0 const std::string::value_type *CString; // x0 std::string *v74; // x0 void *v75; // x28 __int64 v76; // x8 const char *v77; // x1 void *__p[2]; // [xsp+30h] [xbp-100h] BYREF unsigned __int8 v79; // [xsp+47h] [xbp-E9h] std::string v80; // [xsp+48h] [xbp-E8h] BYREF std::string v81; // [xsp+60h] [xbp-D0h] BYREF char *v82; // [xsp+78h] [xbp-B8h] BYREF char **v83; // [xsp+80h] [xbp-B0h] BYREF char *v84; // [xsp+88h] [xbp-A8h] BYREF __int64 v85; // [xsp+90h] [xbp-A0h] (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1352LL))(a1); sub_10051B070(a1); v2 = (_QWORD *)(a1 + 848); v3 = *(_QWORD *)(a1 + 856); v4 = *(_QWORD *)(a1 + 848); while ( v3 != v4 ) { v3 -= 128; sub_100535810(a1 + 848, v3); } *(_QWORD *)(a1 + 856) = v4; v5 = *(_QWORD *)(a1 + 824); if ( *(_QWORD *)(a1 + 832) != v5 ) { v6 = 0; v7 = a1 + 872; while ( 1 ) { if ( (*(char *)(a1 + 895) & 0x8000000000000000LL) != 0 ) { if ( !*(_QWORD *)(a1 + 880) ) goto LABEL_29; } else if ( !*(_BYTE *)(a1 + 895) ) { goto LABEL_29; } sub_100531D58(&v83, v5 + (v6 << 7) + 48); v8 = (char *)HIBYTE(v85); v9 = SHIBYTE(v85); v10 = (__int64 *)v83; if ( v85 >= 0 ) v11 = (__int64 **)&v83; else v11 = (__int64 **)v83; if ( v85 < 0 ) v8 = v84; v12 = *(char *)(a1 + 895); v13 = v12 >= 0 ? (char *)v7 : *(char **)(a1 + 872); v14 = v12 >= 0 ? *(unsigned __int8 *)(a1 + 895) : *(_QWORD *)(a1 + 880); if ( !v14 ) break; if ( (__int64)v8 < v14 ) { v15 = 0; if ( (SHIBYTE(v85) & 0x80000000) == 0 ) goto LABEL_27; LABEL_26: operator delete(v10); goto LABEL_27; } v16 = &v8[(_QWORD)v11]; v17 = *v13; v18 = v11; do { v19 = &v8[-v14]; if ( v19 == (char *)-1LL ) break; v20 = (char *)memchr(v18, v17, (size_t)(v19 + 1)); if ( !v20 ) break; v21 = v20; if ( !memcmp(v20, v13, v14) ) goto LABEL_38; v18 = (__int64 **)(v21 + 1); v8 = (char *)(v16 - (v21 + 1)); } while ( (__int64)v8 >= v14 ); v21 = v16; LABEL_38: v15 = v21 != v16 && v21 - (char *)v11 != -1; v7 = a1 + 872; v2 = (_QWORD *)(a1 + 848); if ( v9 < 0 ) goto LABEL_26; LABEL_27: if ( v15 ) { v5 = *(_QWORD *)(a1 + 824); LABEL_29: sub_100531E30(v2, v5 + (v6 << 7)); } ++v6; v5 = *(_QWORD *)(a1 + 824); if ( v6 >= (*(_QWORD *)(a1 + 832) - v5) >> 7 ) goto LABEL_46; } v15 = 1; if ( (SHIBYTE(v85) & 0x80000000) == 0 ) goto LABEL_27; goto LABEL_26; } LABEL_46: sub_1005319EC(a1); v84 = nullptr; v85 = 0; v83 = &v84; v23 = *(_QWORD *)(a1 + 848); if ( *(_QWORD *)(a1 + 856) != v23 ) { v24 = 0; v25 = 0; do { if ( sub_1000D9098(a1 + 944, (const void **)(v23 + v24)) ) sub_1000D8F30((__int64 **)&v83, *v2 + v24, *v2 + v24); ++v25; v23 = *(_QWORD *)(a1 + 848); v24 += 128; } while ( v25 < (*(_QWORD *)(a1 + 856) - v23) >> 7 ); } sub_100535CFC(a1 + 944, &v83); v26 = *(_QWORD *)(a1 + 992); if ( v26 ) sub_10037E57C(v26, *(_DWORD *)(a1 + 960)); v27 = *(_QWORD *)(a1 + 848); v28 = *(_QWORD *)(a1 + 856); if ( v27 == v28 ) { if ( *(_QWORD *)(a1 + 824) == *(_QWORD *)(a1 + 832) ) v77 = "No backups yet"; else v77 = "No matching backups"; sub_10051B1FC(a1, v77); ScrollableContentLayer::setContentHeight(*(_QWORD *)(a1 + 688), 0.0); } else { v29 = *(_QWORD *)(a1 + 688); v30 = (v28 - v27) >> 7; if ( (int)v30 >= 1 ) { v31 = 0; v32 = *(_QWORD *)(v29 + 416); v33 = 71; do { v34 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_checkOn_001.png"); v35 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_checkOff_001.png"); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v34 + 160LL))(v34, 0.6); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v35 + 160LL))(v35, 0.6); v36 = CCMenuItemToggler::create((__int64)v35, (__int64)v34, a1, (__int64)sub_100531E80, 0); v82 = v36; v37 = sub_1000D9098(a1 + 944, (const void **)(v27 + v33 - 71)) != 0; CCMenuItemToggler::toggle((__int64)v36, v37); v38 = (__int64)v82; v82[393] = 1; CCMenuItemToggler::setSizeMult(v38, 1.3); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v82 + 72LL))(v82, v31); v39 = -(float)((float)((float)(unsigned int)v31 * 40.0) + 20.0); v40 = v82; sub_1000262BC((float *)&v81, 17.0, v39); (*(void (__fastcall **)(char *, std::string *))(*(_QWORD *)v40 + 184LL))(v40, &v81); (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v32 + 464LL))(v32, v82, 2); sub_100011A50(a1 + 968, &v82); v41 = *(float *)(a1 + 704); v42 = ButtonSprite::create_1( (__int64)"Restore", 50, 0, 1, (__int64)"bigFont.fnt", (__int64)"GJ_button_01.png", 0.4, 22.0); v43 = CCMenuItemSpriteExtra::create((__int64)v42, 0, a1, (__int64)sub_100531F3C, 0); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v43 + 72LL))(v43, v31); v44 = (float)(v41 + -10.0) + -10.0; sub_1000262BC((float *)&v81, v44 + -25.0, v39); (*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v43 + 184LL))(v43, &v81); (*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)v32 + 464LL))(v32, v43, 2); v45 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"threadBtn_delete_001.png"); v46 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v45 + 328LL))(v45); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v45 + 160LL))(v45, 22.0 / *(float *)(v46 + 4)); v47 = *(float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v45 + 328LL))(v45); v48 = (*(float (__fastcall **)(void *))(*(_QWORD *)v45 + 168LL))(v45); v49 = CCMenuItemSpriteExtra::create((__int64)v45, 0, a1, (__int64)sub_1005320C8, 0); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v49 + 72LL))(v49, v31); v50 = v47 * v48; v51 = (float)((float)(v44 + -50.0) + -10.0) + -10.0; sub_1000262BC((float *)&v81, v51 + (float)((float)(v47 * v48) * -0.5), v39); (*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v49 + 184LL))(v49, &v81); (*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)v32 + 464LL))(v32, v49, 2); v52 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"threadBtn_export_001.png"); v53 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v52 + 328LL))(v52); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v52 + 160LL))(v52, 22.0 / *(float *)(v53 + 4)); v54 = *(float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v52 + 328LL))(v52); v55 = (*(float (__fastcall **)(void *))(*(_QWORD *)v52 + 168LL))(v52); v56 = CCMenuItemSpriteExtra::create((__int64)v52, 0, a1, (__int64)sub_100532308, 0); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v56 + 72LL))(v56, v31); v57 = v51 - v50; v58 = v54 * v55; v59 = v57 + -10.0; sub_1000262BC((float *)&v81, (float)(v57 + -10.0) + (float)(v58 * -0.5), v39); (*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v56 + 184LL))(v56, &v81); (*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)v32 + 464LL))(v32, v56, 2); v60 = (const char *)(v27 + v33 - 23); if ( *(char *)(v27 + v33) < 0 ) v60 = *(const char **)v60; v61 = cocos2d::CCLabelBMFont::create_1(v60, "bigFont.fnt"); sub_1000262BC((float *)&v81, 0.0, 0.5); (*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v61 + 296LL))(v61, &v81); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v61 + 160LL))(v61, 0.45); cocos2d::CCLabelBMFont::limitLabelWidth((__int64)v61, (float)((float)(v59 - v58) + -34.0) + -10.0, 0.45, 0.2); v62 = (float)((float)(unsigned int)v31 * 40.0) + 20.0; sub_1000262BC((float *)&v81, 34.0, 8.0 - v62); (*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v61 + 184LL))(v61, &v81); (*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)v32 + 464LL))(v32, v61, 1); v63 = v27 + v33; if ( *(char *)(v27 + v33 + 24) >= 0 ) v64 = *(unsigned __int8 *)(v27 + v33 + 24); else v64 = *(_QWORD *)(v27 + v33 + 9); sub_100026068((__int64)&v80, v64 + 3); if ( (v80.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v65 = &v80; else v65 = (std::string *)v80.__r_.__value_.__r.__words[0]; if ( v64 ) { if ( *(char *)(v63 + 24) >= 0 ) v66 = (const void *)(v63 + 1); else v66 = *(const void **)(v63 + 1); memmove(v65, v66, v64); } *(_DWORD *)((char *)&v65->__r_.__value_.__l.__data_ + v64) = 2105376; sub_1001D1978(*(_DWORD *)(v27 + v33 + 49), __p); if ( (v79 & 0x80u) == 0 ) v67 = __p; else v67 = (void **)__p[0]; if ( (v79 & 0x80u) == 0 ) v68 = v79; else v68 = (std::string::size_type)__p[1]; v69 = std::string::append(&v80, (const std::string::value_type *)v67, v68); v70 = *(_OWORD *)&v69->__r_.__value_.__l.__data_; v81.__r_.__value_.__r.__words[2] = v69->__r_.__value_.__r.__words[2]; *(_OWORD *)&v81.__r_.__value_.__l.__data_ = v70; v69->__r_.__value_.__l.__size_ = 0; v69->__r_.__value_.__r.__words[2] = 0; v69->__r_.__value_.__r.__words[0] = 0; if ( (char)v79 < 0 ) operator delete(__p[0]); if ( SHIBYTE(v80.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v80.__r_.__value_.__l.__data_); v71 = sub_1000D9514(a1 + 896, (const void **)(v27 + v33 - 47)); if ( a1 + 904 != v71 ) { v72 = sub_1003065B0(" Rev: %i", *(_DWORD *)(v71 + 56)); CString = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v72); std::string::append(&v81, CString); } if ( (v81.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v74 = &v81; else v74 = (std::string *)v81.__r_.__value_.__r.__words[0]; v75 = cocos2d::CCLabelBMFont::create_1((const char *)v74, "chatFont.fnt"); sub_1000262BC((float *)&v80, 0.0, 0.5); (*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v75 + 296LL))(v75, &v80); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v75 + 160LL))(v75, 0.5); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v75 + 1024LL))(v75, 160); cocos2d::CCLabelBMFont::limitLabelWidth((__int64)v75, (float)((float)(v59 - v58) + -34.0) + -10.0, 0.5, 0.2); sub_1000262BC((float *)&v80, 34.0, -9.0 - v62); (*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v75 + 184LL))(v75, &v80); (*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)v32 + 464LL))(v32, v75, 1); if ( SHIBYTE(v81.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v81.__r_.__value_.__l.__data_); ++v31; v27 = *(_QWORD *)(a1 + 848); v76 = *(_QWORD *)(a1 + 856) - v27; v33 += 128; } while ( v31 < (int)((unsigned __int64)v76 >> 7) ); v30 = v76 >> 7; v29 = *(_QWORD *)(a1 + 688); } ScrollableContentLayer::setContentHeight(v29, (float)(unsigned __int64)v30 * 40.0); } sub_1000D8D9C((__int64)&v83, v84); }
GD Web Decomp Icon

GD Web Decomp

Raw Source