// // sub_10050BA0C from 0x10050ba0c to 0x10050bc6c (608 bytes) // // 3 xrefs: // > NewThreadPopup::levelPicked @ 0x10050b9cc // > NewThreadPopup::listPicked @ 0x10050bd3c // > NewThreadPopup::shareIDPicked @ 0x10050bdd8 // // 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:59 +0000 // void __fastcall sub_10050BA0C(__int64 a1, const void **a2) { __int64 v3; // x0 std::string::size_type v5; // x8 std::string::size_type size; // x9 std::string::size_type v7; // x10 std::string *v8; // x9 size_t v9; // x21 void **v10; // x22 const void *v11; // x1 void **v12; // x1 std::string::size_type v13; // x2 int v14; // w1 int v15; // w0 int v16; // w8 __int64 v17; // x19 _QWORD *v18; // x0 std::string *v19; // x8 _QWORD *v20; // x19 std::string v21; // [xsp+0h] [xbp-A0h] BYREF void *v22[2]; // [xsp+18h] [xbp-88h] BYREF char v23; // [xsp+2Fh] [xbp-71h] _QWORD v24[2]; // [xsp+30h] [xbp-70h] BYREF char v25; // [xsp+47h] [xbp-59h] void *__p[2]; // [xsp+48h] [xbp-58h] BYREF unsigned __int8 v27; // [xsp+5Fh] [xbp-41h] std::string v28; // [xsp+60h] [xbp-40h] BYREF v3 = *(_QWORD *)(a1 + 888); if ( v3 ) { CCTextInputNode::getString(v3, &v28); v5 = SHIBYTE(v28.__r_.__value_.__r.__words[2]); if ( (SHIBYTE(v28.__r_.__value_.__r.__words[2]) & 0x8000000000000000LL) != 0 ) { size = v28.__r_.__value_.__l.__size_; if ( !v28.__r_.__value_.__l.__size_ ) goto LABEL_13; } else { if ( !*((_BYTE *)&v28.__r_.__value_.__s + 23) ) goto LABEL_13; size = SHIBYTE(v28.__r_.__value_.__r.__words[2]); } v7 = size - 1; if ( SHIBYTE(v28.__r_.__value_.__r.__words[2]) < 0 ) { v8 = (std::string *)v28.__r_.__value_.__r.__words[0]; if ( *(_BYTE *)(v28.__r_.__value_.__r.__words[0] + v7) == 32 ) goto LABEL_13; v5 = v28.__r_.__value_.__l.__size_; } else { if ( v28.__r_.__value_.__s.__data_[v7] == 32 ) goto LABEL_13; v8 = &v28; } if ( v8->__r_.__value_.__s.__data_[v5 - 1] != 10 ) std::string::append(&v28, " "); LABEL_13: if ( *((char *)a2 + 23) >= 0 ) v9 = *((unsigned __int8 *)a2 + 23); else v9 = (size_t)a2[1]; v10 = __p; sub_100026068((__int64)__p, v9 + 1); if ( (v27 & 0x80u) != 0 ) v10 = (void **)__p[0]; if ( v9 ) { if ( *((char *)a2 + 23) >= 0 ) v11 = a2; else v11 = *a2; memmove(v10, v11, v9); } *(_WORD *)((char *)v10 + v9) = 32; if ( (v27 & 0x80u) == 0 ) v12 = __p; else v12 = (void **)__p[0]; if ( (v27 & 0x80u) == 0 ) v13 = v27; else v13 = (std::string::size_type)__p[1]; std::string::append(&v28, (const std::string::value_type *)v12, v13); if ( (char)v27 < 0 ) operator delete(__p[0]); if ( *(_BYTE *)(a1 + 737) == 1 ) v14 = EmoteSprite::maxEmotesMessage(); else v14 = EmoteSprite::maxEmotesComment(); v15 = EmoteSprite::effectiveLength(&v28, v14); if ( *(_BYTE *)(a1 + 737) ) v16 = 500; else v16 = 300; if ( v15 <= v16 ) { v20 = *(_QWORD **)(a1 + 888); if ( SHIBYTE(v28.__r_.__value_.__r.__words[2]) < 0 ) sub_1000097D0(&v21, v28.__r_.__value_.__l.__data_, v28.__r_.__value_.__l.__size_); else v21 = v28; CCTextInputNode::setString(v20, (__int64 *)&v21); if ( (SHIBYTE(v21.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 ) goto LABEL_48; v19 = &v21; } else { v17 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector() + 272); sub_100009900(v24, "Message too long"); sub_100009900(v22, ""); v18 = TextAlertPopup::create((__int64)v24, 150, (__int64)v22, 0.5, 0.6); (*(void (__fastcall **)(__int64, _QWORD *, __int64))(*(_QWORD *)v17 + 464LL))(v17, v18, 1000); if ( v23 < 0 ) operator delete(v22[0]); if ( (v25 & 0x80000000) == 0 ) goto LABEL_48; v19 = (std::string *)v24; } operator delete(v19->__r_.__value_.__l.__data_); LABEL_48: if ( SHIBYTE(v28.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v28.__r_.__value_.__l.__data_); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source