//
// sub_DDF6FC from 0xddf6fc to 0xddf7dc (224 bytes)
//
// 2 xrefs:
// > SRP_VBASE_init @ 0xddfb88
// > SRP_VBASE_init @ 0xddfb9c
//
// 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
//
const char *__fastcall sub_DDF6FC(__int64 a1, char *a2)
{
int v4; // w19
__int64 v5; // x21
bool v6; // cc
__int64 v7; // x1
const char **v8; // x19
v4 = 0;
if ( a1 )
{
while ( 1 )
{
v6 = v4 < (int)OPENSSL_sk_num(a1);
v7 = (unsigned int)v4++;
if ( !v6 )
break;
v5 = OPENSSL_sk_value(a1, v7);
if ( !strcmp(*(const char **)v5, a2) )
return *(const char **)(v5 + 8);
}
v8 = sub_DDF62C(a2);
if ( !v8 )
return nullptr;
if ( (int)OPENSSL_sk_insert(a1, v8, 0) > 0 )
return v8[1];
CRYPTO_free((void *)*v8, (__int64)"crypto/srp/srp_vfy.c", 295);
BN_free((__int64)v8[1]);
CRYPTO_free(v8, (__int64)"crypto/srp/srp_vfy.c", 297);
}
return nullptr;
}