//
// sub_105DA3C from 0x105da3c to 0x105db1c (224 bytes)
//
// 2 xrefs:
// > SRP_VBASE_init @ 0x105dec8
// > SRP_VBASE_init @ 0x105dedc
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:16:49 +0000
//
const char *__fastcall sub_105DA3C(__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_105D96C(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;
}