// // sub_E29B24 from 0xe29b24 to 0xe29d18 (500 bytes) // // 2 xrefs: // > @ 0x1132d28 // > @ 0x1132df8 // // 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 // __int64 __fastcall sub_E29B24(__int64 a1, int a2, int a3, _QWORD *a4) { __int64 v4; // x20 __int64 v5; // x19 __int64 result; // x0 v4 = a3; v5 = *(_QWORD *)(a1 + 40); if ( a2 == 4103 ) { *(_QWORD *)(v5 + 48) = a4; return 1; } else if ( a2 > 4103 ) { if ( a2 == 4107 ) { CRYPTO_free(*(void **)(v5 + 56), (__int64)"crypto/dh/dh_pmeth.c", 180); *(_QWORD *)(v5 + 56) = a4; if ( a4 ) *(_QWORD *)(v5 + 64) = v4; else *(_QWORD *)(v5 + 64) = 0; return 1; } else if ( a2 > 4107 ) { if ( a2 == 4109 ) { ASN1_OBJECT_free(*(_QWORD *)(v5 + 40)); *(_QWORD *)(v5 + 40) = a4; return 1; } else if ( a2 < 4109 ) { *a4 = *(_QWORD *)(v5 + 56); return *(unsigned int *)(v5 + 64); } else { if ( a2 != 4110 ) return 4294967294LL; *a4 = *(_QWORD *)(v5 + 40); return 1; } } else if ( a2 == 4105 ) { if ( a3 <= 0 ) return 4294967294LL; *(_QWORD *)(v5 + 72) = a3; return 1; } else { result = 1; if ( a2 <= 4105 ) *a4 = *(_QWORD *)(v5 + 48); else *(_DWORD *)a4 = *(_QWORD *)(v5 + 72); } } else if ( a2 == 4099 ) { if ( (unsigned int)(a3 - 1) > 2 ) return 4294967294LL; *(_DWORD *)(v5 + 24) = a3; return 1; } else if ( a2 > 4099 ) { if ( a2 == 4101 ) { if ( (unsigned int)a3 > 2 ) return 4294967294LL; *(_DWORD *)(v5 + 8) = a3; return 1; } else if ( a2 > 4101 ) { if ( a3 == -2 ) { return *(unsigned __int8 *)(v5 + 36); } else { if ( (unsigned int)(a3 - 1) > 1 ) return 4294967294LL; *(_BYTE *)(v5 + 36) = a3; return 1; } } else { if ( !*(_DWORD *)(v5 + 8) ) return 4294967294LL; *(_DWORD *)(v5 + 12) = a3; return 1; } } else if ( a2 == 4097 ) { if ( a3 <= 255 ) return 4294967294LL; *(_DWORD *)v5 = a3; return 1; } else if ( a2 > 4097 ) { if ( *(_DWORD *)(v5 + 8) ) return 4294967294LL; *(_DWORD *)(v5 + 4) = a3; return 1; } else { result = 1; if ( a2 != 2 ) return 4294967294LL; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source