
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* WARNING: Unknown calling convention */

int fxp_init(void)

{
  int iVar1;
  sftp_packet *psVar2;
  int iVar3;
  char *pcVar4;
  int in_GS_OFFSET;
  int in_stack_ffffffe4;
  ulong remotever;
  uchar x [4];
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  psVar2 = sftp_pkt_init(in_stack_ffffffe4);
  x[0] = '\0';
  x[1] = '\0';
  x[2] = '\0';
  x[3] = '\x03';
  sftp_pkt_adddata(psVar2,x,4);
  sftp_send(psVar2);
  psVar2 = sftp_recv();
  if (psVar2 == (sftp_packet *)0x0) {
    iVar3 = 0;
    fxp_errtype = -1;
    fxp_error_message = "could not connect";
    goto LAB_000296af;
  }
  pcVar4 = "did not receive FXP_VERSION";
  if (psVar2->type == 2) {
    iVar3 = sftp_pkt_getuint32(psVar2,&remotever);
    if (iVar3 == 0) {
      fxp_errtype = -1;
      fxp_error_message = "malformed FXP_VERSION packet";
      sftp_pkt_free(psVar2);
      iVar3 = 0;
      goto LAB_000296af;
    }
    if (remotever < 4) {
      iVar3 = 1;
      sftp_pkt_free(psVar2);
      goto LAB_000296af;
    }
    pcVar4 = "remote protocol is more advanced than we support";
  }
  iVar3 = 0;
  fxp_errtype = -1;
  fxp_error_message = pcVar4;
  sftp_pkt_free(psVar2);
LAB_000296af:
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar3;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

undefined4 FUN_00029600(void)

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  char *pcVar4;
  int in_GS_OFFSET;
  uint local_18;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  uVar2 = FUN_00028d00();
  FUN_00028bb0();
  FUN_00029380(uVar2);
  iVar3 = FUN_000293f0();
  if (iVar3 == 0) {
    uVar2 = 0;
    DAT_000aa3ec = 0xffffffff;
    DAT_000aa3f0 = "could not connect";
    goto LAB_000296af;
  }
  pcVar4 = "did not receive FXP_VERSION";
  if (*(int *)(iVar3 + 0x10) == 2) {
    iVar3 = FUN_000289d0();
    if (iVar3 == 0) {
      DAT_000aa3ec = 0xffffffff;
      DAT_000aa3f0 = "malformed FXP_VERSION packet";
      FUN_00028b30();
      uVar2 = 0;
      goto LAB_000296af;
    }
    if (local_18 < 4) {
      uVar2 = 1;
      FUN_00028b30();
      goto LAB_000296af;
    }
    pcVar4 = "remote protocol is more advanced than we support";
  }
  uVar2 = 0;
  DAT_000aa3ec = 0xffffffff;
  DAT_000aa3f0 = pcVar4;
  FUN_00028b30();
LAB_000296af:
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006f430();
}


