void FUN_00401cd0(void)

{
  char acStack_88 [128];
  
  if (DAT_0041b820 != 0) {
    sloop_cancel_read_sock();
    DAT_0041b820 = 0;
  }
  if (o_helperscript != 0) {
    snprintf(acStack_88,0x7f,"sh %s flush")   //possible issue identified - semgrep
    system(acStack_88)   //possible issue identified - semgrep
  }
  o_helperscript = 0;
  mrt_deinit();
  mrtapi_deinit();
  return;
}