//
// sub_10056D670 from 0x10056d670 to 0x10056d6bd (77 bytes)
//
// 0 xrefs:
//
// 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
//
std::string *__fastcall sub_10056D670(__int64 a1)
{
std::string *result; // rax
__int64 v2; // rcx
result = (std::string *)*(unsigned __int8 *)(a1 + 8);
if ( ((unsigned __int8)result & 1) != 0 )
{
v2 = *(_QWORD *)(a1 + 16);
if ( !v2 )
return result;
}
else
{
if ( !*(_BYTE *)(a1 + 8) )
return result;
v2 = (unsigned int)result >> 1;
}
if ( ((unsigned __int8)result & 1) == 0 )
{
result = (std::string *)(a1 + 9);
if ( *(_BYTE *)(a1 + 9 + v2 - 1) == 47 )
return result;
return std::string::append((std::string *)(a1 + 8), "/");
}
result = *(std::string **)(a1 + 24);
if ( *((_BYTE *)&result->__r_.__value_.__s + v2 - 1) != 47 )
return std::string::append((std::string *)(a1 + 8), "/");
return result;
}