// // CustomSongWidget::updateMultiAssetInfo from 0x1006fc100 to 0x1006fc845 (1861 bytes) // // 5 xrefs: // > CustomSongWidget::updateWithMultiAssets @ 0x1006fba84 // > sub_1006FC940 @ 0x1006fc953 // > CustomSongWidget::downloadAssetFinished @ 0x1006fd3b1 // > CustomSongWidget::processNextMultiAsset @ 0x1006fd8b2 // > CustomSongWidget::processNextMultiAsset @ 0x1006fd95c // // 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:35:56 +0000 // void __fastcall CustomSongWidget::updateMultiAssetInfo(__int64 a1, int a2) { _QWORD *v2; // r14 int v3; // r12d int v4; // ebx const std::string::value_type *v5; // rsi std::string::size_type v6; // rdx const std::string::value_type *v7; // rsi std::string::size_type v8; // rdx _QWORD *v9; // rcx _QWORD *v10; // rax bool v11; // zf _QWORD *v12; // r14 _QWORD *v13; // r15 int v14; // ebx const std::string::value_type *v15; // rsi std::string::size_type v16; // rdx const std::string::value_type *v17; // rsi std::string::size_type v18; // rdx _QWORD *v19; // rcx _QWORD *v20; // rax bool v21; // al __int64 v22; // r15 __int64 v23; // rdi int v24; // r13d __int64 v25; // rax const char *CString; // r14 size_t v27; // rax size_t v28; // r15 std::string::value_type *v29; // r13 int v30; // ebx __int64 v31; // rax const char *v32; // rbx size_t v33; // rax std::string::size_type v34; // r14 char *data; // r15 size_t v36; // r13 bool v37; // al size_t v38; // rbx __int64 v39; // rax const std::string::value_type *v40; // rax std::string::pointer v41; // rsi __int64 v42; // rdi std::string v43; // [rsp+0h] [rbp-F0h] BYREF std::string v44; // [rsp+18h] [rbp-D8h] BYREF std::string v45; // [rsp+30h] [rbp-C0h] BYREF std::string v46; // [rsp+48h] [rbp-A8h] BYREF void *v47[3]; // [rsp+60h] [rbp-90h] BYREF int v48; // [rsp+78h] [rbp-78h] int v49; // [rsp+7Ch] [rbp-74h] __int64 v50; // [rsp+80h] [rbp-70h] int v51; // [rsp+8Ch] [rbp-64h] std::string __dst; // [rsp+90h] [rbp-60h] BYREF int v53; // [rsp+ACh] [rbp-44h] std::string::value_type __s[8]; // [rsp+B0h] [rbp-40h] BYREF size_t v55; // [rsp+B8h] [rbp-38h] void *__p; // [rsp+C0h] [rbp-30h] *(_WORD *)&v43.__r_.__value_.__l.0 = 0; *(_WORD *)&v44.__r_.__value_.__l.0 = 0; *(_WORD *)&v45.__r_.__value_.__l.0 = 0; *(_WORD *)&v46.__r_.__value_.__l.0 = 0; v51 = *(_DWORD *)(a1 + 568) + *(_DWORD *)(a1 + 592); v48 = a2; v2 = *(_QWORD **)(a1 + 552); v50 = a1; v3 = 0; if ( v2 != (_QWORD *)(a1 + 560) ) { while ( 1 ) { v4 = *((unsigned __int8 *)v2 + 32); if ( v4 != 1 ) { if ( (*(_BYTE *)&v44.__r_.__value_.__s.0 & 1) != 0 ) { if ( !v44.__r_.__value_.__l.__size_ ) goto LABEL_17; LABEL_16: std::string::append(&v44, ", "); } else if ( *(_BYTE *)&v44.__r_.__value_.__l.0 >> 1 ) { goto LABEL_16; } LABEL_17: GameToolbox::intToString((size_t *)__s, *((_DWORD *)v2 + 7)); if ( (__s[0] & 1) != 0 ) { v7 = (const std::string::value_type *)__p; v8 = v55; } else { v8 = (unsigned __int8)__s[0] >> 1; v7 = &__s[1]; } std::string::append(&v44, v7, v8); goto LABEL_23; } if ( (*(_BYTE *)&v43.__r_.__value_.__s.0 & 1) != 0 ) break; if ( *(_BYTE *)&v43.__r_.__value_.__l.0 >> 1 ) goto LABEL_12; LABEL_13: GameToolbox::intToString((size_t *)__s, *((_DWORD *)v2 + 7)); if ( (__s[0] & 1) != 0 ) { v5 = (const std::string::value_type *)__p; v6 = v55; } else { v6 = (unsigned __int8)__s[0] >> 1; v5 = &__s[1]; } std::string::append(&v43, v5, v6); LABEL_23: if ( (__s[0] & 1) != 0 ) operator delete(__p); v9 = (_QWORD *)v2[1]; if ( v9 ) { do { v10 = v9; v9 = (_QWORD *)*v9; } while ( v9 ); } else { do { v10 = (_QWORD *)v2[2]; v11 = *v10 == (_QWORD)v2; v2 = v10; } while ( !v11 ); } v3 += v4; v2 = v10; if ( v10 == (_QWORD *)(a1 + 560) ) goto LABEL_30; } if ( !v43.__r_.__value_.__l.__size_ ) goto LABEL_13; LABEL_12: std::string::append(&v43, ", "); goto LABEL_13; } LABEL_30: v12 = *(_QWORD **)(v50 + 576); v13 = (_QWORD *)(v50 + 584); if ( v12 != (_QWORD *)(v50 + 584) ) { while ( 1 ) { v14 = *((unsigned __int8 *)v12 + 32); if ( v14 != 1 ) { if ( (*(_BYTE *)&v46.__r_.__value_.__s.0 & 1) != 0 ) { if ( !v46.__r_.__value_.__l.__size_ ) goto LABEL_46; LABEL_45: std::string::append(&v46, ", "); } else if ( *(_BYTE *)&v46.__r_.__value_.__l.0 >> 1 ) { goto LABEL_45; } LABEL_46: GameToolbox::intToString((size_t *)__s, *((_DWORD *)v12 + 7)); if ( (__s[0] & 1) != 0 ) { v17 = (const std::string::value_type *)__p; v18 = v55; } else { v18 = (unsigned __int8)__s[0] >> 1; v17 = &__s[1]; } std::string::append(&v46, v17, v18); goto LABEL_52; } if ( (*(_BYTE *)&v45.__r_.__value_.__s.0 & 1) != 0 ) break; if ( *(_BYTE *)&v45.__r_.__value_.__l.0 >> 1 ) goto LABEL_41; LABEL_42: GameToolbox::intToString((size_t *)__s, *((_DWORD *)v12 + 7)); if ( (__s[0] & 1) != 0 ) { v15 = (const std::string::value_type *)__p; v16 = v55; } else { v16 = (unsigned __int8)__s[0] >> 1; v15 = &__s[1]; } std::string::append(&v45, v15, v16); LABEL_52: if ( (__s[0] & 1) != 0 ) operator delete(__p); v19 = (_QWORD *)v12[1]; if ( v19 ) { do { v20 = v19; v19 = (_QWORD *)*v19; } while ( v19 ); } else { do { v20 = (_QWORD *)v12[2]; v11 = *v20 == (_QWORD)v12; v12 = v20; } while ( !v11 ); } v3 += v14; v12 = v20; if ( v20 == v13 ) goto LABEL_59; } if ( !v45.__r_.__value_.__l.__size_ ) goto LABEL_42; LABEL_41: std::string::append(&v45, ", "); goto LABEL_42; } LABEL_59: v21 = 1; v22 = v50; if ( !*(_QWORD *)(v50 + 568) ) v21 = *(_QWORD *)(v50 + 592) != 0; *(_BYTE *)(v50 + 529) = v21; *(_BYTE *)(v22 + 545) = v21 && v3 < v51; v23 = *(_QWORD *)(v22 + 440); if ( v23 ) (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v23 + 344LL))(v23, v21); sub_1006FADA0(v22); if ( *(_BYTE *)(v22 + 529) == 1 ) { v24 = *(_DWORD *)(v22 + 628); if ( v24 <= 0 ) { v53 = 0xFFFFFF; sub_1006494B0(__s); goto LABEL_75; } v53 = *(_DWORD *)(v22 + 624); sub_1006494B0(&__dst); sub_1006494B0(v47); v49 = v24; v25 = sub_10088E820("%s / %s", *(_BYTE *)&v43.__r_.__value_.__l.0); CString = (const char *)cocos2d::CCString::getCString(v25); v27 = strlen(CString); if ( v27 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v28 = v27; if ( v27 >= 0x17 ) { v38 = 26; if ( (v27 | 7) != 0x17 ) v38 = (v27 | 7) + 1; v29 = (std::string::value_type *)operator new(v38); __p = v29; *(_QWORD *)__s = v38 | 1; v55 = v28; } else { __s[0] = 2 * v27; v29 = &__s[1]; if ( !v27 ) { __s[1] = 0; if ( ((__int64)v47[0] & 1) == 0 ) { LABEL_72: v30 = v49; if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__dst.__r_.__value_.__l.__data_); v53 = v53 <= v30 ? -1 : 0x6464FF; LABEL_75: v31 = sub_10088E820("Songs: %i SFX: %i Size: %s", *(_BYTE *)&v43.__r_.__value_.__l.0); v32 = (const char *)cocos2d::CCString::getCString(v31); v33 = strlen(v32); if ( v33 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v34 = v33; if ( v33 >= 0x17 ) { v36 = 26; if ( (v33 | 7) != 0x17 ) v36 = (v33 | 7) + 1; data = (char *)operator new(v36); __dst.__r_.__value_.__r.__words[2] = (std::string::size_type)data; __dst.__r_.__value_.__r.__words[0] = v36 | 1; __dst.__r_.__value_.__l.__size_ = v34; } else { __dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v33); data = __dst.__r_.__value_.__s.__data_; if ( !v33 ) goto LABEL_83; } memmove(data, v32, v34); LABEL_83: v37 = v3 < v51; data[v34] = 0; v22 = v50; if ( v37 && v3 > 0 ) { v39 = sub_10088E820("%s (%i/%i)", *(_BYTE *)&v43.__r_.__value_.__l.0); v40 = (const std::string::value_type *)cocos2d::CCString::getCString(v39); std::string::assign(&__dst, v40); } if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 ) v41 = __dst.__r_.__value_.__l.__data_; else v41 = __dst.__r_.__value_.__s.__data_; (*(void (__fastcall **)(_QWORD, std::string::pointer))(**(_QWORD **)(v22 + 368) + 928LL))( *(_QWORD *)(v22 + 368), v41); cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(v22 + 368), 230.0, (__m128)0x3ECCCCCDu, (__m128)0LL); v42 = *(_QWORD *)(v22 + 368); BYTE2(v47[0]) = BYTE2(v53); LOWORD(v47[0]) = v53; (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v42 + 1072LL))(v42, v47); if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__dst.__r_.__value_.__l.__data_); if ( (__s[0] & 1) != 0 ) operator delete(__p); goto LABEL_97; } LABEL_71: operator delete(v47[2]); goto LABEL_72; } } memmove(v29, CString, v28); v29[v28] = 0; if ( ((__int64)v47[0] & 1) == 0 ) goto LABEL_72; goto LABEL_71; } LABEL_97: if ( (_BYTE)v48 ) CustomSongWidget::updateSongInfo(v22); if ( (*(_BYTE *)&v46.__r_.__value_.__s.0 & 1) != 0 ) { operator delete(v46.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v45.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_101: if ( (*(_BYTE *)&v44.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_102; goto LABEL_107; } } else if ( (*(_BYTE *)&v45.__r_.__value_.__s.0 & 1) == 0 ) { goto LABEL_101; } operator delete(v45.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v44.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_102: if ( (*(_BYTE *)&v43.__r_.__value_.__s.0 & 1) == 0 ) return; goto LABEL_103; } LABEL_107: operator delete(v44.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v43.__r_.__value_.__s.0 & 1) != 0 ) LABEL_103: operator delete(v43.__r_.__value_.__l.__data_); }