//
// sub_DE455C from 0xde455c to 0xde4614 (184 bytes)
//
// 1 xrefs:
// > ??> @ 0x1239200
//
// 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_DE455C(__int64 a1)
{
__int64 *result; // x0
__int64 *v3; // x19
__int64 v4; // x0
pthread_rwlock_t *v5; // x0
result = (__int64 *)CRYPTO_malloc(&off_18, (__int64)"crypto/x509/by_dir.c", 103);
v3 = result;
if ( result )
{
v4 = BUF_MEM_new();
*v3 = v4;
if ( v4 )
{
v3[1] = 0;
v5 = CRYPTO_THREAD_lock_new();
v3[2] = (__int64)v5;
if ( v5 )
{
*(_QWORD *)(a1 + 16) = v3;
return (_QWORD *)(dword_0 + 1);
}
else
{
BUF_MEM_free(*v3);
CRYPTO_free(v3, (__int64)"crypto/x509/by_dir.c", 113);
return nullptr;
}
}
else
{
CRYPTO_free(v3, (__int64)"crypto/x509/by_dir.c", 106);
return nullptr;
}
}
return result;
}