//
// sub_10059A730 from 0x10059a730 to 0x10059a77d (77 bytes)
//
// 0 xrefs:
//
// 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 12:32:30 +0000
//
std::string *__fastcall sub_10059A730(__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;
}