// // sub_1800985F0 from 0x1800985f0 to 0x180098703 (275 bytes) // // 5 xrefs: // > sub_180054CE0 @ 0x180054d4d // > @ 0x1801671e8 // > @ 0x180168ea8 // > @ 0x180169890 // > @ 0x1801faa94 // // 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 // __int64 __fastcall sub_1800985F0(__int64 a1, __int64 a2, __int64 a3, __int64 a4) { __int64 result; // rax __int64 v6; // rcx __int64 v7; // rcx __int64 v8; // rdx __int64 v9; // r8 __int64 v10; // [rsp+40h] [rbp+8h] BYREF if ( !*(_QWORD *)(a1 + 168) ) return 0; if ( (*(_DWORD *)(a1 + 100) & 0x20) != 0 ) return 10; if ( (*(_DWORD *)(a1 + 100) & 0x40) != 0 ) return 8; v6 = *(_QWORD *)(a1 + 168); if ( !v6 || (result = sub_1800FD2E0(v6, a1), !(_DWORD)result) ) { v7 = *(_QWORD *)(a1 + 168); if ( (*(_DWORD *)(a1 + 100) & 0x300) != 0 ) { LOBYTE(a2) = 1; sub_1800FC980(v7, a2); result = sub_180096560(a1, nullptr, 0, 1, 1u, 4u); if ( !(_DWORD)result ) { LOBYTE(v8) = 1; return sub_180098710(a1, v8); } return result; } LOBYTE(a4) = 1; result = sub_1800FCF40(v7, &v10, 24, a4); if ( !(_DWORD)result ) { _InterlockedOr((volatile signed __int32 *)(a1 + 100), 0x400u); LOBYTE(v9) = 1; *(_BYTE *)v10 = 5; *(_QWORD *)(v10 + 8) = a1; *(_BYTE *)(v10 + 16) = 1; *(_BYTE *)(v10 + 17) = 1; *(_BYTE *)(v10 + 18) = 1; result = sub_1800FD370(*(_QWORD *)(a1 + 168), v10, v9); if ( !(_DWORD)result ) return 0; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source