// // ScrollViewPopup::addVersionHeader from 0x140621f10 to 0x1406221ce (702 bytes) // // 3 xrefs: // > MusicChangelogPopup::buildContent @ 0x14047fb89 // > SFXChangelogPopup::buildContent @ 0x140621499 // > @ 0x1409304b8 // // 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 11:35:22 +0000 // // Hidden C++ exception states: #wind=2 float __fastcall ScrollViewPopup::addVersionHeader(__int64 a1, __int64 a2, int a3, int a4, float a5, float a6) { size_t v8; // rbx struct tm *v9; // rax size_t v10; // r8 void **v11; // r9 const char *v12; // r8 cocos2d::CCString *v13; // rax const char *CString; // rax void **v15; // rcx cocos2d::CCLabelBMFont *v16; // rdi __int64 v17; // rbx __int64 v18; // rax __int64 v19; // rbx __int64 v20; // rax void *v21; // rcx void *v22; // rcx __time64_t Time; // [rsp+30h] [rbp-49h] BYREF void *v25[2]; // [rsp+38h] [rbp-41h] BYREF __int64 v26; // [rsp+48h] [rbp-31h] unsigned __int64 v27; // [rsp+50h] [rbp-29h] void *Block[2]; // [rsp+58h] [rbp-21h] BYREF __m128i si128; // [rsp+68h] [rbp-11h] char Buffer[32]; // [rsp+78h] [rbp-1h] BYREF *(_OWORD *)v25 = 0; v26 = 0; v27 = 15; LOBYTE(v25[0]) = 0; v8 = -1; if ( a4 > 0 ) { Time = a4; v9 = gmtime64(&Time); if ( v9 ) { strftime(Buffer, 0x20u, "%b %d, %Y", v9); v10 = -1; do ++v10; while ( Buffer[v10] ); sub_1400405A0(v25, Buffer, v10); } } v11 = v25; if ( v27 > 0xF ) v11 = (void **)v25[0]; v12 = " - "; if ( !v26 ) v12 = &byte_1406ED6E0; v13 = cocos2d::CCString::createWithFormat("Version %i%s%s", a3, v12, (const char *)v11); CString = cocos2d::CCString::getCString(v13); *(_OWORD *)Block = 0; si128 = 0; do ++v8; while ( CString[v8] ); sub_14003D230(Block, CString, v8); v15 = Block; if ( si128.m128i_i64[1] > 0xFuLL ) v15 = (void **)Block[0]; v16 = cocos2d::CCLabelBMFont::create((const char *)v15, "goldFont.fnt"); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v16 + 160LL))(v16); cocos2d::CCLabelBMFont::limitLabelWidth(v16, a6 - 30.0, 0.55000001, 0.30000001); v17 = *(_QWORD *)v16; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&Time, 0.0, 0.5); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(v17 + 288))(v16, v18); v19 = *(_QWORD *)v16; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&Time, 15.0, (float)(a5 - 4.0) - 11.0); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(v19 + 184))(v16, v20); (*(void (__fastcall **)(__int64, cocos2d::CCLabelBMFont *))(*(_QWORD *)a2 + 464LL))(a2, v16); if ( si128.m128i_i64[1] > 0xFuLL ) { v21 = Block[0]; if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 ) { v21 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v21 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v21); } si128 = _mm_load_si128((const __m128i *)&Size); LOBYTE(Block[0]) = 0; if ( v27 > 0xF ) { v22 = v25[0]; if ( v27 + 1 >= 0x1000 ) { v22 = *((void **)v25[0] - 1); if ( (unsigned __int64)((char *)v25[0] - (char *)v22 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v22); } return 26.0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source