//
// UI_add_info_string from 0x1060a48 to 0x1060c08 (448 bytes)
//
// 1 xrefs:
// > ??> @ 0x4ce40
//
// 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:50 +0000
//
__int64 __fastcall UI_add_info_string(__int64 a1, __int64 a2)
{
_QWORD *v4; // x0
__int64 v5; // x19
int *v6; // x0
int v7; // w20
unsigned int v9; // w20
if ( !a2 )
{
ERR_put_error(40, 109, 67, (__int64)"crypto/ui/ui_lib.c", 99);
return (unsigned int)-1;
}
v4 = CRYPTO_malloc(&dword_40, (__int64)"crypto/ui/ui_lib.c", 103);
v5 = (__int64)v4;
if ( !v4 )
return (unsigned int)-1;
v4[1] = a2;
v4[3] = 0;
*((_DWORD *)v4 + 14) = 0;
v6 = *(int **)(a1 + 8);
*(_DWORD *)(v5 + 16) = 0;
*(_DWORD *)v5 = 4;
if ( !v6 )
{
v6 = (int *)OPENSSL_sk_new_null();
*(_QWORD *)(a1 + 8) = v6;
if ( !v6 )
{
if ( (*(_DWORD *)(v5 + 56) & 1) != 0 )
{
CRYPTO_free(*(void **)(v5 + 8), (__int64)"crypto/ui/ui_lib.c", 56);
if ( *(_DWORD *)v5 == 3 )
{
CRYPTO_free(*(void **)(v5 + 32), (__int64)"crypto/ui/ui_lib.c", 59);
CRYPTO_free(*(void **)(v5 + 40), (__int64)"crypto/ui/ui_lib.c", 60);
CRYPTO_free(*(void **)(v5 + 48), (__int64)"crypto/ui/ui_lib.c", 61);
}
}
v7 = -1;
CRYPTO_free((void *)v5, (__int64)"crypto/ui/ui_lib.c", 67);
return (unsigned int)v7;
}
}
*(_DWORD *)(v5 + 32) = 0;
*(_DWORD *)(v5 + 36) = 0;
*(_QWORD *)(v5 + 40) = 0;
v7 = OPENSSL_sk_push(v6, v5);
if ( v7 > 0 )
return (unsigned int)v7;
v9 = v7 - 1;
if ( (*(_DWORD *)(v5 + 56) & 1) != 0 )
{
CRYPTO_free(*(void **)(v5 + 8), (__int64)"crypto/ui/ui_lib.c", 56);
if ( *(_DWORD *)v5 == 3 )
{
CRYPTO_free(*(void **)(v5 + 32), (__int64)"crypto/ui/ui_lib.c", 59);
CRYPTO_free(*(void **)(v5 + 40), (__int64)"crypto/ui/ui_lib.c", 60);
CRYPTO_free(*(void **)(v5 + 48), (__int64)"crypto/ui/ui_lib.c", 61);
}
}
CRYPTO_free((void *)v5, (__int64)"crypto/ui/ui_lib.c", 67);
return v9;
}