
sftp_request * sftp_find_request(sftp_packet *pktin)

{
  int iVar1;
  sftp_request *psVar2;
  undefined *puVar3;
  ulong id;
  uint fid;
  int local_c;
  
  local_c = *(int *)PTR___stack_chk_guard_000bccd8;
  if (pktin == (sftp_packet *)0x0) {
    *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =
         PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;
    *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;
    psVar2 = (sftp_request *)0x0;
  }
  else {
    iVar1 = sftp_pkt_getuint32(pktin,&id);
    if (iVar1 == 0) {
      *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =
           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;
      *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;
      psVar2 = (sftp_request *)0x0;
    }
    else {
      fid = id;
      psVar2 = (sftp_request *)
               (*(code *)PTR_find234_000bc25c)
                         (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&fid,PTR_LAB_000bc3a0 + 0x599c
                         );
      if ((psVar2 == (sftp_request *)0x0) || (psVar2->registered == 0)) {
        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =
             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;
        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;
        psVar2 = (sftp_request *)0x0;
      }
      else {
        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),psVar2);
      }
    }
  }
  if (local_c == *(int *)PTR___stack_chk_guard_000bccd8) {
    return psVar2;
  }
  puVar3 = PTR___stack_chk_fail_000bccb0;
  (*(code *)PTR___stack_chk_fail_000bccb0)();
  return *(sftp_request **)(*(int *)(puVar3 + 0x85534) + -0x31b8);
}



int sftp_find_request(int param_1)

{
  int iVar1;
  undefined *puVar2;
  undefined4 local_14;
  undefined4 local_10;
  int local_c;
  
  local_c = *(int *)PTR___stack_chk_guard_000bccd8;
  if (param_1 == 0) {
    *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =
         PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;
    *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;
    iVar1 = 0;
  }
  else {
    iVar1 = FUN_00035910(param_1,&local_14);
    if (iVar1 == 0) {
      *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =
           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;
      *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;
      iVar1 = 0;
    }
    else {
      local_10 = local_14;
      iVar1 = (*(code *)PTR_find234_000bc25c)
                        (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,
                         PTR_LAB_000bc3a0 + 0x599c);
      if ((iVar1 == 0) || (*(int *)(iVar1 + 4) == 0)) {
        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =
             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;
        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;
        iVar1 = 0;
      }
      else {
        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);
      }
    }
  }
  if (local_c == *(int *)PTR___stack_chk_guard_000bccd8) {
    return iVar1;
  }
  puVar2 = PTR___stack_chk_fail_000bccb0;
  (*(code *)PTR___stack_chk_fail_000bccb0)();
  return *(int *)(*(int *)(puVar2 + 0x85534) + -0x31b8);
}


