// // X509_STORE_CTX_get_by_subject from 0xa546dc to 0xa547ac (208 bytes) // // 5 xrefs: // > X509_STORE_CTX_get_obj_by_subject @ 0xa547d8 // > X509_STORE_CTX_get1_certs @ 0xa5491c // > X509_STORE_CTX_get1_crls @ 0xa549c8 // > X509_STORE_CTX_get1_issuer @ 0xa54e1c // > @ 0x80adc // // 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:25 +0000 // int __fastcall X509_STORE_CTX_get_by_subject(int *a1, int a2, int a3, int *a4) { signed int v4; // r4 int v5; // r5 int *v9; // r9 bool v10; // zf unsigned int v11; // r11 unsigned int v12; // r11 int v13; // r0 int v15; // [sp+0h] [bp-Ch] BYREF v5 = *a1; CRYPTO_THREAD_write_lock(*(pthread_rwlock_t **)(*a1 + 72)); v9 = (int *)X509_OBJECT_retrieve_by_subject(*(_DWORD **)(v5 + 4), a2, a3); CRYPTO_THREAD_unlock(*(pthread_rwlock_t **)(v5 + 72)); v10 = v9 == nullptr; if ( v9 ) v10 = a2 == 2; v11 = __clz((unsigned int)v9); if ( v10 ) v4 = 0; v12 = v11 >> 5; if ( v10 ) { while ( v4 < OPENSSL_sk_num(*(_DWORD *)(v5 + 8)) ) { v13 = OPENSSL_sk_value(*(_DWORD **)(v5 + 8), v4++); if ( X509_LOOKUP_by_subject(v13) ) { v9 = &v15; goto LABEL_10; } } if ( !v12 ) goto LABEL_10; return 0; } else { LABEL_10: *a4 = *v9; a4[1] = v9[1]; X509_OBJECT_up_ref_count(a4); return 1; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source