// // EditorUI::createMoveMenu from 0x1401f1a70 to 0x1401f3100 (5776 bytes) // // 3 xrefs: // > EditorUI::init @ 0x1401ab13c // > EditorUI::recreateButtonTabs @ 0x1401f6de9 // > @ 0x14091a9d8 // // 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:28:08 +0000 // // Hidden C++ exception states: #wind=5 __int64 __fastcall EditorUI::createMoveMenu(__int64 a1) { __int64 v2; // rax cocos2d::CCObject *v3; // rax __int64 v4; // rcx cocos2d::CCArray *v5; // r12 __int64 v6; // rcx __int64 v7; // rcx char GameVariable; // r13 float v9; // xmm7_4 const struct cocos2d::CCPoint *v10; // rax struct cocos2d::CCObject *SpriteButton_1; // rbx const struct cocos2d::CCPoint *v12; // rax struct cocos2d::CCObject *v13; // rbx const struct cocos2d::CCPoint *v14; // rax struct cocos2d::CCObject *v15; // rbx const struct cocos2d::CCPoint *v16; // rax struct cocos2d::CCObject *v17; // rbx const struct cocos2d::CCPoint *v18; // rax struct cocos2d::CCObject *v19; // rbx const struct cocos2d::CCPoint *v20; // rax struct cocos2d::CCObject *v21; // rbx const struct cocos2d::CCPoint *v22; // rax struct cocos2d::CCObject *v23; // rbx const struct cocos2d::CCPoint *v24; // rax struct cocos2d::CCObject *v25; // rbx const struct cocos2d::CCPoint *v26; // rax struct cocos2d::CCObject *v27; // rbx const struct cocos2d::CCPoint *v28; // rax struct cocos2d::CCObject *v29; // rbx const struct cocos2d::CCPoint *v30; // rax struct cocos2d::CCObject *v31; // rbx const struct cocos2d::CCPoint *v32; // rax struct cocos2d::CCObject *v33; // rbx const struct cocos2d::CCPoint *v34; // rax struct cocos2d::CCObject *v35; // r14 const struct cocos2d::CCPoint *v36; // rax struct cocos2d::CCObject *v37; // rsi const struct cocos2d::CCPoint *v38; // rax struct cocos2d::CCObject *v39; // rdi const struct cocos2d::CCPoint *v40; // rax struct cocos2d::CCObject *v41; // rbx __int64 v42; // rax __int64 v43; // rax __int64 v44; // rax __int64 v45; // rax const struct cocos2d::CCPoint *v46; // rax struct cocos2d::CCObject *v47; // rbx const struct cocos2d::CCPoint *v48; // rax struct cocos2d::CCObject *v49; // rbx const struct cocos2d::CCPoint *v50; // rax struct cocos2d::CCObject *v51; // rbx const struct cocos2d::CCPoint *v52; // rax struct cocos2d::CCObject *v53; // rbx float v54; // xmm0_4 float v55; // xmm0_4 const struct cocos2d::CCPoint *v56; // rax const struct cocos2d::CCPoint *v57; // rbx struct cocos2d::CCSprite *v58; // rdi const struct cocos2d::CCPoint *v59; // rax struct cocos2d::CCObject *SpriteButton; // rbx const struct cocos2d::CCPoint *v61; // rax const struct cocos2d::CCPoint *v62; // rbx struct cocos2d::CCSprite *v63; // rdi const struct cocos2d::CCPoint *v64; // rax struct cocos2d::CCObject *v65; // rbx const struct cocos2d::CCPoint *v66; // rax const struct cocos2d::CCPoint *v67; // rbx struct cocos2d::CCSprite *v68; // rdi const struct cocos2d::CCPoint *v69; // rax struct cocos2d::CCObject *v70; // rbx const struct cocos2d::CCPoint *v71; // rax const struct cocos2d::CCPoint *v72; // rbx struct cocos2d::CCSprite *v73; // rdi const struct cocos2d::CCPoint *v74; // rax struct cocos2d::CCObject *v75; // rbx const struct cocos2d::CCPoint *v76; // rax const struct cocos2d::CCPoint *v77; // rbx struct cocos2d::CCSprite *v78; // rdi const struct cocos2d::CCPoint *v79; // rax struct cocos2d::CCObject *v80; // rbx unsigned int v81; // eax cocos2d::CCString *v82; // rax const char *CString; // rax size_t v84; // rsi size_t v85; // r8 void *v86; // rcx const struct cocos2d::CCPoint *v87; // rax const struct cocos2d::CCPoint *v88; // rbx struct cocos2d::CCSprite *v89; // rdi const struct cocos2d::CCPoint *v90; // rax struct cocos2d::CCObject *v91; // rbx unsigned int v92; // eax cocos2d::CCString *v93; // rax const char *v94; // rax size_t v95; // r8 void *v96; // rcx const struct cocos2d::CCPoint *v97; // rax const struct cocos2d::CCPoint *v98; // rbx struct cocos2d::CCSprite *v99; // rdi const struct cocos2d::CCPoint *v100; // rax struct cocos2d::CCObject *v101; // rbx unsigned int v102; // eax cocos2d::CCString *v103; // rax const char *v104; // rax size_t v105; // r8 void *v106; // rcx const struct cocos2d::CCPoint *v107; // rax const struct cocos2d::CCPoint *v108; // rbx struct cocos2d::CCSprite *v109; // rdi const struct cocos2d::CCPoint *v110; // rax struct cocos2d::CCObject *v111; // rbx unsigned int v112; // eax cocos2d::CCString *v113; // rax const char *v114; // rax size_t v115; // r8 void *v116; // rcx const struct cocos2d::CCPoint *v117; // rax const struct cocos2d::CCPoint *v118; // rbx struct cocos2d::CCSprite *v119; // rdi const struct cocos2d::CCPoint *v120; // rax struct cocos2d::CCObject *v121; // rbx unsigned int v122; // eax cocos2d::CCString *v123; // rax const char *v124; // rax size_t v125; // r8 void *v126; // rcx const struct cocos2d::CCPoint *v127; // rax const struct cocos2d::CCPoint *v128; // rbx struct cocos2d::CCSprite *v129; // rdi const struct cocos2d::CCPoint *v130; // rax struct cocos2d::CCObject *v131; // rbx unsigned int v132; // eax cocos2d::CCString *v133; // rax const char *v134; // rax size_t v135; // r8 const struct cocos2d::CCPoint *v136; // rax const struct cocos2d::CCPoint *v137; // rbx struct cocos2d::CCSprite *v138; // rdi const struct cocos2d::CCPoint *v139; // rax struct cocos2d::CCObject *v140; // rbx unsigned int v141; // eax cocos2d::CCString *v142; // rax const char *v143; // rax void *v144; // rcx __int64 v145; // rbx cocos2d::CCString *v146; // rax int v147; // edi void *v148; // r8 __int64 v149; // rbx cocos2d::CCString *v150; // rax __int64 v151; // rcx int v152; // ebx void *v153; // r8 float v154; // xmm6_4 cocos2d::CCDirector *v155; // rax float v156; // xmm0_4 const struct cocos2d::CCPoint *v157; // rax cocos2d::CCArray **v158; // rax void *v160; // [rsp+48h] [rbp-69h] BYREF void *v161; // [rsp+50h] [rbp-61h] BYREF _BYTE v162[8]; // [rsp+58h] [rbp-59h] BYREF float v163; // [rsp+60h] [rbp-51h] BYREF _BYTE v164[8]; // [rsp+68h] [rbp-49h] BYREF void *Block[2]; // [rsp+70h] [rbp-41h] BYREF __int64 v166; // [rsp+80h] [rbp-31h] unsigned __int64 v167; // [rsp+88h] [rbp-29h] void *Src[2]; // [rsp+90h] [rbp-21h] BYREF __int64 v169; // [rsp+A0h] [rbp-11h] unsigned __int64 v170; // [rsp+A8h] [rbp-9h] v2 = cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v2, &v163); v3 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(); *(_QWORD *)(a1 + 864) = v3; cocos2d::CCObject::retain(v3); v5 = (cocos2d::CCArray *)cocos2d::CCArray::create(v4); v6 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v161 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v161); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v6 = qword_14090BFD0; } GameVariable = GameManager::getGameVariable(v6, "0191"); if ( GameVariable ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v161, (const struct cocos2d::CCPoint *)&dword_14090A6E8); v9 = 0.0; SpriteButton_1 = (struct cocos2d::CCObject *)EditorUI::getSpriteButton_1( a1, "edit_upBtn_001.png", (int)EditorUI::moveObjectCall, 0, 1063675494, 1, v10, 0); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)SpriteButton_1 + 64LL))(SpriteButton_1, 3); cocos2d::CCArray::addObject(v5, SpriteButton_1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v161, (const struct cocos2d::CCPoint *)&dword_14090A6E8); v13 = (struct cocos2d::CCObject *)EditorUI::getSpriteButton_1( a1, "edit_downBtn_001.png", (int)EditorUI::moveObjectCall, 0, 1063675494, 1, v12, 0); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v13 + 64LL))(v13, 4); cocos2d::CCArray::addObject(v5, v13); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v161, (const struct cocos2d::CCPoint *)&dword_14090A6E8); v15 = (struct cocos2d::CCObject *)EditorUI::getSpriteButton_1( a1, "edit_leftBtn_001.png", (int)EditorUI::moveObjectCall, 0, 1063675494, 1, v14, 0); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v15 + 64LL))(v15, 1); cocos2d::CCArray::addObject(v5, v15); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v161, (const struct cocos2d::CCPoint *)&dword_14090A6E8); v17 = (struct cocos2d::CCObject *)EditorUI::getSpriteButton_1( a1, "edit_rightBtn_001.png", (int)EditorUI::moveObjectCall, 0, 1063675494, 1, v16, 0); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v17 + 64LL))(v17, 2); cocos2d::CCArray::addObject(v5, v17); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v161, (const struct cocos2d::CCPoint *)&dword_14090A6E8); v19 = (struct cocos2d::CCObject *)EditorUI::getSpriteButton_1( a1, "edit_upBtn2_001.png", (int)EditorUI::moveObjectCall, 0, 1063675494, 1, v18, 0); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v19 + 64LL))(v19, 7); cocos2d::CCArray::addObject(v5, v19); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v161, (const struct cocos2d::CCPoint *)&dword_14090A6E8); v21 = (struct cocos2d::CCObject *)EditorUI::getSpriteButton_1( a1, "edit_downBtn2_001.png", (int)EditorUI::moveObjectCall, 0, 1063675494, 1, v20, 0); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v21 + 64LL))(v21, 8); cocos2d::CCArray::addObject(v5, v21); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v161, (const struct cocos2d::CCPoint *)&dword_14090A6E8); v23 = (struct cocos2d::CCObject *)EditorUI::getSpriteButton_1( a1, "edit_leftBtn2_001.png", (int)EditorUI::moveObjectCall, 0, 1063675494, 1, v22, 0); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v23 + 64LL))(v23, 5); cocos2d::CCArray::addObject(v5, v23); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v161, (const struct cocos2d::CCPoint *)&dword_14090A6E8); v25 = (struct cocos2d::CCObject *)EditorUI::getSpriteButton_1( a1, "edit_rightBtn2_001.png", (int)EditorUI::moveObjectCall, 0, 1063675494, 1, v24, 0); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v25 + 64LL))(v25, 6); cocos2d::CCArray::addObject(v5, v25); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v161, (const struct cocos2d::CCPoint *)&dword_14090A6E8); v27 = (struct cocos2d::CCObject *)EditorUI::getSpriteButton_1( a1, "edit_upBtn3_001.png", (int)EditorUI::moveObjectCall, 0, 1063675494, 1, v26, 0); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v27 + 64LL))(v27, 11); cocos2d::CCArray::addObject(v5, v27); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v161, (const struct cocos2d::CCPoint *)&dword_14090A6E8); v29 = (struct cocos2d::CCObject *)EditorUI::getSpriteButton_1( a1, "edit_downBtn3_001.png", (int)EditorUI::moveObjectCall, 0, 1063675494, 1, v28, 0); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v29 + 64LL))(v29, 12); cocos2d::CCArray::addObject(v5, v29); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v161, (const struct cocos2d::CCPoint *)&dword_14090A6E8); v31 = (struct cocos2d::CCObject *)EditorUI::getSpriteButton_1( a1, "edit_leftBtn3_001.png", (int)EditorUI::moveObjectCall, 0, 1063675494, 1, v30, 0); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v31 + 64LL))(v31, 9); cocos2d::CCArray::addObject(v5, v31); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v161, (const struct cocos2d::CCPoint *)&dword_14090A6E8); v33 = (struct cocos2d::CCObject *)EditorUI::getSpriteButton_1( a1, "edit_rightBtn3_001.png", (int)EditorUI::moveObjectCall, 0, 1063675494, 1, v32, 0); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v33 + 64LL))(v33, 10); cocos2d::CCArray::addObject(v5, v33); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v161, (const struct cocos2d::CCPoint *)&dword_14090A6E8); v35 = (struct cocos2d::CCObject *)EditorUI::getSpriteButton_1( a1, "edit_upBtn_001.png", (int)EditorUI::moveObjectCall, 0, 1063675494, 1, v34, 0); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v35 + 64LL))(v35, 15); cocos2d::CCArray::addObject(v5, v35); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v164, (const struct cocos2d::CCPoint *)&dword_14090A6E8); v37 = (struct cocos2d::CCObject *)EditorUI::getSpriteButton_1( a1, "edit_downBtn_001.png", (int)EditorUI::moveObjectCall, 0, 1063675494, 1, v36, 0); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v37 + 64LL))(v37, 16); cocos2d::CCArray::addObject(v5, v37); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v162, (const struct cocos2d::CCPoint *)&dword_14090A6E8); v39 = (struct cocos2d::CCObject *)EditorUI::getSpriteButton_1( a1, "edit_leftBtn_001.png", (int)EditorUI::moveObjectCall, 0, 1063675494, 1, v38, 0); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v39 + 64LL))(v39, 13); cocos2d::CCArray::addObject(v5, v39); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v160, (const struct cocos2d::CCPoint *)&dword_14090A6E8); v41 = (struct cocos2d::CCObject *)EditorUI::getSpriteButton_1( a1, "edit_rightBtn_001.png", (int)EditorUI::moveObjectCall, 0, 1063675494, 1, v40, 0); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v41 + 64LL))(v41, 14); cocos2d::CCArray::addObject(v5, v41); v42 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v35 + 952LL))(v35); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(v42 + 640) + 160LL))(*(_QWORD *)(v42 + 640)); v43 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v37 + 952LL))(v37); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(v43 + 640) + 160LL))(*(_QWORD *)(v43 + 640)); v44 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v39 + 952LL))(v39); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(v44 + 640) + 160LL))(*(_QWORD *)(v44 + 640)); v45 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v41 + 952LL))(v41); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(v45 + 640) + 160LL))(*(_QWORD *)(v45 + 640)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v160, (const struct cocos2d::CCPoint *)&dword_14090A6E8); v47 = (struct cocos2d::CCObject *)EditorUI::getSpriteButton_1( a1, "edit_upBtn5_001.png", (int)EditorUI::moveObjectCall, 0, 1063675494, 1, v46, 0); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v47 + 64LL))(v47, 19); cocos2d::CCArray::addObject(v5, v47); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v160, (const struct cocos2d::CCPoint *)&dword_14090A6E8); v49 = (struct cocos2d::CCObject *)EditorUI::getSpriteButton_1( a1, "edit_downBtn5_001.png", (int)EditorUI::moveObjectCall, 0, 1063675494, 1, v48, 0); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v49 + 64LL))(v49, 20); cocos2d::CCArray::addObject(v5, v49); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v160, (const struct cocos2d::CCPoint *)&dword_14090A6E8); v51 = (struct cocos2d::CCObject *)EditorUI::getSpriteButton_1( a1, "edit_leftBtn5_001.png", (int)EditorUI::moveObjectCall, 0, 1063675494, 1, v50, 0); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v51 + 64LL))(v51, 17); cocos2d::CCArray::addObject(v5, v51); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v160, (const struct cocos2d::CCPoint *)&dword_14090A6E8); v53 = (struct cocos2d::CCObject *)EditorUI::getSpriteButton_1( a1, "edit_rightBtn5_001.png", (int)EditorUI::moveObjectCall, 0, 1063675494, 1, v52, 0); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v53 + 64LL))(v53, 18); cocos2d::CCArray::addObject(v5, v53); } else { v54 = sub_1401F1A00(v7).m128_f32[0]; v55 = (float)(v54 / fminf(1.0, v54 / 299.0)) - 299.0; v9 = fminf(32.0, (float)((float)(v55 - (float)(fminf(1.0, v55 / 29.0) * 29.0)) / 7.0) + 23.0) / 0.57499999; } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v160, (const struct cocos2d::CCPoint *)&unk_14090A768); v57 = v56; v58 = cocos2d::CCSprite::createWithSpriteFrameName("edit_flipXBtn_001.png"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v162, v57); SpriteButton = EditorUI::getSpriteButton( a1, (__int64)v58, (__int64)EditorUI::transformObjectCall, 0, 1063675494, 1, v59, v9); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)SpriteButton + 64LL))(SpriteButton, 37); cocos2d::CCArray::addObject(v5, SpriteButton); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v160, (const struct cocos2d::CCPoint *)&unk_14090A768); v62 = v61; v63 = cocos2d::CCSprite::createWithSpriteFrameName("edit_flipYBtn_001.png"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v162, v62); v65 = EditorUI::getSpriteButton(a1, (__int64)v63, (__int64)EditorUI::transformObjectCall, 0, 1063675494, 1, v64, v9); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v65 + 64LL))(v65, 38); cocos2d::CCArray::addObject(v5, v65); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v160, (const struct cocos2d::CCPoint *)&unk_14090A768); v67 = v66; v68 = cocos2d::CCSprite::createWithSpriteFrameName("edit_cwBtn_001.png"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v162, v67); v70 = EditorUI::getSpriteButton(a1, (__int64)v68, (__int64)EditorUI::transformObjectCall, 0, 1063675494, 1, v69, v9); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v70 + 64LL))(v70, 39); cocos2d::CCArray::addObject(v5, v70); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v160, (const struct cocos2d::CCPoint *)&unk_14090A768); v72 = v71; v73 = cocos2d::CCSprite::createWithSpriteFrameName("edit_ccwBtn_001.png"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v162, v72); v75 = EditorUI::getSpriteButton(a1, (__int64)v73, (__int64)EditorUI::transformObjectCall, 0, 1063675494, 1, v74, v9); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v75 + 64LL))(v75, 40); cocos2d::CCArray::addObject(v5, v75); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v160, (const struct cocos2d::CCPoint *)&unk_14090A768); v77 = v76; v78 = cocos2d::CCSprite::createWithSpriteFrameName("edit_rotate45rBtn_001.png"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v162, v77); v80 = EditorUI::getSpriteButton(a1, (__int64)v78, (__int64)EditorUI::transformObjectCall, 0, 1063675494, 1, v79, v9); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v80 + 64LL))(v80, 41); cocos2d::CCArray::addObject(v5, v80); v81 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v80 + 56LL))(v80); v82 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v81); CString = cocos2d::CCString::getCString(v82); *(_OWORD *)Block = 0; v166 = 0; v167 = 0; v84 = -1; v85 = -1; do ++v85; while ( CString[v85] ); sub_14003D230(Block, CString, v85); cocos2d::CCDictionary::setObject(*(_QWORD *)(a1 + 864), v80, Block); if ( v167 > 0xF ) { v86 = Block[0]; if ( v167 + 1 >= 0x1000 ) { v86 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v86 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v86); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v160, (const struct cocos2d::CCPoint *)&unk_14090A768); v88 = v87; v89 = cocos2d::CCSprite::createWithSpriteFrameName("edit_rotate45lBtn_001.png"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v162, v88); v91 = EditorUI::getSpriteButton(a1, (__int64)v89, (__int64)EditorUI::transformObjectCall, 0, 1063675494, 1, v90, v9); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v91 + 64LL))(v91, 42); cocos2d::CCArray::addObject(v5, v91); v92 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v91 + 56LL))(v91); v93 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v92); v94 = cocos2d::CCString::getCString(v93); *(_OWORD *)Block = 0; v166 = 0; v167 = 0; v95 = -1; do ++v95; while ( v94[v95] ); sub_14003D230(Block, v94, v95); cocos2d::CCDictionary::setObject(*(_QWORD *)(a1 + 864), v91, Block); if ( v167 > 0xF ) { v96 = Block[0]; if ( v167 + 1 >= 0x1000 ) { v96 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v96 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v96); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v160, (const struct cocos2d::CCPoint *)&unk_14090A768); v98 = v97; v99 = cocos2d::CCSprite::createWithSpriteFrameName("edit_freeRotateBtn_001.png"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v162, v98); v101 = EditorUI::getSpriteButton( a1, (__int64)v99, (__int64)EditorUI::activateRotationControl, 0, 1063675494, 1, v100, v9); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v101 + 64LL))(v101, 43); cocos2d::CCArray::addObject(v5, v101); v102 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v101 + 56LL))(v101); v103 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v102); v104 = cocos2d::CCString::getCString(v103); *(_OWORD *)Block = 0; v166 = 0; v167 = 0; v105 = -1; do ++v105; while ( v104[v105] ); sub_14003D230(Block, v104, v105); cocos2d::CCDictionary::setObject(*(_QWORD *)(a1 + 864), v101, Block); if ( v167 > 0xF ) { v106 = Block[0]; if ( v167 + 1 >= 0x1000 ) { v106 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v106 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v106); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v160, (const struct cocos2d::CCPoint *)&unk_14090A768); v108 = v107; v109 = cocos2d::CCSprite::createWithSpriteFrameName("edit_rotateSnapBtn_001.png"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v162, v108); v111 = EditorUI::getSpriteButton( a1, (__int64)v109, (__int64)EditorUI::transformObjectCall, 0, 1063675494, 1, v110, v9); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v111 + 64LL))(v111, 44); cocos2d::CCArray::addObject(v5, v111); v112 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v111 + 56LL))(v111); v113 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v112); v114 = cocos2d::CCString::getCString(v113); *(_OWORD *)Block = 0; v166 = 0; v167 = 0; v115 = -1; do ++v115; while ( v114[v115] ); sub_14003D230(Block, v114, v115); cocos2d::CCDictionary::setObject(*(_QWORD *)(a1 + 864), v111, Block); if ( v167 > 0xF ) { v116 = Block[0]; if ( v167 + 1 >= 0x1000 ) { v116 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v116 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v116); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v160, (const struct cocos2d::CCPoint *)&unk_14090A768); v118 = v117; v119 = cocos2d::CCSprite::createWithSpriteFrameName("edit_scaleBtn_001.png"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v162, v118); v121 = EditorUI::getSpriteButton( a1, (__int64)v119, (__int64)EditorUI::activateScaleControl, 0, 1063675494, 1, v120, v9); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v121 + 64LL))(v121, 45); cocos2d::CCArray::addObject(v5, v121); v122 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v121 + 56LL))(v121); v123 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v122); v124 = cocos2d::CCString::getCString(v123); *(_OWORD *)Block = 0; v166 = 0; v167 = 0; v125 = -1; do ++v125; while ( v124[v125] ); sub_14003D230(Block, v124, v125); cocos2d::CCDictionary::setObject(*(_QWORD *)(a1 + 864), v121, Block); if ( v167 > 0xF ) { v126 = Block[0]; if ( v167 + 1 >= 0x1000 ) { v126 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v126 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v126); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v160, (const struct cocos2d::CCPoint *)&unk_14090A768); v128 = v127; v129 = cocos2d::CCSprite::createWithSpriteFrameName("edit_scaleXYBtn_001.png"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v162, v128); v131 = EditorUI::getSpriteButton( a1, (__int64)v129, (__int64)EditorUI::activateScaleControl, 0, 1063675494, 1, v130, v9); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v131 + 64LL))(v131, 46); cocos2d::CCArray::addObject(v5, v131); v132 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v131 + 56LL))(v131); v133 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v132); v134 = cocos2d::CCString::getCString(v133); *(_OWORD *)Block = 0; v166 = 0; v167 = 0; v135 = -1; do ++v135; while ( v134[v135] ); sub_14003D230(Block, v134, v135); cocos2d::CCDictionary::setObject(*(_QWORD *)(a1 + 864), v131, Block); sub_14003D310((__int64)Block); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v160, (const struct cocos2d::CCPoint *)&unk_14090A768); v137 = v136; v138 = cocos2d::CCSprite::createWithSpriteFrameName("edit_warpBtn_001.png"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v162, v137); v140 = EditorUI::getSpriteButton( a1, (__int64)v138, (__int64)EditorUI::activateTransformControl, 0, 1063675494, 1, v139, v9); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v140 + 64LL))(v140, 47); cocos2d::CCArray::addObject(v5, v140); v141 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v140 + 56LL))(v140); v142 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v141); v143 = cocos2d::CCString::getCString(v142); *(_OWORD *)Block = 0; v166 = 0; v167 = 0; do ++v84; while ( v143[v84] ); sub_14003D230(Block, v143, v84); cocos2d::CCDictionary::setObject(*(_QWORD *)(a1 + 864), v140, Block); if ( v167 > 0xF ) { v144 = Block[0]; if ( v167 + 1 >= 0x1000 ) { v144 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v144 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v144); } v166 = 0; v167 = 15; LOBYTE(Block[0]) = 0; if ( !GameVariable ) return EditorUI::createDpadMoveMenu(a1, v5); v145 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v160 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v160); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v145 = qword_14090BFD0; } *(_OWORD *)Src = 0; v169 = 3; v170 = 15; LODWORD(Src[0]) = 6256231; sub_140044D80(Src, "0049", 4u); v146 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v145 + 432), Src); v147 = cocos2d::CCString::intValue(v146); if ( v170 > 0xF ) { v148 = Src[0]; if ( v170 + 1 >= 0x1000 ) { v148 = *((void **)Src[0] - 1); if ( (unsigned __int64)((char *)Src[0] - (char *)v148 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v148); } v169 = 0; v170 = 15; LOBYTE(Src[0]) = 0; v149 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v160 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v160); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v149 = qword_14090BFD0; } *(_OWORD *)Block = 0; v166 = 3; v167 = 15; LODWORD(Block[0]) = 6256231; sub_140044D80(Block, "0050", 4u); v150 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v149 + 432), Block); v152 = cocos2d::CCString::intValue(v150); if ( v167 > 0xF ) { v153 = Block[0]; if ( v167 + 1 >= 0x1000 ) { v153 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v153 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v153); } v154 = *(float *)(a1 + 904); v155 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v151); v156 = (float)(cocos2d::CCDirector::getScreenBottom(v155) + v154) - 6.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v160, v163 * 0.5, v156); v158 = EditButtonBar::create(v5, v157, 0, 0, v147, v152); *(_QWORD *)(a1 + 880) = v158; return (*(__int64 (__fastcall **)(__int64, cocos2d::CCArray **, __int64))(*(_QWORD *)a1 + 456LL))(a1, v158, 10); }