// // X509_VERIFY_PARAM_inherit from 0x846eec to 0x847228 (828 bytes) // // 7 xrefs: // > SSL_new @ 0x79aaa8 // > SSL_dup @ 0x79b08c // > X509_STORE_CTX_init @ 0x845d90 // > X509_STORE_CTX_init @ 0x845ec4 // > X509_STORE_CTX_set_default @ 0x846290 // > X509_VERIFY_PARAM_set1 @ 0x84724c // > @ 0x5c65c // // 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 // bool __fastcall X509_VERIFY_PARAM_inherit(_DWORD *a1, int a2) { int v2; // r3 int v5; // r7 int v6; // r12 int v7; // r0 int v8; // r1 int v9; // t0 int v10; // r2 int v11; // r6 unsigned int v12; // r2 _DWORD *v13; // r1 int v14; // r0 const char *v15; // r1 char *v16; // r1 int v18; // r2 int v19; // r2 int v20; // r2 int v21; // r2 int *v22; // r0 int *v23; // r0 if ( a2 ) { v2 = *(_DWORD *)(a2 + 8) | a1[2]; if ( (v2 & 0x10) != 0 ) a1[2] = 0; if ( (v2 & 8) != 0 ) return 1; v5 = v2 & 1; if ( (v2 & 2) != 0 ) { v6 = *(_DWORD *)(a2 + 16); v7 = *(_DWORD *)(a2 + 20); v9 = a2 + 24; v8 = *(_DWORD *)(a2 + 24); a1[7] = *(_DWORD *)(v9 + 4); v10 = a1[3]; v11 = 1; a1[4] = v6; a1[5] = v7; a1[6] = v8; goto LABEL_7; } v18 = *(_DWORD *)(a2 + 16); if ( v18 ) { if ( (v2 & 1) == 0 && a1[4] ) { v19 = *(_DWORD *)(a2 + 20); if ( !v19 ) { LABEL_27: v20 = *(_DWORD *)(a2 + 24); if ( v20 == -1 ) { LABEL_35: v21 = *(_DWORD *)(a2 + 28); if ( v21 == -1 ) goto LABEL_31; if ( (v2 & 1) != 0 ) goto LABEL_38; LABEL_37: if ( a1[7] == -1 ) { LABEL_38: a1[7] = v21; v10 = a1[3]; v11 = v10 & 2; if ( (v10 & 2) != 0 ) goto LABEL_32; goto LABEL_7; } LABEL_31: v10 = a1[3]; v11 = v10 & 2; if ( (v10 & 2) != 0 ) { LABEL_32: if ( (v2 & 4) == 0 ) { a1[3] = *(_DWORD *)(a2 + 12) | v10; goto LABEL_10; } v11 = 0; LABEL_8: v12 = 0; a1[3] = 0; LABEL_9: a1[3] = v12 | *(_DWORD *)(a2 + 12); if ( v11 ) { if ( !X509_VERIFY_PARAM_set1_policies((int)a1, *(_DWORD **)(a2 + 32)) ) return 0; OPENSSL_sk_pop_free(a1[9], (void (__fastcall *)(int))sub_846694); a1[9] = 0; v22 = *(int **)(a2 + 36); if ( !v22 ) { LABEL_54: if ( X509_VERIFY_PARAM_set1_email((int)a1, *(const char **)(a2 + 48), *(void **)(a2 + 52)) ) { v16 = *(char **)(a2 + 56); return X509_VERIFY_PARAM_set1_ip((int)a1, v16, *(_DWORD *)(a2 + 60)) != 0; } return 0; } LABEL_52: v23 = OPENSSL_sk_deep_copy( v22, (int (__fastcall *)(_DWORD))sub_846770, (void (__fastcall *)(int))sub_846694); a1[9] = v23; if ( !v23 ) return 0; a1[10] = *(_DWORD *)(a2 + 40); if ( v11 ) goto LABEL_54; LABEL_43: v15 = *(const char **)(a2 + 48); if ( !v15 ) goto LABEL_57; if ( v5 ) { LABEL_45: if ( !X509_VERIFY_PARAM_set1_email((int)a1, v15, *(void **)(a2 + 52)) ) return 0; LABEL_57: v16 = *(char **)(a2 + 56); if ( !v16 ) return 1; if ( v5 ) return X509_VERIFY_PARAM_set1_ip((int)a1, v16, *(_DWORD *)(a2 + 60)) != 0; goto LABEL_59; } LABEL_16: if ( a1[12] ) { v16 = *(char **)(a2 + 56); if ( !v16 ) return 1; LABEL_59: if ( a1[14] ) return 1; return X509_VERIFY_PARAM_set1_ip((int)a1, v16, *(_DWORD *)(a2 + 60)) != 0; } goto LABEL_45; } LABEL_10: v13 = *(_DWORD **)(a2 + 32); if ( v13 ) { if ( (v2 & 1) == 0 && a1[8] ) { if ( !*(_DWORD *)(a2 + 36) ) goto LABEL_15; goto LABEL_14; } if ( !X509_VERIFY_PARAM_set1_policies((int)a1, v13) ) return 0; } if ( !*(_DWORD *)(a2 + 36) ) goto LABEL_43; if ( v5 ) { v14 = a1[9]; goto LABEL_51; } LABEL_14: v14 = a1[9]; if ( v14 ) { LABEL_15: v15 = *(const char **)(a2 + 48); if ( !v15 ) goto LABEL_57; goto LABEL_16; } LABEL_51: v11 = 0; OPENSSL_sk_pop_free(v14, (void (__fastcall *)(int))sub_846694); a1[9] = 0; v22 = *(int **)(a2 + 36); if ( !v22 ) goto LABEL_43; goto LABEL_52; } LABEL_7: v12 = v10 & 0xFFFFFFFD; a1[1] = *(_DWORD *)(a2 + 4); a1[3] = v12; if ( (v2 & 4) == 0 ) goto LABEL_9; goto LABEL_8; } if ( (v2 & 1) != 0 ) { LABEL_34: a1[6] = v20; goto LABEL_35; } LABEL_29: if ( a1[6] != -1 ) { v21 = *(_DWORD *)(a2 + 28); if ( v21 == -1 ) goto LABEL_31; goto LABEL_37; } goto LABEL_34; } LABEL_25: if ( a1[5] ) { v20 = *(_DWORD *)(a2 + 24); if ( v20 == -1 ) goto LABEL_35; goto LABEL_29; } LABEL_26: a1[5] = v19; goto LABEL_27; } a1[4] = v18; } v19 = *(_DWORD *)(a2 + 20); if ( !v19 ) goto LABEL_27; if ( (v2 & 1) != 0 ) goto LABEL_26; goto LABEL_25; } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source