
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

int Curl_ossl_shutdown(connectdata *conn,int sockindex)

{
  int iVar1;
  Curl_easy *data;
  int iVar2;
  SSL *pSVar3;
  ulong e;
  char *pcVar4;
  int *piVar5;
  int iVar6;
  int in_GS_OFFSET;
  char buf [256];
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  data = conn->data;
  pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;
  if ((data->set).ftp_ccc == CURLFTPSSL_CCC_ACTIVE) {
    SSL_shutdown(pSVar3);
    pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;
  }
  pcVar4 = buf;
  if (pSVar3 == (SSL *)0x0) {
    iVar2 = 0;
    goto LAB_00075399;
  }
  while( true ) {
    iVar2 = Curl_socket_check(conn->sock[sockindex],-1,-1,10000);
    if (iVar2 < 1) break;
    ERR_clear_error();
    iVar2 = SSL_read((SSL *)(conn->ssl[sockindex].backend)->handle,pcVar4,0x100);
    iVar6 = SSL_get_error((SSL *)(conn->ssl[sockindex].backend)->handle,iVar2);
    if (iVar6 != 2) {
      if (iVar6 < 3) {
        iVar2 = 0;
        if (iVar6 == 0) goto LAB_00075361;
      }
      else {
        if (iVar6 == 3) {
          Curl_infof(data,"SSL_ERROR_WANT_WRITE\n");
          iVar2 = 0;
          goto LAB_00075361;
        }
        iVar2 = 0;
        if (iVar6 == 6) goto LAB_00075361;
      }
      e = ERR_get_error();
      piVar5 = __errno_location();
      iVar2 = *piVar5;
      if (e == 0) {
        pcVar4 = SSL_ERROR_to_str(iVar6);
      }
      else {
        ERR_error_string_n(e,pcVar4,0x100);
      }
      Curl_failf(conn->data,"OpenSSL SSL_read on shutdown: %s, errno %d",pcVar4,iVar2);
      iVar2 = 0;
      goto LAB_00075361;
    }
    Curl_infof(data,"SSL_ERROR_WANT_READ\n");
  }
  if (iVar2 == 0) {
    Curl_failf(data,"SSL shutdown timeout");
    iVar2 = 0;
  }
  else {
    piVar5 = __errno_location();
    Curl_failf(data,"select/poll on SSL socket, errno: %d",*piVar5);
    iVar2 = -1;
  }
LAB_00075361:
  pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;
  if ((data->set).verbose != false) {
    iVar6 = SSL_get_shutdown(pSVar3);
    if (iVar6 == 2) {
      pcVar4 = "SSL_get_shutdown() returned SSL_RECEIVED_SHUTDOWN\n";
    }
    else if (iVar6 == 3) {
      pcVar4 = "SSL_get_shutdown() returned SSL_SENT_SHUTDOWN|SSL_RECEIVED__SHUTDOWN\n";
    }
    else {
      if (iVar6 != 1) {
        pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;
        goto LAB_0007537a;
      }
      pcVar4 = "SSL_get_shutdown() returned SSL_SENT_SHUTDOWN\n";
    }
    Curl_infof(data,pcVar4);
    pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;
  }
LAB_0007537a:
  SSL_free(pSVar3);
  (conn->ssl[sockindex].backend)->handle = (SSL *)0x0;
LAB_00075399:
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return iVar2;
}



int FUN_000752b0(int param_1)

{
  int iVar1;
  SSL *pSVar2;
  ulong e;
  char *buf;
  int *piVar3;
  int iVar4;
  char *pcVar5;
  int unaff_EBX;
  int in_GS_OFFSET;
  int *unaff_retaddr;
  int iVar6;
  char local_124 [256];
  int local_24;
  undefined4 uStack_14;
  
  uStack_14 = 0x752b9;
  entry();
  local_24 = *(int *)(in_GS_OFFSET + 0x14);
  iVar6 = *unaff_retaddr;
  pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);
  if (*(int *)(iVar6 + 0x94c) == 2) {
    SSL_shutdown(pSVar2);
    pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);
  }
  buf = local_124;
  pcVar5 = "curl_multi_assign" + unaff_EBX + 0xc;
  if (pSVar2 == (SSL *)0x0) {
    iVar1 = 0;
    goto LAB_00075399;
  }
  while( true ) {
    iVar1 = FUN_00049010(unaff_retaddr[param_1 + 100],0xffffffff,0xffffffff,10000,iVar6,buf,pcVar5);
    if (iVar1 < 1) break;
    ERR_clear_error();
    iVar1 = SSL_read(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),buf,0x100);
    iVar4 = SSL_get_error(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),iVar1);
    if (iVar4 != 2) {
      if (iVar4 < 3) {
        iVar1 = 0;
        if (iVar4 == 0) goto LAB_00075361;
      }
      else {
        if (iVar4 == 3) {
          FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);
          iVar1 = 0;
          goto LAB_00075361;
        }
        iVar1 = 0;
        if (iVar4 == 6) goto LAB_00075361;
      }
      e = ERR_get_error();
      piVar3 = __errno_location();
      iVar1 = *piVar3;
      if (e == 0) {
        buf = (char *)FUN_00074430();
      }
      else {
        ERR_error_string_n(e,buf,0x100);
      }
      FUN_00027240(*unaff_retaddr,"gss_display_status" + unaff_EBX + 6,buf,iVar1);
      iVar1 = 0;
      goto LAB_00075361;
    }
    FUN_00027140(iVar6,pcVar5);
  }
  if (iVar1 == 0) {
    FUN_00027240(iVar6,"inflateInit_" + unaff_EBX + 0xc);
  }
  else {
    piVar3 = __errno_location();
    FUN_00027240(iVar6,"gss_inquire_context" + unaff_EBX + 0x12,*piVar3);
    iVar1 = -1;
  }
LAB_00075361:
  pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);
  if (*(char *)(iVar6 + 0x93c) != '\0') {
    iVar4 = SSL_get_shutdown(pSVar2);
    if (iVar4 == 2) {
      pcVar5 = "RTMP_Write" + unaff_EBX;
    }
    else if (iVar4 == 3) {
      pcVar5 = "RTMP_SetBufferMS" + unaff_EBX + 1;
    }
    else {
      if (iVar4 != 1) {
        pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);
        goto LAB_0007537a;
      }
      pcVar5 = "pthread_join" + unaff_EBX;
    }
    FUN_00027140(iVar6,pcVar5);
    pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);
  }
LAB_0007537a:
  SSL_free(pSVar2);
  *(undefined4 *)(unaff_retaddr[param_1 * 4 + 0x70] + 4) = 0;
LAB_00075399:
  if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0007c1a0();
  }
  return iVar1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00019ed0
