//
// sub_1005861C8 from 0x1005861c8 to 0x1005862c0 (248 bytes)
//
// 1 xrefs:
// > sub_100587860 @ 0x100587860
//
// 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_1005861C8(_BYTE *a1, __int64 a2)
{
unsigned __int64 v4; // x0
unsigned int v5; // w8
char v7; // [xsp+2Dh] [xbp-13h] BYREF
__int16 v8; // [xsp+2Eh] [xbp-12h]
v8 = 0;
v4 = sub_1005891F8();
if ( v4 >> 13 > 0x482 )
{
if ( (v4 & 0xFF0) != 0 )
{
v5 = (unsigned __int8)(v4 >> 4);
if ( v5 < 0x1B )
{
v7 = (v4 >> 4) + 96;
}
else
{
LOBYTE(v8) = v5
- 1
- 26
* (((unsigned __int64)(1321528399LL * (int)(v5 - 1)) >> 35) + (1321528399LL * (int)(v5 - 1) < 0))
+ 98;
v7 = 122;
}
}
else
{
v7 = 0;
}
}
else
{
v7 = 0;
v4 = 268443775;
}
return (int)sub_100562884(
a1,
a2,
"%s/%lx.%lx.%lx%s",
"OpenSSL",
(unsigned int)v4 >> 28,
(unsigned __int8)(v4 >> 20),
(unsigned __int8)(v4 >> 12),
&v7);
}