//
// SRP_VBASE_new from 0x8378e0 to 0x8379ac (204 bytes)
//
// 1 xrefs:
// > ??> @ 0x6673c
//
// 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
//
int *__fastcall SRP_VBASE_new(const char *a1)
{
int *v2; // r0
int *v3; // r4
int v4; // r0
int v5; // r0
void *v6; // r6
v2 = (int *)CRYPTO_malloc(&dword_14, (int)"crypto/srp/srp_vfy.c", 235);
v3 = v2;
if ( !v2 )
return nullptr;
v4 = OPENSSL_sk_new_null(v2);
*v3 = v4;
if ( !v4 || (v5 = OPENSSL_sk_new_null(v4), (v3[1] = v5) == 0) )
{
CRYPTO_free(v3, (int)"crypto/srp/srp_vfy.c", 241);
return nullptr;
}
v3[3] = 0;
v3[4] = 0;
v3[2] = 0;
if ( !a1 )
return v3;
v6 = CRYPTO_strdup(a1, (int)"crypto/srp/srp_vfy.c", 247);
v3[2] = (int)v6;
if ( v6 )
return v3;
OPENSSL_sk_free(*v3);
OPENSSL_sk_free(v3[1]);
CRYPTO_free(v3, (int)"crypto/srp/srp_vfy.c", 250);
return nullptr;
}