//
// sub_100541BF0 from 0x100541bf0 to 0x100541cd0 (224 bytes)
//
// 3 xrefs:
// > sub_100541A1C @ 0x100541ab0
// > sub_100541A1C @ 0x100541b2c
// > sub_100541A1C @ 0x100541b7c
//
// 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_100541BF0(__int64 a1, __int64 *a2, __int64 a3)
{
int v6; // w21
__int64 v7; // x8
__int64 v8; // x9
__int64 v10; // [xsp+8h] [xbp-28h] BYREF
v6 = sub_1005F3C94(a3, 0);
if ( (unsigned int)sub_1005D9F48(
a1,
(__int64)(((unsigned __int64)(unsigned int)(v6 + *(_DWORD *)a2) << 32) + 0x300000000LL) >> 32) )
{
v7 = *a2;
v8 = *(_QWORD *)(a1 + 8);
v10 = v8 + *a2;
*(_BYTE *)(v8 + v7) = BYTE2(v6);
*(_BYTE *)(v10 + 1) = BYTE1(v6);
*(_BYTE *)(v10 + 2) = v6;
v10 += 3;
sub_1005F3C94(a3, &v10);
*a2 += v6 + 3;
return 1;
}
else
{
sub_1005E0E48(20, 319, 7, "ssl_cert.c", 1061);
return 0;
}
}