// // DeathTrackerPopup::init from 0x1401045d0 to 0x140105e59 (6281 bytes) // // 2 xrefs: // > DeathTrackerPopup::create @ 0x14010457e // > @ 0x140915a10 // // 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:26:44 +0000 // // Hidden C++ exception states: #wind=10 bool __fastcall DeathTrackerPopup::init(__int64 a1, _DWORD *a2) { __int64 v4; // r14 bool result; // al __int64 v6; // rdx char v7; // r8 char v8; // cl char v9; // r13 char v10; // al __int64 v11; // rdx __int64 v12; // rdx __int64 v13; // rcx __int64 v14; // rax __int64 v15; // rax __int64 v16; // rax __int64 v17; // rdi __int64 v18; // rbx __int64 v19; // rax __int128 *v20; // rax char v21; // bl const char *v22; // rcx cocos2d::CCLabelBMFont *v23; // rdi __int64 v24; // rbx __int64 v25; // rax __int64 v26; // rax struct cocos2d::CCSprite *v27; // rax cocos2d::CCObject *v28; // rdi __int64 v29; // rbx __int64 v30; // rax float v31; // xmm8_4 struct cocos2d::CCLabelBMFont *v32; // rax __int64 v33; // rdi __int64 v34; // rbx __int64 v35; // rax __int64 *v36; // rdi __int64 v37; // rbx __int64 v38; // rax struct cocos2d::CCSprite *v39; // rax cocos2d::CCObject *v40; // rdi __int64 v41; // rbx __int64 v42; // rax cocos2d::CCSprite *v43; // rbx cocos2d::CCObject *v44; // rdi __int64 v45; // rbx __int64 v46; // rax struct cocos2d::CCSprite *v47; // rax cocos2d::CCObject *v48; // r15 __int64 v49; // rbx __int64 v50; // rax cocos2d::CCSprite *v51; // rbx cocos2d::CCObject *v52; // rbx __int64 v53; // rbx __int64 v54; // rax struct cocos2d::CCSprite *v55; // rax cocos2d::CCObject *v56; // rbx __int64 v57; // rbx __int64 v58; // rax _BYTE *v59; // rdx _BYTE *v60; // rdx _BYTE *v61; // rdx _BYTE *v62; // rdx _BYTE *v63; // rdx const char *v64; // rcx struct cocos2d::CCSprite *v65; // rbx cocos2d::CCObject *v66; // rdi __int64 v67; // rbx __int64 v68; // rax __int64 *v69; // rdi __int64 v70; // rbx __int64 v71; // rax float v72; // xmm7_4 float v73; // xmm2_4 float *v74; // r15 __int64 v75; // rax __int64 v76; // rax _QWORD *v77; // rdi __int64 v78; // rbx __int64 v79; // rax __int64 v80; // rax _QWORD *v81; // rdi __int64 v82; // rbx __int64 v83; // rax __int64 v84; // rdx const struct cocos2d::CCSize *v85; // rax cocos2d::CCObject *v86; // rdi __int64 v87; // rbx __int64 v88; // rax __int64 v89; // rax __int64 v90; // rcx __int64 *v91; // rdi __int64 v92; // rbx float v93; // xmm7_4 __int64 v94; // rax __int64 v95; // rdx __int64 v96; // rax __int64 *v97; // rdi __int64 v98; // rbx __int64 v99; // rax int v100; // eax const char *v101; // rcx struct cocos2d::CCLabelBMFont *v102; // rax __int64 v103; // rdi __int64 v104; // rbx __int64 v105; // rax __int64 v106; // rax __int64 *v107; // rax __int64 v108; // rdi float v109; // xmm6_4 double v110; // xmm0_8 __int64 v111; // rbx __int64 v112; // rax __int64 v113; // rdi __int64 v114; // rbx __int64 v115; // rax __int64 v116; // rdx __int64 v117; // rdx __int64 v118; // rax __int64 *v119; // rdi __int64 v120; // rbx __int64 v121; // rax float v122; // xmm9_4 float v123; // xmm11_4 int v124; // r13d int *v125; // rax _QWORD *v126; // r12 __int64 v127; // r15 float v128; // xmm7_4 __int64 v129; // rax _QWORD *v130; // rdi __int64 v131; // rbx __int64 v132; // rax __int64 v133; // rdx void (__fastcall **v134)(_QWORD, _QWORD); // rbx __int64 v135; // rax int v136; // r12d int *v137; // rax const char **v138; // r13 __int64 *v139; // r14 __int64 v140; // rbx cocos2d::CCObject *v141; // rdi __int64 v142; // rbx __int64 v143; // rax _BYTE *v144; // rdx __int64 *v145; // rbx __int64 *v146; // rdi __int64 v147; // rbx __int64 v148; // rax _QWORD *v149; // r8 _OWORD *v150; // rcx const char *v151; // rax __int64 v152; // rdx __int64 *v153; // rdi __int64 v154; // rbx __int64 v155; // rax int v156; // ebx __int64 v157; // r15 __int64 v158; // r12 _DWORD *v159; // rdi _DWORD *v160; // r8 int v161; // edx __int64 v162; // [rsp+38h] [rbp-D0h] BYREF __int64 *v163; // [rsp+40h] [rbp-C8h] BYREF float v164; // [rsp+48h] [rbp-C0h] BYREF float v165; // [rsp+4Ch] [rbp-BCh] __int64 v166; // [rsp+50h] [rbp-B8h] BYREF char *v167; // [rsp+58h] [rbp-B0h] BYREF __int64 v168; // [rsp+60h] [rbp-A8h] BYREF cocos2d::CCObject *v169; // [rsp+68h] [rbp-A0h] BYREF char **v170; // [rsp+70h] [rbp-98h] __int64 v171[2]; // [rsp+78h] [rbp-90h] BYREF int *v172; // [rsp+88h] [rbp-80h] float v173[2]; // [rsp+90h] [rbp-78h] BYREF __int128 v174; // [rsp+98h] [rbp-70h] BYREF __int64 v175; // [rsp+A8h] [rbp-60h] __int128 v176; // [rsp+B0h] [rbp-58h] BYREF __int64 v177; // [rsp+C0h] [rbp-48h] __int128 v178; // [rsp+C8h] [rbp-40h] BYREF __int64 v179; // [rsp+D8h] [rbp-30h] _DWORD v180[4]; // [rsp+E0h] [rbp-28h] BYREF __int128 v181; // [rsp+F0h] [rbp-18h] BYREF __int64 v182; // [rsp+100h] [rbp-8h] char v183[8]; // [rsp+108h] [rbp+0h] BYREF char v184[8]; // [rsp+110h] [rbp+8h] BYREF void *v185; // [rsp+118h] [rbp+10h] _WORD v186[8]; // [rsp+120h] [rbp+18h] BYREF __int64 v187; // [rsp+130h] [rbp+28h] __int64 v188; // [rsp+138h] [rbp+30h] __int128 v189; // [rsp+140h] [rbp+38h] BYREF __int64 v190; // [rsp+150h] [rbp+48h] __int64 v191; // [rsp+158h] [rbp+50h] __int128 v192; // [rsp+160h] [rbp+58h] BYREF __int128 v193; // [rsp+170h] [rbp+68h] v4 = 0; LODWORD(v169) = 0; LODWORD(v166) = -1778384896; LODWORD(v168) = -1778384896; result = cocos2d::CCLayerColor::initWithColor((cocos2d::CCLayerColor *)a1, (const struct cocos2d::_ccColor4B *)&v168); if ( !result ) return result; *(_QWORD *)(a1 + 680) = a2; DeathTrackerPopup::parseGlobal(a1); v6 = (unsigned int)dword_1408FE3E4; *(_DWORD *)(a1 + 728) = dword_1408FE3E4; *(_BYTE *)(a1 + 732) = byte_1409097DC; *(_DWORD *)(a1 + 740) = dword_14090BF90; *(_BYTE *)(a1 + 744) = byte_1409097DB; *(_BYTE *)(a1 + 977) = byte_1409097DA; *(_BYTE *)(a1 + 986) = byte_1408FE3E1; v181 = 0; v182 = 0; if ( a2 ) { GJGameLevel::dtExpandOrder(a2 + 446, &v181); v6 = *(unsigned int *)(a1 + 728); } v7 = *(_BYTE *)(a1 + 976); v8 = v7 && (int)((__int64)(*((_QWORD *)&v181 + 1) - v181) >> 2) < 3; *(_BYTE *)(a1 + 920) = v8; if ( a2 && a2[82] - a2[83] == dword_14090BF94 ) { v8 = byte_1408FE3E0; *(_BYTE *)(a1 + 920) = byte_1408FE3E0; } if ( !v7 ) { *(_BYTE *)(a1 + 920) = 0; v8 = 0; } if ( a2 && a2[305] == 2 ) { v9 = 1; *(_BYTE *)(a1 + 920) = 0; *(_DWORD *)(a1 + 980) = v6; } else { *(_DWORD *)(a1 + 980) = v6; v9 = 0; if ( v8 ) *(_DWORD *)(a1 + 728) = 0; if ( !a2 ) goto LABEL_22; } if ( a2[82] - a2[83] != dword_14090BF98 || a2[233] - a2[232] <= dword_1408FE3E8 ) { LABEL_22: v10 = 0; goto LABEL_23; } v10 = 1; LABEL_23: *(_BYTE *)(a1 + 984) = v10; *(_BYTE *)(a1 + 985) = 1; LOBYTE(v6) = -106; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(a1 + 408) + 40LL))(a1 + 408, v6); FLAlertLayer::incrementForcePrio((struct cocos2d::CCObject *)a1); *(_BYTE *)(a1 + 596) = 1; LOBYTE(v11) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 920LL))(a1, v11); LOBYTE(v12) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 992LL))(a1, v12); v14 = cocos2d::CCDirector::sharedDirector(v13); cocos2d::CCDirector::getWinSize(v14, v173); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v164, v173[0] * 0.5, v173[1] * 0.5); v15 = cocos2d::CCLayer::create(); *(_QWORD *)(a1 + 584) = v15; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v15); v16 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)v171, 0.0, 0.0, 80.0, 80.0); v17 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v16); v18 = *(_QWORD *)v17; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v163, 380.0, 280.0); (*(void (__fastcall **)(__int64, __int64))(v18 + 312))(v17, v19); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v17 + 184LL))(v17, &v164); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v17, 4294967294LL); if ( a2 ) { sub_14003F4F0((__int64)&v189, (__int64)(a2 + 86)); v20 = &v189; v21 = 5; } else { v186[7] = 0; v187 = 13; v188 = 15; strcpy((char *)v186, "Death Tracker"); v20 = (__int128 *)v186; v21 = 2; } v192 = *v20; v193 = v20[1]; *((_QWORD *)v20 + 2) = 0; *((_QWORD *)v20 + 3) = 15; *(_BYTE *)v20 = 0; if ( (v21 & 2) != 0 ) { v21 &= ~2u; sub_14003D310((__int64)v186); } if ( (v21 & 1) != 0 ) sub_14003D310((__int64)&v189); v22 = (const char *)&v192; if ( *((_QWORD *)&v193 + 1) > 0xFu ) v22 = (const char *)v192; v23 = cocos2d::CCLabelBMFont::create(v22, (const char *)&qword_140704F78); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v23 + 160LL))(v23); cocos2d::CCLabelBMFont::limitLabelWidth(v23, 310.0, 0.60000002, 0.30000001); v24 = *(_QWORD *)v23; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v163, v164, (float)(v165 + 140.0) - 18.0); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(v24 + 184))(v23, v25); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v23); v26 = cocos2d::CCMenu::create(); *(_QWORD *)(a1 + 552) = v26; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v26, 10); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 552) + 184LL))(*(_QWORD *)(a1 + 552), &unk_14090A1C8); *(_DWORD *)(a1 + 640) = -1; v27 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png"); LODWORD(v24) = (_DWORD)v27; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v27 + 160LL))(v27); v28 = CCMenuItemSpriteExtra::create(v24, 0, a1, (__int64)DeathTrackerPopup::onClose); *((_DWORD *)v28 + 93) = 1069547520; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v28); v29 = *(_QWORD *)v28; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v163, (float)(v164 - 190.0) + 4.0, (float)(v165 + 140.0) - 8.0); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v29 + 184))(v28, v30); v31 = (float)(v165 + 140.0) - 42.0; v32 = cocos2d::CCLabelBMFont::create(&byte_1406ED6E0, "goldFont.fnt"); *(_QWORD *)(a1 + 776) = v32; (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v32 + 160LL))(v32); v33 = **(_QWORD **)(a1 + 776); v34 = *(_QWORD *)(a1 + 776); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v163, v164, v31); (*(void (__fastcall **)(__int64, __int64))(v33 + 184))(v34, v35); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 776)); v36 = (__int64 *)cocos2d::CCNode::create(); *(_QWORD *)(a1 + 792) = v36; v37 = *v36; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v163, v164, v31); (*(void (__fastcall **)(__int64 *, __int64))(v37 + 184))(v36, v38); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 792)); v39 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); LODWORD(v37) = (_DWORD)v39; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v39 + 160LL))(v39); v40 = CCMenuItemSpriteExtra::create(v37, 0, a1, (__int64)DeathTrackerPopup::onPrevSession); v167 = (char *)v40; *((_DWORD *)v40 + 93) = 1069547520; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v40); v41 = *(_QWORD *)v40; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v163, v164 - 106.0, v31); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v41 + 184))(v40, v42); v43 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); (*(void (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v43 + 160LL))(v43); cocos2d::CCSprite::setFlipX(v43, 1); v44 = CCMenuItemSpriteExtra::create((int)v43, 0, a1, (__int64)&loc_14010D810); *((_DWORD *)v44 + 93) = 1069547520; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v44); v45 = *(_QWORD *)v44; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v163, v164 + 106.0, v31); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v45 + 184))(v44, v46); v47 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_03_001.png"); LODWORD(v45) = (_DWORD)v47; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v47 + 160LL))(v47); v48 = CCMenuItemSpriteExtra::create(v45, 0, a1, (__int64)DeathTrackerPopup::onJumpSummary); *((_DWORD *)v48 + 93) = 1069547520; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v48); v49 = *(_QWORD *)v48; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v163, v164 - 136.0, v31); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v49 + 184))(v48, v50); v51 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_03_001.png"); (*(void (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v51 + 160LL))(v51); cocos2d::CCSprite::setFlipX(v51, 1); v52 = CCMenuItemSpriteExtra::create((int)v51, 0, a1, (__int64)DeathTrackerPopup::onJumpCurrent); v170 = (char **)v52; *((_DWORD *)v52 + 93) = 1069547520; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v52); v53 = *(_QWORD *)v52; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v163, v164 + 136.0, v31); (*(void (__fastcall **)(char **, __int64))(v53 + 184))(v170, v54); v55 = cocos2d::CCSprite::createWithSpriteFrameName("dtrackBtn_search_001.png"); LODWORD(v53) = (_DWORD)v55; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v55 + 160LL))(v55); v56 = CCMenuItemSpriteExtra::create(v53, 0, a1, (__int64)DeathTrackerPopup::onJumpSession); v169 = v56; *((_DWORD *)v56 + 93) = 1069547520; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v56); v57 = *(_QWORD *)v56; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v163, v164 + 168.0, v31); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v57 + 184))(v169, v58); *(_QWORD *)(a1 + 936) = v169; v59 = *(_BYTE **)(a1 + 1024); if ( v59 == *(_BYTE **)(a1 + 1032) ) { sub_1400699B0((_QWORD *)(a1 + 1016), v59, &v167); } else { *(_QWORD *)v59 = v167; *(_QWORD *)(a1 + 1024) += 8LL; } v167 = (char *)v44; v60 = *(_BYTE **)(a1 + 1024); if ( v60 == *(_BYTE **)(a1 + 1032) ) { sub_1400699B0((_QWORD *)(a1 + 1016), v60, &v167); } else { *(_QWORD *)v60 = v44; *(_QWORD *)(a1 + 1024) += 8LL; } v167 = (char *)v48; v61 = *(_BYTE **)(a1 + 1024); if ( v61 == *(_BYTE **)(a1 + 1032) ) { sub_1400699B0((_QWORD *)(a1 + 1016), v61, &v167); } else { *(_QWORD *)v61 = v48; *(_QWORD *)(a1 + 1024) += 8LL; } v167 = (char *)v170; v62 = *(_BYTE **)(a1 + 1024); if ( v62 == *(_BYTE **)(a1 + 1032) ) { sub_1400699B0((_QWORD *)(a1 + 1016), v62, &v167); } else { *(_QWORD *)v62 = v170; *(_QWORD *)(a1 + 1024) += 8LL; } v167 = (char *)v169; v63 = *(_BYTE **)(a1 + 1024); if ( v63 == *(_BYTE **)(a1 + 1032) ) { sub_1400699B0((_QWORD *)(a1 + 1016), v63, &v167); } else { *(_QWORD *)v63 = v169; *(_QWORD *)(a1 + 1024) += 8LL; } if ( !v9 ) { v64 = "dtrackBtn_global_001.png"; if ( *(_BYTE *)(a1 + 920) ) v64 = "dtrackBtn_local_001.png"; v65 = cocos2d::CCSprite::createWithSpriteFrameName(v64); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v65 + 160LL))(v65); *(_QWORD *)(a1 + 928) = v65; v66 = CCMenuItemSpriteExtra::create((int)v65, 0, a1, (__int64)DeathTrackerPopup::onToggleGlobal); *((_DWORD *)v66 + 93) = 1069547520; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v66); v67 = *(_QWORD *)v66; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v163, v164 - 168.0, v31); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v67 + 184))(v66, v68); } v69 = (__int64 *)cocos2d::CCNode::create(); *(_QWORD *)(a1 + 784) = v69; v70 = *v69; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v163, v164, (float)(v165 + 140.0) - 62.0); (*(void (__fastcall **)(__int64 *, __int64))(v70 + 184))(v69, v71); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 784)); v72 = (float)(v165 + 140.0) - 74.0; v73 = (float)(v165 - 140.0) + 58.0; *(_DWORD *)(a1 + 696) = 1135542272; *(float *)(a1 + 700) = v72 - v73; v74 = (float *)(a1 + 704); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v163, v164, (float)(v73 + v72) * 0.5); cocos2d::CCPoint::operator=(a1 + 704, v75); v76 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)v171, 0.0, 0.0, 80.0, 80.0); v77 = (_QWORD *)cocos2d::extension::CCScale9Sprite::create("GJ_square06.png", v76); qmemcpy(&v162, "h:#", 3); (*(void (__fastcall **)(_QWORD *, __int64 *))v77[40])(v77 + 40, &v162); v78 = *v77; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v163, *(float *)(a1 + 696), *(float *)(a1 + 700)); (*(void (__fastcall **)(_QWORD *, __int64))(v78 + 312))(v77, v79); (*(void (__fastcall **)(_QWORD *, __int64))(*v77 + 184LL))(v77, a1 + 704); (*(void (__fastcall **)(_QWORD, _QWORD *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v77, 0xFFFFFFFFLL); v80 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)v171, 0.0, 0.0, 80.0, 80.0); v81 = (_QWORD *)cocos2d::extension::CCScale9Sprite::create("GJ_square07.png", v80); v82 = *v81; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v163, *(float *)(a1 + 696), *(float *)(a1 + 700)); (*(void (__fastcall **)(_QWORD *, __int64))(v82 + 312))(v81, v83); (*(void (__fastcall **)(_QWORD *, __int64))(*v81 + 184LL))(v81, a1 + 704); LOWORD(v162) = -21761; BYTE2(v162) = 85; (*(void (__fastcall **)(_QWORD *, __int64 *))v81[40])(v81 + 40, &v162); LOBYTE(v84) = 100; (*(void (__fastcall **)(_QWORD *, __int64))(v81[40] + 40LL))(v81 + 40, v84); (*(void (__fastcall **)(_QWORD, _QWORD *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v81, 6); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v163, *(float *)(a1 + 696), *(float *)(a1 + 700)); v86 = ScrollableContentLayer::create(v85); *(_QWORD *)(a1 + 688) = v86; v87 = *(_QWORD *)v86; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v163, *(float *)(a1 + 704) - (float)(*(float *)(a1 + 696) * 0.5), *(float *)(a1 + 708) - (float)(*(float *)(a1 + 700) * 0.5)); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v87 + 184))(v86, v88); v89 = *(_QWORD *)(a1 + 688); *(_BYTE *)(v89 + 499) = 0; v90 = *(_QWORD *)(v89 + 488); if ( v90 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(v90 + 408) + 40LL))(v90 + 408, 0); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 688), 1); v91 = (__int64 *)cocos2d::CCNode::create(); *(_QWORD *)(a1 + 800) = v91; v92 = *v91; v93 = v72 - 11.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v163, *v74 - (float)(*(float *)(a1 + 696) * 0.5), v93); (*(void (__fastcall **)(__int64 *, __int64))(v92 + 184))(v91, v94); LOBYTE(v95) = *(_DWORD *)(a1 + 728) == 1; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 800) + 336LL))(*(_QWORD *)(a1 + 800), v95); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 800), 5); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v163, *(float *)(a1 + 696), *(float *)(a1 + 700)); v97 = (__int64 *)DeathHistogram::create(v96); *(_QWORD *)(a1 + 712) = v97; v98 = *v97; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v163, *v74 - (float)(*(float *)(a1 + 696) * 0.5), *(float *)(a1 + 708) - (float)(*(float *)(a1 + 700) * 0.5)); (*(void (__fastcall **)(__int64 *, __int64))(v98 + 184))(v97, v99); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 712), 1); v100 = *(_DWORD *)(a1 + 728); if ( v100 ) { if ( v100 == 1 ) { v101 = "Death List"; } else { v101 = "Progression"; if ( v100 == 2 ) v101 = "Death History"; } } else { v101 = "Death Distribution"; } v102 = cocos2d::CCLabelBMFont::create(v101, "goldFont.fnt"); *(_QWORD *)(a1 + 808) = v102; (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v102 + 160LL))(v102); v103 = **(_QWORD **)(a1 + 808); v104 = *(_QWORD *)(a1 + 808); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v163, v164, v93); (*(void (__fastcall **)(__int64, __int64))(v103 + 184))(v104, v105); v106 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)v171, 0.0, 0.0, 40.0, 40.0); v107 = (__int64 *)cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v106); *(_QWORD *)(a1 + 816) = v107; v108 = *v107; v109 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 808) + 320LL))(*(_QWORD *)(a1 + 808)); v110 = (*(double (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 808) + 168LL))(*(_QWORD *)(a1 + 808)); v111 = *(_QWORD *)(a1 + 816); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v163, (float)(*(float *)&v110 * v109) + 22.0, 18.0); (*(void (__fastcall **)(__int64, __int64))(v108 + 312))(v111, v112); LOWORD(v162) = 6189; BYTE2(v162) = 14; (**(void (__fastcall ***)(__int64, __int64 *))(*(_QWORD *)(a1 + 816) + 320LL))(*(_QWORD *)(a1 + 816) + 320LL, &v162); v113 = **(_QWORD **)(a1 + 816); v114 = *(_QWORD *)(a1 + 816); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v163, v164, v93); (*(void (__fastcall **)(__int64, __int64))(v113 + 184))(v114, v115); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 816), 5); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 808), 5); LOBYTE(v116) = *(_DWORD *)(a1 + 728) != 1; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 816) + 336LL))(*(_QWORD *)(a1 + 816), v116); LOBYTE(v117) = *(_DWORD *)(a1 + 728) != 1; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 808) + 336LL))(*(_QWORD *)(a1 + 808), v117); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v163, *(float *)(a1 + 696), *(float *)(a1 + 700)); v119 = (__int64 *)DeathHistogram::create(v118); *(_QWORD *)(a1 + 720) = v119; v120 = *v119; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v163, *v74 - (float)(*(float *)(a1 + 696) * 0.5), *(float *)(a1 + 708) - (float)(*(float *)(a1 + 700) * 0.5)); (*(void (__fastcall **)(__int64 *, __int64))(v120 + 184))(v119, v121); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 720), 1); v122 = (float)(v165 - 140.0) + 30.0; v180[0] = 4; v180[1] = 3; v180[2] = 2; v123 = (float)(v164 - 190.0) + 10.0; *(float *)&v169 = (float)((float)((float)((float)(v164 + 190.0) - 38.0) - v123) - 318.0) * 0.5; LOWORD(v162) = 14952; v124 = 0; LODWORD(v168) = 0; v170 = off_140702E90; v125 = v180; v172 = v180; v126 = (_QWORD *)(a1 + 896); v167 = (char *)(a1 + 896); v127 = a1 + 832; do { v128 = (float)((float)*v125 * 32.0) + 10.0; v129 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)v186, 0.0, 0.0, 80.0, 80.0); v130 = (_QWORD *)cocos2d::extension::CCScale9Sprite::create("GJ_square06.png", v129); v131 = *v130; cocos2d::CCSize::CCSize((cocos2d::CCSize *)v183, v128 * 1.5, 60.0); (*(void (__fastcall **)(_QWORD *, __int64))(v131 + 312))(v130, v132); (*(void (__fastcall **)(_QWORD *))(*v130 + 160LL))(v130); LOWORD(v166) = v162; BYTE2(v166) = 35; (*(void (__fastcall **)(_QWORD *, __int64 *))v130[40])(v130 + 40, &v166); LOBYTE(v133) = 0x80; (*(void (__fastcall **)(_QWORD *, __int64))(v130[40] + 40LL))(v130 + 40, v133); v134 = (void (__fastcall **)(_QWORD, _QWORD))*v130; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, (float)(v128 * 0.5) + v123, v122); ((void (__fastcall **)(_QWORD *, __int64))v134)[23](v130, v135); (*(void (__fastcall **)(_QWORD, _QWORD *))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v130); *v126 = v130; v136 = 0; v137 = v172; if ( *v172 <= 0 ) goto LABEL_72; v138 = (const char **)v170; do { v139 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName(*v138); v163 = v139; v140 = *v139; (*(__int64 (__fastcall **)(__int64 *))(*v139 + 320))(v139); (*(void (__fastcall **)(__int64 *))(v140 + 160))(v139); v185 = operator new(0x208u); v141 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v185); if ( v141 ) { if ( CCMenuItemSpriteExtra::init((__int64 *)v141, v139, 0, a1, (__int64)DeathTrackerPopup::onPanelButton) ) { cocos2d::CCObject::autorelease(v141); goto LABEL_67; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v141 + 8LL))(v141, 1); } v141 = nullptr; LABEL_67: (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v141 + 64LL))(v141, (unsigned int)(v136 + v168)); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), v141); v142 = *(_QWORD *)v141; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v171, (float)((float)((float)v136 * 32.0) + (float)(v123 + 5.0)) + 16.0, v122); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v142 + 184))(v141, v143); v144 = *(_BYTE **)v127; if ( *(_QWORD *)v127 == *(_QWORD *)(v127 + 8) ) { sub_1400699B0((_QWORD *)(v127 - 8), v144, &v163); } else { *(_QWORD *)v144 = v139; *(_QWORD *)v127 += 8LL; } ++v136; ++v138; v137 = v172; } while ( v136 < *v172 ); v4 = 0; v124 = v168; LABEL_72: v123 = v123 + (float)(v128 + *(float *)&v169); v124 += 10; LODWORD(v168) = v124; v126 = v167 + 8; v167 += 8; v125 = v137 + 1; v172 = v125; v127 += 24; v170 += 4; } while ( v124 < 30 ); v145 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName("GJ_optionsBtn02_001.png"); (*(void (__fastcall **)(__int64 *))(*v145 + 160))(v145); v171[0] = (__int64)operator new(0x208u); v146 = (__int64 *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(v171[0]); if ( !v146 ) { LABEL_77: v146 = nullptr; goto LABEL_78; } if ( !CCMenuItemSpriteExtra::init(v146, v145, 0, a1, (__int64)DeathTrackerPopup::onOptions) ) { (*(void (__fastcall **)(__int64 *, __int64))(*v146 + 8))(v146, 1); goto LABEL_77; } cocos2d::CCObject::autorelease((cocos2d::CCObject *)v146); LABEL_78: (*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v146); v147 = *v146; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v171, (float)(v164 + 190.0) - 20.0, v122); (*(void (__fastcall **)(__int64 *, __int64))(v147 + 184))(v146, v148); v171[0] = (__int64)&v189; v189 = 0; v190 = 0; v191 = 0; v149 = sub_14003D460(0x170u); *(_QWORD *)&v189 = v149; v190 = 354; v191 = 367; v150 = v149; v151 = "Deaths are grouped into sessions.\n" "A new session starts after 30+ minutes away.\n" "Rate shows how deadly a spot is.\n" "Of the runs that reached it, the percent that died there.\n" "The 100 column counts completions.\n" "Startpos runs are tracked separately from full runs.\n" "Practice attempts and runs using cheats are not tracked."; v152 = 2; do { *v150 = *(_OWORD *)v151; v150[1] = *((_OWORD *)v151 + 1); v150[2] = *((_OWORD *)v151 + 2); v150[3] = *((_OWORD *)v151 + 3); v150[4] = *((_OWORD *)v151 + 4); v150[5] = *((_OWORD *)v151 + 5); v150[6] = *((_OWORD *)v151 + 6); v150 += 8; *(v150 - 1) = *((_OWORD *)v151 + 7); v151 += 128; --v152; } while ( v152 ); *v150 = *(_OWORD *)v151; v150[1] = *((_OWORD *)v151 + 1); v150[2] = *((_OWORD *)v151 + 2); v150[3] = *((_OWORD *)v151 + 3); v150[4] = *((_OWORD *)v151 + 4); v150[5] = *((_OWORD *)v151 + 5); *((_WORD *)v150 + 48) = *((_WORD *)v151 + 48); *((_BYTE *)v149 + 354) = 0; v186[7] = 0; v187 = 13; v188 = 15; strcpy((char *)v186, "Death Tracker"); v153 = (__int64 *)InfoAlertButton::create(v186, &v189); (*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v153); v154 = *v153; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v171, (float)(v164 + 190.0) - 8.0, (float)(v165 + 140.0) - 8.0); (*(void (__fastcall **)(__int64 *, __int64))(v154 + 184))(v153, v155); DeathTrackerPopup::parseSessions(a1); DeathTrackerPopup::setView(a1, *(unsigned int *)(a1 + 728)); DeathTrackerPopup::refreshView(a1); v178 = 0; v179 = 0; v176 = 0; v177 = 0; v174 = 0; v175 = 0; v156 = (*(_DWORD *)(a1 + 760) - *(_DWORD *)(a1 + 752)) / 80 - 1; v157 = v156; if ( v156 >= 0 ) { v158 = 80LL * v156; while ( 1 ) { v159 = (_DWORD *)(v158 + *(_QWORD *)(a1 + 752)); v160 = v159 + 19; if ( *((_QWORD *)&v178 + 1) == v4 ) { sub_140069B30((const void **)&v178, *((_BYTE **)&v178 + 1), v160); } else { **((_DWORD **)&v178 + 1) = *v160; *((_QWORD *)&v178 + 1) += 4LL; } if ( *((_QWORD *)&v176 + 1) == v177 ) { sub_140069B30((const void **)&v176, *((_BYTE **)&v176 + 1), v159); } else { **((_DWORD **)&v176 + 1) = *v159; *((_QWORD *)&v176 + 1) += 4LL; } v161 = (*(_DWORD *)(a1 + 760) - *(_DWORD *)(a1 + 752)) / 80 - v156; LODWORD(v169) = v161; if ( *((_QWORD *)&v174 + 1) == v175 ) { sub_140069B30((const void **)&v174, *((_BYTE **)&v174 + 1), &v169); } else { **((_DWORD **)&v174 + 1) = v161; *((_QWORD *)&v174 + 1) += 4LL; } --v156; v158 -= 80; if ( --v157 < 0 ) break; v4 = v179; } } DeathHistogram::setProgression(*(_QWORD *)(a1 + 720), &v178, &v176, &v174); sub_140069730((__int64)&v174); sub_140069730((__int64)&v176); sub_140069730((__int64)&v178); sub_14003D310((__int64)&v192); sub_140069730((__int64)&v181); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source