// // X509v3_asid_validate_resource_set from 0x1078a38 to 0x1078e6c (1076 bytes) // // 1 xrefs: // > @ 0x52588 // // 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:17:05 +0000 // bool __fastcall X509v3_asid_validate_resource_set(unsigned int *a1, __int64 *a2, int a3) { __int64 v7; // x23 int v8; // w24 __int64 v9; // x22 int v10; // w25 __int64 v11; // x20 int v12; // w19 __int64 v13; // x0 __int64 *v14; // x0 __int64 *v15; // x2 __int64 v16; // x0 __int64 v17; // x0 _QWORD *v18; // x0 _DWORD *v19; // x0 if ( !a2 ) return 1; if ( !a1 || !(unsigned int)OPENSSL_sk_num(a1) || !a3 && (unsigned int)X509v3_asid_inherits(a2) ) return 0; if ( (int)OPENSSL_sk_num(a1) <= 0 ) OPENSSL_die("assertion failed: chain != NULL && sk_X509_num(chain) > 0", "crypto/x509v3/v3_asid.c", 718); if ( !X509v3_asid_is_canonical(a2) ) return 0; v7 = *a2; if ( !*a2 ) goto LABEL_13; if ( *(_DWORD *)v7 ) { if ( *(_DWORD *)v7 == 1 ) { v7 = *(_QWORD *)(v7 + 8); LABEL_13: v8 = 0; goto LABEL_14; } v8 = 0; v7 = 0; } else { v8 = 1; v7 = 0; } LABEL_14: v9 = a2[1]; if ( v9 ) { if ( !*(_DWORD *)v9 ) { v10 = 1; v9 = 0; goto LABEL_19; } if ( *(_DWORD *)v9 != 1 ) { v10 = 0; v9 = 0; goto LABEL_19; } v9 = *(_QWORD *)(v9 + 8); } v10 = 0; LABEL_19: v11 = 0; v12 = 0; while ( v12 < (int)OPENSSL_sk_num(a1) ) { v13 = OPENSSL_sk_value((__int64)a1, v12); v11 = v13; if ( !v13 ) OPENSSL_die("assertion failed: x != NULL", "crypto/x509v3/v3_asid.c", 766); v14 = *(__int64 **)(v13 + 280); if ( v14 ) { if ( !X509v3_asid_is_canonical(v14) ) return 0; v15 = *(__int64 **)(v11 + 280); v16 = *v15; if ( *v15 ) { if ( *(_DWORD *)v16 != 1 ) goto LABEL_26; if ( !v8 ) { if ( !(unsigned int)sub_1077604(*(unsigned int **)(v16 + 8), (unsigned int *)v7) ) return 0; v15 = *(__int64 **)(v11 + 280); v16 = *v15; } v7 = *(_QWORD *)(v16 + 8); v8 = 0; v17 = v15[1]; if ( v17 ) goto LABEL_27; LABEL_37: if ( v9 ) return 0; ++v12; } else { if ( v7 ) return 0; LABEL_26: v17 = v15[1]; if ( !v17 ) goto LABEL_37; LABEL_27: if ( *(_DWORD *)v17 == 1 ) { if ( !v10 ) { if ( !(unsigned int)sub_1077604(*(unsigned int **)(v17 + 8), (unsigned int *)v9) ) return 0; v17 = *(_QWORD *)(*(_QWORD *)(v11 + 280) + 8LL); } v9 = *(_QWORD *)(v17 + 8); v10 = 0; ++v12; } else { ++v12; } } } else { if ( v9 || v7 ) return 0; v9 = 0; v7 = 0; ++v12; } } if ( !v11 ) OPENSSL_die("assertion failed: x != NULL", "crypto/x509v3/v3_asid.c", 812); v18 = *(_QWORD **)(v11 + 280); if ( !v18 ) return 1; if ( *v18 && !*(_DWORD *)*v18 ) return 0; v19 = (_DWORD *)v18[1]; if ( !v19 ) return 1; return *v19 != 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source