// // sub_180089200 from 0x180089200 to 0x180089266 (102 bytes) // // 8 xrefs: // > sub_180084AF0 @ 0x180084be5 // > sub_180084AF0 @ 0x180084c34 // > sub_180084AF0 @ 0x180084d0b // > sub_180084AF0 @ 0x180084fcd // > sub_180084AF0 @ 0x18008505b // > sub_180084AF0 @ 0x180085088 // > sub_180084AF0 @ 0x180085098 // > @ 0x1801bf910 // // 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:22:05 +0000 // __int64 __fastcall sub_180089200(__int64 a1, char a2) { __int64 v4; // rcx __int64 result; // rax v4 = *(_QWORD *)(a1 + 10248); result = v4 + 1; if ( (unsigned __int64)(v4 + 1) <= 0x800 ) { *(_BYTE *)(v4 + a1) = a2; } else { sub_180083D00(a1, a1, v4); result = 0; *(_QWORD *)(a1 + 10248) = 0; *(_BYTE *)a1 = a2; } ++*(_QWORD *)(a1 + 10248); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source