
int fxp_stat_recv(sftp_packet *pktin,sftp_request *req,fxp_attrs *attrs)

{
  int iVar1;
  
  safefree(req);
  if (pktin->type == 0x69) {
    iVar1 = sftp_pkt_getattrs(pktin,attrs);
    if (iVar1 == 0) {
      fxp_error_message = "malformed SSH_FXP_ATTRS packet";
      fxp_errtype = -1;
      sftp_pkt_free(pktin);
      iVar1 = 0;
    }
    else {
      sftp_pkt_free(pktin);
      iVar1 = 1;
    }
  }
  else {
    fxp_got_status(pktin);
    sftp_pkt_free(pktin);
    iVar1 = 0;
  }
  return iVar1;
}



undefined4 FUN_0011cc54(long param_1,undefined8 param_2,undefined8 param_3)

{
  int iVar1;
  undefined4 uVar2;
  
  FUN_0010ea8f(param_2);
  if (*(int *)(param_1 + 0x14) == 0x69) {
    iVar1 = FUN_0011c00c(param_1,param_3);
    if (iVar1 == 0) {
      DAT_00185758 = "malformed SSH_FXP_ATTRS packet";
      DAT_00185750 = 0xffffffff;
      FUN_0011baaa(param_1);
      uVar2 = 0;
    }
    else {
      FUN_0011baaa(param_1);
      uVar2 = 1;
    }
  }
  else {
    FUN_0011b9e4(param_1);
    FUN_0011baaa(param_1);
    uVar2 = 0;
  }
  return uVar2;
}


PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV RBX,RDI
MOV RBP,RDX
MOV RDI,RSI
CALL 0x0010ea8f
CMP dword ptr [RBX + 0x14],0x69
JNZ 0x0011ccb0
MOV RSI,RBP
MOV RDI,RBX
CALL 0x0011c00c
MOV EBP,EAX
TEST EAX,EAX
JNZ 0x0011cca1
LEA RAX,[0x163490]
MOV qword ptr [0x00185758],RAX
MOV dword ptr [0x00185750],0xffffffff
MOV RDI,RBX
CALL 0x0011baaa
JMP 0x0011ccc5
MOV RDI,RBX
CALL 0x0011baaa
MOV EBP,0x1
JMP 0x0011ccc5
MOV RDI,RBX
CALL 0x0011b9e4
MOV RDI,RBX
CALL 0x0011baaa
MOV EBP,0x0
MOV EAX,EBP
ADD RSP,0x8
POP RBX
POP RBP
RET
(translation_unit "undefined4 FUN_0011cc54(long param_1,undefined8 param_2,undefined8 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  FUN_0010ea8f(param_2);\n  if (*(int *)(param_1 + 0x14) == 0x69) {\n    iVar1 = FUN_0011c00c(param_1,param_3);\n    if (iVar1 == 0) {\n      DAT_00185758 = "malformed SSH_FXP_ATTRS packet";\n      DAT_00185750 = 0xffffffff;\n      FUN_0011baaa(param_1);\n      uVar2 = 0;\n    }\n    else {\n      FUN_0011baaa(param_1);\n      uVar2 = 1;\n    }\n  }\n  else {\n    FUN_0011b9e4(param_1);\n    FUN_0011baaa(param_1);\n    uVar2 = 0;\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_0011cc54(long param_1,undefined8 param_2,undefined8 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  FUN_0010ea8f(param_2);\n  if (*(int *)(param_1 + 0x14) == 0x69) {\n    iVar1 = FUN_0011c00c(param_1,param_3);\n    if (iVar1 == 0) {\n      DAT_00185758 = "malformed SSH_FXP_ATTRS packet";\n      DAT_00185750 = 0xffffffff;\n      FUN_0011baaa(param_1);\n      uVar2 = 0;\n    }\n    else {\n      FUN_0011baaa(param_1);\n      uVar2 = 1;\n    }\n  }\n  else {\n    FUN_0011b9e4(param_1);\n    FUN_0011baaa(param_1);\n    uVar2 = 0;\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0011cc54(long param_1,undefined8 param_2,undefined8 param_3)" identifier (parameter_list "(long param_1,undefined8 param_2,undefined8 param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  FUN_0010ea8f(param_2);\n  if (*(int *)(param_1 + 0x14) == 0x69) {\n    iVar1 = FUN_0011c00c(param_1,param_3);\n    if (iVar1 == 0) {\n      DAT_00185758 = "malformed SSH_FXP_ATTRS packet";\n      DAT_00185750 = 0xffffffff;\n      FUN_0011baaa(param_1);\n      uVar2 = 0;\n    }\n    else {\n      FUN_0011baaa(param_1);\n      uVar2 = 1;\n    }\n  }\n  else {\n    FUN_0011b9e4(param_1);\n    FUN_0011baaa(param_1);\n    uVar2 = 0;\n  }\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "FUN_0010ea8f(param_2);" (call_expression "FUN_0010ea8f(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) (if_statement "if (*(int *)(param_1 + 0x14) == 0x69) {\n    iVar1 = FUN_0011c00c(param_1,param_3);\n    if (iVar1 == 0) {\n      DAT_00185758 = "malformed SSH_FXP_ATTRS packet";\n      DAT_00185750 = 0xffffffff;\n      FUN_0011baaa(param_1);\n      uVar2 = 0;\n    }\n    else {\n      FUN_0011baaa(param_1);\n      uVar2 = 1;\n    }\n  }\n  else {\n    FUN_0011b9e4(param_1);\n    FUN_0011baaa(param_1);\n    uVar2 = 0;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x14) == 0x69)" ( (binary_expression "*(int *)(param_1 + 0x14) == 0x69" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar1 = FUN_0011c00c(param_1,param_3);\n    if (iVar1 == 0) {\n      DAT_00185758 = "malformed SSH_FXP_ATTRS packet";\n      DAT_00185750 = 0xffffffff;\n      FUN_0011baaa(param_1);\n      uVar2 = 0;\n    }\n    else {\n      FUN_0011baaa(param_1);\n      uVar2 = 1;\n    }\n  }" { (expression_statement "iVar1 = FUN_0011c00c(param_1,param_3);" (assignment_expression "iVar1 = FUN_0011c00c(param_1,param_3)" identifier = (call_expression "FUN_0011c00c(param_1,param_3)" identifier (argument_list "(param_1,param_3)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      DAT_00185758 = "malformed SSH_FXP_ATTRS packet";\n      DAT_00185750 = 0xffffffff;\n      FUN_0011baaa(param_1);\n      uVar2 = 0;\n    }\n    else {\n      FUN_0011baaa(param_1);\n      uVar2 = 1;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      DAT_00185758 = "malformed SSH_FXP_ATTRS packet";\n      DAT_00185750 = 0xffffffff;\n      FUN_0011baaa(param_1);\n      uVar2 = 0;\n    }" { (expression_statement "DAT_00185758 = "malformed SSH_FXP_ATTRS packet";" (assignment_expression "DAT_00185758 = "malformed SSH_FXP_ATTRS packet"" identifier = (string_literal ""malformed SSH_FXP_ATTRS packet"" " string_content ")) ;) (expression_statement "DAT_00185750 = 0xffffffff;" (assignment_expression "DAT_00185750 = 0xffffffff" identifier = number_literal) ;) (expression_statement "FUN_0011baaa(param_1);" (call_expression "FUN_0011baaa(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      FUN_0011baaa(param_1);\n      uVar2 = 1;\n    }" else (compound_statement "{\n      FUN_0011baaa(param_1);\n      uVar2 = 1;\n    }" { (expression_statement "FUN_0011baaa(param_1);" (call_expression "FUN_0011baaa(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) }))) }) (else_clause "else {\n    FUN_0011b9e4(param_1);\n    FUN_0011baaa(param_1);\n    uVar2 = 0;\n  }" else (compound_statement "{\n    FUN_0011b9e4(param_1);\n    FUN_0011baaa(param_1);\n    uVar2 = 0;\n  }" { (expression_statement "FUN_0011b9e4(param_1);" (call_expression "FUN_0011b9e4(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "FUN_0011baaa(param_1);" (call_expression "FUN_0011baaa(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "int fxp_stat_recv(sftp_packet *pktin,sftp_request *req,fxp_attrs *attrs)\n\n{\n  int iVar1;\n  \n  safefree(req);\n  if (pktin->type == 0x69) {\n    iVar1 = sftp_pkt_getattrs(pktin,attrs);\n    if (iVar1 == 0) {\n      fxp_error_message = "malformed SSH_FXP_ATTRS packet";\n      fxp_errtype = -1;\n      sftp_pkt_free(pktin);\n      iVar1 = 0;\n    }\n    else {\n      sftp_pkt_free(pktin);\n      iVar1 = 1;\n    }\n  }\n  else {\n    fxp_got_status(pktin);\n    sftp_pkt_free(pktin);\n    iVar1 = 0;\n  }\n  return iVar1;\n}\n\n" (function_definition "int fxp_stat_recv(sftp_packet *pktin,sftp_request *req,fxp_attrs *attrs)\n\n{\n  int iVar1;\n  \n  safefree(req);\n  if (pktin->type == 0x69) {\n    iVar1 = sftp_pkt_getattrs(pktin,attrs);\n    if (iVar1 == 0) {\n      fxp_error_message = "malformed SSH_FXP_ATTRS packet";\n      fxp_errtype = -1;\n      sftp_pkt_free(pktin);\n      iVar1 = 0;\n    }\n    else {\n      sftp_pkt_free(pktin);\n      iVar1 = 1;\n    }\n  }\n  else {\n    fxp_got_status(pktin);\n    sftp_pkt_free(pktin);\n    iVar1 = 0;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "fxp_stat_recv(sftp_packet *pktin,sftp_request *req,fxp_attrs *attrs)" identifier (parameter_list "(sftp_packet *pktin,sftp_request *req,fxp_attrs *attrs)" ( (parameter_declaration "sftp_packet *pktin" type_identifier (pointer_declarator "*pktin" * identifier)) , (parameter_declaration "sftp_request *req" type_identifier (pointer_declarator "*req" * identifier)) , (parameter_declaration "fxp_attrs *attrs" type_identifier (pointer_declarator "*attrs" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  safefree(req);\n  if (pktin->type == 0x69) {\n    iVar1 = sftp_pkt_getattrs(pktin,attrs);\n    if (iVar1 == 0) {\n      fxp_error_message = "malformed SSH_FXP_ATTRS packet";\n      fxp_errtype = -1;\n      sftp_pkt_free(pktin);\n      iVar1 = 0;\n    }\n    else {\n      sftp_pkt_free(pktin);\n      iVar1 = 1;\n    }\n  }\n  else {\n    fxp_got_status(pktin);\n    sftp_pkt_free(pktin);\n    iVar1 = 0;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "safefree(req);" (call_expression "safefree(req)" identifier (argument_list "(req)" ( identifier ))) ;) (if_statement "if (pktin->type == 0x69) {\n    iVar1 = sftp_pkt_getattrs(pktin,attrs);\n    if (iVar1 == 0) {\n      fxp_error_message = "malformed SSH_FXP_ATTRS packet";\n      fxp_errtype = -1;\n      sftp_pkt_free(pktin);\n      iVar1 = 0;\n    }\n    else {\n      sftp_pkt_free(pktin);\n      iVar1 = 1;\n    }\n  }\n  else {\n    fxp_got_status(pktin);\n    sftp_pkt_free(pktin);\n    iVar1 = 0;\n  }" if (parenthesized_expression "(pktin->type == 0x69)" ( (binary_expression "pktin->type == 0x69" (field_expression "pktin->type" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    iVar1 = sftp_pkt_getattrs(pktin,attrs);\n    if (iVar1 == 0) {\n      fxp_error_message = "malformed SSH_FXP_ATTRS packet";\n      fxp_errtype = -1;\n      sftp_pkt_free(pktin);\n      iVar1 = 0;\n    }\n    else {\n      sftp_pkt_free(pktin);\n      iVar1 = 1;\n    }\n  }" { (expression_statement "iVar1 = sftp_pkt_getattrs(pktin,attrs);" (assignment_expression "iVar1 = sftp_pkt_getattrs(pktin,attrs)" identifier = (call_expression "sftp_pkt_getattrs(pktin,attrs)" identifier (argument_list "(pktin,attrs)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      fxp_error_message = "malformed SSH_FXP_ATTRS packet";\n      fxp_errtype = -1;\n      sftp_pkt_free(pktin);\n      iVar1 = 0;\n    }\n    else {\n      sftp_pkt_free(pktin);\n      iVar1 = 1;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      fxp_error_message = "malformed SSH_FXP_ATTRS packet";\n      fxp_errtype = -1;\n      sftp_pkt_free(pktin);\n      iVar1 = 0;\n    }" { (expression_statement "fxp_error_message = "malformed SSH_FXP_ATTRS packet";" (assignment_expression "fxp_error_message = "malformed SSH_FXP_ATTRS packet"" identifier = (string_literal ""malformed SSH_FXP_ATTRS packet"" " string_content ")) ;) (expression_statement "fxp_errtype = -1;" (assignment_expression "fxp_errtype = -1" identifier = number_literal) ;) (expression_statement "sftp_pkt_free(pktin);" (call_expression "sftp_pkt_free(pktin)" identifier (argument_list "(pktin)" ( identifier ))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      sftp_pkt_free(pktin);\n      iVar1 = 1;\n    }" else (compound_statement "{\n      sftp_pkt_free(pktin);\n      iVar1 = 1;\n    }" { (expression_statement "sftp_pkt_free(pktin);" (call_expression "sftp_pkt_free(pktin)" identifier (argument_list "(pktin)" ( identifier ))) ;) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) }))) }) (else_clause "else {\n    fxp_got_status(pktin);\n    sftp_pkt_free(pktin);\n    iVar1 = 0;\n  }" else (compound_statement "{\n    fxp_got_status(pktin);\n    sftp_pkt_free(pktin);\n    iVar1 = 0;\n  }" { (expression_statement "fxp_got_status(pktin);" (call_expression "fxp_got_status(pktin)" identifier (argument_list "(pktin)" ( identifier ))) ;) (expression_statement "sftp_pkt_free(pktin);" (call_expression "sftp_pkt_free(pktin)" identifier (argument_list "(pktin)" ( identifier ))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "undefined4 FUN_0011cc54(long param_1,undefined8 param_2,undefined8 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  FUN_0010ea8f(param_2);\n  if (*(int *)(param_1 + 0x14) == 0x69) {\n    iVar1 = FUN_0011c00c(param_1,param_3);\n    if (iVar1 == 0) {\n      DAT_00185758 = "malformed SSH_FXP_ATTRS packet";\n      DAT_00185750 = 0xffffffff;\n      FUN_0011baaa(param_1);\n      uVar2 = 0;\n    }\n    else {\n      FUN_0011baaa(param_1);\n      uVar2 = 1;\n    }\n  }\n  else {\n    FUN_0011b9e4(param_1);\n    FUN_0011baaa(param_1);\n    uVar2 = 0;\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_0011cc54(long param_1,undefined8 param_2,undefined8 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  FUN_0010ea8f(param_2);\n  if (*(int *)(param_1 + 0x14) == 0x69) {\n    iVar1 = FUN_0011c00c(param_1,param_3);\n    if (iVar1 == 0) {\n      DAT_00185758 = "malformed SSH_FXP_ATTRS packet";\n      DAT_00185750 = 0xffffffff;\n      FUN_0011baaa(param_1);\n      uVar2 = 0;\n    }\n    else {\n      FUN_0011baaa(param_1);\n      uVar2 = 1;\n    }\n  }\n  else {\n    FUN_0011b9e4(param_1);\n    FUN_0011baaa(param_1);\n    uVar2 = 0;\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0011cc54(long param_1,undefined8 param_2,undefined8 param_3)" identifier (parameter_list "(long param_1,undefined8 param_2,undefined8 param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  FUN_0010ea8f(param_2);\n  if (*(int *)(param_1 + 0x14) == 0x69) {\n    iVar1 = FUN_0011c00c(param_1,param_3);\n    if (iVar1 == 0) {\n      DAT_00185758 = "malformed SSH_FXP_ATTRS packet";\n      DAT_00185750 = 0xffffffff;\n      FUN_0011baaa(param_1);\n      uVar2 = 0;\n    }\n    else {\n      FUN_0011baaa(param_1);\n      uVar2 = 1;\n    }\n  }\n  else {\n    FUN_0011b9e4(param_1);\n    FUN_0011baaa(param_1);\n    uVar2 = 0;\n  }\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "FUN_0010ea8f(param_2);" (call_expression "FUN_0010ea8f(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) (if_statement "if (*(int *)(param_1 + 0x14) == 0x69) {\n    iVar1 = FUN_0011c00c(param_1,param_3);\n    if (iVar1 == 0) {\n      DAT_00185758 = "malformed SSH_FXP_ATTRS packet";\n      DAT_00185750 = 0xffffffff;\n      FUN_0011baaa(param_1);\n      uVar2 = 0;\n    }\n    else {\n      FUN_0011baaa(param_1);\n      uVar2 = 1;\n    }\n  }\n  else {\n    FUN_0011b9e4(param_1);\n    FUN_0011baaa(param_1);\n    uVar2 = 0;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x14) == 0x69)" ( (binary_expression "*(int *)(param_1 + 0x14) == 0x69" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar1 = FUN_0011c00c(param_1,param_3);\n    if (iVar1 == 0) {\n      DAT_00185758 = "malformed SSH_FXP_ATTRS packet";\n      DAT_00185750 = 0xffffffff;\n      FUN_0011baaa(param_1);\n      uVar2 = 0;\n    }\n    else {\n      FUN_0011baaa(param_1);\n      uVar2 = 1;\n    }\n  }" { (expression_statement "iVar1 = FUN_0011c00c(param_1,param_3);" (assignment_expression "iVar1 = FUN_0011c00c(param_1,param_3)" identifier = (call_expression "FUN_0011c00c(param_1,param_3)" identifier (argument_list "(param_1,param_3)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      DAT_00185758 = "malformed SSH_FXP_ATTRS packet";\n      DAT_00185750 = 0xffffffff;\n      FUN_0011baaa(param_1);\n      uVar2 = 0;\n    }\n    else {\n      FUN_0011baaa(param_1);\n      uVar2 = 1;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      DAT_00185758 = "malformed SSH_FXP_ATTRS packet";\n      DAT_00185750 = 0xffffffff;\n      FUN_0011baaa(param_1);\n      uVar2 = 0;\n    }" { (expression_statement "DAT_00185758 = "malformed SSH_FXP_ATTRS packet";" (assignment_expression "DAT_00185758 = "malformed SSH_FXP_ATTRS packet"" identifier = (string_literal ""malformed SSH_FXP_ATTRS packet"" " string_content ")) ;) (expression_statement "DAT_00185750 = 0xffffffff;" (assignment_expression "DAT_00185750 = 0xffffffff" identifier = number_literal) ;) (expression_statement "FUN_0011baaa(param_1);" (call_expression "FUN_0011baaa(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      FUN_0011baaa(param_1);\n      uVar2 = 1;\n    }" else (compound_statement "{\n      FUN_0011baaa(param_1);\n      uVar2 = 1;\n    }" { (expression_statement "FUN_0011baaa(param_1);" (call_expression "FUN_0011baaa(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) }))) }) (else_clause "else {\n    FUN_0011b9e4(param_1);\n    FUN_0011baaa(param_1);\n    uVar2 = 0;\n  }" else (compound_statement "{\n    FUN_0011b9e4(param_1);\n    FUN_0011baaa(param_1);\n    uVar2 = 0;\n  }" { (expression_statement "FUN_0011b9e4(param_1);" (call_expression "FUN_0011b9e4(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "FUN_0011baaa(param_1);" (call_expression "FUN_0011baaa(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (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 (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_0011cc54(long param_1,undefined8 param_2,undefined8 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  FUN_0010ea8f(param_2);\n  if (*(int *)(param_1 + 0x14) == 0x69) {\n    iVar1 = FUN_0011c00c(param_1,param_3);\n    if (iVar1 == 0) {\n      DAT_00185758 = "malformed SSH_FXP_ATTRS packet";\n      DAT_00185750 = 0xffffffff;\n      FUN_0011baaa(param_1);\n      uVar2 = 0;\n    }\n    else {\n      FUN_0011baaa(param_1);\n      uVar2 = 1;\n    }\n  }\n  else {\n    FUN_0011b9e4(param_1);\n    FUN_0011baaa(param_1);\n    uVar2 = 0;\n  }\n  return uVar2;\n}" (type_identifier "undefined4") (function_declarator "FUN_0011cc54(long param_1,undefined8 param_2,undefined8 param_3)" (identifier "FUN_0011cc54") (parameter_list "(long param_1,undefined8 param_2,undefined8 param_3)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  FUN_0010ea8f(param_2);\n  if (*(int *)(param_1 + 0x14) == 0x69) {\n    iVar1 = FUN_0011c00c(param_1,param_3);\n    if (iVar1 == 0) {\n      DAT_00185758 = "malformed SSH_FXP_ATTRS packet";\n      DAT_00185750 = 0xffffffff;\n      FUN_0011baaa(param_1);\n      uVar2 = 0;\n    }\n    else {\n      FUN_0011baaa(param_1);\n      uVar2 = 1;\n    }\n  }\n  else {\n    FUN_0011b9e4(param_1);\n    FUN_0011baaa(param_1);\n    uVar2 = 0;\n  }\n  return uVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "FUN_0010ea8f(param_2);" (call_expression "FUN_0010ea8f(param_2)" (identifier "FUN_0010ea8f") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))) (; ";")) (if_statement "if (*(int *)(param_1 + 0x14) == 0x69) {\n    iVar1 = FUN_0011c00c(param_1,param_3);\n    if (iVar1 == 0) {\n      DAT_00185758 = "malformed SSH_FXP_ATTRS packet";\n      DAT_00185750 = 0xffffffff;\n      FUN_0011baaa(param_1);\n      uVar2 = 0;\n    }\n    else {\n      FUN_0011baaa(param_1);\n      uVar2 = 1;\n    }\n  }\n  else {\n    FUN_0011b9e4(param_1);\n    FUN_0011baaa(param_1);\n    uVar2 = 0;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x14) == 0x69)" (( "(") (binary_expression "*(int *)(param_1 + 0x14) == 0x69" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (== "==") (number_literal "0x69")) () ")")) (compound_statement "{\n    iVar1 = FUN_0011c00c(param_1,param_3);\n    if (iVar1 == 0) {\n      DAT_00185758 = "malformed SSH_FXP_ATTRS packet";\n      DAT_00185750 = 0xffffffff;\n      FUN_0011baaa(param_1);\n      uVar2 = 0;\n    }\n    else {\n      FUN_0011baaa(param_1);\n      uVar2 = 1;\n    }\n  }" ({ "{") (expression_statement "iVar1 = FUN_0011c00c(param_1,param_3);" (assignment_expression "iVar1 = FUN_0011c00c(param_1,param_3)" (identifier "iVar1") (= "=") (call_expression "FUN_0011c00c(param_1,param_3)" (identifier "FUN_0011c00c") (argument_list "(param_1,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      DAT_00185758 = "malformed SSH_FXP_ATTRS packet";\n      DAT_00185750 = 0xffffffff;\n      FUN_0011baaa(param_1);\n      uVar2 = 0;\n    }\n    else {\n      FUN_0011baaa(param_1);\n      uVar2 = 1;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      DAT_00185758 = "malformed SSH_FXP_ATTRS packet";\n      DAT_00185750 = 0xffffffff;\n      FUN_0011baaa(param_1);\n      uVar2 = 0;\n    }" ({ "{") (expression_statement "DAT_00185758 = "malformed SSH_FXP_ATTRS packet";" (assignment_expression "DAT_00185758 = "malformed SSH_FXP_ATTRS packet"" (identifier "DAT_00185758") (= "=") (string_literal ""malformed SSH_FXP_ATTRS packet"" (" """) (string_content "malformed SSH_FXP_ATTRS packet") (" """))) (; ";")) (expression_statement "DAT_00185750 = 0xffffffff;" (assignment_expression "DAT_00185750 = 0xffffffff" (identifier "DAT_00185750") (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "FUN_0011baaa(param_1);" (call_expression "FUN_0011baaa(param_1)" (identifier "FUN_0011baaa") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      FUN_0011baaa(param_1);\n      uVar2 = 1;\n    }" (else "else") (compound_statement "{\n      FUN_0011baaa(param_1);\n      uVar2 = 1;\n    }" ({ "{") (expression_statement "FUN_0011baaa(param_1);" (call_expression "FUN_0011baaa(param_1)" (identifier "FUN_0011baaa") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" (identifier "uVar2") (= "=") (number_literal "1")) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n    FUN_0011b9e4(param_1);\n    FUN_0011baaa(param_1);\n    uVar2 = 0;\n  }" (else "else") (compound_statement "{\n    FUN_0011b9e4(param_1);\n    FUN_0011baaa(param_1);\n    uVar2 = 0;\n  }" ({ "{") (expression_statement "FUN_0011b9e4(param_1);" (call_expression "FUN_0011b9e4(param_1)" (identifier "FUN_0011b9e4") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "FUN_0011baaa(param_1);" (call_expression "FUN_0011baaa(param_1)" (identifier "FUN_0011baaa") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (} "}")))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

int function_1(type_1 *pktin,type_2 *req,type_3 *attrs)

{
  int var_3;
  
  var_1(req);
  if (pktin->type == 0x69) {
    var_3 = var_2(pktin,attrs);
    if (var_3 == 0) {
      fxp_error_message = "malformed SSH_FXP_ATTRS packet";
      fxp_errtype = -1;
      var_4(pktin);
      var_3 = 0;
    }
    else {
      var_4(pktin);
      var_3 = 1;
    }
  }
  else {
    var_5(pktin);
    var_4(pktin);
    var_3 = 0;
  }
  return var_3;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (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 (assignment_expression left: (identifier) right: (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 (assignment_expression left: (identifier) right: (string_literal (string_content)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))))

undefined4 MASKED(long param_1,undefined8 param_2,undefined8 param_3)

{
  int iVar1;
  undefined4 uVar2;
  
  FUN_0010ea8f(param_2);
  if (*(int *)(param_1 + 0x14) == 0x69) {
    iVar1 = FUN_0011c00c(param_1,param_3);
    if (iVar1 == 0) {
      DAT_00185758 = "malformed SSH_FXP_ATTRS packet";
      DAT_00185750 = 0xffffffff;
      FUN_0011baaa(param_1);
      uVar2 = 0;
    }
    else {
      FUN_0011baaa(param_1);
      uVar2 = 1;
    }
  }
  else {
    FUN_0011b9e4(param_1);
    FUN_0011baaa(param_1);
    uVar2 = 0;
  }
  return uVar2;
}

