// // sub_A56ED8 from 0xa56ed8 to 0xa570b0 (472 bytes) // // 12 xrefs: // > X509_STORE_CTX_init @ 0xa5aa8c // > X509_STORE_CTX_init @ 0xa5aa94 // > X509_STORE_CTX_init @ 0xa5ab4c // > X509_STORE_CTX_init @ 0xa5ab68 // > X509_STORE_CTX_init @ 0xa5ac4c // > X509_STORE_CTX_init @ 0xa5ac50 // > X509_STORE_CTX_init @ 0xa5aca8 // > X509_STORE_CTX_init @ 0xa5acac // > @ 0xa5ad24 // > @ 0xa5ad4c // > @ 0xa5ad6c // > @ 0xa5ad7c // // 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:26 +0000 // int __fastcall sub_A56ED8(int a1) { int v1; // r6 signed int i; // r5 int v5; // r0 if ( *(_DWORD *)(a1 + 120) ) return 1; if ( *(_DWORD *)(a1 + 132) ) { v1 = OPENSSL_sk_push(*(int **)(a1 + 80), 0); if ( !v1 ) { ERR_put_error(11, 145, 65, (int)"crypto/x509/x509_vfy.c", 1575); *(_DWORD *)(a1 + 96) = 17; return v1; } } v1 = X509_policy_check( a1 + 84, a1 + 88, *(_DWORD *)(a1 + 80), *(_DWORD *)(*(_DWORD *)(a1 + 16) + 32), *(_DWORD *)(*(_DWORD *)(a1 + 16) + 12)); if ( *(_DWORD *)(a1 + 132) ) OPENSSL_sk_pop(*(int **)(a1 + 80)); if ( !v1 ) { ERR_put_error(11, 145, 65, (int)"crypto/x509/x509_vfy.c", 1585); *(_DWORD *)(a1 + 96) = 17; return v1; } if ( v1 == -1 ) { for ( i = 1; i < OPENSSL_sk_num(*(_DWORD *)(a1 + 80)); ++i ) { v5 = OPENSSL_sk_value(*(_DWORD **)(a1 + 80), i); if ( (*(_DWORD *)(v5 + 112) & 0x800) != 0 ) { *(_DWORD *)(a1 + 100) = v5; *(_DWORD *)(a1 + 92) = i; *(_DWORD *)(a1 + 96) = 42; v1 = (*(int (__fastcall **)(_DWORD, int))(a1 + 28))(0, a1); if ( !v1 ) return v1; } } return 1; } if ( v1 != -2 ) { if ( v1 != 1 ) { ERR_put_error(11, 145, 68, (int)"crypto/x509/x509_vfy.c", 1611); return 0; } if ( (*(_DWORD *)(*(_DWORD *)(a1 + 16) + 12) & 0x800) != 0 ) { *(_DWORD *)(a1 + 100) = 0; return (*(int (__fastcall **)(int, int))(a1 + 28))(2, a1) != 0; } return 1; } *(_DWORD *)(a1 + 96) = 43; *(_DWORD *)(a1 + 100) = 0; return (*(int (**)(void))(a1 + 28))(); }
GD Web Decomp Icon

GD Web Decomp

Raw Source