// // sub_DEAEA8 from 0xdeaea8 to 0xdeb0ec (580 bytes) // // 6 xrefs: // > sub_DEBD8C @ 0xdeccfc // > X509_STORE_CTX_init @ 0xdedae0 // > X509_STORE_CTX_init @ 0xdedae8 // > X509_STORE_CTX_init @ 0xdedbf8 // > X509_STORE_CTX_init @ 0xdedc00 // > X509_STORE_CTX_init @ 0xdedc88 // // 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_DEAEA8(__int64 a1) { int v2; // w0 int v3; // w20 int v4; // w22 __int64 v5; // x21 __int64 v6; // x22 __int64 v7; // x1 __int64 v8; // x0 unsigned int (__fastcall *v9)(_QWORD, __int64); // x2 unsigned int (__fastcall *v11)(__int64, __int64); // x2 __int64 v12; // x23 __int64 v13; // x0 int v14; // w1 __int64 v15; // x0 unsigned int (__fastcall *v16)(_QWORD, __int64); // x2 __int64 v17; // x1 __int64 (__fastcall *v18)(_QWORD, __int64); // x2 v2 = OPENSSL_sk_num(*(unsigned int **)(a1 + 152)); v3 = v2 - 1; v4 = v2; v5 = OPENSSL_sk_value(*(_QWORD *)(a1 + 152), v2 - 1); if ( *(_DWORD *)(a1 + 240) ) { v6 = 0; while ( 1 ) { while ( 1 ) { LABEL_12: if ( !x509_check_cert_time(a1, v5, v3) ) return 0; v11 = *(unsigned int (__fastcall **)(__int64, __int64))(a1 + 56); *(_QWORD *)(a1 + 192) = v6; *(_QWORD *)(a1 + 184) = v5; *(_DWORD *)(a1 + 172) = v3; if ( !v11(1, a1) ) return 0; if ( --v3 < 0 ) return 1; v12 = OPENSSL_sk_value(*(_QWORD *)(a1 + 152), v3); LABEL_16: if ( v12 != v5 ) break; v6 = v12; LABEL_4: if ( (*(_QWORD *)(*(_QWORD *)(a1 + 32) + 24LL) & 0x4000) != 0 ) { v5 = v6; v7 = X509_get0_pubkey(v6); if ( v7 ) goto LABEL_6; v14 = v3; LABEL_27: *(_DWORD *)(a1 + 172) = v14; v15 = v6; if ( !v6 ) v15 = OPENSSL_sk_value(*(_QWORD *)(a1 + 152), v14); v16 = *(unsigned int (__fastcall **)(_QWORD, __int64))(a1 + 56); *(_QWORD *)(a1 + 184) = v15; *(_DWORD *)(a1 + 176) = 6; if ( !v16(0, a1) ) return 0; } else { v5 = v6; } } v6 = v5; v7 = X509_get0_pubkey(v5); if ( !v7 ) { v14 = v3 + 1; v5 = v12; goto LABEL_27; } v5 = v12; LABEL_6: if ( (int)X509_verify(v5, v7) <= 0 ) { *(_DWORD *)(a1 + 172) = v3; v8 = v5; if ( !v5 ) v8 = OPENSSL_sk_value(*(_QWORD *)(a1 + 152), v3); v9 = *(unsigned int (__fastcall **)(_QWORD, __int64))(a1 + 56); *(_QWORD *)(a1 + 184) = v8; *(_DWORD *)(a1 + 176) = 7; if ( !v9(0, a1) ) return 0; } } } if ( (*(unsigned int (__fastcall **)(__int64, __int64, __int64))(a1 + 72))(a1, v5, v5) ) { v6 = v5; if ( (v3 & 0x80000000) == 0 ) goto LABEL_4; return 1; } if ( (*(_QWORD *)(*(_QWORD *)(a1 + 32) + 24LL) & 0x80000) != 0 ) { v6 = v5; goto LABEL_12; } if ( v3 > 0 ) { v3 = v4 - 2; v13 = *(_QWORD *)(a1 + 152); *(_DWORD *)(a1 + 172) = v4 - 2; v12 = OPENSSL_sk_value(v13, v4 - 2); if ( ((v4 - 2) & 0x80000000) == 0 ) goto LABEL_16; return 1; } *(_DWORD *)(a1 + 172) = 0; v17 = v5; if ( !v5 ) v17 = OPENSSL_sk_value(*(_QWORD *)(a1 + 152), 0); *(_QWORD *)(a1 + 184) = v17; v18 = *(__int64 (__fastcall **)(_QWORD, __int64))(a1 + 56); *(_DWORD *)(a1 + 176) = 21; return v18(0, a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source