// // PlayerObject::init from 0x1404e49e0 to 0x1404e60cc (5868 bytes) // // 2 xrefs: // > PlayerObject::create @ 0x1404e499e // > @ 0x140929bf4 // // 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:33:11 +0000 // // Hidden C++ exception states: #wind=24 __int64 __fastcall PlayerObject::init(cocos2d::CCSprite *a1, int a2, int a3, __int64 a4, __int64 a5, char a6) { int v8; // eax unsigned int v9; // r15d int v10; // eax unsigned int v11; // r12d __int64 v12; // rcx unsigned int v13; // r9d __int64 *v14; // rcx cocos2d::CCString *v15; // rax const char *CString; // rax size_t v17; // r14 size_t v18; // r8 cocos2d::CCString *v19; // rax const char *v20; // rax size_t v21; // r8 const char *v22; // rdx unsigned __int8 v23; // bl __int64 v24; // rdx __int64 v25; // rcx __int64 v26; // rax __int64 v27; // rcx __int64 v28; // rcx __int64 v29; // rcx __int64 v30; // rcx __int64 v31; // rbx __int64 v32; // rcx bool v33; // bl cocos2d::CCString *v34; // rax __int64 v35; // rbx __int64 v36; // rcx bool v37; // bl cocos2d::CCString *v38; // rax __int64 v39; // rbx __int64 v40; // rcx bool v41; // bl cocos2d::CCString *v42; // rax __int64 v43; // rcx cocos2d::CCObject *v44; // rax const char *v45; // rcx struct cocos2d::CCSprite *v46; // rax const char *v47; // rcx struct cocos2d::CCSprite *v48; // rax __int64 v49; // rdi __int64 v50; // rbx __int64 v51; // rax const char *v52; // rcx struct cocos2d::CCSprite *v53; // rax __int64 v54; // rdi __int64 v55; // rbx __int64 v56; // rax cocos2d::CCString *v57; // rax const char *v58; // rax size_t v59; // r8 cocos2d::CCString *v60; // rax const char *v61; // rax size_t v62; // r8 cocos2d::CCString *v63; // rax const char *v64; // rax size_t v65; // r8 const char *v66; // rcx struct cocos2d::CCSprite *v67; // rax const char *v68; // rcx struct cocos2d::CCSprite *v69; // rax __int64 v70; // rdi __int64 v71; // rbx __int64 v72; // rax const char *v73; // rcx struct cocos2d::CCSprite *v74; // rax __int64 v75; // rdi __int64 v76; // rbx __int64 v77; // rax const char *v78; // rcx struct cocos2d::CCSprite *v79; // rax __int64 v80; // rdi __int64 v81; // rbx __int64 v82; // rax cocos2d::CCString *v83; // rax const char *v84; // rax size_t v85; // r8 __int64 v86; // rax __int64 v87; // rax __int64 v88; // rax _DWORD *v89; // rbx _DWORD *v90; // rbx _DWORD *v91; // rbx __int64 v92; // rdi __int64 v93; // rbx __int64 v94; // rax __int64 v95; // rdi __int64 v96; // rbx __int64 v97; // rax __int64 v98; // rdi __int64 v99; // rbx __int64 v100; // rax __int64 v101; // rdx __int64 v102; // rdx __int64 v103; // rcx cocos2d::CCObject *v104; // rax __int64 v105; // rcx cocos2d::CCObject *v106; // rax __int64 v107; // rcx cocos2d::CCObject *v108; // rax __int64 v109; // rcx cocos2d::CCObject *v110; // rax __int64 v111; // rcx cocos2d::CCObject *v112; // rax __int64 v113; // rcx cocos2d::CCObject *v114; // rax cocos2d::CCNode *v115; // rbx struct cocos2d::CCParticleSystemQuad *v116; // rax struct cocos2d::CCParticleSystemQuad *v117; // rax struct cocos2d::CCParticleSystemQuad *v118; // rax struct cocos2d::CCParticleSystemQuad *v119; // rax struct cocos2d::CCParticleSystemQuad *v120; // rax __int64 v121; // rdi __int64 v122; // rbx __int64 v123; // rax struct cocos2d::CCParticleSystemQuad *v124; // rax __int64 *v125; // rcx __int64 v126; // rbx __int64 *v127; // rcx __int64 v128; // rbx __int64 v129; // rdi __int64 v130; // rbx __int64 v131; // rax __int64 *v132; // rcx __int64 v133; // rbx __int64 *v134; // rcx __int64 v135; // rbx __int64 *v136; // rcx __int64 v137; // rbx __int64 *v138; // rcx __int64 v139; // rbx __int64 *v140; // rcx __int64 v141; // rbx __m128i si128; // xmm7 __m128i v143; // xmm6 int i; // edi struct cocos2d::CCObject *v145; // rbx struct cocos2d::CCParticleSystemQuad *v146; // rax struct cocos2d::CCParticleSystemQuad *v147; // rax struct cocos2d::CCParticleSystemQuad *v148; // rax cocos2d::CCString *v149; // rax const char *v150; // rax size_t v151; // r8 __int64 v152; // rax struct cocos2d::CCSprite *v153; // rax __int64 v154; // rdi __int64 v155; // rbx __int64 v156; // rax __int64 v157; // rax struct cocos2d::CCSprite *v158; // rdi __int64 v159; // rbx __int64 v160; // rax __int64 v161; // rdx const char *v162; // rcx struct cocos2d::CCSprite *v163; // rax cocos2d::CCString *v164; // rax const char *v165; // rax const char *v166; // rcx struct cocos2d::CCSprite *v167; // rax __int64 v168; // rcx __int64 v169; // rcx __int64 v170; // rcx __int64 v172; // [rsp+20h] [rbp-E0h] BYREF __m128i v173; // [rsp+28h] [rbp-D8h] BYREF __int64 v174; // [rsp+38h] [rbp-C8h] __int64 v175; // [rsp+40h] [rbp-C0h] __int128 v176; // [rsp+48h] [rbp-B8h] BYREF __int64 v177; // [rsp+58h] [rbp-A8h] unsigned __int64 v178; // [rsp+60h] [rbp-A0h] __int128 v179; // [rsp+68h] [rbp-98h] BYREF __int64 v180; // [rsp+78h] [rbp-88h] unsigned __int64 v181; // [rsp+80h] [rbp-80h] __int128 v182; // [rsp+88h] [rbp-78h] BYREF __int64 v183; // [rsp+98h] [rbp-68h] unsigned __int64 v184; // [rsp+A0h] [rbp-60h] __int128 v185; // [rsp+A8h] [rbp-58h] BYREF __int64 v186; // [rsp+B8h] [rbp-48h] unsigned __int64 v187; // [rsp+C0h] [rbp-40h] __int128 v188; // [rsp+C8h] [rbp-38h] BYREF __int64 v189; // [rsp+D8h] [rbp-28h] unsigned __int64 v190; // [rsp+E0h] [rbp-20h] __int128 v191; // [rsp+E8h] [rbp-18h] BYREF __int64 v192; // [rsp+F8h] [rbp-8h] unsigned __int64 v193; // [rsp+100h] [rbp+0h] _QWORD v194[4]; // [rsp+108h] [rbp+8h] BYREF v8 = 485; if ( a2 < 485 ) v8 = a2; v9 = 1; if ( v8 > 1 ) v9 = v8; v10 = 169; if ( a3 < 169 ) v10 = a3; v11 = 1; if ( v10 > 1 ) v11 = v10; v12 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v172 = (__int64)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v172); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v12 = qword_14090BFD0; } v13 = *(_DWORD *)(v12 + 1272); *(_DWORD *)(v12 + 1272) = v13 + 1; *((_DWORD *)a1 + 767) = v13; GameManager::loadIcon((__int64 *)v12, v9, 0, v13); v14 = (__int64 *)qword_14090BFD0; if ( !qword_14090BFD0 ) { v172 = (__int64)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v172); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v14 = (__int64 *)qword_14090BFD0; } GameManager::loadIcon(v14, v11, 1u, *((_DWORD *)a1 + 767)); v15 = cocos2d::CCString::createWithFormat("player_%02d_001.png", v9); CString = cocos2d::CCString::getCString(v15); v182 = 0; v183 = 0; v184 = 0; v17 = -1; v18 = -1; do ++v18; while ( CString[v18] ); sub_14003D230(&v182, CString, v18); v19 = cocos2d::CCString::createWithFormat("player_%02d_2_001.png", v9); v20 = cocos2d::CCString::getCString(v19); v179 = 0; v180 = 0; v181 = 0; v21 = -1; do ++v21; while ( v20[v21] ); sub_14003D230(&v179, v20, v21); v22 = (const char *)&v182; if ( v184 > 0xF ) v22 = (const char *)v182; *((_DWORD *)a1 + 7) = 13; if ( cocos2d::CCSprite::initWithSpriteFrameName(a1, v22) ) { GameObject::commonSetup((__int64)a1); *((_BYTE *)a1 + 313) = 0; *((_BYTE *)a1 + 559) = 1; v26 = cocos2d::CCNode::create(v25, v24); *((_QWORD *)a1 + 171) = v26; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v26 + 312LL))(v26, &unk_14090B440); (*(void (__fastcall **)(cocos2d::CCSprite *, _QWORD))(*(_QWORD *)a1 + 464LL))(a1, *((_QWORD *)a1 + 171)); sub_1400405A0((void **)a1 + 379, &dword_1407D3DB8, 3u); v27 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v172 = (__int64)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v172); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v27 = qword_14090BFD0; } *((_BYTE *)a1 + 2098) = GameManager::getGameVariable(v27, "0096"); v28 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v172 = (__int64)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v172); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v28 = qword_14090BFD0; } *((_BYTE *)a1 + 2099) = GameManager::getGameVariable(v28, "0100"); v29 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v172 = (__int64)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v172); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v29 = qword_14090BFD0; } *((_BYTE *)a1 + 3064) = GameManager::getGameVariable(v29, "0123"); v31 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v172 = (__int64)operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480(v172); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v31 = qword_14090BFE0; } if ( (unsigned __int8)GameStatsManager::isItemUnlocked(v30, 0xCu, 0x12u) ) { GameStatsManager::getItemKey(v32, &v173, 0x12u, 0xCu); v34 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v31 + 896), &v173); v33 = cocos2d::CCString::boolValue(v34); sub_14003D310((__int64)&v173); } else { v33 = 0; } *((_BYTE *)a1 + 3145) = v33; v35 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v172 = (__int64)operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480(v172); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v35 = qword_14090BFE0; } if ( (unsigned __int8)GameStatsManager::isItemUnlocked(v32, 0xCu, 0x13u) ) { GameStatsManager::getItemKey(v36, v194, 0x13u, 0xCu); v38 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v35 + 896), v194); v37 = cocos2d::CCString::boolValue(v38); sub_14003D310((__int64)v194); } else { v37 = 0; } *((_BYTE *)a1 + 3146) = v37; v39 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v172 = (__int64)operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480(v172); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v39 = qword_14090BFE0; } if ( (unsigned __int8)GameStatsManager::isItemUnlocked(v36, 0xCu, 0x14u) ) { GameStatsManager::getItemKey(v40, &v173, 0x14u, 0xCu); v42 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v39 + 896), &v173); v41 = cocos2d::CCString::boolValue(v42); sub_14003D310((__int64)&v173); } else { v41 = 0; } *((_BYTE *)a1 + 3147) = v41; *((_DWORD *)a1 + 392) = v9; *((_DWORD *)a1 + 461) = 0; *((_DWORD *)a1 + 639) = 1063675494; *((float *)a1 + 749) = (float)((float)((float)rand() / 32767.0) * 10.0) + 5.0; *((_QWORD *)a1 + 389) = a4; *((_QWORD *)a1 + 390) = a5; *((_BYTE *)a1 + 2028) = a6; *((_BYTE *)a1 + 2029) = a6 ^ 1; v44 = (cocos2d::CCObject *)cocos2d::CCArray::create(v43); *((_QWORD *)a1 + 328) = v44; cocos2d::CCObject::retain(v44); (*(void (__fastcall **)(cocos2d::CCSprite *, void *))(*(_QWORD *)a1 + 992LL))(a1, &unk_14090B430); v45 = (const char *)&v182; if ( v184 > 0xF ) v45 = (const char *)v182; v46 = cocos2d::CCSprite::createWithSpriteFrameName(v45); *((_QWORD *)a1 + 232) = v46; (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, __int64))(**((_QWORD **)a1 + 171) + 456LL))( *((_QWORD *)a1 + 171), v46, 1); v47 = (const char *)&v179; if ( v181 > 0xF ) v47 = (const char *)v179; v48 = cocos2d::CCSprite::createWithSpriteFrameName(v47); *((_QWORD *)a1 + 233) = v48; (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, __int64))(**((_QWORD **)a1 + 232) + 456LL))( *((_QWORD *)a1 + 232), v48, 0xFFFFFFFFLL); v49 = **((_QWORD **)a1 + 233); v50 = *((_QWORD *)a1 + 233); cocos2d::CCNode::convertToNodeSpace(*((_QWORD *)a1 + 232), &v172, &unk_14090B428); (*(void (__fastcall **)(__int64, __int64))(v49 + 184))(v50, v51); v52 = (const char *)&v179; if ( v181 > 0xF ) v52 = (const char *)v179; v53 = cocos2d::CCSprite::createWithSpriteFrameName(v52); *((_QWORD *)a1 + 234) = v53; (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, __int64))(**((_QWORD **)a1 + 232) + 456LL))( *((_QWORD *)a1 + 232), v53, 2); v54 = **((_QWORD **)a1 + 234); v55 = *((_QWORD *)a1 + 234); cocos2d::CCNode::convertToNodeSpace(*((_QWORD *)a1 + 232), &v172, &unk_14090B428); (*(void (__fastcall **)(__int64, __int64))(v54 + 184))(v55, v56); v57 = cocos2d::CCString::createWithFormat("player_%02d_extra_001.png", v9); v58 = cocos2d::CCString::getCString(v57); v173 = 0; v174 = 0; v175 = 0; v59 = -1; do ++v59; while ( v58[v59] ); sub_14003D230(&v173, v58, v59); PlayerObject::updatePlayerSpriteExtra(a1, &v173); v60 = cocos2d::CCString::createWithFormat("ship_%02d_001.png", v11); v61 = cocos2d::CCString::getCString(v60); v191 = 0; v192 = 0; v193 = 0; v62 = -1; do ++v62; while ( v61[v62] ); sub_14003D230(&v191, v61, v62); v63 = cocos2d::CCString::createWithFormat("ship_%02d_2_001.png", v11); v64 = cocos2d::CCString::getCString(v63); v176 = 0; v177 = 0; v178 = 0; v65 = -1; do ++v65; while ( v64[v65] ); sub_14003D230(&v176, v64, v65); v66 = (const char *)&v191; if ( v193 > 0xF ) v66 = (const char *)v191; v67 = cocos2d::CCSprite::createWithSpriteFrameName(v66); *((_QWORD *)a1 + 236) = v67; (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, __int64))(**((_QWORD **)a1 + 171) + 456LL))( *((_QWORD *)a1 + 171), v67, 2); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)a1 + 236) + 336LL))(*((_QWORD *)a1 + 236), 0); v68 = (const char *)&v176; if ( v178 > 0xF ) v68 = (const char *)v176; v69 = cocos2d::CCSprite::createWithSpriteFrameName(v68); *((_QWORD *)a1 + 237) = v69; (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, __int64))(**((_QWORD **)a1 + 236) + 456LL))( *((_QWORD *)a1 + 236), v69, 0xFFFFFFFFLL); v70 = **((_QWORD **)a1 + 237); v71 = *((_QWORD *)a1 + 237); cocos2d::CCNode::convertToNodeSpace(*((_QWORD *)a1 + 236), &v172, &unk_14090B428); (*(void (__fastcall **)(__int64, __int64))(v70 + 184))(v71, v72); v73 = (const char *)&v176; if ( v178 > 0xF ) v73 = (const char *)v176; v74 = cocos2d::CCSprite::createWithSpriteFrameName(v73); *((_QWORD *)a1 + 238) = v74; (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, __int64))(**((_QWORD **)a1 + 236) + 456LL))( *((_QWORD *)a1 + 236), v74, 4294967294LL); v75 = **((_QWORD **)a1 + 238); v76 = *((_QWORD *)a1 + 238); cocos2d::CCNode::convertToNodeSpace(*((_QWORD *)a1 + 236), &v172, &unk_14090B428); (*(void (__fastcall **)(__int64, __int64))(v75 + 184))(v76, v77); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)a1 + 238) + 336LL))(*((_QWORD *)a1 + 238), 0); v78 = (const char *)&v176; if ( v178 > 0xF ) v78 = (const char *)v176; v79 = cocos2d::CCSprite::createWithSpriteFrameName(v78); *((_QWORD *)a1 + 239) = v79; (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, __int64))(**((_QWORD **)a1 + 236) + 456LL))( *((_QWORD *)a1 + 236), v79, 1); v80 = **((_QWORD **)a1 + 239); v81 = *((_QWORD *)a1 + 239); cocos2d::CCNode::convertToNodeSpace(*((_QWORD *)a1 + 236), &v172, &unk_14090B428); (*(void (__fastcall **)(__int64, __int64))(v80 + 184))(v81, v82); v83 = cocos2d::CCString::createWithFormat("ship_%02d_extra_001.png", v11); v84 = cocos2d::CCString::getCString(v83); v173 = 0; v174 = 0; v175 = 0; v85 = -1; do ++v85; while ( v84[v85] ); sub_14003D230(&v173, v84, v85); PlayerObject::updateShipSpriteExtra(a1, &v173); v86 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v172 = (__int64)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v172); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v86 = qword_14090BFD0; } PlayerObject::createRobot(a1, (unsigned int)(*(_DWORD *)(v86 + 808) - *(_DWORD *)(v86 + 812))); v87 = PlayerFireBoostSprite::create(); *((_QWORD *)a1 + 387) = v87; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)a1 + 171) + 456LL))( *((_QWORD *)a1 + 171), v87, 0xFFFFFFFFLL); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)a1 + 387) + 336LL))(*((_QWORD *)a1 + 387), 0); v88 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v172 = (__int64)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v172); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v88 = qword_14090BFD0; } PlayerObject::createSpider(a1, (unsigned int)(*(_DWORD *)(v88 + 820) - *(_DWORD *)(v88 + 824))); v89 = (_DWORD *)PlayerFireBoostSprite::create(); (*(void (__fastcall **)(_QWORD, _DWORD *, __int64))(**((_QWORD **)a1 + 171) + 456LL))( *((_QWORD *)a1 + 171), v89, 0xFFFFFFFFLL); v89[150] = 1064682128; (*(void (__fastcall **)(_DWORD *, _QWORD))(*(_QWORD *)v89 + 336LL))(v89, 0); *((_QWORD *)a1 + 241) = v89; v90 = (_DWORD *)PlayerFireBoostSprite::create(); (*(void (__fastcall **)(_QWORD, _DWORD *, __int64))(**((_QWORD **)a1 + 171) + 456LL))( *((_QWORD *)a1 + 171), v90, 0xFFFFFFFFLL); v90[150] = 1060655596; (*(void (__fastcall **)(_DWORD *, _QWORD))(*(_QWORD *)v90 + 336LL))(v90, 0); *((_QWORD *)a1 + 242) = v90; v91 = (_DWORD *)PlayerFireBoostSprite::create(); (*(void (__fastcall **)(_QWORD, _DWORD *, __int64))(**((_QWORD **)a1 + 171) + 456LL))( *((_QWORD *)a1 + 171), v91, 0xFFFFFFFFLL); v91[150] = 1060655596; (*(void (__fastcall **)(_DWORD *, _QWORD))(*(_QWORD *)v91 + 336LL))(v91, 0); *((_QWORD *)a1 + 243) = v91; (*(void (__fastcall **)(_QWORD))(**((_QWORD **)a1 + 241) + 352LL))(*((_QWORD *)a1 + 241)); v92 = **((_QWORD **)a1 + 241); v93 = *((_QWORD *)a1 + 241); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v172, -14.0, 0.0); (*(void (__fastcall **)(__int64, __int64))(v92 + 184))(v93, v94); (*(void (__fastcall **)(_QWORD))(**((_QWORD **)a1 + 242) + 352LL))(*((_QWORD *)a1 + 242)); v95 = **((_QWORD **)a1 + 242); v96 = *((_QWORD *)a1 + 242); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v172, -9.5, -10.0); (*(void (__fastcall **)(__int64, __int64))(v95 + 184))(v96, v97); (*(void (__fastcall **)(_QWORD))(**((_QWORD **)a1 + 243) + 352LL))(*((_QWORD *)a1 + 243)); v98 = **((_QWORD **)a1 + 243); v99 = *((_QWORD *)a1 + 243); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v172, -9.5, 10.0); (*(void (__fastcall **)(__int64, __int64))(v98 + 184))(v99, v100); *((_QWORD *)a1 + 309) = 0; *((_BYTE *)a1 + 2596) = 0; *((_WORD *)a1 + 1252) = 0; *((_BYTE *)a1 + 2580) = 0; *((_DWORD *)a1 + 638) = 1065353216; *((_DWORD *)a1 + 686) = 1106247680; PlayerObject::updateTimeMod(a1, v101, 0); *((_QWORD *)a1 + 275) = 0; v104 = (cocos2d::CCObject *)cocos2d::CCNode::create(v103, v102); *((_QWORD *)a1 + 181) = v104; cocos2d::CCObject::retain(v104); v106 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v105); *((_QWORD *)a1 + 182) = v106; cocos2d::CCObject::retain(v106); v108 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v107); *((_QWORD *)a1 + 183) = v108; cocos2d::CCObject::retain(v108); v110 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v109); *((_QWORD *)a1 + 184) = v110; cocos2d::CCObject::retain(v110); v112 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v111); *((_QWORD *)a1 + 185) = v112; cocos2d::CCObject::retain(v112); v114 = (cocos2d::CCObject *)cocos2d::CCArray::create(v113); *((_QWORD *)a1 + 211) = v114; cocos2d::CCObject::retain(v114); v115 = (cocos2d::CCNode *)operator new(0x148u); v172 = (__int64)v115; cocos2d::CCNode::CCNode(v115); *(_QWORD *)v115 = &GJActionManager::`vftable'; *((_QWORD *)v115 + 40) = 0; if ( GJAccountManager::init(v115) ) { cocos2d::CCObject::autorelease(v115); } else { (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v115 + 8LL))(v115, 1); v115 = nullptr; } *((_QWORD *)a1 + 391) = v115; cocos2d::CCObject::retain(v115); v116 = cocos2d::CCParticleSystemQuad::create("dragEffect.plist", 0); *((_QWORD *)a1 + 280) = v116; (*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, __int64))(*(_QWORD *)v116 + 1528LL))(v116, 1); cocos2d::CCParticleSystem::stopSystem(*((cocos2d::CCParticleSystem **)a1 + 280)); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)a1 + 211), *((struct cocos2d::CCObject **)a1 + 280)); *((_BYTE *)a1 + 2030) = 0; v117 = cocos2d::CCParticleSystemQuad::create("dashEffect.plist", 0); *((_QWORD *)a1 + 286) = v117; (*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, __int64))(*(_QWORD *)v117 + 1528LL))(v117, 1); cocos2d::CCParticleSystem::stopSystem(*((cocos2d::CCParticleSystem **)a1 + 286)); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)a1 + 211), *((struct cocos2d::CCObject **)a1 + 286)); v118 = cocos2d::CCParticleSystemQuad::create("burstEffect.plist", 0); *((_QWORD *)a1 + 284) = v118; (*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, __int64))(*(_QWORD *)v118 + 1528LL))(v118, 1); cocos2d::CCParticleSystem::stopSystem(*((cocos2d::CCParticleSystem **)a1 + 284)); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)a1 + 211), *((struct cocos2d::CCObject **)a1 + 284)); v119 = cocos2d::CCParticleSystemQuad::create("burstEffect2.plist", 0); *((_QWORD *)a1 + 285) = v119; (*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, __int64))(*(_QWORD *)v119 + 1528LL))(v119, 1); cocos2d::CCParticleSystem::stopSystem(*((cocos2d::CCParticleSystem **)a1 + 285)); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)a1 + 211), *((struct cocos2d::CCObject **)a1 + 285)); v120 = cocos2d::CCParticleSystemQuad::create("dragEffect.plist", 0); *((_QWORD *)a1 + 281) = v120; (*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, __int64))(*(_QWORD *)v120 + 1528LL))(v120, 1); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)a1 + 211), *((struct cocos2d::CCObject **)a1 + 281)); cocos2d::CCParticleSystem::stopSystem(*((cocos2d::CCParticleSystem **)a1 + 281)); *((float *)a1 + 502) = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)a1 + 281) + 960LL))(*((_QWORD *)a1 + 281)); v121 = **((_QWORD **)a1 + 281); v122 = *((_QWORD *)a1 + 281); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v172, 0.0, 2.0); (*(void (__fastcall **)(__int64, __int64))(v121 + 952))(v122, v123); v124 = cocos2d::CCParticleSystemQuad::create("dragEffect.plist", 0); *((_QWORD *)a1 + 282) = v124; (*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, __int64))(*(_QWORD *)v124 + 1528LL))(v124, 1); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)a1 + 211), *((struct cocos2d::CCObject **)a1 + 282)); cocos2d::CCParticleSystem::stopSystem(*((cocos2d::CCParticleSystem **)a1 + 282)); v125 = *((__int64 **)a1 + 281); v126 = *v125; (*(void (__fastcall **)(__int64 *))(*v125 + 1048))(v125); (*(void (__fastcall **)(_QWORD))(v126 + 1056))(*((_QWORD *)a1 + 281)); v127 = *((__int64 **)a1 + 281); v128 = *v127; (*(void (__fastcall **)(__int64 *))(*v127 + 1064))(v127); (*(void (__fastcall **)(_QWORD))(v128 + 1072))(*((_QWORD *)a1 + 281)); v129 = **((_QWORD **)a1 + 282); v130 = *((_QWORD *)a1 + 282); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v172, 0.0, 2.0); (*(void (__fastcall **)(__int64, __int64))(v129 + 952))(v130, v131); v132 = *((__int64 **)a1 + 282); v133 = *v132; (*(void (__fastcall **)(__int64 *))(*v132 + 1048))(v132); (*(void (__fastcall **)(_QWORD))(v133 + 1056))(*((_QWORD *)a1 + 282)); v134 = *((__int64 **)a1 + 282); v135 = *v134; (*(void (__fastcall **)(__int64 *))(*v134 + 1064))(v134); (*(void (__fastcall **)(_QWORD))(v135 + 1072))(*((_QWORD *)a1 + 282)); v136 = *((__int64 **)a1 + 282); v137 = *v136; (*(void (__fastcall **)(__int64 *))(*v136 + 1008))(v136); (*(void (__fastcall **)(_QWORD))(v137 + 1016))(*((_QWORD *)a1 + 282)); v138 = *((__int64 **)a1 + 282); v139 = *v138; (*(void (__fastcall **)(__int64 *))(*v138 + 1280))(v138); (*(void (__fastcall **)(_QWORD))(v139 + 1288))(*((_QWORD *)a1 + 282)); v140 = *((__int64 **)a1 + 282); v141 = *v140; (*(void (__fastcall **)(__int64 *))(*v140 + 1296))(v140); (*(void (__fastcall **)(_QWORD))(v141 + 1304))(*((_QWORD *)a1 + 282)); *((_BYTE *)a1 + 2031) = 0; si128 = _mm_load_si128((const __m128i *)&xmmword_1408369C0); v173 = si128; (*(void (__fastcall **)(_QWORD, __m128i *))(**((_QWORD **)a1 + 281) + 1352LL))(*((_QWORD *)a1 + 281), &v173); v143 = _mm_load_si128((const __m128i *)&xmmword_140836990); v173 = v143; (*(void (__fastcall **)(_QWORD, __m128i *))(**((_QWORD **)a1 + 281) + 1384LL))(*((_QWORD *)a1 + 281), &v173); v173 = _mm_load_si128((const __m128i *)&xmmword_1408369F0); (*(void (__fastcall **)(_QWORD, __m128i *))(**((_QWORD **)a1 + 282) + 1352LL))(*((_QWORD *)a1 + 282), &v173); v173 = v143; (*(void (__fastcall **)(_QWORD, __m128i *))(**((_QWORD **)a1 + 282) + 1384LL))(*((_QWORD *)a1 + 282), &v173); for ( i = 0; i < 2; ++i ) { while ( 1 ) { v145 = cocos2d::CCParticleSystemQuad::create("swingBurstEffect.plist", 0); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v145 + 1528LL))(v145, 2); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)a1 + 211), v145); cocos2d::CCParticleSystem::stopSystem(v145); v173 = si128; (*(void (__fastcall **)(struct cocos2d::CCObject *, __m128i *))(*(_QWORD *)v145 + 1352LL))(v145, &v173); v173 = v143; (*(void (__fastcall **)(struct cocos2d::CCObject *, __m128i *))(*(_QWORD *)v145 + 1384LL))(v145, &v173); if ( i ) break; *((_QWORD *)a1 + 287) = v145; i = 1; } *((_QWORD *)a1 + 288) = v145; } v146 = cocos2d::CCParticleSystemQuad::create("shipDragEffect.plist", 0); *((_QWORD *)a1 + 283) = v146; (*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, __int64))(*(_QWORD *)v146 + 1528LL))(v146, 2); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)a1 + 211), *((struct cocos2d::CCObject **)a1 + 283)); cocos2d::CCParticleSystem::stopSystem(*((cocos2d::CCParticleSystem **)a1 + 283)); v147 = cocos2d::CCParticleSystemQuad::create("landEffect.plist", 0); *((_QWORD *)a1 + 290) = v147; (*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, __int64))(*(_QWORD *)v147 + 1528LL))(v147, 2); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)a1 + 211), *((struct cocos2d::CCObject **)a1 + 290)); cocos2d::CCParticleSystem::stopSystem(*((cocos2d::CCParticleSystem **)a1 + 290)); *((float *)a1 + 584) = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)a1 + 290) + 992LL))(*((_QWORD *)a1 + 290)); *((_DWORD *)a1 + 585) = *(_DWORD *)((*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)a1 + 290) + 1032LL))(*((_QWORD *)a1 + 290)) + 4); v148 = cocos2d::CCParticleSystemQuad::create("landEffect.plist", 0); *((_QWORD *)a1 + 291) = v148; (*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, __int64))(*(_QWORD *)v148 + 1528LL))(v148, 2); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)a1 + 211), *((struct cocos2d::CCObject **)a1 + 291)); cocos2d::CCParticleSystem::stopSystem(*((cocos2d::CCParticleSystem **)a1 + 291)); PlayerObject::setupStreak(a1); v172 = 0x100000302LL; v149 = cocos2d::CCString::createWithFormat("player_%02d_glow_001.png", v9); v150 = cocos2d::CCString::getCString(v149); v188 = 0; v189 = 0; v190 = 0; v151 = -1; do ++v151; while ( v150[v151] ); sub_14003D230(&v188, v150, v151); v152 = cocos2d::CCSprite::create(); *((_QWORD *)a1 + 244) = v152; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v152 + 992LL))(v152, &unk_14090B430); *(_BYTE *)(*((_QWORD *)a1 + 244) + 559LL) = 1; (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)a1 + 171) + 456LL))( *((_QWORD *)a1 + 171), *((_QWORD *)a1 + 244), 0xFFFFFFFFLL); v153 = cocos2d::CCSprite::createWithSpriteFrameName("playerDash2_001.png"); *((_QWORD *)a1 + 205) = v153; (**((void (__fastcall ***)(__int64, __int64))v153 + 43))((__int64)v153 + 344, v172); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)a1 + 244) + 464LL))( *((_QWORD *)a1 + 244), *((_QWORD *)a1 + 205)); v154 = **((_QWORD **)a1 + 205); v155 = *((_QWORD *)a1 + 205); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v172, 0.0, 0.0); cocos2d::CCNode::convertToNodeSpace(a1, &v173, v156); (*(void (__fastcall **)(__int64, __int64))(v154 + 184))(v155, v157); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)a1 + 205) + 336LL))(*((_QWORD *)a1 + 205), 0); v158 = cocos2d::CCSprite::createWithSpriteFrameName("playerDash2_outline_001.png"); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, __int64))(**((_QWORD **)a1 + 205) + 456LL))( *((_QWORD *)a1 + 205), v158, 1); v159 = *(_QWORD *)v158; cocos2d::CCNode::convertToNodeSpace(*((_QWORD *)a1 + 205), &v173, &unk_14090B428); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v159 + 184))(v158, v160); LOBYTE(v161) = -106; (*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v158 + 40) + 40LL))((__int64)v158 + 320, v161); v162 = (const char *)&v188; if ( v190 > 0xF ) v162 = (const char *)v188; v163 = cocos2d::CCSprite::createWithSpriteFrameName(v162); *((_QWORD *)a1 + 235) = v163; (*(void (__fastcall **)(struct cocos2d::CCSprite *, _QWORD))(*(_QWORD *)v163 + 336LL))(v163, 0); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)a1 + 244) + 456LL))( *((_QWORD *)a1 + 244), *((_QWORD *)a1 + 235), 2); v164 = cocos2d::CCString::createWithFormat("ship_%02d_glow_001.png", v11); v165 = cocos2d::CCString::getCString(v164); v185 = 0; v186 = 0; v187 = 0; do ++v17; while ( v165[v17] ); sub_14003D230(&v185, v165, v17); v166 = (const char *)&v185; if ( v187 > 0xF ) v166 = (const char *)v185; v167 = cocos2d::CCSprite::createWithSpriteFrameName(v166); *((_QWORD *)a1 + 240) = v167; (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, __int64))(**((_QWORD **)a1 + 244) + 456LL))( *((_QWORD *)a1 + 244), v167, 4294967293LL); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)a1 + 240) + 336LL))(*((_QWORD *)a1 + 240), 0); *((_DWORD *)a1 + 191) = 1106247680; *((_DWORD *)a1 + 192) = 1106247680; *((_DWORD *)a1 + 686) = 1106247680; v168 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v173.m128i_i64[0] = (__int64)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v173.m128i_i64[0]); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v168 = qword_14090BFD0; } *((_BYTE *)a1 + 2752) = GameManager::getGameVariable(v168, "0060"); v169 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v173.m128i_i64[0] = (__int64)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v173.m128i_i64[0]); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v169 = qword_14090BFD0; } *((_BYTE *)a1 + 2753) = GameManager::getGameVariable(v169, "0061"); v170 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v173.m128i_i64[0] = (__int64)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v173.m128i_i64[0]); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v170 = qword_14090BFD0; } *((_BYTE *)a1 + 2754) = GameManager::getGameVariable(v170, "0062"); LODWORD(v172) = 0; sub_1405028C0((char *)a1 + 2760, 200, &v172); *((_BYTE *)a1 + 1533) = 0; v23 = 1; sub_14003D310((__int64)&v185); sub_14003D310((__int64)&v188); sub_14003D310((__int64)&v176); sub_14003D310((__int64)&v191); } else { v23 = 0; } sub_14003D310((__int64)&v179); sub_14003D310((__int64)&v182); return v23; }
GD Web Decomp Icon

GD Web Decomp

Raw Source