// // sub_A7AFF4 from 0xa7aff4 to 0xa7b358 (868 bytes) // // 3 xrefs: // > ASN1_add_stable_module @ 0xa7b3a0 // > ASN1_add_stable_module @ 0xa7b3ac // > @ 0xa7b3bc // // 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:46 +0000 // int __fastcall sub_A7AFF4(int a1, int a2) { int value; // r0 int v4; // r0 int v5; // r4 const char *v6; // r5 int *v7; // r7 int v8; // r8 signed int v9; // r4 const char *v10; // r5 int v11; // r0 const char *v12; // r5 int v13; // r6 signed int i; // [sp+8h] [bp-2Ch] unsigned int v16; // [sp+Ch] [bp-28h] _DWORD *section; // [sp+10h] [bp-24h] unsigned int v18; // [sp+1Ch] [bp-18h] char *v19; // [sp+20h] [bp-14h] char *v20; // [sp+28h] [bp-Ch] BYREF int v21; // [sp+2Ch] [bp-8h] BYREF value = CONF_imodule_get_value(a1); section = (_DWORD *)NCONF_get_section(a2, value); if ( section ) { for ( i = 0; i < OPENSSL_sk_num((int)section); ++i ) { v4 = OPENSSL_sk_value(section, i); v21 = 0; v5 = *(_DWORD *)(v4 + 4); v6 = *(const char **)(v4 + 8); v19 = OBJ_sn2nid(v5); if ( !v19 && (v19 = OBJ_ln2nid(v5)) == nullptr || (v7 = X509V3_parse_list(v6)) == nullptr ) { ERR_put_error(13, 222, 218, (int)"crypto/asn1/asn_mstbl.c", 100); ERR_add_error_data(4, "name=", v5, ", value=", v6); v7 = nullptr; LABEL_18: OPENSSL_sk_pop_free((int)v7, (void (__fastcall *)(int))X509V3_conf_free); ERR_put_error(13, 223, 219, (int)"crypto/asn1/asn_mstbl.c", 36); return 0; } v8 = 0; v18 = -1; v9 = 0; v16 = -1; while ( v9 < OPENSSL_sk_num((int)v7) ) { v11 = OPENSSL_sk_value(v7, v9); v12 = *(const char **)(v11 + 4); v13 = v11; if ( !strcmp(v12, "min") ) { v16 = strtoul(*(const char **)(v13 + 8), &v20, 0); if ( *v20 ) goto LABEL_17; } else if ( !strcmp(v12, "max") ) { v18 = strtoul(*(const char **)(v13 + 8), &v20, 0); if ( *v20 ) goto LABEL_17; } else if ( !strcmp(v12, "mask") ) { if ( !ASN1_str2mask(*(const char **)(v13 + 8), &v21) || !v21 ) { LABEL_17: ERR_put_error(13, 222, 218, (int)"crypto/asn1/asn_mstbl.c", 100); ERR_add_error_data(4, "field=", *(_DWORD *)(v13 + 4), ", value=", *(_DWORD *)(v13 + 8)); goto LABEL_18; } } else { if ( strcmp(v12, "flags") ) goto LABEL_17; v10 = *(const char **)(v13 + 8); if ( !strcmp(v10, "nomask") ) { v8 = 2; } else { if ( strcmp(v10, "none") ) goto LABEL_17; v8 = 1; } } ++v9; } if ( !ASN1_STRING_TABLE_add((int)v19, v16, v18, v21, v8) ) { ERR_put_error(13, 222, 65, (int)"crypto/asn1/asn_mstbl.c", 110); goto LABEL_18; } OPENSSL_sk_pop_free((int)v7, (void (__fastcall *)(int))X509V3_conf_free); } return 1; } else { ERR_put_error(13, 223, 172, (int)"crypto/asn1/asn_mstbl.c", 30); return 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source