
int ssh_scp_recv(uchar *buf,int len)

{
  undefined *puVar1;
  undefined *puVar2;
  int iVar3;
  int iVar4;
  uint uVar5;
  void *ptr;
  
  puVar1 = PTR_data_start_000b0178;
  *(uchar **)(PTR_data_start_000b0178 + 0xdc0) = buf;
  *(int *)(puVar1 + 0xdbc) = len;
  puVar2 = PTR_data_start_000b0178;
  uVar5 = *(uint *)(puVar1 + 0xdb4);
  iVar3 = len;
  if (uVar5 != 0) {
    ptr = *(void **)(PTR_data_start_000b0178 + 0xdb8);
    if ((uint)len < uVar5) {
      (*(code *)PTR_memcpy_000b0ca0)(buf,ptr,len);
      (*(code *)PTR_memmove_000b0ca8)(ptr,(int)ptr + len,uVar5 - len);
      *(undefined4 *)(puVar1 + 0xdbc) = 0;
      *(uchar **)(puVar1 + 0xdc0) = buf + len;
      *(uint *)(puVar1 + 0xdb4) = uVar5 - len;
      return len;
    }
    (*(code *)PTR_memcpy_000b0ca0)(buf,ptr,uVar5);
    *(uchar **)(puVar1 + 0xdc0) = buf + uVar5;
    *(uint *)(puVar1 + 0xdbc) = len - uVar5;
    *(undefined4 *)(puVar1 + 0xdb4) = 0;
                    /* WARNING: Subroutine does not return */
    *(undefined4 *)(PTR_data_start_000b0178 + 0xdb0) = 0;
    safefree(ptr);
  }
  while( true ) {
    if (iVar3 == 0) {
      return len;
    }
    iVar3 = (**(code **)(*(int *)(puVar2 + 0xdcc) + 0x24))(*(undefined4 *)(puVar2 + 0xdc8));
    if (-1 < iVar3) break;
    iVar4 = (*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)();
    iVar3 = *(int *)(puVar1 + 0xdbc);
    if (iVar4 < 0) {
      return 0;
    }
  }
  return 0;
}



uint FUN_00026b10(int param_1,uint param_2)

{
  undefined *puVar1;
  undefined *puVar2;
  uint uVar3;
  uint uVar4;
  int iVar5;
  
  puVar2 = PTR_DAT_000b0178;
  *(int *)(PTR_DAT_000b0178 + 0xdc0) = param_1;
  *(uint *)(puVar2 + 0xdbc) = param_2;
  puVar1 = PTR_DAT_000b0178;
  uVar4 = *(uint *)(puVar2 + 0xdb4);
  uVar3 = param_2;
  if (uVar4 != 0) {
    iVar5 = *(int *)(PTR_DAT_000b0178 + 0xdb8);
    if (param_2 < uVar4) {
      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,param_2);
      (*(code *)PTR_memmove_000b0ca8)(iVar5,iVar5 + param_2,uVar4 - param_2);
      *(undefined4 *)(puVar2 + 0xdbc) = 0;
      *(uint *)(puVar2 + 0xdc0) = param_1 + param_2;
      *(uint *)(puVar2 + 0xdb4) = uVar4 - param_2;
    }
    else {
      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,uVar4);
      *(uint *)(puVar2 + 0xdc0) = param_1 + uVar4;
      *(uint *)(puVar2 + 0xdbc) = param_2 - uVar4;
      *(undefined4 *)(puVar2 + 0xdb4) = 0;
      *(undefined4 *)(PTR_DAT_000b0178 + 0xdb0) = 0;
      safefree(iVar5);
      uVar3 = *(uint *)(puVar2 + 0xdbc);
      *(undefined4 *)(puVar1 + 0xdb8) = 0;
      puVar1 = PTR_DAT_000b0178;
      if (uVar3 != 0) goto LAB_00026c20;
    }
    return param_2;
  }
LAB_00026c20:
  while( true ) {
    if (uVar3 == 0) {
      return param_2;
    }
    iVar5 = (**(code **)(*(int *)(puVar1 + 0xdcc) + 0x24))(*(undefined4 *)(puVar1 + 0xdc8));
    if (-1 < iVar5) break;
    iVar5 = (*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)();
    uVar3 = *(uint *)(puVar2 + 0xdbc);
    if (iVar5 < 0) {
      return 0;
    }
  }
  return 0;
}


