// // sub_10050B5B8 from 0x10050b5b8 to 0x10050b7f0 (568 bytes) // // 3 xrefs: // > sub_10050A268 @ 0x10050a2e8 // > sub_10050B100 @ 0x10050b4a4 // > NewThreadPopup::friendPicked @ 0x10050c00c // // 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_10050B5B8(__int64 a1) { __int64 v2; // x0 int v3; // w0 int v4; // w20 __int64 v5; // x0 const char *v6; // x1 __int64 v7; // x0 std::string *v8; // x0 __int128 v9; // q0 void **v10; // x1 std::string::size_type v11; // x2 void *v12; // x0 const std::string::value_type *CString; // x0 std::string *p_dst; // x1 std::string v15; // [xsp+10h] [xbp-80h] BYREF void *__p[2]; // [xsp+30h] [xbp-60h] BYREF signed __int64 v17; // [xsp+40h] [xbp-50h] std::string __dst; // [xsp+50h] [xbp-40h] BYREF if ( *(_QWORD *)(a1 + 856) ) { v2 = *(_QWORD *)(a1 + 728); if ( v2 ) { v3 = sub_1002E757C(v2); if ( v3 ) { v4 = v3; v5 = sub_1002E75A0(*(_QWORD *)(a1 + 728), 0); if ( *(char *)(v5 + 343) < 0 ) sub_1000097D0(&__dst, *(void **)(v5 + 320), *(_QWORD *)(v5 + 328)); else __dst = *(std::string *)(v5 + 320); if ( v4 >= 2 ) { v7 = sub_1002E75A0(*(_QWORD *)(a1 + 728), 1u); if ( *(char *)(v7 + 343) < 0 ) sub_1000097D0(&v15, *(void **)(v7 + 320), *(_QWORD *)(v7 + 328)); else v15 = *(std::string *)(v7 + 320); v8 = std::string::insert(&v15, 0, ", "); v9 = *(_OWORD *)&v8->__r_.__value_.__l.__data_; v17 = v8->__r_.__value_.__r.__words[2]; *(_OWORD *)__p = v9; v8->__r_.__value_.__l.__size_ = 0; v8->__r_.__value_.__r.__words[2] = 0; v8->__r_.__value_.__r.__words[0] = 0; if ( v17 >= 0 ) v10 = __p; else v10 = (void **)__p[0]; if ( v17 >= 0 ) v11 = HIBYTE(v17); else v11 = (std::string::size_type)__p[1]; std::string::append(&__dst, (const std::string::value_type *)v10, v11); if ( SHIBYTE(v17) < 0 ) operator delete(__p[0]); if ( SHIBYTE(v15.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v15.__r_.__value_.__l.__data_); if ( v4 != 2 ) { v12 = sub_1003065B0(" +%i", v4 - 2); CString = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v12); std::string::append(&__dst, CString); } } if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) p_dst = &__dst; else p_dst = (std::string *)__dst.__r_.__value_.__r.__words[0]; (*(void (__fastcall **)(_QWORD, std::string *))(**(_QWORD **)(a1 + 856) + 928LL))(*(_QWORD *)(a1 + 856), p_dst); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 856) + 160LL))(*(_QWORD *)(a1 + 856), 0.45); cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(a1 + 856), 264.0, 0.45, 0.2); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 856) + 1024LL))(*(_QWORD *)(a1 + 856), 255); if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__dst.__r_.__value_.__l.__data_); } else { if ( *(_BYTE *)(a1 + 737) ) v6 = "Select user"; else v6 = "Select users..."; (*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 856) + 928LL))(*(_QWORD *)(a1 + 856), v6); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 856) + 160LL))(*(_QWORD *)(a1 + 856), 0.45); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 856) + 1024LL))(*(_QWORD *)(a1 + 856), 120); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source