//
// sub_4DE0FC from 0x4de0fc to 0x4de1c8 (204 bytes)
//
// 2 xrefs:
// > sub_B87DB4 @ 0xb894c0
// > sub_B87DB4 @ 0xb8a130
//
// 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_4DE0FC(__int64 a1)
{
__int64 v1; // x19
__int64 v2; // x1
__int64 v4; // x1
__int64 v5; // x19
__int64 result; // x0
__int64 v7; // x1
v1 = a1 + 2768;
v2 = *(_QWORD *)(a1 + 944);
*(_QWORD *)(a1 + 36056) = v2;
if ( v2 || *(_QWORD *)(a1 + 1832) )
{
if ( *(_BYTE *)(a1 + 36042) )
off_1231008(*(void **)(a1 + 36048));
v4 = *(_QWORD *)(v1 + 33288);
if ( v4 )
*(_QWORD *)(v1 + 33280) = sub_B8F880("%lu-", v4);
else
*(_QWORD *)(v1 + 33280) = off_1231018(*(const char **)(a1 + 1832));
v5 = v1 + 0x8000;
result = 27;
v7 = *(_QWORD *)(v5 + 512);
*(_BYTE *)(v5 + 506) = v7 != 0;
if ( v7 )
{
*(_BYTE *)(v5 + 505) = 1;
return 0;
}
}
else
{
*(_BYTE *)(a1 + 36041) = 0;
return 0;
}
return result;
}