// // X509_VERIFY_PARAM_add1_host from 0xa5b7b8 to 0xa5b904 (332 bytes) // // 2 xrefs: // > SSL_add1_host @ 0x9aa99c // > @ 0x7535c // // 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:29 +0000 // int *__fastcall X509_VERIFY_PARAM_add1_host(int a1, char *a2, unsigned int a3) { bool v3; // zf int v6; // r4 int v7; // r5 size_t v8; // r2 size_t v10; // r0 int *v11; // r4 int v12; // r3 unsigned __int8 *v13; // r5 v3 = a2 == nullptr; if ( a2 ) v3 = a3 == 0; v6 = a2 == nullptr; if ( v3 ) { if ( !a2 ) return &dword_0 + 1; v10 = strlen(a2); v7 = v10; if ( !v10 ) return &dword_0 + 1; v12 = v10 - 1; if ( a2[v10 - 1] ) goto LABEL_14; goto LABEL_23; } v7 = a3; if ( a3 <= 1 ) v8 = 1; else v8 = a3 - 1; if ( memchr(a2, 0, v8) ) return nullptr; v12 = v7 - 1; if ( !a2[v7 - 1] ) { LABEL_23: v7 = v12; LABEL_14: if ( !v7 ) v6 |= 1u; if ( v6 ) return &dword_0 + 1; } v13 = CRYPTO_strndup((unsigned __int8 *)a2, v7, (int)"crypto/x509/x509_vpm.c", 60); if ( !v13 ) return nullptr; v11 = *(int **)(a1 + 36); if ( !v11 ) { v11 = OPENSSL_sk_new_null(); *(_DWORD *)(a1 + 36) = v11; if ( !v11 ) { CRYPTO_free(v13, (int)"crypto/x509/x509_vpm.c", 66); return v11; } } if ( !OPENSSL_sk_push(v11, (int)v13) ) { CRYPTO_free(v13, (int)"crypto/x509/x509_vpm.c", 71); v11 = (int *)OPENSSL_sk_num(*(_DWORD *)(a1 + 36)); if ( !v11 ) { OPENSSL_sk_free(*(void ***)(a1 + 36)); *(_DWORD *)(a1 + 36) = 0; return v11; } return nullptr; } return &dword_0 + 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source