// // GJShopLayer::init from 0x1403af9b0 to 0x1403b1b6a (8634 bytes) // // 2 xrefs: // > GJShopLayer::scene @ 0x1403af959 // > @ 0x140923bc4 // // 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:31:23 +0000 // // Hidden C++ exception states: #wind=21 bool __fastcall GJShopLayer::init(__int64 a1, int a2) { bool result; // al __int64 v5; // rcx __int64 v6; // rax cocos2d::CCTouchDispatcher *v7; // rax __int64 v8; // rdi unsigned __int64 v9; // r12 unsigned __int64 v10; // r15 __int64 v11; // rsi __int64 v12; // r13 unsigned __int64 v13; // r12 _BYTE *v14; // rbx unsigned __int64 v15; // rcx __int64 v16; // rbx void **v17; // rax void *v18; // rcx unsigned __int64 v19; // r12 _BYTE *v20; // rbx unsigned __int64 v21; // rcx __int64 v22; // rbx cocos2d::CCArray *v23; // rax void *v24; // rcx unsigned __int64 v25; // r12 unsigned __int64 v26; // rcx _QWORD *v27; // rbx void *v28; // rcx const char *v29; // rdx void **v30; // rdi cocos2d::CCArray *v31; // rcx unsigned __int64 v32; // rdx unsigned __int64 v33; // rbx void **v34; // rax unsigned __int64 v35; // r12 _BYTE *v36; // rbx unsigned __int64 v37; // rcx __int64 v38; // rbx void **v39; // rax void *v40; // rcx unsigned __int64 v41; // r12 _BYTE *v42; // rbx unsigned __int64 v43; // rcx __int64 v44; // rbx cocos2d::CCArray *v45; // rax void *v46; // rcx unsigned __int64 v47; // r12 unsigned __int64 v48; // rcx _QWORD *v49; // rbx void *v50; // rcx void **v51; // rax void **v52; // rdx void **v53; // rbx cocos2d::CCTextureCache *v54; // rax void *v55; // rcx size_t v56; // rcx unsigned __int64 v57; // rdx unsigned __int64 v58; // rbx cocos2d::CCArray *v59; // rax void **v60; // rdx void **v61; // r8 void **v62; // rbx cocos2d::CCSpriteFrameCache *v63; // rax unsigned __int64 v64; // rdx void *v65; // rcx __int64 v66; // rdx __int64 v67; // rdx __int64 v68; // rdx __int64 v69; // rcx __int64 v70; // rax void **v71; // rdx size_t v72; // r8 cocos2d::CCSprite *v73; // rdi float v74; // xmm0_4 float v75; // xmm0_4 const char *v76; // rcx __int64 v77; // rbx __int64 v78; // rax __int64 v79; // rbx __int64 v80; // rax void **v81; // rcx struct cocos2d::CCSprite *v82; // rdi __int64 v83; // rbx __int64 v84; // rax char *v85; // rbx int v86; // ecx int v87; // ecx int v88; // ecx int v89; // ecx const char *v90; // rdx int v91; // eax __int64 v92; // rdi cocos2d::CCNode *v93; // rcx cocos2d::CCNode *v94; // rcx __int64 v95; // rdi __int64 v96; // rbx __int64 v97; // rax cocos2d::CCNode *v98; // rdi __int64 v99; // rbx struct cocos2d::CCFiniteTimeAction *v100; // rax struct cocos2d::CCAction *v101; // rax void **v102; // rdx size_t v103; // r8 cocos2d::CCSprite *v104; // rdi float v105; // xmm0_4 float v106; // xmm0_4 void **v107; // rcx __int64 v108; // rbx __int64 v109; // rax __int64 v110; // rcx __int64 *v111; // rdi cocos2d::CCObject *v112; // rbx struct cocos2d::CCMenu *v113; // rdi __int64 v114; // rax __int64 v115; // rbx __int64 v116; // rax __int64 v117; // rdi __int64 v118; // rbx __int64 v119; // rax int v120; // eax cocos2d::CCObject *v121; // rax int v122; // eax cocos2d::CCObject *v123; // rax struct cocos2d::CCMenu *v124; // rdi __int64 v125; // rbx __int64 v126; // rcx cocos2d::CCDirector *v127; // rax float v128; // xmm6_4 __int64 v129; // rcx cocos2d::CCDirector *v130; // rax float v131; // xmm0_4 __int64 v132; // rax __int64 v133; // rcx __int64 v134; // rcx __int64 *v135; // rbx _QWORD *v136; // rcx __int64 v137; // rcx __int16 *v138; // rdx int Stat; // edi void **v140; // rbx __int64 v141; // rdi __int64 v142; // rbx __int64 v143; // rax __int64 v144; // rdi __int64 v145; // rbx __int64 v146; // rax __int128 *v147; // rdx size_t v148; // r8 const char *v149; // rcx struct cocos2d::CCSprite *v150; // rsi __int64 v151; // rax __int64 v152; // rbx __int64 v153; // rax cocos2d::CCParticleSystem *v154; // rdi __int64 v155; // rbx __int64 v156; // rax __int64 v157; // rbx __int64 v158; // rax __int64 v159; // rcx __int64 v160; // rcx __int64 v161; // rdi cocos2d::CCArray *v162; // rdi cocos2d::CCArray *v163; // rsi __int64 v164; // rcx bool UGV; // r15 unsigned int i; // ebx __int64 v167; // rcx struct cocos2d::CCObject *v168; // rax int v169; // ecx cocos2d::CCObject *v170; // rax __int64 v171; // rcx unsigned int v172; // ebx struct cocos2d::CCObject *v173; // r15 int v174; // edi unsigned int v175; // ebx __int64 v176; // rcx char isStoreItemUnlocked; // al bool v178; // r13 __int64 *StoreItem; // r12 cocos2d::CCObject *v180; // rsi char v181; // cl __m128i *v182; // rcx struct cocos2d::CCLabelBMFont *v183; // r13 __int64 v184; // rbx float *v185; // rax __int64 v186; // rax __int128 *v187; // rdx int v188; // ebx size_t v189; // r8 const char *v190; // rcx struct cocos2d::CCSprite *v191; // rdi float v192; // xmm6_4 double v193; // xmm0_8 __int64 v194; // rax __int64 v195; // rbx __int64 v196; // rax const struct cocos2d::CCPoint *v197; // rax cocos2d::CCNode *v198; // rbx __int64 v199; // rdx __int64 v200; // rcx cocos2d::CCArray *v201; // rcx __int64 *v202; // rcx void (__fastcall ***v203)(_QWORD, cocos2d::CCNode *, _QWORD); // rcx __int64 v204; // rax __int16 v205; // [rsp+58h] [rbp-B0h] BYREF char v206; // [rsp+5Ah] [rbp-AEh] void **v207; // [rsp+60h] [rbp-A8h] BYREF void **v208; // [rsp+68h] [rbp-A0h] BYREF __int64 v209; // [rsp+70h] [rbp-98h] cocos2d::CCArray *v210; // [rsp+78h] [rbp-90h] BYREF float v211; // [rsp+80h] [rbp-88h] BYREF float v212; // [rsp+84h] [rbp-84h] void *Src; // [rsp+88h] [rbp-80h] __int16 v214; // [rsp+98h] [rbp-70h] BYREF char v215; // [rsp+9Ah] [rbp-6Eh] int v216; // [rsp+A8h] [rbp-60h] void **v217; // [rsp+B0h] [rbp-58h] BYREF float v218[2]; // [rsp+B8h] [rbp-50h] BYREF float v219; // [rsp+C0h] [rbp-48h] BYREF float v220; // [rsp+C4h] [rbp-44h] void *v221; // [rsp+C8h] [rbp-40h] void *v222; // [rsp+D0h] [rbp-38h] _BYTE v223[16]; // [rsp+D8h] [rbp-30h] BYREF __int128 v224; // [rsp+E8h] [rbp-20h] __int64 v225; // [rsp+F8h] [rbp-10h] __int64 v226; // [rsp+100h] [rbp-8h] void *Block[2]; // [rsp+108h] [rbp+0h] BYREF unsigned __int64 v228; // [rsp+118h] [rbp+10h] unsigned __int64 v229; // [rsp+120h] [rbp+18h] void *v230[2]; // [rsp+128h] [rbp+20h] BYREF __int64 v231; // [rsp+138h] [rbp+30h] unsigned __int64 v232; // [rsp+140h] [rbp+38h] __int64 v233; // [rsp+148h] [rbp+40h] BYREF __int64 v234; // [rsp+150h] [rbp+48h] __int64 v235; // [rsp+158h] [rbp+50h] __int64 v236; // [rsp+160h] [rbp+58h] void *v237[2]; // [rsp+168h] [rbp+60h] BYREF __int64 v238; // [rsp+178h] [rbp+70h] unsigned __int64 v239; // [rsp+180h] [rbp+78h] void *v240[2]; // [rsp+188h] [rbp+80h] BYREF __int64 v241; // [rsp+198h] [rbp+90h] unsigned __int64 v242; // [rsp+1A0h] [rbp+98h] __int128 v243; // [rsp+1A8h] [rbp+A0h] BYREF __int64 v244; // [rsp+1B8h] [rbp+B0h] unsigned __int64 v245; // [rsp+1C0h] [rbp+B8h] __int128 v246; // [rsp+1C8h] [rbp+C0h] BYREF __int64 v247; // [rsp+1D8h] [rbp+D0h] unsigned __int64 v248; // [rsp+1E0h] [rbp+D8h] __m128i v249; // [rsp+1E8h] [rbp+E0h] BYREF unsigned __int64 v250; // [rsp+200h] [rbp+F8h] v216 = a2; result = cocos2d::CCLayer::init((cocos2d::CCLayer *)a1); if ( !result ) return result; v6 = cocos2d::CCDirector::sharedDirector(v5); v7 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 144LL))(v6); cocos2d::CCTouchDispatcher::registerForcePrio(v7, (struct cocos2d::CCObject *)a1, 2, 0); *(_DWORD *)(a1 + 456) = a2; v238 = 14; v239 = 15; strcpy((char *)v237, "shopBG_001.png"); HIBYTE(v237[1]) = 0; *(_OWORD *)v240 = 0; v241 = 0; v242 = 0; v240[0] = sub_14003D460(0x20u); v241 = 17; v8 = 31; v242 = 31; strcpy((char *)v240[0], "storeDesk_001.png"); *(_OWORD *)v230 = 0; v230[0] = sub_14003D460(0x20u); v231 = 16; v232 = 31; strcpy((char *)v230[0], "shopSign_001.png"); sub_1400405A0((void **)(a1 + 464), "GJ_ShopSheet01", 0xEu); v234 = 0; v9 = 8; v235 = 8; v10 = 15; v236 = 15; v11 = 0x33706D2E706F6873LL; v233 = 0x33706D2E706F6873LL; v12 = 0x7FFFFFFFFFFFFFFFLL; switch ( *(_DWORD *)(a1 + 456) ) { case 1: v231 = 17; memmove(v230[0], "shopSign2_001.png", 0x11u); *((_BYTE *)v230[0] + 17) = 0; v235 = 14; memmove(&v233, "secretShop.mp3", 0xEu); BYTE6(v234) = 0; goto LABEL_41; case 2: v231 = 17; memmove(v230[0], "shopSign3_001.png", 0x11u); *((_BYTE *)v230[0] + 17) = 0; v29 = "shop3.ogg"; goto LABEL_40; case 3: sub_1400405A0((void **)(a1 + 464), "GJ_ShopSheet02", 0xEu); v35 = v239; if ( v239 < 0x11 ) { v37 = v239 >> 1; if ( v239 <= 0x7FFFFFFFFFFFFFFFLL - (v239 >> 1) ) { v38 = 31; if ( v239 + v37 > 0x1F ) v38 = v239 + v37; } else { v38 = 0x7FFFFFFFFFFFFFFFLL; } v39 = (void **)sub_14003D460(v38 + 1); v207 = v39; v238 = 17; v239 = v38; *(_OWORD *)v39 = *(_OWORD *)"shopBG_02_001.png"; *((_WORD *)v39 + 8) = (unsigned __int8)aShopbg02001Png[16]; if ( v35 > 0xF ) { v40 = v237[0]; if ( v35 + 1 >= 0x1000 ) { v40 = *((void **)v237[0] - 1); if ( (unsigned __int64)((char *)v237[0] - (char *)v40 - 8) > 0x1F ) goto LABEL_83; } j_j_free(v40); v39 = v207; } v237[0] = v39; } else { v36 = v237[0]; v238 = 17; memmove(v237[0], "shopBG_02_001.png", 0x11u); v36[17] = 0; } v41 = v242; if ( v242 < 0x14 ) { v43 = v242 >> 1; if ( v242 <= 0x7FFFFFFFFFFFFFFFLL - (v242 >> 1) ) { v44 = 31; if ( v242 + v43 > 0x1F ) v44 = v242 + v43; } else { v44 = 0x7FFFFFFFFFFFFFFFLL; } v45 = (cocos2d::CCArray *)sub_14003D460(v44 + 1); v207 = (void **)v45; v241 = 20; v242 = v44; strcpy((char *)v45, "storeDesk_02_001.png"); if ( v41 > 0xF ) { v46 = v240[0]; if ( v41 + 1 >= 0x1000 ) { v46 = *((void **)v240[0] - 1); if ( (unsigned __int64)((char *)v240[0] - (char *)v46 - 8) > 0x1F ) goto LABEL_83; } j_j_free(v46); v45 = (cocos2d::CCArray *)v207; } v240[0] = v45; } else { v42 = v240[0]; v241 = 20; memmove(v240[0], "storeDesk_02_001.png", 0x14u); v42[20] = 0; } v47 = v232; if ( v232 >= 0x11 ) { v231 = 17; memmove(v230[0], "shopSign4_001.png", 0x11u); *((_BYTE *)v230[0] + 17) = 0; v29 = "shop4.mp3"; goto LABEL_40; } v48 = v232 >> 1; if ( v232 <= 0x7FFFFFFFFFFFFFFFLL - (v232 >> 1) ) { if ( v232 + v48 > 0x1F ) v8 = v232 + v48; } else { v8 = 0x7FFFFFFFFFFFFFFFLL; } v49 = sub_14003D460(v8 + 1); v231 = 17; v232 = v8; *(_OWORD *)v49 = *(_OWORD *)"shopSign4_001.png"; *((_WORD *)v49 + 8) = (unsigned __int8)aShopsign4001Pn[16]; if ( v47 > 0xF ) { v50 = v230[0]; if ( v47 + 1 >= 0x1000 ) { v50 = *((void **)v230[0] - 1); if ( (unsigned __int64)((char *)v230[0] - (char *)v50 - 8) > 0x1F ) goto LABEL_83; } j_j_free(v50); } v230[0] = v49; v29 = "shop4.mp3"; goto LABEL_40; } if ( *(_DWORD *)(a1 + 456) != 4 ) goto LABEL_42; sub_1400405A0((void **)(a1 + 464), "GJ_ShopSheet03", 0xEu); v13 = v239; if ( v239 < 0x11 ) { v15 = v239 >> 1; if ( v239 <= 0x7FFFFFFFFFFFFFFFLL - (v239 >> 1) ) { v16 = 31; if ( v15 + v239 > 0x1F ) v16 = v15 + v239; } else { v16 = 0x7FFFFFFFFFFFFFFFLL; } v17 = (void **)sub_14003D460(v16 + 1); v207 = v17; v238 = 17; v239 = v16; *(_OWORD *)v17 = *(_OWORD *)"shopBG_03_001.png"; *((_WORD *)v17 + 8) = (unsigned __int8)aShopbg03001Png[16]; if ( v13 > 0xF ) { v18 = v237[0]; if ( v13 + 1 >= 0x1000 ) { v18 = *((void **)v237[0] - 1); if ( (unsigned __int64)((char *)v237[0] - (char *)v18 - 8) > 0x1F ) goto LABEL_83; } j_j_free(v18); v17 = v207; } v237[0] = v17; } else { v14 = v237[0]; v238 = 17; memmove(v237[0], "shopBG_03_001.png", 0x11u); v14[17] = 0; } v19 = v242; if ( v242 < 0x14 ) { v21 = v242 >> 1; if ( v242 <= 0x7FFFFFFFFFFFFFFFLL - (v242 >> 1) ) { v22 = 31; if ( v242 + v21 > 0x1F ) v22 = v242 + v21; } else { v22 = 0x7FFFFFFFFFFFFFFFLL; } v23 = (cocos2d::CCArray *)sub_14003D460(v22 + 1); v207 = (void **)v23; v241 = 20; v242 = v22; strcpy((char *)v23, "storeDesk_03_001.png"); if ( v19 > 0xF ) { v24 = v240[0]; if ( v19 + 1 >= 0x1000 ) { v24 = *((void **)v240[0] - 1); if ( (unsigned __int64)((char *)v240[0] - (char *)v24 - 8) > 0x1F ) goto LABEL_83; } j_j_free(v24); v23 = (cocos2d::CCArray *)v207; } v240[0] = v23; } else { v20 = v240[0]; v241 = 20; memmove(v240[0], "storeDesk_03_001.png", 0x14u); v20[20] = 0; } v25 = v232; if ( v232 < 0x11 ) { v26 = v232 >> 1; if ( v232 <= 0x7FFFFFFFFFFFFFFFLL - (v232 >> 1) ) { if ( v232 + v26 > 0x1F ) v8 = v232 + v26; } else { v8 = 0x7FFFFFFFFFFFFFFFLL; } v27 = sub_14003D460(v8 + 1); v231 = 17; v232 = v8; *(_OWORD *)v27 = *(_OWORD *)"shopSign5_001.png"; *((_WORD *)v27 + 8) = (unsigned __int8)aShopsign5001Pn[16]; if ( v25 <= 0xF ) goto LABEL_38; v28 = v230[0]; if ( v25 + 1 < 0x1000 || (v28 = *((void **)v230[0] - 1), (unsigned __int64)((char *)v230[0] - (char *)v28 - 8) <= 0x1F) ) { j_j_free(v28); LABEL_38: v230[0] = v27; goto LABEL_39; } LABEL_83: invoke_watson(nullptr, nullptr, nullptr, 0, 0); } v231 = 17; memmove(v230[0], "shopSign5_001.png", 0x11u); *((_BYTE *)v230[0] + 17) = 0; LABEL_39: v29 = "shop5.ogg"; LABEL_40: v235 = 9; memmove(&v233, v29, 9u); BYTE1(v234) = 0; LABEL_41: v10 = v236; v9 = v235; v11 = v233; LABEL_42: v30 = (void **)(a1 + 464); v31 = *(cocos2d::CCArray **)(a1 + 480); v207 = (void **)v31; if ( (unsigned __int64)(0x7FFFFFFFFFFFFFFFLL - (_QWORD)v31) < 4 ) sub_140009D90(v31); Src = (void *)(a1 + 464); if ( *(_QWORD *)(a1 + 488) > 0xFu ) Src = *v30; *(_OWORD *)Block = 0; v228 = 0; v229 = 0; v32 = (unsigned __int64)v31 + 4; v210 = (cocos2d::CCArray *)((char *)v31 + 4); v33 = 15; v34 = Block; v217 = Block; if ( (unsigned __int64)v31 + 4 > 0xF ) { v33 = v32 | 0xF; if ( (v32 | 0xF) <= 0x7FFFFFFFFFFFFFFFLL ) { if ( v33 < 0x16 ) v33 = 22; } else { v33 = 0x7FFFFFFFFFFFFFFFLL; } v34 = (void **)sub_14003D460(v33 + 1); v217 = v34; Block[0] = v34; v31 = (cocos2d::CCArray *)v207; v32 = (unsigned __int64)v210; } v228 = v32; v229 = v33; memcpy(v34, Src, (size_t)v31); v51 = v217; v52 = v207; *(_DWORD *)((char *)v207 + (_QWORD)v217) = *(_DWORD *)".png"; *((_BYTE *)v52 + (_QWORD)v51 + 4) = 0; v53 = Block; if ( v229 > 0xF ) v53 = (void **)Block[0]; v54 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::addImage(v54, (const char *)v53, 0); if ( v229 > 0xF ) { v55 = Block[0]; if ( v229 + 1 >= 0x1000 ) { v55 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v55 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v55); } v56 = *(_QWORD *)(a1 + 480); v217 = (void **)v56; if ( 0x7FFFFFFFFFFFFFFFLL - v56 < 6 ) sub_140009D90(v56); if ( *(_QWORD *)(a1 + 488) > 0xFu ) v30 = (void **)*v30; *(_OWORD *)Block = 0; v228 = 0; v229 = 0; v57 = v56 + 6; v210 = (cocos2d::CCArray *)(v56 + 6); v58 = 15; v59 = (cocos2d::CCArray *)Block; v207 = Block; if ( v56 + 6 > 0xF ) { v58 = v57 | 0xF; if ( (v57 | 0xF) <= 0x7FFFFFFFFFFFFFFFLL ) { if ( v58 < 0x16 ) v58 = 22; } else { v58 = 0x7FFFFFFFFFFFFFFFLL; } v59 = (cocos2d::CCArray *)sub_14003D460(v58 + 1); v207 = (void **)v59; Block[0] = v59; v56 = (size_t)v217; v57 = (unsigned __int64)v210; } v228 = v57; v229 = v58; memcpy(v59, v30, v56); v60 = v207; v61 = v217; *(_DWORD *)((char *)v217 + (_QWORD)v207) = *(_DWORD *)".plist"; strcpy((char *)v61 + (_QWORD)v60 + 4, "st"); v62 = Block; if ( v229 > 0xF ) v62 = (void **)Block[0]; v63 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache( *(unsigned int *)".plist", v60); cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile(v63, (const char *)v62); v64 = v229; if ( v229 > 0xF ) { v65 = Block[0]; if ( v229 + 1 >= 0x1000 ) { v65 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v65 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v65); } LOBYTE(v64) = 1; (*(void (__fastcall **)(__int64, unsigned __int64))(*(_QWORD *)a1 + 992LL))(a1, v64); LOBYTE(v66) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1008LL))(a1, v66); LOBYTE(v67) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 920LL))(a1, v67); LOBYTE(v68) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1024LL))(a1, v68); v70 = cocos2d::CCDirector::sharedDirector(v69); cocos2d::CCDirector::getWinSize(v70, &v211); if ( *(_DWORD *)(a1 + 456) == 2 ) { v71 = v237; if ( v239 > 0xF ) v71 = (void **)v237[0]; v243 = 0; v244 = 0; v245 = 0; v72 = -1; do ++v72; while ( *((_BYTE *)v71 + v72) ); sub_14003D230(&v243, v71, v72); v73 = CCSpriteWithHue::createWithSpriteFrameName((__int64)&v243); Src = v73; sub_14003D310((__int64)&v243); v74 = -110.0; do v74 = v74 + 360.0; while ( v74 < 0.0 ); v75 = (float)(v74 / 360.0) * 6.283185307179586; *((float *)v73 + 150) = v75; CCSpriteWithHue::updateColorMatrix((__int64)v73); v205 = 240; v206 = -16; (**((void (__fastcall ***)(__int64, __int16 *))v73 + 40))((__int64)v73 + 320, &v205); } else { v76 = (const char *)v237; if ( v239 > 0xF ) v76 = (const char *)v237[0]; v73 = cocos2d::CCSprite::createWithSpriteFrameName(v76); Src = v73; } v77 = *(_QWORD *)v73; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v208, 0.0, 0.0); (*(void (__fastcall **)(cocos2d::CCSprite *, __int64))(v77 + 288))(v73, v78); (*(void (__fastcall **)(__int64, cocos2d::CCSprite *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v73, 4294967294LL); (*(void (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v73 + 120LL))(v73); (*(void (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v73 + 136LL))(v73); v79 = *(_QWORD *)v73; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v208, -2.5, -2.5); (*(void (__fastcall **)(cocos2d::CCSprite *, __int64))(v79 + 184))(v73, v80); v81 = v230; if ( v232 > 0xF ) v81 = (void **)v230[0]; v82 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v81); v83 = *(_QWORD *)v82; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v208, (float)(v211 * 0.5) - 70.0, v212 - 38.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v83 + 184))(v82, v84); (*(void (__fastcall **)(__int64, struct cocos2d::CCSprite *))(*(_QWORD *)a1 + 464LL))(a1, v82); v85 = (char *)operator new(0x300u); v208 = (void **)v85; CCAnimatedSprite::CCAnimatedSprite((__int64)v85); *(_QWORD *)v85 = &AnimatedShopKeeper::`vftable'; *((_QWORD *)v85 + 40) = &AnimatedShopKeeper::`vftable'; *((_QWORD *)v85 + 43) = &AnimatedShopKeeper::`vftable'; *(_QWORD *)(v85 + 748) = 0; *((_WORD *)v85 + 378) = 0; *((_QWORD *)v85 + 95) = 0; v86 = v216; *((_DWORD *)v85 + 186) = v216; v87 = v86 - 1; if ( v87 ) { v88 = v87 - 1; if ( v88 ) { v89 = v88 - 1; if ( v89 ) { if ( v89 == 1 ) v90 = "GJShopKeeper5"; else v90 = "GJShopKeeper"; } else { v90 = "GJShopKeeper4"; } } else { v90 = "GJShopKeeper3"; } } else { v90 = "GJShopKeeper2"; } if ( CCAnimatedSprite::initWithType((__int64)v85, (__int64)v90, nullptr, 0) ) { *((_DWORD *)v85 + 188) = (int)(float)((float)((float)((float)rand() / 32767.0) * 5.0) + 10.0); v91 = rand(); *((_DWORD *)v85 + 187) = (int)(float)((float)((float)((float)v91 / 32767.0) + (float)((float)v91 / 32767.0)) + 1.0); v92 = *((_QWORD *)v85 + 83); SpriteAnimationManager::overridePrio(v92); v93 = *(cocos2d::CCNode **)(*(_QWORD *)(v92 + 320) + 688LL); if ( v93 ) cocos2d::CCNode::stopAllActions(v93); v94 = *(cocos2d::CCNode **)(*(_QWORD *)(v92 + 320) + 680LL); if ( v94 ) cocos2d::CCNode::stopAllActions(v94); cocos2d::CCObject::autorelease((cocos2d::CCObject *)v85); } else { (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v85 + 8LL))(v85, 1); v85 = nullptr; } *(_QWORD *)(a1 + 520) = v85; (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v85, 3); v95 = **(_QWORD **)(a1 + 520); v96 = *(_QWORD *)(a1 + 520); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v208, (float)((float)(v211 * 0.5) + 100.0) + 0.0, 230.0); (*(void (__fastcall **)(__int64, __int64))(v95 + 184))(v96, v97); v98 = *(cocos2d::CCNode **)(a1 + 520); v99 = cocos2d::CCCallFunc::create(v98, AnimatedShopKeeper::startAnimating); v100 = cocos2d::CCDelayTime::create(0.1); v101 = cocos2d::CCSequence::create(v100, v99, 0); cocos2d::CCNode::runAction(v98, v101); if ( *(_DWORD *)(a1 + 456) == 2 ) { v102 = v240; if ( v242 > 0xF ) v102 = (void **)v240[0]; *(_OWORD *)Block = 0; v228 = 0; v229 = 0; v103 = -1; do ++v103; while ( *((_BYTE *)v102 + v103) ); sub_14003D230(Block, v102, v103); v104 = CCSpriteWithHue::createWithSpriteFrameName((__int64)Block); v207 = (void **)v104; sub_14003D310((__int64)Block); v105 = -120.0; do v105 = v105 + 360.0; while ( v105 < 0.0 ); v106 = (float)(v105 / 360.0) * 6.283185307179586; *((float *)v104 + 150) = v106; CCSpriteWithHue::updateColorMatrix((__int64)v104); } else { v107 = v240; if ( v242 > 0xF ) v107 = (void **)v240[0]; v104 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v107); v207 = (void **)v104; } (*(void (__fastcall **)(__int64, cocos2d::CCSprite *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v104, 1); v108 = *(_QWORD *)v104; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v208, v211 * 0.5, 95.0); (*(void (__fastcall **)(cocos2d::CCSprite *, __int64))(v108 + 184))(v104, v109); (*(void (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v104 + 120LL))(v104); if ( v216 != 1 ) { if ( v216 == 3 ) { v205 = -20561; v206 = -81; (**((void (__fastcall ***)(char *, __int16 *))Src + 40))((char *)Src + 320, &v205); goto LABEL_163; } if ( v216 ) { if ( v216 == 2 ) { v117 = cocos2d::CCMenu::create(v110); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v117, 0xFFFFFFFFLL); v118 = *(_QWORD *)v117; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v208, (float)(v211 - 40.0) - 0.0, v212 - 60.0); (*(void (__fastcall **)(__int64, __int64))(v118 + 184))(v117, v119); v120 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("communityCreditsBtn_001.png"); v121 = CCMenuItemSpriteExtra::create(v120, 0, a1, (__int64)GJShopLayer::onCommunityCredits); *((_DWORD *)v121 + 93) = 1067030938; (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v117 + 464LL))(v117, v121); } goto LABEL_163; } v111 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName("plushies_001.png"); (*(void (__fastcall **)(__int64 *))(*v111 + 160))(v111); v208 = (void **)operator new(0x208u); v112 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v208); if ( v112 ) { if ( CCMenuItemSpriteExtra::init((__int64 *)v112, v111, 0, a1, (__int64)VirtualRowSource::unmountVirtualRow) ) { cocos2d::CCObject::autorelease(v112); LABEL_160: *((_WORD *)v112 + 204) = 256; v113 = cocos2d::CCMenu::createWithItem(v112); (*(void (__fastcall **)(__int64, struct cocos2d::CCMenu *, _QWORD))(*(_QWORD *)a1 + 456LL))(a1, v113, 0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v208, -130.0, 120.0); v115 = v114; v116 = (*((__int64 (__fastcall **)(void **))*v207 + 25))(v207); cocos2d::CCPoint::operator+(v116, &v210, v115); (*(void (__fastcall **)(struct cocos2d::CCMenu *, cocos2d::CCArray **))(*(_QWORD *)v113 + 184LL))(v113, &v210); (*(void (__fastcall **)(struct cocos2d::CCMenu *, _QWORD))(*(_QWORD *)v113 + 1040LL))(v113, 0); goto LABEL_163; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v112 + 8LL))(v112, 1); } v112 = nullptr; goto LABEL_160; } v205 = -256; v206 = -1; (**((void (__fastcall ***)(char *, __int16 *))Src + 40))((char *)Src + 320, &v205); v205 = -256; v206 = -1; (**((void (__fastcall ***)(__int64, __int16 *))v104 + 40))((__int64)v104 + 320, &v205); LABEL_163: v122 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_03_001.png"); v123 = CCMenuItemSpriteExtra::create(v122, 0, a1, (__int64)GJShopLayer::onBack); v210 = v123; *((_DWORD *)v123 + 93) = 1070386381; v124 = cocos2d::CCMenu::create(v123, 0); (*(void (__fastcall **)(__int64, struct cocos2d::CCMenu *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v124, 1); v125 = *(_QWORD *)v124; v127 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v126); v128 = cocos2d::CCDirector::getScreenTop(v127) - 23.0; v130 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v129); v131 = cocos2d::CCDirector::getScreenLeft(v130) + 24.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v208, v131, v128); (*(void (__fastcall **)(struct cocos2d::CCMenu *, __int64))(v125 + 184))(v124, v132); if ( *(_BYTE *)(cocos2d::CCApplication::sharedApplication(v133) + 209) ) GameToolbox::addBackButton(a1, (__int64)v210); v208 = Block; *(_OWORD *)Block = 0; v228 = 0; v229 = 0; v135 = &v233; if ( v10 > 0xF ) v135 = (__int64 *)v11; if ( v9 > 0x7FFFFFFFFFFFFFFFLL ) sub_140009D90(v134); if ( v9 > 0xF ) { if ( (v9 | 0xF) <= 0x7FFFFFFFFFFFFFFFLL ) { v12 = v9 | 0xF; if ( (v9 | 0xF) < 0x16 ) v12 = 22; } Block[0] = sub_14003D460(v12 + 1); v228 = v9; v229 = v12; memcpy(Block[0], v135, v9 + 1); } else { v228 = v9; v229 = 15; *(_OWORD *)Block = *(_OWORD *)v135; } v136 = (_QWORD *)qword_14090BF60; if ( !qword_14090BF60 ) { v210 = (cocos2d::CCArray *)operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v210); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v136 = (_QWORD *)qword_14090BF60; } FMODAudioEngine::playMusic(v136, (__int64)Block, 1, 0.0); v137 = qword_14090BFE0; if ( *(_DWORD *)(a1 + 456) == 4 ) { if ( !qword_14090BFE0 ) { v208 = (void **)operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v208); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v137 = qword_14090BFE0; } v138 = &word_14075A858; } else { if ( !qword_14090BFE0 ) { v208 = (void **)operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v208); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v137 = qword_14090BFE0; } v138 = &word_140737D98; } Stat = GameStatsManager::getStat(v137, v138); v140 = (void **)operator new(0x238u); v208 = v140; cocos2d::CCLabelBMFont::CCLabelBMFont((cocos2d::CCLabelBMFont *)v140); *v140 = &CCCounterLabel::`vftable'; v140[40] = &CCCounterLabel::`vftable'; v140[45] = &CCCounterLabel::`vftable'; v140[46] = &CCCounterLabel::`vftable'; v140[67] = nullptr; *((_DWORD *)v140 + 136) = 0; *((_BYTE *)v140 + 548) = 0; *((_DWORD *)v140 + 138) = 10; *((_BYTE *)v140 + 556) = 0; *((_DWORD *)v140 + 140) = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v208, (const struct cocos2d::CCPoint *)&unk_1409099C0); if ( (unsigned __int8)cocos2d::CCLabelBMFont::initWithString(v140, " ", &qword_140704F78) ) { *((_DWORD *)v140 + 140) = 0; *((_DWORD *)v140 + 135) = Stat; *((_DWORD *)v140 + 136) = Stat; CCCounterLabel::updateString((__int64)v140); cocos2d::CCObject::autorelease((cocos2d::CCObject *)v140); } else { (*((void (__fastcall **)(void **, __int64))*v140 + 1))(v140, 1); v140 = nullptr; } *(_QWORD *)(a1 + 440) = v140; (*(void (__fastcall **)(__int64, void **, __int64))(*(_QWORD *)a1 + 456LL))(a1, v140, 3); v141 = **(_QWORD **)(a1 + 440); v142 = *(_QWORD *)(a1 + 440); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v208, (float)(v211 - 34.0) - 0.0, v212 - 15.0); (*(void (__fastcall **)(__int64, __int64))(v141 + 184))(v142, v143); v144 = **(_QWORD **)(a1 + 440); v145 = *(_QWORD *)(a1 + 440); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v208, 1.0, 0.5); (*(void (__fastcall **)(__int64, __int64))(v144 + 288))(v145, v146); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 440) + 160LL))(*(_QWORD *)(a1 + 440)); v147 = &xmmword_14071BE38; if ( *(_DWORD *)(a1 + 456) == 4 ) v147 = (__int128 *)"currencyDiamondIcon_001.png"; v246 = 0; v247 = 0; v248 = 0; v148 = -1; do ++v148; while ( *((_BYTE *)v147 + v148) ); sub_14003D230(&v246, v147, v148); v149 = (const char *)&v246; if ( v248 > 0xF ) v149 = (const char *)v246; v150 = cocos2d::CCSprite::createWithSpriteFrameName(v149); (*(void (__fastcall **)(__int64, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v150, 3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v208, 13.0, -0.5); v152 = v151; v153 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 440) + 200LL))(*(_QWORD *)(a1 + 440)); cocos2d::CCPoint::operator+(v153, &v210, v152); (*(void (__fastcall **)(struct cocos2d::CCSprite *, cocos2d::CCArray **))(*(_QWORD *)v150 + 184LL))(v150, &v210); v154 = cocos2d::CCParticleSystemQuad::create("keyEffect.plist", 0); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v154 + 1496LL))(v154, 8); *(__m128i *)Block = _mm_load_si128((const __m128i *)&xmmword_140836BC0); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, void **))(*(_QWORD *)v154 + 1352LL))(v154, Block); *(__m128i *)Block = _mm_load_si128((const __m128i *)&xmmword_140836AB0); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, void **))(*(_QWORD *)v154 + 1384LL))(v154, Block); *(_OWORD *)Block = 0; (*(void (__fastcall **)(cocos2d::CCParticleSystem *, void **))(*(_QWORD *)v154 + 1368LL))(v154, Block); *(_OWORD *)Block = 0; (*(void (__fastcall **)(cocos2d::CCParticleSystem *, void **))(*(_QWORD *)v154 + 1400LL))(v154, Block); (*(void (__fastcall **)(cocos2d::CCParticleSystem *))(*(_QWORD *)v154 + 968LL))(v154); (*(void (__fastcall **)(cocos2d::CCParticleSystem *))(*(_QWORD *)v154 + 984LL))(v154); v155 = *(_QWORD *)v154; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v207, 12.0, 10.0); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(v155 + 952))(v154, v156); (*(void (__fastcall **)(__int64, cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v154, 100); v157 = *(_QWORD *)v154; v158 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v150 + 200LL))(v150); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(v157 + 184))(v154, v158); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v154 + 1528LL))(v154, 2); cocos2d::CCParticleSystem::resetSystem(v154); v207 = (void **)cocos2d::CCArray::create(v159); v161 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v208 = (void **)operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v208); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v161 = qword_14090BFE0; } v162 = *(cocos2d::CCArray **)(v161 + 520); v163 = (cocos2d::CCArray *)cocos2d::CCArray::create(v160); v208 = (void **)v163; v164 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v210 = (cocos2d::CCArray *)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v210); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v164 = qword_14090BFD0; } UGV = GameManager::getUGV(v164, &word_14070D040); for ( i = 0; i < cocos2d::CCArray::count(v162); ++i ) { v168 = cocos2d::CCArray::objectAtIndex(v162, i); v169 = *(_DWORD *)(a1 + 456); if ( v169 == *((_DWORD *)v168 + 92) && (v169 != 1 || UGV || *((_DWORD *)v168 + 80) - *((_DWORD *)v168 + 81) != 20) ) cocos2d::CCArray::addObject(v163, v168); } v170 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v167); *(_QWORD *)(a1 + 448) = v170; cocos2d::CCObject::retain(v170); cocos2d::CCSprite::createWithSpriteFrameName("playerSquare_001.png"); v210 = (cocos2d::CCArray *)cocos2d::CCArray::create(v171); v172 = 0; LODWORD(Src) = 0; if ( cocos2d::CCArray::count(v163) ) { do { v173 = cocos2d::CCArray::objectAtIndex(v163, v172); v174 = *((_DWORD *)v173 + 83) - *((_DWORD *)v173 + 84); v175 = *((_DWORD *)v173 + 86) - *((_DWORD *)v173 + 87); v224 = 0; v225 = 0; v226 = 15; LOBYTE(v224) = 0; v176 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v221 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v221); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v176 = qword_14090BFE0; } isStoreItemUnlocked = GameStatsManager::isStoreItemUnlocked(v176); LOBYTE(v209) = isStoreItemUnlocked; v178 = v175 - 8 > 1 && v175 != 1; StoreItem = (__int64 *)GJItemIcon::createStoreItem(v175, v174, isStoreItemUnlocked); (*(void (__fastcall **)(__int64 *))(*StoreItem + 160))(StoreItem); v222 = operator new(0x208u); v180 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v222); if ( v180 ) { if ( CCMenuItemSpriteExtra::init((__int64 *)v180, StoreItem, 0, a1, (__int64)GJShopLayer::onSelectItem) ) { cocos2d::CCObject::autorelease(v180); goto LABEL_215; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v180 + 8LL))(v180, 1); } v180 = nullptr; LABEL_215: *((_DWORD *)v180 + 93) = 0x40000000; cocos2d::CCArray::addObject((cocos2d::CCArray *)v207, v180); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v180 + 64LL))( v180, (unsigned int)(*((_DWORD *)v173 + 80) - *((_DWORD *)v173 + 81))); (*(void (__fastcall **)(__int64 *, _QWORD))(*StoreItem + 64))(StoreItem, v175); if ( v178 ) cocos2d::CCArray::addObject(v210, v180); if ( !(_BYTE)v209 ) { GameToolbox::pointsToString(&v249, *((_DWORD *)v173 + 89) - *((_DWORD *)v173 + 90)); v182 = &v249; if ( v250 > 0xF ) v182 = (__m128i *)v249.m128i_i64[0]; v183 = cocos2d::CCLabelBMFont::create(v182->m128i_i8, (const char *)&qword_140704F78); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCLabelBMFont *))(*StoreItem + 464))(StoreItem, v183); v184 = *(_QWORD *)v183; v185 = (float *)(*(__int64 (__fastcall **)(__int64 *))(*StoreItem + 320))(StoreItem); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v223, (float)(*v185 * 0.5) - 4.0, -6.5); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v184 + 184))(v183, v186); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v183 + 160LL))(v183); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v183 + 64LL))(v183, 1234); v187 = &xmmword_14071BE38; v188 = v216; if ( v216 == 4 ) v187 = (__int128 *)"currencyDiamondIcon_001.png"; v243 = 0; v244 = 0; v245 = 0; v189 = -1; do ++v189; while ( *((_BYTE *)v187 + v189) ); sub_14003D230(&v243, v187, v189); v190 = (const char *)&v243; if ( v245 > 0xF ) v190 = (const char *)v243; v191 = cocos2d::CCSprite::createWithSpriteFrameName(v190); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCSprite *))(*StoreItem + 464))(StoreItem, v191); v192 = *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v183 + 320LL))(v183) * 0.5; v193 = (*(double (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v183 + 168LL))(v183); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)Block, (float)((float)(*(float *)&v193 * v192) + 6.0) + (float)(v188 == 4), -0.5); v195 = v194; v196 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v183 + 200LL))(v183); cocos2d::CCPoint::operator+(v196, &v217, v195); (*(void (__fastcall **)(struct cocos2d::CCSprite *, void ***))(*(_QWORD *)v191 + 184LL))(v191, &v217); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v191 + 160LL))(v191); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(*(_QWORD *)v191 + 64LL))(v191, 1234); sub_14003D310((__int64)&v243); sub_14003D310((__int64)&v249); goto LABEL_240; } (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v180 + 936LL))(v180, 0); switch ( *(_DWORD *)(a1 + 456) ) { case 1: v205 = 7690; goto LABEL_229; case 2: v205 = 5665; v181 = 66; break; case 3: v205 = 5140; v181 = 40; break; case 4: v205 = 7700; v181 = 50; break; case 5: v205 = 12850; v181 = 50; break; default: v205 = 7740; LABEL_229: v181 = 20; break; } v214 = v205; v215 = v181; GJItemIcon::darkenStoreItem((__int64)StoreItem, (__int64)&v214); LABEL_240: cocos2d::CCDictionary::setObject( *(cocos2d::CCDictionary **)(a1 + 448), v180, *((_DWORD *)v173 + 80) - *((_DWORD *)v173 + 81)); LODWORD(Src) = (_DWORD)Src + 1; v172 = (unsigned int)Src; v163 = (cocos2d::CCArray *)v208; } while ( v172 < cocos2d::CCArray::count((cocos2d::CCArray *)v208) ); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v218, v211 * 0.5, 93.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)Block, (const struct cocos2d::CCPoint *)v218); v198 = ListButtonBar::create((int)v207, v197, 4, 2, 1103626240, 1097859072, 1114636288, 1130168320); (*(void (__fastcall **)(__int64, cocos2d::CCNode *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v198, 100); *((_BYTE *)v198 + 344) = 1; *(_DWORD *)(*((_QWORD *)v198 + 40) + 540LL) = 1058642330; LOBYTE(v199) = 1; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)v198 + 40) + 920LL))(*((_QWORD *)v198 + 40), v199); v200 = *((_QWORD *)v198 + 40); if ( *(_BYTE *)(v200 + 456) ) v201 = *(cocos2d::CCArray **)(v200 + 448); else v201 = *(cocos2d::CCArray **)(v200 + 480); cocos2d::CCArray::count(v201); v202 = *((__int64 **)v198 + 40); if ( *((_BYTE *)v198 + 344) ) { BoomScrollLayer::moveToPage(v202, 0); } else { BoomScrollLayer::instantMoveToPage((__int64)v202, -1); BoomScrollLayer::instantMoveToPage(*((_QWORD *)v198 + 40), 0); } v203 = *((void (__fastcall ****)(_QWORD, cocos2d::CCNode *, _QWORD))v198 + 42); if ( v203 ) (**v203)(v203, v198, 0); *(_BYTE *)(*((_QWORD *)v198 + 40) + 608LL) = 1; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v219, 406.0, 200.0); cocos2d::CCRect::CCRect( (cocos2d::CCRect *)v223, v218[0] - (float)(v219 * 0.5), v218[1] - (float)(v220 * 0.5), v219, v220); cocos2d::CCRect::operator=(*((_QWORD *)v198 + 40) + 612LL, v204); sub_14003D310((__int64)&v246); sub_14003D310((__int64)&v233); sub_14003D310((__int64)v230); sub_14003D310((__int64)v240); sub_14003D310((__int64)v237); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source