//
// sub_1800B3C40 from 0x1800b3c40 to 0x1800b3d14 (212 bytes)
//
// 4 xrefs:
// > sub_1800D4520 @ 0x1800d4537
// > ??> @ 0x180189434
// > ??> @ 0x180189444
// > ??> @ 0x1801fce7c
//
// 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 sub_1800B3C40()
{
char *v0; // rbx
char *v1; // rdi
struct _RTL_CRITICAL_SECTION *v2; // rcx
int v4; // [rsp+20h] [rbp-18h]
v0 = *((char **)off_1801AED20 + 5);
if ( v0 != (char *)off_1801AED20 + 40 )
{
do
{
v1 = *(char **)v0;
**((_QWORD **)v0 + 1) = *(_QWORD *)v0;
*(_QWORD *)(*(_QWORD *)v0 + 8LL) = *((_QWORD *)v0 + 1);
*((_QWORD *)v0 + 1) = v0;
*(_QWORD *)v0 = v0;
v0[360] = 0;
sub_1800B8560(v0 + 24);
if ( !v0[420] )
*((_QWORD *)off_1801AED20 + 8) = 0;
v2 = *((struct _RTL_CRITICAL_SECTION **)v0 + 51);
if ( v2 )
FMOD_OS_CriticalSection_Free(v2);
LOBYTE(v4) = 1;
sub_1800B6AA0(
*((_QWORD *)off_1801AED20 + 52),
v0,
"C:\\buildagent1\\work\\570ad728b1678096\\core_api\\src\\fmod_file.cpp",
213,
v4);
v0 = v1;
}
while ( v1 != (char *)off_1801AED20 + 40 );
}
return 0;
}