// // GauntletNode::generateNode from 0x140301280 to 0x140302ee8 (7272 bytes) // // 3 xrefs: // > GauntletSelectLayer::setupGauntlets @ 0x1402fef51 // > GauntletSelectLayer::unlockAnimationFinished @ 0x1403010fb // > @ 0x14091e4b8 // // 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:30:08 +0000 // // Hidden C++ exception states: #wind=7 void __fastcall GauntletNode::generateNode(_QWORD *a1) { __int64 v2; // rbx unsigned int v3; // ebx float v4; // xmm7_4 __int64 v5; // rax __int64 v6; // rax float v7; // xmm6_4 char v8; // dl __int16 v9; // cx __int64 v10; // rax _QWORD *v11; // rdi void (__fastcall ***v12)(_QWORD, _QWORD); // r13 __int64 v13; // rdx __int64 v14; // rbx __int64 v15; // rax size_t v16; // r12 const char *v17; // rcx struct cocos2d::CCLabelBMFont *v18; // rsi __int64 v19; // rbx __int64 v20; // rax struct cocos2d::CCLabelBMFont *v21; // r14 __int64 v22; // rax __int64 v23; // rbx __int64 v24; // rax const char *v25; // rcx struct cocos2d::CCLabelBMFont *v26; // rdi __int64 v27; // rbx __int64 v28; // rax struct cocos2d::CCLabelBMFont *v29; // rsi __int64 v30; // rbx __int64 v31; // rax __int64 v32; // rdx __int64 v33; // rdx const char *v34; // rcx struct cocos2d::CCSprite *v35; // r14 __int64 v36; // rbx __int64 v37; // rax const char *v38; // rcx struct cocos2d::CCSprite *v39; // rdi __int64 v40; // rax __int64 v41; // rbx __int64 v42; // rax __int64 v43; // rdx int v44; // eax cocos2d::CCString *v45; // rax const char *CString; // rax signed int v47; // r13d const char *v48; // rcx struct cocos2d::CCLabelBMFont *v49; // rsi __int64 v50; // rax __int64 v51; // rbx __int64 v52; // rax const char *v53; // rcx struct cocos2d::CCLabelBMFont *v54; // rdi __int64 v55; // rbx __int64 v56; // rdx __int64 v57; // rax __int64 v58; // rbx cocos2d::CCArray *v59; // rcx signed int v60; // edi cocos2d::CCArray *v61; // rcx struct cocos2d::CCSprite *v62; // rdi __int64 v63; // rbx __int64 v64; // rax struct cocos2d::CCSprite *v65; // rbx __int64 v66; // rax __int64 v67; // rdx __int64 v68; // rcx _QWORD *v69; // rbx __int64 v70; // rcx __int64 v71; // rdx struct cocos2d::CCLabelBMFont *v72; // r14 __int64 v73; // rbx __int64 v74; // rax struct cocos2d::CCLabelBMFont *v75; // rdi __int64 v76; // rbx __int64 v77; // rax __int64 v78; // rdx __int64 v79; // rdx __int64 v80; // r8 __int64 v81; // rsi __int64 v82; // rbx __int64 v83; // rax __int64 v84; // rax __int64 v85; // rdx __int64 v86; // r8 __int64 v87; // rdi __int64 v88; // rbx __int64 v89; // rax cocos2d::CCArray *v90; // rax struct cocos2d::CCObject *v91; // rax cocos2d::CCArray *v92; // rax struct cocos2d::CCObject *v93; // rax __int64 v94; // rdx struct cocos2d::CCLabelBMFont *v95; // rdi __int64 v96; // rbx __int64 v97; // rax struct cocos2d::CCLabelBMFont *v98; // rbx __int64 v99; // rax __int64 v100; // rdx __int64 v101; // rdx __int64 v102; // r8 __int64 v103; // rsi __int64 v104; // rbx __int64 v105; // rax __int64 v106; // rax __int64 v107; // rdx __int64 v108; // r8 __int64 v109; // rdi __int64 v110; // rbx __int64 v111; // rax cocos2d::CCArray *v112; // rax struct cocos2d::CCObject *v113; // rax cocos2d::CCArray *v114; // rax struct cocos2d::CCObject *v115; // rax __int64 v116; // rdx struct cocos2d::CCSprite *v117; // rdi __int64 v118; // rbx __int64 v119; // rax struct cocos2d::CCSprite *v120; // rdi __int64 v121; // rbx __int64 v122; // rax struct cocos2d::CCSprite *v123; // rsi __int64 v124; // rax __int64 v125; // rbx __int64 v126; // rax struct cocos2d::CCLabelBMFont *v127; // rdi __int64 v128; // rax __int64 v129; // rbx __int64 v130; // rax __int16 v131; // [rsp+38h] [rbp-D0h] BYREF char v132; // [rsp+3Ah] [rbp-CEh] _WORD v133[4]; // [rsp+3Ch] [rbp-CCh] BYREF unsigned int v134; // [rsp+44h] [rbp-C4h] BYREF __int64 v135; // [rsp+48h] [rbp-C0h] BYREF _BYTE *v136; // [rsp+50h] [rbp-B8h] BYREF __int64 v137; // [rsp+58h] [rbp-B0h] BYREF void (__fastcall ***v138)(void *, __int16 *); // [rsp+60h] [rbp-A8h] BYREF _BYTE v139[8]; // [rsp+68h] [rbp-A0h] BYREF _BYTE v140[32]; // [rsp+70h] [rbp-98h] BYREF __int128 v141; // [rsp+90h] [rbp-78h] BYREF __int64 v142; // [rsp+A0h] [rbp-68h] unsigned __int64 v143; // [rsp+A8h] [rbp-60h] _QWORD v144[3]; // [rsp+B0h] [rbp-58h] BYREF unsigned __int64 v145; // [rsp+C8h] [rbp-40h] _QWORD v146[3]; // [rsp+D0h] [rbp-38h] BYREF unsigned __int64 v147; // [rsp+E8h] [rbp-20h] _QWORD v148[4]; // [rsp+F0h] [rbp-18h] BYREF (*(void (__fastcall **)(_QWORD *, _QWORD))(*a1 + 576LL))(a1, 0); v2 = a1[43]; if ( v2 ) { v3 = *(_DWORD *)(v2 + 328); v134 = v3; GauntletNode::nameForType(v146, v3); GauntletNode::frameForType(v144, v3); v133[0] = -1; LOBYTE(v133[1]) = -1; v133[2] = -1; LOBYTE(v133[3]) = -1; v4 = 0.69999999; v5 = cocos2d::CCNode::create(); a1[40] = v5; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v5 + 312LL))(v5, &unk_14090AA28); (*(void (__fastcall **)(_QWORD *, _QWORD, __int64))(*a1 + 456LL))(a1, a1[40], 1); v6 = cocos2d::CCNode::create(); a1[41] = v6; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v6 + 312LL))(v6, &unk_14090AA28); (*(void (__fastcall **)(_QWORD *, _QWORD, __int64))(*a1 + 456LL))(a1, a1[41], 2); (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)a1[41] + 336LL))(a1[41], 0); v7 = 0.0; switch ( v3 ) { case 1u: v8 = 0; v9 = 25855; v133[0] = 25855; LOBYTE(v133[1]) = 0; v131 = -14081; v133[2] = -14081; LOBYTE(v133[3]) = 0; break; case 2u: v8 = -1; v9 = 32000; v133[0] = 32000; LOBYTE(v133[1]) = -1; v131 = -106; v133[2] = -106; LOBYTE(v133[3]) = -1; break; case 3u: v8 = 0; v9 = -20736; v133[0] = -20736; LOBYTE(v133[1]) = 0; v131 = -156; v133[2] = -156; LOBYTE(v133[3]) = 50; v4 = 0.62; break; case 4u: v8 = -56; v9 = 100; strcpy((char *)v133, "d"); LOBYTE(v133[1]) = -56; v131 = 13020; v133[2] = 13020; LOBYTE(v133[3]) = -1; v4 = 0.62; break; case 5u: v8 = 0; v9 = 200; v133[0] = 200; LOBYTE(v133[1]) = 0; v131 = 23295; v133[2] = 23295; LOBYTE(v133[3]) = 0; break; case 6u: v131 = 25675; v8 = -1; v9 = 25675; v133[0] = 25675; LOBYTE(v133[1]) = -1; break; case 7u: v131 = 25700; v8 = 100; goto LABEL_10; case 8u: case 0xFu: v131 = 12850; v8 = 50; goto LABEL_10; case 9u: v8 = -1; v9 = 25600; v133[0] = 25600; LOBYTE(v133[1]) = -1; v131 = -256; v133[2] = -256; LOBYTE(v133[3]) = -1; break; case 0xAu: v8 = -106; v9 = 13055; v133[0] = 13055; LOBYTE(v133[1]) = -106; v131 = -14081; v133[2] = -14081; LOBYTE(v133[3]) = -1; v4 = 0.60000002; break; case 0xBu: v131 = 12800; v8 = 125; goto LABEL_15; case 0xCu: v8 = 0; v9 = 25750; v133[0] = 25750; LOBYTE(v133[1]) = 0; v131 = -14081; v133[2] = -14081; LOBYTE(v133[3]) = 50; break; case 0xDu: v8 = 0; v9 = 19200; v133[0] = 19200; LOBYTE(v133[1]) = 0; v131 = -206; v133[2] = -206; LOBYTE(v133[3]) = 0; v4 = 0.55000001; break; case 0xEu: v131 = 19300; v8 = 50; LABEL_10: v9 = v131; v133[0] = v131; LOBYTE(v133[1]) = v8; v131 = 6655; v133[2] = 6655; LOBYTE(v133[3]) = 25; break; case 0x10u: v8 = 0; v9 = 25600; v133[0] = 25600; LOBYTE(v133[1]) = 0; v131 = -206; v133[2] = -206; LOBYTE(v133[3]) = 0; v7 = 2.0; break; case 0x11u: v8 = 0; v9 = 25750; v133[0] = 25750; LOBYTE(v133[1]) = 0; v131 = -14081; v133[2] = -14081; LOBYTE(v133[3]) = 50; v7 = 1.0; break; case 0x12u: v8 = -71; v9 = 95; strcpy((char *)v133, "_"); LOBYTE(v133[1]) = -71; v131 = 32255; v133[2] = 32255; LOBYTE(v133[3]) = -1; break; case 0x13u: v8 = 75; v9 = 19200; v133[0] = 19200; LOBYTE(v133[1]) = 75; v131 = -14336; v133[2] = -14336; LOBYTE(v133[3]) = -56; v7 = -2.0; break; case 0x14u: v8 = 0; v9 = 110; strcpy((char *)v133, "n"); LOBYTE(v133[1]) = 0; v131 = 19455; v133[2] = 19455; LOBYTE(v133[3]) = 0; v7 = 3.0; break; case 0x15u: v8 = -1; v9 = 32050; v133[0] = 32050; LOBYTE(v133[1]) = -1; v131 = -156; v133[2] = -156; LOBYTE(v133[3]) = -1; v7 = 3.0; break; case 0x16u: v8 = 48; v9 = 11300; qmemcpy(v133, "$,0", 3); v131 = -1; v133[2] = -1; LOBYTE(v133[3]) = 110; v4 = 0.55000001; break; case 0x17u: v8 = 80; v9 = 23130; qmemcpy(v133, "ZZP", 3); v131 = -96; v133[2] = -96; LOBYTE(v133[3]) = 13; break; case 0x18u: v8 = 61; v9 = 15907; qmemcpy(v133, "#>=", 3); v131 = -2929; v133[2] = -2929; LOBYTE(v133[3]) = -1; break; case 0x19u: v8 = 40; v9 = 11325; qmemcpy(v133, "=,(", 3); v131 = -6401; v133[2] = -6401; LOBYTE(v133[3]) = -86; v7 = 2.0; break; case 0x1Au: v8 = 60; v9 = 9050; qmemcpy(v133, "Z#<", 3); v131 = -26881; v133[2] = -26881; LOBYTE(v133[3]) = -1; break; case 0x1Bu: v8 = 104; v9 = 10293; qmemcpy(v133, "5(h", 3); v131 = -19201; v133[2] = -19201; LOBYTE(v133[3]) = 114; break; case 0x1Cu: v131 = 6483; v8 = 96; goto LABEL_33; case 0x1Du: v8 = 0; v9 = 7751; v133[0] = 7751; LOBYTE(v133[1]) = 0; v131 = -32001; v133[2] = -32001; LOBYTE(v133[3]) = 0; v4 = 0.47999999; v7 = 3.0; break; case 0x1Eu: v8 = 45; v9 = 14125; qmemcpy(v133, "-7-", 3); v131 = -8961; v133[2] = -8961; LOBYTE(v133[3]) = 0; v4 = 0.55000001; v7 = 3.0; break; case 0x1Fu: v8 = 80; v9 = 12800; v131 = -1; goto LABEL_16; case 0x20u: v8 = 63; v9 = 9522; v131 = 24746; goto LABEL_16; case 0x21u: v8 = 125; v9 = 17920; v133[0] = 17920; LOBYTE(v133[1]) = 125; v131 = -6631; v133[2] = -6631; LOBYTE(v133[3]) = -1; v7 = 2.0; break; case 0x22u: v8 = 76; v9 = 76; strcpy((char *)v133, "L"); LOBYTE(v133[1]) = 76; v131 = -29441; v133[2] = -29441; LOBYTE(v133[3]) = 0; v4 = 0.60000002; v7 = 6.0; break; case 0x23u: v8 = 105; v9 = 7218; v133[0] = 7218; LOBYTE(v133[1]) = 105; v131 = -256; v133[2] = -256; LOBYTE(v133[3]) = -1; v7 = 5.0; break; case 0x24u: v8 = -106; v9 = 94; strcpy((char *)v133, "^"); LOBYTE(v133[1]) = -106; v131 = -132; v133[2] = -132; LOBYTE(v133[3]) = 0; v4 = 0.55000001; v7 = -4.0; break; case 0x25u: v9 = 25660; v131 = -39; goto LABEL_44; case 0x26u: v8 = -1; v9 = -28416; v133[0] = -28416; LOBYTE(v133[1]) = -1; v131 = -1; v133[2] = -1; LOBYTE(v133[3]) = -1; v4 = 0.5; break; case 0x27u: v8 = 0; v9 = 14197; strcpy((char *)v133, "u7"); v131 = -1; v133[2] = -1; LOBYTE(v133[3]) = -1; v4 = 0.55000001; break; case 0x28u: v9 = 12825; v131 = -1; LABEL_44: v8 = 0; LOBYTE(v133[1]) = 0; v133[0] = v9; v133[2] = v131; LOBYTE(v133[3]) = 0; v4 = 0.60000002; break; case 0x29u: v131 = 76; v8 = 50; LABEL_33: v9 = v131; v131 = -256; goto LABEL_34; case 0x2Au: v8 = 50; v9 = 12850; v131 = -256; goto LABEL_16; case 0x2Bu: v8 = -1; v9 = 25600; v133[0] = 25600; LOBYTE(v133[1]) = -1; v131 = -1; v133[2] = -1; LOBYTE(v133[3]) = -1; v7 = -2.0; break; case 0x2Cu: v8 = 50; v9 = 12800; v133[0] = 12800; LOBYTE(v133[1]) = 50; v131 = -370; v133[2] = -370; LOBYTE(v133[3]) = -78; break; case 0x2Du: v8 = 0; v9 = 18176; v133[0] = 18176; LOBYTE(v133[1]) = 0; v131 = -1; v133[2] = -1; LOBYTE(v133[3]) = -96; break; case 0x2Eu: v8 = -46; v9 = 26147; v131 = -1; goto LABEL_16; case 0x2Fu: v8 = 77; v9 = 10048; v131 = -16905; goto LABEL_16; case 0x30u: v8 = 78; v9 = 7196; v131 = -256; goto LABEL_16; case 0x31u: v8 = 70; v9 = 10522; v131 = -106; goto LABEL_16; case 0x32u: v8 = 69; v9 = 1605; v133[0] = 1605; LOBYTE(v133[1]) = 69; v131 = -21761; v133[2] = -21761; LOBYTE(v133[3]) = -12; break; case 0x33u: v8 = 70; v9 = 15640; v131 = -226; goto LABEL_16; case 0x34u: v8 = 68; v9 = 8768; v131 = -20481; goto LABEL_16; case 0x35u: v131 = 13340; v8 = 66; LABEL_15: v9 = v131; v131 = -206; goto LABEL_16; case 0x36u: v8 = 45; v9 = 11575; v131 = -14081; goto LABEL_34; case 0x37u: v8 = 19; v9 = 22163; v131 = -10241; goto LABEL_34; case 0x38u: v8 = 105; v9 = 12852; v131 = -256; goto LABEL_16; case 0x39u: v8 = 37; v9 = 19493; v131 = -130; LABEL_34: LOBYTE(v133[1]) = v8; v133[0] = v9; v133[2] = v131; LOBYTE(v133[3]) = 0; break; case 0x3Au: v8 = 57; v9 = 7204; v131 = -16696; goto LABEL_16; case 0x3Bu: v8 = 42; v9 = 12863; qmemcpy(v133, "?2*", 3); v131 = -1; v133[2] = -1; LOBYTE(v133[3]) = -36; break; case 0x3Cu: v8 = 92; v9 = 12428; v131 = -21761; goto LABEL_16; case 0x3Du: v8 = 65; v9 = 16705; v131 = -1; goto LABEL_16; case 0x3Eu: v8 = 60; v9 = 8983; v131 = -7911; LABEL_16: LOBYTE(v133[1]) = v8; v133[0] = v9; v133[2] = v131; LOBYTE(v133[3]) = -1; break; default: v8 = v133[1]; v9 = v133[0]; break; } *((_WORD *)a1 + 168) = v133[2]; *((_BYTE *)a1 + 338) = v133[3]; *(_WORD *)((char *)a1 + 339) = v9; *((_BYTE *)a1 + 341) = v8; cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v141, 0.0, 0.0, 86.0, 86.0); v11 = (_QWORD *)cocos2d::extension::CCScale9Sprite::create("GJ_squareB_01.png", v10); v12 = (void (__fastcall ***)(_QWORD, _QWORD))(v11 + 40); LOBYTE(v13) = -1; (*(void (__fastcall **)(_QWORD *, __int64))(v11[40] + 40LL))(v11 + 40, v13); v14 = *v11; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v136, 110.0, 234.0); (*(void (__fastcall **)(_QWORD *, __int64))(v14 + 312))(v11, v15); v16 = -1; (*(void (__fastcall **)(_QWORD *, _QWORD *, __int64))(*a1 + 456LL))(a1, v11, 0xFFFFFFFFLL); (**v12)(v12, v133); v17 = (const char *)v146; if ( v147 > 0xF ) v17 = (const char *)v146[0]; v18 = cocos2d::CCLabelBMFont::create(v17, (const char *)&qword_140704F78); (*(void (__fastcall **)(_QWORD *, struct cocos2d::CCLabelBMFont *, __int64))(*a1 + 456LL))(a1, v18, 2); cocos2d::CCLabelBMFont::limitLabelWidth(v18, 75.0, v4, 0.0); v19 = *(_QWORD *)v18; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v136, 0.0, 94.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v19 + 184))(v18, v20); v138 = (void (__fastcall ***)(void *, __int16 *))((char *)v18 + 368); (**((void (__fastcall ***)(__int64, _WORD *))v18 + 46))((__int64)v18 + 368, &v133[2]); v21 = cocos2d::CCLabelBMFont::create("Gauntlet", (const char *)&qword_140704F78); (*(void (__fastcall **)(_QWORD *, struct cocos2d::CCLabelBMFont *, __int64))(*a1 + 456LL))(a1, v21, 2); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v21 + 160LL))(v21); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v136, 0.0, -19.0); v23 = v22; v24 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v18 + 200LL))(v18); cocos2d::CCPoint::operator+(v24, &v135, v23); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v21 + 184LL))(v21, &v135); v136 = (char *)v21 + 368; (**((void (__fastcall ***)(__int64, _WORD *))v21 + 46))((__int64)v21 + 368, &v133[2]); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v137, 2.0, -3.0); v25 = (const char *)v146; if ( v147 > 0xF ) v25 = (const char *)v146[0]; v26 = cocos2d::CCLabelBMFont::create(v25, (const char *)&qword_140704F78); (*(void (__fastcall **)(_QWORD *, struct cocos2d::CCLabelBMFont *, __int64))(*a1 + 456LL))(a1, v26, 1); v27 = *(_QWORD *)v26; (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v18 + 168LL))(v18); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(v27 + 160))(v26); v28 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v18 + 200LL))(v18); cocos2d::CCPoint::operator+(v28, &v135, &v137); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v26 + 184LL))(v26, &v135); v29 = cocos2d::CCLabelBMFont::create("Gauntlet", (const char *)&qword_140704F78); (*(void (__fastcall **)(_QWORD *, struct cocos2d::CCLabelBMFont *, __int64))(*a1 + 456LL))(a1, v29, 1); v30 = *(_QWORD *)v29; (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v21 + 168LL))(v21); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(v30 + 160))(v29); v31 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v21 + 200LL))(v21); cocos2d::CCPoint::operator+(v31, &v135, &v137); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v29 + 184LL))(v29, &v135); (**((void (__fastcall ***)(__int64, void *))v26 + 46))((__int64)v26 + 368, &unk_140703440); (**((void (__fastcall ***)(__int64, void *))v29 + 46))((__int64)v29 + 368, &unk_140703440); LOBYTE(v32) = 60; (*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v26 + 46) + 40LL))((__int64)v26 + 368, v32); LOBYTE(v33) = 60; (*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v29 + 46) + 40LL))((__int64)v29 + 368, v33); if ( *((_BYTE *)a1 + 352) ) { v131 = 20560; memset(&v134, 80, 3); (**v12)(v12, &v134); LOWORD(v134) = -20561; v131 = -20561; v132 = -81; (**v138)(v138, &v131); (**(void (__fastcall ***)(_BYTE *, __int16 *))v136)(v136, &v131); v117 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)&xmmword_14071C878); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v117 + 160LL))(v117); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)a1[40] + 456LL))(a1[40], v117, 2); v118 = *(_QWORD *)v117; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v136, 0.0, v7 + 16.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v118 + 184))(v117, v119); v120 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_unlockBtn_001.png"); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)a1[40] + 456LL))(a1[40], v120, 2); v121 = *(_QWORD *)v120; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v138, 0.0, -41.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v121 + 184))(v120, v122); v123 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_adVideoBtn_001.png"); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)a1[40] + 456LL))(a1[40], v123, 2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v135, 0.0, -31.0); v125 = v124; v126 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v120 + 200LL))(v120); cocos2d::CCPoint::operator+(v126, &v136, v125); (*(void (__fastcall **)(struct cocos2d::CCSprite *, _BYTE **))(*(_QWORD *)v123 + 184LL))(v123, &v136); v127 = cocos2d::CCLabelBMFont::create("View Ad", (const char *)&qword_140704F78); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v127 + 160LL))(v127); LOWORD(v134) = -30841; BYTE2(v134) = -121; (**((void (__fastcall ***)(__int64, unsigned int *))v127 + 46))((__int64)v127 + 368, &v134); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)a1[40] + 456LL))( a1[40], v127, 2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v139, 0.0, -25.0); v129 = v128; v130 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v123 + 200LL))(v123); cocos2d::CCPoint::operator+(v130, &v136, v129); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, _BYTE **))(*(_QWORD *)v127 + 184LL))(v127, &v136); } else { v34 = (const char *)v144; if ( v145 > 0xF ) v34 = (const char *)v144[0]; v35 = cocos2d::CCSprite::createWithSpriteFrameName(v34); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)a1[40] + 456LL))(a1[40], v35, 2); v36 = *(_QWORD *)v35; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v136, 0.0, v7 + 16.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v36 + 184))(v35, v37); v38 = (const char *)v144; if ( v145 > 0xF ) v38 = (const char *)v144[0]; v39 = cocos2d::CCSprite::createWithSpriteFrameName(v38); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)a1[40] + 456LL))(a1[40], v39, 1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v136, 0.0, -10.0); v41 = v40; v42 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v35 + 200LL))(v35); cocos2d::CCPoint::operator+(v42, &v135, v41); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64 *))(*(_QWORD *)v39 + 184LL))(v39, &v135); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v39 + 136LL))(v39); (**((void (__fastcall ***)(__int64, void *))v39 + 40))((__int64)v39 + 320, &unk_140703440); LOBYTE(v43) = 50; (*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v39 + 40) + 40LL))((__int64)v39 + 320, v43); v44 = GJMapPack::completedMaps(a1[43]); v45 = cocos2d::CCString::createWithFormat("%i/5", v44); CString = cocos2d::CCString::getCString(v45); v141 = 0; v47 = 0; v142 = 0; v143 = 0; do ++v16; while ( CString[v16] ); sub_14003D230(&v141, CString, v16); v48 = (const char *)&v141; if ( v143 > 0xF ) v48 = (const char *)v141; v49 = cocos2d::CCLabelBMFont::create(v48, (const char *)&qword_140704F78); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)a1[40] + 456LL))( a1[40], v49, 2); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v49 + 160LL))(v49); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v136, 0.0, -40.0 - v7); v51 = v50; v52 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v35 + 200LL))(v35); cocos2d::CCPoint::operator+(v52, &v135, v51); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v49 + 184LL))(v49, &v135); v53 = (const char *)&v141; if ( v143 > 0xF ) v53 = (const char *)v141; v54 = cocos2d::CCLabelBMFont::create(v53, (const char *)&qword_140704F78); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)a1[40] + 456LL))( a1[40], v54, 1); v55 = *(_QWORD *)v54; (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v49 + 168LL))(v49); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(v55 + 160))(v54); (**((void (__fastcall ***)(__int64, void *))v54 + 46))((__int64)v54 + 368, &unk_140703440); LOBYTE(v56) = 60; (*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v54 + 46) + 40LL))((__int64)v54 + 368, v56); v57 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v49 + 200LL))(v49); cocos2d::CCPoint::operator+(v57, &v135, &v137); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v54 + 184LL))(v54, &v135); v58 = a1[43]; v59 = *(cocos2d::CCArray **)(v58 + 320); if ( !v59 || !cocos2d::CCArray::count(v59) ) goto LABEL_98; v60 = GJMapPack::completedMaps(v58); v61 = *(cocos2d::CCArray **)(v58 + 320); if ( v61 ) v47 = cocos2d::CCArray::count(v61); if ( v60 >= v47 ) { v62 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_completesIcon_001.png"); (*(void (__fastcall **)(_QWORD *, struct cocos2d::CCSprite *, __int64))(*a1 + 456LL))(a1, v62, 5); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v62 + 160LL))(v62); v63 = *(_QWORD *)v62; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v136, 0.0, -72.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v63 + 184))(v62, v64); v65 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_completesIcon_001.png"); (*(void (__fastcall **)(_QWORD *, struct cocos2d::CCSprite *, __int64))(*a1 + 456LL))(a1, v65, 1); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v65 + 160LL))(v65); v66 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v62 + 200LL))(v62); cocos2d::CCPoint::operator+(v66, &v135, &v137); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64 *))(*(_QWORD *)v65 + 184LL))(v65, &v135); (**((void (__fastcall ***)(__int64, void *))v65 + 40))((__int64)v65 + 320, &unk_140703440); LOBYTE(v67) = 60; (*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v65 + 40) + 40LL))((__int64)v65 + 320, v67); if ( !qword_14090BFE0 ) { v136 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v136); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); } GameStatsManager::getGauntletRewardKey(v68, v148, v134); v136 = v140; v69 = (_QWORD *)sub_14003F4F0((__int64)v140, (__int64)v148); v70 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v138 = (void (__fastcall ***)(void *, __int16 *))operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v138); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v70 = qword_14090BFE0; } if ( !GameStatsManager::isSpecialChestUnlocked(v70, v69) ) { (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)a1[40] + 336LL))(a1[40], 0); LOBYTE(v71) = 1; (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)a1[41] + 336LL))(a1[41], v71); v72 = cocos2d::CCLabelBMFont::create("Reward", "goldFont.fnt"); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v72 + 160LL))(v72); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)a1[41] + 456LL))( a1[41], v72, 2); v73 = *(_QWORD *)v72; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v136, 0.0, 43.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v73 + 184))(v72, v74); v75 = cocos2d::CCLabelBMFont::create("Reward", "goldFont.fnt"); v76 = *(_QWORD *)v75; (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v72 + 168LL))(v72); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(v76 + 160))(v75); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)a1[41] + 456LL))( a1[41], v75, 1); v77 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v72 + 200LL))(v72); cocos2d::CCPoint::operator+(v77, &v135, &v137); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v75 + 184LL))(v75, &v135); (**((void (__fastcall ***)(__int64, void *))v75 + 46))((__int64)v75 + 368, &unk_140703440); LOBYTE(v78) = 60; (*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v75 + 46) + 40LL))((__int64)v75 + 368, v78); v81 = GJChestSprite::create(2, v79, v80); (*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)a1[41] + 456LL))(a1[41], v81, 2); (*(void (__fastcall **)(__int64))(*(_QWORD *)v81 + 160LL))(v81); v82 = *(_QWORD *)v81; v83 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v72 + 200LL))(v72); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v136, 0.0, *(float *)(v83 + 4) - 46.0); (*(void (__fastcall **)(__int64, __int64))(v82 + 184))(v81, v84); v87 = GJChestSprite::create(2, v85, v86); (*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)a1[41] + 456LL))(a1[41], v87, 1); v88 = *(_QWORD *)v87; (*(void (__fastcall **)(__int64))(*(_QWORD *)v81 + 168LL))(v81); (*(void (__fastcall **)(__int64))(v88 + 160))(v87); v89 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v81 + 200LL))(v81); cocos2d::CCPoint::operator+(v89, &v135, &v137); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v87 + 184LL))(v87, &v135); v90 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v87 + 480LL))(v87); v91 = cocos2d::CCArray::objectAtIndex(v90, 0); (**((void (__fastcall ***)(__int64, void *))v91 + 40))((__int64)v91 + 320, &unk_140703440); v92 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v87 + 480LL))(v87); v93 = cocos2d::CCArray::objectAtIndex(v92, 0); LOBYTE(v94) = 60; (*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v93 + 40) + 40LL))((__int64)v93 + 320, v94); } sub_14003D310((__int64)v148); } else { LABEL_98: v95 = cocos2d::CCLabelBMFont::create("Reward", "goldFont.fnt"); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v95 + 160LL))(v95); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)a1[40] + 456LL))( a1[40], v95, 2); v96 = *(_QWORD *)v95; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v136, 0.0, -47.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v96 + 184))(v95, v97); v98 = cocos2d::CCLabelBMFont::create("Reward", "goldFont.fnt"); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v98 + 160LL))(v98); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)a1[40] + 456LL))( a1[40], v98, 1); v99 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v95 + 200LL))(v95); cocos2d::CCPoint::operator+(v99, &v135, &v137); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v98 + 184LL))(v98, &v135); (**((void (__fastcall ***)(__int64, void *))v98 + 46))((__int64)v98 + 368, &unk_140703440); LOBYTE(v100) = 60; (*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v98 + 46) + 40LL))((__int64)v98 + 368, v100); v103 = GJChestSprite::create(2, v101, v102); (*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)a1[40] + 456LL))(a1[40], v103, 2); (*(void (__fastcall **)(__int64))(*(_QWORD *)v103 + 160LL))(v103); v104 = *(_QWORD *)v103; v105 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v95 + 200LL))(v95); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v136, 0.0, *(float *)(v105 + 4) - 31.5); (*(void (__fastcall **)(__int64, __int64))(v104 + 184))(v103, v106); v109 = GJChestSprite::create(2, v107, v108); (*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)a1[40] + 456LL))(a1[40], v109, 1); v110 = *(_QWORD *)v109; (*(void (__fastcall **)(__int64))(*(_QWORD *)v103 + 168LL))(v103); (*(void (__fastcall **)(__int64))(v110 + 160))(v109); v111 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v103 + 200LL))(v103); cocos2d::CCPoint::operator+(v111, &v135, &v137); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v109 + 184LL))(v109, &v135); v112 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v109 + 480LL))(v109); v113 = cocos2d::CCArray::objectAtIndex(v112, 0); (**((void (__fastcall ***)(__int64, void *))v113 + 40))((__int64)v113 + 320, &unk_140703440); v114 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v109 + 480LL))(v109); v115 = cocos2d::CCArray::objectAtIndex(v114, 0); LOBYTE(v116) = 60; (*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v115 + 40) + 40LL))((__int64)v115 + 320, v116); } sub_14003D310((__int64)&v141); } sub_14003D310((__int64)v144); sub_14003D310((__int64)v146); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source