lui gp,0x9
addiu gp,gp,-0x29b8
addu gp,gp,t9
addiu sp,sp,-0x30
sw ra,0x2c(sp)
sw s0,0x28(sp)
sw gp,0x10(sp)
lw v0,-0x7478(gp)
lw v0,0x0(v0)
sw v0,0x24(sp)
beq a0,zero,0x00036bcc
_addiu a1,sp,0x1c
lw t9,-0x7db0(gp)
addiu t9,t9,0x5910
bal 0x00035910
_nop
lw gp,0x10(sp)
beq v0,zero,0x00036bf0
_lw v0,0x1c(sp)
sw v0,0x20(sp)
lw a2,-0x7db0(gp)
addiu a2,a2,0x599c
addiu a1,sp,0x20
lw v0,-0x7fd8(gp)
lw a0,-0x31c0(v0)
lw t9,-0x7ef4(gp)
jalr t9
_nop
lw gp,0x10(sp)
beq v0,zero,0x00036c14
_or s0,v0,zero
lw v0,0x4(v0)
beq v0,zero,0x00036c14
_or a1,s0,zero
lw v0,-0x7fd8(gp)
lw a0,-0x31c0(v0)
lw t9,-0x7f14(gp)
jalr t9
_nop
lw gp,0x10(sp)
or v0,s0,zero
lw a0,0x24(sp)
lw v1,-0x7478(gp)
lw v1,0x0(v1)
bne a0,v1,0x00036c38
_lw ra,0x2c(sp)
lw s0,0x28(sp)
jr ra
_addiu sp,sp,0x30
lw v1,-0x7fd8(gp)
lw v0,-0x7fc8(gp)
addiu v0,v0,-0x34f8
sw v0,-0x31b8(v1)
lw v0,-0x7fd8(gp)
li v1,-0x1
sw v1,-0x31bc(v0)
b 0x00036ba8
_or s0,a0,zero
lw v1,-0x7fd8(gp)
lw v0,-0x7fc8(gp)
addiu v0,v0,-0x34f8
sw v0,-0x31b8(v1)
lw v0,-0x7fd8(gp)
li v1,-0x1
sw v1,-0x31bc(v0)
b 0x00036ba8
_or s0,zero,zero
lw v1,-0x7fd8(gp)
lw v0,-0x7fc8(gp)
addiu v0,v0,-0x34d0
sw v0,-0x31b8(v1)
lw v0,-0x7fd8(gp)
li v1,-0x1
sw v1,-0x31bc(v0)
b 0x00036ba8
_or s0,zero,zero
lw t9,-0x74a0(gp)
jalr t9
_nop
(translation_unit "int sftp_find_request(int param_1)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined4 local_14;\n  undefined4 local_10;\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_000bccd8;\n  if (param_1 == 0) {\n    *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n         PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n    *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n    iVar1 = 0;\n  }\n  else {\n    iVar1 = FUN_00035910(param_1,&local_14);\n    if (iVar1 == 0) {\n      *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n      *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n      iVar1 = 0;\n    }\n    else {\n      local_10 = local_14;\n      iVar1 = (*(code *)PTR_find234_000bc25c)\n                        (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c);\n      if ((iVar1 == 0) || (*(int *)(iVar1 + 4) == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        iVar1 = 0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);\n      }\n    }\n  }\n  if (local_c == *(int *)PTR___stack_chk_guard_000bccd8) {\n    return iVar1;\n  }\n  puVar2 = PTR___stack_chk_fail_000bccb0;\n  (*(code *)PTR___stack_chk_fail_000bccb0)();\n  return *(int *)(*(int *)(puVar2 + 0x85534) + -0x31b8);\n}\n\n" (function_definition "int sftp_find_request(int param_1)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined4 local_14;\n  undefined4 local_10;\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_000bccd8;\n  if (param_1 == 0) {\n    *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n         PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n    *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n    iVar1 = 0;\n  }\n  else {\n    iVar1 = FUN_00035910(param_1,&local_14);\n    if (iVar1 == 0) {\n      *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n      *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n      iVar1 = 0;\n    }\n    else {\n      local_10 = local_14;\n      iVar1 = (*(code *)PTR_find234_000bc25c)\n                        (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c);\n      if ((iVar1 == 0) || (*(int *)(iVar1 + 4) == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        iVar1 = 0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);\n      }\n    }\n  }\n  if (local_c == *(int *)PTR___stack_chk_guard_000bccd8) {\n    return iVar1;\n  }\n  puVar2 = PTR___stack_chk_fail_000bccb0;\n  (*(code *)PTR___stack_chk_fail_000bccb0)();\n  return *(int *)(*(int *)(puVar2 + 0x85534) + -0x31b8);\n}" primitive_type (function_declarator "sftp_find_request(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  undefined4 local_14;\n  undefined4 local_10;\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_000bccd8;\n  if (param_1 == 0) {\n    *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n         PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n    *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n    iVar1 = 0;\n  }\n  else {\n    iVar1 = FUN_00035910(param_1,&local_14);\n    if (iVar1 == 0) {\n      *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n      *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n      iVar1 = 0;\n    }\n    else {\n      local_10 = local_14;\n      iVar1 = (*(code *)PTR_find234_000bc25c)\n                        (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c);\n      if ((iVar1 == 0) || (*(int *)(iVar1 + 4) == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        iVar1 = 0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);\n      }\n    }\n  }\n  if (local_c == *(int *)PTR___stack_chk_guard_000bccd8) {\n    return iVar1;\n  }\n  puVar2 = PTR___stack_chk_fail_000bccb0;\n  (*(code *)PTR___stack_chk_fail_000bccb0)();\n  return *(int *)(*(int *)(puVar2 + 0x85534) + -0x31b8);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 local_14;" type_identifier identifier ;) (declaration "undefined4 local_10;" type_identifier identifier ;) (declaration "int local_c;" primitive_type identifier ;) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_000bccd8;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_000bccd8" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000bccd8" * (cast_expression "(int *)PTR___stack_chk_guard_000bccd8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (param_1 == 0) {\n    *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n         PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n    *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n    iVar1 = 0;\n  }\n  else {\n    iVar1 = FUN_00035910(param_1,&local_14);\n    if (iVar1 == 0) {\n      *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n      *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n      iVar1 = 0;\n    }\n    else {\n      local_10 = local_14;\n      iVar1 = (*(code *)PTR_find234_000bc25c)\n                        (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c);\n      if ((iVar1 == 0) || (*(int *)(iVar1 + 4) == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        iVar1 = 0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);\n      }\n    }\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n         PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n    *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n    iVar1 = 0;\n  }" { (expression_statement "*(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n         PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;" (assignment_expression "*(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n         PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8" (pointer_expression "*(undefined **)(PTR_DAT_000bc178 + -0x31b8)" * (cast_expression "(undefined **)(PTR_DAT_000bc178 + -0x31b8)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000bc178 + -0x31b8)" ( (binary_expression "PTR_DAT_000bc178 + -0x31b8" identifier + number_literal) )))) = (binary_expression "PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;" (assignment_expression "*(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff" (pointer_expression "*(undefined4 *)(PTR_DAT_000bc178 + -0x31bc)" * (cast_expression "(undefined4 *)(PTR_DAT_000bc178 + -0x31bc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000bc178 + -0x31bc)" ( (binary_expression "PTR_DAT_000bc178 + -0x31bc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar1 = FUN_00035910(param_1,&local_14);\n    if (iVar1 == 0) {\n      *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n      *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n      iVar1 = 0;\n    }\n    else {\n      local_10 = local_14;\n      iVar1 = (*(code *)PTR_find234_000bc25c)\n                        (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c);\n      if ((iVar1 == 0) || (*(int *)(iVar1 + 4) == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        iVar1 = 0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);\n      }\n    }\n  }" else (compound_statement "{\n    iVar1 = FUN_00035910(param_1,&local_14);\n    if (iVar1 == 0) {\n      *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n      *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n      iVar1 = 0;\n    }\n    else {\n      local_10 = local_14;\n      iVar1 = (*(code *)PTR_find234_000bc25c)\n                        (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c);\n      if ((iVar1 == 0) || (*(int *)(iVar1 + 4) == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        iVar1 = 0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);\n      }\n    }\n  }" { (expression_statement "iVar1 = FUN_00035910(param_1,&local_14);" (assignment_expression "iVar1 = FUN_00035910(param_1,&local_14)" identifier = (call_expression "FUN_00035910(param_1,&local_14)" identifier (argument_list "(param_1,&local_14)" ( identifier , (pointer_expression "&local_14" & identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n      *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n      *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n      iVar1 = 0;\n    }\n    else {\n      local_10 = local_14;\n      iVar1 = (*(code *)PTR_find234_000bc25c)\n                        (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c);\n      if ((iVar1 == 0) || (*(int *)(iVar1 + 4) == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        iVar1 = 0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);\n      }\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n      *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n      iVar1 = 0;\n    }" { (expression_statement "*(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;" (assignment_expression "*(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8" (pointer_expression "*(undefined **)(PTR_DAT_000bc178 + -0x31b8)" * (cast_expression "(undefined **)(PTR_DAT_000bc178 + -0x31b8)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000bc178 + -0x31b8)" ( (binary_expression "PTR_DAT_000bc178 + -0x31b8" identifier + number_literal) )))) = (binary_expression "PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;" (assignment_expression "*(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff" (pointer_expression "*(undefined4 *)(PTR_DAT_000bc178 + -0x31bc)" * (cast_expression "(undefined4 *)(PTR_DAT_000bc178 + -0x31bc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000bc178 + -0x31bc)" ( (binary_expression "PTR_DAT_000bc178 + -0x31bc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      local_10 = local_14;\n      iVar1 = (*(code *)PTR_find234_000bc25c)\n                        (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c);\n      if ((iVar1 == 0) || (*(int *)(iVar1 + 4) == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        iVar1 = 0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);\n      }\n    }" else (compound_statement "{\n      local_10 = local_14;\n      iVar1 = (*(code *)PTR_find234_000bc25c)\n                        (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c);\n      if ((iVar1 == 0) || (*(int *)(iVar1 + 4) == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        iVar1 = 0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);\n      }\n    }" { (expression_statement "local_10 = local_14;" (assignment_expression "local_10 = local_14" identifier = identifier) ;) (expression_statement "iVar1 = (*(code *)PTR_find234_000bc25c)\n                        (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c);" (assignment_expression "iVar1 = (*(code *)PTR_find234_000bc25c)\n                        (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c)" identifier = (call_expression "(*(code *)PTR_find234_000bc25c)\n                        (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c)" (parenthesized_expression "(*(code *)PTR_find234_000bc25c)" ( (pointer_expression "*(code *)PTR_find234_000bc25c" * (cast_expression "(code *)PTR_find234_000bc25c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c)" ( (pointer_expression "*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0)" * (cast_expression "(undefined4 *)(PTR_DAT_000bc178 + -0x31c0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000bc178 + -0x31c0)" ( (binary_expression "PTR_DAT_000bc178 + -0x31c0" identifier + number_literal) )))) , (pointer_expression "&local_10" & identifier) , (binary_expression "PTR_LAB_000bc3a0 + 0x599c" identifier + number_literal) )))) ;) (if_statement "if ((iVar1 == 0) || (*(int *)(iVar1 + 4) == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        iVar1 = 0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);\n      }" if (parenthesized_expression "((iVar1 == 0) || (*(int *)(iVar1 + 4) == 0))" ( (binary_expression "(iVar1 == 0) || (*(int *)(iVar1 + 4) == 0)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) || (parenthesized_expression "(*(int *)(iVar1 + 4) == 0)" ( (binary_expression "*(int *)(iVar1 + 4) == 0" (pointer_expression "*(int *)(iVar1 + 4)" * (cast_expression "(int *)(iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        iVar1 = 0;\n      }" { (expression_statement "*(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;" (assignment_expression "*(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0" (pointer_expression "*(undefined **)(PTR_DAT_000bc178 + -0x31b8)" * (cast_expression "(undefined **)(PTR_DAT_000bc178 + -0x31b8)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000bc178 + -0x31b8)" ( (binary_expression "PTR_DAT_000bc178 + -0x31b8" identifier + number_literal) )))) = (binary_expression "PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;" (assignment_expression "*(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff" (pointer_expression "*(undefined4 *)(PTR_DAT_000bc178 + -0x31bc)" * (cast_expression "(undefined4 *)(PTR_DAT_000bc178 + -0x31bc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000bc178 + -0x31bc)" ( (binary_expression "PTR_DAT_000bc178 + -0x31bc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);\n      }" else (compound_statement "{\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);\n      }" { (expression_statement "(*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);" (call_expression "(*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1)" (parenthesized_expression "(*(code *)PTR_del234_000bc23c)" ( (pointer_expression "*(code *)PTR_del234_000bc23c" * (cast_expression "(code *)PTR_del234_000bc23c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1)" ( (pointer_expression "*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0)" * (cast_expression "(undefined4 *)(PTR_DAT_000bc178 + -0x31c0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000bc178 + -0x31c0)" ( (binary_expression "PTR_DAT_000bc178 + -0x31c0" identifier + number_literal) )))) , identifier ))) ;) }))) }))) }))) (if_statement "if (local_c == *(int *)PTR___stack_chk_guard_000bccd8) {\n    return iVar1;\n  }" if (parenthesized_expression "(local_c == *(int *)PTR___stack_chk_guard_000bccd8)" ( (binary_expression "local_c == *(int *)PTR___stack_chk_guard_000bccd8" identifier == (pointer_expression "*(int *)PTR___stack_chk_guard_000bccd8" * (cast_expression "(int *)PTR___stack_chk_guard_000bccd8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "puVar2 = PTR___stack_chk_fail_000bccb0;" (assignment_expression "puVar2 = PTR___stack_chk_fail_000bccb0" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000bccb0)();" (call_expression "(*(code *)PTR___stack_chk_fail_000bccb0)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000bccb0)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000bccb0" * (cast_expression "(code *)PTR___stack_chk_fail_000bccb0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (return_statement "return *(int *)(*(int *)(puVar2 + 0x85534) + -0x31b8);" return (pointer_expression "*(int *)(*(int *)(puVar2 + 0x85534) + -0x31b8)" * (cast_expression "(int *)(*(int *)(puVar2 + 0x85534) + -0x31b8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar2 + 0x85534) + -0x31b8)" ( (binary_expression "*(int *)(puVar2 + 0x85534) + -0x31b8" (pointer_expression "*(int *)(puVar2 + 0x85534)" * (cast_expression "(int *)(puVar2 + 0x85534)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x85534)" ( (binary_expression "puVar2 + 0x85534" identifier + number_literal) )))) + number_literal) )))) ;) })))
(translation_unit "sftp_request * sftp_find_request(sftp_packet *pktin)\n\n{\n  int iVar1;\n  sftp_request *psVar2;\n  undefined *puVar3;\n  ulong id;\n  uint fid;\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_000bccd8;\n  if (pktin == (sftp_packet *)0x0) {\n    *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n         PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n    *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n    psVar2 = (sftp_request *)0x0;\n  }\n  else {\n    iVar1 = sftp_pkt_getuint32(pktin,&id);\n    if (iVar1 == 0) {\n      *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n      *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n      psVar2 = (sftp_request *)0x0;\n    }\n    else {\n      fid = id;\n      psVar2 = (sftp_request *)\n               (*(code *)PTR_find234_000bc25c)\n                         (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&fid,PTR_LAB_000bc3a0 + 0x599c\n                         );\n      if ((psVar2 == (sftp_request *)0x0) || (psVar2->registered == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        psVar2 = (sftp_request *)0x0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),psVar2);\n      }\n    }\n  }\n  if (local_c == *(int *)PTR___stack_chk_guard_000bccd8) {\n    return psVar2;\n  }\n  puVar3 = PTR___stack_chk_fail_000bccb0;\n  (*(code *)PTR___stack_chk_fail_000bccb0)();\n  return *(sftp_request **)(*(int *)(puVar3 + 0x85534) + -0x31b8);\n}\n\n" (function_definition "sftp_request * sftp_find_request(sftp_packet *pktin)\n\n{\n  int iVar1;\n  sftp_request *psVar2;\n  undefined *puVar3;\n  ulong id;\n  uint fid;\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_000bccd8;\n  if (pktin == (sftp_packet *)0x0) {\n    *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n         PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n    *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n    psVar2 = (sftp_request *)0x0;\n  }\n  else {\n    iVar1 = sftp_pkt_getuint32(pktin,&id);\n    if (iVar1 == 0) {\n      *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n      *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n      psVar2 = (sftp_request *)0x0;\n    }\n    else {\n      fid = id;\n      psVar2 = (sftp_request *)\n               (*(code *)PTR_find234_000bc25c)\n                         (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&fid,PTR_LAB_000bc3a0 + 0x599c\n                         );\n      if ((psVar2 == (sftp_request *)0x0) || (psVar2->registered == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        psVar2 = (sftp_request *)0x0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),psVar2);\n      }\n    }\n  }\n  if (local_c == *(int *)PTR___stack_chk_guard_000bccd8) {\n    return psVar2;\n  }\n  puVar3 = PTR___stack_chk_fail_000bccb0;\n  (*(code *)PTR___stack_chk_fail_000bccb0)();\n  return *(sftp_request **)(*(int *)(puVar3 + 0x85534) + -0x31b8);\n}" type_identifier (pointer_declarator "* sftp_find_request(sftp_packet *pktin)" * (function_declarator "sftp_find_request(sftp_packet *pktin)" identifier (parameter_list "(sftp_packet *pktin)" ( (parameter_declaration "sftp_packet *pktin" type_identifier (pointer_declarator "*pktin" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  sftp_request *psVar2;\n  undefined *puVar3;\n  ulong id;\n  uint fid;\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_000bccd8;\n  if (pktin == (sftp_packet *)0x0) {\n    *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n         PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n    *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n    psVar2 = (sftp_request *)0x0;\n  }\n  else {\n    iVar1 = sftp_pkt_getuint32(pktin,&id);\n    if (iVar1 == 0) {\n      *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n      *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n      psVar2 = (sftp_request *)0x0;\n    }\n    else {\n      fid = id;\n      psVar2 = (sftp_request *)\n               (*(code *)PTR_find234_000bc25c)\n                         (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&fid,PTR_LAB_000bc3a0 + 0x599c\n                         );\n      if ((psVar2 == (sftp_request *)0x0) || (psVar2->registered == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        psVar2 = (sftp_request *)0x0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),psVar2);\n      }\n    }\n  }\n  if (local_c == *(int *)PTR___stack_chk_guard_000bccd8) {\n    return psVar2;\n  }\n  puVar3 = PTR___stack_chk_fail_000bccb0;\n  (*(code *)PTR___stack_chk_fail_000bccb0)();\n  return *(sftp_request **)(*(int *)(puVar3 + 0x85534) + -0x31b8);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "sftp_request *psVar2;" type_identifier (pointer_declarator "*psVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "ulong id;" type_identifier identifier ;) (declaration "uint fid;" type_identifier identifier ;) (declaration "int local_c;" primitive_type identifier ;) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_000bccd8;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_000bccd8" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000bccd8" * (cast_expression "(int *)PTR___stack_chk_guard_000bccd8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (pktin == (sftp_packet *)0x0) {\n    *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n         PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n    *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n    psVar2 = (sftp_request *)0x0;\n  }\n  else {\n    iVar1 = sftp_pkt_getuint32(pktin,&id);\n    if (iVar1 == 0) {\n      *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n      *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n      psVar2 = (sftp_request *)0x0;\n    }\n    else {\n      fid = id;\n      psVar2 = (sftp_request *)\n               (*(code *)PTR_find234_000bc25c)\n                         (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&fid,PTR_LAB_000bc3a0 + 0x599c\n                         );\n      if ((psVar2 == (sftp_request *)0x0) || (psVar2->registered == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        psVar2 = (sftp_request *)0x0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),psVar2);\n      }\n    }\n  }" if (parenthesized_expression "(pktin == (sftp_packet *)0x0)" ( (binary_expression "pktin == (sftp_packet *)0x0" identifier == (cast_expression "(sftp_packet *)0x0" ( (type_descriptor "sftp_packet *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n         PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n    *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n    psVar2 = (sftp_request *)0x0;\n  }" { (expression_statement "*(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n         PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;" (assignment_expression "*(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n         PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8" (pointer_expression "*(undefined **)(PTR_DAT_000bc178 + -0x31b8)" * (cast_expression "(undefined **)(PTR_DAT_000bc178 + -0x31b8)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000bc178 + -0x31b8)" ( (binary_expression "PTR_DAT_000bc178 + -0x31b8" identifier + number_literal) )))) = (binary_expression "PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;" (assignment_expression "*(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff" (pointer_expression "*(undefined4 *)(PTR_DAT_000bc178 + -0x31bc)" * (cast_expression "(undefined4 *)(PTR_DAT_000bc178 + -0x31bc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000bc178 + -0x31bc)" ( (binary_expression "PTR_DAT_000bc178 + -0x31bc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "psVar2 = (sftp_request *)0x0;" (assignment_expression "psVar2 = (sftp_request *)0x0" identifier = (cast_expression "(sftp_request *)0x0" ( (type_descriptor "sftp_request *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    iVar1 = sftp_pkt_getuint32(pktin,&id);\n    if (iVar1 == 0) {\n      *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n      *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n      psVar2 = (sftp_request *)0x0;\n    }\n    else {\n      fid = id;\n      psVar2 = (sftp_request *)\n               (*(code *)PTR_find234_000bc25c)\n                         (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&fid,PTR_LAB_000bc3a0 + 0x599c\n                         );\n      if ((psVar2 == (sftp_request *)0x0) || (psVar2->registered == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        psVar2 = (sftp_request *)0x0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),psVar2);\n      }\n    }\n  }" else (compound_statement "{\n    iVar1 = sftp_pkt_getuint32(pktin,&id);\n    if (iVar1 == 0) {\n      *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n      *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n      psVar2 = (sftp_request *)0x0;\n    }\n    else {\n      fid = id;\n      psVar2 = (sftp_request *)\n               (*(code *)PTR_find234_000bc25c)\n                         (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&fid,PTR_LAB_000bc3a0 + 0x599c\n                         );\n      if ((psVar2 == (sftp_request *)0x0) || (psVar2->registered == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        psVar2 = (sftp_request *)0x0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),psVar2);\n      }\n    }\n  }" { (expression_statement "iVar1 = sftp_pkt_getuint32(pktin,&id);" (assignment_expression "iVar1 = sftp_pkt_getuint32(pktin,&id)" identifier = (call_expression "sftp_pkt_getuint32(pktin,&id)" identifier (argument_list "(pktin,&id)" ( identifier , (pointer_expression "&id" & identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n      *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n      *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n      psVar2 = (sftp_request *)0x0;\n    }\n    else {\n      fid = id;\n      psVar2 = (sftp_request *)\n               (*(code *)PTR_find234_000bc25c)\n                         (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&fid,PTR_LAB_000bc3a0 + 0x599c\n                         );\n      if ((psVar2 == (sftp_request *)0x0) || (psVar2->registered == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        psVar2 = (sftp_request *)0x0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),psVar2);\n      }\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n      *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n      psVar2 = (sftp_request *)0x0;\n    }" { (expression_statement "*(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;" (assignment_expression "*(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8" (pointer_expression "*(undefined **)(PTR_DAT_000bc178 + -0x31b8)" * (cast_expression "(undefined **)(PTR_DAT_000bc178 + -0x31b8)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000bc178 + -0x31b8)" ( (binary_expression "PTR_DAT_000bc178 + -0x31b8" identifier + number_literal) )))) = (binary_expression "PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;" (assignment_expression "*(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff" (pointer_expression "*(undefined4 *)(PTR_DAT_000bc178 + -0x31bc)" * (cast_expression "(undefined4 *)(PTR_DAT_000bc178 + -0x31bc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000bc178 + -0x31bc)" ( (binary_expression "PTR_DAT_000bc178 + -0x31bc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "psVar2 = (sftp_request *)0x0;" (assignment_expression "psVar2 = (sftp_request *)0x0" identifier = (cast_expression "(sftp_request *)0x0" ( (type_descriptor "sftp_request *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      fid = id;\n      psVar2 = (sftp_request *)\n               (*(code *)PTR_find234_000bc25c)\n                         (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&fid,PTR_LAB_000bc3a0 + 0x599c\n                         );\n      if ((psVar2 == (sftp_request *)0x0) || (psVar2->registered == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        psVar2 = (sftp_request *)0x0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),psVar2);\n      }\n    }" else (compound_statement "{\n      fid = id;\n      psVar2 = (sftp_request *)\n               (*(code *)PTR_find234_000bc25c)\n                         (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&fid,PTR_LAB_000bc3a0 + 0x599c\n                         );\n      if ((psVar2 == (sftp_request *)0x0) || (psVar2->registered == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        psVar2 = (sftp_request *)0x0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),psVar2);\n      }\n    }" { (expression_statement "fid = id;" (assignment_expression "fid = id" identifier = identifier) ;) (expression_statement "psVar2 = (sftp_request *)\n               (*(code *)PTR_find234_000bc25c)\n                         (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&fid,PTR_LAB_000bc3a0 + 0x599c\n                         );" (assignment_expression "psVar2 = (sftp_request *)\n               (*(code *)PTR_find234_000bc25c)\n                         (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&fid,PTR_LAB_000bc3a0 + 0x599c\n                         )" identifier = (cast_expression "(sftp_request *)\n               (*(code *)PTR_find234_000bc25c)\n                         (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&fid,PTR_LAB_000bc3a0 + 0x599c\n                         )" ( (type_descriptor "sftp_request *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_find234_000bc25c)\n                         (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&fid,PTR_LAB_000bc3a0 + 0x599c\n                         )" (parenthesized_expression "(*(code *)PTR_find234_000bc25c)" ( (pointer_expression "*(code *)PTR_find234_000bc25c" * (cast_expression "(code *)PTR_find234_000bc25c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&fid,PTR_LAB_000bc3a0 + 0x599c\n                         )" ( (pointer_expression "*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0)" * (cast_expression "(undefined4 *)(PTR_DAT_000bc178 + -0x31c0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000bc178 + -0x31c0)" ( (binary_expression "PTR_DAT_000bc178 + -0x31c0" identifier + number_literal) )))) , (pointer_expression "&fid" & identifier) , (binary_expression "PTR_LAB_000bc3a0 + 0x599c" identifier + number_literal) ))))) ;) (if_statement "if ((psVar2 == (sftp_request *)0x0) || (psVar2->registered == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        psVar2 = (sftp_request *)0x0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),psVar2);\n      }" if (parenthesized_expression "((psVar2 == (sftp_request *)0x0) || (psVar2->registered == 0))" ( (binary_expression "(psVar2 == (sftp_request *)0x0) || (psVar2->registered == 0)" (parenthesized_expression "(psVar2 == (sftp_request *)0x0)" ( (binary_expression "psVar2 == (sftp_request *)0x0" identifier == (cast_expression "(sftp_request *)0x0" ( (type_descriptor "sftp_request *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(psVar2->registered == 0)" ( (binary_expression "psVar2->registered == 0" (field_expression "psVar2->registered" identifier -> field_identifier) == number_literal) ))) )) (compound_statement "{\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        psVar2 = (sftp_request *)0x0;\n      }" { (expression_statement "*(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;" (assignment_expression "*(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0" (pointer_expression "*(undefined **)(PTR_DAT_000bc178 + -0x31b8)" * (cast_expression "(undefined **)(PTR_DAT_000bc178 + -0x31b8)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000bc178 + -0x31b8)" ( (binary_expression "PTR_DAT_000bc178 + -0x31b8" identifier + number_literal) )))) = (binary_expression "PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;" (assignment_expression "*(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff" (pointer_expression "*(undefined4 *)(PTR_DAT_000bc178 + -0x31bc)" * (cast_expression "(undefined4 *)(PTR_DAT_000bc178 + -0x31bc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000bc178 + -0x31bc)" ( (binary_expression "PTR_DAT_000bc178 + -0x31bc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "psVar2 = (sftp_request *)0x0;" (assignment_expression "psVar2 = (sftp_request *)0x0" identifier = (cast_expression "(sftp_request *)0x0" ( (type_descriptor "sftp_request *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),psVar2);\n      }" else (compound_statement "{\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),psVar2);\n      }" { (expression_statement "(*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),psVar2);" (call_expression "(*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),psVar2)" (parenthesized_expression "(*(code *)PTR_del234_000bc23c)" ( (pointer_expression "*(code *)PTR_del234_000bc23c" * (cast_expression "(code *)PTR_del234_000bc23c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),psVar2)" ( (pointer_expression "*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0)" * (cast_expression "(undefined4 *)(PTR_DAT_000bc178 + -0x31c0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000bc178 + -0x31c0)" ( (binary_expression "PTR_DAT_000bc178 + -0x31c0" identifier + number_literal) )))) , identifier ))) ;) }))) }))) }))) (if_statement "if (local_c == *(int *)PTR___stack_chk_guard_000bccd8) {\n    return psVar2;\n  }" if (parenthesized_expression "(local_c == *(int *)PTR___stack_chk_guard_000bccd8)" ( (binary_expression "local_c == *(int *)PTR___stack_chk_guard_000bccd8" identifier == (pointer_expression "*(int *)PTR___stack_chk_guard_000bccd8" * (cast_expression "(int *)PTR___stack_chk_guard_000bccd8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return psVar2;\n  }" { (return_statement "return psVar2;" return identifier ;) })) (expression_statement "puVar3 = PTR___stack_chk_fail_000bccb0;" (assignment_expression "puVar3 = PTR___stack_chk_fail_000bccb0" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000bccb0)();" (call_expression "(*(code *)PTR___stack_chk_fail_000bccb0)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000bccb0)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000bccb0" * (cast_expression "(code *)PTR___stack_chk_fail_000bccb0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (return_statement "return *(sftp_request **)(*(int *)(puVar3 + 0x85534) + -0x31b8);" return (pointer_expression "*(sftp_request **)(*(int *)(puVar3 + 0x85534) + -0x31b8)" * (cast_expression "(sftp_request **)(*(int *)(puVar3 + 0x85534) + -0x31b8)" ( (type_descriptor "sftp_request **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(puVar3 + 0x85534) + -0x31b8)" ( (binary_expression "*(int *)(puVar3 + 0x85534) + -0x31b8" (pointer_expression "*(int *)(puVar3 + 0x85534)" * (cast_expression "(int *)(puVar3 + 0x85534)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x85534)" ( (binary_expression "puVar3 + 0x85534" identifier + number_literal) )))) + number_literal) )))) ;) })))
(translation_unit "int sftp_find_request(int param_1)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined4 local_14;\n  undefined4 local_10;\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_000bccd8;\n  if (param_1 == 0) {\n    *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n         PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n    *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n    iVar1 = 0;\n  }\n  else {\n    iVar1 = FUN_00035910(param_1,&local_14);\n    if (iVar1 == 0) {\n      *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n      *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n      iVar1 = 0;\n    }\n    else {\n      local_10 = local_14;\n      iVar1 = (*(code *)PTR_find234_000bc25c)\n                        (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c);\n      if ((iVar1 == 0) || (*(int *)(iVar1 + 4) == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        iVar1 = 0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);\n      }\n    }\n  }\n  if (local_c == *(int *)PTR___stack_chk_guard_000bccd8) {\n    return iVar1;\n  }\n  puVar2 = PTR___stack_chk_fail_000bccb0;\n  (*(code *)PTR___stack_chk_fail_000bccb0)();\n  return *(int *)(*(int *)(puVar2 + 0x85534) + -0x31b8);\n}\n\n" (function_definition "int sftp_find_request(int param_1)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined4 local_14;\n  undefined4 local_10;\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_000bccd8;\n  if (param_1 == 0) {\n    *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n         PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n    *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n    iVar1 = 0;\n  }\n  else {\n    iVar1 = FUN_00035910(param_1,&local_14);\n    if (iVar1 == 0) {\n      *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n      *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n      iVar1 = 0;\n    }\n    else {\n      local_10 = local_14;\n      iVar1 = (*(code *)PTR_find234_000bc25c)\n                        (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c);\n      if ((iVar1 == 0) || (*(int *)(iVar1 + 4) == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        iVar1 = 0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);\n      }\n    }\n  }\n  if (local_c == *(int *)PTR___stack_chk_guard_000bccd8) {\n    return iVar1;\n  }\n  puVar2 = PTR___stack_chk_fail_000bccb0;\n  (*(code *)PTR___stack_chk_fail_000bccb0)();\n  return *(int *)(*(int *)(puVar2 + 0x85534) + -0x31b8);\n}" primitive_type (function_declarator "sftp_find_request(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  undefined4 local_14;\n  undefined4 local_10;\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_000bccd8;\n  if (param_1 == 0) {\n    *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n         PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n    *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n    iVar1 = 0;\n  }\n  else {\n    iVar1 = FUN_00035910(param_1,&local_14);\n    if (iVar1 == 0) {\n      *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n      *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n      iVar1 = 0;\n    }\n    else {\n      local_10 = local_14;\n      iVar1 = (*(code *)PTR_find234_000bc25c)\n                        (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c);\n      if ((iVar1 == 0) || (*(int *)(iVar1 + 4) == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        iVar1 = 0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);\n      }\n    }\n  }\n  if (local_c == *(int *)PTR___stack_chk_guard_000bccd8) {\n    return iVar1;\n  }\n  puVar2 = PTR___stack_chk_fail_000bccb0;\n  (*(code *)PTR___stack_chk_fail_000bccb0)();\n  return *(int *)(*(int *)(puVar2 + 0x85534) + -0x31b8);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 local_14;" type_identifier identifier ;) (declaration "undefined4 local_10;" type_identifier identifier ;) (declaration "int local_c;" primitive_type identifier ;) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_000bccd8;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_000bccd8" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000bccd8" * (cast_expression "(int *)PTR___stack_chk_guard_000bccd8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (param_1 == 0) {\n    *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n         PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n    *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n    iVar1 = 0;\n  }\n  else {\n    iVar1 = FUN_00035910(param_1,&local_14);\n    if (iVar1 == 0) {\n      *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n      *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n      iVar1 = 0;\n    }\n    else {\n      local_10 = local_14;\n      iVar1 = (*(code *)PTR_find234_000bc25c)\n                        (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c);\n      if ((iVar1 == 0) || (*(int *)(iVar1 + 4) == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        iVar1 = 0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);\n      }\n    }\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n         PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n    *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n    iVar1 = 0;\n  }" { (expression_statement "*(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n         PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;" (assignment_expression "*(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n         PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8" (pointer_expression "*(undefined **)(PTR_DAT_000bc178 + -0x31b8)" * (cast_expression "(undefined **)(PTR_DAT_000bc178 + -0x31b8)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000bc178 + -0x31b8)" ( (binary_expression "PTR_DAT_000bc178 + -0x31b8" identifier + number_literal) )))) = (binary_expression "PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;" (assignment_expression "*(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff" (pointer_expression "*(undefined4 *)(PTR_DAT_000bc178 + -0x31bc)" * (cast_expression "(undefined4 *)(PTR_DAT_000bc178 + -0x31bc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000bc178 + -0x31bc)" ( (binary_expression "PTR_DAT_000bc178 + -0x31bc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar1 = FUN_00035910(param_1,&local_14);\n    if (iVar1 == 0) {\n      *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n      *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n      iVar1 = 0;\n    }\n    else {\n      local_10 = local_14;\n      iVar1 = (*(code *)PTR_find234_000bc25c)\n                        (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c);\n      if ((iVar1 == 0) || (*(int *)(iVar1 + 4) == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        iVar1 = 0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);\n      }\n    }\n  }" else (compound_statement "{\n    iVar1 = FUN_00035910(param_1,&local_14);\n    if (iVar1 == 0) {\n      *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n      *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n      iVar1 = 0;\n    }\n    else {\n      local_10 = local_14;\n      iVar1 = (*(code *)PTR_find234_000bc25c)\n                        (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c);\n      if ((iVar1 == 0) || (*(int *)(iVar1 + 4) == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        iVar1 = 0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);\n      }\n    }\n  }" { (expression_statement "iVar1 = FUN_00035910(param_1,&local_14);" (assignment_expression "iVar1 = FUN_00035910(param_1,&local_14)" identifier = (call_expression "FUN_00035910(param_1,&local_14)" identifier (argument_list "(param_1,&local_14)" ( identifier , (pointer_expression "&local_14" & identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n      *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n      *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n      iVar1 = 0;\n    }\n    else {\n      local_10 = local_14;\n      iVar1 = (*(code *)PTR_find234_000bc25c)\n                        (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c);\n      if ((iVar1 == 0) || (*(int *)(iVar1 + 4) == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        iVar1 = 0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);\n      }\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n      *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n      iVar1 = 0;\n    }" { (expression_statement "*(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;" (assignment_expression "*(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8" (pointer_expression "*(undefined **)(PTR_DAT_000bc178 + -0x31b8)" * (cast_expression "(undefined **)(PTR_DAT_000bc178 + -0x31b8)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000bc178 + -0x31b8)" ( (binary_expression "PTR_DAT_000bc178 + -0x31b8" identifier + number_literal) )))) = (binary_expression "PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;" (assignment_expression "*(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff" (pointer_expression "*(undefined4 *)(PTR_DAT_000bc178 + -0x31bc)" * (cast_expression "(undefined4 *)(PTR_DAT_000bc178 + -0x31bc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000bc178 + -0x31bc)" ( (binary_expression "PTR_DAT_000bc178 + -0x31bc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      local_10 = local_14;\n      iVar1 = (*(code *)PTR_find234_000bc25c)\n                        (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c);\n      if ((iVar1 == 0) || (*(int *)(iVar1 + 4) == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        iVar1 = 0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);\n      }\n    }" else (compound_statement "{\n      local_10 = local_14;\n      iVar1 = (*(code *)PTR_find234_000bc25c)\n                        (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c);\n      if ((iVar1 == 0) || (*(int *)(iVar1 + 4) == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        iVar1 = 0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);\n      }\n    }" { (expression_statement "local_10 = local_14;" (assignment_expression "local_10 = local_14" identifier = identifier) ;) (expression_statement "iVar1 = (*(code *)PTR_find234_000bc25c)\n                        (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c);" (assignment_expression "iVar1 = (*(code *)PTR_find234_000bc25c)\n                        (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c)" identifier = (call_expression "(*(code *)PTR_find234_000bc25c)\n                        (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c)" (parenthesized_expression "(*(code *)PTR_find234_000bc25c)" ( (pointer_expression "*(code *)PTR_find234_000bc25c" * (cast_expression "(code *)PTR_find234_000bc25c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c)" ( (pointer_expression "*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0)" * (cast_expression "(undefined4 *)(PTR_DAT_000bc178 + -0x31c0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000bc178 + -0x31c0)" ( (binary_expression "PTR_DAT_000bc178 + -0x31c0" identifier + number_literal) )))) , (pointer_expression "&local_10" & identifier) , (binary_expression "PTR_LAB_000bc3a0 + 0x599c" identifier + number_literal) )))) ;) (if_statement "if ((iVar1 == 0) || (*(int *)(iVar1 + 4) == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        iVar1 = 0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);\n      }" if (parenthesized_expression "((iVar1 == 0) || (*(int *)(iVar1 + 4) == 0))" ( (binary_expression "(iVar1 == 0) || (*(int *)(iVar1 + 4) == 0)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) || (parenthesized_expression "(*(int *)(iVar1 + 4) == 0)" ( (binary_expression "*(int *)(iVar1 + 4) == 0" (pointer_expression "*(int *)(iVar1 + 4)" * (cast_expression "(int *)(iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        iVar1 = 0;\n      }" { (expression_statement "*(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;" (assignment_expression "*(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0" (pointer_expression "*(undefined **)(PTR_DAT_000bc178 + -0x31b8)" * (cast_expression "(undefined **)(PTR_DAT_000bc178 + -0x31b8)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000bc178 + -0x31b8)" ( (binary_expression "PTR_DAT_000bc178 + -0x31b8" identifier + number_literal) )))) = (binary_expression "PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;" (assignment_expression "*(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff" (pointer_expression "*(undefined4 *)(PTR_DAT_000bc178 + -0x31bc)" * (cast_expression "(undefined4 *)(PTR_DAT_000bc178 + -0x31bc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000bc178 + -0x31bc)" ( (binary_expression "PTR_DAT_000bc178 + -0x31bc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);\n      }" else (compound_statement "{\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);\n      }" { (expression_statement "(*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);" (call_expression "(*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1)" (parenthesized_expression "(*(code *)PTR_del234_000bc23c)" ( (pointer_expression "*(code *)PTR_del234_000bc23c" * (cast_expression "(code *)PTR_del234_000bc23c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1)" ( (pointer_expression "*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0)" * (cast_expression "(undefined4 *)(PTR_DAT_000bc178 + -0x31c0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000bc178 + -0x31c0)" ( (binary_expression "PTR_DAT_000bc178 + -0x31c0" identifier + number_literal) )))) , identifier ))) ;) }))) }))) }))) (if_statement "if (local_c == *(int *)PTR___stack_chk_guard_000bccd8) {\n    return iVar1;\n  }" if (parenthesized_expression "(local_c == *(int *)PTR___stack_chk_guard_000bccd8)" ( (binary_expression "local_c == *(int *)PTR___stack_chk_guard_000bccd8" identifier == (pointer_expression "*(int *)PTR___stack_chk_guard_000bccd8" * (cast_expression "(int *)PTR___stack_chk_guard_000bccd8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "puVar2 = PTR___stack_chk_fail_000bccb0;" (assignment_expression "puVar2 = PTR___stack_chk_fail_000bccb0" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000bccb0)();" (call_expression "(*(code *)PTR___stack_chk_fail_000bccb0)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000bccb0)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000bccb0" * (cast_expression "(code *)PTR___stack_chk_fail_000bccb0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (return_statement "return *(int *)(*(int *)(puVar2 + 0x85534) + -0x31b8);" return (pointer_expression "*(int *)(*(int *)(puVar2 + 0x85534) + -0x31b8)" * (cast_expression "(int *)(*(int *)(puVar2 + 0x85534) + -0x31b8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar2 + 0x85534) + -0x31b8)" ( (binary_expression "*(int *)(puVar2 + 0x85534) + -0x31b8" (pointer_expression "*(int *)(puVar2 + 0x85534)" * (cast_expression "(int *)(puVar2 + 0x85534)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x85534)" ( (binary_expression "puVar2 + 0x85534" identifier + number_literal) )))) + number_literal) )))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression & IDENT) , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) }))) }))) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) ;) })))
(function_definition "int sftp_find_request(int param_1)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined4 local_14;\n  undefined4 local_10;\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_000bccd8;\n  if (param_1 == 0) {\n    *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n         PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n    *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n    iVar1 = 0;\n  }\n  else {\n    iVar1 = FUN_00035910(param_1,&local_14);\n    if (iVar1 == 0) {\n      *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n      *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n      iVar1 = 0;\n    }\n    else {\n      local_10 = local_14;\n      iVar1 = (*(code *)PTR_find234_000bc25c)\n                        (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c);\n      if ((iVar1 == 0) || (*(int *)(iVar1 + 4) == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        iVar1 = 0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);\n      }\n    }\n  }\n  if (local_c == *(int *)PTR___stack_chk_guard_000bccd8) {\n    return iVar1;\n  }\n  puVar2 = PTR___stack_chk_fail_000bccb0;\n  (*(code *)PTR___stack_chk_fail_000bccb0)();\n  return *(int *)(*(int *)(puVar2 + 0x85534) + -0x31b8);\n}" (primitive_type "int") (function_declarator "sftp_find_request(int param_1)" (identifier "sftp_find_request") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  undefined4 local_14;\n  undefined4 local_10;\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_000bccd8;\n  if (param_1 == 0) {\n    *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n         PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n    *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n    iVar1 = 0;\n  }\n  else {\n    iVar1 = FUN_00035910(param_1,&local_14);\n    if (iVar1 == 0) {\n      *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n      *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n      iVar1 = 0;\n    }\n    else {\n      local_10 = local_14;\n      iVar1 = (*(code *)PTR_find234_000bc25c)\n                        (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c);\n      if ((iVar1 == 0) || (*(int *)(iVar1 + 4) == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        iVar1 = 0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);\n      }\n    }\n  }\n  if (local_c == *(int *)PTR___stack_chk_guard_000bccd8) {\n    return iVar1;\n  }\n  puVar2 = PTR___stack_chk_fail_000bccb0;\n  (*(code *)PTR___stack_chk_fail_000bccb0)();\n  return *(int *)(*(int *)(puVar2 + 0x85534) + -0x31b8);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 local_14;" (type_identifier "undefined4") (identifier "local_14") (; ";")) (declaration "undefined4 local_10;" (type_identifier "undefined4") (identifier "local_10") (; ";")) (declaration "int local_c;" (primitive_type "int") (identifier "local_c") (; ";")) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_000bccd8;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_000bccd8" (identifier "local_c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_000bccd8" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000bccd8" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000bccd8")))) (; ";")) (if_statement "if (param_1 == 0) {\n    *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n         PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n    *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n    iVar1 = 0;\n  }\n  else {\n    iVar1 = FUN_00035910(param_1,&local_14);\n    if (iVar1 == 0) {\n      *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n      *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n      iVar1 = 0;\n    }\n    else {\n      local_10 = local_14;\n      iVar1 = (*(code *)PTR_find234_000bc25c)\n                        (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c);\n      if ((iVar1 == 0) || (*(int *)(iVar1 + 4) == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        iVar1 = 0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);\n      }\n    }\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n         PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n    *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n    iVar1 = 0;\n  }" ({ "{") (expression_statement "*(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n         PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;" (assignment_expression "*(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n         PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8" (pointer_expression "*(undefined **)(PTR_DAT_000bc178 + -0x31b8)" (* "*") (cast_expression "(undefined **)(PTR_DAT_000bc178 + -0x31b8)" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_DAT_000bc178 + -0x31b8)" (( "(") (binary_expression "PTR_DAT_000bc178 + -0x31b8" (identifier "PTR_DAT_000bc178") (+ "+") (number_literal "-0x31b8")) () ")")))) (= "=") (binary_expression "PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8" (identifier "PTR_s_Server_sent_command_exit_status___000bc188") (+ "+") (number_literal "-0x34f8"))) (; ";")) (expression_statement "*(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;" (assignment_expression "*(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff" (pointer_expression "*(undefined4 *)(PTR_DAT_000bc178 + -0x31bc)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_000bc178 + -0x31bc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000bc178 + -0x31bc)" (( "(") (binary_expression "PTR_DAT_000bc178 + -0x31bc" (identifier "PTR_DAT_000bc178") (+ "+") (number_literal "-0x31bc")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = FUN_00035910(param_1,&local_14);\n    if (iVar1 == 0) {\n      *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n      *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n      iVar1 = 0;\n    }\n    else {\n      local_10 = local_14;\n      iVar1 = (*(code *)PTR_find234_000bc25c)\n                        (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c);\n      if ((iVar1 == 0) || (*(int *)(iVar1 + 4) == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        iVar1 = 0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);\n      }\n    }\n  }" (else "else") (compound_statement "{\n    iVar1 = FUN_00035910(param_1,&local_14);\n    if (iVar1 == 0) {\n      *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n      *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n      iVar1 = 0;\n    }\n    else {\n      local_10 = local_14;\n      iVar1 = (*(code *)PTR_find234_000bc25c)\n                        (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c);\n      if ((iVar1 == 0) || (*(int *)(iVar1 + 4) == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        iVar1 = 0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);\n      }\n    }\n  }" ({ "{") (expression_statement "iVar1 = FUN_00035910(param_1,&local_14);" (assignment_expression "iVar1 = FUN_00035910(param_1,&local_14)" (identifier "iVar1") (= "=") (call_expression "FUN_00035910(param_1,&local_14)" (identifier "FUN_00035910") (argument_list "(param_1,&local_14)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&local_14" (& "&") (identifier "local_14")) () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n      *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n      iVar1 = 0;\n    }\n    else {\n      local_10 = local_14;\n      iVar1 = (*(code *)PTR_find234_000bc25c)\n                        (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c);\n      if ((iVar1 == 0) || (*(int *)(iVar1 + 4) == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        iVar1 = 0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);\n      }\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;\n      *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n      iVar1 = 0;\n    }" ({ "{") (expression_statement "*(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;" (assignment_expression "*(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8" (pointer_expression "*(undefined **)(PTR_DAT_000bc178 + -0x31b8)" (* "*") (cast_expression "(undefined **)(PTR_DAT_000bc178 + -0x31b8)" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_DAT_000bc178 + -0x31b8)" (( "(") (binary_expression "PTR_DAT_000bc178 + -0x31b8" (identifier "PTR_DAT_000bc178") (+ "+") (number_literal "-0x31b8")) () ")")))) (= "=") (binary_expression "PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8" (identifier "PTR_s_Server_sent_command_exit_status___000bc188") (+ "+") (number_literal "-0x34f8"))) (; ";")) (expression_statement "*(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;" (assignment_expression "*(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff" (pointer_expression "*(undefined4 *)(PTR_DAT_000bc178 + -0x31bc)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_000bc178 + -0x31bc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000bc178 + -0x31bc)" (( "(") (binary_expression "PTR_DAT_000bc178 + -0x31bc" (identifier "PTR_DAT_000bc178") (+ "+") (number_literal "-0x31bc")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      local_10 = local_14;\n      iVar1 = (*(code *)PTR_find234_000bc25c)\n                        (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c);\n      if ((iVar1 == 0) || (*(int *)(iVar1 + 4) == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        iVar1 = 0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);\n      }\n    }" (else "else") (compound_statement "{\n      local_10 = local_14;\n      iVar1 = (*(code *)PTR_find234_000bc25c)\n                        (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c);\n      if ((iVar1 == 0) || (*(int *)(iVar1 + 4) == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        iVar1 = 0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);\n      }\n    }" ({ "{") (expression_statement "local_10 = local_14;" (assignment_expression "local_10 = local_14" (identifier "local_10") (= "=") (identifier "local_14")) (; ";")) (expression_statement "iVar1 = (*(code *)PTR_find234_000bc25c)\n                        (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c);" (assignment_expression "iVar1 = (*(code *)PTR_find234_000bc25c)\n                        (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_find234_000bc25c)\n                        (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c)" (parenthesized_expression "(*(code *)PTR_find234_000bc25c)" (( "(") (pointer_expression "*(code *)PTR_find234_000bc25c" (* "*") (cast_expression "(code *)PTR_find234_000bc25c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_find234_000bc25c"))) () ")")) (argument_list "(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,\n                         PTR_LAB_000bc3a0 + 0x599c)" (( "(") (pointer_expression "*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_000bc178 + -0x31c0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000bc178 + -0x31c0)" (( "(") (binary_expression "PTR_DAT_000bc178 + -0x31c0" (identifier "PTR_DAT_000bc178") (+ "+") (number_literal "-0x31c0")) () ")")))) (, ",") (pointer_expression "&local_10" (& "&") (identifier "local_10")) (, ",") (binary_expression "PTR_LAB_000bc3a0 + 0x599c" (identifier "PTR_LAB_000bc3a0") (+ "+") (number_literal "0x599c")) () ")")))) (; ";")) (if_statement "if ((iVar1 == 0) || (*(int *)(iVar1 + 4) == 0)) {\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        iVar1 = 0;\n      }\n      else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);\n      }" (if "if") (parenthesized_expression "((iVar1 == 0) || (*(int *)(iVar1 + 4) == 0))" (( "(") (binary_expression "(iVar1 == 0) || (*(int *)(iVar1 + 4) == 0)" (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*(int *)(iVar1 + 4) == 0)" (( "(") (binary_expression "*(int *)(iVar1 + 4) == 0" (pointer_expression "*(int *)(iVar1 + 4)" (* "*") (cast_expression "(int *)(iVar1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")")))) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;\n        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;\n        iVar1 = 0;\n      }" ({ "{") (expression_statement "*(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;" (assignment_expression "*(undefined **)(PTR_DAT_000bc178 + -0x31b8) =\n             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0" (pointer_expression "*(undefined **)(PTR_DAT_000bc178 + -0x31b8)" (* "*") (cast_expression "(undefined **)(PTR_DAT_000bc178 + -0x31b8)" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_DAT_000bc178 + -0x31b8)" (( "(") (binary_expression "PTR_DAT_000bc178 + -0x31b8" (identifier "PTR_DAT_000bc178") (+ "+") (number_literal "-0x31b8")) () ")")))) (= "=") (binary_expression "PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0" (identifier "PTR_s_Server_sent_command_exit_status___000bc188") (+ "+") (number_literal "-0x34d0"))) (; ";")) (expression_statement "*(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;" (assignment_expression "*(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff" (pointer_expression "*(undefined4 *)(PTR_DAT_000bc178 + -0x31bc)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_000bc178 + -0x31bc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000bc178 + -0x31bc)" (( "(") (binary_expression "PTR_DAT_000bc178 + -0x31bc" (identifier "PTR_DAT_000bc178") (+ "+") (number_literal "-0x31bc")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);\n      }" (else "else") (compound_statement "{\n        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);\n      }" ({ "{") (expression_statement "(*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);" (call_expression "(*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1)" (parenthesized_expression "(*(code *)PTR_del234_000bc23c)" (( "(") (pointer_expression "*(code *)PTR_del234_000bc23c" (* "*") (cast_expression "(code *)PTR_del234_000bc23c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_del234_000bc23c"))) () ")")) (argument_list "(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1)" (( "(") (pointer_expression "*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_000bc178 + -0x31c0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000bc178 + -0x31c0)" (( "(") (binary_expression "PTR_DAT_000bc178 + -0x31c0" (identifier "PTR_DAT_000bc178") (+ "+") (number_literal "-0x31c0")) () ")")))) (, ",") (identifier "iVar1") () ")"))) (; ";")) (} "}")))) (} "}")))) (} "}")))) (if_statement "if (local_c == *(int *)PTR___stack_chk_guard_000bccd8) {\n    return iVar1;\n  }" (if "if") (parenthesized_expression "(local_c == *(int *)PTR___stack_chk_guard_000bccd8)" (( "(") (binary_expression "local_c == *(int *)PTR___stack_chk_guard_000bccd8" (identifier "local_c") (== "==") (pointer_expression "*(int *)PTR___stack_chk_guard_000bccd8" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000bccd8" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000bccd8")))) () ")")) (compound_statement "{\n    return iVar1;\n  }" ({ "{") (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (expression_statement "puVar2 = PTR___stack_chk_fail_000bccb0;" (assignment_expression "puVar2 = PTR___stack_chk_fail_000bccb0" (identifier "puVar2") (= "=") (identifier "PTR___stack_chk_fail_000bccb0")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_000bccb0)();" (call_expression "(*(code *)PTR___stack_chk_fail_000bccb0)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000bccb0)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000bccb0" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000bccb0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000bccb0"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return *(int *)(*(int *)(puVar2 + 0x85534) + -0x31b8);" (return "return") (pointer_expression "*(int *)(*(int *)(puVar2 + 0x85534) + -0x31b8)" (* "*") (cast_expression "(int *)(*(int *)(puVar2 + 0x85534) + -0x31b8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(puVar2 + 0x85534) + -0x31b8)" (( "(") (binary_expression "*(int *)(puVar2 + 0x85534) + -0x31b8" (pointer_expression "*(int *)(puVar2 + 0x85534)" (* "*") (cast_expression "(int *)(puVar2 + 0x85534)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x85534)" (( "(") (binary_expression "puVar2 + 0x85534" (identifier "puVar2") (+ "+") (number_literal "0x85534")) () ")")))) (+ "+") (number_literal "-0x31b8")) () ")")))) (; ";")) (} "}")))

type_1 * function_1(type_2 *var_1)

{
  int var_5;
  type_1 *var_7;
  type_3 *var_9;
  type_4 id;
  type_5 fid;
  int var_8;
  
  var_8 = *(int *)PTR___stack_chk_guard_000bccd8;
  if (var_1 == (type_2 *)0x0) {
    *(type_3 **)(var_2 + -0x31b8) =
         var_3 + -0x34f8;
    *(type_6 *)(var_2 + -0x31bc) = 0xffffffff;
    var_7 = (type_1 *)0x0;
  }
  else {
    var_5 = var_4(var_1,&id);
    if (var_5 == 0) {
      *(type_3 **)(var_2 + -0x31b8) =
           var_3 + -0x34f8;
      *(type_6 *)(var_2 + -0x31bc) = 0xffffffff;
      var_7 = (type_1 *)0x0;
    }
    else {
      fid = id;
      var_7 = (type_1 *)
               (*(type_7 *)PTR_find234_000bc25c)
                         (*(type_6 *)(var_2 + -0x31c0),&fid,var_6 + 0x599c
                         );
      if ((var_7 == (type_1 *)0x0) || (var_7->registered == 0)) {
        *(type_3 **)(var_2 + -0x31b8) =
             var_3 + -0x34d0;
        *(type_6 *)(var_2 + -0x31bc) = 0xffffffff;
        var_7 = (type_1 *)0x0;
      }
      else {
        (*(type_7 *)PTR_del234_000bc23c)(*(type_6 *)(var_2 + -0x31c0),var_7);
      }
    }
  }
  if (var_8 == *(int *)PTR___stack_chk_guard_000bccd8) {
    return var_7;
  }
  var_9 = PTR___stack_chk_fail_000bccb0;
  (*(type_7 *)PTR___stack_chk_fail_000bccb0)();
  return *(type_1 **)(*(int *)(var_9 + 0x85534) + -0x31b8);
}


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

int MASKED(int param_1)

{
  int iVar1;
  undefined *puVar2;
  undefined4 local_14;
  undefined4 local_10;
  int local_c;
  
  local_c = *(int *)PTR___stack_chk_guard_000bccd8;
  if (param_1 == 0) {
    *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =
         PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;
    *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;
    iVar1 = 0;
  }
  else {
    iVar1 = FUN_00035910(param_1,&local_14);
    if (iVar1 == 0) {
      *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =
           PTR_s_Server_sent_command_exit_status___000bc188 + -0x34f8;
      *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;
      iVar1 = 0;
    }
    else {
      local_10 = local_14;
      iVar1 = (*(code *)PTR_find234_000bc25c)
                        (*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),&local_10,
                         PTR_LAB_000bc3a0 + 0x599c);
      if ((iVar1 == 0) || (*(int *)(iVar1 + 4) == 0)) {
        *(undefined **)(PTR_DAT_000bc178 + -0x31b8) =
             PTR_s_Server_sent_command_exit_status___000bc188 + -0x34d0;
        *(undefined4 *)(PTR_DAT_000bc178 + -0x31bc) = 0xffffffff;
        iVar1 = 0;
      }
      else {
        (*(code *)PTR_del234_000bc23c)(*(undefined4 *)(PTR_DAT_000bc178 + -0x31c0),iVar1);
      }
    }
  }
  if (local_c == *(int *)PTR___stack_chk_guard_000bccd8) {
    return iVar1;
  }
  puVar2 = PTR___stack_chk_fail_000bccb0;
  (*(code *)PTR___stack_chk_fail_000bccb0)();
  return *(int *)(*(int *)(puVar2 + 0x85534) + -0x31b8);
}

