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

CURLcode __regparm3 smtp_perform_authentication(connectdata *conn)

{
  saslstate *sasl;
  _Bool _Var1;
  CURLcode CVar2;
  int in_GS_OFFSET;
  saslprogress progress;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  if ((conn->proto).smtpc.auth_supported != false) {
    sasl = &(conn->proto).imapc.sasl.state;
    _Var1 = Curl_sasl_can_authenticate((SASL *)sasl,conn);
    if (_Var1) {
      CVar2 = Curl_sasl_start((SASL *)sasl,conn,false,&progress);
      if (CVar2 == CURLE_OK) {
        if (progress == SASL_INPROGRESS) {
          (conn->proto).sshc.readdir_totalLen = 6;
        }
        else {
          Curl_infof(conn->data,"No known authentication mechanisms supported!\n");
          CVar2 = CURLE_LOGIN_DENIED;
        }
      }
      goto LAB_00057024;
    }
  }
  (conn->proto).ftpc.entrypath = (char *)0x0;
  CVar2 = CURLE_OK;
LAB_00057024:
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return CVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



int FUN_00056ff0(void)

{
  char cVar1;
  int iVar2;
  int unaff_EBX;
  undefined4 *extraout_ESI;
  int in_GS_OFFSET;
  int local_18;
  int local_14;
  undefined4 uStack_10;
  
  uStack_10 = 0x56ffa;
  entry();
  local_14 = *(int *)(in_GS_OFFSET + 0x14);
  if (*(char *)((int)extraout_ESI + 0x502) != '\0') {
    cVar1 = FUN_0005f210(extraout_ESI + 0x13a,extraout_ESI);
    if (cVar1 != '\0') {
      iVar2 = FUN_0005f230(extraout_ESI + 0x13a,extraout_ESI,0,&local_18);
      if (iVar2 == 0) {
        if (local_18 == 1) {
          extraout_ESI[0x137] = 6;
        }
        else {
          FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);
          iVar2 = 0x43;
        }
      }
      goto LAB_00057024;
    }
  }
  extraout_ESI[0x137] = 0;
  iVar2 = 0;
LAB_00057024:
  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0007c1a0();
}


PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00019ed0
ADD EBX,0x597e6
SUB ESP,0x10
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xc],EAX
XOR EAX,EAX
CMP byte ptr [ESI + 0x502],0x0
JNZ 0x00057040
MOV dword ptr [ESI + 0x4dc],0x0
XOR EAX,EAX
MOV EDX,dword ptr [ESP + 0xc]
XOR EDX,dword ptr GS:[0x14]
JNZ 0x0005709b
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0x8
LEA EDI,[ESI + 0x4e8]
PUSH ESI
PUSH EDI
CALL 0x0005f210
ADD ESP,0x10
TEST AL,AL
JZ 0x00057018
LEA EAX,[ESP + 0x8]
PUSH EAX
PUSH 0x0
PUSH ESI
PUSH EDI
CALL 0x0005f230
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00057024
CMP dword ptr [ESP + 0x8],0x1
JNZ 0x00057080
MOV dword ptr [ESI + 0x4dc],0x6
JMP 0x00057024
SUB ESP,0x8
LEA EAX,[EBX + 0xfffd4b30]
PUSH EAX
PUSH dword ptr [ESI]
CALL 0x00027140
ADD ESP,0x10
MOV EAX,0x43
JMP 0x00057024
CALL 0x0007c1a0
(translation_unit "int FUN_00056ff0(void)\n\n{\n  char cVar1;\n  int iVar2;\n  int unaff_EBX;\n  undefined4 *extraout_ESI;\n  int in_GS_OFFSET;\n  int local_18;\n  int local_14;\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x56ffa;\n  entry();\n  local_14 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(char *)((int)extraout_ESI + 0x502) != '\0') {\n    cVar1 = FUN_0005f210(extraout_ESI + 0x13a,extraout_ESI);\n    if (cVar1 != '\0') {\n      iVar2 = FUN_0005f230(extraout_ESI + 0x13a,extraout_ESI,0,&local_18);\n      if (iVar2 == 0) {\n        if (local_18 == 1) {\n          extraout_ESI[0x137] = 6;\n        }\n        else {\n          FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);\n          iVar2 = 0x43;\n        }\n      }\n      goto LAB_00057024;\n    }\n  }\n  extraout_ESI[0x137] = 0;\n  iVar2 = 0;\nLAB_00057024:\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0007c1a0();\n}\n\n" (function_definition "int FUN_00056ff0(void)\n\n{\n  char cVar1;\n  int iVar2;\n  int unaff_EBX;\n  undefined4 *extraout_ESI;\n  int in_GS_OFFSET;\n  int local_18;\n  int local_14;\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x56ffa;\n  entry();\n  local_14 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(char *)((int)extraout_ESI + 0x502) != '\0') {\n    cVar1 = FUN_0005f210(extraout_ESI + 0x13a,extraout_ESI);\n    if (cVar1 != '\0') {\n      iVar2 = FUN_0005f230(extraout_ESI + 0x13a,extraout_ESI,0,&local_18);\n      if (iVar2 == 0) {\n        if (local_18 == 1) {\n          extraout_ESI[0x137] = 6;\n        }\n        else {\n          FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);\n          iVar2 = 0x43;\n        }\n      }\n      goto LAB_00057024;\n    }\n  }\n  extraout_ESI[0x137] = 0;\n  iVar2 = 0;\nLAB_00057024:\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0007c1a0();\n}" primitive_type (function_declarator "FUN_00056ff0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  int unaff_EBX;\n  undefined4 *extraout_ESI;\n  int in_GS_OFFSET;\n  int local_18;\n  int local_14;\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x56ffa;\n  entry();\n  local_14 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(char *)((int)extraout_ESI + 0x502) != '\0') {\n    cVar1 = FUN_0005f210(extraout_ESI + 0x13a,extraout_ESI);\n    if (cVar1 != '\0') {\n      iVar2 = FUN_0005f230(extraout_ESI + 0x13a,extraout_ESI,0,&local_18);\n      if (iVar2 == 0) {\n        if (local_18 == 1) {\n          extraout_ESI[0x137] = 6;\n        }\n        else {\n          FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);\n          iVar2 = 0x43;\n        }\n      }\n      goto LAB_00057024;\n    }\n  }\n  extraout_ESI[0x137] = 0;\n  iVar2 = 0;\nLAB_00057024:\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0007c1a0();\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (declaration "undefined4 *extraout_ESI;" type_identifier (pointer_declarator "*extraout_ESI" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_18;" primitive_type identifier ;) (declaration "int local_14;" primitive_type identifier ;) (declaration "undefined4 uStack_10;" type_identifier identifier ;) (expression_statement "uStack_10 = 0x56ffa;" (assignment_expression "uStack_10 = 0x56ffa" identifier = number_literal) ;) (expression_statement "entry();" (call_expression "entry()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_14 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_14 = *(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) ))))) ;) (if_statement "if (*(char *)((int)extraout_ESI + 0x502) != '\0') {\n    cVar1 = FUN_0005f210(extraout_ESI + 0x13a,extraout_ESI);\n    if (cVar1 != '\0') {\n      iVar2 = FUN_0005f230(extraout_ESI + 0x13a,extraout_ESI,0,&local_18);\n      if (iVar2 == 0) {\n        if (local_18 == 1) {\n          extraout_ESI[0x137] = 6;\n        }\n        else {\n          FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);\n          iVar2 = 0x43;\n        }\n      }\n      goto LAB_00057024;\n    }\n  }" if (parenthesized_expression "(*(char *)((int)extraout_ESI + 0x502) != '\0')" ( (binary_expression "*(char *)((int)extraout_ESI + 0x502) != '\0'" (pointer_expression "*(char *)((int)extraout_ESI + 0x502)" * (cast_expression "(char *)((int)extraout_ESI + 0x502)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)extraout_ESI + 0x502)" ( (binary_expression "(int)extraout_ESI + 0x502" (cast_expression "(int)extraout_ESI" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    cVar1 = FUN_0005f210(extraout_ESI + 0x13a,extraout_ESI);\n    if (cVar1 != '\0') {\n      iVar2 = FUN_0005f230(extraout_ESI + 0x13a,extraout_ESI,0,&local_18);\n      if (iVar2 == 0) {\n        if (local_18 == 1) {\n          extraout_ESI[0x137] = 6;\n        }\n        else {\n          FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);\n          iVar2 = 0x43;\n        }\n      }\n      goto LAB_00057024;\n    }\n  }" { (expression_statement "cVar1 = FUN_0005f210(extraout_ESI + 0x13a,extraout_ESI);" (assignment_expression "cVar1 = FUN_0005f210(extraout_ESI + 0x13a,extraout_ESI)" identifier = (call_expression "FUN_0005f210(extraout_ESI + 0x13a,extraout_ESI)" identifier (argument_list "(extraout_ESI + 0x13a,extraout_ESI)" ( (binary_expression "extraout_ESI + 0x13a" identifier + number_literal) , identifier )))) ;) (if_statement "if (cVar1 != '\0') {\n      iVar2 = FUN_0005f230(extraout_ESI + 0x13a,extraout_ESI,0,&local_18);\n      if (iVar2 == 0) {\n        if (local_18 == 1) {\n          extraout_ESI[0x137] = 6;\n        }\n        else {\n          FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);\n          iVar2 = 0x43;\n        }\n      }\n      goto LAB_00057024;\n    }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      iVar2 = FUN_0005f230(extraout_ESI + 0x13a,extraout_ESI,0,&local_18);\n      if (iVar2 == 0) {\n        if (local_18 == 1) {\n          extraout_ESI[0x137] = 6;\n        }\n        else {\n          FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);\n          iVar2 = 0x43;\n        }\n      }\n      goto LAB_00057024;\n    }" { (expression_statement "iVar2 = FUN_0005f230(extraout_ESI + 0x13a,extraout_ESI,0,&local_18);" (assignment_expression "iVar2 = FUN_0005f230(extraout_ESI + 0x13a,extraout_ESI,0,&local_18)" identifier = (call_expression "FUN_0005f230(extraout_ESI + 0x13a,extraout_ESI,0,&local_18)" identifier (argument_list "(extraout_ESI + 0x13a,extraout_ESI,0,&local_18)" ( (binary_expression "extraout_ESI + 0x13a" identifier + number_literal) , identifier , number_literal , (pointer_expression "&local_18" & identifier) )))) ;) (if_statement "if (iVar2 == 0) {\n        if (local_18 == 1) {\n          extraout_ESI[0x137] = 6;\n        }\n        else {\n          FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);\n          iVar2 = 0x43;\n        }\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        if (local_18 == 1) {\n          extraout_ESI[0x137] = 6;\n        }\n        else {\n          FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);\n          iVar2 = 0x43;\n        }\n      }" { (if_statement "if (local_18 == 1) {\n          extraout_ESI[0x137] = 6;\n        }\n        else {\n          FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);\n          iVar2 = 0x43;\n        }" if (parenthesized_expression "(local_18 == 1)" ( (binary_expression "local_18 == 1" identifier == number_literal) )) (compound_statement "{\n          extraout_ESI[0x137] = 6;\n        }" { (expression_statement "extraout_ESI[0x137] = 6;" (assignment_expression "extraout_ESI[0x137] = 6" (subscript_expression "extraout_ESI[0x137]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n          FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);\n          iVar2 = 0x43;\n        }" else (compound_statement "{\n          FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);\n          iVar2 = 0x43;\n        }" { (expression_statement "FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);" (call_expression "FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316)" identifier (argument_list "(*extraout_ESI,unaff_EBX + 0x2e316)" ( (pointer_expression "*extraout_ESI" * identifier) , (binary_expression "unaff_EBX + 0x2e316" identifier + number_literal) ))) ;) (expression_statement "iVar2 = 0x43;" (assignment_expression "iVar2 = 0x43" identifier = number_literal) ;) }))) })) (goto_statement "goto LAB_00057024;" goto statement_identifier ;) })) })) (expression_statement "extraout_ESI[0x137] = 0;" (assignment_expression "extraout_ESI[0x137] = 0" (subscript_expression "extraout_ESI[0x137]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00057024:\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }" statement_identifier : (if_statement "if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }" if (parenthesized_expression "(local_14 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_14 == *(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    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) }))) comment (expression_statement "FUN_0007c1a0();" (call_expression "FUN_0007c1a0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nCURLcode __regparm3 smtp_perform_authentication(connectdata *conn)\n\n{\n  saslstate *sasl;\n  _Bool _Var1;\n  CURLcode CVar2;\n  int in_GS_OFFSET;\n  saslprogress progress;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((conn->proto).smtpc.auth_supported != false) {\n    sasl = &(conn->proto).imapc.sasl.state;\n    _Var1 = Curl_sasl_can_authenticate((SASL *)sasl,conn);\n    if (_Var1) {\n      CVar2 = Curl_sasl_start((SASL *)sasl,conn,false,&progress);\n      if (CVar2 == CURLE_OK) {\n        if (progress == SASL_INPROGRESS) {\n          (conn->proto).sshc.readdir_totalLen = 6;\n        }\n        else {\n          Curl_infof(conn->data,"No known authentication mechanisms supported!\n");\n          CVar2 = CURLE_LOGIN_DENIED;\n        }\n      }\n      goto LAB_00057024;\n    }\n  }\n  (conn->proto).ftpc.entrypath = (char *)0x0;\n  CVar2 = CURLE_OK;\nLAB_00057024:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return CVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "CURLcode __regparm3 smtp_perform_authentication(connectdata *conn)\n\n{\n  saslstate *sasl;\n  _Bool _Var1;\n  CURLcode CVar2;\n  int in_GS_OFFSET;\n  saslprogress progress;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((conn->proto).smtpc.auth_supported != false) {\n    sasl = &(conn->proto).imapc.sasl.state;\n    _Var1 = Curl_sasl_can_authenticate((SASL *)sasl,conn);\n    if (_Var1) {\n      CVar2 = Curl_sasl_start((SASL *)sasl,conn,false,&progress);\n      if (CVar2 == CURLE_OK) {\n        if (progress == SASL_INPROGRESS) {\n          (conn->proto).sshc.readdir_totalLen = 6;\n        }\n        else {\n          Curl_infof(conn->data,"No known authentication mechanisms supported!\n");\n          CVar2 = CURLE_LOGIN_DENIED;\n        }\n      }\n      goto LAB_00057024;\n    }\n  }\n  (conn->proto).ftpc.entrypath = (char *)0x0;\n  CVar2 = CURLE_OK;\nLAB_00057024:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return CVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "smtp_perform_authentication(connectdata *conn)" identifier (parameter_list "(connectdata *conn)" ( (parameter_declaration "connectdata *conn" type_identifier (pointer_declarator "*conn" * identifier)) ))) (compound_statement "{\n  saslstate *sasl;\n  _Bool _Var1;\n  CURLcode CVar2;\n  int in_GS_OFFSET;\n  saslprogress progress;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((conn->proto).smtpc.auth_supported != false) {\n    sasl = &(conn->proto).imapc.sasl.state;\n    _Var1 = Curl_sasl_can_authenticate((SASL *)sasl,conn);\n    if (_Var1) {\n      CVar2 = Curl_sasl_start((SASL *)sasl,conn,false,&progress);\n      if (CVar2 == CURLE_OK) {\n        if (progress == SASL_INPROGRESS) {\n          (conn->proto).sshc.readdir_totalLen = 6;\n        }\n        else {\n          Curl_infof(conn->data,"No known authentication mechanisms supported!\n");\n          CVar2 = CURLE_LOGIN_DENIED;\n        }\n      }\n      goto LAB_00057024;\n    }\n  }\n  (conn->proto).ftpc.entrypath = (char *)0x0;\n  CVar2 = CURLE_OK;\nLAB_00057024:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return CVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "saslstate *sasl;" type_identifier (pointer_declarator "*sasl" * identifier) ;) (declaration "_Bool _Var1;" type_identifier identifier ;) (declaration "CURLcode CVar2;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "saslprogress progress;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(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) ))))) ;) (if_statement "if ((conn->proto).smtpc.auth_supported != false) {\n    sasl = &(conn->proto).imapc.sasl.state;\n    _Var1 = Curl_sasl_can_authenticate((SASL *)sasl,conn);\n    if (_Var1) {\n      CVar2 = Curl_sasl_start((SASL *)sasl,conn,false,&progress);\n      if (CVar2 == CURLE_OK) {\n        if (progress == SASL_INPROGRESS) {\n          (conn->proto).sshc.readdir_totalLen = 6;\n        }\n        else {\n          Curl_infof(conn->data,"No known authentication mechanisms supported!\n");\n          CVar2 = CURLE_LOGIN_DENIED;\n        }\n      }\n      goto LAB_00057024;\n    }\n  }" if (parenthesized_expression "((conn->proto).smtpc.auth_supported != false)" ( (binary_expression "(conn->proto).smtpc.auth_supported != false" (field_expression "(conn->proto).smtpc.auth_supported" (field_expression "(conn->proto).smtpc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) != false) )) (compound_statement "{\n    sasl = &(conn->proto).imapc.sasl.state;\n    _Var1 = Curl_sasl_can_authenticate((SASL *)sasl,conn);\n    if (_Var1) {\n      CVar2 = Curl_sasl_start((SASL *)sasl,conn,false,&progress);\n      if (CVar2 == CURLE_OK) {\n        if (progress == SASL_INPROGRESS) {\n          (conn->proto).sshc.readdir_totalLen = 6;\n        }\n        else {\n          Curl_infof(conn->data,"No known authentication mechanisms supported!\n");\n          CVar2 = CURLE_LOGIN_DENIED;\n        }\n      }\n      goto LAB_00057024;\n    }\n  }" { (expression_statement "sasl = &(conn->proto).imapc.sasl.state;" (assignment_expression "sasl = &(conn->proto).imapc.sasl.state" identifier = (pointer_expression "&(conn->proto).imapc.sasl.state" & (field_expression "(conn->proto).imapc.sasl.state" (field_expression "(conn->proto).imapc.sasl" (field_expression "(conn->proto).imapc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier))) ;) (expression_statement "_Var1 = Curl_sasl_can_authenticate((SASL *)sasl,conn);" (assignment_expression "_Var1 = Curl_sasl_can_authenticate((SASL *)sasl,conn)" identifier = (call_expression "Curl_sasl_can_authenticate((SASL *)sasl,conn)" identifier (argument_list "((SASL *)sasl,conn)" ( (cast_expression "(SASL *)sasl" ( (type_descriptor "SASL *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) ;) (if_statement "if (_Var1) {\n      CVar2 = Curl_sasl_start((SASL *)sasl,conn,false,&progress);\n      if (CVar2 == CURLE_OK) {\n        if (progress == SASL_INPROGRESS) {\n          (conn->proto).sshc.readdir_totalLen = 6;\n        }\n        else {\n          Curl_infof(conn->data,"No known authentication mechanisms supported!\n");\n          CVar2 = CURLE_LOGIN_DENIED;\n        }\n      }\n      goto LAB_00057024;\n    }" if (parenthesized_expression "(_Var1)" ( identifier )) (compound_statement "{\n      CVar2 = Curl_sasl_start((SASL *)sasl,conn,false,&progress);\n      if (CVar2 == CURLE_OK) {\n        if (progress == SASL_INPROGRESS) {\n          (conn->proto).sshc.readdir_totalLen = 6;\n        }\n        else {\n          Curl_infof(conn->data,"No known authentication mechanisms supported!\n");\n          CVar2 = CURLE_LOGIN_DENIED;\n        }\n      }\n      goto LAB_00057024;\n    }" { (expression_statement "CVar2 = Curl_sasl_start((SASL *)sasl,conn,false,&progress);" (assignment_expression "CVar2 = Curl_sasl_start((SASL *)sasl,conn,false,&progress)" identifier = (call_expression "Curl_sasl_start((SASL *)sasl,conn,false,&progress)" identifier (argument_list "((SASL *)sasl,conn,false,&progress)" ( (cast_expression "(SASL *)sasl" ( (type_descriptor "SASL *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , false , (pointer_expression "&progress" & identifier) )))) ;) (if_statement "if (CVar2 == CURLE_OK) {\n        if (progress == SASL_INPROGRESS) {\n          (conn->proto).sshc.readdir_totalLen = 6;\n        }\n        else {\n          Curl_infof(conn->data,"No known authentication mechanisms supported!\n");\n          CVar2 = CURLE_LOGIN_DENIED;\n        }\n      }" if (parenthesized_expression "(CVar2 == CURLE_OK)" ( (binary_expression "CVar2 == CURLE_OK" identifier == identifier) )) (compound_statement "{\n        if (progress == SASL_INPROGRESS) {\n          (conn->proto).sshc.readdir_totalLen = 6;\n        }\n        else {\n          Curl_infof(conn->data,"No known authentication mechanisms supported!\n");\n          CVar2 = CURLE_LOGIN_DENIED;\n        }\n      }" { (if_statement "if (progress == SASL_INPROGRESS) {\n          (conn->proto).sshc.readdir_totalLen = 6;\n        }\n        else {\n          Curl_infof(conn->data,"No known authentication mechanisms supported!\n");\n          CVar2 = CURLE_LOGIN_DENIED;\n        }" if (parenthesized_expression "(progress == SASL_INPROGRESS)" ( (binary_expression "progress == SASL_INPROGRESS" identifier == identifier) )) (compound_statement "{\n          (conn->proto).sshc.readdir_totalLen = 6;\n        }" { (expression_statement "(conn->proto).sshc.readdir_totalLen = 6;" (assignment_expression "(conn->proto).sshc.readdir_totalLen = 6" (field_expression "(conn->proto).sshc.readdir_totalLen" (field_expression "(conn->proto).sshc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) = number_literal) ;) }) (else_clause "else {\n          Curl_infof(conn->data,"No known authentication mechanisms supported!\n");\n          CVar2 = CURLE_LOGIN_DENIED;\n        }" else (compound_statement "{\n          Curl_infof(conn->data,"No known authentication mechanisms supported!\n");\n          CVar2 = CURLE_LOGIN_DENIED;\n        }" { (expression_statement "Curl_infof(conn->data,"No known authentication mechanisms supported!\n");" (call_expression "Curl_infof(conn->data,"No known authentication mechanisms supported!\n")" identifier (argument_list "(conn->data,"No known authentication mechanisms supported!\n")" ( (field_expression "conn->data" identifier -> field_identifier) , (string_literal ""No known authentication mechanisms supported!\n"" " string_content escape_sequence ") ))) ;) (expression_statement "CVar2 = CURLE_LOGIN_DENIED;" (assignment_expression "CVar2 = CURLE_LOGIN_DENIED" identifier = identifier) ;) }))) })) (goto_statement "goto LAB_00057024;" goto statement_identifier ;) })) })) (expression_statement "(conn->proto).ftpc.entrypath = (char *)0x0;" (assignment_expression "(conn->proto).ftpc.entrypath = (char *)0x0" (field_expression "(conn->proto).ftpc.entrypath" (field_expression "(conn->proto).ftpc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "CVar2 = CURLE_OK;" (assignment_expression "CVar2 = CURLE_OK" identifier = identifier) ;) (labeled_statement "LAB_00057024:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return CVar2;\n  }" statement_identifier : (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return CVar2;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(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    return CVar2;\n  }" { (return_statement "return CVar2;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int FUN_00056ff0(void)\n\n{\n  char cVar1;\n  int iVar2;\n  int unaff_EBX;\n  undefined4 *extraout_ESI;\n  int in_GS_OFFSET;\n  int local_18;\n  int local_14;\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x56ffa;\n  entry();\n  local_14 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(char *)((int)extraout_ESI + 0x502) != '\0') {\n    cVar1 = FUN_0005f210(extraout_ESI + 0x13a,extraout_ESI);\n    if (cVar1 != '\0') {\n      iVar2 = FUN_0005f230(extraout_ESI + 0x13a,extraout_ESI,0,&local_18);\n      if (iVar2 == 0) {\n        if (local_18 == 1) {\n          extraout_ESI[0x137] = 6;\n        }\n        else {\n          FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);\n          iVar2 = 0x43;\n        }\n      }\n      goto LAB_00057024;\n    }\n  }\n  extraout_ESI[0x137] = 0;\n  iVar2 = 0;\nLAB_00057024:\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    \n  FUN_0007c1a0();\n}\n\n" (function_definition "int FUN_00056ff0(void)\n\n{\n  char cVar1;\n  int iVar2;\n  int unaff_EBX;\n  undefined4 *extraout_ESI;\n  int in_GS_OFFSET;\n  int local_18;\n  int local_14;\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x56ffa;\n  entry();\n  local_14 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(char *)((int)extraout_ESI + 0x502) != '\0') {\n    cVar1 = FUN_0005f210(extraout_ESI + 0x13a,extraout_ESI);\n    if (cVar1 != '\0') {\n      iVar2 = FUN_0005f230(extraout_ESI + 0x13a,extraout_ESI,0,&local_18);\n      if (iVar2 == 0) {\n        if (local_18 == 1) {\n          extraout_ESI[0x137] = 6;\n        }\n        else {\n          FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);\n          iVar2 = 0x43;\n        }\n      }\n      goto LAB_00057024;\n    }\n  }\n  extraout_ESI[0x137] = 0;\n  iVar2 = 0;\nLAB_00057024:\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    \n  FUN_0007c1a0();\n}" primitive_type (function_declarator "FUN_00056ff0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  int unaff_EBX;\n  undefined4 *extraout_ESI;\n  int in_GS_OFFSET;\n  int local_18;\n  int local_14;\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x56ffa;\n  entry();\n  local_14 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(char *)((int)extraout_ESI + 0x502) != '\0') {\n    cVar1 = FUN_0005f210(extraout_ESI + 0x13a,extraout_ESI);\n    if (cVar1 != '\0') {\n      iVar2 = FUN_0005f230(extraout_ESI + 0x13a,extraout_ESI,0,&local_18);\n      if (iVar2 == 0) {\n        if (local_18 == 1) {\n          extraout_ESI[0x137] = 6;\n        }\n        else {\n          FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);\n          iVar2 = 0x43;\n        }\n      }\n      goto LAB_00057024;\n    }\n  }\n  extraout_ESI[0x137] = 0;\n  iVar2 = 0;\nLAB_00057024:\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    \n  FUN_0007c1a0();\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (declaration "undefined4 *extraout_ESI;" type_identifier (pointer_declarator "*extraout_ESI" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_18;" primitive_type identifier ;) (declaration "int local_14;" primitive_type identifier ;) (declaration "undefined4 uStack_10;" type_identifier identifier ;) (expression_statement "uStack_10 = 0x56ffa;" (assignment_expression "uStack_10 = 0x56ffa" identifier = number_literal) ;) (expression_statement "entry();" (call_expression "entry()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_14 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_14 = *(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) ))))) ;) (if_statement "if (*(char *)((int)extraout_ESI + 0x502) != '\0') {\n    cVar1 = FUN_0005f210(extraout_ESI + 0x13a,extraout_ESI);\n    if (cVar1 != '\0') {\n      iVar2 = FUN_0005f230(extraout_ESI + 0x13a,extraout_ESI,0,&local_18);\n      if (iVar2 == 0) {\n        if (local_18 == 1) {\n          extraout_ESI[0x137] = 6;\n        }\n        else {\n          FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);\n          iVar2 = 0x43;\n        }\n      }\n      goto LAB_00057024;\n    }\n  }" if (parenthesized_expression "(*(char *)((int)extraout_ESI + 0x502) != '\0')" ( (binary_expression "*(char *)((int)extraout_ESI + 0x502) != '\0'" (pointer_expression "*(char *)((int)extraout_ESI + 0x502)" * (cast_expression "(char *)((int)extraout_ESI + 0x502)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)extraout_ESI + 0x502)" ( (binary_expression "(int)extraout_ESI + 0x502" (cast_expression "(int)extraout_ESI" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    cVar1 = FUN_0005f210(extraout_ESI + 0x13a,extraout_ESI);\n    if (cVar1 != '\0') {\n      iVar2 = FUN_0005f230(extraout_ESI + 0x13a,extraout_ESI,0,&local_18);\n      if (iVar2 == 0) {\n        if (local_18 == 1) {\n          extraout_ESI[0x137] = 6;\n        }\n        else {\n          FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);\n          iVar2 = 0x43;\n        }\n      }\n      goto LAB_00057024;\n    }\n  }" { (expression_statement "cVar1 = FUN_0005f210(extraout_ESI + 0x13a,extraout_ESI);" (assignment_expression "cVar1 = FUN_0005f210(extraout_ESI + 0x13a,extraout_ESI)" identifier = (call_expression "FUN_0005f210(extraout_ESI + 0x13a,extraout_ESI)" identifier (argument_list "(extraout_ESI + 0x13a,extraout_ESI)" ( (binary_expression "extraout_ESI + 0x13a" identifier + number_literal) , identifier )))) ;) (if_statement "if (cVar1 != '\0') {\n      iVar2 = FUN_0005f230(extraout_ESI + 0x13a,extraout_ESI,0,&local_18);\n      if (iVar2 == 0) {\n        if (local_18 == 1) {\n          extraout_ESI[0x137] = 6;\n        }\n        else {\n          FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);\n          iVar2 = 0x43;\n        }\n      }\n      goto LAB_00057024;\n    }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      iVar2 = FUN_0005f230(extraout_ESI + 0x13a,extraout_ESI,0,&local_18);\n      if (iVar2 == 0) {\n        if (local_18 == 1) {\n          extraout_ESI[0x137] = 6;\n        }\n        else {\n          FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);\n          iVar2 = 0x43;\n        }\n      }\n      goto LAB_00057024;\n    }" { (expression_statement "iVar2 = FUN_0005f230(extraout_ESI + 0x13a,extraout_ESI,0,&local_18);" (assignment_expression "iVar2 = FUN_0005f230(extraout_ESI + 0x13a,extraout_ESI,0,&local_18)" identifier = (call_expression "FUN_0005f230(extraout_ESI + 0x13a,extraout_ESI,0,&local_18)" identifier (argument_list "(extraout_ESI + 0x13a,extraout_ESI,0,&local_18)" ( (binary_expression "extraout_ESI + 0x13a" identifier + number_literal) , identifier , number_literal , (pointer_expression "&local_18" & identifier) )))) ;) (if_statement "if (iVar2 == 0) {\n        if (local_18 == 1) {\n          extraout_ESI[0x137] = 6;\n        }\n        else {\n          FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);\n          iVar2 = 0x43;\n        }\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        if (local_18 == 1) {\n          extraout_ESI[0x137] = 6;\n        }\n        else {\n          FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);\n          iVar2 = 0x43;\n        }\n      }" { (if_statement "if (local_18 == 1) {\n          extraout_ESI[0x137] = 6;\n        }\n        else {\n          FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);\n          iVar2 = 0x43;\n        }" if (parenthesized_expression "(local_18 == 1)" ( (binary_expression "local_18 == 1" identifier == number_literal) )) (compound_statement "{\n          extraout_ESI[0x137] = 6;\n        }" { (expression_statement "extraout_ESI[0x137] = 6;" (assignment_expression "extraout_ESI[0x137] = 6" (subscript_expression "extraout_ESI[0x137]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n          FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);\n          iVar2 = 0x43;\n        }" else (compound_statement "{\n          FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);\n          iVar2 = 0x43;\n        }" { (expression_statement "FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);" (call_expression "FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316)" identifier (argument_list "(*extraout_ESI,unaff_EBX + 0x2e316)" ( (pointer_expression "*extraout_ESI" * identifier) , (binary_expression "unaff_EBX + 0x2e316" identifier + number_literal) ))) ;) (expression_statement "iVar2 = 0x43;" (assignment_expression "iVar2 = 0x43" identifier = number_literal) ;) }))) })) (goto_statement "goto LAB_00057024;" goto statement_identifier ;) })) })) (expression_statement "extraout_ESI[0x137] = 0;" (assignment_expression "extraout_ESI[0x137] = 0" (subscript_expression "extraout_ESI[0x137]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00057024:\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }" statement_identifier : (if_statement "if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }" if (parenthesized_expression "(local_14 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_14 == *(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    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) }))) (expression_statement "FUN_0007c1a0();" (call_expression "FUN_0007c1a0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , LIT , (pointer_expression & 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 (subscript_expression IDENT [ LIT ]) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) })) (goto_statement goto statement_identifier ;) })) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = 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 { (return_statement return IDENT ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "int FUN_00056ff0(void)\n\n{\n  char cVar1;\n  int iVar2;\n  int unaff_EBX;\n  undefined4 *extraout_ESI;\n  int in_GS_OFFSET;\n  int local_18;\n  int local_14;\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x56ffa;\n  entry();\n  local_14 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(char *)((int)extraout_ESI + 0x502) != '\0') {\n    cVar1 = FUN_0005f210(extraout_ESI + 0x13a,extraout_ESI);\n    if (cVar1 != '\0') {\n      iVar2 = FUN_0005f230(extraout_ESI + 0x13a,extraout_ESI,0,&local_18);\n      if (iVar2 == 0) {\n        if (local_18 == 1) {\n          extraout_ESI[0x137] = 6;\n        }\n        else {\n          FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);\n          iVar2 = 0x43;\n        }\n      }\n      goto LAB_00057024;\n    }\n  }\n  extraout_ESI[0x137] = 0;\n  iVar2 = 0;\nLAB_00057024:\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    \n  FUN_0007c1a0();\n}" (primitive_type "int") (function_declarator "FUN_00056ff0(void)" (identifier "FUN_00056ff0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  int unaff_EBX;\n  undefined4 *extraout_ESI;\n  int in_GS_OFFSET;\n  int local_18;\n  int local_14;\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x56ffa;\n  entry();\n  local_14 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(char *)((int)extraout_ESI + 0x502) != '\0') {\n    cVar1 = FUN_0005f210(extraout_ESI + 0x13a,extraout_ESI);\n    if (cVar1 != '\0') {\n      iVar2 = FUN_0005f230(extraout_ESI + 0x13a,extraout_ESI,0,&local_18);\n      if (iVar2 == 0) {\n        if (local_18 == 1) {\n          extraout_ESI[0x137] = 6;\n        }\n        else {\n          FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);\n          iVar2 = 0x43;\n        }\n      }\n      goto LAB_00057024;\n    }\n  }\n  extraout_ESI[0x137] = 0;\n  iVar2 = 0;\nLAB_00057024:\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    \n  FUN_0007c1a0();\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int unaff_EBX;" (primitive_type "int") (identifier "unaff_EBX") (; ";")) (declaration "undefined4 *extraout_ESI;" (type_identifier "undefined4") (pointer_declarator "*extraout_ESI" (* "*") (identifier "extraout_ESI")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int local_18;" (primitive_type "int") (identifier "local_18") (; ";")) (declaration "int local_14;" (primitive_type "int") (identifier "local_14") (; ";")) (declaration "undefined4 uStack_10;" (type_identifier "undefined4") (identifier "uStack_10") (; ";")) (expression_statement "uStack_10 = 0x56ffa;" (assignment_expression "uStack_10 = 0x56ffa" (identifier "uStack_10") (= "=") (number_literal "0x56ffa")) (; ";")) (expression_statement "entry();" (call_expression "entry()" (identifier "entry") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "local_14 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_14 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_14") (= "=") (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")) () ")"))))) (; ";")) (if_statement "if (*(char *)((int)extraout_ESI + 0x502) != '\0') {\n    cVar1 = FUN_0005f210(extraout_ESI + 0x13a,extraout_ESI);\n    if (cVar1 != '\0') {\n      iVar2 = FUN_0005f230(extraout_ESI + 0x13a,extraout_ESI,0,&local_18);\n      if (iVar2 == 0) {\n        if (local_18 == 1) {\n          extraout_ESI[0x137] = 6;\n        }\n        else {\n          FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);\n          iVar2 = 0x43;\n        }\n      }\n      goto LAB_00057024;\n    }\n  }" (if "if") (parenthesized_expression "(*(char *)((int)extraout_ESI + 0x502) != '\0')" (( "(") (binary_expression "*(char *)((int)extraout_ESI + 0x502) != '\0'" (pointer_expression "*(char *)((int)extraout_ESI + 0x502)" (* "*") (cast_expression "(char *)((int)extraout_ESI + 0x502)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)extraout_ESI + 0x502)" (( "(") (binary_expression "(int)extraout_ESI + 0x502" (cast_expression "(int)extraout_ESI" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "extraout_ESI")) (+ "+") (number_literal "0x502")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    cVar1 = FUN_0005f210(extraout_ESI + 0x13a,extraout_ESI);\n    if (cVar1 != '\0') {\n      iVar2 = FUN_0005f230(extraout_ESI + 0x13a,extraout_ESI,0,&local_18);\n      if (iVar2 == 0) {\n        if (local_18 == 1) {\n          extraout_ESI[0x137] = 6;\n        }\n        else {\n          FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);\n          iVar2 = 0x43;\n        }\n      }\n      goto LAB_00057024;\n    }\n  }" ({ "{") (expression_statement "cVar1 = FUN_0005f210(extraout_ESI + 0x13a,extraout_ESI);" (assignment_expression "cVar1 = FUN_0005f210(extraout_ESI + 0x13a,extraout_ESI)" (identifier "cVar1") (= "=") (call_expression "FUN_0005f210(extraout_ESI + 0x13a,extraout_ESI)" (identifier "FUN_0005f210") (argument_list "(extraout_ESI + 0x13a,extraout_ESI)" (( "(") (binary_expression "extraout_ESI + 0x13a" (identifier "extraout_ESI") (+ "+") (number_literal "0x13a")) (, ",") (identifier "extraout_ESI") () ")")))) (; ";")) (if_statement "if (cVar1 != '\0') {\n      iVar2 = FUN_0005f230(extraout_ESI + 0x13a,extraout_ESI,0,&local_18);\n      if (iVar2 == 0) {\n        if (local_18 == 1) {\n          extraout_ESI[0x137] = 6;\n        }\n        else {\n          FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);\n          iVar2 = 0x43;\n        }\n      }\n      goto LAB_00057024;\n    }" (if "if") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      iVar2 = FUN_0005f230(extraout_ESI + 0x13a,extraout_ESI,0,&local_18);\n      if (iVar2 == 0) {\n        if (local_18 == 1) {\n          extraout_ESI[0x137] = 6;\n        }\n        else {\n          FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);\n          iVar2 = 0x43;\n        }\n      }\n      goto LAB_00057024;\n    }" ({ "{") (expression_statement "iVar2 = FUN_0005f230(extraout_ESI + 0x13a,extraout_ESI,0,&local_18);" (assignment_expression "iVar2 = FUN_0005f230(extraout_ESI + 0x13a,extraout_ESI,0,&local_18)" (identifier "iVar2") (= "=") (call_expression "FUN_0005f230(extraout_ESI + 0x13a,extraout_ESI,0,&local_18)" (identifier "FUN_0005f230") (argument_list "(extraout_ESI + 0x13a,extraout_ESI,0,&local_18)" (( "(") (binary_expression "extraout_ESI + 0x13a" (identifier "extraout_ESI") (+ "+") (number_literal "0x13a")) (, ",") (identifier "extraout_ESI") (, ",") (number_literal "0") (, ",") (pointer_expression "&local_18" (& "&") (identifier "local_18")) () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n        if (local_18 == 1) {\n          extraout_ESI[0x137] = 6;\n        }\n        else {\n          FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);\n          iVar2 = 0x43;\n        }\n      }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        if (local_18 == 1) {\n          extraout_ESI[0x137] = 6;\n        }\n        else {\n          FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);\n          iVar2 = 0x43;\n        }\n      }" ({ "{") (if_statement "if (local_18 == 1) {\n          extraout_ESI[0x137] = 6;\n        }\n        else {\n          FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);\n          iVar2 = 0x43;\n        }" (if "if") (parenthesized_expression "(local_18 == 1)" (( "(") (binary_expression "local_18 == 1" (identifier "local_18") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n          extraout_ESI[0x137] = 6;\n        }" ({ "{") (expression_statement "extraout_ESI[0x137] = 6;" (assignment_expression "extraout_ESI[0x137] = 6" (subscript_expression "extraout_ESI[0x137]" (identifier "extraout_ESI") ([ "[") (number_literal "0x137") (] "]")) (= "=") (number_literal "6")) (; ";")) (} "}")) (else_clause "else {\n          FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);\n          iVar2 = 0x43;\n        }" (else "else") (compound_statement "{\n          FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);\n          iVar2 = 0x43;\n        }" ({ "{") (expression_statement "FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);" (call_expression "FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316)" (identifier "FUN_00027140") (argument_list "(*extraout_ESI,unaff_EBX + 0x2e316)" (( "(") (pointer_expression "*extraout_ESI" (* "*") (identifier "extraout_ESI")) (, ",") (binary_expression "unaff_EBX + 0x2e316" (identifier "unaff_EBX") (+ "+") (number_literal "0x2e316")) () ")"))) (; ";")) (expression_statement "iVar2 = 0x43;" (assignment_expression "iVar2 = 0x43" (identifier "iVar2") (= "=") (number_literal "0x43")) (; ";")) (} "}")))) (} "}"))) (goto_statement "goto LAB_00057024;" (goto "goto") (statement_identifier "LAB_00057024") (; ";")) (} "}"))) (} "}"))) (expression_statement "extraout_ESI[0x137] = 0;" (assignment_expression "extraout_ESI[0x137] = 0" (subscript_expression "extraout_ESI[0x137]" (identifier "extraout_ESI") ([ "[") (number_literal "0x137") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_00057024:\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }" (statement_identifier "LAB_00057024") (: ":") (if_statement "if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }" (if "if") (parenthesized_expression "(local_14 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_14 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_14") (== "==") (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    return iVar2;\n  }" ({ "{") (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))) (expression_statement "FUN_0007c1a0();" (call_expression "FUN_0007c1a0()" (identifier "FUN_0007c1a0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

type_1 __regparm3 function_1(type_2 *conn)

{
  type_3 *sasl;
  type_4 _Var1;
  type_1 var_4;
  int var_1;
  type_5 var_6;
  int var_9;
  
  var_9 = *(int *)(var_1 + 0x14);
  if ((conn->proto).smtpc.auth_supported != false) {
    sasl = &(conn->proto).imapc.sasl.state;
    _Var1 = var_2((type_6 *)sasl,conn);
    if (_Var1) {
      var_4 = var_3((type_6 *)sasl,conn,false,&var_6);
      if (var_4 == var_5) {
        if (var_6 == var_7) {
          (conn->proto).sshc.readdir_totalLen = 6;
        }
        else {
          var_8(conn->data,"No known authentication mechanisms supported!\n");
          var_4 = CURLE_LOGIN_DENIED;
        }
      }
      goto LAB_00057024;
    }
  }
  (conn->proto).ftpc.entrypath = (char *)0x0;
  var_4 = var_5;
LAB_00057024:
  if (var_9 == *(int *)(var_1 + 0x14)) {
    return var_4;
  }
                    /* WARNING: Subroutine does not return */
  var_10();
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (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))))))) (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (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 (binary_expression left: (identifier) right: (number_literal)) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier) (number_literal) (pointer_expression argument: (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))))) (goto_statement label: (statement_identifier)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) 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 (return_statement (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

int MASKED(void)

{
  char cVar1;
  int iVar2;
  int unaff_EBX;
  undefined4 *extraout_ESI;
  int in_GS_OFFSET;
  int local_18;
  int local_14;
  undefined4 uStack_10;
  
  uStack_10 = 0x56ffa;
  entry();
  local_14 = *(int *)(in_GS_OFFSET + 0x14);
  if (*(char *)((int)extraout_ESI + 0x502) != '\0') {
    cVar1 = FUN_0005f210(extraout_ESI + 0x13a,extraout_ESI);
    if (cVar1 != '\0') {
      iVar2 = FUN_0005f230(extraout_ESI + 0x13a,extraout_ESI,0,&local_18);
      if (iVar2 == 0) {
        if (local_18 == 1) {
          extraout_ESI[0x137] = 6;
        }
        else {
          FUN_00027140(*extraout_ESI,unaff_EBX + 0x2e316);
          iVar2 = 0x43;
        }
      }
      goto LAB_00057024;
    }
  }
  extraout_ESI[0x137] = 0;
  iVar2 = 0;
LAB_00057024:
  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0007c1a0();
}

