//
// sub_A4C408 from 0xa4c408 to 0xa4c4d4 (204 bytes)
//
// 2 xrefs:
// > SRP_VBASE_init @ 0xa4c77c
// > SRP_VBASE_init @ 0xa4c794
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:08:20 +0000
//
void *__fastcall sub_A4C408(int a1, char *a2)
{
int i; // r4
int v5; // r6
int v6; // r0
int v7; // r1
void **v8; // r4
if ( !a1 )
return nullptr;
for ( i = 0; ; ++i )
{
v6 = OPENSSL_sk_num(a1);
v7 = i;
if ( i >= v6 )
break;
v5 = OPENSSL_sk_value(a1, v7);
if ( !strcmp(*(const char **)v5, a2) )
return *(void **)(v5 + 4);
}
v8 = sub_A4C32C(a2);
if ( v8 )
{
if ( OPENSSL_sk_insert(a1, v8, 0) > 0 )
return v8[1];
CRYPTO_free(*v8, (int)"crypto/srp/srp_vfy.c", 295);
BN_free((int)v8[1]);
CRYPTO_free(v8, (int)"crypto/srp/srp_vfy.c", 297);
}
return nullptr;
}