// // sub_100542450 from 0x100542450 to 0x10054277c (812 bytes) // // 1 xrefs: // > AccountReviewPopup::init @ 0x100541838 // // 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:43 +0000 // void __fastcall sub_100542450(__int64 a1) { int v2; // w21 int v3; // w0 int v4; // w20 void *v5; // x0 char *CString; // x0 void *v7; // x0 char *v8; // x0 void *v9; // x0 char *v10; // x0 void *v11; // x0 const char *v12; // x8 const std::string::value_type *v13; // x0 _QWORD *v14; // x0 std::string __p; // [xsp+18h] [xbp-68h] BYREF void *v16; // [xsp+30h] [xbp-50h] BYREF void *v17; // [xsp+38h] [xbp-48h] __int64 v18; // [xsp+40h] [xbp-40h] const void *v19[3]; // [xsp+48h] [xbp-38h] BYREF memset(v19, 0, sizeof(v19)); v16 = nullptr; v17 = nullptr; v18 = 0; *(_QWORD *)(a1 + 1280) = *(_QWORD *)(a1 + 1272); if ( *(_DWORD *)(a1 + 1236) == 2 ) v2 = 0; else v2 = *(_DWORD *)(a1 + 1360); v3 = sub_100549F98(a1); v4 = v3; if ( v2 < 1 || *(_DWORD *)(a1 + 1236) ) { if ( v3 < 1 ) goto LABEL_16; v5 = sub_1003065B0("Delete Selected (%i)", v3); CString = (char *)cocos2d::CCString::getCString((__int64)v5); sub_100009900(&__p, CString); sub_10006D9F8(v19, (__int128 *)&__p); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); goto LABEL_15; } v7 = sub_1003065B0("Dismiss Reports (%i)", v2); v8 = (char *)cocos2d::CCString::getCString((__int64)v7); sub_100009900(&__p, v8); sub_10006D9F8(v19, (__int128 *)&__p); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); __p.__r_.__value_.__r.__words[0] = (std::string::size_type)"GJ_button_04.png"; sub_100011A50((__int64)&v16, &__p); LODWORD(__p.__r_.__value_.__l.__data_) = 1; sub_10000D038(a1 + 1272, (int *)&__p); if ( v4 >= 1 ) { v9 = sub_1003065B0("Delete Content (%i of %i)", v4, v2); v10 = (char *)cocos2d::CCString::getCString((__int64)v9); sub_100009900(&__p, v10); sub_10006D9F8(v19, (__int128 *)&__p); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); LABEL_15: __p.__r_.__value_.__r.__words[0] = (std::string::size_type)"GJ_button_06.png"; sub_100011A50((__int64)&v16, &__p); LODWORD(__p.__r_.__value_.__l.__data_) = 2; sub_10000D038(a1 + 1272, (int *)&__p); } LABEL_16: sub_100009900(&__p, "Delete All Comments"); sub_10006D9F8(v19, (__int128 *)&__p); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); __p.__r_.__value_.__r.__words[0] = (std::string::size_type)"GJ_button_06.png"; sub_100011A50((__int64)&v16, &__p); LODWORD(__p.__r_.__value_.__l.__data_) = 3; sub_10000D038(a1 + 1272, (int *)&__p); sub_100009900(&__p, "Delete All Posts"); sub_10006D9F8(v19, (__int128 *)&__p); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); __p.__r_.__value_.__r.__words[0] = (std::string::size_type)"GJ_button_06.png"; sub_100011A50((__int64)&v16, &__p); LODWORD(__p.__r_.__value_.__l.__data_) = 4; sub_10000D038(a1 + 1272, (int *)&__p); memset(&__p, 0, sizeof(__p)); if ( v2 < 1 ) { v12 = (const char *)(a1 + 848); if ( *(char *)(a1 + 871) < 0 ) v12 = *(const char **)v12; v11 = sub_1003065B0("Everything by %s.\nTick rows on Reported or Filter to pick single items.", v12); } else if ( *(_DWORD *)(a1 + 1236) ) { v11 = sub_1003065B0("%i selected on this page."); } else { v11 = sub_1003065B0("%i selected on this page.\nDismiss keeps the text, Delete removes it."); } v13 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v11); std::string::assign(&__p, v13); v14 = sub_1005400C0(a1 + 824, 1, (__int64)"Delete", (__int64)&__p, (__int64)v19, (__int64)&v16, 0, 0); (*(void (__fastcall **)(_QWORD *))(*v14 + 1312LL))(v14); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); if ( v16 ) { v17 = v16; operator delete(v16); } v16 = v19; sub_100018250((void ***)&v16); }
GD Web Decomp Icon

GD Web Decomp

Raw Source