//
// EVP_read_pw_string_min from 0x8b743c to 0x8b750c (208 bytes)
//
// 4 xrefs:
// > PEM_def_callback @ 0x8214c8
// > PEM_def_callback @ 0x821528
// > EVP_read_pw_string @ 0x8b7530
// > ??> @ 0x652ec
//
// 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 EVP_read_pw_string_min(int a1, int a2, int a3, char *a4, int a5)
{
char *v5; // r6
int *v9; // r0
int *v10; // r5
int v11; // r4
_BYTE v13[1028]; // [sp+10h] [bp-404h] BYREF
v5 = a4;
if ( !a4 && byte_AD48A0 )
v5 = &byte_AD48A0;
v9 = UI_new();
v10 = v9;
if ( !v9 )
return -1;
if ( a3 >= 1023 )
a3 = 1023;
UI_add_input_string((int)v9, (int)v5, 0, a1, a2, a3);
if ( a5 )
UI_add_verify_string((int)v10, (int)v5, 0, (int)v13, a2, a3, a1);
v11 = UI_process(v10);
UI_free((int)v10);
OPENSSL_cleanse(v13, 0x400u);
return v11;
}