// // sub_8817E0 from 0x8817e0 to 0x8819f4 (532 bytes) // // 1 xrefs: // > @ 0xa3a2d4 // // 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 sub_8817E0(int a1, int a2, int a3, _DWORD *a4) { int *v4; // r5 v4 = *(int **)(a1 + 20); if ( a2 == 11 ) return 1; if ( a2 <= 11 ) { if ( a2 == 2 ) { ERR_put_error(10, 120, 150, (int)"crypto/dsa/dsa_pmeth.c", 167); return -2; } if ( a2 <= 2 ) { if ( a2 == 1 ) { if ( EVP_MD_type((int)a4) != 64 && EVP_MD_type((int)a4) != 116 && EVP_MD_type((int)a4) != 66 && EVP_MD_type((int)a4) != 675 && EVP_MD_type((int)a4) != 672 && EVP_MD_type((int)a4) != 673 && EVP_MD_type((int)a4) != 674 ) { ERR_put_error(10, 120, 106, (int)"crypto/dsa/dsa_pmeth.c", 150); return 0; } goto LABEL_31; } return -2; } if ( a2 != 5 && a2 != 7 ) return -2; return 1; } if ( a2 == 4097 ) { if ( a3 > 255 ) { *v4 = a3; return 1; } return -2; } if ( a2 > 4097 ) { if ( a2 == 4098 ) { if ( (a3 & 0xFFFFFFBF) == 0xA0 || (a3 & 0xFFFFFEFF) == 0 ) { v4[1] = a3; return 1; } } else if ( a2 == 4099 ) { if ( EVP_MD_type((int)a4) != 64 && EVP_MD_type((int)a4) != 675 && EVP_MD_type((int)a4) != 672 ) { ERR_put_error(10, 120, 106, (int)"crypto/dsa/dsa_pmeth.c", 136); return 0; } LABEL_31: v4[5] = (int)a4; return 1; } return -2; } if ( a2 != 13 ) return -2; *a4 = v4[5]; return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source