// // X509_STORE_CTX_get_by_subject from 0x83fadc to 0x83fbac (208 bytes) // // 5 xrefs: // > X509_STORE_CTX_get_obj_by_subject @ 0x83fbd8 // > X509_STORE_CTX_get1_certs @ 0x83fd1c // > X509_STORE_CTX_get1_crls @ 0x83fdc8 // > X509_STORE_CTX_get1_issuer @ 0x84021c // > @ 0x6705c // // 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 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