// // ColorAction::setupFromMap from 0x10000df28 to 0x10000e670 (1864 bytes) // // 1 xrefs: // > ColorAction::setupFromString @ 0x10000def0 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall ColorAction::setupFromMap(ColorAction *a1, std::map *a2) { __int64 v4; // x8 const char *v5; // x0 unsigned __int8 v6; // w21 __int64 v7; // x8 const char *v8; // x0 __int16 v9; // w22 __int64 v10; // x8 const char *v11; // x0 GLubyte v12; // w23 __int64 v13; // x8 const char *v14; // x0 unsigned __int8 v15; // w21 __int64 v16; // x8 const char *v17; // x0 __int16 v18; // w22 __int64 v19; // x8 const char *v20; // x0 GLubyte v21; // w23 __int64 v22; // x8 const char *v23; // x0 __int64 v24; // x8 const char *v25; // x0 float v26; // s0 __int64 v27; // x8 const char *v28; // x0 __int64 v29; // x8 const char *v30; // x0 __int64 v31; // x8 const char *v32; // x0 __int64 v33; // x8 const char *v34; // x0 int v35; // w21 __int64 v36; // x8 const char *v37; // x0 float v38; // s0 __int64 v39; // x8 const char *v40; // x0 float v41; // s0 __int64 v42; // x8 const char *v43; // x0 __int64 v44; // x0 __int64 v45; // x1 __int64 v46; // x8 const char *v47; // x0 float v48; // s0 __int64 v49; // x8 const char *v50; // x0 void *__p[2]; // [xsp+8h] [xbp-58h] BYREF char v52; // [xsp+1Fh] [xbp-41h] char v53; // [xsp+27h] [xbp-39h] BYREF void **v54; // [xsp+28h] [xbp-38h] BYREF sub_100009900(__p, "1"); v54 = __p; v4 = sub_100017FB8(a2, __p, &unk_10063553F, &v54, &v53); v5 = (const char *)(v4 + 56); if ( *(char *)(v4 + 79) < 0 ) v5 = *(const char **)v5; v6 = atoi(v5); if ( v52 < 0 ) operator delete(__p[0]); sub_100009900(__p, "2"); v54 = __p; v7 = sub_100017FB8(a2, __p, &unk_10063553F, &v54, &v53); v8 = (const char *)(v7 + 56); if ( *(char *)(v7 + 79) < 0 ) v8 = *(const char **)v8; v9 = atoi(v8); if ( v52 < 0 ) operator delete(__p[0]); sub_100009900(__p, "3"); v54 = __p; v10 = sub_100017FB8(a2, __p, &unk_10063553F, &v54, &v53); v11 = (const char *)(v10 + 56); if ( *(char *)(v10 + 79) < 0 ) v11 = *(const char **)v11; v12 = atoi(v11); if ( v52 < 0 ) operator delete(__p[0]); a1->m_fromColor.b = v12; *(_WORD *)&a1->m_fromColor.r = v6 | (unsigned __int16)(v9 << 8); sub_100009900(__p, "11"); v54 = __p; v13 = sub_100017FB8(a2, __p, &unk_10063553F, &v54, &v53); v14 = (const char *)(v13 + 56); if ( *(char *)(v13 + 79) < 0 ) v14 = *(const char **)v14; v15 = atoi(v14); if ( v52 < 0 ) operator delete(__p[0]); sub_100009900(__p, "12"); v54 = __p; v16 = sub_100017FB8(a2, __p, &unk_10063553F, &v54, &v53); v17 = (const char *)(v16 + 56); if ( *(char *)(v16 + 79) < 0 ) v17 = *(const char **)v17; v18 = atoi(v17); if ( v52 < 0 ) operator delete(__p[0]); sub_100009900(__p, "13"); v54 = __p; v19 = sub_100017FB8(a2, __p, &unk_10063553F, &v54, &v53); v20 = (const char *)(v19 + 56); if ( *(char *)(v19 + 79) < 0 ) v20 = *(const char **)v20; v21 = atoi(v20); if ( v52 < 0 ) operator delete(__p[0]); a1->m_toColor.b = v21; *(_WORD *)&a1->m_toColor.r = v15 | (unsigned __int16)(v18 << 8); sub_100009900(__p, "4"); v54 = __p; v22 = sub_100017FB8(a2, __p, &unk_10063553F, &v54, &v53); v23 = (const char *)(v22 + 56); if ( *(char *)(v22 + 79) < 0 ) v23 = *(const char **)v23; a1->m_playerColor = atoi(v23); if ( v52 < 0 ) operator delete(__p[0]); sub_100009900(__p, "16"); v54 = __p; v24 = sub_100017FB8(a2, __p, &unk_10063553F, &v54, &v53); v25 = (const char *)(v24 + 56); if ( *(char *)(v24 + 79) < 0 ) v25 = *(const char **)v25; v26 = atof(v25); a1->m_duration = v26; if ( v52 < 0 ) operator delete(__p[0]); if ( !a1->m_colorID ) { sub_100009900(__p, "6"); v54 = __p; v27 = sub_100017FB8(a2, __p, &unk_10063553F, &v54, &v53); v28 = (const char *)(v27 + 56); if ( *(char *)(v27 + 79) < 0 ) v28 = *(const char **)v28; a1->m_colorID = atoi(v28); if ( v52 < 0 ) operator delete(__p[0]); } sub_100009900(__p, "5"); v54 = __p; v29 = sub_100017FB8(a2, __p, &unk_10063553F, &v54, &v53); v30 = (const char *)(v29 + 56); if ( *(char *)(v29 + 79) < 0 ) v30 = *(const char **)v30; a1->m_blending = atof(v30) != 0.0; if ( v52 < 0 ) operator delete(__p[0]); sub_100009900(__p, "17"); v54 = __p; v31 = sub_100017FB8(a2, __p, &unk_10063553F, &v54, &v53); v32 = (const char *)(v31 + 56); if ( *(char *)(v31 + 79) < 0 ) v32 = *(const char **)v32; a1->m_copyOpacity = atoi(v32) != 0; if ( v52 < 0 ) operator delete(__p[0]); a1->m_fromOpacity = 1.0; sub_100009900(__p, "8"); v54 = __p; v33 = sub_100017FB8(a2, __p, &unk_10063553F, &v54, &v53); v34 = (const char *)(v33 + 56); if ( *(char *)(v33 + 79) < 0 ) v34 = *(const char **)v34; v35 = atoi(v34); if ( v52 < 0 ) operator delete(__p[0]); if ( v35 >= 1 ) { sub_100009900(__p, "7"); v54 = __p; v36 = sub_100017FB8(a2, __p, &unk_10063553F, &v54, &v53); v37 = (const char *)(v36 + 56); if ( *(char *)(v36 + 79) < 0 ) v37 = *(const char **)v37; v38 = atof(v37); a1->m_fromOpacity = v38; if ( v52 < 0 ) operator delete(__p[0]); } sub_100009900(__p, "15"); v54 = __p; v39 = sub_100017FB8(a2, __p, &unk_10063553F, &v54, &v53); v40 = (const char *)(v39 + 56); if ( *(char *)(v39 + 79) < 0 ) v40 = *(const char **)v40; v41 = atof(v40); a1->m_toOpacity = v41; if ( v52 < 0 ) operator delete(__p[0]); sub_100009900(__p, "9"); v54 = __p; v42 = sub_100017FB8(a2, __p, &unk_10063553F, &v54, &v53); v43 = (const char *)(v42 + 56); if ( *(char *)(v42 + 79) < 0 ) v43 = *(const char **)v43; a1->m_copyID = atoi(v43); if ( v52 < 0 ) operator delete(__p[0]); sub_100009900(__p, "10"); v54 = __p; v44 = sub_100017FB8(a2, __p, &unk_10063553F, &v54, &v53); *(_QWORD *)&a1->m_copyHSV.h = GameToolbox::hsvFromString(v44 + 56, "a"); *(_QWORD *)&a1->m_copyHSV.v = v45; if ( v52 < 0 ) operator delete(__p[0]); sub_100009900(__p, "14"); v54 = __p; v46 = sub_100017FB8(a2, __p, &unk_10063553F, &v54, &v53); v47 = (const char *)(v46 + 56); if ( *(char *)(v46 + 79) < 0 ) v47 = *(const char **)v47; v48 = atof(v47); a1->m_deltaTime = v48; if ( v52 < 0 ) operator delete(__p[0]); sub_100009900(__p, "19"); v54 = __p; v49 = sub_100017FB8(a2, __p, &unk_10063553F, &v54, &v53); v50 = (const char *)(v49 + 56); if ( *(char *)(v49 + 79) < 0 ) v50 = *(const char **)v50; a1->m_paused = atoi(v50) != 0; if ( v52 < 0 ) operator delete(__p[0]); }
GD Web Decomp Icon

GD Web Decomp

Raw Source