//
// sub_1800E4DC8 from 0x1800e4dc8 to 0x1800e4e01 (57 bytes)
//
// 3 xrefs:
// > sub_1800E5488 @ 0x1800e54b2
// > sub_1800E55A0 @ 0x1800e55cc
// > ??> @ 0x1801c54e4
//
// 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:38 +0000
//
char sub_1800E4DC8()
{
int v0; // eax
PVOID StackBase; // rcx
signed __int64 v2; // rax
LOBYTE(v0) = __uncaught_exception();
if ( v0 )
{
StackBase = NtCurrentTeb()->NtTib.StackBase;
while ( 1 )
{
v2 = _InterlockedCompareExchange64(&qword_1801B6740, (signed __int64)StackBase, 0);
if ( !v2 )
break;
if ( StackBase == (PVOID)v2 )
return 1;
}
}
return 0;
}