// // SetGroupIDLayer::determineStartValues from 0x1405915c0 to 0x140591920 (864 bytes) // // 6 xrefs: // > SetGroupIDLayer::init @ 0x14058f8fd // > SetGroupIDLayer::onPaste @ 0x140591ad0 // > @ 0x1408dd848 // > @ 0x1408dd8b8 // > @ 0x14092cd44 // > @ 0x14092cd50 // // 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:34:32 +0000 // int __fastcall SetGroupIDLayer::determineStartValues(__int64 a1) { unsigned int v1; // r15d char v2; // di int v4; // r14d cocos2d::CCArray *v5; // r12 int v6; // esi int v7; // ebp int v8; // edi unsigned int v9; // r13d struct cocos2d::CCObject *v10; // rax int v11; // ecx __int64 v12; // rax int v13; // ebp int v14; // r14d int v15; // edi unsigned int v16; // esi int v17; // ecx __int64 v18; // rax int v19; // edi unsigned int v20; // esi int v21; // ecx __int64 v22; // rcx int v23; // esi struct cocos2d::CCObject *v24; // rax int v25; // edi int v26; // ecx bool v28; // [rsp+60h] [rbp+8h] char v29; // [rsp+68h] [rbp+10h] v1 = 0; v2 = 0; v4 = -100; *(_DWORD *)(a1 + 792) = 0; *(_DWORD *)(a1 + 756) = 0; *(_WORD *)(a1 + 805) = 0; if ( *(_QWORD *)(a1 + 672) ) { v5 = (cocos2d::CCArray *)cocos2d::CCArray::create(a1); cocos2d::CCArray::addObject(v5, *(struct cocos2d::CCObject **)(a1 + 672)); } else { v5 = *(cocos2d::CCArray **)(a1 + 680); } if ( v5 && cocos2d::CCArray::count(v5) ) { v29 = 0; v6 = -100; v28 = 1; *(_BYTE *)(a1 + 805) = 1; v7 = -100; v8 = -100; v9 = 0; if ( cocos2d::CCArray::count(v5) ) { do { v10 = cocos2d::CCArray::objectAtIndex(v5, v9); if ( !v29 ) { v11 = *((_DWORD *)v10 + 283); if ( v6 == -100 ) { v6 = *((_DWORD *)v10 + 283); if ( !v11 ) v6 = *((_DWORD *)v10 + 281); } else { if ( !v11 ) v11 = *((_DWORD *)v10 + 281); if ( v6 != v11 ) { v6 = -100; v29 = 1; } } } if ( v28 ) v28 = *((_DWORD *)v10 + 283) == 0; if ( *((_DWORD *)v10 + 314) == 1 ) { *(_BYTE *)(a1 + 752) = 1; if ( v7 == -100 ) { v7 = *((_DWORD *)v10 + 447); } else if ( v7 != *((_DWORD *)v10 + 447) ) { v7 = 0; } if ( v8 == -100 ) { v8 = *((_DWORD *)v10 + 448); } else if ( v8 != *((_DWORD *)v10 + 448) ) { v8 = 0; } } ++v9; } while ( v9 < cocos2d::CCArray::count(v5) ); if ( v7 != -100 ) *(_DWORD *)(a1 + 792) = v7; if ( v8 != -100 ) *(_DWORD *)(a1 + 756) = v8; v2 = v28; if ( v6 != -100 ) v4 = v6; } else { v2 = 1; } } *(_DWORD *)(a1 + 788) = v4; if ( v2 && v4 == -100 ) *(_DWORD *)(a1 + 788) = 0; v12 = *(_QWORD *)(a1 + 672); v13 = -1; v14 = -1; if ( v12 ) { v14 = *(__int16 *)(v12 + 1210); } else { v15 = -1; v16 = 0; if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 680)) ) { do { v17 = *((__int16 *)cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 680), v16) + 605); if ( v15 == -1 ) { v15 = v17; } else if ( v15 != v17 ) { goto LABEL_47; } ++v16; } while ( v16 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 680)) ); if ( v15 != -1 ) v14 = v15; } } LABEL_47: v18 = *(_QWORD *)(a1 + 672); *(_DWORD *)(a1 + 768) = v14; if ( v18 ) { v13 = *(__int16 *)(v18 + 1212); } else { v19 = -1; v20 = 0; if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 680)) ) { do { v21 = *((__int16 *)cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 680), v20) + 606); if ( v19 == -1 ) { v19 = v21; } else if ( v19 != v21 ) { goto LABEL_56; } ++v20; } while ( v20 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 680)) ); if ( v19 != -1 ) v13 = v19; } } LABEL_56: v22 = *(_QWORD *)(a1 + 672); v23 = -1000; *(_DWORD *)(a1 + 772) = v13; if ( v22 ) { LODWORD(v24) = *(_DWORD *)(v22 + 1136); if ( !(_DWORD)v24 ) LODWORD(v24) = *(_DWORD *)(v22 + 1056); *(_DWORD *)(a1 + 776) = (_DWORD)v24; } else { v25 = -1000; LODWORD(v24) = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 680)); if ( (_DWORD)v24 ) { do { v24 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 680), v1); v26 = *((_DWORD *)v24 + 284); if ( v25 == -1000 ) { v25 = *((_DWORD *)v24 + 284); if ( !v26 ) v25 = *((_DWORD *)v24 + 264); } else { if ( !v26 ) v26 = *((_DWORD *)v24 + 264); if ( v25 != v26 ) goto LABEL_70; } ++v1; LODWORD(v24) = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 680)); } while ( v1 < (unsigned int)v24 ); if ( v25 != -1000 ) v23 = v25; } LABEL_70: *(_DWORD *)(a1 + 776) = v23; } return (int)v24; }
GD Web Decomp Icon

GD Web Decomp

Raw Source