// // StatsLayer::customSetup from 0x1406692f0 to 0x140669b5b (2155 bytes) // // 3 xrefs: // > @ 0x140832460 // > @ 0x140931f70 // > @ 0x140931f7c // // 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:51 +0000 // // Hidden C++ exception states: #wind=20 __int64 __fastcall StatsLayer::customSetup(__int64 a1) { __int64 v2; // rax __int64 v3; // rcx cocos2d::CCArray *v4; // rbx __int64 v5; // rcx int Stat; // eax struct cocos2d::CCObject *v7; // rax __int64 v8; // rcx int v9; // eax struct cocos2d::CCObject *v10; // rax __int64 v11; // rcx int v12; // eax struct cocos2d::CCObject *v13; // rax __int64 v14; // rcx int v15; // eax struct cocos2d::CCObject *v16; // rax __int64 v17; // rcx int v18; // eax struct cocos2d::CCObject *v19; // rax __int64 v20; // rcx int v21; // eax struct cocos2d::CCObject *v22; // rax __int64 v23; // rcx int v24; // eax struct cocos2d::CCObject *v25; // rax __int64 v26; // rcx int v27; // eax struct cocos2d::CCObject *v28; // rax __int64 v29; // rcx int v30; // eax struct cocos2d::CCObject *v31; // rax __int64 v32; // rcx int v33; // eax struct cocos2d::CCObject *v34; // rax __int64 v35; // rcx int v36; // eax struct cocos2d::CCObject *v37; // rax __int64 v38; // rcx int v39; // eax struct cocos2d::CCObject *v40; // rax __int64 v41; // rcx int v42; // eax struct cocos2d::CCObject *v43; // rax __int64 v44; // rcx int v45; // eax struct cocos2d::CCObject *v46; // rax __int64 v47; // rcx int v48; // eax struct cocos2d::CCObject *v49; // rax __int64 v50; // rcx int v51; // eax struct cocos2d::CCObject *v52; // rax __int64 v53; // rcx int v54; // eax struct cocos2d::CCObject *v55; // rax __int64 v56; // rcx int v57; // eax struct cocos2d::CCObject *v58; // rax __int64 v59; // rcx __int64 v60; // rcx int v61; // eax struct cocos2d::CCObject *v62; // rax _QWORD *v63; // rax __int64 v64; // rdx __int64 v66; // [rsp+20h] [rbp-20h] void *v67; // [rsp+50h] [rbp+10h] BYREF char v68; // [rsp+58h] [rbp+18h] BYREF v2 = cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v2, &v68); v4 = (cocos2d::CCArray *)cocos2d::CCArray::create(v3); v5 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v67 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v67); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v5 = qword_14090BFE0; } Stat = GameStatsManager::getStat(v5, &word_14070D060); v7 = (struct cocos2d::CCObject *)StatsObject::create(&word_14070D060, Stat); cocos2d::CCArray::addObject(v4, v7); v8 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v67 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v67); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v8 = qword_14090BFE0; } v9 = GameStatsManager::getStat(v8, &word_14070D058); v10 = (struct cocos2d::CCObject *)StatsObject::create(&word_14070D058, v9); cocos2d::CCArray::addObject(v4, v10); v11 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v67 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v67); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v11 = qword_14090BFE0; } v12 = GameStatsManager::getStat(v11, "6"); v13 = (struct cocos2d::CCObject *)StatsObject::create("6", v12); cocos2d::CCArray::addObject(v4, v13); v14 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v67 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v67); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v14 = qword_14090BFE0; } v15 = GameStatsManager::getStat(v14, "28"); v16 = (struct cocos2d::CCObject *)StatsObject::create("28", v15); cocos2d::CCArray::addObject(v4, v16); v17 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v67 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v67); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v17 = qword_14090BFE0; } v18 = GameStatsManager::getStat(v17, "13"); v19 = (struct cocos2d::CCObject *)StatsObject::create("13", v18); cocos2d::CCArray::addObject(v4, v19); v20 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v67 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v67); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v20 = qword_14090BFE0; } v21 = GameStatsManager::getStat(v20, "22"); v22 = (struct cocos2d::CCObject *)StatsObject::create(&word_140737D98, v21); cocos2d::CCArray::addObject(v4, v22); v23 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v67 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v67); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v23 = qword_14090BFE0; } v24 = GameStatsManager::getStat(v23, &word_14070D054); v25 = (struct cocos2d::CCObject *)StatsObject::create(&word_14070D054, v24); cocos2d::CCArray::addObject(v4, v25); v26 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v67 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v67); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v26 = qword_14090BFE0; } v27 = GameStatsManager::getStat(v26, &word_14070D04C); v28 = (struct cocos2d::CCObject *)StatsObject::create(&word_14070D04C, v27); cocos2d::CCArray::addObject(v4, v28); v29 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v67 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v67); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v29 = qword_14090BFE0; } v30 = GameStatsManager::getStat(v29, "42"); v31 = (struct cocos2d::CCObject *)StatsObject::create("42", v30); cocos2d::CCArray::addObject(v4, v31); v32 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v67 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v67); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v32 = qword_14090BFE0; } v33 = GameStatsManager::getStat(v32, &word_14070D048); v34 = (struct cocos2d::CCObject *)StatsObject::create(&word_14070D048, v33); cocos2d::CCArray::addObject(v4, v34); v35 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v67 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v67); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v35 = qword_14090BFE0; } v36 = GameStatsManager::getStat(v35, "15"); v37 = (struct cocos2d::CCObject *)StatsObject::create("15", v36); cocos2d::CCArray::addObject(v4, v37); v38 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v67 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v67); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v38 = qword_14090BFE0; } v39 = GameStatsManager::getStat(v38, &word_14070D038); v40 = (struct cocos2d::CCObject *)StatsObject::create(&word_14070D038, v39); cocos2d::CCArray::addObject(v4, v40); v41 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v67 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v67); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v41 = qword_14090BFE0; } v42 = GameStatsManager::getStat(v41, "12"); v43 = (struct cocos2d::CCObject *)StatsObject::create("12", v42); cocos2d::CCArray::addObject(v4, v43); v44 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v67 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v67); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v44 = qword_14090BFE0; } v45 = GameStatsManager::getStat(v44, &word_14070D040); v46 = (struct cocos2d::CCObject *)StatsObject::create(&word_14070D040, v45); cocos2d::CCArray::addObject(v4, v46); v47 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v67 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v67); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v47 = qword_14090BFE0; } v48 = GameStatsManager::getStat(v47, "40"); v49 = (struct cocos2d::CCObject *)StatsObject::create("40", v48); cocos2d::CCArray::addObject(v4, v49); v50 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v67 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v67); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v50 = qword_14090BFE0; } v51 = GameStatsManager::getStat(v50, "10"); v52 = (struct cocos2d::CCObject *)StatsObject::create("10", v51); cocos2d::CCArray::addObject(v4, v52); v53 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v67 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v67); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v53 = qword_14090BFE0; } v54 = GameStatsManager::getStat(v53, "11"); v55 = (struct cocos2d::CCObject *)StatsObject::create("11", v54); cocos2d::CCArray::addObject(v4, v55); v56 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v67 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v67); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v56 = qword_14090BFE0; } v57 = GameStatsManager::getStat(v56, "41"); v58 = (struct cocos2d::CCObject *)StatsObject::create("41", v57); cocos2d::CCArray::addObject(v4, v58); v59 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v67 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v67); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v59 = qword_14090BFE0; } if ( (int)GameStatsManager::getStat(v59, "9") > 0 ) { v60 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v67 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v67); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v60 = qword_14090BFE0; } v61 = GameStatsManager::getStat(v60, "9"); v62 = (struct cocos2d::CCObject *)StatsObject::create("9", v61); cocos2d::CCArray::addObject(v4, v62); } v63 = CustomListView::create(v4, 0, 220.0, 356.0, v66, 2); (*(void (__fastcall **)(_QWORD, _QWORD *, __int64))(**(_QWORD **)(a1 + 568) + 456LL))(*(_QWORD *)(a1 + 568), v63, 6); LOWORD(v67) = 29375; BYTE2(v67) = 62; (**(void (__fastcall ***)(__int64, void **))(*(_QWORD *)(a1 + 568) + 408LL))(*(_QWORD *)(a1 + 568) + 408LL, &v67); LOBYTE(v64) = -1; return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)(*(_QWORD *)(a1 + 568) + 408LL) + 40LL))( *(_QWORD *)(a1 + 568) + 408LL, v64); }
GD Web Decomp Icon

GD Web Decomp

Raw Source