// // ColorSelectPopup::updateCopyColor from 0x14012c810 to 0x14012ca7b (619 bytes) // // 7 xrefs: // > ColorSelectPopup::textChanged @ 0x14012be79 // > ColorSelectPopup::onUpdateCopyColor @ 0x14012c459 // > ColorSelectPopup::onToggleHSVMode @ 0x14012c50b // > ColorSelectPopup::colorSelectClosed @ 0x14012c7ec // > @ 0x1408987d8 // > @ 0x1408987e8 // > @ 0x140916ca0 // // 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:27:01 +0000 // void __fastcall ColorSelectPopup::updateCopyColor(__int64 a1) { _DWORD *v1; // rdx int v3; // r8d int v4; // ecx int v5; // ecx int v6; // ecx int v7; // edi int v8; // edi int v9; // edi int v10; // edi int v11; // ecx int v12; // edi int v13; // edi int v14; // edi cocos2d::CCArray *v15; // rcx unsigned int v16; // ebp struct cocos2d::CCObject *v17; // rax struct cocos2d::CCObject *v18; // r8 int v19; // ecx int v20; // ecx int v21; // ecx int v22; // ecx int v23; // ecx int v24; // eax __int64 v25; // rcx int v26; // edi v1 = *(_DWORD **)(a1 + 680); if ( !v1 ) { v15 = *(cocos2d::CCArray **)(a1 + 688); if ( !v15 ) { v25 = *(_QWORD *)(a1 + 1128); if ( v25 ) { v26 = 0; if ( *(_DWORD *)(v25 + 92) != *(_DWORD *)(a1 + 1160) ) v26 = *(_DWORD *)(a1 + 1160); *(_DWORD *)(v25 + 120) = v26; } return; } v16 = 0; if ( !cocos2d::CCArray::count(v15) ) return; while ( 1 ) { v17 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 688), v16); v18 = v17; v19 = *((_DWORD *)v17 + 259); if ( v19 > 744 ) break; if ( v19 == 744 ) { v22 = 1003; } else { v20 = v19 - 29; if ( v20 ) { v21 = v20 - 1; if ( v21 ) { if ( v21 != 75 ) goto LABEL_43; v22 = 1004; } else { v22 = 1001; } } else { v22 = 1000; } } LABEL_46: v24 = 0; if ( v22 != *(_DWORD *)(a1 + 1160) ) v24 = *(_DWORD *)(a1 + 1160); ++v16; *((_DWORD *)v18 + 411) = v24; if ( v16 >= cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 688)) ) return; } v23 = v19 - 900; if ( !v23 ) { v22 = 1009; goto LABEL_46; } if ( v23 == 15 ) { v22 = 1002; goto LABEL_46; } LABEL_43: v22 = *((_DWORD *)v17 + 258); goto LABEL_46; } v3 = *(_DWORD *)(a1 + 1160); v4 = v1[259]; if ( v4 > 744 ) { v11 = v4 - 900; if ( v11 ) { if ( v11 != 15 ) { LABEL_21: v12 = 0; if ( v1[258] != v3 ) v12 = v3; v1[411] = v12; return; } v13 = 0; if ( v3 != 1002 ) v13 = v3; v1[411] = v13; } else { v14 = 0; if ( v3 != 1009 ) v14 = v3; v1[411] = v14; } } else if ( v4 == 744 ) { v10 = 0; if ( v3 != 1003 ) v10 = v3; v1[411] = v10; } else { v5 = v4 - 29; if ( v5 ) { v6 = v5 - 1; if ( v6 ) { if ( v6 == 75 ) { v7 = 0; if ( v3 != 1004 ) v7 = v3; v1[411] = v7; return; } goto LABEL_21; } v8 = 0; if ( v3 != 1001 ) v8 = v3; v1[411] = v8; } else { v9 = 0; if ( v3 != 1000 ) v9 = v3; v1[411] = v9; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source