// // MessageThreadsPage::onDeleteSelected from 0x10092a0c0 to 0x10092a58e (1230 bytes) // // 1 xrefs: // > MessageThreadsPage::init @ 0x1009293d9 // // This function is hookable on this platform (idp: pc, 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 12:38:21 +0000 // void __fastcall MessageThreadsPage::onDeleteSelected(__int64 a1) { __int64 v2; // rdi signed int v3; // r15d int v4; // r14d __int64 v5; // rdi int v6; // r15d signed int v7; // r12d int v8; // r13d __int64 v9; // rax const char *v10; // r12 const char *v11; // rdx char *v12; // rax const std::string::value_type *CString; // rax const char *v14; // rdx char *v15; // rax const std::string::value_type *v16; // rax const char *v17; // rdx char *v18; // rax const std::string::value_type *v19; // rax char *v20; // rax const std::string::value_type *v21; // rax const char *v22; // r14 char *v23; // rax size_t v24; // rax std::string::size_type v25; // r15 char *data; // r12 size_t v27; // r13 const std::string::value_type *p_s; // rsi std::string::size_type v29; // rdx const char *v30; // r14 size_t v31; // rax size_t v32; // r15 char *v33; // r12 size_t v34; // r13 __int64 *v35; // rbx unsigned __int8 v36; // [rsp+8h] [rbp-98h] BYREF std::string::value_type __s; // [rsp+9h] [rbp-97h] BYREF std::string::size_type v38; // [rsp+10h] [rbp-90h] void *__p; // [rsp+18h] [rbp-88h] _QWORD v40[2]; // [rsp+20h] [rbp-80h] BYREF void *v41; // [rsp+30h] [rbp-70h] std::string __dst; // [rsp+38h] [rbp-68h] BYREF std::string v43; // [rsp+50h] [rbp-50h] BYREF int v44; // [rsp+70h] [rbp-30h] int v45; // [rsp+74h] [rbp-2Ch] v2 = *(_QWORD *)(a1 + 800); if ( !v2 ) return; if ( (int)sub_1007FEF90(v2) <= 0 ) return; v3 = 0; v4 = 0; do v4 += *(unsigned __int8 *)(sub_1007FEFE0(*(_QWORD *)(a1 + 800), v3++) + 304); while ( v3 < (int)sub_1007FEF90(*(_QWORD *)(a1 + 800)) ); if ( !v4 ) return; v5 = *(_QWORD *)(a1 + 800); if ( !v5 ) return; if ( (int)sub_1007FEF90(v5) <= 0 ) { memset(&v43, 0, sizeof(v43)); goto LABEL_50; } v6 = 0; v7 = 0; v45 = 0; v44 = 0; v8 = 0; do { v9 = sub_1007FEFE0(*(_QWORD *)(a1 + 800), v7); if ( *(_BYTE *)(v9 + 304) == 1 ) { if ( *(_BYTE *)(v9 + 264) == 1 ) { if ( *(_BYTE *)(v9 + 265) == 1 ) ++v8; else ++v6; } else if ( *(_DWORD *)(v9 + 268) == 8 ) { ++v45; } else { ++v44; } } ++v7; } while ( v7 < (int)sub_1007FEF90(*(_QWORD *)(a1 + 800)) ); memset(&v43, 0, sizeof(v43)); v10 = "s"; if ( v6 > 0 ) { v11 = "s"; if ( v6 == 1 ) v11 = ""; v12 = sub_10088E820("%i DM%s will be cleared. Your message history will be permanently deleted.", v6, v11); CString = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v12); std::string::append(&v43, CString); } if ( v8 > 0 ) { if ( (*(_BYTE *)&v43.__r_.__value_.__s.0 & 1) != 0 ) { if ( !v43.__r_.__value_.__l.__size_ ) goto LABEL_29; } else if ( !(*(_BYTE *)&v43.__r_.__value_.__l.0 >> 1) ) { LABEL_29: v14 = "s"; if ( v8 == 1 ) v14 = ""; v15 = sub_10088E820("%i pending request%s will be cancelled.", v8, v14); v16 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v15); std::string::append(&v43, v16); goto LABEL_32; } std::string::append(&v43, "\n"); goto LABEL_29; } LABEL_32: if ( v44 <= 0 ) goto LABEL_41; if ( (*(_BYTE *)&v43.__r_.__value_.__s.0 & 1) != 0 ) { if ( !v43.__r_.__value_.__l.__size_ ) goto LABEL_38; goto LABEL_37; } if ( *(_BYTE *)&v43.__r_.__value_.__l.0 >> 1 ) LABEL_37: std::string::append(&v43, "\n"); LABEL_38: v17 = "s"; if ( v44 == 1 ) v17 = ""; v18 = sub_10088E820("You will leave %i group chat%s. You can only rejoin if you are invited back.", v44, v17); v19 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v18); std::string::append(&v43, v19); LABEL_41: if ( v45 <= 0 ) goto LABEL_50; if ( (*(_BYTE *)&v43.__r_.__value_.__s.0 & 1) != 0 ) { if ( !v43.__r_.__value_.__l.__size_ ) goto LABEL_47; goto LABEL_46; } if ( *(_BYTE *)&v43.__r_.__value_.__l.0 >> 1 ) LABEL_46: std::string::append(&v43, "\n"); LABEL_47: if ( v45 == 1 ) v10 = ""; v20 = sub_10088E820( "%i group chat%s you were removed from will disappear from your inbox. You will no longer be able to read o" "r report them.", v45, v10); v21 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v20); std::string::append(&v43, v21); LABEL_50: if ( v4 == 1 ) { v22 = "Delete this conversation?"; } else { v23 = sub_10088E820("Delete %i conversations?", v4); v22 = (const char *)cocos2d::CCString::getCString((__int64)v23); } v24 = strlen(v22); if ( v24 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v25 = v24; if ( v24 >= 0x17 ) { v27 = 26; if ( (v24 | 7) != 0x17 ) v27 = (v24 | 7) + 1; data = (char *)operator new(v27); __dst.__r_.__value_.__r.__words[2] = (std::string::size_type)data; __dst.__r_.__value_.__r.__words[0] = v27 | 1; __dst.__r_.__value_.__l.__size_ = v25; goto LABEL_60; } __dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v24); data = __dst.__r_.__value_.__s.__data_; if ( v24 ) LABEL_60: memmove(data, v22, v25); data[v25] = 0; std::operator+(&v36, "\n", &v43); if ( (v36 & 1) != 0 ) { p_s = (const std::string::value_type *)__p; v29 = v38; } else { v29 = v36 >> 1; p_s = &__s; } std::string::append(&__dst, p_s, v29); if ( (v36 & 1) != 0 ) operator delete(__p); if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 ) v30 = __dst.__r_.__value_.__l.__data_; else v30 = __dst.__r_.__value_.__s.__data_; v31 = strlen(v30); if ( v31 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v32 = v31; if ( v31 >= 0x17 ) { v34 = 26; if ( (v31 | 7) != 0x17 ) v34 = (v31 | 7) + 1; v33 = (char *)operator new(v34); v41 = v33; v40[0] = v34 | 1; v40[1] = v32; } else { LOBYTE(v40[0]) = 2 * v31; v33 = (char *)v40 + 1; if ( !v31 ) goto LABEL_77; } memmove(v33, v30, v32); LABEL_77: v33[v32] = 0; v35 = (__int64 *)FLAlertLayer::create_1((int)a1 + 672, (int)"Delete", (__int64)v40, (int)"Back", (int)"Delete", 300.0); if ( (v40[0] & 1) != 0 ) operator delete(v41); ButtonSprite::updateBGImage(v35[77], (__int64)"GJ_button_06.png"); (*(void (__fastcall **)(__int64 *, __int64))(*v35 + 72))(v35, 2); (*(void (__fastcall **)(__int64 *))(*v35 + 1312))(v35); if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__dst.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v43.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v43.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source