lui gp,0x9
addiu gp,gp,0x1640
addu gp,gp,t9
addiu sp,sp,-0x40
sw s4,0x2c(sp)
sw s5,0x30(sp)
sw s0,0x1c(sp)
sw s1,0x20(sp)
lw s4,-0x7fd8(gp)
lw s5,-0x7fd8(gp)
lw s0,-0x7fd8(gp)
sw gp,0x10(sp)
sw s3,0x28(sp)
sw ra,0x3c(sp)
sw s7,0x38(sp)
sw s6,0x34(sp)
sw s2,0x24(sp)
sw a0,0xdc0(s5)
sw a1,0xdbc(s0)
lw s1,0xdb4(s4)
beq s1,zero,0x00026be8
_or s3,a1,zero
lw s7,-0x7fd8(gp)
sltu v0,a1,s1
or s2,a0,zero
lw t9,-0x74b0(gp)
beq v0,zero,0x00026c60
_lw s6,0xdb8(s7)
or a2,a1,zero
jalr t9
_or a1,s6,zero
subu s1,s1,s3
lw gp,0x10(sp)
addu a1,s6,s3
addu s2,s2,s3
or a2,s1,zero
lw t9,-0x74a8(gp)
jalr t9
_or a0,s6,zero
sw zero,0xdbc(s0)
sw s2,0xdc0(s5)
sw s1,0xdb4(s4)
lw ra,0x3c(sp)
or v0,s3,zero
lw s7,0x38(sp)
lw s6,0x34(sp)
lw s5,0x30(sp)
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x40
or v1,a1,zero
lw s2,-0x7fd8(gp)
b 0x00026c20
_lw s1,-0x7fd8(gp)
lw t9,0x24(v1)
jalr t9
_lw a0,0xdc8(s2)
lw gp,0x10(sp)
bgez v0,0x00026c30
_lw t9,-0x7d58(gp)
jalr t9
_nop
bltz v0,0x00026c30
_lw v1,0xdbc(s0)
bne v1,zero,0x00026bf8
_lw v1,0xdcc(s1)
b 0x00026bbc
_lw ra,0x3c(sp)
lw ra,0x3c(sp)
or v0,zero,zero
lw s7,0x38(sp)
lw s6,0x34(sp)
lw s5,0x30(sp)
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x40
or a2,s1,zero
jalr t9
_or a1,s6,zero
addu s2,s2,s1
lw gp,0x10(sp)
subu s1,s3,s1
or a0,s6,zero
sw s2,0xdc0(s5)
sw s1,0xdbc(s0)
sw zero,0xdb4(s4)
lw v0,-0x7fd8(gp)
lw t9,-0x7fa0(gp)
bal 0x000210a4
_sw zero,0xdb0(v0)
lw v1,0xdbc(s0)
lw gp,0x10(sp)
bne v1,zero,0x00026bec
_sw zero,0xdb8(s7)
b 0x00026bbc
_lw ra,0x3c(sp)
(translation_unit "uint FUN_00026b10(int param_1,uint param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  \n  puVar2 = PTR_DAT_000b0178;\n  *(int *)(PTR_DAT_000b0178 + 0xdc0) = param_1;\n  *(uint *)(puVar2 + 0xdbc) = param_2;\n  puVar1 = PTR_DAT_000b0178;\n  uVar4 = *(uint *)(puVar2 + 0xdb4);\n  uVar3 = param_2;\n  if (uVar4 != 0) {\n    iVar5 = *(int *)(PTR_DAT_000b0178 + 0xdb8);\n    if (param_2 < uVar4) {\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,param_2);\n      (*(code *)PTR_memmove_000b0ca8)(iVar5,iVar5 + param_2,uVar4 - param_2);\n      *(undefined4 *)(puVar2 + 0xdbc) = 0;\n      *(uint *)(puVar2 + 0xdc0) = param_1 + param_2;\n      *(uint *)(puVar2 + 0xdb4) = uVar4 - param_2;\n    }\n    else {\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,uVar4);\n      *(uint *)(puVar2 + 0xdc0) = param_1 + uVar4;\n      *(uint *)(puVar2 + 0xdbc) = param_2 - uVar4;\n      *(undefined4 *)(puVar2 + 0xdb4) = 0;\n      *(undefined4 *)(PTR_DAT_000b0178 + 0xdb0) = 0;\n      safefree(iVar5);\n      uVar3 = *(uint *)(puVar2 + 0xdbc);\n      *(undefined4 *)(puVar1 + 0xdb8) = 0;\n      puVar1 = PTR_DAT_000b0178;\n      if (uVar3 != 0) goto LAB_00026c20;\n    }\n    return param_2;\n  }\nLAB_00026c20:\n  while( true ) {\n    if (uVar3 == 0) {\n      return param_2;\n    }\n    iVar5 = (**(code **)(*(int *)(puVar1 + 0xdcc) + 0x24))(*(undefined4 *)(puVar1 + 0xdc8));\n    if (-1 < iVar5) break;\n    iVar5 = (*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)();\n    uVar3 = *(uint *)(puVar2 + 0xdbc);\n    if (iVar5 < 0) {\n      return 0;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "uint FUN_00026b10(int param_1,uint param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  \n  puVar2 = PTR_DAT_000b0178;\n  *(int *)(PTR_DAT_000b0178 + 0xdc0) = param_1;\n  *(uint *)(puVar2 + 0xdbc) = param_2;\n  puVar1 = PTR_DAT_000b0178;\n  uVar4 = *(uint *)(puVar2 + 0xdb4);\n  uVar3 = param_2;\n  if (uVar4 != 0) {\n    iVar5 = *(int *)(PTR_DAT_000b0178 + 0xdb8);\n    if (param_2 < uVar4) {\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,param_2);\n      (*(code *)PTR_memmove_000b0ca8)(iVar5,iVar5 + param_2,uVar4 - param_2);\n      *(undefined4 *)(puVar2 + 0xdbc) = 0;\n      *(uint *)(puVar2 + 0xdc0) = param_1 + param_2;\n      *(uint *)(puVar2 + 0xdb4) = uVar4 - param_2;\n    }\n    else {\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,uVar4);\n      *(uint *)(puVar2 + 0xdc0) = param_1 + uVar4;\n      *(uint *)(puVar2 + 0xdbc) = param_2 - uVar4;\n      *(undefined4 *)(puVar2 + 0xdb4) = 0;\n      *(undefined4 *)(PTR_DAT_000b0178 + 0xdb0) = 0;\n      safefree(iVar5);\n      uVar3 = *(uint *)(puVar2 + 0xdbc);\n      *(undefined4 *)(puVar1 + 0xdb8) = 0;\n      puVar1 = PTR_DAT_000b0178;\n      if (uVar3 != 0) goto LAB_00026c20;\n    }\n    return param_2;\n  }\nLAB_00026c20:\n  while( true ) {\n    if (uVar3 == 0) {\n      return param_2;\n    }\n    iVar5 = (**(code **)(*(int *)(puVar1 + 0xdcc) + 0x24))(*(undefined4 *)(puVar1 + 0xdc8));\n    if (-1 < iVar5) break;\n    iVar5 = (*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)();\n    uVar3 = *(uint *)(puVar2 + 0xdbc);\n    if (iVar5 < 0) {\n      return 0;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00026b10(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  \n  puVar2 = PTR_DAT_000b0178;\n  *(int *)(PTR_DAT_000b0178 + 0xdc0) = param_1;\n  *(uint *)(puVar2 + 0xdbc) = param_2;\n  puVar1 = PTR_DAT_000b0178;\n  uVar4 = *(uint *)(puVar2 + 0xdb4);\n  uVar3 = param_2;\n  if (uVar4 != 0) {\n    iVar5 = *(int *)(PTR_DAT_000b0178 + 0xdb8);\n    if (param_2 < uVar4) {\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,param_2);\n      (*(code *)PTR_memmove_000b0ca8)(iVar5,iVar5 + param_2,uVar4 - param_2);\n      *(undefined4 *)(puVar2 + 0xdbc) = 0;\n      *(uint *)(puVar2 + 0xdc0) = param_1 + param_2;\n      *(uint *)(puVar2 + 0xdb4) = uVar4 - param_2;\n    }\n    else {\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,uVar4);\n      *(uint *)(puVar2 + 0xdc0) = param_1 + uVar4;\n      *(uint *)(puVar2 + 0xdbc) = param_2 - uVar4;\n      *(undefined4 *)(puVar2 + 0xdb4) = 0;\n      *(undefined4 *)(PTR_DAT_000b0178 + 0xdb0) = 0;\n      safefree(iVar5);\n      uVar3 = *(uint *)(puVar2 + 0xdbc);\n      *(undefined4 *)(puVar1 + 0xdb8) = 0;\n      puVar1 = PTR_DAT_000b0178;\n      if (uVar3 != 0) goto LAB_00026c20;\n    }\n    return param_2;\n  }\nLAB_00026c20:\n  while( true ) {\n    if (uVar3 == 0) {\n      return param_2;\n    }\n    iVar5 = (**(code **)(*(int *)(puVar1 + 0xdcc) + 0x24))(*(undefined4 *)(puVar1 + 0xdc8));\n    if (-1 < iVar5) break;\n    iVar5 = (*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)();\n    uVar3 = *(uint *)(puVar2 + 0xdbc);\n    if (iVar5 < 0) {\n      return 0;\n    }\n  }\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "puVar2 = PTR_DAT_000b0178;" (assignment_expression "puVar2 = PTR_DAT_000b0178" identifier = identifier) ;) (expression_statement "*(int *)(PTR_DAT_000b0178 + 0xdc0) = param_1;" (assignment_expression "*(int *)(PTR_DAT_000b0178 + 0xdc0) = param_1" (pointer_expression "*(int *)(PTR_DAT_000b0178 + 0xdc0)" * (cast_expression "(int *)(PTR_DAT_000b0178 + 0xdc0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b0178 + 0xdc0)" ( (binary_expression "PTR_DAT_000b0178 + 0xdc0" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(puVar2 + 0xdbc) = param_2;" (assignment_expression "*(uint *)(puVar2 + 0xdbc) = param_2" (pointer_expression "*(uint *)(puVar2 + 0xdbc)" * (cast_expression "(uint *)(puVar2 + 0xdbc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0xdbc)" ( (binary_expression "puVar2 + 0xdbc" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar1 = PTR_DAT_000b0178;" (assignment_expression "puVar1 = PTR_DAT_000b0178" identifier = identifier) ;) (expression_statement "uVar4 = *(uint *)(puVar2 + 0xdb4);" (assignment_expression "uVar4 = *(uint *)(puVar2 + 0xdb4)" identifier = (pointer_expression "*(uint *)(puVar2 + 0xdb4)" * (cast_expression "(uint *)(puVar2 + 0xdb4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0xdb4)" ( (binary_expression "puVar2 + 0xdb4" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = param_2;" (assignment_expression "uVar3 = param_2" identifier = identifier) ;) (if_statement "if (uVar4 != 0) {\n    iVar5 = *(int *)(PTR_DAT_000b0178 + 0xdb8);\n    if (param_2 < uVar4) {\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,param_2);\n      (*(code *)PTR_memmove_000b0ca8)(iVar5,iVar5 + param_2,uVar4 - param_2);\n      *(undefined4 *)(puVar2 + 0xdbc) = 0;\n      *(uint *)(puVar2 + 0xdc0) = param_1 + param_2;\n      *(uint *)(puVar2 + 0xdb4) = uVar4 - param_2;\n    }\n    else {\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,uVar4);\n      *(uint *)(puVar2 + 0xdc0) = param_1 + uVar4;\n      *(uint *)(puVar2 + 0xdbc) = param_2 - uVar4;\n      *(undefined4 *)(puVar2 + 0xdb4) = 0;\n      *(undefined4 *)(PTR_DAT_000b0178 + 0xdb0) = 0;\n      safefree(iVar5);\n      uVar3 = *(uint *)(puVar2 + 0xdbc);\n      *(undefined4 *)(puVar1 + 0xdb8) = 0;\n      puVar1 = PTR_DAT_000b0178;\n      if (uVar3 != 0) goto LAB_00026c20;\n    }\n    return param_2;\n  }" if (parenthesized_expression "(uVar4 != 0)" ( (binary_expression "uVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar5 = *(int *)(PTR_DAT_000b0178 + 0xdb8);\n    if (param_2 < uVar4) {\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,param_2);\n      (*(code *)PTR_memmove_000b0ca8)(iVar5,iVar5 + param_2,uVar4 - param_2);\n      *(undefined4 *)(puVar2 + 0xdbc) = 0;\n      *(uint *)(puVar2 + 0xdc0) = param_1 + param_2;\n      *(uint *)(puVar2 + 0xdb4) = uVar4 - param_2;\n    }\n    else {\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,uVar4);\n      *(uint *)(puVar2 + 0xdc0) = param_1 + uVar4;\n      *(uint *)(puVar2 + 0xdbc) = param_2 - uVar4;\n      *(undefined4 *)(puVar2 + 0xdb4) = 0;\n      *(undefined4 *)(PTR_DAT_000b0178 + 0xdb0) = 0;\n      safefree(iVar5);\n      uVar3 = *(uint *)(puVar2 + 0xdbc);\n      *(undefined4 *)(puVar1 + 0xdb8) = 0;\n      puVar1 = PTR_DAT_000b0178;\n      if (uVar3 != 0) goto LAB_00026c20;\n    }\n    return param_2;\n  }" { (expression_statement "iVar5 = *(int *)(PTR_DAT_000b0178 + 0xdb8);" (assignment_expression "iVar5 = *(int *)(PTR_DAT_000b0178 + 0xdb8)" identifier = (pointer_expression "*(int *)(PTR_DAT_000b0178 + 0xdb8)" * (cast_expression "(int *)(PTR_DAT_000b0178 + 0xdb8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b0178 + 0xdb8)" ( (binary_expression "PTR_DAT_000b0178 + 0xdb8" identifier + number_literal) ))))) ;) (if_statement "if (param_2 < uVar4) {\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,param_2);\n      (*(code *)PTR_memmove_000b0ca8)(iVar5,iVar5 + param_2,uVar4 - param_2);\n      *(undefined4 *)(puVar2 + 0xdbc) = 0;\n      *(uint *)(puVar2 + 0xdc0) = param_1 + param_2;\n      *(uint *)(puVar2 + 0xdb4) = uVar4 - param_2;\n    }\n    else {\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,uVar4);\n      *(uint *)(puVar2 + 0xdc0) = param_1 + uVar4;\n      *(uint *)(puVar2 + 0xdbc) = param_2 - uVar4;\n      *(undefined4 *)(puVar2 + 0xdb4) = 0;\n      *(undefined4 *)(PTR_DAT_000b0178 + 0xdb0) = 0;\n      safefree(iVar5);\n      uVar3 = *(uint *)(puVar2 + 0xdbc);\n      *(undefined4 *)(puVar1 + 0xdb8) = 0;\n      puVar1 = PTR_DAT_000b0178;\n      if (uVar3 != 0) goto LAB_00026c20;\n    }" if (parenthesized_expression "(param_2 < uVar4)" ( (binary_expression "param_2 < uVar4" identifier < identifier) )) (compound_statement "{\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,param_2);\n      (*(code *)PTR_memmove_000b0ca8)(iVar5,iVar5 + param_2,uVar4 - param_2);\n      *(undefined4 *)(puVar2 + 0xdbc) = 0;\n      *(uint *)(puVar2 + 0xdc0) = param_1 + param_2;\n      *(uint *)(puVar2 + 0xdb4) = uVar4 - param_2;\n    }" { (expression_statement "(*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,param_2);" (call_expression "(*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,param_2)" (parenthesized_expression "(*(code *)PTR_memcpy_000b0ca0)" ( (pointer_expression "*(code *)PTR_memcpy_000b0ca0" * (cast_expression "(code *)PTR_memcpy_000b0ca0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,iVar5,param_2)" ( identifier , identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_memmove_000b0ca8)(iVar5,iVar5 + param_2,uVar4 - param_2);" (call_expression "(*(code *)PTR_memmove_000b0ca8)(iVar5,iVar5 + param_2,uVar4 - param_2)" (parenthesized_expression "(*(code *)PTR_memmove_000b0ca8)" ( (pointer_expression "*(code *)PTR_memmove_000b0ca8" * (cast_expression "(code *)PTR_memmove_000b0ca8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5,iVar5 + param_2,uVar4 - param_2)" ( identifier , (binary_expression "iVar5 + param_2" identifier + identifier) , (binary_expression "uVar4 - param_2" identifier - identifier) ))) ;) (expression_statement "*(undefined4 *)(puVar2 + 0xdbc) = 0;" (assignment_expression "*(undefined4 *)(puVar2 + 0xdbc) = 0" (pointer_expression "*(undefined4 *)(puVar2 + 0xdbc)" * (cast_expression "(undefined4 *)(puVar2 + 0xdbc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0xdbc)" ( (binary_expression "puVar2 + 0xdbc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(uint *)(puVar2 + 0xdc0) = param_1 + param_2;" (assignment_expression "*(uint *)(puVar2 + 0xdc0) = param_1 + param_2" (pointer_expression "*(uint *)(puVar2 + 0xdc0)" * (cast_expression "(uint *)(puVar2 + 0xdc0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0xdc0)" ( (binary_expression "puVar2 + 0xdc0" identifier + number_literal) )))) = (binary_expression "param_1 + param_2" identifier + identifier)) ;) (expression_statement "*(uint *)(puVar2 + 0xdb4) = uVar4 - param_2;" (assignment_expression "*(uint *)(puVar2 + 0xdb4) = uVar4 - param_2" (pointer_expression "*(uint *)(puVar2 + 0xdb4)" * (cast_expression "(uint *)(puVar2 + 0xdb4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0xdb4)" ( (binary_expression "puVar2 + 0xdb4" identifier + number_literal) )))) = (binary_expression "uVar4 - param_2" identifier - identifier)) ;) }) (else_clause "else {\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,uVar4);\n      *(uint *)(puVar2 + 0xdc0) = param_1 + uVar4;\n      *(uint *)(puVar2 + 0xdbc) = param_2 - uVar4;\n      *(undefined4 *)(puVar2 + 0xdb4) = 0;\n      *(undefined4 *)(PTR_DAT_000b0178 + 0xdb0) = 0;\n      safefree(iVar5);\n      uVar3 = *(uint *)(puVar2 + 0xdbc);\n      *(undefined4 *)(puVar1 + 0xdb8) = 0;\n      puVar1 = PTR_DAT_000b0178;\n      if (uVar3 != 0) goto LAB_00026c20;\n    }" else (compound_statement "{\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,uVar4);\n      *(uint *)(puVar2 + 0xdc0) = param_1 + uVar4;\n      *(uint *)(puVar2 + 0xdbc) = param_2 - uVar4;\n      *(undefined4 *)(puVar2 + 0xdb4) = 0;\n      *(undefined4 *)(PTR_DAT_000b0178 + 0xdb0) = 0;\n      safefree(iVar5);\n      uVar3 = *(uint *)(puVar2 + 0xdbc);\n      *(undefined4 *)(puVar1 + 0xdb8) = 0;\n      puVar1 = PTR_DAT_000b0178;\n      if (uVar3 != 0) goto LAB_00026c20;\n    }" { (expression_statement "(*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,uVar4);" (call_expression "(*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,uVar4)" (parenthesized_expression "(*(code *)PTR_memcpy_000b0ca0)" ( (pointer_expression "*(code *)PTR_memcpy_000b0ca0" * (cast_expression "(code *)PTR_memcpy_000b0ca0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,iVar5,uVar4)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(uint *)(puVar2 + 0xdc0) = param_1 + uVar4;" (assignment_expression "*(uint *)(puVar2 + 0xdc0) = param_1 + uVar4" (pointer_expression "*(uint *)(puVar2 + 0xdc0)" * (cast_expression "(uint *)(puVar2 + 0xdc0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0xdc0)" ( (binary_expression "puVar2 + 0xdc0" identifier + number_literal) )))) = (binary_expression "param_1 + uVar4" identifier + identifier)) ;) (expression_statement "*(uint *)(puVar2 + 0xdbc) = param_2 - uVar4;" (assignment_expression "*(uint *)(puVar2 + 0xdbc) = param_2 - uVar4" (pointer_expression "*(uint *)(puVar2 + 0xdbc)" * (cast_expression "(uint *)(puVar2 + 0xdbc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0xdbc)" ( (binary_expression "puVar2 + 0xdbc" identifier + number_literal) )))) = (binary_expression "param_2 - uVar4" identifier - identifier)) ;) (expression_statement "*(undefined4 *)(puVar2 + 0xdb4) = 0;" (assignment_expression "*(undefined4 *)(puVar2 + 0xdb4) = 0" (pointer_expression "*(undefined4 *)(puVar2 + 0xdb4)" * (cast_expression "(undefined4 *)(puVar2 + 0xdb4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0xdb4)" ( (binary_expression "puVar2 + 0xdb4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(PTR_DAT_000b0178 + 0xdb0) = 0;" (assignment_expression "*(undefined4 *)(PTR_DAT_000b0178 + 0xdb0) = 0" (pointer_expression "*(undefined4 *)(PTR_DAT_000b0178 + 0xdb0)" * (cast_expression "(undefined4 *)(PTR_DAT_000b0178 + 0xdb0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b0178 + 0xdb0)" ( (binary_expression "PTR_DAT_000b0178 + 0xdb0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "safefree(iVar5);" (call_expression "safefree(iVar5)" identifier (argument_list "(iVar5)" ( identifier ))) ;) (expression_statement "uVar3 = *(uint *)(puVar2 + 0xdbc);" (assignment_expression "uVar3 = *(uint *)(puVar2 + 0xdbc)" identifier = (pointer_expression "*(uint *)(puVar2 + 0xdbc)" * (cast_expression "(uint *)(puVar2 + 0xdbc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0xdbc)" ( (binary_expression "puVar2 + 0xdbc" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(puVar1 + 0xdb8) = 0;" (assignment_expression "*(undefined4 *)(puVar1 + 0xdb8) = 0" (pointer_expression "*(undefined4 *)(puVar1 + 0xdb8)" * (cast_expression "(undefined4 *)(puVar1 + 0xdb8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0xdb8)" ( (binary_expression "puVar1 + 0xdb8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "puVar1 = PTR_DAT_000b0178;" (assignment_expression "puVar1 = PTR_DAT_000b0178" identifier = identifier) ;) (if_statement "if (uVar3 != 0) goto LAB_00026c20;" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00026c20;" goto statement_identifier ;)) }))) (return_statement "return param_2;" return identifier ;) })) (labeled_statement "LAB_00026c20:\n  while( true ) {\n    if (uVar3 == 0) {\n      return param_2;\n    }\n    iVar5 = (**(code **)(*(int *)(puVar1 + 0xdcc) + 0x24))(*(undefined4 *)(puVar1 + 0xdc8));\n    if (-1 < iVar5) break;\n    iVar5 = (*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)();\n    uVar3 = *(uint *)(puVar2 + 0xdbc);\n    if (iVar5 < 0) {\n      return 0;\n    }\n  }" statement_identifier : (while_statement "while( true ) {\n    if (uVar3 == 0) {\n      return param_2;\n    }\n    iVar5 = (**(code **)(*(int *)(puVar1 + 0xdcc) + 0x24))(*(undefined4 *)(puVar1 + 0xdc8));\n    if (-1 < iVar5) break;\n    iVar5 = (*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)();\n    uVar3 = *(uint *)(puVar2 + 0xdbc);\n    if (iVar5 < 0) {\n      return 0;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (uVar3 == 0) {\n      return param_2;\n    }\n    iVar5 = (**(code **)(*(int *)(puVar1 + 0xdcc) + 0x24))(*(undefined4 *)(puVar1 + 0xdc8));\n    if (-1 < iVar5) break;\n    iVar5 = (*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)();\n    uVar3 = *(uint *)(puVar2 + 0xdbc);\n    if (iVar5 < 0) {\n      return 0;\n    }\n  }" { (if_statement "if (uVar3 == 0) {\n      return param_2;\n    }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      return param_2;\n    }" { (return_statement "return param_2;" return identifier ;) })) (expression_statement "iVar5 = (**(code **)(*(int *)(puVar1 + 0xdcc) + 0x24))(*(undefined4 *)(puVar1 + 0xdc8));" (assignment_expression "iVar5 = (**(code **)(*(int *)(puVar1 + 0xdcc) + 0x24))(*(undefined4 *)(puVar1 + 0xdc8))" identifier = (call_expression "(**(code **)(*(int *)(puVar1 + 0xdcc) + 0x24))(*(undefined4 *)(puVar1 + 0xdc8))" (parenthesized_expression "(**(code **)(*(int *)(puVar1 + 0xdcc) + 0x24))" ( (pointer_expression "**(code **)(*(int *)(puVar1 + 0xdcc) + 0x24)" * (pointer_expression "*(code **)(*(int *)(puVar1 + 0xdcc) + 0x24)" * (cast_expression "(code **)(*(int *)(puVar1 + 0xdcc) + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(puVar1 + 0xdcc) + 0x24)" ( (binary_expression "*(int *)(puVar1 + 0xdcc) + 0x24" (pointer_expression "*(int *)(puVar1 + 0xdcc)" * (cast_expression "(int *)(puVar1 + 0xdcc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0xdcc)" ( (binary_expression "puVar1 + 0xdcc" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(*(undefined4 *)(puVar1 + 0xdc8))" ( (pointer_expression "*(undefined4 *)(puVar1 + 0xdc8)" * (cast_expression "(undefined4 *)(puVar1 + 0xdc8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0xdc8)" ( (binary_expression "puVar1 + 0xdc8" identifier + number_literal) )))) )))) ;) (if_statement "if (-1 < iVar5) break;" if (parenthesized_expression "(-1 < iVar5)" ( (binary_expression "-1 < iVar5" number_literal < identifier) )) (break_statement "break;" break ;)) (expression_statement "iVar5 = (*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)();" (assignment_expression "iVar5 = (*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)()" identifier = (call_expression "(*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)()" (parenthesized_expression "(*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)" ( (pointer_expression "*(code *)PTR_ssh_sftp_loop_iteration_000b03f8" * (cast_expression "(code *)PTR_ssh_sftp_loop_iteration_000b03f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "uVar3 = *(uint *)(puVar2 + 0xdbc);" (assignment_expression "uVar3 = *(uint *)(puVar2 + 0xdbc)" identifier = (pointer_expression "*(uint *)(puVar2 + 0xdbc)" * (cast_expression "(uint *)(puVar2 + 0xdbc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0xdbc)" ( (binary_expression "puVar2 + 0xdbc" identifier + number_literal) ))))) ;) (if_statement "if (iVar5 < 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int ssh_scp_recv(uchar *buf,int len)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  void *ptr;\n  \n  puVar1 = PTR_data_start_000b0178;\n  *(uchar **)(PTR_data_start_000b0178 + 0xdc0) = buf;\n  *(int *)(puVar1 + 0xdbc) = len;\n  puVar2 = PTR_data_start_000b0178;\n  uVar5 = *(uint *)(puVar1 + 0xdb4);\n  iVar3 = len;\n  if (uVar5 != 0) {\n    ptr = *(void **)(PTR_data_start_000b0178 + 0xdb8);\n    if ((uint)len < uVar5) {\n      (*(code *)PTR_memcpy_000b0ca0)(buf,ptr,len);\n      (*(code *)PTR_memmove_000b0ca8)(ptr,(int)ptr + len,uVar5 - len);\n      *(undefined4 *)(puVar1 + 0xdbc) = 0;\n      *(uchar **)(puVar1 + 0xdc0) = buf + len;\n      *(uint *)(puVar1 + 0xdb4) = uVar5 - len;\n      return len;\n    }\n    (*(code *)PTR_memcpy_000b0ca0)(buf,ptr,uVar5);\n    *(uchar **)(puVar1 + 0xdc0) = buf + uVar5;\n    *(uint *)(puVar1 + 0xdbc) = len - uVar5;\n    *(undefined4 *)(puVar1 + 0xdb4) = 0;\n                    /* WARNING: Subroutine does not return */\n    *(undefined4 *)(PTR_data_start_000b0178 + 0xdb0) = 0;\n    safefree(ptr);\n  }\n  while( true ) {\n    if (iVar3 == 0) {\n      return len;\n    }\n    iVar3 = (**(code **)(*(int *)(puVar2 + 0xdcc) + 0x24))(*(undefined4 *)(puVar2 + 0xdc8));\n    if (-1 < iVar3) break;\n    iVar4 = (*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)();\n    iVar3 = *(int *)(puVar1 + 0xdbc);\n    if (iVar4 < 0) {\n      return 0;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "int ssh_scp_recv(uchar *buf,int len)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  void *ptr;\n  \n  puVar1 = PTR_data_start_000b0178;\n  *(uchar **)(PTR_data_start_000b0178 + 0xdc0) = buf;\n  *(int *)(puVar1 + 0xdbc) = len;\n  puVar2 = PTR_data_start_000b0178;\n  uVar5 = *(uint *)(puVar1 + 0xdb4);\n  iVar3 = len;\n  if (uVar5 != 0) {\n    ptr = *(void **)(PTR_data_start_000b0178 + 0xdb8);\n    if ((uint)len < uVar5) {\n      (*(code *)PTR_memcpy_000b0ca0)(buf,ptr,len);\n      (*(code *)PTR_memmove_000b0ca8)(ptr,(int)ptr + len,uVar5 - len);\n      *(undefined4 *)(puVar1 + 0xdbc) = 0;\n      *(uchar **)(puVar1 + 0xdc0) = buf + len;\n      *(uint *)(puVar1 + 0xdb4) = uVar5 - len;\n      return len;\n    }\n    (*(code *)PTR_memcpy_000b0ca0)(buf,ptr,uVar5);\n    *(uchar **)(puVar1 + 0xdc0) = buf + uVar5;\n    *(uint *)(puVar1 + 0xdbc) = len - uVar5;\n    *(undefined4 *)(puVar1 + 0xdb4) = 0;\n                    /* WARNING: Subroutine does not return */\n    *(undefined4 *)(PTR_data_start_000b0178 + 0xdb0) = 0;\n    safefree(ptr);\n  }\n  while( true ) {\n    if (iVar3 == 0) {\n      return len;\n    }\n    iVar3 = (**(code **)(*(int *)(puVar2 + 0xdcc) + 0x24))(*(undefined4 *)(puVar2 + 0xdc8));\n    if (-1 < iVar3) break;\n    iVar4 = (*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)();\n    iVar3 = *(int *)(puVar1 + 0xdbc);\n    if (iVar4 < 0) {\n      return 0;\n    }\n  }\n  return 0;\n}" primitive_type (function_declarator "ssh_scp_recv(uchar *buf,int len)" identifier (parameter_list "(uchar *buf,int len)" ( (parameter_declaration "uchar *buf" type_identifier (pointer_declarator "*buf" * identifier)) , (parameter_declaration "int len" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  void *ptr;\n  \n  puVar1 = PTR_data_start_000b0178;\n  *(uchar **)(PTR_data_start_000b0178 + 0xdc0) = buf;\n  *(int *)(puVar1 + 0xdbc) = len;\n  puVar2 = PTR_data_start_000b0178;\n  uVar5 = *(uint *)(puVar1 + 0xdb4);\n  iVar3 = len;\n  if (uVar5 != 0) {\n    ptr = *(void **)(PTR_data_start_000b0178 + 0xdb8);\n    if ((uint)len < uVar5) {\n      (*(code *)PTR_memcpy_000b0ca0)(buf,ptr,len);\n      (*(code *)PTR_memmove_000b0ca8)(ptr,(int)ptr + len,uVar5 - len);\n      *(undefined4 *)(puVar1 + 0xdbc) = 0;\n      *(uchar **)(puVar1 + 0xdc0) = buf + len;\n      *(uint *)(puVar1 + 0xdb4) = uVar5 - len;\n      return len;\n    }\n    (*(code *)PTR_memcpy_000b0ca0)(buf,ptr,uVar5);\n    *(uchar **)(puVar1 + 0xdc0) = buf + uVar5;\n    *(uint *)(puVar1 + 0xdbc) = len - uVar5;\n    *(undefined4 *)(puVar1 + 0xdb4) = 0;\n                    /* WARNING: Subroutine does not return */\n    *(undefined4 *)(PTR_data_start_000b0178 + 0xdb0) = 0;\n    safefree(ptr);\n  }\n  while( true ) {\n    if (iVar3 == 0) {\n      return len;\n    }\n    iVar3 = (**(code **)(*(int *)(puVar2 + 0xdcc) + 0x24))(*(undefined4 *)(puVar2 + 0xdc8));\n    if (-1 < iVar3) break;\n    iVar4 = (*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)();\n    iVar3 = *(int *)(puVar1 + 0xdbc);\n    if (iVar4 < 0) {\n      return 0;\n    }\n  }\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "void *ptr;" primitive_type (pointer_declarator "*ptr" * identifier) ;) (expression_statement "puVar1 = PTR_data_start_000b0178;" (assignment_expression "puVar1 = PTR_data_start_000b0178" identifier = identifier) ;) (expression_statement "*(uchar **)(PTR_data_start_000b0178 + 0xdc0) = buf;" (assignment_expression "*(uchar **)(PTR_data_start_000b0178 + 0xdc0) = buf" (pointer_expression "*(uchar **)(PTR_data_start_000b0178 + 0xdc0)" * (cast_expression "(uchar **)(PTR_data_start_000b0178 + 0xdc0)" ( (type_descriptor "uchar **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_data_start_000b0178 + 0xdc0)" ( (binary_expression "PTR_data_start_000b0178 + 0xdc0" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(puVar1 + 0xdbc) = len;" (assignment_expression "*(int *)(puVar1 + 0xdbc) = len" (pointer_expression "*(int *)(puVar1 + 0xdbc)" * (cast_expression "(int *)(puVar1 + 0xdbc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0xdbc)" ( (binary_expression "puVar1 + 0xdbc" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar2 = PTR_data_start_000b0178;" (assignment_expression "puVar2 = PTR_data_start_000b0178" identifier = identifier) ;) (expression_statement "uVar5 = *(uint *)(puVar1 + 0xdb4);" (assignment_expression "uVar5 = *(uint *)(puVar1 + 0xdb4)" identifier = (pointer_expression "*(uint *)(puVar1 + 0xdb4)" * (cast_expression "(uint *)(puVar1 + 0xdb4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0xdb4)" ( (binary_expression "puVar1 + 0xdb4" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = len;" (assignment_expression "iVar3 = len" identifier = identifier) ;) (if_statement "if (uVar5 != 0) {\n    ptr = *(void **)(PTR_data_start_000b0178 + 0xdb8);\n    if ((uint)len < uVar5) {\n      (*(code *)PTR_memcpy_000b0ca0)(buf,ptr,len);\n      (*(code *)PTR_memmove_000b0ca8)(ptr,(int)ptr + len,uVar5 - len);\n      *(undefined4 *)(puVar1 + 0xdbc) = 0;\n      *(uchar **)(puVar1 + 0xdc0) = buf + len;\n      *(uint *)(puVar1 + 0xdb4) = uVar5 - len;\n      return len;\n    }\n    (*(code *)PTR_memcpy_000b0ca0)(buf,ptr,uVar5);\n    *(uchar **)(puVar1 + 0xdc0) = buf + uVar5;\n    *(uint *)(puVar1 + 0xdbc) = len - uVar5;\n    *(undefined4 *)(puVar1 + 0xdb4) = 0;\n                    /* WARNING: Subroutine does not return */\n    *(undefined4 *)(PTR_data_start_000b0178 + 0xdb0) = 0;\n    safefree(ptr);\n  }" if (parenthesized_expression "(uVar5 != 0)" ( (binary_expression "uVar5 != 0" identifier != number_literal) )) (compound_statement "{\n    ptr = *(void **)(PTR_data_start_000b0178 + 0xdb8);\n    if ((uint)len < uVar5) {\n      (*(code *)PTR_memcpy_000b0ca0)(buf,ptr,len);\n      (*(code *)PTR_memmove_000b0ca8)(ptr,(int)ptr + len,uVar5 - len);\n      *(undefined4 *)(puVar1 + 0xdbc) = 0;\n      *(uchar **)(puVar1 + 0xdc0) = buf + len;\n      *(uint *)(puVar1 + 0xdb4) = uVar5 - len;\n      return len;\n    }\n    (*(code *)PTR_memcpy_000b0ca0)(buf,ptr,uVar5);\n    *(uchar **)(puVar1 + 0xdc0) = buf + uVar5;\n    *(uint *)(puVar1 + 0xdbc) = len - uVar5;\n    *(undefined4 *)(puVar1 + 0xdb4) = 0;\n                    /* WARNING: Subroutine does not return */\n    *(undefined4 *)(PTR_data_start_000b0178 + 0xdb0) = 0;\n    safefree(ptr);\n  }" { (expression_statement "ptr = *(void **)(PTR_data_start_000b0178 + 0xdb8);" (assignment_expression "ptr = *(void **)(PTR_data_start_000b0178 + 0xdb8)" identifier = (pointer_expression "*(void **)(PTR_data_start_000b0178 + 0xdb8)" * (cast_expression "(void **)(PTR_data_start_000b0178 + 0xdb8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_data_start_000b0178 + 0xdb8)" ( (binary_expression "PTR_data_start_000b0178 + 0xdb8" identifier + number_literal) ))))) ;) (if_statement "if ((uint)len < uVar5) {\n      (*(code *)PTR_memcpy_000b0ca0)(buf,ptr,len);\n      (*(code *)PTR_memmove_000b0ca8)(ptr,(int)ptr + len,uVar5 - len);\n      *(undefined4 *)(puVar1 + 0xdbc) = 0;\n      *(uchar **)(puVar1 + 0xdc0) = buf + len;\n      *(uint *)(puVar1 + 0xdb4) = uVar5 - len;\n      return len;\n    }" if (parenthesized_expression "((uint)len < uVar5)" ( (binary_expression "(uint)len < uVar5" (cast_expression "(uint)len" ( (type_descriptor "uint" type_identifier) ) identifier) < identifier) )) (compound_statement "{\n      (*(code *)PTR_memcpy_000b0ca0)(buf,ptr,len);\n      (*(code *)PTR_memmove_000b0ca8)(ptr,(int)ptr + len,uVar5 - len);\n      *(undefined4 *)(puVar1 + 0xdbc) = 0;\n      *(uchar **)(puVar1 + 0xdc0) = buf + len;\n      *(uint *)(puVar1 + 0xdb4) = uVar5 - len;\n      return len;\n    }" { (expression_statement "(*(code *)PTR_memcpy_000b0ca0)(buf,ptr,len);" (call_expression "(*(code *)PTR_memcpy_000b0ca0)(buf,ptr,len)" (parenthesized_expression "(*(code *)PTR_memcpy_000b0ca0)" ( (pointer_expression "*(code *)PTR_memcpy_000b0ca0" * (cast_expression "(code *)PTR_memcpy_000b0ca0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(buf,ptr,len)" ( identifier , identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_memmove_000b0ca8)(ptr,(int)ptr + len,uVar5 - len);" (call_expression "(*(code *)PTR_memmove_000b0ca8)(ptr,(int)ptr + len,uVar5 - len)" (parenthesized_expression "(*(code *)PTR_memmove_000b0ca8)" ( (pointer_expression "*(code *)PTR_memmove_000b0ca8" * (cast_expression "(code *)PTR_memmove_000b0ca8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(ptr,(int)ptr + len,uVar5 - len)" ( identifier , (binary_expression "(int)ptr + len" (cast_expression "(int)ptr" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) , (binary_expression "uVar5 - len" identifier - identifier) ))) ;) (expression_statement "*(undefined4 *)(puVar1 + 0xdbc) = 0;" (assignment_expression "*(undefined4 *)(puVar1 + 0xdbc) = 0" (pointer_expression "*(undefined4 *)(puVar1 + 0xdbc)" * (cast_expression "(undefined4 *)(puVar1 + 0xdbc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0xdbc)" ( (binary_expression "puVar1 + 0xdbc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(uchar **)(puVar1 + 0xdc0) = buf + len;" (assignment_expression "*(uchar **)(puVar1 + 0xdc0) = buf + len" (pointer_expression "*(uchar **)(puVar1 + 0xdc0)" * (cast_expression "(uchar **)(puVar1 + 0xdc0)" ( (type_descriptor "uchar **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0xdc0)" ( (binary_expression "puVar1 + 0xdc0" identifier + number_literal) )))) = (binary_expression "buf + len" identifier + identifier)) ;) (expression_statement "*(uint *)(puVar1 + 0xdb4) = uVar5 - len;" (assignment_expression "*(uint *)(puVar1 + 0xdb4) = uVar5 - len" (pointer_expression "*(uint *)(puVar1 + 0xdb4)" * (cast_expression "(uint *)(puVar1 + 0xdb4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0xdb4)" ( (binary_expression "puVar1 + 0xdb4" identifier + number_literal) )))) = (binary_expression "uVar5 - len" identifier - identifier)) ;) (return_statement "return len;" return identifier ;) })) (expression_statement "(*(code *)PTR_memcpy_000b0ca0)(buf,ptr,uVar5);" (call_expression "(*(code *)PTR_memcpy_000b0ca0)(buf,ptr,uVar5)" (parenthesized_expression "(*(code *)PTR_memcpy_000b0ca0)" ( (pointer_expression "*(code *)PTR_memcpy_000b0ca0" * (cast_expression "(code *)PTR_memcpy_000b0ca0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(buf,ptr,uVar5)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(uchar **)(puVar1 + 0xdc0) = buf + uVar5;" (assignment_expression "*(uchar **)(puVar1 + 0xdc0) = buf + uVar5" (pointer_expression "*(uchar **)(puVar1 + 0xdc0)" * (cast_expression "(uchar **)(puVar1 + 0xdc0)" ( (type_descriptor "uchar **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0xdc0)" ( (binary_expression "puVar1 + 0xdc0" identifier + number_literal) )))) = (binary_expression "buf + uVar5" identifier + identifier)) ;) (expression_statement "*(uint *)(puVar1 + 0xdbc) = len - uVar5;" (assignment_expression "*(uint *)(puVar1 + 0xdbc) = len - uVar5" (pointer_expression "*(uint *)(puVar1 + 0xdbc)" * (cast_expression "(uint *)(puVar1 + 0xdbc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0xdbc)" ( (binary_expression "puVar1 + 0xdbc" identifier + number_literal) )))) = (binary_expression "len - uVar5" identifier - identifier)) ;) (expression_statement "*(undefined4 *)(puVar1 + 0xdb4) = 0;" (assignment_expression "*(undefined4 *)(puVar1 + 0xdb4) = 0" (pointer_expression "*(undefined4 *)(puVar1 + 0xdb4)" * (cast_expression "(undefined4 *)(puVar1 + 0xdb4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0xdb4)" ( (binary_expression "puVar1 + 0xdb4" identifier + number_literal) )))) = number_literal) ;) comment (expression_statement "*(undefined4 *)(PTR_data_start_000b0178 + 0xdb0) = 0;" (assignment_expression "*(undefined4 *)(PTR_data_start_000b0178 + 0xdb0) = 0" (pointer_expression "*(undefined4 *)(PTR_data_start_000b0178 + 0xdb0)" * (cast_expression "(undefined4 *)(PTR_data_start_000b0178 + 0xdb0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_data_start_000b0178 + 0xdb0)" ( (binary_expression "PTR_data_start_000b0178 + 0xdb0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "safefree(ptr);" (call_expression "safefree(ptr)" identifier (argument_list "(ptr)" ( identifier ))) ;) })) (while_statement "while( true ) {\n    if (iVar3 == 0) {\n      return len;\n    }\n    iVar3 = (**(code **)(*(int *)(puVar2 + 0xdcc) + 0x24))(*(undefined4 *)(puVar2 + 0xdc8));\n    if (-1 < iVar3) break;\n    iVar4 = (*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)();\n    iVar3 = *(int *)(puVar1 + 0xdbc);\n    if (iVar4 < 0) {\n      return 0;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (iVar3 == 0) {\n      return len;\n    }\n    iVar3 = (**(code **)(*(int *)(puVar2 + 0xdcc) + 0x24))(*(undefined4 *)(puVar2 + 0xdc8));\n    if (-1 < iVar3) break;\n    iVar4 = (*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)();\n    iVar3 = *(int *)(puVar1 + 0xdbc);\n    if (iVar4 < 0) {\n      return 0;\n    }\n  }" { (if_statement "if (iVar3 == 0) {\n      return len;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      return len;\n    }" { (return_statement "return len;" return identifier ;) })) (expression_statement "iVar3 = (**(code **)(*(int *)(puVar2 + 0xdcc) + 0x24))(*(undefined4 *)(puVar2 + 0xdc8));" (assignment_expression "iVar3 = (**(code **)(*(int *)(puVar2 + 0xdcc) + 0x24))(*(undefined4 *)(puVar2 + 0xdc8))" identifier = (call_expression "(**(code **)(*(int *)(puVar2 + 0xdcc) + 0x24))(*(undefined4 *)(puVar2 + 0xdc8))" (parenthesized_expression "(**(code **)(*(int *)(puVar2 + 0xdcc) + 0x24))" ( (pointer_expression "**(code **)(*(int *)(puVar2 + 0xdcc) + 0x24)" * (pointer_expression "*(code **)(*(int *)(puVar2 + 0xdcc) + 0x24)" * (cast_expression "(code **)(*(int *)(puVar2 + 0xdcc) + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(puVar2 + 0xdcc) + 0x24)" ( (binary_expression "*(int *)(puVar2 + 0xdcc) + 0x24" (pointer_expression "*(int *)(puVar2 + 0xdcc)" * (cast_expression "(int *)(puVar2 + 0xdcc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0xdcc)" ( (binary_expression "puVar2 + 0xdcc" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(*(undefined4 *)(puVar2 + 0xdc8))" ( (pointer_expression "*(undefined4 *)(puVar2 + 0xdc8)" * (cast_expression "(undefined4 *)(puVar2 + 0xdc8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0xdc8)" ( (binary_expression "puVar2 + 0xdc8" identifier + number_literal) )))) )))) ;) (if_statement "if (-1 < iVar3) break;" if (parenthesized_expression "(-1 < iVar3)" ( (binary_expression "-1 < iVar3" number_literal < identifier) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = (*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)();" (assignment_expression "iVar4 = (*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)()" identifier = (call_expression "(*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)()" (parenthesized_expression "(*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)" ( (pointer_expression "*(code *)PTR_ssh_sftp_loop_iteration_000b03f8" * (cast_expression "(code *)PTR_ssh_sftp_loop_iteration_000b03f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "iVar3 = *(int *)(puVar1 + 0xdbc);" (assignment_expression "iVar3 = *(int *)(puVar1 + 0xdbc)" identifier = (pointer_expression "*(int *)(puVar1 + 0xdbc)" * (cast_expression "(int *)(puVar1 + 0xdbc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0xdbc)" ( (binary_expression "puVar1 + 0xdbc" identifier + number_literal) ))))) ;) (if_statement "if (iVar4 < 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "uint FUN_00026b10(int param_1,uint param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  \n  puVar2 = PTR_DAT_000b0178;\n  *(int *)(PTR_DAT_000b0178 + 0xdc0) = param_1;\n  *(uint *)(puVar2 + 0xdbc) = param_2;\n  puVar1 = PTR_DAT_000b0178;\n  uVar4 = *(uint *)(puVar2 + 0xdb4);\n  uVar3 = param_2;\n  if (uVar4 != 0) {\n    iVar5 = *(int *)(PTR_DAT_000b0178 + 0xdb8);\n    if (param_2 < uVar4) {\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,param_2);\n      (*(code *)PTR_memmove_000b0ca8)(iVar5,iVar5 + param_2,uVar4 - param_2);\n      *(undefined4 *)(puVar2 + 0xdbc) = 0;\n      *(uint *)(puVar2 + 0xdc0) = param_1 + param_2;\n      *(uint *)(puVar2 + 0xdb4) = uVar4 - param_2;\n    }\n    else {\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,uVar4);\n      *(uint *)(puVar2 + 0xdc0) = param_1 + uVar4;\n      *(uint *)(puVar2 + 0xdbc) = param_2 - uVar4;\n      *(undefined4 *)(puVar2 + 0xdb4) = 0;\n      *(undefined4 *)(PTR_DAT_000b0178 + 0xdb0) = 0;\n      safefree(iVar5);\n      uVar3 = *(uint *)(puVar2 + 0xdbc);\n      *(undefined4 *)(puVar1 + 0xdb8) = 0;\n      puVar1 = PTR_DAT_000b0178;\n      if (uVar3 != 0) goto LAB_00026c20;\n    }\n    return param_2;\n  }\nLAB_00026c20:\n  while( true ) {\n    if (uVar3 == 0) {\n      return param_2;\n    }\n    iVar5 = (**(code **)(*(int *)(puVar1 + 0xdcc) + 0x24))(*(undefined4 *)(puVar1 + 0xdc8));\n    if (-1 < iVar5) break;\n    iVar5 = (*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)();\n    uVar3 = *(uint *)(puVar2 + 0xdbc);\n    if (iVar5 < 0) {\n      return 0;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "uint FUN_00026b10(int param_1,uint param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  \n  puVar2 = PTR_DAT_000b0178;\n  *(int *)(PTR_DAT_000b0178 + 0xdc0) = param_1;\n  *(uint *)(puVar2 + 0xdbc) = param_2;\n  puVar1 = PTR_DAT_000b0178;\n  uVar4 = *(uint *)(puVar2 + 0xdb4);\n  uVar3 = param_2;\n  if (uVar4 != 0) {\n    iVar5 = *(int *)(PTR_DAT_000b0178 + 0xdb8);\n    if (param_2 < uVar4) {\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,param_2);\n      (*(code *)PTR_memmove_000b0ca8)(iVar5,iVar5 + param_2,uVar4 - param_2);\n      *(undefined4 *)(puVar2 + 0xdbc) = 0;\n      *(uint *)(puVar2 + 0xdc0) = param_1 + param_2;\n      *(uint *)(puVar2 + 0xdb4) = uVar4 - param_2;\n    }\n    else {\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,uVar4);\n      *(uint *)(puVar2 + 0xdc0) = param_1 + uVar4;\n      *(uint *)(puVar2 + 0xdbc) = param_2 - uVar4;\n      *(undefined4 *)(puVar2 + 0xdb4) = 0;\n      *(undefined4 *)(PTR_DAT_000b0178 + 0xdb0) = 0;\n      safefree(iVar5);\n      uVar3 = *(uint *)(puVar2 + 0xdbc);\n      *(undefined4 *)(puVar1 + 0xdb8) = 0;\n      puVar1 = PTR_DAT_000b0178;\n      if (uVar3 != 0) goto LAB_00026c20;\n    }\n    return param_2;\n  }\nLAB_00026c20:\n  while( true ) {\n    if (uVar3 == 0) {\n      return param_2;\n    }\n    iVar5 = (**(code **)(*(int *)(puVar1 + 0xdcc) + 0x24))(*(undefined4 *)(puVar1 + 0xdc8));\n    if (-1 < iVar5) break;\n    iVar5 = (*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)();\n    uVar3 = *(uint *)(puVar2 + 0xdbc);\n    if (iVar5 < 0) {\n      return 0;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00026b10(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  \n  puVar2 = PTR_DAT_000b0178;\n  *(int *)(PTR_DAT_000b0178 + 0xdc0) = param_1;\n  *(uint *)(puVar2 + 0xdbc) = param_2;\n  puVar1 = PTR_DAT_000b0178;\n  uVar4 = *(uint *)(puVar2 + 0xdb4);\n  uVar3 = param_2;\n  if (uVar4 != 0) {\n    iVar5 = *(int *)(PTR_DAT_000b0178 + 0xdb8);\n    if (param_2 < uVar4) {\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,param_2);\n      (*(code *)PTR_memmove_000b0ca8)(iVar5,iVar5 + param_2,uVar4 - param_2);\n      *(undefined4 *)(puVar2 + 0xdbc) = 0;\n      *(uint *)(puVar2 + 0xdc0) = param_1 + param_2;\n      *(uint *)(puVar2 + 0xdb4) = uVar4 - param_2;\n    }\n    else {\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,uVar4);\n      *(uint *)(puVar2 + 0xdc0) = param_1 + uVar4;\n      *(uint *)(puVar2 + 0xdbc) = param_2 - uVar4;\n      *(undefined4 *)(puVar2 + 0xdb4) = 0;\n      *(undefined4 *)(PTR_DAT_000b0178 + 0xdb0) = 0;\n      safefree(iVar5);\n      uVar3 = *(uint *)(puVar2 + 0xdbc);\n      *(undefined4 *)(puVar1 + 0xdb8) = 0;\n      puVar1 = PTR_DAT_000b0178;\n      if (uVar3 != 0) goto LAB_00026c20;\n    }\n    return param_2;\n  }\nLAB_00026c20:\n  while( true ) {\n    if (uVar3 == 0) {\n      return param_2;\n    }\n    iVar5 = (**(code **)(*(int *)(puVar1 + 0xdcc) + 0x24))(*(undefined4 *)(puVar1 + 0xdc8));\n    if (-1 < iVar5) break;\n    iVar5 = (*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)();\n    uVar3 = *(uint *)(puVar2 + 0xdbc);\n    if (iVar5 < 0) {\n      return 0;\n    }\n  }\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "puVar2 = PTR_DAT_000b0178;" (assignment_expression "puVar2 = PTR_DAT_000b0178" identifier = identifier) ;) (expression_statement "*(int *)(PTR_DAT_000b0178 + 0xdc0) = param_1;" (assignment_expression "*(int *)(PTR_DAT_000b0178 + 0xdc0) = param_1" (pointer_expression "*(int *)(PTR_DAT_000b0178 + 0xdc0)" * (cast_expression "(int *)(PTR_DAT_000b0178 + 0xdc0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b0178 + 0xdc0)" ( (binary_expression "PTR_DAT_000b0178 + 0xdc0" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(puVar2 + 0xdbc) = param_2;" (assignment_expression "*(uint *)(puVar2 + 0xdbc) = param_2" (pointer_expression "*(uint *)(puVar2 + 0xdbc)" * (cast_expression "(uint *)(puVar2 + 0xdbc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0xdbc)" ( (binary_expression "puVar2 + 0xdbc" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar1 = PTR_DAT_000b0178;" (assignment_expression "puVar1 = PTR_DAT_000b0178" identifier = identifier) ;) (expression_statement "uVar4 = *(uint *)(puVar2 + 0xdb4);" (assignment_expression "uVar4 = *(uint *)(puVar2 + 0xdb4)" identifier = (pointer_expression "*(uint *)(puVar2 + 0xdb4)" * (cast_expression "(uint *)(puVar2 + 0xdb4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0xdb4)" ( (binary_expression "puVar2 + 0xdb4" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = param_2;" (assignment_expression "uVar3 = param_2" identifier = identifier) ;) (if_statement "if (uVar4 != 0) {\n    iVar5 = *(int *)(PTR_DAT_000b0178 + 0xdb8);\n    if (param_2 < uVar4) {\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,param_2);\n      (*(code *)PTR_memmove_000b0ca8)(iVar5,iVar5 + param_2,uVar4 - param_2);\n      *(undefined4 *)(puVar2 + 0xdbc) = 0;\n      *(uint *)(puVar2 + 0xdc0) = param_1 + param_2;\n      *(uint *)(puVar2 + 0xdb4) = uVar4 - param_2;\n    }\n    else {\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,uVar4);\n      *(uint *)(puVar2 + 0xdc0) = param_1 + uVar4;\n      *(uint *)(puVar2 + 0xdbc) = param_2 - uVar4;\n      *(undefined4 *)(puVar2 + 0xdb4) = 0;\n      *(undefined4 *)(PTR_DAT_000b0178 + 0xdb0) = 0;\n      safefree(iVar5);\n      uVar3 = *(uint *)(puVar2 + 0xdbc);\n      *(undefined4 *)(puVar1 + 0xdb8) = 0;\n      puVar1 = PTR_DAT_000b0178;\n      if (uVar3 != 0) goto LAB_00026c20;\n    }\n    return param_2;\n  }" if (parenthesized_expression "(uVar4 != 0)" ( (binary_expression "uVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar5 = *(int *)(PTR_DAT_000b0178 + 0xdb8);\n    if (param_2 < uVar4) {\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,param_2);\n      (*(code *)PTR_memmove_000b0ca8)(iVar5,iVar5 + param_2,uVar4 - param_2);\n      *(undefined4 *)(puVar2 + 0xdbc) = 0;\n      *(uint *)(puVar2 + 0xdc0) = param_1 + param_2;\n      *(uint *)(puVar2 + 0xdb4) = uVar4 - param_2;\n    }\n    else {\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,uVar4);\n      *(uint *)(puVar2 + 0xdc0) = param_1 + uVar4;\n      *(uint *)(puVar2 + 0xdbc) = param_2 - uVar4;\n      *(undefined4 *)(puVar2 + 0xdb4) = 0;\n      *(undefined4 *)(PTR_DAT_000b0178 + 0xdb0) = 0;\n      safefree(iVar5);\n      uVar3 = *(uint *)(puVar2 + 0xdbc);\n      *(undefined4 *)(puVar1 + 0xdb8) = 0;\n      puVar1 = PTR_DAT_000b0178;\n      if (uVar3 != 0) goto LAB_00026c20;\n    }\n    return param_2;\n  }" { (expression_statement "iVar5 = *(int *)(PTR_DAT_000b0178 + 0xdb8);" (assignment_expression "iVar5 = *(int *)(PTR_DAT_000b0178 + 0xdb8)" identifier = (pointer_expression "*(int *)(PTR_DAT_000b0178 + 0xdb8)" * (cast_expression "(int *)(PTR_DAT_000b0178 + 0xdb8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b0178 + 0xdb8)" ( (binary_expression "PTR_DAT_000b0178 + 0xdb8" identifier + number_literal) ))))) ;) (if_statement "if (param_2 < uVar4) {\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,param_2);\n      (*(code *)PTR_memmove_000b0ca8)(iVar5,iVar5 + param_2,uVar4 - param_2);\n      *(undefined4 *)(puVar2 + 0xdbc) = 0;\n      *(uint *)(puVar2 + 0xdc0) = param_1 + param_2;\n      *(uint *)(puVar2 + 0xdb4) = uVar4 - param_2;\n    }\n    else {\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,uVar4);\n      *(uint *)(puVar2 + 0xdc0) = param_1 + uVar4;\n      *(uint *)(puVar2 + 0xdbc) = param_2 - uVar4;\n      *(undefined4 *)(puVar2 + 0xdb4) = 0;\n      *(undefined4 *)(PTR_DAT_000b0178 + 0xdb0) = 0;\n      safefree(iVar5);\n      uVar3 = *(uint *)(puVar2 + 0xdbc);\n      *(undefined4 *)(puVar1 + 0xdb8) = 0;\n      puVar1 = PTR_DAT_000b0178;\n      if (uVar3 != 0) goto LAB_00026c20;\n    }" if (parenthesized_expression "(param_2 < uVar4)" ( (binary_expression "param_2 < uVar4" identifier < identifier) )) (compound_statement "{\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,param_2);\n      (*(code *)PTR_memmove_000b0ca8)(iVar5,iVar5 + param_2,uVar4 - param_2);\n      *(undefined4 *)(puVar2 + 0xdbc) = 0;\n      *(uint *)(puVar2 + 0xdc0) = param_1 + param_2;\n      *(uint *)(puVar2 + 0xdb4) = uVar4 - param_2;\n    }" { (expression_statement "(*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,param_2);" (call_expression "(*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,param_2)" (parenthesized_expression "(*(code *)PTR_memcpy_000b0ca0)" ( (pointer_expression "*(code *)PTR_memcpy_000b0ca0" * (cast_expression "(code *)PTR_memcpy_000b0ca0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,iVar5,param_2)" ( identifier , identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_memmove_000b0ca8)(iVar5,iVar5 + param_2,uVar4 - param_2);" (call_expression "(*(code *)PTR_memmove_000b0ca8)(iVar5,iVar5 + param_2,uVar4 - param_2)" (parenthesized_expression "(*(code *)PTR_memmove_000b0ca8)" ( (pointer_expression "*(code *)PTR_memmove_000b0ca8" * (cast_expression "(code *)PTR_memmove_000b0ca8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5,iVar5 + param_2,uVar4 - param_2)" ( identifier , (binary_expression "iVar5 + param_2" identifier + identifier) , (binary_expression "uVar4 - param_2" identifier - identifier) ))) ;) (expression_statement "*(undefined4 *)(puVar2 + 0xdbc) = 0;" (assignment_expression "*(undefined4 *)(puVar2 + 0xdbc) = 0" (pointer_expression "*(undefined4 *)(puVar2 + 0xdbc)" * (cast_expression "(undefined4 *)(puVar2 + 0xdbc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0xdbc)" ( (binary_expression "puVar2 + 0xdbc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(uint *)(puVar2 + 0xdc0) = param_1 + param_2;" (assignment_expression "*(uint *)(puVar2 + 0xdc0) = param_1 + param_2" (pointer_expression "*(uint *)(puVar2 + 0xdc0)" * (cast_expression "(uint *)(puVar2 + 0xdc0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0xdc0)" ( (binary_expression "puVar2 + 0xdc0" identifier + number_literal) )))) = (binary_expression "param_1 + param_2" identifier + identifier)) ;) (expression_statement "*(uint *)(puVar2 + 0xdb4) = uVar4 - param_2;" (assignment_expression "*(uint *)(puVar2 + 0xdb4) = uVar4 - param_2" (pointer_expression "*(uint *)(puVar2 + 0xdb4)" * (cast_expression "(uint *)(puVar2 + 0xdb4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0xdb4)" ( (binary_expression "puVar2 + 0xdb4" identifier + number_literal) )))) = (binary_expression "uVar4 - param_2" identifier - identifier)) ;) }) (else_clause "else {\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,uVar4);\n      *(uint *)(puVar2 + 0xdc0) = param_1 + uVar4;\n      *(uint *)(puVar2 + 0xdbc) = param_2 - uVar4;\n      *(undefined4 *)(puVar2 + 0xdb4) = 0;\n      *(undefined4 *)(PTR_DAT_000b0178 + 0xdb0) = 0;\n      safefree(iVar5);\n      uVar3 = *(uint *)(puVar2 + 0xdbc);\n      *(undefined4 *)(puVar1 + 0xdb8) = 0;\n      puVar1 = PTR_DAT_000b0178;\n      if (uVar3 != 0) goto LAB_00026c20;\n    }" else (compound_statement "{\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,uVar4);\n      *(uint *)(puVar2 + 0xdc0) = param_1 + uVar4;\n      *(uint *)(puVar2 + 0xdbc) = param_2 - uVar4;\n      *(undefined4 *)(puVar2 + 0xdb4) = 0;\n      *(undefined4 *)(PTR_DAT_000b0178 + 0xdb0) = 0;\n      safefree(iVar5);\n      uVar3 = *(uint *)(puVar2 + 0xdbc);\n      *(undefined4 *)(puVar1 + 0xdb8) = 0;\n      puVar1 = PTR_DAT_000b0178;\n      if (uVar3 != 0) goto LAB_00026c20;\n    }" { (expression_statement "(*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,uVar4);" (call_expression "(*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,uVar4)" (parenthesized_expression "(*(code *)PTR_memcpy_000b0ca0)" ( (pointer_expression "*(code *)PTR_memcpy_000b0ca0" * (cast_expression "(code *)PTR_memcpy_000b0ca0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,iVar5,uVar4)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(uint *)(puVar2 + 0xdc0) = param_1 + uVar4;" (assignment_expression "*(uint *)(puVar2 + 0xdc0) = param_1 + uVar4" (pointer_expression "*(uint *)(puVar2 + 0xdc0)" * (cast_expression "(uint *)(puVar2 + 0xdc0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0xdc0)" ( (binary_expression "puVar2 + 0xdc0" identifier + number_literal) )))) = (binary_expression "param_1 + uVar4" identifier + identifier)) ;) (expression_statement "*(uint *)(puVar2 + 0xdbc) = param_2 - uVar4;" (assignment_expression "*(uint *)(puVar2 + 0xdbc) = param_2 - uVar4" (pointer_expression "*(uint *)(puVar2 + 0xdbc)" * (cast_expression "(uint *)(puVar2 + 0xdbc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0xdbc)" ( (binary_expression "puVar2 + 0xdbc" identifier + number_literal) )))) = (binary_expression "param_2 - uVar4" identifier - identifier)) ;) (expression_statement "*(undefined4 *)(puVar2 + 0xdb4) = 0;" (assignment_expression "*(undefined4 *)(puVar2 + 0xdb4) = 0" (pointer_expression "*(undefined4 *)(puVar2 + 0xdb4)" * (cast_expression "(undefined4 *)(puVar2 + 0xdb4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0xdb4)" ( (binary_expression "puVar2 + 0xdb4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(PTR_DAT_000b0178 + 0xdb0) = 0;" (assignment_expression "*(undefined4 *)(PTR_DAT_000b0178 + 0xdb0) = 0" (pointer_expression "*(undefined4 *)(PTR_DAT_000b0178 + 0xdb0)" * (cast_expression "(undefined4 *)(PTR_DAT_000b0178 + 0xdb0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b0178 + 0xdb0)" ( (binary_expression "PTR_DAT_000b0178 + 0xdb0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "safefree(iVar5);" (call_expression "safefree(iVar5)" identifier (argument_list "(iVar5)" ( identifier ))) ;) (expression_statement "uVar3 = *(uint *)(puVar2 + 0xdbc);" (assignment_expression "uVar3 = *(uint *)(puVar2 + 0xdbc)" identifier = (pointer_expression "*(uint *)(puVar2 + 0xdbc)" * (cast_expression "(uint *)(puVar2 + 0xdbc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0xdbc)" ( (binary_expression "puVar2 + 0xdbc" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(puVar1 + 0xdb8) = 0;" (assignment_expression "*(undefined4 *)(puVar1 + 0xdb8) = 0" (pointer_expression "*(undefined4 *)(puVar1 + 0xdb8)" * (cast_expression "(undefined4 *)(puVar1 + 0xdb8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0xdb8)" ( (binary_expression "puVar1 + 0xdb8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "puVar1 = PTR_DAT_000b0178;" (assignment_expression "puVar1 = PTR_DAT_000b0178" identifier = identifier) ;) (if_statement "if (uVar3 != 0) goto LAB_00026c20;" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00026c20;" goto statement_identifier ;)) }))) (return_statement "return param_2;" return identifier ;) })) (labeled_statement "LAB_00026c20:\n  while( true ) {\n    if (uVar3 == 0) {\n      return param_2;\n    }\n    iVar5 = (**(code **)(*(int *)(puVar1 + 0xdcc) + 0x24))(*(undefined4 *)(puVar1 + 0xdc8));\n    if (-1 < iVar5) break;\n    iVar5 = (*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)();\n    uVar3 = *(uint *)(puVar2 + 0xdbc);\n    if (iVar5 < 0) {\n      return 0;\n    }\n  }" statement_identifier : (while_statement "while( true ) {\n    if (uVar3 == 0) {\n      return param_2;\n    }\n    iVar5 = (**(code **)(*(int *)(puVar1 + 0xdcc) + 0x24))(*(undefined4 *)(puVar1 + 0xdc8));\n    if (-1 < iVar5) break;\n    iVar5 = (*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)();\n    uVar3 = *(uint *)(puVar2 + 0xdbc);\n    if (iVar5 < 0) {\n      return 0;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (uVar3 == 0) {\n      return param_2;\n    }\n    iVar5 = (**(code **)(*(int *)(puVar1 + 0xdcc) + 0x24))(*(undefined4 *)(puVar1 + 0xdc8));\n    if (-1 < iVar5) break;\n    iVar5 = (*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)();\n    uVar3 = *(uint *)(puVar2 + 0xdbc);\n    if (iVar5 < 0) {\n      return 0;\n    }\n  }" { (if_statement "if (uVar3 == 0) {\n      return param_2;\n    }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      return param_2;\n    }" { (return_statement "return param_2;" return identifier ;) })) (expression_statement "iVar5 = (**(code **)(*(int *)(puVar1 + 0xdcc) + 0x24))(*(undefined4 *)(puVar1 + 0xdc8));" (assignment_expression "iVar5 = (**(code **)(*(int *)(puVar1 + 0xdcc) + 0x24))(*(undefined4 *)(puVar1 + 0xdc8))" identifier = (call_expression "(**(code **)(*(int *)(puVar1 + 0xdcc) + 0x24))(*(undefined4 *)(puVar1 + 0xdc8))" (parenthesized_expression "(**(code **)(*(int *)(puVar1 + 0xdcc) + 0x24))" ( (pointer_expression "**(code **)(*(int *)(puVar1 + 0xdcc) + 0x24)" * (pointer_expression "*(code **)(*(int *)(puVar1 + 0xdcc) + 0x24)" * (cast_expression "(code **)(*(int *)(puVar1 + 0xdcc) + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(puVar1 + 0xdcc) + 0x24)" ( (binary_expression "*(int *)(puVar1 + 0xdcc) + 0x24" (pointer_expression "*(int *)(puVar1 + 0xdcc)" * (cast_expression "(int *)(puVar1 + 0xdcc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0xdcc)" ( (binary_expression "puVar1 + 0xdcc" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(*(undefined4 *)(puVar1 + 0xdc8))" ( (pointer_expression "*(undefined4 *)(puVar1 + 0xdc8)" * (cast_expression "(undefined4 *)(puVar1 + 0xdc8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0xdc8)" ( (binary_expression "puVar1 + 0xdc8" identifier + number_literal) )))) )))) ;) (if_statement "if (-1 < iVar5) break;" if (parenthesized_expression "(-1 < iVar5)" ( (binary_expression "-1 < iVar5" number_literal < identifier) )) (break_statement "break;" break ;)) (expression_statement "iVar5 = (*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)();" (assignment_expression "iVar5 = (*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)()" identifier = (call_expression "(*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)()" (parenthesized_expression "(*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)" ( (pointer_expression "*(code *)PTR_ssh_sftp_loop_iteration_000b03f8" * (cast_expression "(code *)PTR_ssh_sftp_loop_iteration_000b03f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "uVar3 = *(uint *)(puVar2 + 0xdbc);" (assignment_expression "uVar3 = *(uint *)(puVar2 + 0xdbc)" identifier = (pointer_expression "*(uint *)(puVar2 + 0xdbc)" * (cast_expression "(uint *)(puVar2 + 0xdbc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0xdbc)" ( (binary_expression "puVar2 + 0xdbc" identifier + number_literal) ))))) ;) (if_statement "if (iVar5 < 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + IDENT) , (binary_expression IDENT - IDENT) ))) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT - IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT - IDENT)) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) }))) (return_statement return IDENT ;) })) (labeled_statement statement_identifier : (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return LIT ;) })) }))) (return_statement return LIT ;) })))
(function_definition "uint FUN_00026b10(int param_1,uint param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  \n  puVar2 = PTR_DAT_000b0178;\n  *(int *)(PTR_DAT_000b0178 + 0xdc0) = param_1;\n  *(uint *)(puVar2 + 0xdbc) = param_2;\n  puVar1 = PTR_DAT_000b0178;\n  uVar4 = *(uint *)(puVar2 + 0xdb4);\n  uVar3 = param_2;\n  if (uVar4 != 0) {\n    iVar5 = *(int *)(PTR_DAT_000b0178 + 0xdb8);\n    if (param_2 < uVar4) {\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,param_2);\n      (*(code *)PTR_memmove_000b0ca8)(iVar5,iVar5 + param_2,uVar4 - param_2);\n      *(undefined4 *)(puVar2 + 0xdbc) = 0;\n      *(uint *)(puVar2 + 0xdc0) = param_1 + param_2;\n      *(uint *)(puVar2 + 0xdb4) = uVar4 - param_2;\n    }\n    else {\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,uVar4);\n      *(uint *)(puVar2 + 0xdc0) = param_1 + uVar4;\n      *(uint *)(puVar2 + 0xdbc) = param_2 - uVar4;\n      *(undefined4 *)(puVar2 + 0xdb4) = 0;\n      *(undefined4 *)(PTR_DAT_000b0178 + 0xdb0) = 0;\n      safefree(iVar5);\n      uVar3 = *(uint *)(puVar2 + 0xdbc);\n      *(undefined4 *)(puVar1 + 0xdb8) = 0;\n      puVar1 = PTR_DAT_000b0178;\n      if (uVar3 != 0) goto LAB_00026c20;\n    }\n    return param_2;\n  }\nLAB_00026c20:\n  while( true ) {\n    if (uVar3 == 0) {\n      return param_2;\n    }\n    iVar5 = (**(code **)(*(int *)(puVar1 + 0xdcc) + 0x24))(*(undefined4 *)(puVar1 + 0xdc8));\n    if (-1 < iVar5) break;\n    iVar5 = (*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)();\n    uVar3 = *(uint *)(puVar2 + 0xdbc);\n    if (iVar5 < 0) {\n      return 0;\n    }\n  }\n  return 0;\n}" (type_identifier "uint") (function_declarator "FUN_00026b10(int param_1,uint param_2)" (identifier "FUN_00026b10") (parameter_list "(int param_1,uint param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  \n  puVar2 = PTR_DAT_000b0178;\n  *(int *)(PTR_DAT_000b0178 + 0xdc0) = param_1;\n  *(uint *)(puVar2 + 0xdbc) = param_2;\n  puVar1 = PTR_DAT_000b0178;\n  uVar4 = *(uint *)(puVar2 + 0xdb4);\n  uVar3 = param_2;\n  if (uVar4 != 0) {\n    iVar5 = *(int *)(PTR_DAT_000b0178 + 0xdb8);\n    if (param_2 < uVar4) {\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,param_2);\n      (*(code *)PTR_memmove_000b0ca8)(iVar5,iVar5 + param_2,uVar4 - param_2);\n      *(undefined4 *)(puVar2 + 0xdbc) = 0;\n      *(uint *)(puVar2 + 0xdc0) = param_1 + param_2;\n      *(uint *)(puVar2 + 0xdb4) = uVar4 - param_2;\n    }\n    else {\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,uVar4);\n      *(uint *)(puVar2 + 0xdc0) = param_1 + uVar4;\n      *(uint *)(puVar2 + 0xdbc) = param_2 - uVar4;\n      *(undefined4 *)(puVar2 + 0xdb4) = 0;\n      *(undefined4 *)(PTR_DAT_000b0178 + 0xdb0) = 0;\n      safefree(iVar5);\n      uVar3 = *(uint *)(puVar2 + 0xdbc);\n      *(undefined4 *)(puVar1 + 0xdb8) = 0;\n      puVar1 = PTR_DAT_000b0178;\n      if (uVar3 != 0) goto LAB_00026c20;\n    }\n    return param_2;\n  }\nLAB_00026c20:\n  while( true ) {\n    if (uVar3 == 0) {\n      return param_2;\n    }\n    iVar5 = (**(code **)(*(int *)(puVar1 + 0xdcc) + 0x24))(*(undefined4 *)(puVar1 + 0xdc8));\n    if (-1 < iVar5) break;\n    iVar5 = (*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)();\n    uVar3 = *(uint *)(puVar2 + 0xdbc);\n    if (iVar5 < 0) {\n      return 0;\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (expression_statement "puVar2 = PTR_DAT_000b0178;" (assignment_expression "puVar2 = PTR_DAT_000b0178" (identifier "puVar2") (= "=") (identifier "PTR_DAT_000b0178")) (; ";")) (expression_statement "*(int *)(PTR_DAT_000b0178 + 0xdc0) = param_1;" (assignment_expression "*(int *)(PTR_DAT_000b0178 + 0xdc0) = param_1" (pointer_expression "*(int *)(PTR_DAT_000b0178 + 0xdc0)" (* "*") (cast_expression "(int *)(PTR_DAT_000b0178 + 0xdc0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000b0178 + 0xdc0)" (( "(") (binary_expression "PTR_DAT_000b0178 + 0xdc0" (identifier "PTR_DAT_000b0178") (+ "+") (number_literal "0xdc0")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (expression_statement "*(uint *)(puVar2 + 0xdbc) = param_2;" (assignment_expression "*(uint *)(puVar2 + 0xdbc) = param_2" (pointer_expression "*(uint *)(puVar2 + 0xdbc)" (* "*") (cast_expression "(uint *)(puVar2 + 0xdbc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0xdbc)" (( "(") (binary_expression "puVar2 + 0xdbc" (identifier "puVar2") (+ "+") (number_literal "0xdbc")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "puVar1 = PTR_DAT_000b0178;" (assignment_expression "puVar1 = PTR_DAT_000b0178" (identifier "puVar1") (= "=") (identifier "PTR_DAT_000b0178")) (; ";")) (expression_statement "uVar4 = *(uint *)(puVar2 + 0xdb4);" (assignment_expression "uVar4 = *(uint *)(puVar2 + 0xdb4)" (identifier "uVar4") (= "=") (pointer_expression "*(uint *)(puVar2 + 0xdb4)" (* "*") (cast_expression "(uint *)(puVar2 + 0xdb4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0xdb4)" (( "(") (binary_expression "puVar2 + 0xdb4" (identifier "puVar2") (+ "+") (number_literal "0xdb4")) () ")"))))) (; ";")) (expression_statement "uVar3 = param_2;" (assignment_expression "uVar3 = param_2" (identifier "uVar3") (= "=") (identifier "param_2")) (; ";")) (if_statement "if (uVar4 != 0) {\n    iVar5 = *(int *)(PTR_DAT_000b0178 + 0xdb8);\n    if (param_2 < uVar4) {\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,param_2);\n      (*(code *)PTR_memmove_000b0ca8)(iVar5,iVar5 + param_2,uVar4 - param_2);\n      *(undefined4 *)(puVar2 + 0xdbc) = 0;\n      *(uint *)(puVar2 + 0xdc0) = param_1 + param_2;\n      *(uint *)(puVar2 + 0xdb4) = uVar4 - param_2;\n    }\n    else {\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,uVar4);\n      *(uint *)(puVar2 + 0xdc0) = param_1 + uVar4;\n      *(uint *)(puVar2 + 0xdbc) = param_2 - uVar4;\n      *(undefined4 *)(puVar2 + 0xdb4) = 0;\n      *(undefined4 *)(PTR_DAT_000b0178 + 0xdb0) = 0;\n      safefree(iVar5);\n      uVar3 = *(uint *)(puVar2 + 0xdbc);\n      *(undefined4 *)(puVar1 + 0xdb8) = 0;\n      puVar1 = PTR_DAT_000b0178;\n      if (uVar3 != 0) goto LAB_00026c20;\n    }\n    return param_2;\n  }" (if "if") (parenthesized_expression "(uVar4 != 0)" (( "(") (binary_expression "uVar4 != 0" (identifier "uVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar5 = *(int *)(PTR_DAT_000b0178 + 0xdb8);\n    if (param_2 < uVar4) {\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,param_2);\n      (*(code *)PTR_memmove_000b0ca8)(iVar5,iVar5 + param_2,uVar4 - param_2);\n      *(undefined4 *)(puVar2 + 0xdbc) = 0;\n      *(uint *)(puVar2 + 0xdc0) = param_1 + param_2;\n      *(uint *)(puVar2 + 0xdb4) = uVar4 - param_2;\n    }\n    else {\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,uVar4);\n      *(uint *)(puVar2 + 0xdc0) = param_1 + uVar4;\n      *(uint *)(puVar2 + 0xdbc) = param_2 - uVar4;\n      *(undefined4 *)(puVar2 + 0xdb4) = 0;\n      *(undefined4 *)(PTR_DAT_000b0178 + 0xdb0) = 0;\n      safefree(iVar5);\n      uVar3 = *(uint *)(puVar2 + 0xdbc);\n      *(undefined4 *)(puVar1 + 0xdb8) = 0;\n      puVar1 = PTR_DAT_000b0178;\n      if (uVar3 != 0) goto LAB_00026c20;\n    }\n    return param_2;\n  }" ({ "{") (expression_statement "iVar5 = *(int *)(PTR_DAT_000b0178 + 0xdb8);" (assignment_expression "iVar5 = *(int *)(PTR_DAT_000b0178 + 0xdb8)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(PTR_DAT_000b0178 + 0xdb8)" (* "*") (cast_expression "(int *)(PTR_DAT_000b0178 + 0xdb8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000b0178 + 0xdb8)" (( "(") (binary_expression "PTR_DAT_000b0178 + 0xdb8" (identifier "PTR_DAT_000b0178") (+ "+") (number_literal "0xdb8")) () ")"))))) (; ";")) (if_statement "if (param_2 < uVar4) {\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,param_2);\n      (*(code *)PTR_memmove_000b0ca8)(iVar5,iVar5 + param_2,uVar4 - param_2);\n      *(undefined4 *)(puVar2 + 0xdbc) = 0;\n      *(uint *)(puVar2 + 0xdc0) = param_1 + param_2;\n      *(uint *)(puVar2 + 0xdb4) = uVar4 - param_2;\n    }\n    else {\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,uVar4);\n      *(uint *)(puVar2 + 0xdc0) = param_1 + uVar4;\n      *(uint *)(puVar2 + 0xdbc) = param_2 - uVar4;\n      *(undefined4 *)(puVar2 + 0xdb4) = 0;\n      *(undefined4 *)(PTR_DAT_000b0178 + 0xdb0) = 0;\n      safefree(iVar5);\n      uVar3 = *(uint *)(puVar2 + 0xdbc);\n      *(undefined4 *)(puVar1 + 0xdb8) = 0;\n      puVar1 = PTR_DAT_000b0178;\n      if (uVar3 != 0) goto LAB_00026c20;\n    }" (if "if") (parenthesized_expression "(param_2 < uVar4)" (( "(") (binary_expression "param_2 < uVar4" (identifier "param_2") (< "<") (identifier "uVar4")) () ")")) (compound_statement "{\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,param_2);\n      (*(code *)PTR_memmove_000b0ca8)(iVar5,iVar5 + param_2,uVar4 - param_2);\n      *(undefined4 *)(puVar2 + 0xdbc) = 0;\n      *(uint *)(puVar2 + 0xdc0) = param_1 + param_2;\n      *(uint *)(puVar2 + 0xdb4) = uVar4 - param_2;\n    }" ({ "{") (expression_statement "(*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,param_2);" (call_expression "(*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,param_2)" (parenthesized_expression "(*(code *)PTR_memcpy_000b0ca0)" (( "(") (pointer_expression "*(code *)PTR_memcpy_000b0ca0" (* "*") (cast_expression "(code *)PTR_memcpy_000b0ca0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_000b0ca0"))) () ")")) (argument_list "(param_1,iVar5,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "iVar5") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_memmove_000b0ca8)(iVar5,iVar5 + param_2,uVar4 - param_2);" (call_expression "(*(code *)PTR_memmove_000b0ca8)(iVar5,iVar5 + param_2,uVar4 - param_2)" (parenthesized_expression "(*(code *)PTR_memmove_000b0ca8)" (( "(") (pointer_expression "*(code *)PTR_memmove_000b0ca8" (* "*") (cast_expression "(code *)PTR_memmove_000b0ca8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memmove_000b0ca8"))) () ")")) (argument_list "(iVar5,iVar5 + param_2,uVar4 - param_2)" (( "(") (identifier "iVar5") (, ",") (binary_expression "iVar5 + param_2" (identifier "iVar5") (+ "+") (identifier "param_2")) (, ",") (binary_expression "uVar4 - param_2" (identifier "uVar4") (- "-") (identifier "param_2")) () ")"))) (; ";")) (expression_statement "*(undefined4 *)(puVar2 + 0xdbc) = 0;" (assignment_expression "*(undefined4 *)(puVar2 + 0xdbc) = 0" (pointer_expression "*(undefined4 *)(puVar2 + 0xdbc)" (* "*") (cast_expression "(undefined4 *)(puVar2 + 0xdbc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0xdbc)" (( "(") (binary_expression "puVar2 + 0xdbc" (identifier "puVar2") (+ "+") (number_literal "0xdbc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(uint *)(puVar2 + 0xdc0) = param_1 + param_2;" (assignment_expression "*(uint *)(puVar2 + 0xdc0) = param_1 + param_2" (pointer_expression "*(uint *)(puVar2 + 0xdc0)" (* "*") (cast_expression "(uint *)(puVar2 + 0xdc0)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0xdc0)" (( "(") (binary_expression "puVar2 + 0xdc0" (identifier "puVar2") (+ "+") (number_literal "0xdc0")) () ")")))) (= "=") (binary_expression "param_1 + param_2" (identifier "param_1") (+ "+") (identifier "param_2"))) (; ";")) (expression_statement "*(uint *)(puVar2 + 0xdb4) = uVar4 - param_2;" (assignment_expression "*(uint *)(puVar2 + 0xdb4) = uVar4 - param_2" (pointer_expression "*(uint *)(puVar2 + 0xdb4)" (* "*") (cast_expression "(uint *)(puVar2 + 0xdb4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0xdb4)" (( "(") (binary_expression "puVar2 + 0xdb4" (identifier "puVar2") (+ "+") (number_literal "0xdb4")) () ")")))) (= "=") (binary_expression "uVar4 - param_2" (identifier "uVar4") (- "-") (identifier "param_2"))) (; ";")) (} "}")) (else_clause "else {\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,uVar4);\n      *(uint *)(puVar2 + 0xdc0) = param_1 + uVar4;\n      *(uint *)(puVar2 + 0xdbc) = param_2 - uVar4;\n      *(undefined4 *)(puVar2 + 0xdb4) = 0;\n      *(undefined4 *)(PTR_DAT_000b0178 + 0xdb0) = 0;\n      safefree(iVar5);\n      uVar3 = *(uint *)(puVar2 + 0xdbc);\n      *(undefined4 *)(puVar1 + 0xdb8) = 0;\n      puVar1 = PTR_DAT_000b0178;\n      if (uVar3 != 0) goto LAB_00026c20;\n    }" (else "else") (compound_statement "{\n      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,uVar4);\n      *(uint *)(puVar2 + 0xdc0) = param_1 + uVar4;\n      *(uint *)(puVar2 + 0xdbc) = param_2 - uVar4;\n      *(undefined4 *)(puVar2 + 0xdb4) = 0;\n      *(undefined4 *)(PTR_DAT_000b0178 + 0xdb0) = 0;\n      safefree(iVar5);\n      uVar3 = *(uint *)(puVar2 + 0xdbc);\n      *(undefined4 *)(puVar1 + 0xdb8) = 0;\n      puVar1 = PTR_DAT_000b0178;\n      if (uVar3 != 0) goto LAB_00026c20;\n    }" ({ "{") (expression_statement "(*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,uVar4);" (call_expression "(*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,uVar4)" (parenthesized_expression "(*(code *)PTR_memcpy_000b0ca0)" (( "(") (pointer_expression "*(code *)PTR_memcpy_000b0ca0" (* "*") (cast_expression "(code *)PTR_memcpy_000b0ca0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_000b0ca0"))) () ")")) (argument_list "(param_1,iVar5,uVar4)" (( "(") (identifier "param_1") (, ",") (identifier "iVar5") (, ",") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "*(uint *)(puVar2 + 0xdc0) = param_1 + uVar4;" (assignment_expression "*(uint *)(puVar2 + 0xdc0) = param_1 + uVar4" (pointer_expression "*(uint *)(puVar2 + 0xdc0)" (* "*") (cast_expression "(uint *)(puVar2 + 0xdc0)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0xdc0)" (( "(") (binary_expression "puVar2 + 0xdc0" (identifier "puVar2") (+ "+") (number_literal "0xdc0")) () ")")))) (= "=") (binary_expression "param_1 + uVar4" (identifier "param_1") (+ "+") (identifier "uVar4"))) (; ";")) (expression_statement "*(uint *)(puVar2 + 0xdbc) = param_2 - uVar4;" (assignment_expression "*(uint *)(puVar2 + 0xdbc) = param_2 - uVar4" (pointer_expression "*(uint *)(puVar2 + 0xdbc)" (* "*") (cast_expression "(uint *)(puVar2 + 0xdbc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0xdbc)" (( "(") (binary_expression "puVar2 + 0xdbc" (identifier "puVar2") (+ "+") (number_literal "0xdbc")) () ")")))) (= "=") (binary_expression "param_2 - uVar4" (identifier "param_2") (- "-") (identifier "uVar4"))) (; ";")) (expression_statement "*(undefined4 *)(puVar2 + 0xdb4) = 0;" (assignment_expression "*(undefined4 *)(puVar2 + 0xdb4) = 0" (pointer_expression "*(undefined4 *)(puVar2 + 0xdb4)" (* "*") (cast_expression "(undefined4 *)(puVar2 + 0xdb4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0xdb4)" (( "(") (binary_expression "puVar2 + 0xdb4" (identifier "puVar2") (+ "+") (number_literal "0xdb4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(PTR_DAT_000b0178 + 0xdb0) = 0;" (assignment_expression "*(undefined4 *)(PTR_DAT_000b0178 + 0xdb0) = 0" (pointer_expression "*(undefined4 *)(PTR_DAT_000b0178 + 0xdb0)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_000b0178 + 0xdb0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000b0178 + 0xdb0)" (( "(") (binary_expression "PTR_DAT_000b0178 + 0xdb0" (identifier "PTR_DAT_000b0178") (+ "+") (number_literal "0xdb0")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "safefree(iVar5);" (call_expression "safefree(iVar5)" (identifier "safefree") (argument_list "(iVar5)" (( "(") (identifier "iVar5") () ")"))) (; ";")) (expression_statement "uVar3 = *(uint *)(puVar2 + 0xdbc);" (assignment_expression "uVar3 = *(uint *)(puVar2 + 0xdbc)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(puVar2 + 0xdbc)" (* "*") (cast_expression "(uint *)(puVar2 + 0xdbc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0xdbc)" (( "(") (binary_expression "puVar2 + 0xdbc" (identifier "puVar2") (+ "+") (number_literal "0xdbc")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(puVar1 + 0xdb8) = 0;" (assignment_expression "*(undefined4 *)(puVar1 + 0xdb8) = 0" (pointer_expression "*(undefined4 *)(puVar1 + 0xdb8)" (* "*") (cast_expression "(undefined4 *)(puVar1 + 0xdb8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 0xdb8)" (( "(") (binary_expression "puVar1 + 0xdb8" (identifier "puVar1") (+ "+") (number_literal "0xdb8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1 = PTR_DAT_000b0178;" (assignment_expression "puVar1 = PTR_DAT_000b0178" (identifier "puVar1") (= "=") (identifier "PTR_DAT_000b0178")) (; ";")) (if_statement "if (uVar3 != 0) goto LAB_00026c20;" (if "if") (parenthesized_expression "(uVar3 != 0)" (( "(") (binary_expression "uVar3 != 0" (identifier "uVar3") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00026c20;" (goto "goto") (statement_identifier "LAB_00026c20") (; ";"))) (} "}")))) (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}"))) (labeled_statement "LAB_00026c20:\n  while( true ) {\n    if (uVar3 == 0) {\n      return param_2;\n    }\n    iVar5 = (**(code **)(*(int *)(puVar1 + 0xdcc) + 0x24))(*(undefined4 *)(puVar1 + 0xdc8));\n    if (-1 < iVar5) break;\n    iVar5 = (*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)();\n    uVar3 = *(uint *)(puVar2 + 0xdbc);\n    if (iVar5 < 0) {\n      return 0;\n    }\n  }" (statement_identifier "LAB_00026c20") (: ":") (while_statement "while( true ) {\n    if (uVar3 == 0) {\n      return param_2;\n    }\n    iVar5 = (**(code **)(*(int *)(puVar1 + 0xdcc) + 0x24))(*(undefined4 *)(puVar1 + 0xdc8));\n    if (-1 < iVar5) break;\n    iVar5 = (*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)();\n    uVar3 = *(uint *)(puVar2 + 0xdbc);\n    if (iVar5 < 0) {\n      return 0;\n    }\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    if (uVar3 == 0) {\n      return param_2;\n    }\n    iVar5 = (**(code **)(*(int *)(puVar1 + 0xdcc) + 0x24))(*(undefined4 *)(puVar1 + 0xdc8));\n    if (-1 < iVar5) break;\n    iVar5 = (*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)();\n    uVar3 = *(uint *)(puVar2 + 0xdbc);\n    if (iVar5 < 0) {\n      return 0;\n    }\n  }" ({ "{") (if_statement "if (uVar3 == 0) {\n      return param_2;\n    }" (if "if") (parenthesized_expression "(uVar3 == 0)" (( "(") (binary_expression "uVar3 == 0" (identifier "uVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return param_2;\n    }" ({ "{") (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}"))) (expression_statement "iVar5 = (**(code **)(*(int *)(puVar1 + 0xdcc) + 0x24))(*(undefined4 *)(puVar1 + 0xdc8));" (assignment_expression "iVar5 = (**(code **)(*(int *)(puVar1 + 0xdcc) + 0x24))(*(undefined4 *)(puVar1 + 0xdc8))" (identifier "iVar5") (= "=") (call_expression "(**(code **)(*(int *)(puVar1 + 0xdcc) + 0x24))(*(undefined4 *)(puVar1 + 0xdc8))" (parenthesized_expression "(**(code **)(*(int *)(puVar1 + 0xdcc) + 0x24))" (( "(") (pointer_expression "**(code **)(*(int *)(puVar1 + 0xdcc) + 0x24)" (* "*") (pointer_expression "*(code **)(*(int *)(puVar1 + 0xdcc) + 0x24)" (* "*") (cast_expression "(code **)(*(int *)(puVar1 + 0xdcc) + 0x24)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(puVar1 + 0xdcc) + 0x24)" (( "(") (binary_expression "*(int *)(puVar1 + 0xdcc) + 0x24" (pointer_expression "*(int *)(puVar1 + 0xdcc)" (* "*") (cast_expression "(int *)(puVar1 + 0xdcc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 0xdcc)" (( "(") (binary_expression "puVar1 + 0xdcc" (identifier "puVar1") (+ "+") (number_literal "0xdcc")) () ")")))) (+ "+") (number_literal "0x24")) () ")"))))) () ")")) (argument_list "(*(undefined4 *)(puVar1 + 0xdc8))" (( "(") (pointer_expression "*(undefined4 *)(puVar1 + 0xdc8)" (* "*") (cast_expression "(undefined4 *)(puVar1 + 0xdc8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 0xdc8)" (( "(") (binary_expression "puVar1 + 0xdc8" (identifier "puVar1") (+ "+") (number_literal "0xdc8")) () ")")))) () ")")))) (; ";")) (if_statement "if (-1 < iVar5) break;" (if "if") (parenthesized_expression "(-1 < iVar5)" (( "(") (binary_expression "-1 < iVar5" (number_literal "-1") (< "<") (identifier "iVar5")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar5 = (*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)();" (assignment_expression "iVar5 = (*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)()" (identifier "iVar5") (= "=") (call_expression "(*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)()" (parenthesized_expression "(*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)" (( "(") (pointer_expression "*(code *)PTR_ssh_sftp_loop_iteration_000b03f8" (* "*") (cast_expression "(code *)PTR_ssh_sftp_loop_iteration_000b03f8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_ssh_sftp_loop_iteration_000b03f8"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar3 = *(uint *)(puVar2 + 0xdbc);" (assignment_expression "uVar3 = *(uint *)(puVar2 + 0xdbc)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(puVar2 + 0xdbc)" (* "*") (cast_expression "(uint *)(puVar2 + 0xdbc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0xdbc)" (( "(") (binary_expression "puVar2 + 0xdbc" (identifier "puVar2") (+ "+") (number_literal "0xdbc")) () ")"))))) (; ";")) (if_statement "if (iVar5 < 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar5 < 0)" (( "(") (binary_expression "iVar5 < 0" (identifier "iVar5") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int function_1(type_1 *var_5,int var_4)

{
  type_2 *var_2;
  type_2 *var_8;
  int var_7;
  int var_9;
  type_3 var_3;
  void *ptr;
  
  var_2 = var_1;
  *(type_1 **)(var_1 + 0xdc0) = var_5;
  *(int *)(var_2 + 0xdbc) = var_4;
  var_8 = var_1;
  var_3 = *(type_3 *)(var_2 + 0xdb4);
  var_7 = var_4;
  if (var_3 != 0) {
    ptr = *(void **)(var_1 + 0xdb8);
    if ((type_3)var_4 < var_3) {
      (*(type_4 *)PTR_memcpy_000b0ca0)(var_5,ptr,var_4);
      (*(type_4 *)PTR_memmove_000b0ca8)(ptr,(int)ptr + var_4,var_3 - var_4);
      *(type_5 *)(var_2 + 0xdbc) = 0;
      *(type_1 **)(var_2 + 0xdc0) = var_5 + var_4;
      *(type_3 *)(var_2 + 0xdb4) = var_3 - var_4;
      return var_4;
    }
    (*(type_4 *)PTR_memcpy_000b0ca0)(var_5,ptr,var_3);
    *(type_1 **)(var_2 + 0xdc0) = var_5 + var_3;
    *(type_3 *)(var_2 + 0xdbc) = var_4 - var_3;
    *(type_5 *)(var_2 + 0xdb4) = 0;
                    /* WARNING: Subroutine does not return */
    *(type_5 *)(var_1 + 0xdb0) = 0;
    var_6(ptr);
  }
  while( true ) {
    if (var_7 == 0) {
      return var_4;
    }
    var_7 = (**(type_4 **)(*(int *)(var_8 + 0xdcc) + 0x24))(*(type_5 *)(var_8 + 0xdc8));
    if (-1 < var_7) break;
    var_9 = (*(type_4 *)PTR_ssh_sftp_loop_iteration_000b03f8)();
    var_7 = *(int *)(var_2 + 0xdbc);
    if (var_9 < 0) {
      return 0;
    }
  }
  return 0;
}


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

uint MASKED(int param_1,uint param_2)

{
  undefined *puVar1;
  undefined *puVar2;
  uint uVar3;
  uint uVar4;
  int iVar5;
  
  puVar2 = PTR_DAT_000b0178;
  *(int *)(PTR_DAT_000b0178 + 0xdc0) = param_1;
  *(uint *)(puVar2 + 0xdbc) = param_2;
  puVar1 = PTR_DAT_000b0178;
  uVar4 = *(uint *)(puVar2 + 0xdb4);
  uVar3 = param_2;
  if (uVar4 != 0) {
    iVar5 = *(int *)(PTR_DAT_000b0178 + 0xdb8);
    if (param_2 < uVar4) {
      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,param_2);
      (*(code *)PTR_memmove_000b0ca8)(iVar5,iVar5 + param_2,uVar4 - param_2);
      *(undefined4 *)(puVar2 + 0xdbc) = 0;
      *(uint *)(puVar2 + 0xdc0) = param_1 + param_2;
      *(uint *)(puVar2 + 0xdb4) = uVar4 - param_2;
    }
    else {
      (*(code *)PTR_memcpy_000b0ca0)(param_1,iVar5,uVar4);
      *(uint *)(puVar2 + 0xdc0) = param_1 + uVar4;
      *(uint *)(puVar2 + 0xdbc) = param_2 - uVar4;
      *(undefined4 *)(puVar2 + 0xdb4) = 0;
      *(undefined4 *)(PTR_DAT_000b0178 + 0xdb0) = 0;
      safefree(iVar5);
      uVar3 = *(uint *)(puVar2 + 0xdbc);
      *(undefined4 *)(puVar1 + 0xdb8) = 0;
      puVar1 = PTR_DAT_000b0178;
      if (uVar3 != 0) goto LAB_00026c20;
    }
    return param_2;
  }
LAB_00026c20:
  while( true ) {
    if (uVar3 == 0) {
      return param_2;
    }
    iVar5 = (**(code **)(*(int *)(puVar1 + 0xdcc) + 0x24))(*(undefined4 *)(puVar1 + 0xdc8));
    if (-1 < iVar5) break;
    iVar5 = (*(code *)PTR_ssh_sftp_loop_iteration_000b03f8)();
    uVar3 = *(uint *)(puVar2 + 0xdbc);
    if (iVar5 < 0) {
      return 0;
    }
  }
  return 0;
}