ADD EBX,0x3b527
SUB ESP,0x12c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x11c],EAX
XOR EAX,EAX
MOV EBP,dword ptr [ESP + 0x144]
MOV EDI,dword ptr [ESP + 0x140]
MOV ESI,EBP
MOV EDX,dword ptr [EDI]
SHL ESI,0x4
ADD ESI,EDI
CMP dword ptr [EDX + 0x94c],0x2
MOV dword ptr [ESP],EDX
MOV EAX,dword ptr [ESI + 0x1c0]
MOV EAX,dword ptr [EAX + 0x4]
JZ 0x00075530
LEA EDX,[ESP + 0x1c]
ADD EBP,0x64
MOV dword ptr [ESP + 0x4],EDX
LEA EDX,[EBX + 0xfffd78e7]
MOV dword ptr [ESP + 0x8],EDX
TEST EAX,EAX
JZ 0x00075520
PUSH 0x2710
PUSH -0x1
PUSH -0x1
PUSH dword ptr [EDI + EBP*0x4]
CALL 0x00049010
ADD ESP,0x10
TEST EAX,EAX
JG 0x000753c0
MOV dword ptr [ESP + 0x4],EAX
JNZ 0x00075490
SUB ESP,0x8
LEA EAX,[EBX + 0xfffd7912]
PUSH EAX
PUSH dword ptr [ESP + 0xc]
CALL 0x00027240
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x4]
MOV EDI,dword ptr [ESP]
MOV EAX,dword ptr [ESI + 0x1c0]
CMP byte ptr [EDI + 0x93c],0x0
MOV EAX,dword ptr [EAX + 0x4]
JNZ 0x000754e0
MOV dword ptr [ESP],ECX
SUB ESP,0xc
PUSH EAX
CALL 0x00019d40
MOV EAX,dword ptr [ESI + 0x1c0]
ADD ESP,0x10
MOV ECX,dword ptr [ESP]
MOV dword ptr [EAX + 0x4],0x0
MOV EDI,dword ptr [ESP + 0x11c]
XOR EDI,dword ptr GS:[0x14]
MOV EAX,ECX
JNZ 0x000755be
ADD ESP,0x12c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x000181e0
MOV EAX,dword ptr [ESI + 0x1c0]
SUB ESP,0x4
PUSH 0x100
PUSH dword ptr [ESP + 0xc]
PUSH dword ptr [EAX + 0x4]
CALL 0x000193c0
POP EDX
POP ECX
PUSH EAX
MOV EAX,dword ptr [ESI + 0x1c0]
PUSH dword ptr [EAX + 0x4]
CALL 0x000188b0
ADD ESP,0x10
CMP EAX,0x2
JZ 0x000754c0
MOV EDX,EAX
JLE 0x00075428
CMP EAX,0x3
JNZ 0x00075480
SUB ESP,0x8
LEA EAX,[EBX + 0xfffd78fc]
PUSH EAX
PUSH dword ptr [ESP + 0xc]
CALL 0x00027140
ADD ESP,0x10
XOR ECX,ECX
JMP 0x00075361
XOR ECX,ECX
TEST EAX,EAX
JZ 0x00075361
MOV dword ptr [ESP + 0xc],EDX
CALL 0x00018920
MOV dword ptr [ESP + 0x8],EAX
CALL 0x00018bd0
MOV ECX,dword ptr [ESP + 0x8]
MOV EDX,dword ptr [ESP + 0xc]
MOV EBP,dword ptr [EAX]
TEST ECX,ECX
JNZ 0x00075550
MOV EAX,EDX
CALL 0x00074430
PUSH EBP
PUSH EAX
LEA EAX,[EBX + 0xfffd7f10]
PUSH EAX
PUSH dword ptr [EDI]
CALL 0x00027240
ADD ESP,0x10
XOR ECX,ECX
JMP 0x00075361
XOR ECX,ECX
CMP EAX,0x6
JZ 0x00075361
JMP 0x00075432
CALL 0x00018bd0
SUB ESP,0x4
PUSH dword ptr [EAX]
LEA EAX,[EBX + 0xfffd7f3c]
PUSH EAX
PUSH dword ptr [ESP + 0xc]
CALL 0x00027240
ADD ESP,0x10
MOV ECX,0xffffffff
JMP 0x00075361
SUB ESP,0x8
PUSH dword ptr [ESP + 0x10]
PUSH dword ptr [ESP + 0xc]
CALL 0x00027140
ADD ESP,0x10
JMP 0x00075321
MOV dword ptr [ESP + 0x4],ECX
SUB ESP,0xc
PUSH EAX
CALL 0x00018d50
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x4]
CMP EAX,0x2
JZ 0x000755af
CMP EAX,0x3
JZ 0x00075570
CMP EAX,0x1
JZ 0x000755a0
MOV EAX,dword ptr [ESI + 0x1c0]
MOV EAX,dword ptr [EAX + 0x4]
JMP 0x0007537a
XOR ECX,ECX
JMP 0x00075399
SUB ESP,0xc
PUSH EAX
CALL 0x000180b0
MOV EAX,dword ptr [ESI + 0x1c0]
ADD ESP,0x10
MOV EAX,dword ptr [EAX + 0x4]
JMP 0x00075304
SUB ESP,0x4
PUSH 0x100
PUSH dword ptr [ESP + 0xc]
PUSH ECX
CALL 0x000189a0
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x4]
JMP 0x0007545d
MOV dword ptr [ESP + 0x4],ECX
LEA EAX,[EBX + 0xfffd7fc8]
SUB ESP,0x8
PUSH EAX
PUSH dword ptr [ESP + 0xc]
CALL 0x00027140
MOV EAX,dword ptr [ESI + 0x1c0]
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x4]
MOV EAX,dword ptr [EAX + 0x4]
JMP 0x0007537a
MOV dword ptr [ESP + 0x4],ECX
LEA EAX,[EBX + 0xfffd7f64]
SUB ESP,0x8
JMP 0x0007557d
MOV dword ptr [ESP + 0x4],ECX
LEA EAX,[EBX + 0xfffd7f94]
SUB ESP,0x8
JMP 0x0007557d
CALL 0x0007c1a0
(translation_unit "int FUN_000752b0(int param_1)\n\n{\n  int iVar1;\n  SSL *pSVar2;\n  ulong e;\n  char *buf;\n  int *piVar3;\n  int iVar4;\n  char *pcVar5;\n  int unaff_EBX;\n  int in_GS_OFFSET;\n  int *unaff_retaddr;\n  int iVar6;\n  char local_124 [256];\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x752b9;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar6 = *unaff_retaddr;\n  pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  if (*(int *)(iVar6 + 0x94c) == 2) {\n    SSL_shutdown(pSVar2);\n    pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  }\n  buf = local_124;\n  pcVar5 = "curl_multi_assign" + unaff_EBX + 0xc;\n  if (pSVar2 == (SSL *)0x0) {\n    iVar1 = 0;\n    goto LAB_00075399;\n  }\n  while( true ) {\n    iVar1 = FUN_00049010(unaff_retaddr[param_1 + 100],0xffffffff,0xffffffff,10000,iVar6,buf,pcVar5);\n    if (iVar1 < 1) break;\n    ERR_clear_error();\n    iVar1 = SSL_read(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),buf,0x100);\n    iVar4 = SSL_get_error(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),iVar1);\n    if (iVar4 != 2) {\n      if (iVar4 < 3) {\n        iVar1 = 0;\n        if (iVar4 == 0) goto LAB_00075361;\n      }\n      else {\n        if (iVar4 == 3) {\n          FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);\n          iVar1 = 0;\n          goto LAB_00075361;\n        }\n        iVar1 = 0;\n        if (iVar4 == 6) goto LAB_00075361;\n      }\n      e = ERR_get_error();\n      piVar3 = __errno_location();\n      iVar1 = *piVar3;\n      if (e == 0) {\n        buf = (char *)FUN_00074430();\n      }\n      else {\n        ERR_error_string_n(e,buf,0x100);\n      }\n      FUN_00027240(*unaff_retaddr,"gss_display_status" + unaff_EBX + 6,buf,iVar1);\n      iVar1 = 0;\n      goto LAB_00075361;\n    }\n    FUN_00027140(iVar6,pcVar5);\n  }\n  if (iVar1 == 0) {\n    FUN_00027240(iVar6,"inflateInit_" + unaff_EBX + 0xc);\n  }\n  else {\n    piVar3 = __errno_location();\n    FUN_00027240(iVar6,"gss_inquire_context" + unaff_EBX + 0x12,*piVar3);\n    iVar1 = -1;\n  }\nLAB_00075361:\n  pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  if (*(char *)(iVar6 + 0x93c) != '\0') {\n    iVar4 = SSL_get_shutdown(pSVar2);\n    if (iVar4 == 2) {\n      pcVar5 = "RTMP_Write" + unaff_EBX;\n    }\n    else if (iVar4 == 3) {\n      pcVar5 = "RTMP_SetBufferMS" + unaff_EBX + 1;\n    }\n    else {\n      if (iVar4 != 1) {\n        pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n        goto LAB_0007537a;\n      }\n      pcVar5 = "pthread_join" + unaff_EBX;\n    }\n    FUN_00027140(iVar6,pcVar5);\n    pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  }\nLAB_0007537a:\n  SSL_free(pSVar2);\n  *(undefined4 *)(unaff_retaddr[param_1 * 4 + 0x70] + 4) = 0;\nLAB_00075399:\n  if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007c1a0();\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_000752b0(int param_1)\n\n{\n  int iVar1;\n  SSL *pSVar2;\n  ulong e;\n  char *buf;\n  int *piVar3;\n  int iVar4;\n  char *pcVar5;\n  int unaff_EBX;\n  int in_GS_OFFSET;\n  int *unaff_retaddr;\n  int iVar6;\n  char local_124 [256];\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x752b9;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar6 = *unaff_retaddr;\n  pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  if (*(int *)(iVar6 + 0x94c) == 2) {\n    SSL_shutdown(pSVar2);\n    pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  }\n  buf = local_124;\n  pcVar5 = "curl_multi_assign" + unaff_EBX + 0xc;\n  if (pSVar2 == (SSL *)0x0) {\n    iVar1 = 0;\n    goto LAB_00075399;\n  }\n  while( true ) {\n    iVar1 = FUN_00049010(unaff_retaddr[param_1 + 100],0xffffffff,0xffffffff,10000,iVar6,buf,pcVar5);\n    if (iVar1 < 1) break;\n    ERR_clear_error();\n    iVar1 = SSL_read(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),buf,0x100);\n    iVar4 = SSL_get_error(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),iVar1);\n    if (iVar4 != 2) {\n      if (iVar4 < 3) {\n        iVar1 = 0;\n        if (iVar4 == 0) goto LAB_00075361;\n      }\n      else {\n        if (iVar4 == 3) {\n          FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);\n          iVar1 = 0;\n          goto LAB_00075361;\n        }\n        iVar1 = 0;\n        if (iVar4 == 6) goto LAB_00075361;\n      }\n      e = ERR_get_error();\n      piVar3 = __errno_location();\n      iVar1 = *piVar3;\n      if (e == 0) {\n        buf = (char *)FUN_00074430();\n      }\n      else {\n        ERR_error_string_n(e,buf,0x100);\n      }\n      FUN_00027240(*unaff_retaddr,"gss_display_status" + unaff_EBX + 6,buf,iVar1);\n      iVar1 = 0;\n      goto LAB_00075361;\n    }\n    FUN_00027140(iVar6,pcVar5);\n  }\n  if (iVar1 == 0) {\n    FUN_00027240(iVar6,"inflateInit_" + unaff_EBX + 0xc);\n  }\n  else {\n    piVar3 = __errno_location();\n    FUN_00027240(iVar6,"gss_inquire_context" + unaff_EBX + 0x12,*piVar3);\n    iVar1 = -1;\n  }\nLAB_00075361:\n  pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  if (*(char *)(iVar6 + 0x93c) != '\0') {\n    iVar4 = SSL_get_shutdown(pSVar2);\n    if (iVar4 == 2) {\n      pcVar5 = "RTMP_Write" + unaff_EBX;\n    }\n    else if (iVar4 == 3) {\n      pcVar5 = "RTMP_SetBufferMS" + unaff_EBX + 1;\n    }\n    else {\n      if (iVar4 != 1) {\n        pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n        goto LAB_0007537a;\n      }\n      pcVar5 = "pthread_join" + unaff_EBX;\n    }\n    FUN_00027140(iVar6,pcVar5);\n    pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  }\nLAB_0007537a:\n  SSL_free(pSVar2);\n  *(undefined4 *)(unaff_retaddr[param_1 * 4 + 0x70] + 4) = 0;\nLAB_00075399:\n  if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007c1a0();\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_000752b0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  SSL *pSVar2;\n  ulong e;\n  char *buf;\n  int *piVar3;\n  int iVar4;\n  char *pcVar5;\n  int unaff_EBX;\n  int in_GS_OFFSET;\n  int *unaff_retaddr;\n  int iVar6;\n  char local_124 [256];\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x752b9;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar6 = *unaff_retaddr;\n  pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  if (*(int *)(iVar6 + 0x94c) == 2) {\n    SSL_shutdown(pSVar2);\n    pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  }\n  buf = local_124;\n  pcVar5 = "curl_multi_assign" + unaff_EBX + 0xc;\n  if (pSVar2 == (SSL *)0x0) {\n    iVar1 = 0;\n    goto LAB_00075399;\n  }\n  while( true ) {\n    iVar1 = FUN_00049010(unaff_retaddr[param_1 + 100],0xffffffff,0xffffffff,10000,iVar6,buf,pcVar5);\n    if (iVar1 < 1) break;\n    ERR_clear_error();\n    iVar1 = SSL_read(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),buf,0x100);\n    iVar4 = SSL_get_error(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),iVar1);\n    if (iVar4 != 2) {\n      if (iVar4 < 3) {\n        iVar1 = 0;\n        if (iVar4 == 0) goto LAB_00075361;\n      }\n      else {\n        if (iVar4 == 3) {\n          FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);\n          iVar1 = 0;\n          goto LAB_00075361;\n        }\n        iVar1 = 0;\n        if (iVar4 == 6) goto LAB_00075361;\n      }\n      e = ERR_get_error();\n      piVar3 = __errno_location();\n      iVar1 = *piVar3;\n      if (e == 0) {\n        buf = (char *)FUN_00074430();\n      }\n      else {\n        ERR_error_string_n(e,buf,0x100);\n      }\n      FUN_00027240(*unaff_retaddr,"gss_display_status" + unaff_EBX + 6,buf,iVar1);\n      iVar1 = 0;\n      goto LAB_00075361;\n    }\n    FUN_00027140(iVar6,pcVar5);\n  }\n  if (iVar1 == 0) {\n    FUN_00027240(iVar6,"inflateInit_" + unaff_EBX + 0xc);\n  }\n  else {\n    piVar3 = __errno_location();\n    FUN_00027240(iVar6,"gss_inquire_context" + unaff_EBX + 0x12,*piVar3);\n    iVar1 = -1;\n  }\nLAB_00075361:\n  pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  if (*(char *)(iVar6 + 0x93c) != '\0') {\n    iVar4 = SSL_get_shutdown(pSVar2);\n    if (iVar4 == 2) {\n      pcVar5 = "RTMP_Write" + unaff_EBX;\n    }\n    else if (iVar4 == 3) {\n      pcVar5 = "RTMP_SetBufferMS" + unaff_EBX + 1;\n    }\n    else {\n      if (iVar4 != 1) {\n        pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n        goto LAB_0007537a;\n      }\n      pcVar5 = "pthread_join" + unaff_EBX;\n    }\n    FUN_00027140(iVar6,pcVar5);\n    pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  }\nLAB_0007537a:\n  SSL_free(pSVar2);\n  *(undefined4 *)(unaff_retaddr[param_1 * 4 + 0x70] + 4) = 0;\nLAB_00075399:\n  if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007c1a0();\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "SSL *pSVar2;" type_identifier (pointer_declarator "*pSVar2" * identifier) ;) (declaration "ulong e;" type_identifier identifier ;) (declaration "char *buf;" primitive_type (pointer_declarator "*buf" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int *unaff_retaddr;" primitive_type (pointer_declarator "*unaff_retaddr" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "char local_124 [256];" primitive_type (array_declarator "local_124 [256]" identifier [ number_literal ]) ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x752b9;" (assignment_expression "uStack_14 = 0x752b9" identifier = number_literal) ;) (expression_statement "entry();" (call_expression "entry()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_24 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_24 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = *unaff_retaddr;" (assignment_expression "iVar6 = *unaff_retaddr" identifier = (pointer_expression "*unaff_retaddr" * identifier)) ;) (expression_statement "pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);" (assignment_expression "pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" identifier = (pointer_expression "*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" * (cast_expression "(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" ( (type_descriptor "SSL **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_retaddr[param_1 * 4 + 0x70] + 4)" ( (binary_expression "unaff_retaddr[param_1 * 4 + 0x70] + 4" (subscript_expression "unaff_retaddr[param_1 * 4 + 0x70]" identifier [ (binary_expression "param_1 * 4 + 0x70" (binary_expression "param_1 * 4" identifier * number_literal) + number_literal) ]) + number_literal) ))))) ;) (if_statement "if (*(int *)(iVar6 + 0x94c) == 2) {\n    SSL_shutdown(pSVar2);\n    pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  }" if (parenthesized_expression "(*(int *)(iVar6 + 0x94c) == 2)" ( (binary_expression "*(int *)(iVar6 + 0x94c) == 2" (pointer_expression "*(int *)(iVar6 + 0x94c)" * (cast_expression "(int *)(iVar6 + 0x94c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x94c)" ( (binary_expression "iVar6 + 0x94c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    SSL_shutdown(pSVar2);\n    pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  }" { (expression_statement "SSL_shutdown(pSVar2);" (call_expression "SSL_shutdown(pSVar2)" identifier (argument_list "(pSVar2)" ( identifier ))) ;) (expression_statement "pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);" (assignment_expression "pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" identifier = (pointer_expression "*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" * (cast_expression "(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" ( (type_descriptor "SSL **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_retaddr[param_1 * 4 + 0x70] + 4)" ( (binary_expression "unaff_retaddr[param_1 * 4 + 0x70] + 4" (subscript_expression "unaff_retaddr[param_1 * 4 + 0x70]" identifier [ (binary_expression "param_1 * 4 + 0x70" (binary_expression "param_1 * 4" identifier * number_literal) + number_literal) ]) + number_literal) ))))) ;) })) (expression_statement "buf = local_124;" (assignment_expression "buf = local_124" identifier = identifier) ;) (expression_statement "pcVar5 = "curl_multi_assign" + unaff_EBX + 0xc;" (assignment_expression "pcVar5 = "curl_multi_assign" + unaff_EBX + 0xc" identifier = (binary_expression ""curl_multi_assign" + unaff_EBX + 0xc" (binary_expression ""curl_multi_assign" + unaff_EBX" (string_literal ""curl_multi_assign"" " string_content ") + identifier) + number_literal)) ;) (if_statement "if (pSVar2 == (SSL *)0x0) {\n    iVar1 = 0;\n    goto LAB_00075399;\n  }" if (parenthesized_expression "(pSVar2 == (SSL *)0x0)" ( (binary_expression "pSVar2 == (SSL *)0x0" identifier == (cast_expression "(SSL *)0x0" ( (type_descriptor "SSL *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = 0;\n    goto LAB_00075399;\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00075399;" goto statement_identifier ;) })) (while_statement "while( true ) {\n    iVar1 = FUN_00049010(unaff_retaddr[param_1 + 100],0xffffffff,0xffffffff,10000,iVar6,buf,pcVar5);\n    if (iVar1 < 1) break;\n    ERR_clear_error();\n    iVar1 = SSL_read(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),buf,0x100);\n    iVar4 = SSL_get_error(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),iVar1);\n    if (iVar4 != 2) {\n      if (iVar4 < 3) {\n        iVar1 = 0;\n        if (iVar4 == 0) goto LAB_00075361;\n      }\n      else {\n        if (iVar4 == 3) {\n          FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);\n          iVar1 = 0;\n          goto LAB_00075361;\n        }\n        iVar1 = 0;\n        if (iVar4 == 6) goto LAB_00075361;\n      }\n      e = ERR_get_error();\n      piVar3 = __errno_location();\n      iVar1 = *piVar3;\n      if (e == 0) {\n        buf = (char *)FUN_00074430();\n      }\n      else {\n        ERR_error_string_n(e,buf,0x100);\n      }\n      FUN_00027240(*unaff_retaddr,"gss_display_status" + unaff_EBX + 6,buf,iVar1);\n      iVar1 = 0;\n      goto LAB_00075361;\n    }\n    FUN_00027140(iVar6,pcVar5);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar1 = FUN_00049010(unaff_retaddr[param_1 + 100],0xffffffff,0xffffffff,10000,iVar6,buf,pcVar5);\n    if (iVar1 < 1) break;\n    ERR_clear_error();\n    iVar1 = SSL_read(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),buf,0x100);\n    iVar4 = SSL_get_error(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),iVar1);\n    if (iVar4 != 2) {\n      if (iVar4 < 3) {\n        iVar1 = 0;\n        if (iVar4 == 0) goto LAB_00075361;\n      }\n      else {\n        if (iVar4 == 3) {\n          FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);\n          iVar1 = 0;\n          goto LAB_00075361;\n        }\n        iVar1 = 0;\n        if (iVar4 == 6) goto LAB_00075361;\n      }\n      e = ERR_get_error();\n      piVar3 = __errno_location();\n      iVar1 = *piVar3;\n      if (e == 0) {\n        buf = (char *)FUN_00074430();\n      }\n      else {\n        ERR_error_string_n(e,buf,0x100);\n      }\n      FUN_00027240(*unaff_retaddr,"gss_display_status" + unaff_EBX + 6,buf,iVar1);\n      iVar1 = 0;\n      goto LAB_00075361;\n    }\n    FUN_00027140(iVar6,pcVar5);\n  }" { (expression_statement "iVar1 = FUN_00049010(unaff_retaddr[param_1 + 100],0xffffffff,0xffffffff,10000,iVar6,buf,pcVar5);" (assignment_expression "iVar1 = FUN_00049010(unaff_retaddr[param_1 + 100],0xffffffff,0xffffffff,10000,iVar6,buf,pcVar5)" identifier = (call_expression "FUN_00049010(unaff_retaddr[param_1 + 100],0xffffffff,0xffffffff,10000,iVar6,buf,pcVar5)" identifier (argument_list "(unaff_retaddr[param_1 + 100],0xffffffff,0xffffffff,10000,iVar6,buf,pcVar5)" ( (subscript_expression "unaff_retaddr[param_1 + 100]" identifier [ (binary_expression "param_1 + 100" identifier + number_literal) ]) , number_literal , number_literal , number_literal , identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 < 1) break;" if (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) (break_statement "break;" break ;)) (expression_statement "ERR_clear_error();" (call_expression "ERR_clear_error()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = SSL_read(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),buf,0x100);" (assignment_expression "iVar1 = SSL_read(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),buf,0x100)" identifier = (call_expression "SSL_read(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),buf,0x100)" identifier (argument_list "(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),buf,0x100)" ( (pointer_expression "*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" * (cast_expression "(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" ( (type_descriptor "SSL **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_retaddr[param_1 * 4 + 0x70] + 4)" ( (binary_expression "unaff_retaddr[param_1 * 4 + 0x70] + 4" (subscript_expression "unaff_retaddr[param_1 * 4 + 0x70]" identifier [ (binary_expression "param_1 * 4 + 0x70" (binary_expression "param_1 * 4" identifier * number_literal) + number_literal) ]) + number_literal) )))) , identifier , number_literal )))) ;) (expression_statement "iVar4 = SSL_get_error(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),iVar1);" (assignment_expression "iVar4 = SSL_get_error(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),iVar1)" identifier = (call_expression "SSL_get_error(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),iVar1)" identifier (argument_list "(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),iVar1)" ( (pointer_expression "*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" * (cast_expression "(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" ( (type_descriptor "SSL **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_retaddr[param_1 * 4 + 0x70] + 4)" ( (binary_expression "unaff_retaddr[param_1 * 4 + 0x70] + 4" (subscript_expression "unaff_retaddr[param_1 * 4 + 0x70]" identifier [ (binary_expression "param_1 * 4 + 0x70" (binary_expression "param_1 * 4" identifier * number_literal) + number_literal) ]) + number_literal) )))) , identifier )))) ;) (if_statement "if (iVar4 != 2) {\n      if (iVar4 < 3) {\n        iVar1 = 0;\n        if (iVar4 == 0) goto LAB_00075361;\n      }\n      else {\n        if (iVar4 == 3) {\n          FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);\n          iVar1 = 0;\n          goto LAB_00075361;\n        }\n        iVar1 = 0;\n        if (iVar4 == 6) goto LAB_00075361;\n      }\n      e = ERR_get_error();\n      piVar3 = __errno_location();\n      iVar1 = *piVar3;\n      if (e == 0) {\n        buf = (char *)FUN_00074430();\n      }\n      else {\n        ERR_error_string_n(e,buf,0x100);\n      }\n      FUN_00027240(*unaff_retaddr,"gss_display_status" + unaff_EBX + 6,buf,iVar1);\n      iVar1 = 0;\n      goto LAB_00075361;\n    }" if (parenthesized_expression "(iVar4 != 2)" ( (binary_expression "iVar4 != 2" identifier != number_literal) )) (compound_statement "{\n      if (iVar4 < 3) {\n        iVar1 = 0;\n        if (iVar4 == 0) goto LAB_00075361;\n      }\n      else {\n        if (iVar4 == 3) {\n          FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);\n          iVar1 = 0;\n          goto LAB_00075361;\n        }\n        iVar1 = 0;\n        if (iVar4 == 6) goto LAB_00075361;\n      }\n      e = ERR_get_error();\n      piVar3 = __errno_location();\n      iVar1 = *piVar3;\n      if (e == 0) {\n        buf = (char *)FUN_00074430();\n      }\n      else {\n        ERR_error_string_n(e,buf,0x100);\n      }\n      FUN_00027240(*unaff_retaddr,"gss_display_status" + unaff_EBX + 6,buf,iVar1);\n      iVar1 = 0;\n      goto LAB_00075361;\n    }" { (if_statement "if (iVar4 < 3) {\n        iVar1 = 0;\n        if (iVar4 == 0) goto LAB_00075361;\n      }\n      else {\n        if (iVar4 == 3) {\n          FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);\n          iVar1 = 0;\n          goto LAB_00075361;\n        }\n        iVar1 = 0;\n        if (iVar4 == 6) goto LAB_00075361;\n      }" if (parenthesized_expression "(iVar4 < 3)" ( (binary_expression "iVar4 < 3" identifier < number_literal) )) (compound_statement "{\n        iVar1 = 0;\n        if (iVar4 == 0) goto LAB_00075361;\n      }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (iVar4 == 0) goto LAB_00075361;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00075361;" goto statement_identifier ;)) }) (else_clause "else {\n        if (iVar4 == 3) {\n          FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);\n          iVar1 = 0;\n          goto LAB_00075361;\n        }\n        iVar1 = 0;\n        if (iVar4 == 6) goto LAB_00075361;\n      }" else (compound_statement "{\n        if (iVar4 == 3) {\n          FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);\n          iVar1 = 0;\n          goto LAB_00075361;\n        }\n        iVar1 = 0;\n        if (iVar4 == 6) goto LAB_00075361;\n      }" { (if_statement "if (iVar4 == 3) {\n          FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);\n          iVar1 = 0;\n          goto LAB_00075361;\n        }" if (parenthesized_expression "(iVar4 == 3)" ( (binary_expression "iVar4 == 3" identifier == number_literal) )) (compound_statement "{\n          FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);\n          iVar1 = 0;\n          goto LAB_00075361;\n        }" { (expression_statement "FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);" (call_expression "FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1)" identifier (argument_list "(iVar6,"inflateEnd" + unaff_EBX + 1)" ( identifier , (binary_expression ""inflateEnd" + unaff_EBX + 1" (binary_expression ""inflateEnd" + unaff_EBX" (string_literal ""inflateEnd"" " string_content ") + identifier) + number_literal) ))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00075361;" goto statement_identifier ;) })) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (iVar4 == 6) goto LAB_00075361;" if (parenthesized_expression "(iVar4 == 6)" ( (binary_expression "iVar4 == 6" identifier == number_literal) )) (goto_statement "goto LAB_00075361;" goto statement_identifier ;)) }))) (expression_statement "e = ERR_get_error();" (assignment_expression "e = ERR_get_error()" identifier = (call_expression "ERR_get_error()" identifier (argument_list "()" ( )))) ;) (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (if_statement "if (e == 0) {\n        buf = (char *)FUN_00074430();\n      }\n      else {\n        ERR_error_string_n(e,buf,0x100);\n      }" if (parenthesized_expression "(e == 0)" ( (binary_expression "e == 0" identifier == number_literal) )) (compound_statement "{\n        buf = (char *)FUN_00074430();\n      }" { (expression_statement "buf = (char *)FUN_00074430();" (assignment_expression "buf = (char *)FUN_00074430()" identifier = (cast_expression "(char *)FUN_00074430()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00074430()" identifier (argument_list "()" ( ))))) ;) }) (else_clause "else {\n        ERR_error_string_n(e,buf,0x100);\n      }" else (compound_statement "{\n        ERR_error_string_n(e,buf,0x100);\n      }" { (expression_statement "ERR_error_string_n(e,buf,0x100);" (call_expression "ERR_error_string_n(e,buf,0x100)" identifier (argument_list "(e,buf,0x100)" ( identifier , identifier , number_literal ))) ;) }))) (expression_statement "FUN_00027240(*unaff_retaddr,"gss_display_status" + unaff_EBX + 6,buf,iVar1);" (call_expression "FUN_00027240(*unaff_retaddr,"gss_display_status" + unaff_EBX + 6,buf,iVar1)" identifier (argument_list "(*unaff_retaddr,"gss_display_status" + unaff_EBX + 6,buf,iVar1)" ( (pointer_expression "*unaff_retaddr" * identifier) , (binary_expression ""gss_display_status" + unaff_EBX + 6" (binary_expression ""gss_display_status" + unaff_EBX" (string_literal ""gss_display_status"" " string_content ") + identifier) + number_literal) , identifier , identifier ))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00075361;" goto statement_identifier ;) })) (expression_statement "FUN_00027140(iVar6,pcVar5);" (call_expression "FUN_00027140(iVar6,pcVar5)" identifier (argument_list "(iVar6,pcVar5)" ( identifier , identifier ))) ;) })) (if_statement "if (iVar1 == 0) {\n    FUN_00027240(iVar6,"inflateInit_" + unaff_EBX + 0xc);\n  }\n  else {\n    piVar3 = __errno_location();\n    FUN_00027240(iVar6,"gss_inquire_context" + unaff_EBX + 0x12,*piVar3);\n    iVar1 = -1;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_00027240(iVar6,"inflateInit_" + unaff_EBX + 0xc);\n  }" { (expression_statement "FUN_00027240(iVar6,"inflateInit_" + unaff_EBX + 0xc);" (call_expression "FUN_00027240(iVar6,"inflateInit_" + unaff_EBX + 0xc)" identifier (argument_list "(iVar6,"inflateInit_" + unaff_EBX + 0xc)" ( identifier , (binary_expression ""inflateInit_" + unaff_EBX + 0xc" (binary_expression ""inflateInit_" + unaff_EBX" (string_literal ""inflateInit_"" " string_content ") + identifier) + number_literal) ))) ;) }) (else_clause "else {\n    piVar3 = __errno_location();\n    FUN_00027240(iVar6,"gss_inquire_context" + unaff_EBX + 0x12,*piVar3);\n    iVar1 = -1;\n  }" else (compound_statement "{\n    piVar3 = __errno_location();\n    FUN_00027240(iVar6,"gss_inquire_context" + unaff_EBX + 0x12,*piVar3);\n    iVar1 = -1;\n  }" { (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_00027240(iVar6,"gss_inquire_context" + unaff_EBX + 0x12,*piVar3);" (call_expression "FUN_00027240(iVar6,"gss_inquire_context" + unaff_EBX + 0x12,*piVar3)" identifier (argument_list "(iVar6,"gss_inquire_context" + unaff_EBX + 0x12,*piVar3)" ( identifier , (binary_expression ""gss_inquire_context" + unaff_EBX + 0x12" (binary_expression ""gss_inquire_context" + unaff_EBX" (string_literal ""gss_inquire_context"" " string_content ") + identifier) + number_literal) , (pointer_expression "*piVar3" * identifier) ))) ;) (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) }))) (labeled_statement "LAB_00075361:\n  pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);" statement_identifier : (expression_statement "pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);" (assignment_expression "pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" identifier = (pointer_expression "*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" * (cast_expression "(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" ( (type_descriptor "SSL **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_retaddr[param_1 * 4 + 0x70] + 4)" ( (binary_expression "unaff_retaddr[param_1 * 4 + 0x70] + 4" (subscript_expression "unaff_retaddr[param_1 * 4 + 0x70]" identifier [ (binary_expression "param_1 * 4 + 0x70" (binary_expression "param_1 * 4" identifier * number_literal) + number_literal) ]) + number_literal) ))))) ;)) (if_statement "if (*(char *)(iVar6 + 0x93c) != '\0') {\n    iVar4 = SSL_get_shutdown(pSVar2);\n    if (iVar4 == 2) {\n      pcVar5 = "RTMP_Write" + unaff_EBX;\n    }\n    else if (iVar4 == 3) {\n      pcVar5 = "RTMP_SetBufferMS" + unaff_EBX + 1;\n    }\n    else {\n      if (iVar4 != 1) {\n        pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n        goto LAB_0007537a;\n      }\n      pcVar5 = "pthread_join" + unaff_EBX;\n    }\n    FUN_00027140(iVar6,pcVar5);\n    pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  }" if (parenthesized_expression "(*(char *)(iVar6 + 0x93c) != '\0')" ( (binary_expression "*(char *)(iVar6 + 0x93c) != '\0'" (pointer_expression "*(char *)(iVar6 + 0x93c)" * (cast_expression "(char *)(iVar6 + 0x93c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x93c)" ( (binary_expression "iVar6 + 0x93c" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar4 = SSL_get_shutdown(pSVar2);\n    if (iVar4 == 2) {\n      pcVar5 = "RTMP_Write" + unaff_EBX;\n    }\n    else if (iVar4 == 3) {\n      pcVar5 = "RTMP_SetBufferMS" + unaff_EBX + 1;\n    }\n    else {\n      if (iVar4 != 1) {\n        pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n        goto LAB_0007537a;\n      }\n      pcVar5 = "pthread_join" + unaff_EBX;\n    }\n    FUN_00027140(iVar6,pcVar5);\n    pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  }" { (expression_statement "iVar4 = SSL_get_shutdown(pSVar2);" (assignment_expression "iVar4 = SSL_get_shutdown(pSVar2)" identifier = (call_expression "SSL_get_shutdown(pSVar2)" identifier (argument_list "(pSVar2)" ( identifier )))) ;) (if_statement "if (iVar4 == 2) {\n      pcVar5 = "RTMP_Write" + unaff_EBX;\n    }\n    else if (iVar4 == 3) {\n      pcVar5 = "RTMP_SetBufferMS" + unaff_EBX + 1;\n    }\n    else {\n      if (iVar4 != 1) {\n        pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n        goto LAB_0007537a;\n      }\n      pcVar5 = "pthread_join" + unaff_EBX;\n    }" if (parenthesized_expression "(iVar4 == 2)" ( (binary_expression "iVar4 == 2" identifier == number_literal) )) (compound_statement "{\n      pcVar5 = "RTMP_Write" + unaff_EBX;\n    }" { (expression_statement "pcVar5 = "RTMP_Write" + unaff_EBX;" (assignment_expression "pcVar5 = "RTMP_Write" + unaff_EBX" identifier = (binary_expression ""RTMP_Write" + unaff_EBX" (string_literal ""RTMP_Write"" " string_content ") + identifier)) ;) }) (else_clause "else if (iVar4 == 3) {\n      pcVar5 = "RTMP_SetBufferMS" + unaff_EBX + 1;\n    }\n    else {\n      if (iVar4 != 1) {\n        pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n        goto LAB_0007537a;\n      }\n      pcVar5 = "pthread_join" + unaff_EBX;\n    }" else (if_statement "if (iVar4 == 3) {\n      pcVar5 = "RTMP_SetBufferMS" + unaff_EBX + 1;\n    }\n    else {\n      if (iVar4 != 1) {\n        pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n        goto LAB_0007537a;\n      }\n      pcVar5 = "pthread_join" + unaff_EBX;\n    }" if (parenthesized_expression "(iVar4 == 3)" ( (binary_expression "iVar4 == 3" identifier == number_literal) )) (compound_statement "{\n      pcVar5 = "RTMP_SetBufferMS" + unaff_EBX + 1;\n    }" { (expression_statement "pcVar5 = "RTMP_SetBufferMS" + unaff_EBX + 1;" (assignment_expression "pcVar5 = "RTMP_SetBufferMS" + unaff_EBX + 1" identifier = (binary_expression ""RTMP_SetBufferMS" + unaff_EBX + 1" (binary_expression ""RTMP_SetBufferMS" + unaff_EBX" (string_literal ""RTMP_SetBufferMS"" " string_content ") + identifier) + number_literal)) ;) }) (else_clause "else {\n      if (iVar4 != 1) {\n        pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n        goto LAB_0007537a;\n      }\n      pcVar5 = "pthread_join" + unaff_EBX;\n    }" else (compound_statement "{\n      if (iVar4 != 1) {\n        pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n        goto LAB_0007537a;\n      }\n      pcVar5 = "pthread_join" + unaff_EBX;\n    }" { (if_statement "if (iVar4 != 1) {\n        pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n        goto LAB_0007537a;\n      }" if (parenthesized_expression "(iVar4 != 1)" ( (binary_expression "iVar4 != 1" identifier != number_literal) )) (compound_statement "{\n        pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n        goto LAB_0007537a;\n      }" { (expression_statement "pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);" (assignment_expression "pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" identifier = (pointer_expression "*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" * (cast_expression "(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" ( (type_descriptor "SSL **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_retaddr[param_1 * 4 + 0x70] + 4)" ( (binary_expression "unaff_retaddr[param_1 * 4 + 0x70] + 4" (subscript_expression "unaff_retaddr[param_1 * 4 + 0x70]" identifier [ (binary_expression "param_1 * 4 + 0x70" (binary_expression "param_1 * 4" identifier * number_literal) + number_literal) ]) + number_literal) ))))) ;) (goto_statement "goto LAB_0007537a;" goto statement_identifier ;) })) (expression_statement "pcVar5 = "pthread_join" + unaff_EBX;" (assignment_expression "pcVar5 = "pthread_join" + unaff_EBX" identifier = (binary_expression ""pthread_join" + unaff_EBX" (string_literal ""pthread_join"" " string_content ") + identifier)) ;) }))))) (expression_statement "FUN_00027140(iVar6,pcVar5);" (call_expression "FUN_00027140(iVar6,pcVar5)" identifier (argument_list "(iVar6,pcVar5)" ( identifier , identifier ))) ;) (expression_statement "pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);" (assignment_expression "pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" identifier = (pointer_expression "*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" * (cast_expression "(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" ( (type_descriptor "SSL **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_retaddr[param_1 * 4 + 0x70] + 4)" ( (binary_expression "unaff_retaddr[param_1 * 4 + 0x70] + 4" (subscript_expression "unaff_retaddr[param_1 * 4 + 0x70]" identifier [ (binary_expression "param_1 * 4 + 0x70" (binary_expression "param_1 * 4" identifier * number_literal) + number_literal) ]) + number_literal) ))))) ;) })) (labeled_statement "LAB_0007537a:\n  SSL_free(pSVar2);" statement_identifier : (expression_statement "SSL_free(pSVar2);" (call_expression "SSL_free(pSVar2)" identifier (argument_list "(pSVar2)" ( identifier ))) ;)) (expression_statement "*(undefined4 *)(unaff_retaddr[param_1 * 4 + 0x70] + 4) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr[param_1 * 4 + 0x70] + 4) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" * (cast_expression "(undefined4 *)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr[param_1 * 4 + 0x70] + 4)" ( (binary_expression "unaff_retaddr[param_1 * 4 + 0x70] + 4" (subscript_expression "unaff_retaddr[param_1 * 4 + 0x70]" identifier [ (binary_expression "param_1 * 4 + 0x70" (binary_expression "param_1 * 4" identifier * number_literal) + number_literal) ]) + number_literal) )))) = number_literal) ;) (labeled_statement "LAB_00075399:\n  if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007c1a0();\n  }" statement_identifier : (if_statement "if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007c1a0();\n  }" if (parenthesized_expression "(local_24 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_24 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0007c1a0();\n  }" { comment (expression_statement "FUN_0007c1a0();" (call_expression "FUN_0007c1a0()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nint Curl_ossl_shutdown(connectdata *conn,int sockindex)\n\n{\n  int iVar1;\n  Curl_easy *data;\n  int iVar2;\n  SSL *pSVar3;\n  ulong e;\n  char *pcVar4;\n  int *piVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  char buf [256];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  data = conn->data;\n  pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;\n  if ((data->set).ftp_ccc == CURLFTPSSL_CCC_ACTIVE) {\n    SSL_shutdown(pSVar3);\n    pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;\n  }\n  pcVar4 = buf;\n  if (pSVar3 == (SSL *)0x0) {\n    iVar2 = 0;\n    goto LAB_00075399;\n  }\n  while( true ) {\n    iVar2 = Curl_socket_check(conn->sock[sockindex],-1,-1,10000);\n    if (iVar2 < 1) break;\n    ERR_clear_error();\n    iVar2 = SSL_read((SSL *)(conn->ssl[sockindex].backend)->handle,pcVar4,0x100);\n    iVar6 = SSL_get_error((SSL *)(conn->ssl[sockindex].backend)->handle,iVar2);\n    if (iVar6 != 2) {\n      if (iVar6 < 3) {\n        iVar2 = 0;\n        if (iVar6 == 0) goto LAB_00075361;\n      }\n      else {\n        if (iVar6 == 3) {\n          Curl_infof(data,"SSL_ERROR_WANT_WRITE\n");\n          iVar2 = 0;\n          goto LAB_00075361;\n        }\n        iVar2 = 0;\n        if (iVar6 == 6) goto LAB_00075361;\n      }\n      e = ERR_get_error();\n      piVar5 = __errno_location();\n      iVar2 = *piVar5;\n      if (e == 0) {\n        pcVar4 = SSL_ERROR_to_str(iVar6);\n      }\n      else {\n        ERR_error_string_n(e,pcVar4,0x100);\n      }\n      Curl_failf(conn->data,"OpenSSL SSL_read on shutdown: %s, errno %d",pcVar4,iVar2);\n      iVar2 = 0;\n      goto LAB_00075361;\n    }\n    Curl_infof(data,"SSL_ERROR_WANT_READ\n");\n  }\n  if (iVar2 == 0) {\n    Curl_failf(data,"SSL shutdown timeout");\n    iVar2 = 0;\n  }\n  else {\n    piVar5 = __errno_location();\n    Curl_failf(data,"select/poll on SSL socket, errno: %d",*piVar5);\n    iVar2 = -1;\n  }\nLAB_00075361:\n  pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;\n  if ((data->set).verbose != false) {\n    iVar6 = SSL_get_shutdown(pSVar3);\n    if (iVar6 == 2) {\n      pcVar4 = "SSL_get_shutdown() returned SSL_RECEIVED_SHUTDOWN\n";\n    }\n    else if (iVar6 == 3) {\n      pcVar4 = "SSL_get_shutdown() returned SSL_SENT_SHUTDOWN|SSL_RECEIVED__SHUTDOWN\n";\n    }\n    else {\n      if (iVar6 != 1) {\n        pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;\n        goto LAB_0007537a;\n      }\n      pcVar4 = "SSL_get_shutdown() returned SSL_SENT_SHUTDOWN\n";\n    }\n    Curl_infof(data,pcVar4);\n    pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;\n  }\nLAB_0007537a:\n  SSL_free(pSVar3);\n  (conn->ssl[sockindex].backend)->handle = (SSL *)0x0;\nLAB_00075399:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar2;\n}\n\n" comment comment comment (function_definition "int Curl_ossl_shutdown(connectdata *conn,int sockindex)\n\n{\n  int iVar1;\n  Curl_easy *data;\n  int iVar2;\n  SSL *pSVar3;\n  ulong e;\n  char *pcVar4;\n  int *piVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  char buf [256];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  data = conn->data;\n  pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;\n  if ((data->set).ftp_ccc == CURLFTPSSL_CCC_ACTIVE) {\n    SSL_shutdown(pSVar3);\n    pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;\n  }\n  pcVar4 = buf;\n  if (pSVar3 == (SSL *)0x0) {\n    iVar2 = 0;\n    goto LAB_00075399;\n  }\n  while( true ) {\n    iVar2 = Curl_socket_check(conn->sock[sockindex],-1,-1,10000);\n    if (iVar2 < 1) break;\n    ERR_clear_error();\n    iVar2 = SSL_read((SSL *)(conn->ssl[sockindex].backend)->handle,pcVar4,0x100);\n    iVar6 = SSL_get_error((SSL *)(conn->ssl[sockindex].backend)->handle,iVar2);\n    if (iVar6 != 2) {\n      if (iVar6 < 3) {\n        iVar2 = 0;\n        if (iVar6 == 0) goto LAB_00075361;\n      }\n      else {\n        if (iVar6 == 3) {\n          Curl_infof(data,"SSL_ERROR_WANT_WRITE\n");\n          iVar2 = 0;\n          goto LAB_00075361;\n        }\n        iVar2 = 0;\n        if (iVar6 == 6) goto LAB_00075361;\n      }\n      e = ERR_get_error();\n      piVar5 = __errno_location();\n      iVar2 = *piVar5;\n      if (e == 0) {\n        pcVar4 = SSL_ERROR_to_str(iVar6);\n      }\n      else {\n        ERR_error_string_n(e,pcVar4,0x100);\n      }\n      Curl_failf(conn->data,"OpenSSL SSL_read on shutdown: %s, errno %d",pcVar4,iVar2);\n      iVar2 = 0;\n      goto LAB_00075361;\n    }\n    Curl_infof(data,"SSL_ERROR_WANT_READ\n");\n  }\n  if (iVar2 == 0) {\n    Curl_failf(data,"SSL shutdown timeout");\n    iVar2 = 0;\n  }\n  else {\n    piVar5 = __errno_location();\n    Curl_failf(data,"select/poll on SSL socket, errno: %d",*piVar5);\n    iVar2 = -1;\n  }\nLAB_00075361:\n  pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;\n  if ((data->set).verbose != false) {\n    iVar6 = SSL_get_shutdown(pSVar3);\n    if (iVar6 == 2) {\n      pcVar4 = "SSL_get_shutdown() returned SSL_RECEIVED_SHUTDOWN\n";\n    }\n    else if (iVar6 == 3) {\n      pcVar4 = "SSL_get_shutdown() returned SSL_SENT_SHUTDOWN|SSL_RECEIVED__SHUTDOWN\n";\n    }\n    else {\n      if (iVar6 != 1) {\n        pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;\n        goto LAB_0007537a;\n      }\n      pcVar4 = "SSL_get_shutdown() returned SSL_SENT_SHUTDOWN\n";\n    }\n    Curl_infof(data,pcVar4);\n    pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;\n  }\nLAB_0007537a:\n  SSL_free(pSVar3);\n  (conn->ssl[sockindex].backend)->handle = (SSL *)0x0;\nLAB_00075399:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar2;\n}" primitive_type (function_declarator "Curl_ossl_shutdown(connectdata *conn,int sockindex)" identifier (parameter_list "(connectdata *conn,int sockindex)" ( (parameter_declaration "connectdata *conn" type_identifier (pointer_declarator "*conn" * identifier)) , (parameter_declaration "int sockindex" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  Curl_easy *data;\n  int iVar2;\n  SSL *pSVar3;\n  ulong e;\n  char *pcVar4;\n  int *piVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  char buf [256];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  data = conn->data;\n  pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;\n  if ((data->set).ftp_ccc == CURLFTPSSL_CCC_ACTIVE) {\n    SSL_shutdown(pSVar3);\n    pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;\n  }\n  pcVar4 = buf;\n  if (pSVar3 == (SSL *)0x0) {\n    iVar2 = 0;\n    goto LAB_00075399;\n  }\n  while( true ) {\n    iVar2 = Curl_socket_check(conn->sock[sockindex],-1,-1,10000);\n    if (iVar2 < 1) break;\n    ERR_clear_error();\n    iVar2 = SSL_read((SSL *)(conn->ssl[sockindex].backend)->handle,pcVar4,0x100);\n    iVar6 = SSL_get_error((SSL *)(conn->ssl[sockindex].backend)->handle,iVar2);\n    if (iVar6 != 2) {\n      if (iVar6 < 3) {\n        iVar2 = 0;\n        if (iVar6 == 0) goto LAB_00075361;\n      }\n      else {\n        if (iVar6 == 3) {\n          Curl_infof(data,"SSL_ERROR_WANT_WRITE\n");\n          iVar2 = 0;\n          goto LAB_00075361;\n        }\n        iVar2 = 0;\n        if (iVar6 == 6) goto LAB_00075361;\n      }\n      e = ERR_get_error();\n      piVar5 = __errno_location();\n      iVar2 = *piVar5;\n      if (e == 0) {\n        pcVar4 = SSL_ERROR_to_str(iVar6);\n      }\n      else {\n        ERR_error_string_n(e,pcVar4,0x100);\n      }\n      Curl_failf(conn->data,"OpenSSL SSL_read on shutdown: %s, errno %d",pcVar4,iVar2);\n      iVar2 = 0;\n      goto LAB_00075361;\n    }\n    Curl_infof(data,"SSL_ERROR_WANT_READ\n");\n  }\n  if (iVar2 == 0) {\n    Curl_failf(data,"SSL shutdown timeout");\n    iVar2 = 0;\n  }\n  else {\n    piVar5 = __errno_location();\n    Curl_failf(data,"select/poll on SSL socket, errno: %d",*piVar5);\n    iVar2 = -1;\n  }\nLAB_00075361:\n  pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;\n  if ((data->set).verbose != false) {\n    iVar6 = SSL_get_shutdown(pSVar3);\n    if (iVar6 == 2) {\n      pcVar4 = "SSL_get_shutdown() returned SSL_RECEIVED_SHUTDOWN\n";\n    }\n    else if (iVar6 == 3) {\n      pcVar4 = "SSL_get_shutdown() returned SSL_SENT_SHUTDOWN|SSL_RECEIVED__SHUTDOWN\n";\n    }\n    else {\n      if (iVar6 != 1) {\n        pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;\n        goto LAB_0007537a;\n      }\n      pcVar4 = "SSL_get_shutdown() returned SSL_SENT_SHUTDOWN\n";\n    }\n    Curl_infof(data,pcVar4);\n    pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;\n  }\nLAB_0007537a:\n  SSL_free(pSVar3);\n  (conn->ssl[sockindex].backend)->handle = (SSL *)0x0;\nLAB_00075399:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "Curl_easy *data;" type_identifier (pointer_declarator "*data" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "SSL *pSVar3;" type_identifier (pointer_declarator "*pSVar3" * identifier) ;) (declaration "ulong e;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char buf [256];" primitive_type (array_declarator "buf [256]" identifier [ number_literal ]) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "data = conn->data;" (assignment_expression "data = conn->data" identifier = (field_expression "conn->data" identifier -> field_identifier)) ;) (expression_statement "pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;" (assignment_expression "pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle" identifier = (cast_expression "(SSL *)(conn->ssl[sockindex].backend)->handle" ( (type_descriptor "SSL *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(conn->ssl[sockindex].backend)->handle" (parenthesized_expression "(conn->ssl[sockindex].backend)" ( (field_expression "conn->ssl[sockindex].backend" (subscript_expression "conn->ssl[sockindex]" (field_expression "conn->ssl" identifier -> field_identifier) [ identifier ]) . field_identifier) )) -> field_identifier))) ;) (if_statement "if ((data->set).ftp_ccc == CURLFTPSSL_CCC_ACTIVE) {\n    SSL_shutdown(pSVar3);\n    pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;\n  }" if (parenthesized_expression "((data->set).ftp_ccc == CURLFTPSSL_CCC_ACTIVE)" ( (binary_expression "(data->set).ftp_ccc == CURLFTPSSL_CCC_ACTIVE" (field_expression "(data->set).ftp_ccc" (parenthesized_expression "(data->set)" ( (field_expression "data->set" identifier -> field_identifier) )) . field_identifier) == identifier) )) (compound_statement "{\n    SSL_shutdown(pSVar3);\n    pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;\n  }" { (expression_statement "SSL_shutdown(pSVar3);" (call_expression "SSL_shutdown(pSVar3)" identifier (argument_list "(pSVar3)" ( identifier ))) ;) (expression_statement "pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;" (assignment_expression "pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle" identifier = (cast_expression "(SSL *)(conn->ssl[sockindex].backend)->handle" ( (type_descriptor "SSL *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(conn->ssl[sockindex].backend)->handle" (parenthesized_expression "(conn->ssl[sockindex].backend)" ( (field_expression "conn->ssl[sockindex].backend" (subscript_expression "conn->ssl[sockindex]" (field_expression "conn->ssl" identifier -> field_identifier) [ identifier ]) . field_identifier) )) -> field_identifier))) ;) })) (expression_statement "pcVar4 = buf;" (assignment_expression "pcVar4 = buf" identifier = identifier) ;) (if_statement "if (pSVar3 == (SSL *)0x0) {\n    iVar2 = 0;\n    goto LAB_00075399;\n  }" if (parenthesized_expression "(pSVar3 == (SSL *)0x0)" ( (binary_expression "pSVar3 == (SSL *)0x0" identifier == (cast_expression "(SSL *)0x0" ( (type_descriptor "SSL *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar2 = 0;\n    goto LAB_00075399;\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00075399;" goto statement_identifier ;) })) (while_statement "while( true ) {\n    iVar2 = Curl_socket_check(conn->sock[sockindex],-1,-1,10000);\n    if (iVar2 < 1) break;\n    ERR_clear_error();\n    iVar2 = SSL_read((SSL *)(conn->ssl[sockindex].backend)->handle,pcVar4,0x100);\n    iVar6 = SSL_get_error((SSL *)(conn->ssl[sockindex].backend)->handle,iVar2);\n    if (iVar6 != 2) {\n      if (iVar6 < 3) {\n        iVar2 = 0;\n        if (iVar6 == 0) goto LAB_00075361;\n      }\n      else {\n        if (iVar6 == 3) {\n          Curl_infof(data,"SSL_ERROR_WANT_WRITE\n");\n          iVar2 = 0;\n          goto LAB_00075361;\n        }\n        iVar2 = 0;\n        if (iVar6 == 6) goto LAB_00075361;\n      }\n      e = ERR_get_error();\n      piVar5 = __errno_location();\n      iVar2 = *piVar5;\n      if (e == 0) {\n        pcVar4 = SSL_ERROR_to_str(iVar6);\n      }\n      else {\n        ERR_error_string_n(e,pcVar4,0x100);\n      }\n      Curl_failf(conn->data,"OpenSSL SSL_read on shutdown: %s, errno %d",pcVar4,iVar2);\n      iVar2 = 0;\n      goto LAB_00075361;\n    }\n    Curl_infof(data,"SSL_ERROR_WANT_READ\n");\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar2 = Curl_socket_check(conn->sock[sockindex],-1,-1,10000);\n    if (iVar2 < 1) break;\n    ERR_clear_error();\n    iVar2 = SSL_read((SSL *)(conn->ssl[sockindex].backend)->handle,pcVar4,0x100);\n    iVar6 = SSL_get_error((SSL *)(conn->ssl[sockindex].backend)->handle,iVar2);\n    if (iVar6 != 2) {\n      if (iVar6 < 3) {\n        iVar2 = 0;\n        if (iVar6 == 0) goto LAB_00075361;\n      }\n      else {\n        if (iVar6 == 3) {\n          Curl_infof(data,"SSL_ERROR_WANT_WRITE\n");\n          iVar2 = 0;\n          goto LAB_00075361;\n        }\n        iVar2 = 0;\n        if (iVar6 == 6) goto LAB_00075361;\n      }\n      e = ERR_get_error();\n      piVar5 = __errno_location();\n      iVar2 = *piVar5;\n      if (e == 0) {\n        pcVar4 = SSL_ERROR_to_str(iVar6);\n      }\n      else {\n        ERR_error_string_n(e,pcVar4,0x100);\n      }\n      Curl_failf(conn->data,"OpenSSL SSL_read on shutdown: %s, errno %d",pcVar4,iVar2);\n      iVar2 = 0;\n      goto LAB_00075361;\n    }\n    Curl_infof(data,"SSL_ERROR_WANT_READ\n");\n  }" { (expression_statement "iVar2 = Curl_socket_check(conn->sock[sockindex],-1,-1,10000);" (assignment_expression "iVar2 = Curl_socket_check(conn->sock[sockindex],-1,-1,10000)" identifier = (call_expression "Curl_socket_check(conn->sock[sockindex],-1,-1,10000)" identifier (argument_list "(conn->sock[sockindex],-1,-1,10000)" ( (subscript_expression "conn->sock[sockindex]" (field_expression "conn->sock" identifier -> field_identifier) [ identifier ]) , number_literal , number_literal , number_literal )))) ;) (if_statement "if (iVar2 < 1) break;" if (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) )) (break_statement "break;" break ;)) (expression_statement "ERR_clear_error();" (call_expression "ERR_clear_error()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar2 = SSL_read((SSL *)(conn->ssl[sockindex].backend)->handle,pcVar4,0x100);" (assignment_expression "iVar2 = SSL_read((SSL *)(conn->ssl[sockindex].backend)->handle,pcVar4,0x100)" identifier = (call_expression "SSL_read((SSL *)(conn->ssl[sockindex].backend)->handle,pcVar4,0x100)" identifier (argument_list "((SSL *)(conn->ssl[sockindex].backend)->handle,pcVar4,0x100)" ( (cast_expression "(SSL *)(conn->ssl[sockindex].backend)->handle" ( (type_descriptor "SSL *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(conn->ssl[sockindex].backend)->handle" (parenthesized_expression "(conn->ssl[sockindex].backend)" ( (field_expression "conn->ssl[sockindex].backend" (subscript_expression "conn->ssl[sockindex]" (field_expression "conn->ssl" identifier -> field_identifier) [ identifier ]) . field_identifier) )) -> field_identifier)) , identifier , number_literal )))) ;) (expression_statement "iVar6 = SSL_get_error((SSL *)(conn->ssl[sockindex].backend)->handle,iVar2);" (assignment_expression "iVar6 = SSL_get_error((SSL *)(conn->ssl[sockindex].backend)->handle,iVar2)" identifier = (call_expression "SSL_get_error((SSL *)(conn->ssl[sockindex].backend)->handle,iVar2)" identifier (argument_list "((SSL *)(conn->ssl[sockindex].backend)->handle,iVar2)" ( (cast_expression "(SSL *)(conn->ssl[sockindex].backend)->handle" ( (type_descriptor "SSL *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(conn->ssl[sockindex].backend)->handle" (parenthesized_expression "(conn->ssl[sockindex].backend)" ( (field_expression "conn->ssl[sockindex].backend" (subscript_expression "conn->ssl[sockindex]" (field_expression "conn->ssl" identifier -> field_identifier) [ identifier ]) . field_identifier) )) -> field_identifier)) , identifier )))) ;) (if_statement "if (iVar6 != 2) {\n      if (iVar6 < 3) {\n        iVar2 = 0;\n        if (iVar6 == 0) goto LAB_00075361;\n      }\n      else {\n        if (iVar6 == 3) {\n          Curl_infof(data,"SSL_ERROR_WANT_WRITE\n");\n          iVar2 = 0;\n          goto LAB_00075361;\n        }\n        iVar2 = 0;\n        if (iVar6 == 6) goto LAB_00075361;\n      }\n      e = ERR_get_error();\n      piVar5 = __errno_location();\n      iVar2 = *piVar5;\n      if (e == 0) {\n        pcVar4 = SSL_ERROR_to_str(iVar6);\n      }\n      else {\n        ERR_error_string_n(e,pcVar4,0x100);\n      }\n      Curl_failf(conn->data,"OpenSSL SSL_read on shutdown: %s, errno %d",pcVar4,iVar2);\n      iVar2 = 0;\n      goto LAB_00075361;\n    }" if (parenthesized_expression "(iVar6 != 2)" ( (binary_expression "iVar6 != 2" identifier != number_literal) )) (compound_statement "{\n      if (iVar6 < 3) {\n        iVar2 = 0;\n        if (iVar6 == 0) goto LAB_00075361;\n      }\n      else {\n        if (iVar6 == 3) {\n          Curl_infof(data,"SSL_ERROR_WANT_WRITE\n");\n          iVar2 = 0;\n          goto LAB_00075361;\n        }\n        iVar2 = 0;\n        if (iVar6 == 6) goto LAB_00075361;\n      }\n      e = ERR_get_error();\n      piVar5 = __errno_location();\n      iVar2 = *piVar5;\n      if (e == 0) {\n        pcVar4 = SSL_ERROR_to_str(iVar6);\n      }\n      else {\n        ERR_error_string_n(e,pcVar4,0x100);\n      }\n      Curl_failf(conn->data,"OpenSSL SSL_read on shutdown: %s, errno %d",pcVar4,iVar2);\n      iVar2 = 0;\n      goto LAB_00075361;\n    }" { (if_statement "if (iVar6 < 3) {\n        iVar2 = 0;\n        if (iVar6 == 0) goto LAB_00075361;\n      }\n      else {\n        if (iVar6 == 3) {\n          Curl_infof(data,"SSL_ERROR_WANT_WRITE\n");\n          iVar2 = 0;\n          goto LAB_00075361;\n        }\n        iVar2 = 0;\n        if (iVar6 == 6) goto LAB_00075361;\n      }" if (parenthesized_expression "(iVar6 < 3)" ( (binary_expression "iVar6 < 3" identifier < number_literal) )) (compound_statement "{\n        iVar2 = 0;\n        if (iVar6 == 0) goto LAB_00075361;\n      }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (iVar6 == 0) goto LAB_00075361;" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00075361;" goto statement_identifier ;)) }) (else_clause "else {\n        if (iVar6 == 3) {\n          Curl_infof(data,"SSL_ERROR_WANT_WRITE\n");\n          iVar2 = 0;\n          goto LAB_00075361;\n        }\n        iVar2 = 0;\n        if (iVar6 == 6) goto LAB_00075361;\n      }" else (compound_statement "{\n        if (iVar6 == 3) {\n          Curl_infof(data,"SSL_ERROR_WANT_WRITE\n");\n          iVar2 = 0;\n          goto LAB_00075361;\n        }\n        iVar2 = 0;\n        if (iVar6 == 6) goto LAB_00075361;\n      }" { (if_statement "if (iVar6 == 3) {\n          Curl_infof(data,"SSL_ERROR_WANT_WRITE\n");\n          iVar2 = 0;\n          goto LAB_00075361;\n        }" if (parenthesized_expression "(iVar6 == 3)" ( (binary_expression "iVar6 == 3" identifier == number_literal) )) (compound_statement "{\n          Curl_infof(data,"SSL_ERROR_WANT_WRITE\n");\n          iVar2 = 0;\n          goto LAB_00075361;\n        }" { (expression_statement "Curl_infof(data,"SSL_ERROR_WANT_WRITE\n");" (call_expression "Curl_infof(data,"SSL_ERROR_WANT_WRITE\n")" identifier (argument_list "(data,"SSL_ERROR_WANT_WRITE\n")" ( identifier , (string_literal ""SSL_ERROR_WANT_WRITE\n"" " string_content escape_sequence ") ))) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00075361;" goto statement_identifier ;) })) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (iVar6 == 6) goto LAB_00075361;" if (parenthesized_expression "(iVar6 == 6)" ( (binary_expression "iVar6 == 6" identifier == number_literal) )) (goto_statement "goto LAB_00075361;" goto statement_identifier ;)) }))) (expression_statement "e = ERR_get_error();" (assignment_expression "e = ERR_get_error()" identifier = (call_expression "ERR_get_error()" identifier (argument_list "()" ( )))) ;) (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar2 = *piVar5;" (assignment_expression "iVar2 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (if_statement "if (e == 0) {\n        pcVar4 = SSL_ERROR_to_str(iVar6);\n      }\n      else {\n        ERR_error_string_n(e,pcVar4,0x100);\n      }" if (parenthesized_expression "(e == 0)" ( (binary_expression "e == 0" identifier == number_literal) )) (compound_statement "{\n        pcVar4 = SSL_ERROR_to_str(iVar6);\n      }" { (expression_statement "pcVar4 = SSL_ERROR_to_str(iVar6);" (assignment_expression "pcVar4 = SSL_ERROR_to_str(iVar6)" identifier = (call_expression "SSL_ERROR_to_str(iVar6)" identifier (argument_list "(iVar6)" ( identifier )))) ;) }) (else_clause "else {\n        ERR_error_string_n(e,pcVar4,0x100);\n      }" else (compound_statement "{\n        ERR_error_string_n(e,pcVar4,0x100);\n      }" { (expression_statement "ERR_error_string_n(e,pcVar4,0x100);" (call_expression "ERR_error_string_n(e,pcVar4,0x100)" identifier (argument_list "(e,pcVar4,0x100)" ( identifier , identifier , number_literal ))) ;) }))) (expression_statement "Curl_failf(conn->data,"OpenSSL SSL_read on shutdown: %s, errno %d",pcVar4,iVar2);" (call_expression "Curl_failf(conn->data,"OpenSSL SSL_read on shutdown: %s, errno %d",pcVar4,iVar2)" identifier (argument_list "(conn->data,"OpenSSL SSL_read on shutdown: %s, errno %d",pcVar4,iVar2)" ( (field_expression "conn->data" identifier -> field_identifier) , (string_literal ""OpenSSL SSL_read on shutdown: %s, errno %d"" " string_content ") , identifier , identifier ))) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00075361;" goto statement_identifier ;) })) (expression_statement "Curl_infof(data,"SSL_ERROR_WANT_READ\n");" (call_expression "Curl_infof(data,"SSL_ERROR_WANT_READ\n")" identifier (argument_list "(data,"SSL_ERROR_WANT_READ\n")" ( identifier , (string_literal ""SSL_ERROR_WANT_READ\n"" " string_content escape_sequence ") ))) ;) })) (if_statement "if (iVar2 == 0) {\n    Curl_failf(data,"SSL shutdown timeout");\n    iVar2 = 0;\n  }\n  else {\n    piVar5 = __errno_location();\n    Curl_failf(data,"select/poll on SSL socket, errno: %d",*piVar5);\n    iVar2 = -1;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    Curl_failf(data,"SSL shutdown timeout");\n    iVar2 = 0;\n  }" { (expression_statement "Curl_failf(data,"SSL shutdown timeout");" (call_expression "Curl_failf(data,"SSL shutdown timeout")" identifier (argument_list "(data,"SSL shutdown timeout")" ( identifier , (string_literal ""SSL shutdown timeout"" " string_content ") ))) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    piVar5 = __errno_location();\n    Curl_failf(data,"select/poll on SSL socket, errno: %d",*piVar5);\n    iVar2 = -1;\n  }" else (compound_statement "{\n    piVar5 = __errno_location();\n    Curl_failf(data,"select/poll on SSL socket, errno: %d",*piVar5);\n    iVar2 = -1;\n  }" { (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "Curl_failf(data,"select/poll on SSL socket, errno: %d",*piVar5);" (call_expression "Curl_failf(data,"select/poll on SSL socket, errno: %d",*piVar5)" identifier (argument_list "(data,"select/poll on SSL socket, errno: %d",*piVar5)" ( identifier , (string_literal ""select/poll on SSL socket, errno: %d"" " string_content ") , (pointer_expression "*piVar5" * identifier) ))) ;) (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) }))) (labeled_statement "LAB_00075361:\n  pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;" statement_identifier : (expression_statement "pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;" (assignment_expression "pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle" identifier = (cast_expression "(SSL *)(conn->ssl[sockindex].backend)->handle" ( (type_descriptor "SSL *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(conn->ssl[sockindex].backend)->handle" (parenthesized_expression "(conn->ssl[sockindex].backend)" ( (field_expression "conn->ssl[sockindex].backend" (subscript_expression "conn->ssl[sockindex]" (field_expression "conn->ssl" identifier -> field_identifier) [ identifier ]) . field_identifier) )) -> field_identifier))) ;)) (if_statement "if ((data->set).verbose != false) {\n    iVar6 = SSL_get_shutdown(pSVar3);\n    if (iVar6 == 2) {\n      pcVar4 = "SSL_get_shutdown() returned SSL_RECEIVED_SHUTDOWN\n";\n    }\n    else if (iVar6 == 3) {\n      pcVar4 = "SSL_get_shutdown() returned SSL_SENT_SHUTDOWN|SSL_RECEIVED__SHUTDOWN\n";\n    }\n    else {\n      if (iVar6 != 1) {\n        pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;\n        goto LAB_0007537a;\n      }\n      pcVar4 = "SSL_get_shutdown() returned SSL_SENT_SHUTDOWN\n";\n    }\n    Curl_infof(data,pcVar4);\n    pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;\n  }" if (parenthesized_expression "((data->set).verbose != false)" ( (binary_expression "(data->set).verbose != false" (field_expression "(data->set).verbose" (parenthesized_expression "(data->set)" ( (field_expression "data->set" identifier -> field_identifier) )) . field_identifier) != false) )) (compound_statement "{\n    iVar6 = SSL_get_shutdown(pSVar3);\n    if (iVar6 == 2) {\n      pcVar4 = "SSL_get_shutdown() returned SSL_RECEIVED_SHUTDOWN\n";\n    }\n    else if (iVar6 == 3) {\n      pcVar4 = "SSL_get_shutdown() returned SSL_SENT_SHUTDOWN|SSL_RECEIVED__SHUTDOWN\n";\n    }\n    else {\n      if (iVar6 != 1) {\n        pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;\n        goto LAB_0007537a;\n      }\n      pcVar4 = "SSL_get_shutdown() returned SSL_SENT_SHUTDOWN\n";\n    }\n    Curl_infof(data,pcVar4);\n    pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;\n  }" { (expression_statement "iVar6 = SSL_get_shutdown(pSVar3);" (assignment_expression "iVar6 = SSL_get_shutdown(pSVar3)" identifier = (call_expression "SSL_get_shutdown(pSVar3)" identifier (argument_list "(pSVar3)" ( identifier )))) ;) (if_statement "if (iVar6 == 2) {\n      pcVar4 = "SSL_get_shutdown() returned SSL_RECEIVED_SHUTDOWN\n";\n    }\n    else if (iVar6 == 3) {\n      pcVar4 = "SSL_get_shutdown() returned SSL_SENT_SHUTDOWN|SSL_RECEIVED__SHUTDOWN\n";\n    }\n    else {\n      if (iVar6 != 1) {\n        pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;\n        goto LAB_0007537a;\n      }\n      pcVar4 = "SSL_get_shutdown() returned SSL_SENT_SHUTDOWN\n";\n    }" if (parenthesized_expression "(iVar6 == 2)" ( (binary_expression "iVar6 == 2" identifier == number_literal) )) (compound_statement "{\n      pcVar4 = "SSL_get_shutdown() returned SSL_RECEIVED_SHUTDOWN\n";\n    }" { (expression_statement "pcVar4 = "SSL_get_shutdown() returned SSL_RECEIVED_SHUTDOWN\n";" (assignment_expression "pcVar4 = "SSL_get_shutdown() returned SSL_RECEIVED_SHUTDOWN\n"" identifier = (string_literal ""SSL_get_shutdown() returned SSL_RECEIVED_SHUTDOWN\n"" " string_content escape_sequence ")) ;) }) (else_clause "else if (iVar6 == 3) {\n      pcVar4 = "SSL_get_shutdown() returned SSL_SENT_SHUTDOWN|SSL_RECEIVED__SHUTDOWN\n";\n    }\n    else {\n      if (iVar6 != 1) {\n        pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;\n        goto LAB_0007537a;\n      }\n      pcVar4 = "SSL_get_shutdown() returned SSL_SENT_SHUTDOWN\n";\n    }" else (if_statement "if (iVar6 == 3) {\n      pcVar4 = "SSL_get_shutdown() returned SSL_SENT_SHUTDOWN|SSL_RECEIVED__SHUTDOWN\n";\n    }\n    else {\n      if (iVar6 != 1) {\n        pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;\n        goto LAB_0007537a;\n      }\n      pcVar4 = "SSL_get_shutdown() returned SSL_SENT_SHUTDOWN\n";\n    }" if (parenthesized_expression "(iVar6 == 3)" ( (binary_expression "iVar6 == 3" identifier == number_literal) )) (compound_statement "{\n      pcVar4 = "SSL_get_shutdown() returned SSL_SENT_SHUTDOWN|SSL_RECEIVED__SHUTDOWN\n";\n    }" { (expression_statement "pcVar4 = "SSL_get_shutdown() returned SSL_SENT_SHUTDOWN|SSL_RECEIVED__SHUTDOWN\n";" (assignment_expression "pcVar4 = "SSL_get_shutdown() returned SSL_SENT_SHUTDOWN|SSL_RECEIVED__SHUTDOWN\n"" identifier = (string_literal ""SSL_get_shutdown() returned SSL_SENT_SHUTDOWN|SSL_RECEIVED__SHUTDOWN\n"" " string_content escape_sequence ")) ;) }) (else_clause "else {\n      if (iVar6 != 1) {\n        pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;\n        goto LAB_0007537a;\n      }\n      pcVar4 = "SSL_get_shutdown() returned SSL_SENT_SHUTDOWN\n";\n    }" else (compound_statement "{\n      if (iVar6 != 1) {\n        pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;\n        goto LAB_0007537a;\n      }\n      pcVar4 = "SSL_get_shutdown() returned SSL_SENT_SHUTDOWN\n";\n    }" { (if_statement "if (iVar6 != 1) {\n        pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;\n        goto LAB_0007537a;\n      }" if (parenthesized_expression "(iVar6 != 1)" ( (binary_expression "iVar6 != 1" identifier != number_literal) )) (compound_statement "{\n        pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;\n        goto LAB_0007537a;\n      }" { (expression_statement "pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;" (assignment_expression "pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle" identifier = (cast_expression "(SSL *)(conn->ssl[sockindex].backend)->handle" ( (type_descriptor "SSL *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(conn->ssl[sockindex].backend)->handle" (parenthesized_expression "(conn->ssl[sockindex].backend)" ( (field_expression "conn->ssl[sockindex].backend" (subscript_expression "conn->ssl[sockindex]" (field_expression "conn->ssl" identifier -> field_identifier) [ identifier ]) . field_identifier) )) -> field_identifier))) ;) (goto_statement "goto LAB_0007537a;" goto statement_identifier ;) })) (expression_statement "pcVar4 = "SSL_get_shutdown() returned SSL_SENT_SHUTDOWN\n";" (assignment_expression "pcVar4 = "SSL_get_shutdown() returned SSL_SENT_SHUTDOWN\n"" identifier = (string_literal ""SSL_get_shutdown() returned SSL_SENT_SHUTDOWN\n"" " string_content escape_sequence ")) ;) }))))) (expression_statement "Curl_infof(data,pcVar4);" (call_expression "Curl_infof(data,pcVar4)" identifier (argument_list "(data,pcVar4)" ( identifier , identifier ))) ;) (expression_statement "pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle;" (assignment_expression "pSVar3 = (SSL *)(conn->ssl[sockindex].backend)->handle" identifier = (cast_expression "(SSL *)(conn->ssl[sockindex].backend)->handle" ( (type_descriptor "SSL *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(conn->ssl[sockindex].backend)->handle" (parenthesized_expression "(conn->ssl[sockindex].backend)" ( (field_expression "conn->ssl[sockindex].backend" (subscript_expression "conn->ssl[sockindex]" (field_expression "conn->ssl" identifier -> field_identifier) [ identifier ]) . field_identifier) )) -> field_identifier))) ;) })) (labeled_statement "LAB_0007537a:\n  SSL_free(pSVar3);" statement_identifier : (expression_statement "SSL_free(pSVar3);" (call_expression "SSL_free(pSVar3)" identifier (argument_list "(pSVar3)" ( identifier ))) ;)) (expression_statement "(conn->ssl[sockindex].backend)->handle = (SSL *)0x0;" (assignment_expression "(conn->ssl[sockindex].backend)->handle = (SSL *)0x0" (field_expression "(conn->ssl[sockindex].backend)->handle" (parenthesized_expression "(conn->ssl[sockindex].backend)" ( (field_expression "conn->ssl[sockindex].backend" (subscript_expression "conn->ssl[sockindex]" (field_expression "conn->ssl" identifier -> field_identifier) [ identifier ]) . field_identifier) )) -> field_identifier) = (cast_expression "(SSL *)0x0" ( (type_descriptor "SSL *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_00075399:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" statement_identifier : (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "int FUN_000752b0(int param_1)\n\n{\n  int iVar1;\n  SSL *pSVar2;\n  ulong e;\n  char *buf;\n  int *piVar3;\n  int iVar4;\n  char *pcVar5;\n  int unaff_EBX;\n  int in_GS_OFFSET;\n  int *unaff_retaddr;\n  int iVar6;\n  char local_124 [256];\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x752b9;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar6 = *unaff_retaddr;\n  pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  if (*(int *)(iVar6 + 0x94c) == 2) {\n    SSL_shutdown(pSVar2);\n    pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  }\n  buf = local_124;\n  pcVar5 = "curl_multi_assign" + unaff_EBX + 0xc;\n  if (pSVar2 == (SSL *)0x0) {\n    iVar1 = 0;\n    goto LAB_00075399;\n  }\n  while( true ) {\n    iVar1 = FUN_00049010(unaff_retaddr[param_1 + 100],0xffffffff,0xffffffff,10000,iVar6,buf,pcVar5);\n    if (iVar1 < 1) break;\n    ERR_clear_error();\n    iVar1 = SSL_read(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),buf,0x100);\n    iVar4 = SSL_get_error(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),iVar1);\n    if (iVar4 != 2) {\n      if (iVar4 < 3) {\n        iVar1 = 0;\n        if (iVar4 == 0) goto LAB_00075361;\n      }\n      else {\n        if (iVar4 == 3) {\n          FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);\n          iVar1 = 0;\n          goto LAB_00075361;\n        }\n        iVar1 = 0;\n        if (iVar4 == 6) goto LAB_00075361;\n      }\n      e = ERR_get_error();\n      piVar3 = __errno_location();\n      iVar1 = *piVar3;\n      if (e == 0) {\n        buf = (char *)FUN_00074430();\n      }\n      else {\n        ERR_error_string_n(e,buf,0x100);\n      }\n      FUN_00027240(*unaff_retaddr,"gss_display_status" + unaff_EBX + 6,buf,iVar1);\n      iVar1 = 0;\n      goto LAB_00075361;\n    }\n    FUN_00027140(iVar6,pcVar5);\n  }\n  if (iVar1 == 0) {\n    FUN_00027240(iVar6,"inflateInit_" + unaff_EBX + 0xc);\n  }\n  else {\n    piVar3 = __errno_location();\n    FUN_00027240(iVar6,"gss_inquire_context" + unaff_EBX + 0x12,*piVar3);\n    iVar1 = -1;\n  }\nLAB_00075361:\n  pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  if (*(char *)(iVar6 + 0x93c) != '\0') {\n    iVar4 = SSL_get_shutdown(pSVar2);\n    if (iVar4 == 2) {\n      pcVar5 = "RTMP_Write" + unaff_EBX;\n    }\n    else if (iVar4 == 3) {\n      pcVar5 = "RTMP_SetBufferMS" + unaff_EBX + 1;\n    }\n    else {\n      if (iVar4 != 1) {\n        pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n        goto LAB_0007537a;\n      }\n      pcVar5 = "pthread_join" + unaff_EBX;\n    }\n    FUN_00027140(iVar6,pcVar5);\n    pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  }\nLAB_0007537a:\n  SSL_free(pSVar2);\n  *(undefined4 *)(unaff_retaddr[param_1 * 4 + 0x70] + 4) = 0;\nLAB_00075399:\n  if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0007c1a0();\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_000752b0(int param_1)\n\n{\n  int iVar1;\n  SSL *pSVar2;\n  ulong e;\n  char *buf;\n  int *piVar3;\n  int iVar4;\n  char *pcVar5;\n  int unaff_EBX;\n  int in_GS_OFFSET;\n  int *unaff_retaddr;\n  int iVar6;\n  char local_124 [256];\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x752b9;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar6 = *unaff_retaddr;\n  pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  if (*(int *)(iVar6 + 0x94c) == 2) {\n    SSL_shutdown(pSVar2);\n    pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  }\n  buf = local_124;\n  pcVar5 = "curl_multi_assign" + unaff_EBX + 0xc;\n  if (pSVar2 == (SSL *)0x0) {\n    iVar1 = 0;\n    goto LAB_00075399;\n  }\n  while( true ) {\n    iVar1 = FUN_00049010(unaff_retaddr[param_1 + 100],0xffffffff,0xffffffff,10000,iVar6,buf,pcVar5);\n    if (iVar1 < 1) break;\n    ERR_clear_error();\n    iVar1 = SSL_read(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),buf,0x100);\n    iVar4 = SSL_get_error(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),iVar1);\n    if (iVar4 != 2) {\n      if (iVar4 < 3) {\n        iVar1 = 0;\n        if (iVar4 == 0) goto LAB_00075361;\n      }\n      else {\n        if (iVar4 == 3) {\n          FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);\n          iVar1 = 0;\n          goto LAB_00075361;\n        }\n        iVar1 = 0;\n        if (iVar4 == 6) goto LAB_00075361;\n      }\n      e = ERR_get_error();\n      piVar3 = __errno_location();\n      iVar1 = *piVar3;\n      if (e == 0) {\n        buf = (char *)FUN_00074430();\n      }\n      else {\n        ERR_error_string_n(e,buf,0x100);\n      }\n      FUN_00027240(*unaff_retaddr,"gss_display_status" + unaff_EBX + 6,buf,iVar1);\n      iVar1 = 0;\n      goto LAB_00075361;\n    }\n    FUN_00027140(iVar6,pcVar5);\n  }\n  if (iVar1 == 0) {\n    FUN_00027240(iVar6,"inflateInit_" + unaff_EBX + 0xc);\n  }\n  else {\n    piVar3 = __errno_location();\n    FUN_00027240(iVar6,"gss_inquire_context" + unaff_EBX + 0x12,*piVar3);\n    iVar1 = -1;\n  }\nLAB_00075361:\n  pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  if (*(char *)(iVar6 + 0x93c) != '\0') {\n    iVar4 = SSL_get_shutdown(pSVar2);\n    if (iVar4 == 2) {\n      pcVar5 = "RTMP_Write" + unaff_EBX;\n    }\n    else if (iVar4 == 3) {\n      pcVar5 = "RTMP_SetBufferMS" + unaff_EBX + 1;\n    }\n    else {\n      if (iVar4 != 1) {\n        pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n        goto LAB_0007537a;\n      }\n      pcVar5 = "pthread_join" + unaff_EBX;\n    }\n    FUN_00027140(iVar6,pcVar5);\n    pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  }\nLAB_0007537a:\n  SSL_free(pSVar2);\n  *(undefined4 *)(unaff_retaddr[param_1 * 4 + 0x70] + 4) = 0;\nLAB_00075399:\n  if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0007c1a0();\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_000752b0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  SSL *pSVar2;\n  ulong e;\n  char *buf;\n  int *piVar3;\n  int iVar4;\n  char *pcVar5;\n  int unaff_EBX;\n  int in_GS_OFFSET;\n  int *unaff_retaddr;\n  int iVar6;\n  char local_124 [256];\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x752b9;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar6 = *unaff_retaddr;\n  pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  if (*(int *)(iVar6 + 0x94c) == 2) {\n    SSL_shutdown(pSVar2);\n    pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  }\n  buf = local_124;\n  pcVar5 = "curl_multi_assign" + unaff_EBX + 0xc;\n  if (pSVar2 == (SSL *)0x0) {\n    iVar1 = 0;\n    goto LAB_00075399;\n  }\n  while( true ) {\n    iVar1 = FUN_00049010(unaff_retaddr[param_1 + 100],0xffffffff,0xffffffff,10000,iVar6,buf,pcVar5);\n    if (iVar1 < 1) break;\n    ERR_clear_error();\n    iVar1 = SSL_read(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),buf,0x100);\n    iVar4 = SSL_get_error(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),iVar1);\n    if (iVar4 != 2) {\n      if (iVar4 < 3) {\n        iVar1 = 0;\n        if (iVar4 == 0) goto LAB_00075361;\n      }\n      else {\n        if (iVar4 == 3) {\n          FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);\n          iVar1 = 0;\n          goto LAB_00075361;\n        }\n        iVar1 = 0;\n        if (iVar4 == 6) goto LAB_00075361;\n      }\n      e = ERR_get_error();\n      piVar3 = __errno_location();\n      iVar1 = *piVar3;\n      if (e == 0) {\n        buf = (char *)FUN_00074430();\n      }\n      else {\n        ERR_error_string_n(e,buf,0x100);\n      }\n      FUN_00027240(*unaff_retaddr,"gss_display_status" + unaff_EBX + 6,buf,iVar1);\n      iVar1 = 0;\n      goto LAB_00075361;\n    }\n    FUN_00027140(iVar6,pcVar5);\n  }\n  if (iVar1 == 0) {\n    FUN_00027240(iVar6,"inflateInit_" + unaff_EBX + 0xc);\n  }\n  else {\n    piVar3 = __errno_location();\n    FUN_00027240(iVar6,"gss_inquire_context" + unaff_EBX + 0x12,*piVar3);\n    iVar1 = -1;\n  }\nLAB_00075361:\n  pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  if (*(char *)(iVar6 + 0x93c) != '\0') {\n    iVar4 = SSL_get_shutdown(pSVar2);\n    if (iVar4 == 2) {\n      pcVar5 = "RTMP_Write" + unaff_EBX;\n    }\n    else if (iVar4 == 3) {\n      pcVar5 = "RTMP_SetBufferMS" + unaff_EBX + 1;\n    }\n    else {\n      if (iVar4 != 1) {\n        pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n        goto LAB_0007537a;\n      }\n      pcVar5 = "pthread_join" + unaff_EBX;\n    }\n    FUN_00027140(iVar6,pcVar5);\n    pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  }\nLAB_0007537a:\n  SSL_free(pSVar2);\n  *(undefined4 *)(unaff_retaddr[param_1 * 4 + 0x70] + 4) = 0;\nLAB_00075399:\n  if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0007c1a0();\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "SSL *pSVar2;" type_identifier (pointer_declarator "*pSVar2" * identifier) ;) (declaration "ulong e;" type_identifier identifier ;) (declaration "char *buf;" primitive_type (pointer_declarator "*buf" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int *unaff_retaddr;" primitive_type (pointer_declarator "*unaff_retaddr" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "char local_124 [256];" primitive_type (array_declarator "local_124 [256]" identifier [ number_literal ]) ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x752b9;" (assignment_expression "uStack_14 = 0x752b9" identifier = number_literal) ;) (expression_statement "entry();" (call_expression "entry()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_24 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_24 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = *unaff_retaddr;" (assignment_expression "iVar6 = *unaff_retaddr" identifier = (pointer_expression "*unaff_retaddr" * identifier)) ;) (expression_statement "pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);" (assignment_expression "pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" identifier = (pointer_expression "*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" * (cast_expression "(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" ( (type_descriptor "SSL **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_retaddr[param_1 * 4 + 0x70] + 4)" ( (binary_expression "unaff_retaddr[param_1 * 4 + 0x70] + 4" (subscript_expression "unaff_retaddr[param_1 * 4 + 0x70]" identifier [ (binary_expression "param_1 * 4 + 0x70" (binary_expression "param_1 * 4" identifier * number_literal) + number_literal) ]) + number_literal) ))))) ;) (if_statement "if (*(int *)(iVar6 + 0x94c) == 2) {\n    SSL_shutdown(pSVar2);\n    pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  }" if (parenthesized_expression "(*(int *)(iVar6 + 0x94c) == 2)" ( (binary_expression "*(int *)(iVar6 + 0x94c) == 2" (pointer_expression "*(int *)(iVar6 + 0x94c)" * (cast_expression "(int *)(iVar6 + 0x94c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x94c)" ( (binary_expression "iVar6 + 0x94c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    SSL_shutdown(pSVar2);\n    pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  }" { (expression_statement "SSL_shutdown(pSVar2);" (call_expression "SSL_shutdown(pSVar2)" identifier (argument_list "(pSVar2)" ( identifier ))) ;) (expression_statement "pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);" (assignment_expression "pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" identifier = (pointer_expression "*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" * (cast_expression "(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" ( (type_descriptor "SSL **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_retaddr[param_1 * 4 + 0x70] + 4)" ( (binary_expression "unaff_retaddr[param_1 * 4 + 0x70] + 4" (subscript_expression "unaff_retaddr[param_1 * 4 + 0x70]" identifier [ (binary_expression "param_1 * 4 + 0x70" (binary_expression "param_1 * 4" identifier * number_literal) + number_literal) ]) + number_literal) ))))) ;) })) (expression_statement "buf = local_124;" (assignment_expression "buf = local_124" identifier = identifier) ;) (expression_statement "pcVar5 = "curl_multi_assign" + unaff_EBX + 0xc;" (assignment_expression "pcVar5 = "curl_multi_assign" + unaff_EBX + 0xc" identifier = (binary_expression ""curl_multi_assign" + unaff_EBX + 0xc" (binary_expression ""curl_multi_assign" + unaff_EBX" (string_literal ""curl_multi_assign"" " string_content ") + identifier) + number_literal)) ;) (if_statement "if (pSVar2 == (SSL *)0x0) {\n    iVar1 = 0;\n    goto LAB_00075399;\n  }" if (parenthesized_expression "(pSVar2 == (SSL *)0x0)" ( (binary_expression "pSVar2 == (SSL *)0x0" identifier == (cast_expression "(SSL *)0x0" ( (type_descriptor "SSL *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = 0;\n    goto LAB_00075399;\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00075399;" goto statement_identifier ;) })) (while_statement "while( true ) {\n    iVar1 = FUN_00049010(unaff_retaddr[param_1 + 100],0xffffffff,0xffffffff,10000,iVar6,buf,pcVar5);\n    if (iVar1 < 1) break;\n    ERR_clear_error();\n    iVar1 = SSL_read(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),buf,0x100);\n    iVar4 = SSL_get_error(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),iVar1);\n    if (iVar4 != 2) {\n      if (iVar4 < 3) {\n        iVar1 = 0;\n        if (iVar4 == 0) goto LAB_00075361;\n      }\n      else {\n        if (iVar4 == 3) {\n          FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);\n          iVar1 = 0;\n          goto LAB_00075361;\n        }\n        iVar1 = 0;\n        if (iVar4 == 6) goto LAB_00075361;\n      }\n      e = ERR_get_error();\n      piVar3 = __errno_location();\n      iVar1 = *piVar3;\n      if (e == 0) {\n        buf = (char *)FUN_00074430();\n      }\n      else {\n        ERR_error_string_n(e,buf,0x100);\n      }\n      FUN_00027240(*unaff_retaddr,"gss_display_status" + unaff_EBX + 6,buf,iVar1);\n      iVar1 = 0;\n      goto LAB_00075361;\n    }\n    FUN_00027140(iVar6,pcVar5);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar1 = FUN_00049010(unaff_retaddr[param_1 + 100],0xffffffff,0xffffffff,10000,iVar6,buf,pcVar5);\n    if (iVar1 < 1) break;\n    ERR_clear_error();\n    iVar1 = SSL_read(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),buf,0x100);\n    iVar4 = SSL_get_error(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),iVar1);\n    if (iVar4 != 2) {\n      if (iVar4 < 3) {\n        iVar1 = 0;\n        if (iVar4 == 0) goto LAB_00075361;\n      }\n      else {\n        if (iVar4 == 3) {\n          FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);\n          iVar1 = 0;\n          goto LAB_00075361;\n        }\n        iVar1 = 0;\n        if (iVar4 == 6) goto LAB_00075361;\n      }\n      e = ERR_get_error();\n      piVar3 = __errno_location();\n      iVar1 = *piVar3;\n      if (e == 0) {\n        buf = (char *)FUN_00074430();\n      }\n      else {\n        ERR_error_string_n(e,buf,0x100);\n      }\n      FUN_00027240(*unaff_retaddr,"gss_display_status" + unaff_EBX + 6,buf,iVar1);\n      iVar1 = 0;\n      goto LAB_00075361;\n    }\n    FUN_00027140(iVar6,pcVar5);\n  }" { (expression_statement "iVar1 = FUN_00049010(unaff_retaddr[param_1 + 100],0xffffffff,0xffffffff,10000,iVar6,buf,pcVar5);" (assignment_expression "iVar1 = FUN_00049010(unaff_retaddr[param_1 + 100],0xffffffff,0xffffffff,10000,iVar6,buf,pcVar5)" identifier = (call_expression "FUN_00049010(unaff_retaddr[param_1 + 100],0xffffffff,0xffffffff,10000,iVar6,buf,pcVar5)" identifier (argument_list "(unaff_retaddr[param_1 + 100],0xffffffff,0xffffffff,10000,iVar6,buf,pcVar5)" ( (subscript_expression "unaff_retaddr[param_1 + 100]" identifier [ (binary_expression "param_1 + 100" identifier + number_literal) ]) , number_literal , number_literal , number_literal , identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 < 1) break;" if (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) (break_statement "break;" break ;)) (expression_statement "ERR_clear_error();" (call_expression "ERR_clear_error()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = SSL_read(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),buf,0x100);" (assignment_expression "iVar1 = SSL_read(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),buf,0x100)" identifier = (call_expression "SSL_read(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),buf,0x100)" identifier (argument_list "(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),buf,0x100)" ( (pointer_expression "*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" * (cast_expression "(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" ( (type_descriptor "SSL **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_retaddr[param_1 * 4 + 0x70] + 4)" ( (binary_expression "unaff_retaddr[param_1 * 4 + 0x70] + 4" (subscript_expression "unaff_retaddr[param_1 * 4 + 0x70]" identifier [ (binary_expression "param_1 * 4 + 0x70" (binary_expression "param_1 * 4" identifier * number_literal) + number_literal) ]) + number_literal) )))) , identifier , number_literal )))) ;) (expression_statement "iVar4 = SSL_get_error(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),iVar1);" (assignment_expression "iVar4 = SSL_get_error(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),iVar1)" identifier = (call_expression "SSL_get_error(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),iVar1)" identifier (argument_list "(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),iVar1)" ( (pointer_expression "*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" * (cast_expression "(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" ( (type_descriptor "SSL **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_retaddr[param_1 * 4 + 0x70] + 4)" ( (binary_expression "unaff_retaddr[param_1 * 4 + 0x70] + 4" (subscript_expression "unaff_retaddr[param_1 * 4 + 0x70]" identifier [ (binary_expression "param_1 * 4 + 0x70" (binary_expression "param_1 * 4" identifier * number_literal) + number_literal) ]) + number_literal) )))) , identifier )))) ;) (if_statement "if (iVar4 != 2) {\n      if (iVar4 < 3) {\n        iVar1 = 0;\n        if (iVar4 == 0) goto LAB_00075361;\n      }\n      else {\n        if (iVar4 == 3) {\n          FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);\n          iVar1 = 0;\n          goto LAB_00075361;\n        }\n        iVar1 = 0;\n        if (iVar4 == 6) goto LAB_00075361;\n      }\n      e = ERR_get_error();\n      piVar3 = __errno_location();\n      iVar1 = *piVar3;\n      if (e == 0) {\n        buf = (char *)FUN_00074430();\n      }\n      else {\n        ERR_error_string_n(e,buf,0x100);\n      }\n      FUN_00027240(*unaff_retaddr,"gss_display_status" + unaff_EBX + 6,buf,iVar1);\n      iVar1 = 0;\n      goto LAB_00075361;\n    }" if (parenthesized_expression "(iVar4 != 2)" ( (binary_expression "iVar4 != 2" identifier != number_literal) )) (compound_statement "{\n      if (iVar4 < 3) {\n        iVar1 = 0;\n        if (iVar4 == 0) goto LAB_00075361;\n      }\n      else {\n        if (iVar4 == 3) {\n          FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);\n          iVar1 = 0;\n          goto LAB_00075361;\n        }\n        iVar1 = 0;\n        if (iVar4 == 6) goto LAB_00075361;\n      }\n      e = ERR_get_error();\n      piVar3 = __errno_location();\n      iVar1 = *piVar3;\n      if (e == 0) {\n        buf = (char *)FUN_00074430();\n      }\n      else {\n        ERR_error_string_n(e,buf,0x100);\n      }\n      FUN_00027240(*unaff_retaddr,"gss_display_status" + unaff_EBX + 6,buf,iVar1);\n      iVar1 = 0;\n      goto LAB_00075361;\n    }" { (if_statement "if (iVar4 < 3) {\n        iVar1 = 0;\n        if (iVar4 == 0) goto LAB_00075361;\n      }\n      else {\n        if (iVar4 == 3) {\n          FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);\n          iVar1 = 0;\n          goto LAB_00075361;\n        }\n        iVar1 = 0;\n        if (iVar4 == 6) goto LAB_00075361;\n      }" if (parenthesized_expression "(iVar4 < 3)" ( (binary_expression "iVar4 < 3" identifier < number_literal) )) (compound_statement "{\n        iVar1 = 0;\n        if (iVar4 == 0) goto LAB_00075361;\n      }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (iVar4 == 0) goto LAB_00075361;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00075361;" goto statement_identifier ;)) }) (else_clause "else {\n        if (iVar4 == 3) {\n          FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);\n          iVar1 = 0;\n          goto LAB_00075361;\n        }\n        iVar1 = 0;\n        if (iVar4 == 6) goto LAB_00075361;\n      }" else (compound_statement "{\n        if (iVar4 == 3) {\n          FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);\n          iVar1 = 0;\n          goto LAB_00075361;\n        }\n        iVar1 = 0;\n        if (iVar4 == 6) goto LAB_00075361;\n      }" { (if_statement "if (iVar4 == 3) {\n          FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);\n          iVar1 = 0;\n          goto LAB_00075361;\n        }" if (parenthesized_expression "(iVar4 == 3)" ( (binary_expression "iVar4 == 3" identifier == number_literal) )) (compound_statement "{\n          FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);\n          iVar1 = 0;\n          goto LAB_00075361;\n        }" { (expression_statement "FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);" (call_expression "FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1)" identifier (argument_list "(iVar6,"inflateEnd" + unaff_EBX + 1)" ( identifier , (binary_expression ""inflateEnd" + unaff_EBX + 1" (binary_expression ""inflateEnd" + unaff_EBX" (string_literal ""inflateEnd"" " string_content ") + identifier) + number_literal) ))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00075361;" goto statement_identifier ;) })) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (iVar4 == 6) goto LAB_00075361;" if (parenthesized_expression "(iVar4 == 6)" ( (binary_expression "iVar4 == 6" identifier == number_literal) )) (goto_statement "goto LAB_00075361;" goto statement_identifier ;)) }))) (expression_statement "e = ERR_get_error();" (assignment_expression "e = ERR_get_error()" identifier = (call_expression "ERR_get_error()" identifier (argument_list "()" ( )))) ;) (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (if_statement "if (e == 0) {\n        buf = (char *)FUN_00074430();\n      }\n      else {\n        ERR_error_string_n(e,buf,0x100);\n      }" if (parenthesized_expression "(e == 0)" ( (binary_expression "e == 0" identifier == number_literal) )) (compound_statement "{\n        buf = (char *)FUN_00074430();\n      }" { (expression_statement "buf = (char *)FUN_00074430();" (assignment_expression "buf = (char *)FUN_00074430()" identifier = (cast_expression "(char *)FUN_00074430()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00074430()" identifier (argument_list "()" ( ))))) ;) }) (else_clause "else {\n        ERR_error_string_n(e,buf,0x100);\n      }" else (compound_statement "{\n        ERR_error_string_n(e,buf,0x100);\n      }" { (expression_statement "ERR_error_string_n(e,buf,0x100);" (call_expression "ERR_error_string_n(e,buf,0x100)" identifier (argument_list "(e,buf,0x100)" ( identifier , identifier , number_literal ))) ;) }))) (expression_statement "FUN_00027240(*unaff_retaddr,"gss_display_status" + unaff_EBX + 6,buf,iVar1);" (call_expression "FUN_00027240(*unaff_retaddr,"gss_display_status" + unaff_EBX + 6,buf,iVar1)" identifier (argument_list "(*unaff_retaddr,"gss_display_status" + unaff_EBX + 6,buf,iVar1)" ( (pointer_expression "*unaff_retaddr" * identifier) , (binary_expression ""gss_display_status" + unaff_EBX + 6" (binary_expression ""gss_display_status" + unaff_EBX" (string_literal ""gss_display_status"" " string_content ") + identifier) + number_literal) , identifier , identifier ))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00075361;" goto statement_identifier ;) })) (expression_statement "FUN_00027140(iVar6,pcVar5);" (call_expression "FUN_00027140(iVar6,pcVar5)" identifier (argument_list "(iVar6,pcVar5)" ( identifier , identifier ))) ;) })) (if_statement "if (iVar1 == 0) {\n    FUN_00027240(iVar6,"inflateInit_" + unaff_EBX + 0xc);\n  }\n  else {\n    piVar3 = __errno_location();\n    FUN_00027240(iVar6,"gss_inquire_context" + unaff_EBX + 0x12,*piVar3);\n    iVar1 = -1;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_00027240(iVar6,"inflateInit_" + unaff_EBX + 0xc);\n  }" { (expression_statement "FUN_00027240(iVar6,"inflateInit_" + unaff_EBX + 0xc);" (call_expression "FUN_00027240(iVar6,"inflateInit_" + unaff_EBX + 0xc)" identifier (argument_list "(iVar6,"inflateInit_" + unaff_EBX + 0xc)" ( identifier , (binary_expression ""inflateInit_" + unaff_EBX + 0xc" (binary_expression ""inflateInit_" + unaff_EBX" (string_literal ""inflateInit_"" " string_content ") + identifier) + number_literal) ))) ;) }) (else_clause "else {\n    piVar3 = __errno_location();\n    FUN_00027240(iVar6,"gss_inquire_context" + unaff_EBX + 0x12,*piVar3);\n    iVar1 = -1;\n  }" else (compound_statement "{\n    piVar3 = __errno_location();\n    FUN_00027240(iVar6,"gss_inquire_context" + unaff_EBX + 0x12,*piVar3);\n    iVar1 = -1;\n  }" { (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_00027240(iVar6,"gss_inquire_context" + unaff_EBX + 0x12,*piVar3);" (call_expression "FUN_00027240(iVar6,"gss_inquire_context" + unaff_EBX + 0x12,*piVar3)" identifier (argument_list "(iVar6,"gss_inquire_context" + unaff_EBX + 0x12,*piVar3)" ( identifier , (binary_expression ""gss_inquire_context" + unaff_EBX + 0x12" (binary_expression ""gss_inquire_context" + unaff_EBX" (string_literal ""gss_inquire_context"" " string_content ") + identifier) + number_literal) , (pointer_expression "*piVar3" * identifier) ))) ;) (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) }))) (labeled_statement "LAB_00075361:\n  pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);" statement_identifier : (expression_statement "pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);" (assignment_expression "pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" identifier = (pointer_expression "*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" * (cast_expression "(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" ( (type_descriptor "SSL **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_retaddr[param_1 * 4 + 0x70] + 4)" ( (binary_expression "unaff_retaddr[param_1 * 4 + 0x70] + 4" (subscript_expression "unaff_retaddr[param_1 * 4 + 0x70]" identifier [ (binary_expression "param_1 * 4 + 0x70" (binary_expression "param_1 * 4" identifier * number_literal) + number_literal) ]) + number_literal) ))))) ;)) (if_statement "if (*(char *)(iVar6 + 0x93c) != '\0') {\n    iVar4 = SSL_get_shutdown(pSVar2);\n    if (iVar4 == 2) {\n      pcVar5 = "RTMP_Write" + unaff_EBX;\n    }\n    else if (iVar4 == 3) {\n      pcVar5 = "RTMP_SetBufferMS" + unaff_EBX + 1;\n    }\n    else {\n      if (iVar4 != 1) {\n        pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n        goto LAB_0007537a;\n      }\n      pcVar5 = "pthread_join" + unaff_EBX;\n    }\n    FUN_00027140(iVar6,pcVar5);\n    pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  }" if (parenthesized_expression "(*(char *)(iVar6 + 0x93c) != '\0')" ( (binary_expression "*(char *)(iVar6 + 0x93c) != '\0'" (pointer_expression "*(char *)(iVar6 + 0x93c)" * (cast_expression "(char *)(iVar6 + 0x93c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x93c)" ( (binary_expression "iVar6 + 0x93c" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar4 = SSL_get_shutdown(pSVar2);\n    if (iVar4 == 2) {\n      pcVar5 = "RTMP_Write" + unaff_EBX;\n    }\n    else if (iVar4 == 3) {\n      pcVar5 = "RTMP_SetBufferMS" + unaff_EBX + 1;\n    }\n    else {\n      if (iVar4 != 1) {\n        pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n        goto LAB_0007537a;\n      }\n      pcVar5 = "pthread_join" + unaff_EBX;\n    }\n    FUN_00027140(iVar6,pcVar5);\n    pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  }" { (expression_statement "iVar4 = SSL_get_shutdown(pSVar2);" (assignment_expression "iVar4 = SSL_get_shutdown(pSVar2)" identifier = (call_expression "SSL_get_shutdown(pSVar2)" identifier (argument_list "(pSVar2)" ( identifier )))) ;) (if_statement "if (iVar4 == 2) {\n      pcVar5 = "RTMP_Write" + unaff_EBX;\n    }\n    else if (iVar4 == 3) {\n      pcVar5 = "RTMP_SetBufferMS" + unaff_EBX + 1;\n    }\n    else {\n      if (iVar4 != 1) {\n        pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n        goto LAB_0007537a;\n      }\n      pcVar5 = "pthread_join" + unaff_EBX;\n    }" if (parenthesized_expression "(iVar4 == 2)" ( (binary_expression "iVar4 == 2" identifier == number_literal) )) (compound_statement "{\n      pcVar5 = "RTMP_Write" + unaff_EBX;\n    }" { (expression_statement "pcVar5 = "RTMP_Write" + unaff_EBX;" (assignment_expression "pcVar5 = "RTMP_Write" + unaff_EBX" identifier = (binary_expression ""RTMP_Write" + unaff_EBX" (string_literal ""RTMP_Write"" " string_content ") + identifier)) ;) }) (else_clause "else if (iVar4 == 3) {\n      pcVar5 = "RTMP_SetBufferMS" + unaff_EBX + 1;\n    }\n    else {\n      if (iVar4 != 1) {\n        pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n        goto LAB_0007537a;\n      }\n      pcVar5 = "pthread_join" + unaff_EBX;\n    }" else (if_statement "if (iVar4 == 3) {\n      pcVar5 = "RTMP_SetBufferMS" + unaff_EBX + 1;\n    }\n    else {\n      if (iVar4 != 1) {\n        pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n        goto LAB_0007537a;\n      }\n      pcVar5 = "pthread_join" + unaff_EBX;\n    }" if (parenthesized_expression "(iVar4 == 3)" ( (binary_expression "iVar4 == 3" identifier == number_literal) )) (compound_statement "{\n      pcVar5 = "RTMP_SetBufferMS" + unaff_EBX + 1;\n    }" { (expression_statement "pcVar5 = "RTMP_SetBufferMS" + unaff_EBX + 1;" (assignment_expression "pcVar5 = "RTMP_SetBufferMS" + unaff_EBX + 1" identifier = (binary_expression ""RTMP_SetBufferMS" + unaff_EBX + 1" (binary_expression ""RTMP_SetBufferMS" + unaff_EBX" (string_literal ""RTMP_SetBufferMS"" " string_content ") + identifier) + number_literal)) ;) }) (else_clause "else {\n      if (iVar4 != 1) {\n        pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n        goto LAB_0007537a;\n      }\n      pcVar5 = "pthread_join" + unaff_EBX;\n    }" else (compound_statement "{\n      if (iVar4 != 1) {\n        pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n        goto LAB_0007537a;\n      }\n      pcVar5 = "pthread_join" + unaff_EBX;\n    }" { (if_statement "if (iVar4 != 1) {\n        pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n        goto LAB_0007537a;\n      }" if (parenthesized_expression "(iVar4 != 1)" ( (binary_expression "iVar4 != 1" identifier != number_literal) )) (compound_statement "{\n        pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n        goto LAB_0007537a;\n      }" { (expression_statement "pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);" (assignment_expression "pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" identifier = (pointer_expression "*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" * (cast_expression "(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" ( (type_descriptor "SSL **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_retaddr[param_1 * 4 + 0x70] + 4)" ( (binary_expression "unaff_retaddr[param_1 * 4 + 0x70] + 4" (subscript_expression "unaff_retaddr[param_1 * 4 + 0x70]" identifier [ (binary_expression "param_1 * 4 + 0x70" (binary_expression "param_1 * 4" identifier * number_literal) + number_literal) ]) + number_literal) ))))) ;) (goto_statement "goto LAB_0007537a;" goto statement_identifier ;) })) (expression_statement "pcVar5 = "pthread_join" + unaff_EBX;" (assignment_expression "pcVar5 = "pthread_join" + unaff_EBX" identifier = (binary_expression ""pthread_join" + unaff_EBX" (string_literal ""pthread_join"" " string_content ") + identifier)) ;) }))))) (expression_statement "FUN_00027140(iVar6,pcVar5);" (call_expression "FUN_00027140(iVar6,pcVar5)" identifier (argument_list "(iVar6,pcVar5)" ( identifier , identifier ))) ;) (expression_statement "pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);" (assignment_expression "pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" identifier = (pointer_expression "*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" * (cast_expression "(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" ( (type_descriptor "SSL **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_retaddr[param_1 * 4 + 0x70] + 4)" ( (binary_expression "unaff_retaddr[param_1 * 4 + 0x70] + 4" (subscript_expression "unaff_retaddr[param_1 * 4 + 0x70]" identifier [ (binary_expression "param_1 * 4 + 0x70" (binary_expression "param_1 * 4" identifier * number_literal) + number_literal) ]) + number_literal) ))))) ;) })) (labeled_statement "LAB_0007537a:\n  SSL_free(pSVar2);" statement_identifier : (expression_statement "SSL_free(pSVar2);" (call_expression "SSL_free(pSVar2)" identifier (argument_list "(pSVar2)" ( identifier ))) ;)) (expression_statement "*(undefined4 *)(unaff_retaddr[param_1 * 4 + 0x70] + 4) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr[param_1 * 4 + 0x70] + 4) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" * (cast_expression "(undefined4 *)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr[param_1 * 4 + 0x70] + 4)" ( (binary_expression "unaff_retaddr[param_1 * 4 + 0x70] + 4" (subscript_expression "unaff_retaddr[param_1 * 4 + 0x70]" identifier [ (binary_expression "param_1 * 4 + 0x70" (binary_expression "param_1 * 4" identifier * number_literal) + number_literal) ]) + number_literal) )))) = number_literal) ;) (labeled_statement "LAB_00075399:\n  if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0007c1a0();\n  }" statement_identifier : (if_statement "if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0007c1a0();\n  }" if (parenthesized_expression "(local_24 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_24 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_0007c1a0();\n  }" { (expression_statement "FUN_0007c1a0();" (call_expression "FUN_0007c1a0()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) + LIT) ))))) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (string_literal " string_content ") + IDENT) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) , LIT , LIT , LIT , IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (break_statement break ;)) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) + LIT) )))) , IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) + LIT) )))) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression (binary_expression (string_literal " string_content ") + IDENT) + LIT) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) }))) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (binary_expression (binary_expression (string_literal " string_content ") + IDENT) + LIT) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression (binary_expression (string_literal " string_content ") + IDENT) + LIT) ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression (binary_expression (string_literal " string_content ") + IDENT) + LIT) , (pointer_expression * IDENT) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) + LIT) ))))) ;)) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (string_literal " string_content ") + IDENT)) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (string_literal " string_content ") + IDENT) + LIT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) + LIT) ))))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (string_literal " string_content ") + IDENT)) ;) }))))) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) + LIT) ))))) ;) })) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) + LIT) )))) = LIT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int FUN_000752b0(int param_1)\n\n{\n  int iVar1;\n  SSL *pSVar2;\n  ulong e;\n  char *buf;\n  int *piVar3;\n  int iVar4;\n  char *pcVar5;\n  int unaff_EBX;\n  int in_GS_OFFSET;\n  int *unaff_retaddr;\n  int iVar6;\n  char local_124 [256];\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x752b9;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar6 = *unaff_retaddr;\n  pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  if (*(int *)(iVar6 + 0x94c) == 2) {\n    SSL_shutdown(pSVar2);\n    pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  }\n  buf = local_124;\n  pcVar5 = "curl_multi_assign" + unaff_EBX + 0xc;\n  if (pSVar2 == (SSL *)0x0) {\n    iVar1 = 0;\n    goto LAB_00075399;\n  }\n  while( true ) {\n    iVar1 = FUN_00049010(unaff_retaddr[param_1 + 100],0xffffffff,0xffffffff,10000,iVar6,buf,pcVar5);\n    if (iVar1 < 1) break;\n    ERR_clear_error();\n    iVar1 = SSL_read(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),buf,0x100);\n    iVar4 = SSL_get_error(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),iVar1);\n    if (iVar4 != 2) {\n      if (iVar4 < 3) {\n        iVar1 = 0;\n        if (iVar4 == 0) goto LAB_00075361;\n      }\n      else {\n        if (iVar4 == 3) {\n          FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);\n          iVar1 = 0;\n          goto LAB_00075361;\n        }\n        iVar1 = 0;\n        if (iVar4 == 6) goto LAB_00075361;\n      }\n      e = ERR_get_error();\n      piVar3 = __errno_location();\n      iVar1 = *piVar3;\n      if (e == 0) {\n        buf = (char *)FUN_00074430();\n      }\n      else {\n        ERR_error_string_n(e,buf,0x100);\n      }\n      FUN_00027240(*unaff_retaddr,"gss_display_status" + unaff_EBX + 6,buf,iVar1);\n      iVar1 = 0;\n      goto LAB_00075361;\n    }\n    FUN_00027140(iVar6,pcVar5);\n  }\n  if (iVar1 == 0) {\n    FUN_00027240(iVar6,"inflateInit_" + unaff_EBX + 0xc);\n  }\n  else {\n    piVar3 = __errno_location();\n    FUN_00027240(iVar6,"gss_inquire_context" + unaff_EBX + 0x12,*piVar3);\n    iVar1 = -1;\n  }\nLAB_00075361:\n  pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  if (*(char *)(iVar6 + 0x93c) != '\0') {\n    iVar4 = SSL_get_shutdown(pSVar2);\n    if (iVar4 == 2) {\n      pcVar5 = "RTMP_Write" + unaff_EBX;\n    }\n    else if (iVar4 == 3) {\n      pcVar5 = "RTMP_SetBufferMS" + unaff_EBX + 1;\n    }\n    else {\n      if (iVar4 != 1) {\n        pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n        goto LAB_0007537a;\n      }\n      pcVar5 = "pthread_join" + unaff_EBX;\n    }\n    FUN_00027140(iVar6,pcVar5);\n    pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  }\nLAB_0007537a:\n  SSL_free(pSVar2);\n  *(undefined4 *)(unaff_retaddr[param_1 * 4 + 0x70] + 4) = 0;\nLAB_00075399:\n  if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0007c1a0();\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_000752b0(int param_1)" (identifier "FUN_000752b0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  SSL *pSVar2;\n  ulong e;\n  char *buf;\n  int *piVar3;\n  int iVar4;\n  char *pcVar5;\n  int unaff_EBX;\n  int in_GS_OFFSET;\n  int *unaff_retaddr;\n  int iVar6;\n  char local_124 [256];\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x752b9;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar6 = *unaff_retaddr;\n  pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  if (*(int *)(iVar6 + 0x94c) == 2) {\n    SSL_shutdown(pSVar2);\n    pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  }\n  buf = local_124;\n  pcVar5 = "curl_multi_assign" + unaff_EBX + 0xc;\n  if (pSVar2 == (SSL *)0x0) {\n    iVar1 = 0;\n    goto LAB_00075399;\n  }\n  while( true ) {\n    iVar1 = FUN_00049010(unaff_retaddr[param_1 + 100],0xffffffff,0xffffffff,10000,iVar6,buf,pcVar5);\n    if (iVar1 < 1) break;\n    ERR_clear_error();\n    iVar1 = SSL_read(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),buf,0x100);\n    iVar4 = SSL_get_error(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),iVar1);\n    if (iVar4 != 2) {\n      if (iVar4 < 3) {\n        iVar1 = 0;\n        if (iVar4 == 0) goto LAB_00075361;\n      }\n      else {\n        if (iVar4 == 3) {\n          FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);\n          iVar1 = 0;\n          goto LAB_00075361;\n        }\n        iVar1 = 0;\n        if (iVar4 == 6) goto LAB_00075361;\n      }\n      e = ERR_get_error();\n      piVar3 = __errno_location();\n      iVar1 = *piVar3;\n      if (e == 0) {\n        buf = (char *)FUN_00074430();\n      }\n      else {\n        ERR_error_string_n(e,buf,0x100);\n      }\n      FUN_00027240(*unaff_retaddr,"gss_display_status" + unaff_EBX + 6,buf,iVar1);\n      iVar1 = 0;\n      goto LAB_00075361;\n    }\n    FUN_00027140(iVar6,pcVar5);\n  }\n  if (iVar1 == 0) {\n    FUN_00027240(iVar6,"inflateInit_" + unaff_EBX + 0xc);\n  }\n  else {\n    piVar3 = __errno_location();\n    FUN_00027240(iVar6,"gss_inquire_context" + unaff_EBX + 0x12,*piVar3);\n    iVar1 = -1;\n  }\nLAB_00075361:\n  pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  if (*(char *)(iVar6 + 0x93c) != '\0') {\n    iVar4 = SSL_get_shutdown(pSVar2);\n    if (iVar4 == 2) {\n      pcVar5 = "RTMP_Write" + unaff_EBX;\n    }\n    else if (iVar4 == 3) {\n      pcVar5 = "RTMP_SetBufferMS" + unaff_EBX + 1;\n    }\n    else {\n      if (iVar4 != 1) {\n        pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n        goto LAB_0007537a;\n      }\n      pcVar5 = "pthread_join" + unaff_EBX;\n    }\n    FUN_00027140(iVar6,pcVar5);\n    pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  }\nLAB_0007537a:\n  SSL_free(pSVar2);\n  *(undefined4 *)(unaff_retaddr[param_1 * 4 + 0x70] + 4) = 0;\nLAB_00075399:\n  if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0007c1a0();\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "SSL *pSVar2;" (type_identifier "SSL") (pointer_declarator "*pSVar2" (* "*") (identifier "pSVar2")) (; ";")) (declaration "ulong e;" (type_identifier "ulong") (identifier "e") (; ";")) (declaration "char *buf;" (primitive_type "char") (pointer_declarator "*buf" (* "*") (identifier "buf")) (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "int unaff_EBX;" (primitive_type "int") (identifier "unaff_EBX") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int *unaff_retaddr;" (primitive_type "int") (pointer_declarator "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "char local_124 [256];" (primitive_type "char") (array_declarator "local_124 [256]" (identifier "local_124") ([ "[") (number_literal "256") (] "]")) (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x752b9;" (assignment_expression "uStack_14 = 0x752b9" (identifier "uStack_14") (= "=") (number_literal "0x752b9")) (; ";")) (expression_statement "entry();" (call_expression "entry()" (identifier "entry") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "local_24 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_24 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_24") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "iVar6 = *unaff_retaddr;" (assignment_expression "iVar6 = *unaff_retaddr" (identifier "iVar6") (= "=") (pointer_expression "*unaff_retaddr" (* "*") (identifier "unaff_retaddr"))) (; ";")) (expression_statement "pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);" (assignment_expression "pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" (identifier "pSVar2") (= "=") (pointer_expression "*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" (* "*") (cast_expression "(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" (( "(") (type_descriptor "SSL **" (type_identifier "SSL") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_retaddr[param_1 * 4 + 0x70] + 4)" (( "(") (binary_expression "unaff_retaddr[param_1 * 4 + 0x70] + 4" (subscript_expression "unaff_retaddr[param_1 * 4 + 0x70]" (identifier "unaff_retaddr") ([ "[") (binary_expression "param_1 * 4 + 0x70" (binary_expression "param_1 * 4" (identifier "param_1") (* "*") (number_literal "4")) (+ "+") (number_literal "0x70")) (] "]")) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (*(int *)(iVar6 + 0x94c) == 2) {\n    SSL_shutdown(pSVar2);\n    pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  }" (if "if") (parenthesized_expression "(*(int *)(iVar6 + 0x94c) == 2)" (( "(") (binary_expression "*(int *)(iVar6 + 0x94c) == 2" (pointer_expression "*(int *)(iVar6 + 0x94c)" (* "*") (cast_expression "(int *)(iVar6 + 0x94c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x94c)" (( "(") (binary_expression "iVar6 + 0x94c" (identifier "iVar6") (+ "+") (number_literal "0x94c")) () ")")))) (== "==") (number_literal "2")) () ")")) (compound_statement "{\n    SSL_shutdown(pSVar2);\n    pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  }" ({ "{") (expression_statement "SSL_shutdown(pSVar2);" (call_expression "SSL_shutdown(pSVar2)" (identifier "SSL_shutdown") (argument_list "(pSVar2)" (( "(") (identifier "pSVar2") () ")"))) (; ";")) (expression_statement "pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);" (assignment_expression "pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" (identifier "pSVar2") (= "=") (pointer_expression "*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" (* "*") (cast_expression "(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" (( "(") (type_descriptor "SSL **" (type_identifier "SSL") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_retaddr[param_1 * 4 + 0x70] + 4)" (( "(") (binary_expression "unaff_retaddr[param_1 * 4 + 0x70] + 4" (subscript_expression "unaff_retaddr[param_1 * 4 + 0x70]" (identifier "unaff_retaddr") ([ "[") (binary_expression "param_1 * 4 + 0x70" (binary_expression "param_1 * 4" (identifier "param_1") (* "*") (number_literal "4")) (+ "+") (number_literal "0x70")) (] "]")) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (} "}"))) (expression_statement "buf = local_124;" (assignment_expression "buf = local_124" (identifier "buf") (= "=") (identifier "local_124")) (; ";")) (expression_statement "pcVar5 = "curl_multi_assign" + unaff_EBX + 0xc;" (assignment_expression "pcVar5 = "curl_multi_assign" + unaff_EBX + 0xc" (identifier "pcVar5") (= "=") (binary_expression ""curl_multi_assign" + unaff_EBX + 0xc" (binary_expression ""curl_multi_assign" + unaff_EBX" (string_literal ""curl_multi_assign"" (" """) (string_content "curl_multi_assign") (" """)) (+ "+") (identifier "unaff_EBX")) (+ "+") (number_literal "0xc"))) (; ";")) (if_statement "if (pSVar2 == (SSL *)0x0) {\n    iVar1 = 0;\n    goto LAB_00075399;\n  }" (if "if") (parenthesized_expression "(pSVar2 == (SSL *)0x0)" (( "(") (binary_expression "pSVar2 == (SSL *)0x0" (identifier "pSVar2") (== "==") (cast_expression "(SSL *)0x0" (( "(") (type_descriptor "SSL *" (type_identifier "SSL") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar1 = 0;\n    goto LAB_00075399;\n  }" ({ "{") (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00075399;" (goto "goto") (statement_identifier "LAB_00075399") (; ";")) (} "}"))) (while_statement "while( true ) {\n    iVar1 = FUN_00049010(unaff_retaddr[param_1 + 100],0xffffffff,0xffffffff,10000,iVar6,buf,pcVar5);\n    if (iVar1 < 1) break;\n    ERR_clear_error();\n    iVar1 = SSL_read(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),buf,0x100);\n    iVar4 = SSL_get_error(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),iVar1);\n    if (iVar4 != 2) {\n      if (iVar4 < 3) {\n        iVar1 = 0;\n        if (iVar4 == 0) goto LAB_00075361;\n      }\n      else {\n        if (iVar4 == 3) {\n          FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);\n          iVar1 = 0;\n          goto LAB_00075361;\n        }\n        iVar1 = 0;\n        if (iVar4 == 6) goto LAB_00075361;\n      }\n      e = ERR_get_error();\n      piVar3 = __errno_location();\n      iVar1 = *piVar3;\n      if (e == 0) {\n        buf = (char *)FUN_00074430();\n      }\n      else {\n        ERR_error_string_n(e,buf,0x100);\n      }\n      FUN_00027240(*unaff_retaddr,"gss_display_status" + unaff_EBX + 6,buf,iVar1);\n      iVar1 = 0;\n      goto LAB_00075361;\n    }\n    FUN_00027140(iVar6,pcVar5);\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    iVar1 = FUN_00049010(unaff_retaddr[param_1 + 100],0xffffffff,0xffffffff,10000,iVar6,buf,pcVar5);\n    if (iVar1 < 1) break;\n    ERR_clear_error();\n    iVar1 = SSL_read(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),buf,0x100);\n    iVar4 = SSL_get_error(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),iVar1);\n    if (iVar4 != 2) {\n      if (iVar4 < 3) {\n        iVar1 = 0;\n        if (iVar4 == 0) goto LAB_00075361;\n      }\n      else {\n        if (iVar4 == 3) {\n          FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);\n          iVar1 = 0;\n          goto LAB_00075361;\n        }\n        iVar1 = 0;\n        if (iVar4 == 6) goto LAB_00075361;\n      }\n      e = ERR_get_error();\n      piVar3 = __errno_location();\n      iVar1 = *piVar3;\n      if (e == 0) {\n        buf = (char *)FUN_00074430();\n      }\n      else {\n        ERR_error_string_n(e,buf,0x100);\n      }\n      FUN_00027240(*unaff_retaddr,"gss_display_status" + unaff_EBX + 6,buf,iVar1);\n      iVar1 = 0;\n      goto LAB_00075361;\n    }\n    FUN_00027140(iVar6,pcVar5);\n  }" ({ "{") (expression_statement "iVar1 = FUN_00049010(unaff_retaddr[param_1 + 100],0xffffffff,0xffffffff,10000,iVar6,buf,pcVar5);" (assignment_expression "iVar1 = FUN_00049010(unaff_retaddr[param_1 + 100],0xffffffff,0xffffffff,10000,iVar6,buf,pcVar5)" (identifier "iVar1") (= "=") (call_expression "FUN_00049010(unaff_retaddr[param_1 + 100],0xffffffff,0xffffffff,10000,iVar6,buf,pcVar5)" (identifier "FUN_00049010") (argument_list "(unaff_retaddr[param_1 + 100],0xffffffff,0xffffffff,10000,iVar6,buf,pcVar5)" (( "(") (subscript_expression "unaff_retaddr[param_1 + 100]" (identifier "unaff_retaddr") ([ "[") (binary_expression "param_1 + 100" (identifier "param_1") (+ "+") (number_literal "100")) (] "]")) (, ",") (number_literal "0xffffffff") (, ",") (number_literal "0xffffffff") (, ",") (number_literal "10000") (, ",") (identifier "iVar6") (, ",") (identifier "buf") (, ",") (identifier "pcVar5") () ")")))) (; ";")) (if_statement "if (iVar1 < 1) break;" (if "if") (parenthesized_expression "(iVar1 < 1)" (( "(") (binary_expression "iVar1 < 1" (identifier "iVar1") (< "<") (number_literal "1")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "ERR_clear_error();" (call_expression "ERR_clear_error()" (identifier "ERR_clear_error") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar1 = SSL_read(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),buf,0x100);" (assignment_expression "iVar1 = SSL_read(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),buf,0x100)" (identifier "iVar1") (= "=") (call_expression "SSL_read(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),buf,0x100)" (identifier "SSL_read") (argument_list "(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),buf,0x100)" (( "(") (pointer_expression "*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" (* "*") (cast_expression "(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" (( "(") (type_descriptor "SSL **" (type_identifier "SSL") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_retaddr[param_1 * 4 + 0x70] + 4)" (( "(") (binary_expression "unaff_retaddr[param_1 * 4 + 0x70] + 4" (subscript_expression "unaff_retaddr[param_1 * 4 + 0x70]" (identifier "unaff_retaddr") ([ "[") (binary_expression "param_1 * 4 + 0x70" (binary_expression "param_1 * 4" (identifier "param_1") (* "*") (number_literal "4")) (+ "+") (number_literal "0x70")) (] "]")) (+ "+") (number_literal "4")) () ")")))) (, ",") (identifier "buf") (, ",") (number_literal "0x100") () ")")))) (; ";")) (expression_statement "iVar4 = SSL_get_error(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),iVar1);" (assignment_expression "iVar4 = SSL_get_error(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),iVar1)" (identifier "iVar4") (= "=") (call_expression "SSL_get_error(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),iVar1)" (identifier "SSL_get_error") (argument_list "(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),iVar1)" (( "(") (pointer_expression "*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" (* "*") (cast_expression "(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" (( "(") (type_descriptor "SSL **" (type_identifier "SSL") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_retaddr[param_1 * 4 + 0x70] + 4)" (( "(") (binary_expression "unaff_retaddr[param_1 * 4 + 0x70] + 4" (subscript_expression "unaff_retaddr[param_1 * 4 + 0x70]" (identifier "unaff_retaddr") ([ "[") (binary_expression "param_1 * 4 + 0x70" (binary_expression "param_1 * 4" (identifier "param_1") (* "*") (number_literal "4")) (+ "+") (number_literal "0x70")) (] "]")) (+ "+") (number_literal "4")) () ")")))) (, ",") (identifier "iVar1") () ")")))) (; ";")) (if_statement "if (iVar4 != 2) {\n      if (iVar4 < 3) {\n        iVar1 = 0;\n        if (iVar4 == 0) goto LAB_00075361;\n      }\n      else {\n        if (iVar4 == 3) {\n          FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);\n          iVar1 = 0;\n          goto LAB_00075361;\n        }\n        iVar1 = 0;\n        if (iVar4 == 6) goto LAB_00075361;\n      }\n      e = ERR_get_error();\n      piVar3 = __errno_location();\n      iVar1 = *piVar3;\n      if (e == 0) {\n        buf = (char *)FUN_00074430();\n      }\n      else {\n        ERR_error_string_n(e,buf,0x100);\n      }\n      FUN_00027240(*unaff_retaddr,"gss_display_status" + unaff_EBX + 6,buf,iVar1);\n      iVar1 = 0;\n      goto LAB_00075361;\n    }" (if "if") (parenthesized_expression "(iVar4 != 2)" (( "(") (binary_expression "iVar4 != 2" (identifier "iVar4") (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n      if (iVar4 < 3) {\n        iVar1 = 0;\n        if (iVar4 == 0) goto LAB_00075361;\n      }\n      else {\n        if (iVar4 == 3) {\n          FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);\n          iVar1 = 0;\n          goto LAB_00075361;\n        }\n        iVar1 = 0;\n        if (iVar4 == 6) goto LAB_00075361;\n      }\n      e = ERR_get_error();\n      piVar3 = __errno_location();\n      iVar1 = *piVar3;\n      if (e == 0) {\n        buf = (char *)FUN_00074430();\n      }\n      else {\n        ERR_error_string_n(e,buf,0x100);\n      }\n      FUN_00027240(*unaff_retaddr,"gss_display_status" + unaff_EBX + 6,buf,iVar1);\n      iVar1 = 0;\n      goto LAB_00075361;\n    }" ({ "{") (if_statement "if (iVar4 < 3) {\n        iVar1 = 0;\n        if (iVar4 == 0) goto LAB_00075361;\n      }\n      else {\n        if (iVar4 == 3) {\n          FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);\n          iVar1 = 0;\n          goto LAB_00075361;\n        }\n        iVar1 = 0;\n        if (iVar4 == 6) goto LAB_00075361;\n      }" (if "if") (parenthesized_expression "(iVar4 < 3)" (( "(") (binary_expression "iVar4 < 3" (identifier "iVar4") (< "<") (number_literal "3")) () ")")) (compound_statement "{\n        iVar1 = 0;\n        if (iVar4 == 0) goto LAB_00075361;\n      }" ({ "{") (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar4 == 0) goto LAB_00075361;" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00075361;" (goto "goto") (statement_identifier "LAB_00075361") (; ";"))) (} "}")) (else_clause "else {\n        if (iVar4 == 3) {\n          FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);\n          iVar1 = 0;\n          goto LAB_00075361;\n        }\n        iVar1 = 0;\n        if (iVar4 == 6) goto LAB_00075361;\n      }" (else "else") (compound_statement "{\n        if (iVar4 == 3) {\n          FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);\n          iVar1 = 0;\n          goto LAB_00075361;\n        }\n        iVar1 = 0;\n        if (iVar4 == 6) goto LAB_00075361;\n      }" ({ "{") (if_statement "if (iVar4 == 3) {\n          FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);\n          iVar1 = 0;\n          goto LAB_00075361;\n        }" (if "if") (parenthesized_expression "(iVar4 == 3)" (( "(") (binary_expression "iVar4 == 3" (identifier "iVar4") (== "==") (number_literal "3")) () ")")) (compound_statement "{\n          FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);\n          iVar1 = 0;\n          goto LAB_00075361;\n        }" ({ "{") (expression_statement "FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);" (call_expression "FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1)" (identifier "FUN_00027140") (argument_list "(iVar6,"inflateEnd" + unaff_EBX + 1)" (( "(") (identifier "iVar6") (, ",") (binary_expression ""inflateEnd" + unaff_EBX + 1" (binary_expression ""inflateEnd" + unaff_EBX" (string_literal ""inflateEnd"" (" """) (string_content "inflateEnd") (" """)) (+ "+") (identifier "unaff_EBX")) (+ "+") (number_literal "1")) () ")"))) (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00075361;" (goto "goto") (statement_identifier "LAB_00075361") (; ";")) (} "}"))) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar4 == 6) goto LAB_00075361;" (if "if") (parenthesized_expression "(iVar4 == 6)" (( "(") (binary_expression "iVar4 == 6" (identifier "iVar4") (== "==") (number_literal "6")) () ")")) (goto_statement "goto LAB_00075361;" (goto "goto") (statement_identifier "LAB_00075361") (; ";"))) (} "}")))) (expression_statement "e = ERR_get_error();" (assignment_expression "e = ERR_get_error()" (identifier "e") (= "=") (call_expression "ERR_get_error()" (identifier "ERR_get_error") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" (identifier "piVar3") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" (identifier "iVar1") (= "=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (; ";")) (if_statement "if (e == 0) {\n        buf = (char *)FUN_00074430();\n      }\n      else {\n        ERR_error_string_n(e,buf,0x100);\n      }" (if "if") (parenthesized_expression "(e == 0)" (( "(") (binary_expression "e == 0" (identifier "e") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        buf = (char *)FUN_00074430();\n      }" ({ "{") (expression_statement "buf = (char *)FUN_00074430();" (assignment_expression "buf = (char *)FUN_00074430()" (identifier "buf") (= "=") (cast_expression "(char *)FUN_00074430()" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00074430()" (identifier "FUN_00074430") (argument_list "()" (( "(") () ")"))))) (; ";")) (} "}")) (else_clause "else {\n        ERR_error_string_n(e,buf,0x100);\n      }" (else "else") (compound_statement "{\n        ERR_error_string_n(e,buf,0x100);\n      }" ({ "{") (expression_statement "ERR_error_string_n(e,buf,0x100);" (call_expression "ERR_error_string_n(e,buf,0x100)" (identifier "ERR_error_string_n") (argument_list "(e,buf,0x100)" (( "(") (identifier "e") (, ",") (identifier "buf") (, ",") (number_literal "0x100") () ")"))) (; ";")) (} "}")))) (expression_statement "FUN_00027240(*unaff_retaddr,"gss_display_status" + unaff_EBX + 6,buf,iVar1);" (call_expression "FUN_00027240(*unaff_retaddr,"gss_display_status" + unaff_EBX + 6,buf,iVar1)" (identifier "FUN_00027240") (argument_list "(*unaff_retaddr,"gss_display_status" + unaff_EBX + 6,buf,iVar1)" (( "(") (pointer_expression "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) (, ",") (binary_expression ""gss_display_status" + unaff_EBX + 6" (binary_expression ""gss_display_status" + unaff_EBX" (string_literal ""gss_display_status"" (" """) (string_content "gss_display_status") (" """)) (+ "+") (identifier "unaff_EBX")) (+ "+") (number_literal "6")) (, ",") (identifier "buf") (, ",") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00075361;" (goto "goto") (statement_identifier "LAB_00075361") (; ";")) (} "}"))) (expression_statement "FUN_00027140(iVar6,pcVar5);" (call_expression "FUN_00027140(iVar6,pcVar5)" (identifier "FUN_00027140") (argument_list "(iVar6,pcVar5)" (( "(") (identifier "iVar6") (, ",") (identifier "pcVar5") () ")"))) (; ";")) (} "}"))) (if_statement "if (iVar1 == 0) {\n    FUN_00027240(iVar6,"inflateInit_" + unaff_EBX + 0xc);\n  }\n  else {\n    piVar3 = __errno_location();\n    FUN_00027240(iVar6,"gss_inquire_context" + unaff_EBX + 0x12,*piVar3);\n    iVar1 = -1;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00027240(iVar6,"inflateInit_" + unaff_EBX + 0xc);\n  }" ({ "{") (expression_statement "FUN_00027240(iVar6,"inflateInit_" + unaff_EBX + 0xc);" (call_expression "FUN_00027240(iVar6,"inflateInit_" + unaff_EBX + 0xc)" (identifier "FUN_00027240") (argument_list "(iVar6,"inflateInit_" + unaff_EBX + 0xc)" (( "(") (identifier "iVar6") (, ",") (binary_expression ""inflateInit_" + unaff_EBX + 0xc" (binary_expression ""inflateInit_" + unaff_EBX" (string_literal ""inflateInit_"" (" """) (string_content "inflateInit_") (" """)) (+ "+") (identifier "unaff_EBX")) (+ "+") (number_literal "0xc")) () ")"))) (; ";")) (} "}")) (else_clause "else {\n    piVar3 = __errno_location();\n    FUN_00027240(iVar6,"gss_inquire_context" + unaff_EBX + 0x12,*piVar3);\n    iVar1 = -1;\n  }" (else "else") (compound_statement "{\n    piVar3 = __errno_location();\n    FUN_00027240(iVar6,"gss_inquire_context" + unaff_EBX + 0x12,*piVar3);\n    iVar1 = -1;\n  }" ({ "{") (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" (identifier "piVar3") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "FUN_00027240(iVar6,"gss_inquire_context" + unaff_EBX + 0x12,*piVar3);" (call_expression "FUN_00027240(iVar6,"gss_inquire_context" + unaff_EBX + 0x12,*piVar3)" (identifier "FUN_00027240") (argument_list "(iVar6,"gss_inquire_context" + unaff_EBX + 0x12,*piVar3)" (( "(") (identifier "iVar6") (, ",") (binary_expression ""gss_inquire_context" + unaff_EBX + 0x12" (binary_expression ""gss_inquire_context" + unaff_EBX" (string_literal ""gss_inquire_context"" (" """) (string_content "gss_inquire_context") (" """)) (+ "+") (identifier "unaff_EBX")) (+ "+") (number_literal "0x12")) (, ",") (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) () ")"))) (; ";")) (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" (identifier "iVar1") (= "=") (number_literal "-1")) (; ";")) (} "}")))) (labeled_statement "LAB_00075361:\n  pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);" (statement_identifier "LAB_00075361") (: ":") (expression_statement "pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);" (assignment_expression "pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" (identifier "pSVar2") (= "=") (pointer_expression "*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" (* "*") (cast_expression "(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" (( "(") (type_descriptor "SSL **" (type_identifier "SSL") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_retaddr[param_1 * 4 + 0x70] + 4)" (( "(") (binary_expression "unaff_retaddr[param_1 * 4 + 0x70] + 4" (subscript_expression "unaff_retaddr[param_1 * 4 + 0x70]" (identifier "unaff_retaddr") ([ "[") (binary_expression "param_1 * 4 + 0x70" (binary_expression "param_1 * 4" (identifier "param_1") (* "*") (number_literal "4")) (+ "+") (number_literal "0x70")) (] "]")) (+ "+") (number_literal "4")) () ")"))))) (; ";"))) (if_statement "if (*(char *)(iVar6 + 0x93c) != '\0') {\n    iVar4 = SSL_get_shutdown(pSVar2);\n    if (iVar4 == 2) {\n      pcVar5 = "RTMP_Write" + unaff_EBX;\n    }\n    else if (iVar4 == 3) {\n      pcVar5 = "RTMP_SetBufferMS" + unaff_EBX + 1;\n    }\n    else {\n      if (iVar4 != 1) {\n        pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n        goto LAB_0007537a;\n      }\n      pcVar5 = "pthread_join" + unaff_EBX;\n    }\n    FUN_00027140(iVar6,pcVar5);\n    pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  }" (if "if") (parenthesized_expression "(*(char *)(iVar6 + 0x93c) != '\0')" (( "(") (binary_expression "*(char *)(iVar6 + 0x93c) != '\0'" (pointer_expression "*(char *)(iVar6 + 0x93c)" (* "*") (cast_expression "(char *)(iVar6 + 0x93c)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x93c)" (( "(") (binary_expression "iVar6 + 0x93c" (identifier "iVar6") (+ "+") (number_literal "0x93c")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    iVar4 = SSL_get_shutdown(pSVar2);\n    if (iVar4 == 2) {\n      pcVar5 = "RTMP_Write" + unaff_EBX;\n    }\n    else if (iVar4 == 3) {\n      pcVar5 = "RTMP_SetBufferMS" + unaff_EBX + 1;\n    }\n    else {\n      if (iVar4 != 1) {\n        pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n        goto LAB_0007537a;\n      }\n      pcVar5 = "pthread_join" + unaff_EBX;\n    }\n    FUN_00027140(iVar6,pcVar5);\n    pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n  }" ({ "{") (expression_statement "iVar4 = SSL_get_shutdown(pSVar2);" (assignment_expression "iVar4 = SSL_get_shutdown(pSVar2)" (identifier "iVar4") (= "=") (call_expression "SSL_get_shutdown(pSVar2)" (identifier "SSL_get_shutdown") (argument_list "(pSVar2)" (( "(") (identifier "pSVar2") () ")")))) (; ";")) (if_statement "if (iVar4 == 2) {\n      pcVar5 = "RTMP_Write" + unaff_EBX;\n    }\n    else if (iVar4 == 3) {\n      pcVar5 = "RTMP_SetBufferMS" + unaff_EBX + 1;\n    }\n    else {\n      if (iVar4 != 1) {\n        pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n        goto LAB_0007537a;\n      }\n      pcVar5 = "pthread_join" + unaff_EBX;\n    }" (if "if") (parenthesized_expression "(iVar4 == 2)" (( "(") (binary_expression "iVar4 == 2" (identifier "iVar4") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n      pcVar5 = "RTMP_Write" + unaff_EBX;\n    }" ({ "{") (expression_statement "pcVar5 = "RTMP_Write" + unaff_EBX;" (assignment_expression "pcVar5 = "RTMP_Write" + unaff_EBX" (identifier "pcVar5") (= "=") (binary_expression ""RTMP_Write" + unaff_EBX" (string_literal ""RTMP_Write"" (" """) (string_content "RTMP_Write") (" """)) (+ "+") (identifier "unaff_EBX"))) (; ";")) (} "}")) (else_clause "else if (iVar4 == 3) {\n      pcVar5 = "RTMP_SetBufferMS" + unaff_EBX + 1;\n    }\n    else {\n      if (iVar4 != 1) {\n        pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n        goto LAB_0007537a;\n      }\n      pcVar5 = "pthread_join" + unaff_EBX;\n    }" (else "else") (if_statement "if (iVar4 == 3) {\n      pcVar5 = "RTMP_SetBufferMS" + unaff_EBX + 1;\n    }\n    else {\n      if (iVar4 != 1) {\n        pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n        goto LAB_0007537a;\n      }\n      pcVar5 = "pthread_join" + unaff_EBX;\n    }" (if "if") (parenthesized_expression "(iVar4 == 3)" (( "(") (binary_expression "iVar4 == 3" (identifier "iVar4") (== "==") (number_literal "3")) () ")")) (compound_statement "{\n      pcVar5 = "RTMP_SetBufferMS" + unaff_EBX + 1;\n    }" ({ "{") (expression_statement "pcVar5 = "RTMP_SetBufferMS" + unaff_EBX + 1;" (assignment_expression "pcVar5 = "RTMP_SetBufferMS" + unaff_EBX + 1" (identifier "pcVar5") (= "=") (binary_expression ""RTMP_SetBufferMS" + unaff_EBX + 1" (binary_expression ""RTMP_SetBufferMS" + unaff_EBX" (string_literal ""RTMP_SetBufferMS"" (" """) (string_content "RTMP_SetBufferMS") (" """)) (+ "+") (identifier "unaff_EBX")) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n      if (iVar4 != 1) {\n        pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n        goto LAB_0007537a;\n      }\n      pcVar5 = "pthread_join" + unaff_EBX;\n    }" (else "else") (compound_statement "{\n      if (iVar4 != 1) {\n        pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n        goto LAB_0007537a;\n      }\n      pcVar5 = "pthread_join" + unaff_EBX;\n    }" ({ "{") (if_statement "if (iVar4 != 1) {\n        pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n        goto LAB_0007537a;\n      }" (if "if") (parenthesized_expression "(iVar4 != 1)" (( "(") (binary_expression "iVar4 != 1" (identifier "iVar4") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n        pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);\n        goto LAB_0007537a;\n      }" ({ "{") (expression_statement "pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);" (assignment_expression "pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" (identifier "pSVar2") (= "=") (pointer_expression "*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" (* "*") (cast_expression "(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" (( "(") (type_descriptor "SSL **" (type_identifier "SSL") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_retaddr[param_1 * 4 + 0x70] + 4)" (( "(") (binary_expression "unaff_retaddr[param_1 * 4 + 0x70] + 4" (subscript_expression "unaff_retaddr[param_1 * 4 + 0x70]" (identifier "unaff_retaddr") ([ "[") (binary_expression "param_1 * 4 + 0x70" (binary_expression "param_1 * 4" (identifier "param_1") (* "*") (number_literal "4")) (+ "+") (number_literal "0x70")) (] "]")) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (goto_statement "goto LAB_0007537a;" (goto "goto") (statement_identifier "LAB_0007537a") (; ";")) (} "}"))) (expression_statement "pcVar5 = "pthread_join" + unaff_EBX;" (assignment_expression "pcVar5 = "pthread_join" + unaff_EBX" (identifier "pcVar5") (= "=") (binary_expression ""pthread_join" + unaff_EBX" (string_literal ""pthread_join"" (" """) (string_content "pthread_join") (" """)) (+ "+") (identifier "unaff_EBX"))) (; ";")) (} "}")))))) (expression_statement "FUN_00027140(iVar6,pcVar5);" (call_expression "FUN_00027140(iVar6,pcVar5)" (identifier "FUN_00027140") (argument_list "(iVar6,pcVar5)" (( "(") (identifier "iVar6") (, ",") (identifier "pcVar5") () ")"))) (; ";")) (expression_statement "pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);" (assignment_expression "pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" (identifier "pSVar2") (= "=") (pointer_expression "*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" (* "*") (cast_expression "(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" (( "(") (type_descriptor "SSL **" (type_identifier "SSL") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_retaddr[param_1 * 4 + 0x70] + 4)" (( "(") (binary_expression "unaff_retaddr[param_1 * 4 + 0x70] + 4" (subscript_expression "unaff_retaddr[param_1 * 4 + 0x70]" (identifier "unaff_retaddr") ([ "[") (binary_expression "param_1 * 4 + 0x70" (binary_expression "param_1 * 4" (identifier "param_1") (* "*") (number_literal "4")) (+ "+") (number_literal "0x70")) (] "]")) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (} "}"))) (labeled_statement "LAB_0007537a:\n  SSL_free(pSVar2);" (statement_identifier "LAB_0007537a") (: ":") (expression_statement "SSL_free(pSVar2);" (call_expression "SSL_free(pSVar2)" (identifier "SSL_free") (argument_list "(pSVar2)" (( "(") (identifier "pSVar2") () ")"))) (; ";"))) (expression_statement "*(undefined4 *)(unaff_retaddr[param_1 * 4 + 0x70] + 4) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr[param_1 * 4 + 0x70] + 4) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" (* "*") (cast_expression "(undefined4 *)(unaff_retaddr[param_1 * 4 + 0x70] + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr[param_1 * 4 + 0x70] + 4)" (( "(") (binary_expression "unaff_retaddr[param_1 * 4 + 0x70] + 4" (subscript_expression "unaff_retaddr[param_1 * 4 + 0x70]" (identifier "unaff_retaddr") ([ "[") (binary_expression "param_1 * 4 + 0x70" (binary_expression "param_1 * 4" (identifier "param_1") (* "*") (number_literal "4")) (+ "+") (number_literal "0x70")) (] "]")) (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_00075399:\n  if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0007c1a0();\n  }" (statement_identifier "LAB_00075399") (: ":") (if_statement "if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0007c1a0();\n  }" (if "if") (parenthesized_expression "(local_24 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_24 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_24") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_0007c1a0();\n  }" ({ "{") (expression_statement "FUN_0007c1a0();" (call_expression "FUN_0007c1a0()" (identifier "FUN_0007c1a0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

int function_1(type_1 *conn,int sockindex)

{
  int var_20;
  type_2 *data;
  int var_6;
  type_3 *var_4;
  type_4 var_14;
  char *pcVar4;
  int *piVar5;
  int var_10;
  int var_1;
  char buf [256];
  
  var_20 = *(int *)(var_1 + 0x14);
  data = conn->data;
  var_4 = (type_3 *)(conn->ssl[sockindex].backend)->handle;
  if ((data->set).ftp_ccc == var_2) {
    var_3(var_4);
    var_4 = (type_3 *)(conn->ssl[sockindex].backend)->handle;
  }
  pcVar4 = buf;
  if (var_4 == (type_3 *)0x0) {
    var_6 = 0;
    goto LAB_00075399;
  }
  while( true ) {
    var_6 = var_5(conn->sock[sockindex],-1,-1,10000);
    if (var_6 < 1) break;
    var_7();
    var_6 = var_8((type_3 *)(conn->ssl[sockindex].backend)->handle,pcVar4,0x100);
    var_10 = var_9((type_3 *)(conn->ssl[sockindex].backend)->handle,var_6);
    if (var_10 != 2) {
      if (var_10 < 3) {
        var_6 = 0;
        if (var_10 == 0) goto LAB_00075361;
      }
      else {
        if (var_10 == 3) {
          var_11(data,"SSL_ERROR_WANT_WRITE\n");
          var_6 = 0;
          goto LAB_00075361;
        }
        var_6 = 0;
        if (var_10 == 6) goto LAB_00075361;
      }
      var_14 = var_12();
      piVar5 = var_13();
      var_6 = *piVar5;
      if (var_14 == 0) {
        pcVar4 = var_15(var_10);
      }
      else {
        var_16(var_14,pcVar4,0x100);
      }
      var_17(conn->data,"OpenSSL SSL_read on shutdown: %s, errno %d",pcVar4,var_6);
      var_6 = 0;
      goto LAB_00075361;
    }
    var_11(data,"SSL_ERROR_WANT_READ\n");
  }
  if (var_6 == 0) {
    var_17(data,"SSL shutdown timeout");
    var_6 = 0;
  }
  else {
    piVar5 = var_13();
    var_17(data,"select/poll on SSL socket, errno: %d",*piVar5);
    var_6 = -1;
  }
LAB_00075361:
  var_4 = (type_3 *)(conn->ssl[sockindex].backend)->handle;
  if ((data->set).verbose != false) {
    var_10 = var_18(var_4);
    if (var_10 == 2) {
      pcVar4 = "SSL_get_shutdown() returned SSL_RECEIVED_SHUTDOWN\n";
    }
    else if (var_10 == 3) {
      pcVar4 = "SSL_get_shutdown() returned SSL_SENT_SHUTDOWN|SSL_RECEIVED__SHUTDOWN\n";
    }
    else {
      if (var_10 != 1) {
        var_4 = (type_3 *)(conn->ssl[sockindex].backend)->handle;
        goto LAB_0007537a;
      }
      pcVar4 = "SSL_get_shutdown() returned SSL_SENT_SHUTDOWN\n";
    }
    var_11(data,pcVar4);
    var_4 = (type_3 *)(conn->ssl[sockindex].backend)->handle;
  }
LAB_0007537a:
  var_19(var_4);
  (conn->ssl[sockindex].backend)->handle = (type_3 *)0x0;
LAB_00075399:
  if (var_20 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_21();
  }
  return var_6;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (string_literal (string_content)) right: (identifier)) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))) (number_literal) (number_literal) (number_literal) (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (number_literal))))) (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (number_literal))))) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier)))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (binary_expression left: (string_literal (string_content)) right: (identifier)) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list)))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (binary_expression left: (binary_expression left: (string_literal (string_content)) right: (identifier)) right: (number_literal)) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (binary_expression left: (string_literal (string_content)) right: (identifier)) right: (number_literal)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (binary_expression left: (string_literal (string_content)) right: (identifier)) right: (number_literal)) (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (string_literal (string_content)) right: (identifier))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (string_literal (string_content)) right: (identifier)) right: (number_literal))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (number_literal))))))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (string_literal (string_content)) right: (identifier))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (number_literal))))))))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (number_literal))))) right: (number_literal))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))) (return_statement (identifier)))))

