// // MessageThreadsPage::FLAlert_Clicked from 0x1004f6128 to 0x1004f6378 (592 bytes) // // 2 xrefs: // > sub_1004F63C0 @ 0x1004f63c4 // > @ 0x100994ff0 // // 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:06:48 +0000 // void __fastcall MessageThreadsPage::FLAlert_Clicked(__int64 a1, __int64 a2, int a3) { __int64 v4; // x0 signed int v5; // w20 __int64 v6; // x27 _BYTE *v7; // x0 _DWORD *v8; // x24 __int64 v9; // x25 int v10; // w26 void *v11; // x0 char *CString; // x0 int v13; // w0 int v14; // w25 __int64 v15; // x25 int v16; // w26 int v17; // w24 int v18; // w2 int v19; // w0 int v20; // w24 std::string::size_type size; // x8 void *v22; // x0 const std::string::value_type *v23; // x0 std::string::size_type v24; // x8 std::string *v25; // x9 int v26; // w10 int v27; // t1 __int64 v28; // x0 void *__p[2]; // [xsp+10h] [xbp-80h] BYREF char v30; // [xsp+27h] [xbp-69h] std::string v31; // [xsp+28h] [xbp-68h] BYREF if ( !a3 ) return; if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) != 2 ) return; v4 = *(_QWORD *)(a1 + 800); if ( !v4 ) return; v5 = 0; v6 = a1 + 664; memset(&v31, 0, sizeof(v31)); while ( v5 < (int)sub_1002E757C(v4) ) { v7 = (_BYTE *)sub_1002E75A0(*(_QWORD *)(a1 + 800), v5); v8 = v7; if ( (v7[304] & 1) == 0 ) goto LABEL_27; if ( (v7[264] & 1) != 0 ) { if ( v7[265] == 1 ) { v9 = GameLevelManager::sharedState(); v10 = v8[14]; v11 = sub_1003065B0("%i", v8[15]); CString = (char *)cocos2d::CCString::getCString((__int64)v11); sub_100009900(__p, CString); v13 = sub_1000C8838(v9, v10, 11, (__int64)__p); v14 = v13; if ( v30 < 0 ) { operator delete(__p[0]); if ( v14 ) goto LABEL_21; } else { if ( !v13 ) goto LABEL_22; LABEL_21: *(_QWORD *)(GameLevelManager::sharedState() + 1264) = v6; } } LABEL_22: size = HIBYTE(v31.__r_.__value_.__r.__words[2]); if ( (v31.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL ) size = v31.__r_.__value_.__l.__size_; if ( size ) std::string::append(&v31, ","); v22 = sub_1003065B0("%i", v8[14]); v23 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v22); std::string::append(&v31, v23); goto LABEL_27; } v15 = GameLevelManager::sharedState(); v16 = v8[14]; v17 = v8[67]; sub_100009900(__p, ""); if ( v17 == 8 ) v18 = 18; else v18 = 5; v19 = sub_1000C8838(v15, v16, v18, (__int64)__p); v20 = v19; if ( v30 < 0 ) { operator delete(__p[0]); if ( !v20 ) goto LABEL_27; LABEL_19: *(_QWORD *)(GameLevelManager::sharedState() + 1264) = v6; goto LABEL_27; } if ( v19 ) goto LABEL_19; LABEL_27: ++v5; v4 = *(_QWORD *)(a1 + 800); } v24 = SHIBYTE(v31.__r_.__value_.__r.__words[2]); if ( (SHIBYTE(v31.__r_.__value_.__r.__words[2]) & 0x8000000000000000LL) != 0 ) { v24 = v31.__r_.__value_.__l.__size_; if ( v31.__r_.__value_.__l.__size_ ) { v25 = (std::string *)v31.__r_.__value_.__r.__words[0]; goto LABEL_33; } LABEL_40: operator delete(v31.__r_.__value_.__l.__data_); } else if ( *((_BYTE *)&v31.__r_.__value_.__s + 23) ) { v25 = &v31; LABEL_33: v26 = 0; do { v27 = (unsigned __int8)v25->__r_.__value_.__s.__data_[0]; v25 = (std::string *)((char *)v25 + 1); if ( v27 == 44 ) ++v26; --v24; } while ( v24 ); *(_DWORD *)(a1 + 836) = v26 + 1; v28 = GameLevelManager::sharedState(); if ( (sub_1000C8838(v28, 0, 1, (__int64)&v31) & 1) != 0 ) *(_QWORD *)(GameLevelManager::sharedState() + 1264) = v6; if ( SHIBYTE(v31.__r_.__value_.__r.__words[2]) < 0 ) goto LABEL_40; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source