// // ProfilePage::uploadActionFinished from 0x1007bf630 to 0x1007bf79a (362 bytes) // // 2 xrefs: // > sub_1007BF7E0 @ 0x1007bf7ec // > @ 0x100994300 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall ProfilePage::uploadActionFinished(ProfilePage *a1, int a2, int a3) { const std::string::value_type *v4; // rsi const char *data; // r14 UploadActionPopup *m_popupDelegate; // rbx size_t v7; // rax size_t v8; // r15 char *v9; // r12 size_t v10; // r13 _QWORD __dst[2]; // [rsp+8h] [rbp-58h] BYREF void *__p; // [rsp+18h] [rbp-48h] std::string v13; // [rsp+20h] [rbp-40h] BYREF if ( a1->m_accountID != a2 || !a1->m_popupDelegate ) return; v13.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x1Au); v13.__r_.__value_.__r.__words[0] = 27; v13.__r_.__value_.__l.__size_ = 23; strcpy(v13.__r_.__value_.__l.__data_, "Unknown action finished"); switch ( a3 ) { case 34: v4 = "User blocked"; break; case 33: v4 = "Friend removed"; break; case 30: v4 = "Request removed"; break; default: goto LABEL_10; } std::string::assign(&v13, v4); LABEL_10: if ( (*(_BYTE *)&v13.__r_.__value_.__s.0 & 1) != 0 ) data = v13.__r_.__value_.__l.__data_; else data = v13.__r_.__value_.__s.__data_; m_popupDelegate = a1->m_popupDelegate; v7 = strlen(data); if ( v7 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(1.817838931840398e-152); v8 = v7; if ( v7 >= 0x17 ) { v10 = 26; if ( (v7 | 7) != 0x17 ) v10 = (v7 | 7) + 1; v9 = (char *)operator new(v10); __p = v9; __dst[0] = v10 | 1; __dst[1] = v8; } else { LOBYTE(__dst[0]) = 2 * v7; v9 = (char *)__dst + 1; if ( !v7 ) goto LABEL_21; } memmove(v9, data, v8); LABEL_21: v9[v8] = 0; UploadActionPopup::showSuccessMessage((__int64)m_popupDelegate, (__int64)__dst); if ( (__dst[0] & 1) != 0 ) operator delete(__p); if ( (*(_BYTE *)&v13.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v13.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source