int MASKED(int param_1)

{
  int iVar1;
  SSL *pSVar2;
  ulong e;
  char *buf;
  int *piVar3;
  int iVar4;
  char *pcVar5;
  int unaff_EBX;
  int in_GS_OFFSET;
  int *unaff_retaddr;
  int iVar6;
  char local_124 [256];
  int local_24;
  undefined4 uStack_14;
  
  uStack_14 = 0x752b9;
  entry();
  local_24 = *(int *)(in_GS_OFFSET + 0x14);
  iVar6 = *unaff_retaddr;
  pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);
  if (*(int *)(iVar6 + 0x94c) == 2) {
    SSL_shutdown(pSVar2);
    pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);
  }
  buf = local_124;
  pcVar5 = "curl_multi_assign" + unaff_EBX + 0xc;
  if (pSVar2 == (SSL *)0x0) {
    iVar1 = 0;
    goto LAB_00075399;
  }
  while( true ) {
    iVar1 = FUN_00049010(unaff_retaddr[param_1 + 100],0xffffffff,0xffffffff,10000,iVar6,buf,pcVar5);
    if (iVar1 < 1) break;
    ERR_clear_error();
    iVar1 = SSL_read(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),buf,0x100);
    iVar4 = SSL_get_error(*(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4),iVar1);
    if (iVar4 != 2) {
      if (iVar4 < 3) {
        iVar1 = 0;
        if (iVar4 == 0) goto LAB_00075361;
      }
      else {
        if (iVar4 == 3) {
          FUN_00027140(iVar6,"inflateEnd" + unaff_EBX + 1);
          iVar1 = 0;
          goto LAB_00075361;
        }
        iVar1 = 0;
        if (iVar4 == 6) goto LAB_00075361;
      }
      e = ERR_get_error();
      piVar3 = __errno_location();
      iVar1 = *piVar3;
      if (e == 0) {
        buf = (char *)FUN_00074430();
      }
      else {
        ERR_error_string_n(e,buf,0x100);
      }
      FUN_00027240(*unaff_retaddr,"gss_display_status" + unaff_EBX + 6,buf,iVar1);
      iVar1 = 0;
      goto LAB_00075361;
    }
    FUN_00027140(iVar6,pcVar5);
  }
  if (iVar1 == 0) {
    FUN_00027240(iVar6,"inflateInit_" + unaff_EBX + 0xc);
  }
  else {
    piVar3 = __errno_location();
    FUN_00027240(iVar6,"gss_inquire_context" + unaff_EBX + 0x12,*piVar3);
    iVar1 = -1;
  }
LAB_00075361:
  pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);
  if (*(char *)(iVar6 + 0x93c) != '\0') {
    iVar4 = SSL_get_shutdown(pSVar2);
    if (iVar4 == 2) {
      pcVar5 = "RTMP_Write" + unaff_EBX;
    }
    else if (iVar4 == 3) {
      pcVar5 = "RTMP_SetBufferMS" + unaff_EBX + 1;
    }
    else {
      if (iVar4 != 1) {
        pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);
        goto LAB_0007537a;
      }
      pcVar5 = "pthread_join" + unaff_EBX;
    }
    FUN_00027140(iVar6,pcVar5);
    pSVar2 = *(SSL **)(unaff_retaddr[param_1 * 4 + 0x70] + 4);
  }
LAB_0007537a:
  SSL_free(pSVar2);
  *(undefined4 *)(unaff_retaddr[param_1 * 4 + 0x70] + 4) = 0;
LAB_00075399:
  if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0007c1a0();
  }
  return iVar1;
}