PUSH EDI
PUSH ESI
CALL 0x000289c9
ADD ESI,0x80789
PUSH EBX
SUB ESP,0x10
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xc],EAX
XOR EAX,EAX
MOV EAX,0x1
CALL 0x00028d00
LEA EDX,[ESP + 0x8]
MOV ECX,0x4
MOV dword ptr [ESP + 0x8],0x3000000
MOV EBX,EAX
CALL 0x00028bb0
SUB ESP,0xc
PUSH EBX
CALL 0x00029380
CALL 0x000293f0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000296c8
MOV EBX,EAX
LEA EAX,[ESI + 0xfffcb298]
CMP dword ptr [EBX + 0x10],0x2
JNZ 0x00029696
LEA EDX,[ESP + 0x4]
MOV EAX,EBX
CALL 0x000289d0
MOV EDI,EAX
TEST EAX,EAX
JZ 0x000296e8
CMP dword ptr [ESP + 0x4],0x3
JA 0x00029690
MOV EAX,EBX
MOV EDI,0x1
CALL 0x00028b30
JMP 0x000296af
LEA EAX,[ESI + 0xfffcb3d8]
MOV dword ptr [ESI + 0x660],EAX
MOV EAX,EBX
XOR EDI,EDI
MOV dword ptr [ESI + 0x65c],0xffffffff
CALL 0x00028b30
MOV ECX,dword ptr [ESP + 0xc]
XOR ECX,dword ptr GS:[0x14]
MOV EAX,EDI
JNZ 0x00029707
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
LEA EAX,[ESI + 0xfffcb286]
XOR EDI,EDI
MOV dword ptr [ESI + 0x65c],0xffffffff
MOV dword ptr [ESI + 0x660],EAX
JMP 0x000296af
MOV dword ptr [ESI + 0x65c],0xffffffff
LEA EAX,[ESI + 0xfffcb2b4]
MOV dword ptr [ESI + 0x660],EAX
MOV EAX,EBX
CALL 0x00028b30
JMP 0x000296af
CALL 0x0006f430
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nundefined4 FUN_00029600(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  char *pcVar4;\n  int in_GS_OFFSET;\n  uint local_18;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = FUN_00028d00();\n  FUN_00028bb0();\n  FUN_00029380(uVar2);\n  iVar3 = FUN_000293f0();\n  if (iVar3 == 0) {\n    uVar2 = 0;\n    DAT_000aa3ec = 0xffffffff;\n    DAT_000aa3f0 = "could not connect";\n    goto LAB_000296af;\n  }\n  pcVar4 = "did not receive FXP_VERSION";\n  if (*(int *)(iVar3 + 0x10) == 2) {\n    iVar3 = FUN_000289d0();\n    if (iVar3 == 0) {\n      DAT_000aa3ec = 0xffffffff;\n      DAT_000aa3f0 = "malformed FXP_VERSION packet";\n      FUN_00028b30();\n      uVar2 = 0;\n      goto LAB_000296af;\n    }\n    if (local_18 < 4) {\n      uVar2 = 1;\n      FUN_00028b30();\n      goto LAB_000296af;\n    }\n    pcVar4 = "remote protocol is more advanced than we support";\n  }\n  uVar2 = 0;\n  DAT_000aa3ec = 0xffffffff;\n  DAT_000aa3f0 = pcVar4;\n  FUN_00028b30();\nLAB_000296af:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f430();\n}\n\n" comment (function_definition "undefined4 FUN_00029600(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  char *pcVar4;\n  int in_GS_OFFSET;\n  uint local_18;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = FUN_00028d00();\n  FUN_00028bb0();\n  FUN_00029380(uVar2);\n  iVar3 = FUN_000293f0();\n  if (iVar3 == 0) {\n    uVar2 = 0;\n    DAT_000aa3ec = 0xffffffff;\n    DAT_000aa3f0 = "could not connect";\n    goto LAB_000296af;\n  }\n  pcVar4 = "did not receive FXP_VERSION";\n  if (*(int *)(iVar3 + 0x10) == 2) {\n    iVar3 = FUN_000289d0();\n    if (iVar3 == 0) {\n      DAT_000aa3ec = 0xffffffff;\n      DAT_000aa3f0 = "malformed FXP_VERSION packet";\n      FUN_00028b30();\n      uVar2 = 0;\n      goto LAB_000296af;\n    }\n    if (local_18 < 4) {\n      uVar2 = 1;\n      FUN_00028b30();\n      goto LAB_000296af;\n    }\n    pcVar4 = "remote protocol is more advanced than we support";\n  }\n  uVar2 = 0;\n  DAT_000aa3ec = 0xffffffff;\n  DAT_000aa3f0 = pcVar4;\n  FUN_00028b30();\nLAB_000296af:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f430();\n}" type_identifier (function_declarator "FUN_00029600(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  char *pcVar4;\n  int in_GS_OFFSET;\n  uint local_18;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = FUN_00028d00();\n  FUN_00028bb0();\n  FUN_00029380(uVar2);\n  iVar3 = FUN_000293f0();\n  if (iVar3 == 0) {\n    uVar2 = 0;\n    DAT_000aa3ec = 0xffffffff;\n    DAT_000aa3f0 = "could not connect";\n    goto LAB_000296af;\n  }\n  pcVar4 = "did not receive FXP_VERSION";\n  if (*(int *)(iVar3 + 0x10) == 2) {\n    iVar3 = FUN_000289d0();\n    if (iVar3 == 0) {\n      DAT_000aa3ec = 0xffffffff;\n      DAT_000aa3f0 = "malformed FXP_VERSION packet";\n      FUN_00028b30();\n      uVar2 = 0;\n      goto LAB_000296af;\n    }\n    if (local_18 < 4) {\n      uVar2 = 1;\n      FUN_00028b30();\n      goto LAB_000296af;\n    }\n    pcVar4 = "remote protocol is more advanced than we support";\n  }\n  uVar2 = 0;\n  DAT_000aa3ec = 0xffffffff;\n  DAT_000aa3f0 = pcVar4;\n  FUN_00028b30();\nLAB_000296af:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f430();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uint local_18;" type_identifier identifier ;) (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 "uVar2 = FUN_00028d00();" (assignment_expression "uVar2 = FUN_00028d00()" identifier = (call_expression "FUN_00028d00()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_00028bb0();" (call_expression "FUN_00028bb0()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00029380(uVar2);" (call_expression "FUN_00029380(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "iVar3 = FUN_000293f0();" (assignment_expression "iVar3 = FUN_000293f0()" identifier = (call_expression "FUN_000293f0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 == 0) {\n    uVar2 = 0;\n    DAT_000aa3ec = 0xffffffff;\n    DAT_000aa3f0 = "could not connect";\n    goto LAB_000296af;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar2 = 0;\n    DAT_000aa3ec = 0xffffffff;\n    DAT_000aa3f0 = "could not connect";\n    goto LAB_000296af;\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (expression_statement "DAT_000aa3ec = 0xffffffff;" (assignment_expression "DAT_000aa3ec = 0xffffffff" identifier = number_literal) ;) (expression_statement "DAT_000aa3f0 = "could not connect";" (assignment_expression "DAT_000aa3f0 = "could not connect"" identifier = (string_literal ""could not connect"" " string_content ")) ;) (goto_statement "goto LAB_000296af;" goto statement_identifier ;) })) (expression_statement "pcVar4 = "did not receive FXP_VERSION";" (assignment_expression "pcVar4 = "did not receive FXP_VERSION"" identifier = (string_literal ""did not receive FXP_VERSION"" " string_content ")) ;) (if_statement "if (*(int *)(iVar3 + 0x10) == 2) {\n    iVar3 = FUN_000289d0();\n    if (iVar3 == 0) {\n      DAT_000aa3ec = 0xffffffff;\n      DAT_000aa3f0 = "malformed FXP_VERSION packet";\n      FUN_00028b30();\n      uVar2 = 0;\n      goto LAB_000296af;\n    }\n    if (local_18 < 4) {\n      uVar2 = 1;\n      FUN_00028b30();\n      goto LAB_000296af;\n    }\n    pcVar4 = "remote protocol is more advanced than we support";\n  }" if (parenthesized_expression "(*(int *)(iVar3 + 0x10) == 2)" ( (binary_expression "*(int *)(iVar3 + 0x10) == 2" (pointer_expression "*(int *)(iVar3 + 0x10)" * (cast_expression "(int *)(iVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar3 = FUN_000289d0();\n    if (iVar3 == 0) {\n      DAT_000aa3ec = 0xffffffff;\n      DAT_000aa3f0 = "malformed FXP_VERSION packet";\n      FUN_00028b30();\n      uVar2 = 0;\n      goto LAB_000296af;\n    }\n    if (local_18 < 4) {\n      uVar2 = 1;\n      FUN_00028b30();\n      goto LAB_000296af;\n    }\n    pcVar4 = "remote protocol is more advanced than we support";\n  }" { (expression_statement "iVar3 = FUN_000289d0();" (assignment_expression "iVar3 = FUN_000289d0()" identifier = (call_expression "FUN_000289d0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 == 0) {\n      DAT_000aa3ec = 0xffffffff;\n      DAT_000aa3f0 = "malformed FXP_VERSION packet";\n      FUN_00028b30();\n      uVar2 = 0;\n      goto LAB_000296af;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      DAT_000aa3ec = 0xffffffff;\n      DAT_000aa3f0 = "malformed FXP_VERSION packet";\n      FUN_00028b30();\n      uVar2 = 0;\n      goto LAB_000296af;\n    }" { (expression_statement "DAT_000aa3ec = 0xffffffff;" (assignment_expression "DAT_000aa3ec = 0xffffffff" identifier = number_literal) ;) (expression_statement "DAT_000aa3f0 = "malformed FXP_VERSION packet";" (assignment_expression "DAT_000aa3f0 = "malformed FXP_VERSION packet"" identifier = (string_literal ""malformed FXP_VERSION packet"" " string_content ")) ;) (expression_statement "FUN_00028b30();" (call_expression "FUN_00028b30()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_000296af;" goto statement_identifier ;) })) (if_statement "if (local_18 < 4) {\n      uVar2 = 1;\n      FUN_00028b30();\n      goto LAB_000296af;\n    }" if (parenthesized_expression "(local_18 < 4)" ( (binary_expression "local_18 < 4" identifier < number_literal) )) (compound_statement "{\n      uVar2 = 1;\n      FUN_00028b30();\n      goto LAB_000296af;\n    }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (expression_statement "FUN_00028b30();" (call_expression "FUN_00028b30()" identifier (argument_list "()" ( ))) ;) (goto_statement "goto LAB_000296af;" goto statement_identifier ;) })) (expression_statement "pcVar4 = "remote protocol is more advanced than we support";" (assignment_expression "pcVar4 = "remote protocol is more advanced than we support"" identifier = (string_literal ""remote protocol is more advanced than we support"" " string_content ")) ;) })) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (expression_statement "DAT_000aa3ec = 0xffffffff;" (assignment_expression "DAT_000aa3ec = 0xffffffff" identifier = number_literal) ;) (expression_statement "DAT_000aa3f0 = pcVar4;" (assignment_expression "DAT_000aa3f0 = pcVar4" identifier = identifier) ;) (expression_statement "FUN_00028b30();" (call_expression "FUN_00028b30()" identifier (argument_list "()" ( ))) ;) (labeled_statement "LAB_000296af:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }" statement_identifier : (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\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    return uVar2;\n  }" { (return_statement "return uVar2;" return identifier ;) }))) comment (expression_statement "FUN_0006f430();" (call_expression "FUN_0006f430()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n/* WARNING: Unknown calling convention */\n\nint fxp_init(void)\n\n{\n  int iVar1;\n  sftp_packet *psVar2;\n  int iVar3;\n  char *pcVar4;\n  int in_GS_OFFSET;\n  int in_stack_ffffffe4;\n  ulong remotever;\n  uchar x [4];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  psVar2 = sftp_pkt_init(in_stack_ffffffe4);\n  x[0] = '\0';\n  x[1] = '\0';\n  x[2] = '\0';\n  x[3] = '\x03';\n  sftp_pkt_adddata(psVar2,x,4);\n  sftp_send(psVar2);\n  psVar2 = sftp_recv();\n  if (psVar2 == (sftp_packet *)0x0) {\n    iVar3 = 0;\n    fxp_errtype = -1;\n    fxp_error_message = "could not connect";\n    goto LAB_000296af;\n  }\n  pcVar4 = "did not receive FXP_VERSION";\n  if (psVar2->type == 2) {\n    iVar3 = sftp_pkt_getuint32(psVar2,&remotever);\n    if (iVar3 == 0) {\n      fxp_errtype = -1;\n      fxp_error_message = "malformed FXP_VERSION packet";\n      sftp_pkt_free(psVar2);\n      iVar3 = 0;\n      goto LAB_000296af;\n    }\n    if (remotever < 4) {\n      iVar3 = 1;\n      sftp_pkt_free(psVar2);\n      goto LAB_000296af;\n    }\n    pcVar4 = "remote protocol is more advanced than we support";\n  }\n  iVar3 = 0;\n  fxp_errtype = -1;\n  fxp_error_message = pcVar4;\n  sftp_pkt_free(psVar2);\nLAB_000296af:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "int fxp_init(void)\n\n{\n  int iVar1;\n  sftp_packet *psVar2;\n  int iVar3;\n  char *pcVar4;\n  int in_GS_OFFSET;\n  int in_stack_ffffffe4;\n  ulong remotever;\n  uchar x [4];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  psVar2 = sftp_pkt_init(in_stack_ffffffe4);\n  x[0] = '\0';\n  x[1] = '\0';\n  x[2] = '\0';\n  x[3] = '\x03';\n  sftp_pkt_adddata(psVar2,x,4);\n  sftp_send(psVar2);\n  psVar2 = sftp_recv();\n  if (psVar2 == (sftp_packet *)0x0) {\n    iVar3 = 0;\n    fxp_errtype = -1;\n    fxp_error_message = "could not connect";\n    goto LAB_000296af;\n  }\n  pcVar4 = "did not receive FXP_VERSION";\n  if (psVar2->type == 2) {\n    iVar3 = sftp_pkt_getuint32(psVar2,&remotever);\n    if (iVar3 == 0) {\n      fxp_errtype = -1;\n      fxp_error_message = "malformed FXP_VERSION packet";\n      sftp_pkt_free(psVar2);\n      iVar3 = 0;\n      goto LAB_000296af;\n    }\n    if (remotever < 4) {\n      iVar3 = 1;\n      sftp_pkt_free(psVar2);\n      goto LAB_000296af;\n    }\n    pcVar4 = "remote protocol is more advanced than we support";\n  }\n  iVar3 = 0;\n  fxp_errtype = -1;\n  fxp_error_message = pcVar4;\n  sftp_pkt_free(psVar2);\nLAB_000296af:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "fxp_init(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  sftp_packet *psVar2;\n  int iVar3;\n  char *pcVar4;\n  int in_GS_OFFSET;\n  int in_stack_ffffffe4;\n  ulong remotever;\n  uchar x [4];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  psVar2 = sftp_pkt_init(in_stack_ffffffe4);\n  x[0] = '\0';\n  x[1] = '\0';\n  x[2] = '\0';\n  x[3] = '\x03';\n  sftp_pkt_adddata(psVar2,x,4);\n  sftp_send(psVar2);\n  psVar2 = sftp_recv();\n  if (psVar2 == (sftp_packet *)0x0) {\n    iVar3 = 0;\n    fxp_errtype = -1;\n    fxp_error_message = "could not connect";\n    goto LAB_000296af;\n  }\n  pcVar4 = "did not receive FXP_VERSION";\n  if (psVar2->type == 2) {\n    iVar3 = sftp_pkt_getuint32(psVar2,&remotever);\n    if (iVar3 == 0) {\n      fxp_errtype = -1;\n      fxp_error_message = "malformed FXP_VERSION packet";\n      sftp_pkt_free(psVar2);\n      iVar3 = 0;\n      goto LAB_000296af;\n    }\n    if (remotever < 4) {\n      iVar3 = 1;\n      sftp_pkt_free(psVar2);\n      goto LAB_000296af;\n    }\n    pcVar4 = "remote protocol is more advanced than we support";\n  }\n  iVar3 = 0;\n  fxp_errtype = -1;\n  fxp_error_message = pcVar4;\n  sftp_pkt_free(psVar2);\nLAB_000296af:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "sftp_packet *psVar2;" type_identifier (pointer_declarator "*psVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int in_stack_ffffffe4;" primitive_type identifier ;) (declaration "ulong remotever;" type_identifier identifier ;) (declaration "uchar x [4];" type_identifier (array_declarator "x [4]" 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 "psVar2 = sftp_pkt_init(in_stack_ffffffe4);" (assignment_expression "psVar2 = sftp_pkt_init(in_stack_ffffffe4)" identifier = (call_expression "sftp_pkt_init(in_stack_ffffffe4)" identifier (argument_list "(in_stack_ffffffe4)" ( identifier )))) ;) (expression_statement "x[0] = '\0';" (assignment_expression "x[0] = '\0'" (subscript_expression "x[0]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "x[1] = '\0';" (assignment_expression "x[1] = '\0'" (subscript_expression "x[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "x[2] = '\0';" (assignment_expression "x[2] = '\0'" (subscript_expression "x[2]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "x[3] = '\x03';" (assignment_expression "x[3] = '\x03'" (subscript_expression "x[3]" identifier [ number_literal ]) = (char_literal "'\x03'" ' escape_sequence ')) ;) (expression_statement "sftp_pkt_adddata(psVar2,x,4);" (call_expression "sftp_pkt_adddata(psVar2,x,4)" identifier (argument_list "(psVar2,x,4)" ( identifier , identifier , number_literal ))) ;) (expression_statement "sftp_send(psVar2);" (call_expression "sftp_send(psVar2)" identifier (argument_list "(psVar2)" ( identifier ))) ;) (expression_statement "psVar2 = sftp_recv();" (assignment_expression "psVar2 = sftp_recv()" identifier = (call_expression "sftp_recv()" identifier (argument_list "()" ( )))) ;) (if_statement "if (psVar2 == (sftp_packet *)0x0) {\n    iVar3 = 0;\n    fxp_errtype = -1;\n    fxp_error_message = "could not connect";\n    goto LAB_000296af;\n  }" if (parenthesized_expression "(psVar2 == (sftp_packet *)0x0)" ( (binary_expression "psVar2 == (sftp_packet *)0x0" identifier == (cast_expression "(sftp_packet *)0x0" ( (type_descriptor "sftp_packet *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar3 = 0;\n    fxp_errtype = -1;\n    fxp_error_message = "could not connect";\n    goto LAB_000296af;\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "fxp_errtype = -1;" (assignment_expression "fxp_errtype = -1" identifier = number_literal) ;) (expression_statement "fxp_error_message = "could not connect";" (assignment_expression "fxp_error_message = "could not connect"" identifier = (string_literal ""could not connect"" " string_content ")) ;) (goto_statement "goto LAB_000296af;" goto statement_identifier ;) })) (expression_statement "pcVar4 = "did not receive FXP_VERSION";" (assignment_expression "pcVar4 = "did not receive FXP_VERSION"" identifier = (string_literal ""did not receive FXP_VERSION"" " string_content ")) ;) (if_statement "if (psVar2->type == 2) {\n    iVar3 = sftp_pkt_getuint32(psVar2,&remotever);\n    if (iVar3 == 0) {\n      fxp_errtype = -1;\n      fxp_error_message = "malformed FXP_VERSION packet";\n      sftp_pkt_free(psVar2);\n      iVar3 = 0;\n      goto LAB_000296af;\n    }\n    if (remotever < 4) {\n      iVar3 = 1;\n      sftp_pkt_free(psVar2);\n      goto LAB_000296af;\n    }\n    pcVar4 = "remote protocol is more advanced than we support";\n  }" if (parenthesized_expression "(psVar2->type == 2)" ( (binary_expression "psVar2->type == 2" (field_expression "psVar2->type" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    iVar3 = sftp_pkt_getuint32(psVar2,&remotever);\n    if (iVar3 == 0) {\n      fxp_errtype = -1;\n      fxp_error_message = "malformed FXP_VERSION packet";\n      sftp_pkt_free(psVar2);\n      iVar3 = 0;\n      goto LAB_000296af;\n    }\n    if (remotever < 4) {\n      iVar3 = 1;\n      sftp_pkt_free(psVar2);\n      goto LAB_000296af;\n    }\n    pcVar4 = "remote protocol is more advanced than we support";\n  }" { (expression_statement "iVar3 = sftp_pkt_getuint32(psVar2,&remotever);" (assignment_expression "iVar3 = sftp_pkt_getuint32(psVar2,&remotever)" identifier = (call_expression "sftp_pkt_getuint32(psVar2,&remotever)" identifier (argument_list "(psVar2,&remotever)" ( identifier , (pointer_expression "&remotever" & identifier) )))) ;) (if_statement "if (iVar3 == 0) {\n      fxp_errtype = -1;\n      fxp_error_message = "malformed FXP_VERSION packet";\n      sftp_pkt_free(psVar2);\n      iVar3 = 0;\n      goto LAB_000296af;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      fxp_errtype = -1;\n      fxp_error_message = "malformed FXP_VERSION packet";\n      sftp_pkt_free(psVar2);\n      iVar3 = 0;\n      goto LAB_000296af;\n    }" { (expression_statement "fxp_errtype = -1;" (assignment_expression "fxp_errtype = -1" identifier = number_literal) ;) (expression_statement "fxp_error_message = "malformed FXP_VERSION packet";" (assignment_expression "fxp_error_message = "malformed FXP_VERSION packet"" identifier = (string_literal ""malformed FXP_VERSION packet"" " string_content ")) ;) (expression_statement "sftp_pkt_free(psVar2);" (call_expression "sftp_pkt_free(psVar2)" identifier (argument_list "(psVar2)" ( identifier ))) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_000296af;" goto statement_identifier ;) })) (if_statement "if (remotever < 4) {\n      iVar3 = 1;\n      sftp_pkt_free(psVar2);\n      goto LAB_000296af;\n    }" if (parenthesized_expression "(remotever < 4)" ( (binary_expression "remotever < 4" identifier < number_literal) )) (compound_statement "{\n      iVar3 = 1;\n      sftp_pkt_free(psVar2);\n      goto LAB_000296af;\n    }" { (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;) (expression_statement "sftp_pkt_free(psVar2);" (call_expression "sftp_pkt_free(psVar2)" identifier (argument_list "(psVar2)" ( identifier ))) ;) (goto_statement "goto LAB_000296af;" goto statement_identifier ;) })) (expression_statement "pcVar4 = "remote protocol is more advanced than we support";" (assignment_expression "pcVar4 = "remote protocol is more advanced than we support"" identifier = (string_literal ""remote protocol is more advanced than we support"" " string_content ")) ;) })) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "fxp_errtype = -1;" (assignment_expression "fxp_errtype = -1" identifier = number_literal) ;) (expression_statement "fxp_error_message = pcVar4;" (assignment_expression "fxp_error_message = pcVar4" identifier = identifier) ;) (expression_statement "sftp_pkt_free(psVar2);" (call_expression "sftp_pkt_free(psVar2)" identifier (argument_list "(psVar2)" ( identifier ))) ;) (labeled_statement "LAB_000296af:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }" statement_identifier : (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\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    return iVar3;\n  }" { (return_statement "return iVar3;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined4 FUN_00029600(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  char *pcVar4;\n  int in_GS_OFFSET;\n  uint local_18;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = FUN_00028d00();\n  FUN_00028bb0();\n  FUN_00029380(uVar2);\n  iVar3 = FUN_000293f0();\n  if (iVar3 == 0) {\n    uVar2 = 0;\n    DAT_000aa3ec = 0xffffffff;\n    DAT_000aa3f0 = "could not connect";\n    goto LAB_000296af;\n  }\n  pcVar4 = "did not receive FXP_VERSION";\n  if (*(int *)(iVar3 + 0x10) == 2) {\n    iVar3 = FUN_000289d0();\n    if (iVar3 == 0) {\n      DAT_000aa3ec = 0xffffffff;\n      DAT_000aa3f0 = "malformed FXP_VERSION packet";\n      FUN_00028b30();\n      uVar2 = 0;\n      goto LAB_000296af;\n    }\n    if (local_18 < 4) {\n      uVar2 = 1;\n      FUN_00028b30();\n      goto LAB_000296af;\n    }\n    pcVar4 = "remote protocol is more advanced than we support";\n  }\n  uVar2 = 0;\n  DAT_000aa3ec = 0xffffffff;\n  DAT_000aa3f0 = pcVar4;\n  FUN_00028b30();\nLAB_000296af:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    \n  FUN_0006f430();\n}\n\n" (function_definition "undefined4 FUN_00029600(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  char *pcVar4;\n  int in_GS_OFFSET;\n  uint local_18;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = FUN_00028d00();\n  FUN_00028bb0();\n  FUN_00029380(uVar2);\n  iVar3 = FUN_000293f0();\n  if (iVar3 == 0) {\n    uVar2 = 0;\n    DAT_000aa3ec = 0xffffffff;\n    DAT_000aa3f0 = "could not connect";\n    goto LAB_000296af;\n  }\n  pcVar4 = "did not receive FXP_VERSION";\n  if (*(int *)(iVar3 + 0x10) == 2) {\n    iVar3 = FUN_000289d0();\n    if (iVar3 == 0) {\n      DAT_000aa3ec = 0xffffffff;\n      DAT_000aa3f0 = "malformed FXP_VERSION packet";\n      FUN_00028b30();\n      uVar2 = 0;\n      goto LAB_000296af;\n    }\n    if (local_18 < 4) {\n      uVar2 = 1;\n      FUN_00028b30();\n      goto LAB_000296af;\n    }\n    pcVar4 = "remote protocol is more advanced than we support";\n  }\n  uVar2 = 0;\n  DAT_000aa3ec = 0xffffffff;\n  DAT_000aa3f0 = pcVar4;\n  FUN_00028b30();\nLAB_000296af:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    \n  FUN_0006f430();\n}" type_identifier (function_declarator "FUN_00029600(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  char *pcVar4;\n  int in_GS_OFFSET;\n  uint local_18;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = FUN_00028d00();\n  FUN_00028bb0();\n  FUN_00029380(uVar2);\n  iVar3 = FUN_000293f0();\n  if (iVar3 == 0) {\n    uVar2 = 0;\n    DAT_000aa3ec = 0xffffffff;\n    DAT_000aa3f0 = "could not connect";\n    goto LAB_000296af;\n  }\n  pcVar4 = "did not receive FXP_VERSION";\n  if (*(int *)(iVar3 + 0x10) == 2) {\n    iVar3 = FUN_000289d0();\n    if (iVar3 == 0) {\n      DAT_000aa3ec = 0xffffffff;\n      DAT_000aa3f0 = "malformed FXP_VERSION packet";\n      FUN_00028b30();\n      uVar2 = 0;\n      goto LAB_000296af;\n    }\n    if (local_18 < 4) {\n      uVar2 = 1;\n      FUN_00028b30();\n      goto LAB_000296af;\n    }\n    pcVar4 = "remote protocol is more advanced than we support";\n  }\n  uVar2 = 0;\n  DAT_000aa3ec = 0xffffffff;\n  DAT_000aa3f0 = pcVar4;\n  FUN_00028b30();\nLAB_000296af:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    \n  FUN_0006f430();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uint local_18;" type_identifier identifier ;) (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 "uVar2 = FUN_00028d00();" (assignment_expression "uVar2 = FUN_00028d00()" identifier = (call_expression "FUN_00028d00()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_00028bb0();" (call_expression "FUN_00028bb0()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00029380(uVar2);" (call_expression "FUN_00029380(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "iVar3 = FUN_000293f0();" (assignment_expression "iVar3 = FUN_000293f0()" identifier = (call_expression "FUN_000293f0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 == 0) {\n    uVar2 = 0;\n    DAT_000aa3ec = 0xffffffff;\n    DAT_000aa3f0 = "could not connect";\n    goto LAB_000296af;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar2 = 0;\n    DAT_000aa3ec = 0xffffffff;\n    DAT_000aa3f0 = "could not connect";\n    goto LAB_000296af;\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (expression_statement "DAT_000aa3ec = 0xffffffff;" (assignment_expression "DAT_000aa3ec = 0xffffffff" identifier = number_literal) ;) (expression_statement "DAT_000aa3f0 = "could not connect";" (assignment_expression "DAT_000aa3f0 = "could not connect"" identifier = (string_literal ""could not connect"" " string_content ")) ;) (goto_statement "goto LAB_000296af;" goto statement_identifier ;) })) (expression_statement "pcVar4 = "did not receive FXP_VERSION";" (assignment_expression "pcVar4 = "did not receive FXP_VERSION"" identifier = (string_literal ""did not receive FXP_VERSION"" " string_content ")) ;) (if_statement "if (*(int *)(iVar3 + 0x10) == 2) {\n    iVar3 = FUN_000289d0();\n    if (iVar3 == 0) {\n      DAT_000aa3ec = 0xffffffff;\n      DAT_000aa3f0 = "malformed FXP_VERSION packet";\n      FUN_00028b30();\n      uVar2 = 0;\n      goto LAB_000296af;\n    }\n    if (local_18 < 4) {\n      uVar2 = 1;\n      FUN_00028b30();\n      goto LAB_000296af;\n    }\n    pcVar4 = "remote protocol is more advanced than we support";\n  }" if (parenthesized_expression "(*(int *)(iVar3 + 0x10) == 2)" ( (binary_expression "*(int *)(iVar3 + 0x10) == 2" (pointer_expression "*(int *)(iVar3 + 0x10)" * (cast_expression "(int *)(iVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar3 = FUN_000289d0();\n    if (iVar3 == 0) {\n      DAT_000aa3ec = 0xffffffff;\n      DAT_000aa3f0 = "malformed FXP_VERSION packet";\n      FUN_00028b30();\n      uVar2 = 0;\n      goto LAB_000296af;\n    }\n    if (local_18 < 4) {\n      uVar2 = 1;\n      FUN_00028b30();\n      goto LAB_000296af;\n    }\n    pcVar4 = "remote protocol is more advanced than we support";\n  }" { (expression_statement "iVar3 = FUN_000289d0();" (assignment_expression "iVar3 = FUN_000289d0()" identifier = (call_expression "FUN_000289d0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 == 0) {\n      DAT_000aa3ec = 0xffffffff;\n      DAT_000aa3f0 = "malformed FXP_VERSION packet";\n      FUN_00028b30();\n      uVar2 = 0;\n      goto LAB_000296af;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      DAT_000aa3ec = 0xffffffff;\n      DAT_000aa3f0 = "malformed FXP_VERSION packet";\n      FUN_00028b30();\n      uVar2 = 0;\n      goto LAB_000296af;\n    }" { (expression_statement "DAT_000aa3ec = 0xffffffff;" (assignment_expression "DAT_000aa3ec = 0xffffffff" identifier = number_literal) ;) (expression_statement "DAT_000aa3f0 = "malformed FXP_VERSION packet";" (assignment_expression "DAT_000aa3f0 = "malformed FXP_VERSION packet"" identifier = (string_literal ""malformed FXP_VERSION packet"" " string_content ")) ;) (expression_statement "FUN_00028b30();" (call_expression "FUN_00028b30()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_000296af;" goto statement_identifier ;) })) (if_statement "if (local_18 < 4) {\n      uVar2 = 1;\n      FUN_00028b30();\n      goto LAB_000296af;\n    }" if (parenthesized_expression "(local_18 < 4)" ( (binary_expression "local_18 < 4" identifier < number_literal) )) (compound_statement "{\n      uVar2 = 1;\n      FUN_00028b30();\n      goto LAB_000296af;\n    }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (expression_statement "FUN_00028b30();" (call_expression "FUN_00028b30()" identifier (argument_list "()" ( ))) ;) (goto_statement "goto LAB_000296af;" goto statement_identifier ;) })) (expression_statement "pcVar4 = "remote protocol is more advanced than we support";" (assignment_expression "pcVar4 = "remote protocol is more advanced than we support"" identifier = (string_literal ""remote protocol is more advanced than we support"" " string_content ")) ;) })) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (expression_statement "DAT_000aa3ec = 0xffffffff;" (assignment_expression "DAT_000aa3ec = 0xffffffff" identifier = number_literal) ;) (expression_statement "DAT_000aa3f0 = pcVar4;" (assignment_expression "DAT_000aa3f0 = pcVar4" identifier = identifier) ;) (expression_statement "FUN_00028b30();" (call_expression "FUN_00028b30()" identifier (argument_list "()" ( ))) ;) (labeled_statement "LAB_000296af:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }" statement_identifier : (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\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    return uVar2;\n  }" { (return_statement "return uVar2;" return identifier ;) }))) (expression_statement "FUN_0006f430();" (call_expression "FUN_0006f430()" 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 ;) (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 = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (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 ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (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 "undefined4 FUN_00029600(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  char *pcVar4;\n  int in_GS_OFFSET;\n  uint local_18;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = FUN_00028d00();\n  FUN_00028bb0();\n  FUN_00029380(uVar2);\n  iVar3 = FUN_000293f0();\n  if (iVar3 == 0) {\n    uVar2 = 0;\n    DAT_000aa3ec = 0xffffffff;\n    DAT_000aa3f0 = "could not connect";\n    goto LAB_000296af;\n  }\n  pcVar4 = "did not receive FXP_VERSION";\n  if (*(int *)(iVar3 + 0x10) == 2) {\n    iVar3 = FUN_000289d0();\n    if (iVar3 == 0) {\n      DAT_000aa3ec = 0xffffffff;\n      DAT_000aa3f0 = "malformed FXP_VERSION packet";\n      FUN_00028b30();\n      uVar2 = 0;\n      goto LAB_000296af;\n    }\n    if (local_18 < 4) {\n      uVar2 = 1;\n      FUN_00028b30();\n      goto LAB_000296af;\n    }\n    pcVar4 = "remote protocol is more advanced than we support";\n  }\n  uVar2 = 0;\n  DAT_000aa3ec = 0xffffffff;\n  DAT_000aa3f0 = pcVar4;\n  FUN_00028b30();\nLAB_000296af:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    \n  FUN_0006f430();\n}" (type_identifier "undefined4") (function_declarator "FUN_00029600(void)" (identifier "FUN_00029600") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  char *pcVar4;\n  int in_GS_OFFSET;\n  uint local_18;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = FUN_00028d00();\n  FUN_00028bb0();\n  FUN_00029380(uVar2);\n  iVar3 = FUN_000293f0();\n  if (iVar3 == 0) {\n    uVar2 = 0;\n    DAT_000aa3ec = 0xffffffff;\n    DAT_000aa3f0 = "could not connect";\n    goto LAB_000296af;\n  }\n  pcVar4 = "did not receive FXP_VERSION";\n  if (*(int *)(iVar3 + 0x10) == 2) {\n    iVar3 = FUN_000289d0();\n    if (iVar3 == 0) {\n      DAT_000aa3ec = 0xffffffff;\n      DAT_000aa3f0 = "malformed FXP_VERSION packet";\n      FUN_00028b30();\n      uVar2 = 0;\n      goto LAB_000296af;\n    }\n    if (local_18 < 4) {\n      uVar2 = 1;\n      FUN_00028b30();\n      goto LAB_000296af;\n    }\n    pcVar4 = "remote protocol is more advanced than we support";\n  }\n  uVar2 = 0;\n  DAT_000aa3ec = 0xffffffff;\n  DAT_000aa3f0 = pcVar4;\n  FUN_00028b30();\nLAB_000296af:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    \n  FUN_0006f430();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "uint local_18;" (type_identifier "uint") (identifier "local_18") (; ";")) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (= "=") (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 "uVar2 = FUN_00028d00();" (assignment_expression "uVar2 = FUN_00028d00()" (identifier "uVar2") (= "=") (call_expression "FUN_00028d00()" (identifier "FUN_00028d00") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "FUN_00028bb0();" (call_expression "FUN_00028bb0()" (identifier "FUN_00028bb0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_00029380(uVar2);" (call_expression "FUN_00029380(uVar2)" (identifier "FUN_00029380") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "iVar3 = FUN_000293f0();" (assignment_expression "iVar3 = FUN_000293f0()" (identifier "iVar3") (= "=") (call_expression "FUN_000293f0()" (identifier "FUN_000293f0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n    uVar2 = 0;\n    DAT_000aa3ec = 0xffffffff;\n    DAT_000aa3f0 = "could not connect";\n    goto LAB_000296af;\n  }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = 0;\n    DAT_000aa3ec = 0xffffffff;\n    DAT_000aa3f0 = "could not connect";\n    goto LAB_000296af;\n  }" ({ "{") (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (expression_statement "DAT_000aa3ec = 0xffffffff;" (assignment_expression "DAT_000aa3ec = 0xffffffff" (identifier "DAT_000aa3ec") (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "DAT_000aa3f0 = "could not connect";" (assignment_expression "DAT_000aa3f0 = "could not connect"" (identifier "DAT_000aa3f0") (= "=") (string_literal ""could not connect"" (" """) (string_content "could not connect") (" """))) (; ";")) (goto_statement "goto LAB_000296af;" (goto "goto") (statement_identifier "LAB_000296af") (; ";")) (} "}"))) (expression_statement "pcVar4 = "did not receive FXP_VERSION";" (assignment_expression "pcVar4 = "did not receive FXP_VERSION"" (identifier "pcVar4") (= "=") (string_literal ""did not receive FXP_VERSION"" (" """) (string_content "did not receive FXP_VERSION") (" """))) (; ";")) (if_statement "if (*(int *)(iVar3 + 0x10) == 2) {\n    iVar3 = FUN_000289d0();\n    if (iVar3 == 0) {\n      DAT_000aa3ec = 0xffffffff;\n      DAT_000aa3f0 = "malformed FXP_VERSION packet";\n      FUN_00028b30();\n      uVar2 = 0;\n      goto LAB_000296af;\n    }\n    if (local_18 < 4) {\n      uVar2 = 1;\n      FUN_00028b30();\n      goto LAB_000296af;\n    }\n    pcVar4 = "remote protocol is more advanced than we support";\n  }" (if "if") (parenthesized_expression "(*(int *)(iVar3 + 0x10) == 2)" (( "(") (binary_expression "*(int *)(iVar3 + 0x10) == 2" (pointer_expression "*(int *)(iVar3 + 0x10)" (* "*") (cast_expression "(int *)(iVar3 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x10)" (( "(") (binary_expression "iVar3 + 0x10" (identifier "iVar3") (+ "+") (number_literal "0x10")) () ")")))) (== "==") (number_literal "2")) () ")")) (compound_statement "{\n    iVar3 = FUN_000289d0();\n    if (iVar3 == 0) {\n      DAT_000aa3ec = 0xffffffff;\n      DAT_000aa3f0 = "malformed FXP_VERSION packet";\n      FUN_00028b30();\n      uVar2 = 0;\n      goto LAB_000296af;\n    }\n    if (local_18 < 4) {\n      uVar2 = 1;\n      FUN_00028b30();\n      goto LAB_000296af;\n    }\n    pcVar4 = "remote protocol is more advanced than we support";\n  }" ({ "{") (expression_statement "iVar3 = FUN_000289d0();" (assignment_expression "iVar3 = FUN_000289d0()" (identifier "iVar3") (= "=") (call_expression "FUN_000289d0()" (identifier "FUN_000289d0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n      DAT_000aa3ec = 0xffffffff;\n      DAT_000aa3f0 = "malformed FXP_VERSION packet";\n      FUN_00028b30();\n      uVar2 = 0;\n      goto LAB_000296af;\n    }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      DAT_000aa3ec = 0xffffffff;\n      DAT_000aa3f0 = "malformed FXP_VERSION packet";\n      FUN_00028b30();\n      uVar2 = 0;\n      goto LAB_000296af;\n    }" ({ "{") (expression_statement "DAT_000aa3ec = 0xffffffff;" (assignment_expression "DAT_000aa3ec = 0xffffffff" (identifier "DAT_000aa3ec") (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "DAT_000aa3f0 = "malformed FXP_VERSION packet";" (assignment_expression "DAT_000aa3f0 = "malformed FXP_VERSION packet"" (identifier "DAT_000aa3f0") (= "=") (string_literal ""malformed FXP_VERSION packet"" (" """) (string_content "malformed FXP_VERSION packet") (" """))) (; ";")) (expression_statement "FUN_00028b30();" (call_expression "FUN_00028b30()" (identifier "FUN_00028b30") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_000296af;" (goto "goto") (statement_identifier "LAB_000296af") (; ";")) (} "}"))) (if_statement "if (local_18 < 4) {\n      uVar2 = 1;\n      FUN_00028b30();\n      goto LAB_000296af;\n    }" (if "if") (parenthesized_expression "(local_18 < 4)" (( "(") (binary_expression "local_18 < 4" (identifier "local_18") (< "<") (number_literal "4")) () ")")) (compound_statement "{\n      uVar2 = 1;\n      FUN_00028b30();\n      goto LAB_000296af;\n    }" ({ "{") (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" (identifier "uVar2") (= "=") (number_literal "1")) (; ";")) (expression_statement "FUN_00028b30();" (call_expression "FUN_00028b30()" (identifier "FUN_00028b30") (argument_list "()" (( "(") () ")"))) (; ";")) (goto_statement "goto LAB_000296af;" (goto "goto") (statement_identifier "LAB_000296af") (; ";")) (} "}"))) (expression_statement "pcVar4 = "remote protocol is more advanced than we support";" (assignment_expression "pcVar4 = "remote protocol is more advanced than we support"" (identifier "pcVar4") (= "=") (string_literal ""remote protocol is more advanced than we support"" (" """) (string_content "remote protocol is more advanced than we support") (" """))) (; ";")) (} "}"))) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (expression_statement "DAT_000aa3ec = 0xffffffff;" (assignment_expression "DAT_000aa3ec = 0xffffffff" (identifier "DAT_000aa3ec") (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "DAT_000aa3f0 = pcVar4;" (assignment_expression "DAT_000aa3f0 = pcVar4" (identifier "DAT_000aa3f0") (= "=") (identifier "pcVar4")) (; ";")) (expression_statement "FUN_00028b30();" (call_expression "FUN_00028b30()" (identifier "FUN_00028b30") (argument_list "()" (( "(") () ")"))) (; ";")) (labeled_statement "LAB_000296af:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }" (statement_identifier "LAB_000296af") (: ":") (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (== "==") (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 uVar2;\n  }" ({ "{") (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))) (expression_statement "FUN_0006f430();" (call_expression "FUN_0006f430()" (identifier "FUN_0006f430") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* WARNING: Unknown calling convention */

int function_1(void)

{
  int var_11;
  type_1 *var_6;
  int var_8;
  char *pcVar4;
  int var_1;
  int in_stack_ffffffe4;
  type_2 var_10;
  type_3 x [4];
  
  var_11 = *(int *)(var_1 + 0x14);
  var_6 = var_2(in_stack_ffffffe4);
  x[0] = '\0';
  x[1] = '\0';
  x[2] = '\0';
  x[3] = '\x03';
  var_3(var_6,x,4);
  var_4(var_6);
  var_6 = var_5();
  if (var_6 == (type_1 *)0x0) {
    var_8 = 0;
    fxp_errtype = -1;
    fxp_error_message = "could not connect";
    goto LAB_000296af;
  }
  pcVar4 = "did not receive FXP_VERSION";
  if (var_6->type == 2) {
    var_8 = var_7(var_6,&var_10);
    if (var_8 == 0) {
      fxp_errtype = -1;
      fxp_error_message = "malformed FXP_VERSION packet";
      var_9(var_6);
      var_8 = 0;
      goto LAB_000296af;
    }
    if (var_10 < 4) {
      var_8 = 1;
      var_9(var_6);
      goto LAB_000296af;
    }
    pcVar4 = "remote protocol is more advanced than we support";
  }
  var_8 = 0;
  fxp_errtype = -1;
  fxp_error_message = pcVar4;
  var_9(var_6);
LAB_000296af:
  if (var_11 == *(int *)(var_1 + 0x14)) {
    return var_8;
  }
                    /* WARNING: Subroutine does not return */
  var_12();
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) 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: (type_identifier) declarator: (identifier)) (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: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (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))))))

/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

undefined4 MASKED(void)

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  char *pcVar4;
  int in_GS_OFFSET;
  uint local_18;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  uVar2 = FUN_00028d00();
  FUN_00028bb0();
  FUN_00029380(uVar2);
  iVar3 = FUN_000293f0();
  if (iVar3 == 0) {
    uVar2 = 0;
    DAT_000aa3ec = 0xffffffff;
    DAT_000aa3f0 = "could not connect";
    goto LAB_000296af;
  }
  pcVar4 = "did not receive FXP_VERSION";
  if (*(int *)(iVar3 + 0x10) == 2) {
    iVar3 = FUN_000289d0();
    if (iVar3 == 0) {
      DAT_000aa3ec = 0xffffffff;
      DAT_000aa3f0 = "malformed FXP_VERSION packet";
      FUN_00028b30();
      uVar2 = 0;
      goto LAB_000296af;
    }
    if (local_18 < 4) {
      uVar2 = 1;
      FUN_00028b30();
      goto LAB_000296af;
    }
    pcVar4 = "remote protocol is more advanced than we support";
  }
  uVar2 = 0;
  DAT_000aa3ec = 0xffffffff;
  DAT_000aa3f0 = pcVar4;
  FUN_00028b30();
LAB_000296af:
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006f430();
}

