// // sub_1008FC5C0 from 0x1008fc5c0 to 0x1008fc6f3 (307 bytes) // // 2 xrefs: // > sub_1008FB260 @ 0x1008fb92e // > sub_1008FC480 @ 0x1008fc585 // // 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 12:38:00 +0000 // __int64 __fastcall sub_1008FC5C0(__int64 a1) { __int64 result; // rax __int64 v3; // rdi int v4; // r12d __int64 v5; // rdi __int64 v6; // r14 __int64 v7; // rdi __int64 v8; // rdi int v9; // r14d __int64 v10; // rdi __int64 v11; // rbx int v12; // r14d __int16 v13; // [rsp+8h] [rbp-28h] BYREF char v14; // [rsp+Ah] [rbp-26h] __int16 v15; // [rsp+Ch] [rbp-24h] BYREF char v16; // [rsp+Eh] [rbp-22h] result = *(_QWORD *)(a1 + 1064); v3 = *(_QWORD *)(a1 + 1072); v4 = *(_DWORD *)(result + 316); if ( v3 ) { result = (*(__int64 (__fastcall **)(__int64, bool))(*(_QWORD *)v3 + 1056LL))(v3, v4 <= 0); v5 = *(_QWORD *)(a1 + 1072); v6 = *(_QWORD *)(a1 + 1088); v15 = v4 <= 0 ? -1 : 0x7D7D; v16 = (unsigned int)(v4 <= 0 ? -1 : 0x7D7D7D) >> 16; if ( v5 ) result = sub_10001F080(v5, (__int64)&v15); if ( v6 ) result = (*(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v6 + 1072LL))(v6, &v15); } if ( !*(_BYTE *)(a1 + 1104) && *(_BYTE *)(a1 + 1105) == 1 ) { *(_BYTE *)(a1 + 1105) = 0; v7 = *(_QWORD *)(a1 + 1080); if ( v7 ) result = CCMenuItemToggler::toggle(v7, 0); } v8 = *(_QWORD *)(a1 + 1080); if ( v8 ) { v9 = *(_BYTE *)(a1 + 1104) & (v4 <= 0); result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v8 + 1056LL))( v8, *(_BYTE *)(a1 + 1104) & (v4 <= 0)); v10 = *(_QWORD *)(a1 + 1080); v11 = *(_QWORD *)(a1 + 1096); v12 = -v9 | 0x7D7D7D; v13 = v12; v14 = BYTE2(v12); if ( v10 ) result = sub_10001F080(v10, (__int64)&v13); if ( v11 ) return (*(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v11 + 1072LL))(v11, &v13); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source