// // sub_10A7E24 from 0x10a7e24 to 0x10a8018 (500 bytes) // // 2 xrefs: // > @ 0x14102b8 // > @ 0x1410388 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:17:36 +0000 // __int64 __fastcall sub_10A7E24(__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