// // ColorSelectLiveOverlay::updateColorLabel from 0x100596e40 to 0x100596ff3 (435 bytes) // // 2 xrefs: // > ColorSelectLiveOverlay::init @ 0x100596601 // > ColorSelectLiveOverlay::onSelectTab @ 0x100596e30 // // This function is hookable on this platform (idp: pc, 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 12:32:29 +0000 // void __fastcall ColorSelectLiveOverlay::updateColorLabel(__int64 a1) { __int64 v2; // r15 int v3; // r14d __int64 v4; // rax __int64 v5; // rax const std::string::value_type *CString; // rax __int64 v7; // rdi std::string::pointer data; // rsi unsigned int v9; // r14d int v10; // eax unsigned int v11; // r14d __int64 v12; // rax unsigned int v13; // r14d __int64 v14; // rax std::string v15; // [rsp+0h] [rbp-30h] BYREF v2 = *(_QWORD *)(a1 + 8LL * *(unsigned __int8 *)(a1 + 856) + 688); if ( v2 ) { v3 = *(_DWORD *)(v2 + 92); if ( v3 <= 0 ) { LABEL_8: (*(void (__fastcall **)(_QWORD, const std::string::value_type *))(**(_QWORD **)(a1 + 848) + 928LL))( *(_QWORD *)(a1 + 848), " "); return; } } else { v4 = *(_QWORD *)(a1 + 664); if ( !v4 ) goto LABEL_8; v3 = *(_DWORD *)(v4 + 1024); if ( v3 <= 0 ) goto LABEL_8; } *(_WORD *)&v15.__r_.__value_.__l.0 = 0; if ( (unsigned int)v3 > 0x3E7 ) { CString = (const std::string::value_type *)GJSpecialColorSelect::textForColorIdx((unsigned int)v3); } else { v5 = sub_10088E820("%i", *(_BYTE *)&v15.__r_.__value_.__l.0); CString = (const std::string::value_type *)cocos2d::CCString::getCString(v5); } std::string::assign(&v15, CString); v7 = *(_QWORD *)(a1 + 848); if ( (*(_BYTE *)&v15.__r_.__value_.__s.0 & 1) != 0 ) data = v15.__r_.__value_.__l.__data_; else data = v15.__r_.__value_.__s.__data_; (*(void (__fastcall **)(__int64, std::string::pointer))(*(_QWORD *)v7 + 928LL))(v7, data); if ( v2 ) { if ( (unsigned int)v3 < 0x3ED || (v9 = v3 - 1009, v9 <= 5) && (v10 = 49, _bittest(&v10, v9)) ) { if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 672)) ) { v11 = 0; do { v12 = sub_1007FEFE0(*(_QWORD *)(a1 + 672), v11); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v12 + 344LL))(v12, 1); ++v11; } while ( v11 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 672)) ); } } else if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 672)) ) { v13 = 0; do { v14 = sub_1007FEFE0(*(_QWORD *)(a1 + 672), v13); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v14 + 344LL))(v14, 0); ++v13; } while ( v13 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 672)) ); } } if ( (*(_BYTE *)&v15.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v15.__r_.__value_.__l.__data_); }