// // sub_100542004 from 0x100542004 to 0x10054233c (824 bytes) // // 1 xrefs: // > AccountReviewPopup::init @ 0x1005415ac // // 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_100542004(__int64 a1) { int v2; // w0 std::string *v3; // x0 std::string::size_type v4; // x20 char v5; // w21 std::string::size_type size; // x8 const std::string::value_type *v7; // x1 std::string::size_type v8; // x11 const char *v9; // x8 int v10; // w10 std::string *p_p; // x9 void *v12; // x0 const char *v13; // x8 void *v14; // x0 const std::string::value_type *v15; // x0 const std::string::value_type *CString; // x0 _QWORD *v17; // x0 std::string v18; // [xsp+18h] [xbp-88h] BYREF std::string __p; // [xsp+30h] [xbp-70h] BYREF std::string v20; // [xsp+48h] [xbp-58h] BYREF __int128 v21; // [xsp+60h] [xbp-40h] BYREF char v22; // [xsp+77h] [xbp-29h] memset(&v20, 0, sizeof(v20)); if ( *(_BYTE *)(a1 + 1232) == 1 ) { if ( *(int *)(a1 + 1016) <= 0 ) v2 = *(_DWORD *)(a1 + 1004); else v2 = *(_DWORD *)(a1 + 1004) + 1; memset(&__p, 0, sizeof(__p)); if ( v2 >= 1 ) { sub_100544550(&v18); v3 = std::string::insert(&v18, 0, "clears "); v4 = v3->__r_.__value_.__r.__words[0]; *(_QWORD *)&v21 = v3->__r_.__value_.__l.__size_; *(_QWORD *)((char *)&v21 + 7) = *(std::string::size_type *)((char *)&v3->__r_.__value_.__r.__words[1] + 7); v5 = HIBYTE(v3->__r_.__value_.__r.__words[2]); v3->__r_.__value_.__l.__size_ = 0; v3->__r_.__value_.__r.__words[2] = 0; v3->__r_.__value_.__r.__words[0] = 0; if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); __p.__r_.__value_.__r.__words[0] = v4; __p.__r_.__value_.__l.__size_ = v21; *(std::string::size_type *)((char *)&__p.__r_.__value_.__r.__words[1] + 7) = *(_QWORD *)((char *)&v21 + 7); *((_BYTE *)&__p.__r_.__value_.__s + 23) = v5; if ( SHIBYTE(v18.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v18.__r_.__value_.__l.__data_); } if ( !*(_DWORD *)(a1 + 916) ) { size = HIBYTE(__p.__r_.__value_.__r.__words[2]); if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL ) size = __p.__r_.__value_.__l.__size_; if ( size ) v7 = " and the case"; else v7 = "closes the case"; std::string::append(&__p, v7); } if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v8 = HIBYTE(__p.__r_.__value_.__r.__words[2]); else v8 = __p.__r_.__value_.__l.__size_; v9 = (const char *)(a1 + 848); v10 = *(char *)(a1 + 871); if ( v8 ) { if ( v10 < 0 ) v9 = *(const char **)v9; p_p = &__p; if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL ) p_p = (std::string *)__p.__r_.__value_.__r.__words[0]; v12 = sub_1003065B0("Close the case on %s?\nEvery pick %s. What happened?", v9, (const char *)p_p); } else { if ( v10 < 0 ) v9 = *(const char **)v9; v12 = sub_1003065B0("Close the case on %s?\nNothing to clear, this just logs the review.", v9); } CString = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v12); std::string::assign(&v20, CString); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); } else { v13 = (const char *)(a1 + 848); if ( *(char *)(a1 + 871) < 0 ) v13 = *(const char **)v13; v14 = sub_1003065B0("Close the case on %s?\nClears the reports and the case. What happened?", v13); v15 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v14); std::string::assign(&v20, v15); } memset(&__p, 0, sizeof(__p)); memset(&v18, 0, sizeof(v18)); sub_100009900(&v21, "Nothing Needed"); sub_10006D9F8((const void **)&__p.__r_.__value_.__l.__data_, &v21); if ( v22 < 0 ) operator delete((void *)v21); *(_QWORD *)&v21 = "GJ_button_04.png"; sub_100011A50((__int64)&v18, &v21); sub_100009900(&v21, "Content Removed"); sub_10006D9F8((const void **)&__p.__r_.__value_.__l.__data_, &v21); if ( v22 < 0 ) operator delete((void *)v21); *(_QWORD *)&v21 = "GJ_button_05.png"; sub_100011A50((__int64)&v18, &v21); sub_100009900(&v21, "Penalty Applied"); sub_10006D9F8((const void **)&__p.__r_.__value_.__l.__data_, &v21); if ( v22 < 0 ) operator delete((void *)v21); *(_QWORD *)&v21 = "GJ_button_06.png"; sub_100011A50((__int64)&v18, &v21); v17 = sub_1005400C0( a1 + 824, 2, (__int64)"Clear", (__int64)&v20, (__int64)&__p, (__int64)&v18, 1, (__int64)"All options clear the reports and close the case.\n" "Your choice only sets the label shown in History.\n" "\n" "Nothing Needed: No violation found.\n" "Content Removed: Content removed, no account penalty.\n" "Penalty Applied: Account banned or restricted.\n" "Pick this even if content was also removed.\n" "\n" "Only the highest action taken is shown."); (*(void (__fastcall **)(_QWORD *))(*v17 + 1312LL))(v17); if ( v18.__r_.__value_.__r.__words[0] ) { v18.__r_.__value_.__l.__size_ = v18.__r_.__value_.__r.__words[0]; operator delete(v18.__r_.__value_.__l.__data_); } v18.__r_.__value_.__r.__words[0] = (std::string::size_type)&__p; sub_100018250((void ***)&v18); if ( SHIBYTE(v20.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v20.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source