// // CustomSongWidget::loadSongInfoFailed from 0x1006fcc60 to 0x1006fce77 (535 bytes) // // 2 xrefs: // > sub_1006FCF40 @ 0x1006fcf4c // > @ 0x100b95dc0 // // 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 // char __fastcall CustomSongWidget::loadSongInfoFailed(__int64 a1, __int64 a2, unsigned int a3) { __int64 *v5; // rdi __int64 *v6; // rcx char result; // al __int64 v8; // rdi __int64 v9; // rdi void (__fastcall *v10)(__int64, const char *); // rax unsigned int v11; // r14d __int64 v12; // rdi float v13; // xmm0_4 __m128 v14; // xmm1 __int64 v15; // r15 __int64 *v16; // rcx _QWORD *v17; // rcx _QWORD *v18; // rax _QWORD *v19; // rcx bool v20; // zf __int16 v21; // [rsp+Ch] [rbp-24h] BYREF char v22; // [rsp+Eh] [rbp-22h] v5 = *(__int64 **)(a1 + 640); if ( !v5 ) { LABEL_7: result = *(_DWORD *)(a1 + 504) != (_DWORD)a2 || *(_DWORD *)(a1 + 504) == 0; if ( result ) return result; v8 = *(_QWORD *)(a1 + 376); v22 = 25; v21 = 13055; (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v8 + 1072LL))(v8, &v21); v9 = *(_QWORD *)(a1 + 376); v10 = *(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v9 + 928LL); v11 = a3 - 1; if ( v11 > 2 ) { v10(v9, "Download failed. Please try later."); v12 = *(_QWORD *)(a1 + 376); if ( *(_BYTE *)(a1 + 501) != 1 ) goto LABEL_10; } else { v10(v9, off_100B95EE0[v11]); v12 = *(_QWORD *)(a1 + 376); if ( *(_BYTE *)(a1 + 501) != 1 ) { LABEL_10: v13 = 230.0; v14 = (__m128)0x3ECCCCCDu; LABEL_22: cocos2d::CCLabelBMFont::limitLabelWidth(v12, v13, v14, (__m128)0LL); CustomSongWidget::showError(a1, 0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 456) + 344LL))(*(_QWORD *)(a1 + 456), 0); cocos2d::CCNode::unschedule(a1, (__int64)CustomSongWidget::updateDownloadProgress, 0); *(_BYTE *)(a1 + 499) = 0; return CustomSongWidget::updateSongInfo(a1); } } v13 = 140.0; v14 = (__m128)0x3EB33333u; goto LABEL_22; } v6 = v5; while ( *((_DWORD *)v6 + 7) > (int)a2 ) { LABEL_3: v6 = (__int64 *)*v6; if ( !v6 ) goto LABEL_7; } if ( *((_DWORD *)v6 + 7) < (int)a2 ) { ++v6; goto LABEL_3; } v15 = a1 + 640; v16 = v5; do { if ( *((_DWORD *)v16 + 7) >= (int)a2 ) v15 = (__int64)v16; v16 = (__int64 *)v16[*((_DWORD *)v16 + 7) < (int)a2]; } while ( v16 ); if ( v15 != a1 + 640 && *(_DWORD *)(v15 + 28) <= (int)a2 ) { v17 = *(_QWORD **)(v15 + 8); if ( v17 ) { do { v18 = v17; v17 = (_QWORD *)*v17; } while ( v17 ); } else { v19 = (_QWORD *)v15; do { v18 = (_QWORD *)v19[2]; v20 = *v18 == (_QWORD)v19; v19 = v18; } while ( !v20 ); } if ( *(_QWORD *)(a1 + 632) == v15 ) *(_QWORD *)(a1 + 632) = v18; --*(_QWORD *)(a1 + 648); sub_1001454C0(v5, (__int64 *)v15); operator delete((void *)v15); a2 = (unsigned int)a2; } return (*(__int64 (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 928LL))(a1, a2, a3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source