//
// sub_18003B600 from 0x18003b600 to 0x18003b674 (116 bytes)
//
// 1 xrefs:
// > sub_18003B680 @ 0x18003b6fa
//
// 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:53:08 +0000
//
__int64 __fastcall sub_18003B600(__int64 a1, __int64 a2, _DWORD *a3, _DWORD *a4)
{
_WORD *v5; // rcx
int v6; // eax
__int64 result; // rax
if ( !a1 )
{
if ( a3 )
*a3 = 0;
if ( a4 )
*a4 = 64;
return 0;
}
if ( a3 )
*a3 = 0;
if ( !a4 )
return 0;
*a4 = 64;
v5 = *(_WORD **)(a1 + 616);
if ( v5 && ((*v5 - 1) & 0xFFFD) != 0 )
{
v6 = (unsigned __int16)v5[9];
if ( (_WORD)v6 )
{
*a4 = v6;
return 0;
}
return 0;
}
result = 0;
if ( *(_DWORD *)(a1 + 164) != 2 )
*a4 = 0;
return result;
}