// // sub_D4C780 from 0xd4c780 to 0xd4c8a4 (292 bytes) // // 2 xrefs: // > dtls_get_message @ 0xd4da70 // > dtls_get_message @ 0xd4dbd8 // // 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_D4C780(_QWORD *a1, unsigned __int8 *a2) { unsigned __int64 v3; // x20 unsigned __int64 v5; // x1 __int64 v7; // x0 __int64 v8; // x2 __int64 v9; // x1 v3 = *((_QWORD *)a2 + 1); if ( v3 < *((_QWORD *)a2 + 4) + *((_QWORD *)a2 + 3) ) goto LABEL_5; v5 = a1[63]; if ( v5 < 0x454C ) v5 = 17740; if ( v3 <= v5 ) { v7 = a1[19]; if ( *(_QWORD *)(v7 + 408) ) { if ( *(_QWORD *)(v7 + 392) == v3 ) { return 0; } else { ERR_put_error(20, 288, 152, "ssl/statem/statem_dtls.c", 440); return 47; } } else if ( BUF_MEM_grow_clean(a1[15], v3 + 12) ) { v8 = a1[18]; v9 = a1[19]; *(_QWORD *)(v8 + 536) = v3; *(_QWORD *)(v9 + 392) = v3; *(_DWORD *)(v8 + 544) = *a2; *(_BYTE *)(v9 + 384) = *a2; *(_WORD *)(a1[19] + 400LL) = *((_WORD *)a2 + 8); return 0; } else { ERR_put_error(20, 288, 7, "ssl/statem/statem_dtls.c", 426); return 80; } } else { LABEL_5: ERR_put_error(20, 288, 152, "ssl/statem/statem_dtls.c", 416); return 47; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source