// // GJWriteMessagePopup::updateText from 0x5ddef4 to 0x5de04c (344 bytes) // // 2 xrefs: // > GJWriteMessagePopup::updateSubject @ 0x5de080 // > GJWriteMessagePopup::updateBody @ 0x5de0c4 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:54:13 +0000 // int __fastcall GJWriteMessagePopup::updateText(int a1, unsigned __int8 *a2, int a3) { _DWORD *v6; // r4 char *v7; // r1 int v8; // r3 int v9; // r2 int v10; // r3 int v11; // r2 bool v12; // nf size_t v13; // r0 int v15; // [sp+4h] [bp-2Ch] int v16[3]; // [sp+8h] [bp-28h] BYREF int v17[3]; // [sp+14h] [bp-1Ch] BYREF int v18[3]; // [sp+20h] [bp-10h] BYREF memset(v16, 0, sizeof(v16)); std::string::__init(v16, &unk_B6B226, 0); if ( a3 ) { std::string::operator=((unsigned __int8 *)(a1 + 552), a2); v6 = *(_DWORD **)(*(_DWORD *)(a1 + 544) + 436); v7 = "Message"; } else { std::string::operator=((unsigned __int8 *)(a1 + 564), a2); v6 = *(_DWORD **)(*(_DWORD *)(a1 + 548) + 436); v7 = "Subject"; } std::string::assign(v16, v7); v8 = *a2; v9 = v8 << 31; if ( (v8 & 1) != 0 ) v10 = *((_DWORD *)a2 + 1); else v10 = v8 >> 1; if ( v10 ) { if ( a3 == 1 ) { (*(void (__fastcall **)(_DWORD *, int, int))(*v6 + 80))(v6, 1065353216, v9); v6[131] = 1134526464; } v12 = (*a2 & 1) != 0; if ( (*a2 & 1) == 0 ) ++a2; v18[0] = 0; if ( v12 ) a2 = *((unsigned __int8 **)a2 + 2); v18[1] = 0; v18[2] = 0; v13 = strlen((const char *)a2); std::string::__init(v18, a2, v13); TextArea::setString((int)v6, v18); std::string::~string((int)v18); TextArea::colorAllCharactersTo((int)v6, 0xFFFFFF); } else { std::string::basic_string(v17, (int)v16); TextArea::setString((int)v6, v17); std::string::~string((int)v17); LOWORD(v15) = -14136; BYTE2(v15) = -56; TextArea::colorAllCharactersTo((int)v6, v15); if ( a3 == 1 ) { (*(void (__fastcall **)(_DWORD *, int))(*v6 + 80))(v6, 1065353216); v6[131] = 1134526464; } } GJWriteMessagePopup::updateCharCountLabel((GJWriteMessagePopup *)a1, a3, v11); return std::string::~string((int)v16); }
GD Web Decomp Icon

GD Web Decomp

Raw Source