// // sub_1800C8C40 from 0x1800c8c40 to 0x1800c8d2d (237 bytes) // // 2 xrefs: // > @ 0x18016c580 // > @ 0x1801fe298 // // 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 10:54:06 +0000 // __int64 __fastcall sub_1800C8C40(__int64 a1, bool *a2) { int v5; // eax unsigned int v6; // ecx __int64 v7; // rcx bool v8; // al if ( !a2 ) return 31; v5 = *(_DWORD *)(a1 + 60); if ( (v5 & 0x10) == 0 ) { v6 = *(_DWORD *)(a1 + 776); if ( v6 == -1 ) { v7 = *(_QWORD *)(a1 + 744); if ( v7 || (v7 = *(_QWORD *)(a1 + 736)) != 0 ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 48LL))(v7); v8 = !*a2; *a2 = v8; } else if ( *(_QWORD *)(a1 + 664) ) { if ( *(_QWORD *)(a1 + 40) ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)(a1 + 112) + 48LL))(a1 + 112); v8 = !*a2; *a2 = v8; } else { v8 = 0; *a2 = 0; } } else { *a2 = 1; v8 = 1; } if ( !v8 ) { *(_DWORD *)(a1 + 60) &= 0xFFFFFFAF; return 0; } return 0; } if ( (v5 & 0x10000) != 0 || *(_DWORD *)(*(_QWORD *)(a1 + 8) + 69856LL) >= v6 ) { *a2 = 0; *(_DWORD *)(a1 + 60) &= 0xFFFFFFAF; return 0; } } *a2 = 1; return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source