// // EditorUI::ccTouchMoved from 0x1401c0500 to 0x1401c0ced (2029 bytes) // // 3 xrefs: // > @ 0x1407511c8 // > @ 0x14091a69c // > @ 0x14091a6a8 // // 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:02 +0000 // // Hidden C++ exception states: #wind=1 void __fastcall EditorUI::ccTouchMoved(__int64 a1, __int64 a2, __int64 a3) { int v6; // eax __int64 v7; // rcx __int64 v8; // rcx __int64 v9; // rax __int64 v10; // rcx __int64 v11; // rax __int64 v12; // rax __int64 v13; // rax int v14; // eax __int64 v15; // rcx __int64 v16; // rax __int64 v17; // rbx __int64 v18; // rax const struct cocos2d::CCPoint *v19; // r8 float v20; // xmm0_4 unsigned __int32 v21; // xmm3_4 float v22; // xmm6_4 __int64 v23; // rax __int64 v24; // rcx __int64 v25; // rcx __int64 v26; // rax __int64 v27; // rax __int64 v28; // rax const struct cocos2d::CCPoint *v29; // r8 __int64 v30; // rax __int64 v31; // rcx float v32; // xmm0_4 __int64 v33; // rax unsigned int i; // esi struct cocos2d::CCObject *v35; // rbx __int64 v36; // rax __int64 v37; // rbx __int64 v38; // rax __int64 v39; // rax __int64 v40; // rax __int64 v41; // rax const struct cocos2d::CCPoint *v42; // rax const struct cocos2d::CCPoint *v43; // r8 const struct cocos2d::CCPoint *v44; // rax _BYTE v45[8]; // [rsp+20h] [rbp-30h] BYREF _BYTE v46[8]; // [rsp+28h] [rbp-28h] BYREF _BYTE v47[16]; // [rsp+30h] [rbp-20h] BYREF void *v48; // [rsp+80h] [rbp+30h] BYREF char v49; // [rsp+88h] [rbp+38h] BYREF char v50; // [rsp+98h] [rbp+48h] BYREF v6 = *(_DWORD *)(a2 + 56); if ( *(_DWORD *)(a1 + 424) == v6 ) { cocos2d::CCNode::stopActionByTag((cocos2d::CCNode *)(a1 - 320), 123); v7 = *(_QWORD *)(a1 + 488); LABEL_3: (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)(v7 + 320) + 16LL))(v7 + 320, a2, a3); return; } if ( *(_DWORD *)(a1 + 428) == v6 ) { cocos2d::CCNode::stopActionByTag((cocos2d::CCNode *)(a1 - 320), 123); v7 = *(_QWORD *)(a1 + 512); goto LABEL_3; } if ( *(_DWORD *)(a1 + 440) == v6 ) { cocos2d::CCNode::stopActionByTag((cocos2d::CCNode *)(a1 - 320), 123); v7 = *(_QWORD *)(a1 + 520); goto LABEL_3; } v8 = *(_QWORD *)(a1 + 1192); if ( *(_DWORD *)(v8 + 2204) == 1 ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)(*(_QWORD *)(v8 + 13888) + 320LL) + 16LL))(*(_QWORD *)(v8 + 13888) + 320LL); return; } if ( *(_BYTE *)(a1 + 476) ) { cocos2d::CCPoint::operator+(a1 + 448, v47, a1 + 456); cocos2d::CCPoint::operator/(v9, v45); cocos2d::CCTouch::getLocationInView(a2, &v48); v11 = cocos2d::CCDirector::sharedDirector(v10); v12 = cocos2d::CCDirector::convertToGL(v11, v47, &v48); cocos2d::CCPoint::operator=(&v48, v12); cocos2d::CCNode::convertToWorldSpace(a1 - 320, v47, &v48); cocos2d::CCPoint::operator=(&v48, v13); v14 = *(_DWORD *)(a2 + 56); if ( v14 == *(_DWORD *)(a1 + 432) ) { v15 = a1 + 448; } else { if ( v14 != *(_DWORD *)(a1 + 444) ) { LABEL_16: cocos2d::CCPoint::operator+(a1 + 448, v47, a1 + 456); cocos2d::CCPoint::operator/(v16, &v50); v17 = *(_QWORD *)(*(_QWORD *)(a1 + 1192) + 4296LL); cocos2d::CCPoint::operator-(&v50, v46, v45); v18 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v17 + 200LL))(v17); cocos2d::CCPoint::operator+(v18, v47, v46); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v17 + 184LL))(v17, v47); v20 = cocos2d::ccpDistance((cocos2d *)(a1 + 448), (const struct cocos2d::CCPoint *)(a1 + 456), v19); v21 = _mm_load_si128((const __m128i *)&xmmword_140836C90).m128i_u32[0]; if ( *(_BYTE *)(a1 + 477) ) { LABEL_20: v22 = fminf((float)(v20 / *(float *)(a1 + 464)) * *(float *)(a1 + 472), 10.0); if ( v22 <= 0.1 ) v22 = 0.1; if ( COERCE_FLOAT(COERCE_UNSIGNED_INT(v22 - 1.0) & v21) <= 0.02 ) v22 = 1.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, (const struct cocos2d::CCPoint *)&v50); EditorUI::updateZoom(a1 - 320, v22, v23); return; } if ( v20 > 1.0 && COERCE_FLOAT(COERCE_UNSIGNED_INT(v20 - *(float *)(a1 + 464)) & v21) >= *(float *)(a1 + 468) ) { *(_BYTE *)(a1 + 477) = 1; *(float *)(a1 + 464) = v20; goto LABEL_20; } EditorUI::constrainGameLayerPosition(a1 - 320, -100.0, -100.0); v24 = a1 - 320; LABEL_60: EditorUI::updateSlider(v24); return; } v15 = a1 + 456; } cocos2d::CCPoint::operator=(v15, &v48); goto LABEL_16; } if ( *(_DWORD *)(a1 + 432) != v6 ) return; cocos2d::CCTouch::getLocationInView(a2, &v49); v26 = cocos2d::CCDirector::sharedDirector(v25); v27 = cocos2d::CCDirector::convertToGL(v26, &v48, &v49); cocos2d::CCPoint::operator=(&v49, v27); cocos2d::CCNode::convertToWorldSpace(a1 - 320, &v48, &v49); cocos2d::CCPoint::operator=(&v49, v28); cocos2d::CCPoint::operator=(a1 + 448, &v49); if ( *(_BYTE *)(a1 + 478) ) return; if ( *(_BYTE *)(a1 + 593) ) { if ( *(_BYTE *)(a1 + 1265) ) goto LABEL_63; if ( fabs(cocos2d::ccpDistance((cocos2d *)&v49, (const struct cocos2d::CCPoint *)(a1 + 1200), v29)) >= 4.0 ) *(_BYTE *)(a1 + 1265) = 1; if ( *(_BYTE *)(a1 + 1265) ) { LABEL_63: cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(*(_QWORD *)(a1 + 1192) + 4296LL), &v48, &v49); cocos2d::CCPoint::operator=(&v49, v30); if ( !cocos2d::CCPoint::equals((cocos2d::CCPoint *)&v49, (const struct cocos2d::CCPoint *)(a1 + 1232)) ) { if ( !*(_BYTE *)(a1 + 591) ) { if ( *(_QWORD *)(a1 + 1256) ) { v31 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v48 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v48); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v31 = qword_14090BFD0; } if ( (unsigned __int8)GameManager::getGameVariable(v31, "0008") ) { v32 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1256) + 360LL))(*(_QWORD *)(a1 + 1256)); if ( (int)v32 == 90 * ((int)v32 / 90) ) { LOWORD(v48) = -25601; BYTE2(v48) = 50; (*(void (__fastcall **)(_QWORD, void **))(**(_QWORD **)(a1 + 1256) + 1344LL))( *(_QWORD *)(a1 + 1256), &v48); } } } if ( !*(_BYTE *)(a1 + 591) ) { v33 = EditorSFXManager::sharedState(); EditorSFXManager::playAction(v33, 104); } } *(_BYTE *)(a1 + 591) = 1; cocos2d::CCPoint::operator-(&v49, &v50, a1 + 1232); if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 624)) ) { for ( i = 0; i < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 624)); ++i ) { v35 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 624), i); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v48, (const struct cocos2d::CCPoint *)&v50); EditorUI::moveObject(a1 - 320, v35, v36); } } else { v37 = *(_QWORD *)(a1 + 1248); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v48, (const struct cocos2d::CCPoint *)&v50); EditorUI::moveObject(a1 - 320, v37, v38); } cocos2d::CCPoint::operator=(a1 + 1232, &v49); cocos2d::CCPoint::operator+(a1 + 496, &v48, &v50); cocos2d::CCPoint::operator=(a1 + 496, &v48); if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 488) + 344LL))(*(_QWORD *)(a1 + 488)) ) { v39 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 488) + 200LL))(*(_QWORD *)(a1 + 488)); cocos2d::CCPoint::operator+(v39, &v48, &v50); (*(void (__fastcall **)(_QWORD, void **))(**(_QWORD **)(a1 + 488) + 184LL))(*(_QWORD *)(a1 + 488), &v48); cocos2d::CCNode::stopActionByTag((cocos2d::CCNode *)(a1 - 320), 123); return; } if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 512) + 344LL))(*(_QWORD *)(a1 + 512)) ) { v40 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 512) + 200LL))(*(_QWORD *)(a1 + 512)); cocos2d::CCPoint::operator+(v40, &v48, &v50); (*(void (__fastcall **)(_QWORD, void **))(**(_QWORD **)(a1 + 512) + 184LL))(*(_QWORD *)(a1 + 512), &v48); cocos2d::CCNode::stopActionByTag((cocos2d::CCNode *)(a1 - 320), 123); return; } if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 520) + 344LL))(*(_QWORD *)(a1 + 520)) ) { v41 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 520) + 200LL))(*(_QWORD *)(a1 + 520)); cocos2d::CCPoint::operator+(v41, &v48, &v50); (*(void (__fastcall **)(_QWORD, void **))(**(_QWORD **)(a1 + 520) + 184LL))(*(_QWORD *)(a1 + 520), &v48); GJTransformControl::refreshControl(*(_QWORD *)(a1 + 520)); } } } cocos2d::CCNode::stopActionByTag((cocos2d::CCNode *)(a1 - 320), 123); } else { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v48, (const struct cocos2d::CCPoint *)&v49); if ( EditorUI::swipeToPosition(a1 - 320, v42) ) return; if ( *(_BYTE *)(a1 + 1264) ) { cocos2d::CCPoint::operator-(&v49, &v48, a1 + 1232); v44 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 1192) + 4296LL) + 200LL))(*(_QWORD *)(*(_QWORD *)(a1 + 1192) + 4296LL)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, v44); cocos2d::CCPoint::operator+(&v50, v47, &v48); (*(void (__fastcall **)(_QWORD, _BYTE *))(**(_QWORD **)(*(_QWORD *)(a1 + 1192) + 4296LL) + 184LL))( *(_QWORD *)(*(_QWORD *)(a1 + 1192) + 4296LL), v47); EditorUI::constrainGameLayerPosition(a1 - 320, -100.0, -100.0); cocos2d::CCPoint::operator=(a1 + 1232, &v49); v24 = a1 - 320; goto LABEL_60; } if ( fabs(cocos2d::ccpDistance((cocos2d *)&v49, (const struct cocos2d::CCPoint *)(a1 + 1200), v43)) >= 20.0 ) { cocos2d::CCPoint::operator=(a1 + 1232, &v49); *(_BYTE *)(a1 + 1264) = 1; cocos2d::CCNode::stopActionByTag((cocos2d::CCNode *)(a1 - 320), 123); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source