
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

int scp_send_filedata(char *data,int len)

{
  int iVar1;
  uint64 x;
  sftp_packet *pktin;
  int iVar2;
  char *pcVar3;
  int iVar4;
  int in_GS_OFFSET;
  ulong local_34;
  ulong uStack_30;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (using_sftp == 0) {
    iVar2 = (*back->send)(backhandle,data,len);
    iVar4 = 0;
    if (iVar2 < 0x4001) goto LAB_00024d70;
    iVar2 = ssh_sftp_loop_iteration();
    if (-1 < iVar2) {
      do {
        iVar2 = (*back->sendbuffer)(backhandle);
        if (iVar2 < 0x4001) goto LAB_00024d70;
        iVar2 = ssh_sftp_loop_iteration();
      } while (-1 < iVar2);
      iVar4 = 1;
      goto LAB_00024d70;
    }
  }
  else if (scp_sftp_filehandle != (fxp_handle *)0x0) {
    do {
      iVar4 = xfer_upload_ready(scp_sftp_xfer);
      if (iVar4 != 0) {
        iVar4 = 0;
        xfer_upload_data(scp_sftp_xfer,data,len);
        x.lo = scp_sftp_fileoffset.lo;
        x.hi = scp_sftp_fileoffset.hi;
        uint64_add32(x,len);
        scp_sftp_fileoffset.hi = local_34;
        scp_sftp_fileoffset.lo = uStack_30;
        goto LAB_00024d70;
      }
      pktin = sftp_recv();
      iVar4 = xfer_upload_gotpkt(scp_sftp_xfer,pktin);
    } while (0 < iVar4);
    pcVar3 = fxp_error();
    tell_user(*(FILE **)PTR_stderr_000ccfa4,"error while writing: %s",pcVar3);
    if (iVar4 == -0x80000000) {
      safefree(pktin);
    }
    errs = errs + 1;
    iVar4 = 1;
    goto LAB_00024d70;
  }
  iVar4 = 1;
LAB_00024d70:
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return iVar4;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 FUN_00024d30(undefined4 param_1,undefined4 param_2)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 *puVar3;
  undefined4 uVar4;
  int in_GS_OFFSET;
  undefined4 uStack_40;
  undefined1 auStack_3c [4];
  undefined4 local_38;
  undefined4 local_34 [5];
  undefined4 local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x24d39;
  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);
  if (DAT_000cd1e4 == 0) {
    iVar1 = (**(code **)(DAT_000cd1dc + 0xc))(DAT_000cd1d8,param_1,param_2);
    uVar4 = 0;
    puVar3 = (undefined4 *)auStack_3c;
    if (iVar1 < 0x4001) goto LAB_00024d70;
    uStack_40 = 0x24e42;
    iVar1 = FUN_00088730();
    if (-1 < iVar1) {
      do {
        iVar1 = (**(code **)(DAT_000cd1dc + 0x10))(DAT_000cd1d8);
        puVar3 = (undefined4 *)auStack_3c;
        if (iVar1 < 0x4001) goto LAB_00024d70;
        uStack_40 = 0x24e75;
        iVar1 = FUN_00088730();
      } while (-1 < iVar1);
      uVar4 = 1;
      puVar3 = (undefined4 *)auStack_3c;
      goto LAB_00024d70;
    }
  }
  else if (DAT_000cd190 != 0) {
    do {
      iVar1 = FUN_00033110(DAT_000cd18c);
      if (iVar1 != 0) {
        uVar4 = 0;
        FUN_00033140(DAT_000cd18c,param_1,param_2);
        FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2);
        DAT_000cd184 = local_38;
        DAT_000cd188 = local_34[0];
        puVar3 = &uStack_40;
        goto LAB_00024d70;
      }
      uStack_40 = 0x24d95;
      uVar4 = FUN_0002eb50();
      iVar1 = FUN_00033230(DAT_000cd18c,uVar4);
    } while (0 < iVar1);
    uStack_40 = 0x24e8d;
    uVar2 = FUN_0002ed80();
    FUN_000235c0(*(undefined4 *)PTR_stderr_000ccfa4,"error while writing: %s",uVar2);
    if (iVar1 == -0x80000000) {
      FUN_0001dd30(uVar4);
    }
    DAT_000cd1f0 = DAT_000cd1f0 + 1;
    uVar4 = 1;
    puVar3 = (undefined4 *)auStack_3c;
    goto LAB_00024d70;
  }
  uVar4 = 1;
  puVar3 = (undefined4 *)auStack_3c;
LAB_00024d70:
  if (*(int *)((int)puVar3 + 0x1c) != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    *(undefined **)((int)puVar3 + -4) = &UNK_00024ed4;
    FUN_0008d800();
  }
  return uVar4;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000149a0
ADD EBX,0xa8037
SUB ESP,0x2c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x1c],EAX
XOR EAX,EAX
MOV EDI,dword ptr [ESP + 0x40]
MOV ESI,dword ptr [EBX + 0x474]
TEST ESI,ESI
JZ 0x00024e18
MOV EAX,dword ptr [EBX + 0x420]
TEST EAX,EAX
JNZ 0x00024db3
MOV ESI,0x1
NOP
MOV EDX,dword ptr [ESP + 0x1c]
XOR EDX,dword ptr GS:[0x14]
MOV EAX,ESI
JNZ 0x00024ecf
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x0002eb50
SUB ESP,0x8
PUSH EAX
MOV ESI,EAX
PUSH dword ptr [EBX + 0x41c]
CALL 0x00033230
ADD ESP,0x10
MOV EBP,EAX
TEST EAX,EAX
JLE 0x00024e88
SUB ESP,0xc
PUSH dword ptr [EBX + 0x41c]
CALL 0x00033110
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00024d90
SUB ESP,0x4
XOR ESI,ESI
PUSH dword ptr [ESP + 0x48]
PUSH EDI
PUSH dword ptr [EBX + 0x41c]
CALL 0x00033140
LEA EAX,[ESP + 0x18]
PUSH dword ptr [ESP + 0x54]
PUSH dword ptr [EBX + 0x418]
PUSH dword ptr [EBX + 0x414]
PUSH EAX
CALL 0x0001a870
MOV EAX,dword ptr [ESP + 0x24]
MOV EDX,dword ptr [ESP + 0x28]
ADD ESP,0x1c
MOV dword ptr [EBX + 0x414],EAX
MOV dword ptr [EBX + 0x418],EDX
JMP 0x00024d70
SUB ESP,0x4
MOV EAX,dword ptr [EBX + 0x46c]
PUSH dword ptr [ESP + 0x48]
PUSH EDI
PUSH dword ptr [EBX + 0x468]
CALL dword ptr [EAX + 0xc]
ADD ESP,0x10
CMP EAX,0x4000
JLE 0x00024d70
CALL 0x00088730
TEST EAX,EAX
JS 0x00024d6a
LEA ESI,[ESI]
SUB ESP,0xc
MOV EAX,dword ptr [EBX + 0x46c]
PUSH dword ptr [EBX + 0x468]
CALL dword ptr [EAX + 0x10]
ADD ESP,0x10
CMP EAX,0x4000
JLE 0x00024d70
CALL 0x00088730
TEST EAX,EAX
JNS 0x00024e50
MOV ESI,0x1
JMP 0x00024d70
CALL 0x0002ed80
SUB ESP,0x4
PUSH EAX
LEA EAX,[EBX + 0xfffc2f51]
PUSH EAX
MOV EAX,dword ptr [EBX + 0x234]
PUSH dword ptr [EAX]
CALL 0x000235c0
ADD ESP,0x10
CMP EBP,0x80000000
JZ 0x00024ec1
ADD dword ptr [EBX + 0x480],0x1
MOV ESI,0x1
JMP 0x00024d70
SUB ESP,0xc
PUSH ESI
CALL 0x0001dd30
ADD ESP,0x10
JMP 0x00024eb0
CALL 0x0008d800
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_00024d30(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  undefined4 uStack_40;\n  undefined1 auStack_3c [4];\n  undefined4 local_38;\n  undefined4 local_34 [5];\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x24d39;\n  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  if (DAT_000cd1e4 == 0) {\n    iVar1 = (**(code **)(DAT_000cd1dc + 0xc))(DAT_000cd1d8,param_1,param_2);\n    uVar4 = 0;\n    puVar3 = (undefined4 *)auStack_3c;\n    if (iVar1 < 0x4001) goto LAB_00024d70;\n    uStack_40 = 0x24e42;\n    iVar1 = FUN_00088730();\n    if (-1 < iVar1) {\n      do {\n        iVar1 = (**(code **)(DAT_000cd1dc + 0x10))(DAT_000cd1d8);\n        puVar3 = (undefined4 *)auStack_3c;\n        if (iVar1 < 0x4001) goto LAB_00024d70;\n        uStack_40 = 0x24e75;\n        iVar1 = FUN_00088730();\n      } while (-1 < iVar1);\n      uVar4 = 1;\n      puVar3 = (undefined4 *)auStack_3c;\n      goto LAB_00024d70;\n    }\n  }\n  else if (DAT_000cd190 != 0) {\n    do {\n      iVar1 = FUN_00033110(DAT_000cd18c);\n      if (iVar1 != 0) {\n        uVar4 = 0;\n        FUN_00033140(DAT_000cd18c,param_1,param_2);\n        FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2);\n        DAT_000cd184 = local_38;\n        DAT_000cd188 = local_34[0];\n        puVar3 = &uStack_40;\n        goto LAB_00024d70;\n      }\n      uStack_40 = 0x24d95;\n      uVar4 = FUN_0002eb50();\n      iVar1 = FUN_00033230(DAT_000cd18c,uVar4);\n    } while (0 < iVar1);\n    uStack_40 = 0x24e8d;\n    uVar2 = FUN_0002ed80();\n    FUN_000235c0(*(undefined4 *)PTR_stderr_000ccfa4,"error while writing: %s",uVar2);\n    if (iVar1 == -0x80000000) {\n      FUN_0001dd30(uVar4);\n    }\n    DAT_000cd1f0 = DAT_000cd1f0 + 1;\n    uVar4 = 1;\n    puVar3 = (undefined4 *)auStack_3c;\n    goto LAB_00024d70;\n  }\n  uVar4 = 1;\n  puVar3 = (undefined4 *)auStack_3c;\nLAB_00024d70:\n  if (*(int *)((int)puVar3 + 0x1c) != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    *(undefined **)((int)puVar3 + -4) = &UNK_00024ed4;\n    FUN_0008d800();\n  }\n  return uVar4;\n}\n\n" comment (function_definition "undefined4 FUN_00024d30(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  undefined4 uStack_40;\n  undefined1 auStack_3c [4];\n  undefined4 local_38;\n  undefined4 local_34 [5];\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x24d39;\n  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  if (DAT_000cd1e4 == 0) {\n    iVar1 = (**(code **)(DAT_000cd1dc + 0xc))(DAT_000cd1d8,param_1,param_2);\n    uVar4 = 0;\n    puVar3 = (undefined4 *)auStack_3c;\n    if (iVar1 < 0x4001) goto LAB_00024d70;\n    uStack_40 = 0x24e42;\n    iVar1 = FUN_00088730();\n    if (-1 < iVar1) {\n      do {\n        iVar1 = (**(code **)(DAT_000cd1dc + 0x10))(DAT_000cd1d8);\n        puVar3 = (undefined4 *)auStack_3c;\n        if (iVar1 < 0x4001) goto LAB_00024d70;\n        uStack_40 = 0x24e75;\n        iVar1 = FUN_00088730();\n      } while (-1 < iVar1);\n      uVar4 = 1;\n      puVar3 = (undefined4 *)auStack_3c;\n      goto LAB_00024d70;\n    }\n  }\n  else if (DAT_000cd190 != 0) {\n    do {\n      iVar1 = FUN_00033110(DAT_000cd18c);\n      if (iVar1 != 0) {\n        uVar4 = 0;\n        FUN_00033140(DAT_000cd18c,param_1,param_2);\n        FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2);\n        DAT_000cd184 = local_38;\n        DAT_000cd188 = local_34[0];\n        puVar3 = &uStack_40;\n        goto LAB_00024d70;\n      }\n      uStack_40 = 0x24d95;\n      uVar4 = FUN_0002eb50();\n      iVar1 = FUN_00033230(DAT_000cd18c,uVar4);\n    } while (0 < iVar1);\n    uStack_40 = 0x24e8d;\n    uVar2 = FUN_0002ed80();\n    FUN_000235c0(*(undefined4 *)PTR_stderr_000ccfa4,"error while writing: %s",uVar2);\n    if (iVar1 == -0x80000000) {\n      FUN_0001dd30(uVar4);\n    }\n    DAT_000cd1f0 = DAT_000cd1f0 + 1;\n    uVar4 = 1;\n    puVar3 = (undefined4 *)auStack_3c;\n    goto LAB_00024d70;\n  }\n  uVar4 = 1;\n  puVar3 = (undefined4 *)auStack_3c;\nLAB_00024d70:\n  if (*(int *)((int)puVar3 + 0x1c) != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    *(undefined **)((int)puVar3 + -4) = &UNK_00024ed4;\n    FUN_0008d800();\n  }\n  return uVar4;\n}" type_identifier (function_declarator "FUN_00024d30(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  undefined4 uStack_40;\n  undefined1 auStack_3c [4];\n  undefined4 local_38;\n  undefined4 local_34 [5];\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x24d39;\n  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  if (DAT_000cd1e4 == 0) {\n    iVar1 = (**(code **)(DAT_000cd1dc + 0xc))(DAT_000cd1d8,param_1,param_2);\n    uVar4 = 0;\n    puVar3 = (undefined4 *)auStack_3c;\n    if (iVar1 < 0x4001) goto LAB_00024d70;\n    uStack_40 = 0x24e42;\n    iVar1 = FUN_00088730();\n    if (-1 < iVar1) {\n      do {\n        iVar1 = (**(code **)(DAT_000cd1dc + 0x10))(DAT_000cd1d8);\n        puVar3 = (undefined4 *)auStack_3c;\n        if (iVar1 < 0x4001) goto LAB_00024d70;\n        uStack_40 = 0x24e75;\n        iVar1 = FUN_00088730();\n      } while (-1 < iVar1);\n      uVar4 = 1;\n      puVar3 = (undefined4 *)auStack_3c;\n      goto LAB_00024d70;\n    }\n  }\n  else if (DAT_000cd190 != 0) {\n    do {\n      iVar1 = FUN_00033110(DAT_000cd18c);\n      if (iVar1 != 0) {\n        uVar4 = 0;\n        FUN_00033140(DAT_000cd18c,param_1,param_2);\n        FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2);\n        DAT_000cd184 = local_38;\n        DAT_000cd188 = local_34[0];\n        puVar3 = &uStack_40;\n        goto LAB_00024d70;\n      }\n      uStack_40 = 0x24d95;\n      uVar4 = FUN_0002eb50();\n      iVar1 = FUN_00033230(DAT_000cd18c,uVar4);\n    } while (0 < iVar1);\n    uStack_40 = 0x24e8d;\n    uVar2 = FUN_0002ed80();\n    FUN_000235c0(*(undefined4 *)PTR_stderr_000ccfa4,"error while writing: %s",uVar2);\n    if (iVar1 == -0x80000000) {\n      FUN_0001dd30(uVar4);\n    }\n    DAT_000cd1f0 = DAT_000cd1f0 + 1;\n    uVar4 = 1;\n    puVar3 = (undefined4 *)auStack_3c;\n    goto LAB_00024d70;\n  }\n  uVar4 = 1;\n  puVar3 = (undefined4 *)auStack_3c;\nLAB_00024d70:\n  if (*(int *)((int)puVar3 + 0x1c) != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    *(undefined **)((int)puVar3 + -4) = &UNK_00024ed4;\n    FUN_0008d800();\n  }\n  return uVar4;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 uStack_40;" type_identifier identifier ;) (declaration "undefined1 auStack_3c [4];" type_identifier (array_declarator "auStack_3c [4]" identifier [ number_literal ]) ;) (declaration "undefined4 local_38;" type_identifier identifier ;) (declaration "undefined4 local_34 [5];" type_identifier (array_declarator "local_34 [5]" identifier [ number_literal ]) ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x24d39;" (assignment_expression "uStack_14 = 0x24d39" identifier = number_literal) ;) (expression_statement "local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(undefined4 *)(in_GS_OFFSET + 0x14)" * (cast_expression "(undefined4 *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (DAT_000cd1e4 == 0) {\n    iVar1 = (**(code **)(DAT_000cd1dc + 0xc))(DAT_000cd1d8,param_1,param_2);\n    uVar4 = 0;\n    puVar3 = (undefined4 *)auStack_3c;\n    if (iVar1 < 0x4001) goto LAB_00024d70;\n    uStack_40 = 0x24e42;\n    iVar1 = FUN_00088730();\n    if (-1 < iVar1) {\n      do {\n        iVar1 = (**(code **)(DAT_000cd1dc + 0x10))(DAT_000cd1d8);\n        puVar3 = (undefined4 *)auStack_3c;\n        if (iVar1 < 0x4001) goto LAB_00024d70;\n        uStack_40 = 0x24e75;\n        iVar1 = FUN_00088730();\n      } while (-1 < iVar1);\n      uVar4 = 1;\n      puVar3 = (undefined4 *)auStack_3c;\n      goto LAB_00024d70;\n    }\n  }\n  else if (DAT_000cd190 != 0) {\n    do {\n      iVar1 = FUN_00033110(DAT_000cd18c);\n      if (iVar1 != 0) {\n        uVar4 = 0;\n        FUN_00033140(DAT_000cd18c,param_1,param_2);\n        FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2);\n        DAT_000cd184 = local_38;\n        DAT_000cd188 = local_34[0];\n        puVar3 = &uStack_40;\n        goto LAB_00024d70;\n      }\n      uStack_40 = 0x24d95;\n      uVar4 = FUN_0002eb50();\n      iVar1 = FUN_00033230(DAT_000cd18c,uVar4);\n    } while (0 < iVar1);\n    uStack_40 = 0x24e8d;\n    uVar2 = FUN_0002ed80();\n    FUN_000235c0(*(undefined4 *)PTR_stderr_000ccfa4,"error while writing: %s",uVar2);\n    if (iVar1 == -0x80000000) {\n      FUN_0001dd30(uVar4);\n    }\n    DAT_000cd1f0 = DAT_000cd1f0 + 1;\n    uVar4 = 1;\n    puVar3 = (undefined4 *)auStack_3c;\n    goto LAB_00024d70;\n  }" if (parenthesized_expression "(DAT_000cd1e4 == 0)" ( (binary_expression "DAT_000cd1e4 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = (**(code **)(DAT_000cd1dc + 0xc))(DAT_000cd1d8,param_1,param_2);\n    uVar4 = 0;\n    puVar3 = (undefined4 *)auStack_3c;\n    if (iVar1 < 0x4001) goto LAB_00024d70;\n    uStack_40 = 0x24e42;\n    iVar1 = FUN_00088730();\n    if (-1 < iVar1) {\n      do {\n        iVar1 = (**(code **)(DAT_000cd1dc + 0x10))(DAT_000cd1d8);\n        puVar3 = (undefined4 *)auStack_3c;\n        if (iVar1 < 0x4001) goto LAB_00024d70;\n        uStack_40 = 0x24e75;\n        iVar1 = FUN_00088730();\n      } while (-1 < iVar1);\n      uVar4 = 1;\n      puVar3 = (undefined4 *)auStack_3c;\n      goto LAB_00024d70;\n    }\n  }" { (expression_statement "iVar1 = (**(code **)(DAT_000cd1dc + 0xc))(DAT_000cd1d8,param_1,param_2);" (assignment_expression "iVar1 = (**(code **)(DAT_000cd1dc + 0xc))(DAT_000cd1d8,param_1,param_2)" identifier = (call_expression "(**(code **)(DAT_000cd1dc + 0xc))(DAT_000cd1d8,param_1,param_2)" (parenthesized_expression "(**(code **)(DAT_000cd1dc + 0xc))" ( (pointer_expression "**(code **)(DAT_000cd1dc + 0xc)" * (pointer_expression "*(code **)(DAT_000cd1dc + 0xc)" * (cast_expression "(code **)(DAT_000cd1dc + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_000cd1dc + 0xc)" ( (binary_expression "DAT_000cd1dc + 0xc" identifier + number_literal) ))))) )) (argument_list "(DAT_000cd1d8,param_1,param_2)" ( identifier , identifier , identifier )))) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "puVar3 = (undefined4 *)auStack_3c;" (assignment_expression "puVar3 = (undefined4 *)auStack_3c" identifier = (cast_expression "(undefined4 *)auStack_3c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (iVar1 < 0x4001) goto LAB_00024d70;" if (parenthesized_expression "(iVar1 < 0x4001)" ( (binary_expression "iVar1 < 0x4001" identifier < number_literal) )) (goto_statement "goto LAB_00024d70;" goto statement_identifier ;)) (expression_statement "uStack_40 = 0x24e42;" (assignment_expression "uStack_40 = 0x24e42" identifier = number_literal) ;) (expression_statement "iVar1 = FUN_00088730();" (assignment_expression "iVar1 = FUN_00088730()" identifier = (call_expression "FUN_00088730()" identifier (argument_list "()" ( )))) ;) (if_statement "if (-1 < iVar1) {\n      do {\n        iVar1 = (**(code **)(DAT_000cd1dc + 0x10))(DAT_000cd1d8);\n        puVar3 = (undefined4 *)auStack_3c;\n        if (iVar1 < 0x4001) goto LAB_00024d70;\n        uStack_40 = 0x24e75;\n        iVar1 = FUN_00088730();\n      } while (-1 < iVar1);\n      uVar4 = 1;\n      puVar3 = (undefined4 *)auStack_3c;\n      goto LAB_00024d70;\n    }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n      do {\n        iVar1 = (**(code **)(DAT_000cd1dc + 0x10))(DAT_000cd1d8);\n        puVar3 = (undefined4 *)auStack_3c;\n        if (iVar1 < 0x4001) goto LAB_00024d70;\n        uStack_40 = 0x24e75;\n        iVar1 = FUN_00088730();\n      } while (-1 < iVar1);\n      uVar4 = 1;\n      puVar3 = (undefined4 *)auStack_3c;\n      goto LAB_00024d70;\n    }" { (do_statement "do {\n        iVar1 = (**(code **)(DAT_000cd1dc + 0x10))(DAT_000cd1d8);\n        puVar3 = (undefined4 *)auStack_3c;\n        if (iVar1 < 0x4001) goto LAB_00024d70;\n        uStack_40 = 0x24e75;\n        iVar1 = FUN_00088730();\n      } while (-1 < iVar1);" do (compound_statement "{\n        iVar1 = (**(code **)(DAT_000cd1dc + 0x10))(DAT_000cd1d8);\n        puVar3 = (undefined4 *)auStack_3c;\n        if (iVar1 < 0x4001) goto LAB_00024d70;\n        uStack_40 = 0x24e75;\n        iVar1 = FUN_00088730();\n      }" { (expression_statement "iVar1 = (**(code **)(DAT_000cd1dc + 0x10))(DAT_000cd1d8);" (assignment_expression "iVar1 = (**(code **)(DAT_000cd1dc + 0x10))(DAT_000cd1d8)" identifier = (call_expression "(**(code **)(DAT_000cd1dc + 0x10))(DAT_000cd1d8)" (parenthesized_expression "(**(code **)(DAT_000cd1dc + 0x10))" ( (pointer_expression "**(code **)(DAT_000cd1dc + 0x10)" * (pointer_expression "*(code **)(DAT_000cd1dc + 0x10)" * (cast_expression "(code **)(DAT_000cd1dc + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_000cd1dc + 0x10)" ( (binary_expression "DAT_000cd1dc + 0x10" identifier + number_literal) ))))) )) (argument_list "(DAT_000cd1d8)" ( identifier )))) ;) (expression_statement "puVar3 = (undefined4 *)auStack_3c;" (assignment_expression "puVar3 = (undefined4 *)auStack_3c" identifier = (cast_expression "(undefined4 *)auStack_3c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (iVar1 < 0x4001) goto LAB_00024d70;" if (parenthesized_expression "(iVar1 < 0x4001)" ( (binary_expression "iVar1 < 0x4001" identifier < number_literal) )) (goto_statement "goto LAB_00024d70;" goto statement_identifier ;)) (expression_statement "uStack_40 = 0x24e75;" (assignment_expression "uStack_40 = 0x24e75" identifier = number_literal) ;) (expression_statement "iVar1 = FUN_00088730();" (assignment_expression "iVar1 = FUN_00088730()" identifier = (call_expression "FUN_00088730()" identifier (argument_list "()" ( )))) ;) }) while (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) ;) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) (expression_statement "puVar3 = (undefined4 *)auStack_3c;" (assignment_expression "puVar3 = (undefined4 *)auStack_3c" identifier = (cast_expression "(undefined4 *)auStack_3c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (goto_statement "goto LAB_00024d70;" goto statement_identifier ;) })) }) (else_clause "else if (DAT_000cd190 != 0) {\n    do {\n      iVar1 = FUN_00033110(DAT_000cd18c);\n      if (iVar1 != 0) {\n        uVar4 = 0;\n        FUN_00033140(DAT_000cd18c,param_1,param_2);\n        FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2);\n        DAT_000cd184 = local_38;\n        DAT_000cd188 = local_34[0];\n        puVar3 = &uStack_40;\n        goto LAB_00024d70;\n      }\n      uStack_40 = 0x24d95;\n      uVar4 = FUN_0002eb50();\n      iVar1 = FUN_00033230(DAT_000cd18c,uVar4);\n    } while (0 < iVar1);\n    uStack_40 = 0x24e8d;\n    uVar2 = FUN_0002ed80();\n    FUN_000235c0(*(undefined4 *)PTR_stderr_000ccfa4,"error while writing: %s",uVar2);\n    if (iVar1 == -0x80000000) {\n      FUN_0001dd30(uVar4);\n    }\n    DAT_000cd1f0 = DAT_000cd1f0 + 1;\n    uVar4 = 1;\n    puVar3 = (undefined4 *)auStack_3c;\n    goto LAB_00024d70;\n  }" else (if_statement "if (DAT_000cd190 != 0) {\n    do {\n      iVar1 = FUN_00033110(DAT_000cd18c);\n      if (iVar1 != 0) {\n        uVar4 = 0;\n        FUN_00033140(DAT_000cd18c,param_1,param_2);\n        FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2);\n        DAT_000cd184 = local_38;\n        DAT_000cd188 = local_34[0];\n        puVar3 = &uStack_40;\n        goto LAB_00024d70;\n      }\n      uStack_40 = 0x24d95;\n      uVar4 = FUN_0002eb50();\n      iVar1 = FUN_00033230(DAT_000cd18c,uVar4);\n    } while (0 < iVar1);\n    uStack_40 = 0x24e8d;\n    uVar2 = FUN_0002ed80();\n    FUN_000235c0(*(undefined4 *)PTR_stderr_000ccfa4,"error while writing: %s",uVar2);\n    if (iVar1 == -0x80000000) {\n      FUN_0001dd30(uVar4);\n    }\n    DAT_000cd1f0 = DAT_000cd1f0 + 1;\n    uVar4 = 1;\n    puVar3 = (undefined4 *)auStack_3c;\n    goto LAB_00024d70;\n  }" if (parenthesized_expression "(DAT_000cd190 != 0)" ( (binary_expression "DAT_000cd190 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      iVar1 = FUN_00033110(DAT_000cd18c);\n      if (iVar1 != 0) {\n        uVar4 = 0;\n        FUN_00033140(DAT_000cd18c,param_1,param_2);\n        FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2);\n        DAT_000cd184 = local_38;\n        DAT_000cd188 = local_34[0];\n        puVar3 = &uStack_40;\n        goto LAB_00024d70;\n      }\n      uStack_40 = 0x24d95;\n      uVar4 = FUN_0002eb50();\n      iVar1 = FUN_00033230(DAT_000cd18c,uVar4);\n    } while (0 < iVar1);\n    uStack_40 = 0x24e8d;\n    uVar2 = FUN_0002ed80();\n    FUN_000235c0(*(undefined4 *)PTR_stderr_000ccfa4,"error while writing: %s",uVar2);\n    if (iVar1 == -0x80000000) {\n      FUN_0001dd30(uVar4);\n    }\n    DAT_000cd1f0 = DAT_000cd1f0 + 1;\n    uVar4 = 1;\n    puVar3 = (undefined4 *)auStack_3c;\n    goto LAB_00024d70;\n  }" { (do_statement "do {\n      iVar1 = FUN_00033110(DAT_000cd18c);\n      if (iVar1 != 0) {\n        uVar4 = 0;\n        FUN_00033140(DAT_000cd18c,param_1,param_2);\n        FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2);\n        DAT_000cd184 = local_38;\n        DAT_000cd188 = local_34[0];\n        puVar3 = &uStack_40;\n        goto LAB_00024d70;\n      }\n      uStack_40 = 0x24d95;\n      uVar4 = FUN_0002eb50();\n      iVar1 = FUN_00033230(DAT_000cd18c,uVar4);\n    } while (0 < iVar1);" do (compound_statement "{\n      iVar1 = FUN_00033110(DAT_000cd18c);\n      if (iVar1 != 0) {\n        uVar4 = 0;\n        FUN_00033140(DAT_000cd18c,param_1,param_2);\n        FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2);\n        DAT_000cd184 = local_38;\n        DAT_000cd188 = local_34[0];\n        puVar3 = &uStack_40;\n        goto LAB_00024d70;\n      }\n      uStack_40 = 0x24d95;\n      uVar4 = FUN_0002eb50();\n      iVar1 = FUN_00033230(DAT_000cd18c,uVar4);\n    }" { (expression_statement "iVar1 = FUN_00033110(DAT_000cd18c);" (assignment_expression "iVar1 = FUN_00033110(DAT_000cd18c)" identifier = (call_expression "FUN_00033110(DAT_000cd18c)" identifier (argument_list "(DAT_000cd18c)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n        uVar4 = 0;\n        FUN_00033140(DAT_000cd18c,param_1,param_2);\n        FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2);\n        DAT_000cd184 = local_38;\n        DAT_000cd188 = local_34[0];\n        puVar3 = &uStack_40;\n        goto LAB_00024d70;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        uVar4 = 0;\n        FUN_00033140(DAT_000cd18c,param_1,param_2);\n        FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2);\n        DAT_000cd184 = local_38;\n        DAT_000cd188 = local_34[0];\n        puVar3 = &uStack_40;\n        goto LAB_00024d70;\n      }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "FUN_00033140(DAT_000cd18c,param_1,param_2);" (call_expression "FUN_00033140(DAT_000cd18c,param_1,param_2)" identifier (argument_list "(DAT_000cd18c,param_1,param_2)" ( identifier , identifier , identifier ))) ;) (expression_statement "FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2);" (call_expression "FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2)" identifier (argument_list "(local_34,DAT_000cd184,DAT_000cd188,param_2)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "DAT_000cd184 = local_38;" (assignment_expression "DAT_000cd184 = local_38" identifier = identifier) ;) (expression_statement "DAT_000cd188 = local_34[0];" (assignment_expression "DAT_000cd188 = local_34[0]" identifier = (subscript_expression "local_34[0]" identifier [ number_literal ])) ;) (expression_statement "puVar3 = &uStack_40;" (assignment_expression "puVar3 = &uStack_40" identifier = (pointer_expression "&uStack_40" & identifier)) ;) (goto_statement "goto LAB_00024d70;" goto statement_identifier ;) })) (expression_statement "uStack_40 = 0x24d95;" (assignment_expression "uStack_40 = 0x24d95" identifier = number_literal) ;) (expression_statement "uVar4 = FUN_0002eb50();" (assignment_expression "uVar4 = FUN_0002eb50()" identifier = (call_expression "FUN_0002eb50()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar1 = FUN_00033230(DAT_000cd18c,uVar4);" (assignment_expression "iVar1 = FUN_00033230(DAT_000cd18c,uVar4)" identifier = (call_expression "FUN_00033230(DAT_000cd18c,uVar4)" identifier (argument_list "(DAT_000cd18c,uVar4)" ( identifier , identifier )))) ;) }) while (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) ;) (expression_statement "uStack_40 = 0x24e8d;" (assignment_expression "uStack_40 = 0x24e8d" identifier = number_literal) ;) (expression_statement "uVar2 = FUN_0002ed80();" (assignment_expression "uVar2 = FUN_0002ed80()" identifier = (call_expression "FUN_0002ed80()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_000235c0(*(undefined4 *)PTR_stderr_000ccfa4,"error while writing: %s",uVar2);" (call_expression "FUN_000235c0(*(undefined4 *)PTR_stderr_000ccfa4,"error while writing: %s",uVar2)" identifier (argument_list "(*(undefined4 *)PTR_stderr_000ccfa4,"error while writing: %s",uVar2)" ( (pointer_expression "*(undefined4 *)PTR_stderr_000ccfa4" * (cast_expression "(undefined4 *)PTR_stderr_000ccfa4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , (string_literal ""error while writing: %s"" " string_content ") , identifier ))) ;) (if_statement "if (iVar1 == -0x80000000) {\n      FUN_0001dd30(uVar4);\n    }" if (parenthesized_expression "(iVar1 == -0x80000000)" ( (binary_expression "iVar1 == -0x80000000" identifier == number_literal) )) (compound_statement "{\n      FUN_0001dd30(uVar4);\n    }" { (expression_statement "FUN_0001dd30(uVar4);" (call_expression "FUN_0001dd30(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) })) (expression_statement "DAT_000cd1f0 = DAT_000cd1f0 + 1;" (assignment_expression "DAT_000cd1f0 = DAT_000cd1f0 + 1" identifier = (binary_expression "DAT_000cd1f0 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) (expression_statement "puVar3 = (undefined4 *)auStack_3c;" (assignment_expression "puVar3 = (undefined4 *)auStack_3c" identifier = (cast_expression "(undefined4 *)auStack_3c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (goto_statement "goto LAB_00024d70;" goto statement_identifier ;) })))) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) (expression_statement "puVar3 = (undefined4 *)auStack_3c;" (assignment_expression "puVar3 = (undefined4 *)auStack_3c" identifier = (cast_expression "(undefined4 *)auStack_3c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (labeled_statement "LAB_00024d70:\n  if (*(int *)((int)puVar3 + 0x1c) != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    *(undefined **)((int)puVar3 + -4) = &UNK_00024ed4;\n    FUN_0008d800();\n  }" statement_identifier : (if_statement "if (*(int *)((int)puVar3 + 0x1c) != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    *(undefined **)((int)puVar3 + -4) = &UNK_00024ed4;\n    FUN_0008d800();\n  }" if (parenthesized_expression "(*(int *)((int)puVar3 + 0x1c) != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "*(int *)((int)puVar3 + 0x1c) != *(int *)(in_GS_OFFSET + 0x14)" (pointer_expression "*(int *)((int)puVar3 + 0x1c)" * (cast_expression "(int *)((int)puVar3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar3 + 0x1c)" ( (binary_expression "(int)puVar3 + 0x1c" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    *(undefined **)((int)puVar3 + -4) = &UNK_00024ed4;\n    FUN_0008d800();\n  }" { comment (expression_statement "*(undefined **)((int)puVar3 + -4) = &UNK_00024ed4;" (assignment_expression "*(undefined **)((int)puVar3 + -4) = &UNK_00024ed4" (pointer_expression "*(undefined **)((int)puVar3 + -4)" * (cast_expression "(undefined **)((int)puVar3 + -4)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)puVar3 + -4)" ( (binary_expression "(int)puVar3 + -4" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (pointer_expression "&UNK_00024ed4" & identifier)) ;) (expression_statement "FUN_0008d800();" (call_expression "FUN_0008d800()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return uVar4;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint scp_send_filedata(char *data,int len)\n\n{\n  int iVar1;\n  uint64 x;\n  sftp_packet *pktin;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  ulong local_34;\n  ulong uStack_30;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (using_sftp == 0) {\n    iVar2 = (*back->send)(backhandle,data,len);\n    iVar4 = 0;\n    if (iVar2 < 0x4001) goto LAB_00024d70;\n    iVar2 = ssh_sftp_loop_iteration();\n    if (-1 < iVar2) {\n      do {\n        iVar2 = (*back->sendbuffer)(backhandle);\n        if (iVar2 < 0x4001) goto LAB_00024d70;\n        iVar2 = ssh_sftp_loop_iteration();\n      } while (-1 < iVar2);\n      iVar4 = 1;\n      goto LAB_00024d70;\n    }\n  }\n  else if (scp_sftp_filehandle != (fxp_handle *)0x0) {\n    do {\n      iVar4 = xfer_upload_ready(scp_sftp_xfer);\n      if (iVar4 != 0) {\n        iVar4 = 0;\n        xfer_upload_data(scp_sftp_xfer,data,len);\n        x.lo = scp_sftp_fileoffset.lo;\n        x.hi = scp_sftp_fileoffset.hi;\n        uint64_add32(x,len);\n        scp_sftp_fileoffset.hi = local_34;\n        scp_sftp_fileoffset.lo = uStack_30;\n        goto LAB_00024d70;\n      }\n      pktin = sftp_recv();\n      iVar4 = xfer_upload_gotpkt(scp_sftp_xfer,pktin);\n    } while (0 < iVar4);\n    pcVar3 = fxp_error();\n    tell_user(*(FILE **)PTR_stderr_000ccfa4,"error while writing: %s",pcVar3);\n    if (iVar4 == -0x80000000) {\n      safefree(pktin);\n    }\n    errs = errs + 1;\n    iVar4 = 1;\n    goto LAB_00024d70;\n  }\n  iVar4 = 1;\nLAB_00024d70:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar4;\n}\n\n" comment comment (function_definition "int scp_send_filedata(char *data,int len)\n\n{\n  int iVar1;\n  uint64 x;\n  sftp_packet *pktin;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  ulong local_34;\n  ulong uStack_30;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (using_sftp == 0) {\n    iVar2 = (*back->send)(backhandle,data,len);\n    iVar4 = 0;\n    if (iVar2 < 0x4001) goto LAB_00024d70;\n    iVar2 = ssh_sftp_loop_iteration();\n    if (-1 < iVar2) {\n      do {\n        iVar2 = (*back->sendbuffer)(backhandle);\n        if (iVar2 < 0x4001) goto LAB_00024d70;\n        iVar2 = ssh_sftp_loop_iteration();\n      } while (-1 < iVar2);\n      iVar4 = 1;\n      goto LAB_00024d70;\n    }\n  }\n  else if (scp_sftp_filehandle != (fxp_handle *)0x0) {\n    do {\n      iVar4 = xfer_upload_ready(scp_sftp_xfer);\n      if (iVar4 != 0) {\n        iVar4 = 0;\n        xfer_upload_data(scp_sftp_xfer,data,len);\n        x.lo = scp_sftp_fileoffset.lo;\n        x.hi = scp_sftp_fileoffset.hi;\n        uint64_add32(x,len);\n        scp_sftp_fileoffset.hi = local_34;\n        scp_sftp_fileoffset.lo = uStack_30;\n        goto LAB_00024d70;\n      }\n      pktin = sftp_recv();\n      iVar4 = xfer_upload_gotpkt(scp_sftp_xfer,pktin);\n    } while (0 < iVar4);\n    pcVar3 = fxp_error();\n    tell_user(*(FILE **)PTR_stderr_000ccfa4,"error while writing: %s",pcVar3);\n    if (iVar4 == -0x80000000) {\n      safefree(pktin);\n    }\n    errs = errs + 1;\n    iVar4 = 1;\n    goto LAB_00024d70;\n  }\n  iVar4 = 1;\nLAB_00024d70:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar4;\n}" primitive_type (function_declarator "scp_send_filedata(char *data,int len)" identifier (parameter_list "(char *data,int len)" ( (parameter_declaration "char *data" primitive_type (pointer_declarator "*data" * identifier)) , (parameter_declaration "int len" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  uint64 x;\n  sftp_packet *pktin;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  ulong local_34;\n  ulong uStack_30;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (using_sftp == 0) {\n    iVar2 = (*back->send)(backhandle,data,len);\n    iVar4 = 0;\n    if (iVar2 < 0x4001) goto LAB_00024d70;\n    iVar2 = ssh_sftp_loop_iteration();\n    if (-1 < iVar2) {\n      do {\n        iVar2 = (*back->sendbuffer)(backhandle);\n        if (iVar2 < 0x4001) goto LAB_00024d70;\n        iVar2 = ssh_sftp_loop_iteration();\n      } while (-1 < iVar2);\n      iVar4 = 1;\n      goto LAB_00024d70;\n    }\n  }\n  else if (scp_sftp_filehandle != (fxp_handle *)0x0) {\n    do {\n      iVar4 = xfer_upload_ready(scp_sftp_xfer);\n      if (iVar4 != 0) {\n        iVar4 = 0;\n        xfer_upload_data(scp_sftp_xfer,data,len);\n        x.lo = scp_sftp_fileoffset.lo;\n        x.hi = scp_sftp_fileoffset.hi;\n        uint64_add32(x,len);\n        scp_sftp_fileoffset.hi = local_34;\n        scp_sftp_fileoffset.lo = uStack_30;\n        goto LAB_00024d70;\n      }\n      pktin = sftp_recv();\n      iVar4 = xfer_upload_gotpkt(scp_sftp_xfer,pktin);\n    } while (0 < iVar4);\n    pcVar3 = fxp_error();\n    tell_user(*(FILE **)PTR_stderr_000ccfa4,"error while writing: %s",pcVar3);\n    if (iVar4 == -0x80000000) {\n      safefree(pktin);\n    }\n    errs = errs + 1;\n    iVar4 = 1;\n    goto LAB_00024d70;\n  }\n  iVar4 = 1;\nLAB_00024d70:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar4;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint64 x;" type_identifier identifier ;) (declaration "sftp_packet *pktin;" type_identifier (pointer_declarator "*pktin" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "ulong local_34;" type_identifier identifier ;) (declaration "ulong uStack_30;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (using_sftp == 0) {\n    iVar2 = (*back->send)(backhandle,data,len);\n    iVar4 = 0;\n    if (iVar2 < 0x4001) goto LAB_00024d70;\n    iVar2 = ssh_sftp_loop_iteration();\n    if (-1 < iVar2) {\n      do {\n        iVar2 = (*back->sendbuffer)(backhandle);\n        if (iVar2 < 0x4001) goto LAB_00024d70;\n        iVar2 = ssh_sftp_loop_iteration();\n      } while (-1 < iVar2);\n      iVar4 = 1;\n      goto LAB_00024d70;\n    }\n  }\n  else if (scp_sftp_filehandle != (fxp_handle *)0x0) {\n    do {\n      iVar4 = xfer_upload_ready(scp_sftp_xfer);\n      if (iVar4 != 0) {\n        iVar4 = 0;\n        xfer_upload_data(scp_sftp_xfer,data,len);\n        x.lo = scp_sftp_fileoffset.lo;\n        x.hi = scp_sftp_fileoffset.hi;\n        uint64_add32(x,len);\n        scp_sftp_fileoffset.hi = local_34;\n        scp_sftp_fileoffset.lo = uStack_30;\n        goto LAB_00024d70;\n      }\n      pktin = sftp_recv();\n      iVar4 = xfer_upload_gotpkt(scp_sftp_xfer,pktin);\n    } while (0 < iVar4);\n    pcVar3 = fxp_error();\n    tell_user(*(FILE **)PTR_stderr_000ccfa4,"error while writing: %s",pcVar3);\n    if (iVar4 == -0x80000000) {\n      safefree(pktin);\n    }\n    errs = errs + 1;\n    iVar4 = 1;\n    goto LAB_00024d70;\n  }" if (parenthesized_expression "(using_sftp == 0)" ( (binary_expression "using_sftp == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = (*back->send)(backhandle,data,len);\n    iVar4 = 0;\n    if (iVar2 < 0x4001) goto LAB_00024d70;\n    iVar2 = ssh_sftp_loop_iteration();\n    if (-1 < iVar2) {\n      do {\n        iVar2 = (*back->sendbuffer)(backhandle);\n        if (iVar2 < 0x4001) goto LAB_00024d70;\n        iVar2 = ssh_sftp_loop_iteration();\n      } while (-1 < iVar2);\n      iVar4 = 1;\n      goto LAB_00024d70;\n    }\n  }" { (expression_statement "iVar2 = (*back->send)(backhandle,data,len);" (assignment_expression "iVar2 = (*back->send)(backhandle,data,len)" identifier = (call_expression "(*back->send)(backhandle,data,len)" (parenthesized_expression "(*back->send)" ( (pointer_expression "*back->send" * (field_expression "back->send" identifier -> field_identifier)) )) (argument_list "(backhandle,data,len)" ( identifier , identifier , identifier )))) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (if_statement "if (iVar2 < 0x4001) goto LAB_00024d70;" if (parenthesized_expression "(iVar2 < 0x4001)" ( (binary_expression "iVar2 < 0x4001" identifier < number_literal) )) (goto_statement "goto LAB_00024d70;" goto statement_identifier ;)) (expression_statement "iVar2 = ssh_sftp_loop_iteration();" (assignment_expression "iVar2 = ssh_sftp_loop_iteration()" identifier = (call_expression "ssh_sftp_loop_iteration()" identifier (argument_list "()" ( )))) ;) (if_statement "if (-1 < iVar2) {\n      do {\n        iVar2 = (*back->sendbuffer)(backhandle);\n        if (iVar2 < 0x4001) goto LAB_00024d70;\n        iVar2 = ssh_sftp_loop_iteration();\n      } while (-1 < iVar2);\n      iVar4 = 1;\n      goto LAB_00024d70;\n    }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n      do {\n        iVar2 = (*back->sendbuffer)(backhandle);\n        if (iVar2 < 0x4001) goto LAB_00024d70;\n        iVar2 = ssh_sftp_loop_iteration();\n      } while (-1 < iVar2);\n      iVar4 = 1;\n      goto LAB_00024d70;\n    }" { (do_statement "do {\n        iVar2 = (*back->sendbuffer)(backhandle);\n        if (iVar2 < 0x4001) goto LAB_00024d70;\n        iVar2 = ssh_sftp_loop_iteration();\n      } while (-1 < iVar2);" do (compound_statement "{\n        iVar2 = (*back->sendbuffer)(backhandle);\n        if (iVar2 < 0x4001) goto LAB_00024d70;\n        iVar2 = ssh_sftp_loop_iteration();\n      }" { (expression_statement "iVar2 = (*back->sendbuffer)(backhandle);" (assignment_expression "iVar2 = (*back->sendbuffer)(backhandle)" identifier = (call_expression "(*back->sendbuffer)(backhandle)" (parenthesized_expression "(*back->sendbuffer)" ( (pointer_expression "*back->sendbuffer" * (field_expression "back->sendbuffer" identifier -> field_identifier)) )) (argument_list "(backhandle)" ( identifier )))) ;) (if_statement "if (iVar2 < 0x4001) goto LAB_00024d70;" if (parenthesized_expression "(iVar2 < 0x4001)" ( (binary_expression "iVar2 < 0x4001" identifier < number_literal) )) (goto_statement "goto LAB_00024d70;" goto statement_identifier ;)) (expression_statement "iVar2 = ssh_sftp_loop_iteration();" (assignment_expression "iVar2 = ssh_sftp_loop_iteration()" identifier = (call_expression "ssh_sftp_loop_iteration()" identifier (argument_list "()" ( )))) ;) }) while (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) ;) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_00024d70;" goto statement_identifier ;) })) }) (else_clause "else if (scp_sftp_filehandle != (fxp_handle *)0x0) {\n    do {\n      iVar4 = xfer_upload_ready(scp_sftp_xfer);\n      if (iVar4 != 0) {\n        iVar4 = 0;\n        xfer_upload_data(scp_sftp_xfer,data,len);\n        x.lo = scp_sftp_fileoffset.lo;\n        x.hi = scp_sftp_fileoffset.hi;\n        uint64_add32(x,len);\n        scp_sftp_fileoffset.hi = local_34;\n        scp_sftp_fileoffset.lo = uStack_30;\n        goto LAB_00024d70;\n      }\n      pktin = sftp_recv();\n      iVar4 = xfer_upload_gotpkt(scp_sftp_xfer,pktin);\n    } while (0 < iVar4);\n    pcVar3 = fxp_error();\n    tell_user(*(FILE **)PTR_stderr_000ccfa4,"error while writing: %s",pcVar3);\n    if (iVar4 == -0x80000000) {\n      safefree(pktin);\n    }\n    errs = errs + 1;\n    iVar4 = 1;\n    goto LAB_00024d70;\n  }" else (if_statement "if (scp_sftp_filehandle != (fxp_handle *)0x0) {\n    do {\n      iVar4 = xfer_upload_ready(scp_sftp_xfer);\n      if (iVar4 != 0) {\n        iVar4 = 0;\n        xfer_upload_data(scp_sftp_xfer,data,len);\n        x.lo = scp_sftp_fileoffset.lo;\n        x.hi = scp_sftp_fileoffset.hi;\n        uint64_add32(x,len);\n        scp_sftp_fileoffset.hi = local_34;\n        scp_sftp_fileoffset.lo = uStack_30;\n        goto LAB_00024d70;\n      }\n      pktin = sftp_recv();\n      iVar4 = xfer_upload_gotpkt(scp_sftp_xfer,pktin);\n    } while (0 < iVar4);\n    pcVar3 = fxp_error();\n    tell_user(*(FILE **)PTR_stderr_000ccfa4,"error while writing: %s",pcVar3);\n    if (iVar4 == -0x80000000) {\n      safefree(pktin);\n    }\n    errs = errs + 1;\n    iVar4 = 1;\n    goto LAB_00024d70;\n  }" if (parenthesized_expression "(scp_sftp_filehandle != (fxp_handle *)0x0)" ( (binary_expression "scp_sftp_filehandle != (fxp_handle *)0x0" identifier != (cast_expression "(fxp_handle *)0x0" ( (type_descriptor "fxp_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      iVar4 = xfer_upload_ready(scp_sftp_xfer);\n      if (iVar4 != 0) {\n        iVar4 = 0;\n        xfer_upload_data(scp_sftp_xfer,data,len);\n        x.lo = scp_sftp_fileoffset.lo;\n        x.hi = scp_sftp_fileoffset.hi;\n        uint64_add32(x,len);\n        scp_sftp_fileoffset.hi = local_34;\n        scp_sftp_fileoffset.lo = uStack_30;\n        goto LAB_00024d70;\n      }\n      pktin = sftp_recv();\n      iVar4 = xfer_upload_gotpkt(scp_sftp_xfer,pktin);\n    } while (0 < iVar4);\n    pcVar3 = fxp_error();\n    tell_user(*(FILE **)PTR_stderr_000ccfa4,"error while writing: %s",pcVar3);\n    if (iVar4 == -0x80000000) {\n      safefree(pktin);\n    }\n    errs = errs + 1;\n    iVar4 = 1;\n    goto LAB_00024d70;\n  }" { (do_statement "do {\n      iVar4 = xfer_upload_ready(scp_sftp_xfer);\n      if (iVar4 != 0) {\n        iVar4 = 0;\n        xfer_upload_data(scp_sftp_xfer,data,len);\n        x.lo = scp_sftp_fileoffset.lo;\n        x.hi = scp_sftp_fileoffset.hi;\n        uint64_add32(x,len);\n        scp_sftp_fileoffset.hi = local_34;\n        scp_sftp_fileoffset.lo = uStack_30;\n        goto LAB_00024d70;\n      }\n      pktin = sftp_recv();\n      iVar4 = xfer_upload_gotpkt(scp_sftp_xfer,pktin);\n    } while (0 < iVar4);" do (compound_statement "{\n      iVar4 = xfer_upload_ready(scp_sftp_xfer);\n      if (iVar4 != 0) {\n        iVar4 = 0;\n        xfer_upload_data(scp_sftp_xfer,data,len);\n        x.lo = scp_sftp_fileoffset.lo;\n        x.hi = scp_sftp_fileoffset.hi;\n        uint64_add32(x,len);\n        scp_sftp_fileoffset.hi = local_34;\n        scp_sftp_fileoffset.lo = uStack_30;\n        goto LAB_00024d70;\n      }\n      pktin = sftp_recv();\n      iVar4 = xfer_upload_gotpkt(scp_sftp_xfer,pktin);\n    }" { (expression_statement "iVar4 = xfer_upload_ready(scp_sftp_xfer);" (assignment_expression "iVar4 = xfer_upload_ready(scp_sftp_xfer)" identifier = (call_expression "xfer_upload_ready(scp_sftp_xfer)" identifier (argument_list "(scp_sftp_xfer)" ( identifier )))) ;) (if_statement "if (iVar4 != 0) {\n        iVar4 = 0;\n        xfer_upload_data(scp_sftp_xfer,data,len);\n        x.lo = scp_sftp_fileoffset.lo;\n        x.hi = scp_sftp_fileoffset.hi;\n        uint64_add32(x,len);\n        scp_sftp_fileoffset.hi = local_34;\n        scp_sftp_fileoffset.lo = uStack_30;\n        goto LAB_00024d70;\n      }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar4 = 0;\n        xfer_upload_data(scp_sftp_xfer,data,len);\n        x.lo = scp_sftp_fileoffset.lo;\n        x.hi = scp_sftp_fileoffset.hi;\n        uint64_add32(x,len);\n        scp_sftp_fileoffset.hi = local_34;\n        scp_sftp_fileoffset.lo = uStack_30;\n        goto LAB_00024d70;\n      }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "xfer_upload_data(scp_sftp_xfer,data,len);" (call_expression "xfer_upload_data(scp_sftp_xfer,data,len)" identifier (argument_list "(scp_sftp_xfer,data,len)" ( identifier , identifier , identifier ))) ;) (expression_statement "x.lo = scp_sftp_fileoffset.lo;" (assignment_expression "x.lo = scp_sftp_fileoffset.lo" (field_expression "x.lo" identifier . field_identifier) = (field_expression "scp_sftp_fileoffset.lo" identifier . field_identifier)) ;) (expression_statement "x.hi = scp_sftp_fileoffset.hi;" (assignment_expression "x.hi = scp_sftp_fileoffset.hi" (field_expression "x.hi" identifier . field_identifier) = (field_expression "scp_sftp_fileoffset.hi" identifier . field_identifier)) ;) (expression_statement "uint64_add32(x,len);" (call_expression "uint64_add32(x,len)" identifier (argument_list "(x,len)" ( identifier , identifier ))) ;) (expression_statement "scp_sftp_fileoffset.hi = local_34;" (assignment_expression "scp_sftp_fileoffset.hi = local_34" (field_expression "scp_sftp_fileoffset.hi" identifier . field_identifier) = identifier) ;) (expression_statement "scp_sftp_fileoffset.lo = uStack_30;" (assignment_expression "scp_sftp_fileoffset.lo = uStack_30" (field_expression "scp_sftp_fileoffset.lo" identifier . field_identifier) = identifier) ;) (goto_statement "goto LAB_00024d70;" goto statement_identifier ;) })) (expression_statement "pktin = sftp_recv();" (assignment_expression "pktin = sftp_recv()" identifier = (call_expression "sftp_recv()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar4 = xfer_upload_gotpkt(scp_sftp_xfer,pktin);" (assignment_expression "iVar4 = xfer_upload_gotpkt(scp_sftp_xfer,pktin)" identifier = (call_expression "xfer_upload_gotpkt(scp_sftp_xfer,pktin)" identifier (argument_list "(scp_sftp_xfer,pktin)" ( identifier , identifier )))) ;) }) while (parenthesized_expression "(0 < iVar4)" ( (binary_expression "0 < iVar4" number_literal < identifier) )) ;) (expression_statement "pcVar3 = fxp_error();" (assignment_expression "pcVar3 = fxp_error()" identifier = (call_expression "fxp_error()" identifier (argument_list "()" ( )))) ;) (expression_statement "tell_user(*(FILE **)PTR_stderr_000ccfa4,"error while writing: %s",pcVar3);" (call_expression "tell_user(*(FILE **)PTR_stderr_000ccfa4,"error while writing: %s",pcVar3)" identifier (argument_list "(*(FILE **)PTR_stderr_000ccfa4,"error while writing: %s",pcVar3)" ( (pointer_expression "*(FILE **)PTR_stderr_000ccfa4" * (cast_expression "(FILE **)PTR_stderr_000ccfa4" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (string_literal ""error while writing: %s"" " string_content ") , identifier ))) ;) (if_statement "if (iVar4 == -0x80000000) {\n      safefree(pktin);\n    }" if (parenthesized_expression "(iVar4 == -0x80000000)" ( (binary_expression "iVar4 == -0x80000000" identifier == number_literal) )) (compound_statement "{\n      safefree(pktin);\n    }" { (expression_statement "safefree(pktin);" (call_expression "safefree(pktin)" identifier (argument_list "(pktin)" ( identifier ))) ;) })) (expression_statement "errs = errs + 1;" (assignment_expression "errs = errs + 1" identifier = (binary_expression "errs + 1" identifier + number_literal)) ;) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_00024d70;" goto statement_identifier ;) })))) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (labeled_statement "LAB_00024d70:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" statement_identifier : (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "undefined4 FUN_00024d30(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  undefined4 uStack_40;\n  undefined1 auStack_3c [4];\n  undefined4 local_38;\n  undefined4 local_34 [5];\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x24d39;\n  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  if (DAT_000cd1e4 == 0) {\n    iVar1 = (**(code **)(DAT_000cd1dc + 0xc))(DAT_000cd1d8,param_1,param_2);\n    uVar4 = 0;\n    puVar3 = (undefined4 *)auStack_3c;\n    if (iVar1 < 0x4001) goto LAB_00024d70;\n    uStack_40 = 0x24e42;\n    iVar1 = FUN_00088730();\n    if (-1 < iVar1) {\n      do {\n        iVar1 = (**(code **)(DAT_000cd1dc + 0x10))(DAT_000cd1d8);\n        puVar3 = (undefined4 *)auStack_3c;\n        if (iVar1 < 0x4001) goto LAB_00024d70;\n        uStack_40 = 0x24e75;\n        iVar1 = FUN_00088730();\n      } while (-1 < iVar1);\n      uVar4 = 1;\n      puVar3 = (undefined4 *)auStack_3c;\n      goto LAB_00024d70;\n    }\n  }\n  else if (DAT_000cd190 != 0) {\n    do {\n      iVar1 = FUN_00033110(DAT_000cd18c);\n      if (iVar1 != 0) {\n        uVar4 = 0;\n        FUN_00033140(DAT_000cd18c,param_1,param_2);\n        FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2);\n        DAT_000cd184 = local_38;\n        DAT_000cd188 = local_34[0];\n        puVar3 = &uStack_40;\n        goto LAB_00024d70;\n      }\n      uStack_40 = 0x24d95;\n      uVar4 = FUN_0002eb50();\n      iVar1 = FUN_00033230(DAT_000cd18c,uVar4);\n    } while (0 < iVar1);\n    uStack_40 = 0x24e8d;\n    uVar2 = FUN_0002ed80();\n    FUN_000235c0(*(undefined4 *)PTR_stderr_000ccfa4,"error while writing: %s",uVar2);\n    if (iVar1 == -0x80000000) {\n      FUN_0001dd30(uVar4);\n    }\n    DAT_000cd1f0 = DAT_000cd1f0 + 1;\n    uVar4 = 1;\n    puVar3 = (undefined4 *)auStack_3c;\n    goto LAB_00024d70;\n  }\n  uVar4 = 1;\n  puVar3 = (undefined4 *)auStack_3c;\nLAB_00024d70:\n  if (*(int *)((int)puVar3 + 0x1c) != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    *(undefined **)((int)puVar3 + -4) = &UNK_00024ed4;\n    FUN_0008d800();\n  }\n  return uVar4;\n}\n\n" (function_definition "undefined4 FUN_00024d30(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  undefined4 uStack_40;\n  undefined1 auStack_3c [4];\n  undefined4 local_38;\n  undefined4 local_34 [5];\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x24d39;\n  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  if (DAT_000cd1e4 == 0) {\n    iVar1 = (**(code **)(DAT_000cd1dc + 0xc))(DAT_000cd1d8,param_1,param_2);\n    uVar4 = 0;\n    puVar3 = (undefined4 *)auStack_3c;\n    if (iVar1 < 0x4001) goto LAB_00024d70;\n    uStack_40 = 0x24e42;\n    iVar1 = FUN_00088730();\n    if (-1 < iVar1) {\n      do {\n        iVar1 = (**(code **)(DAT_000cd1dc + 0x10))(DAT_000cd1d8);\n        puVar3 = (undefined4 *)auStack_3c;\n        if (iVar1 < 0x4001) goto LAB_00024d70;\n        uStack_40 = 0x24e75;\n        iVar1 = FUN_00088730();\n      } while (-1 < iVar1);\n      uVar4 = 1;\n      puVar3 = (undefined4 *)auStack_3c;\n      goto LAB_00024d70;\n    }\n  }\n  else if (DAT_000cd190 != 0) {\n    do {\n      iVar1 = FUN_00033110(DAT_000cd18c);\n      if (iVar1 != 0) {\n        uVar4 = 0;\n        FUN_00033140(DAT_000cd18c,param_1,param_2);\n        FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2);\n        DAT_000cd184 = local_38;\n        DAT_000cd188 = local_34[0];\n        puVar3 = &uStack_40;\n        goto LAB_00024d70;\n      }\n      uStack_40 = 0x24d95;\n      uVar4 = FUN_0002eb50();\n      iVar1 = FUN_00033230(DAT_000cd18c,uVar4);\n    } while (0 < iVar1);\n    uStack_40 = 0x24e8d;\n    uVar2 = FUN_0002ed80();\n    FUN_000235c0(*(undefined4 *)PTR_stderr_000ccfa4,"error while writing: %s",uVar2);\n    if (iVar1 == -0x80000000) {\n      FUN_0001dd30(uVar4);\n    }\n    DAT_000cd1f0 = DAT_000cd1f0 + 1;\n    uVar4 = 1;\n    puVar3 = (undefined4 *)auStack_3c;\n    goto LAB_00024d70;\n  }\n  uVar4 = 1;\n  puVar3 = (undefined4 *)auStack_3c;\nLAB_00024d70:\n  if (*(int *)((int)puVar3 + 0x1c) != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    *(undefined **)((int)puVar3 + -4) = &UNK_00024ed4;\n    FUN_0008d800();\n  }\n  return uVar4;\n}" type_identifier (function_declarator "FUN_00024d30(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  undefined4 uStack_40;\n  undefined1 auStack_3c [4];\n  undefined4 local_38;\n  undefined4 local_34 [5];\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x24d39;\n  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  if (DAT_000cd1e4 == 0) {\n    iVar1 = (**(code **)(DAT_000cd1dc + 0xc))(DAT_000cd1d8,param_1,param_2);\n    uVar4 = 0;\n    puVar3 = (undefined4 *)auStack_3c;\n    if (iVar1 < 0x4001) goto LAB_00024d70;\n    uStack_40 = 0x24e42;\n    iVar1 = FUN_00088730();\n    if (-1 < iVar1) {\n      do {\n        iVar1 = (**(code **)(DAT_000cd1dc + 0x10))(DAT_000cd1d8);\n        puVar3 = (undefined4 *)auStack_3c;\n        if (iVar1 < 0x4001) goto LAB_00024d70;\n        uStack_40 = 0x24e75;\n        iVar1 = FUN_00088730();\n      } while (-1 < iVar1);\n      uVar4 = 1;\n      puVar3 = (undefined4 *)auStack_3c;\n      goto LAB_00024d70;\n    }\n  }\n  else if (DAT_000cd190 != 0) {\n    do {\n      iVar1 = FUN_00033110(DAT_000cd18c);\n      if (iVar1 != 0) {\n        uVar4 = 0;\n        FUN_00033140(DAT_000cd18c,param_1,param_2);\n        FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2);\n        DAT_000cd184 = local_38;\n        DAT_000cd188 = local_34[0];\n        puVar3 = &uStack_40;\n        goto LAB_00024d70;\n      }\n      uStack_40 = 0x24d95;\n      uVar4 = FUN_0002eb50();\n      iVar1 = FUN_00033230(DAT_000cd18c,uVar4);\n    } while (0 < iVar1);\n    uStack_40 = 0x24e8d;\n    uVar2 = FUN_0002ed80();\n    FUN_000235c0(*(undefined4 *)PTR_stderr_000ccfa4,"error while writing: %s",uVar2);\n    if (iVar1 == -0x80000000) {\n      FUN_0001dd30(uVar4);\n    }\n    DAT_000cd1f0 = DAT_000cd1f0 + 1;\n    uVar4 = 1;\n    puVar3 = (undefined4 *)auStack_3c;\n    goto LAB_00024d70;\n  }\n  uVar4 = 1;\n  puVar3 = (undefined4 *)auStack_3c;\nLAB_00024d70:\n  if (*(int *)((int)puVar3 + 0x1c) != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    *(undefined **)((int)puVar3 + -4) = &UNK_00024ed4;\n    FUN_0008d800();\n  }\n  return uVar4;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 uStack_40;" type_identifier identifier ;) (declaration "undefined1 auStack_3c [4];" type_identifier (array_declarator "auStack_3c [4]" identifier [ number_literal ]) ;) (declaration "undefined4 local_38;" type_identifier identifier ;) (declaration "undefined4 local_34 [5];" type_identifier (array_declarator "local_34 [5]" identifier [ number_literal ]) ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x24d39;" (assignment_expression "uStack_14 = 0x24d39" identifier = number_literal) ;) (expression_statement "local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(undefined4 *)(in_GS_OFFSET + 0x14)" * (cast_expression "(undefined4 *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (DAT_000cd1e4 == 0) {\n    iVar1 = (**(code **)(DAT_000cd1dc + 0xc))(DAT_000cd1d8,param_1,param_2);\n    uVar4 = 0;\n    puVar3 = (undefined4 *)auStack_3c;\n    if (iVar1 < 0x4001) goto LAB_00024d70;\n    uStack_40 = 0x24e42;\n    iVar1 = FUN_00088730();\n    if (-1 < iVar1) {\n      do {\n        iVar1 = (**(code **)(DAT_000cd1dc + 0x10))(DAT_000cd1d8);\n        puVar3 = (undefined4 *)auStack_3c;\n        if (iVar1 < 0x4001) goto LAB_00024d70;\n        uStack_40 = 0x24e75;\n        iVar1 = FUN_00088730();\n      } while (-1 < iVar1);\n      uVar4 = 1;\n      puVar3 = (undefined4 *)auStack_3c;\n      goto LAB_00024d70;\n    }\n  }\n  else if (DAT_000cd190 != 0) {\n    do {\n      iVar1 = FUN_00033110(DAT_000cd18c);\n      if (iVar1 != 0) {\n        uVar4 = 0;\n        FUN_00033140(DAT_000cd18c,param_1,param_2);\n        FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2);\n        DAT_000cd184 = local_38;\n        DAT_000cd188 = local_34[0];\n        puVar3 = &uStack_40;\n        goto LAB_00024d70;\n      }\n      uStack_40 = 0x24d95;\n      uVar4 = FUN_0002eb50();\n      iVar1 = FUN_00033230(DAT_000cd18c,uVar4);\n    } while (0 < iVar1);\n    uStack_40 = 0x24e8d;\n    uVar2 = FUN_0002ed80();\n    FUN_000235c0(*(undefined4 *)PTR_stderr_000ccfa4,"error while writing: %s",uVar2);\n    if (iVar1 == -0x80000000) {\n      FUN_0001dd30(uVar4);\n    }\n    DAT_000cd1f0 = DAT_000cd1f0 + 1;\n    uVar4 = 1;\n    puVar3 = (undefined4 *)auStack_3c;\n    goto LAB_00024d70;\n  }" if (parenthesized_expression "(DAT_000cd1e4 == 0)" ( (binary_expression "DAT_000cd1e4 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = (**(code **)(DAT_000cd1dc + 0xc))(DAT_000cd1d8,param_1,param_2);\n    uVar4 = 0;\n    puVar3 = (undefined4 *)auStack_3c;\n    if (iVar1 < 0x4001) goto LAB_00024d70;\n    uStack_40 = 0x24e42;\n    iVar1 = FUN_00088730();\n    if (-1 < iVar1) {\n      do {\n        iVar1 = (**(code **)(DAT_000cd1dc + 0x10))(DAT_000cd1d8);\n        puVar3 = (undefined4 *)auStack_3c;\n        if (iVar1 < 0x4001) goto LAB_00024d70;\n        uStack_40 = 0x24e75;\n        iVar1 = FUN_00088730();\n      } while (-1 < iVar1);\n      uVar4 = 1;\n      puVar3 = (undefined4 *)auStack_3c;\n      goto LAB_00024d70;\n    }\n  }" { (expression_statement "iVar1 = (**(code **)(DAT_000cd1dc + 0xc))(DAT_000cd1d8,param_1,param_2);" (assignment_expression "iVar1 = (**(code **)(DAT_000cd1dc + 0xc))(DAT_000cd1d8,param_1,param_2)" identifier = (call_expression "(**(code **)(DAT_000cd1dc + 0xc))(DAT_000cd1d8,param_1,param_2)" (parenthesized_expression "(**(code **)(DAT_000cd1dc + 0xc))" ( (pointer_expression "**(code **)(DAT_000cd1dc + 0xc)" * (pointer_expression "*(code **)(DAT_000cd1dc + 0xc)" * (cast_expression "(code **)(DAT_000cd1dc + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_000cd1dc + 0xc)" ( (binary_expression "DAT_000cd1dc + 0xc" identifier + number_literal) ))))) )) (argument_list "(DAT_000cd1d8,param_1,param_2)" ( identifier , identifier , identifier )))) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "puVar3 = (undefined4 *)auStack_3c;" (assignment_expression "puVar3 = (undefined4 *)auStack_3c" identifier = (cast_expression "(undefined4 *)auStack_3c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (iVar1 < 0x4001) goto LAB_00024d70;" if (parenthesized_expression "(iVar1 < 0x4001)" ( (binary_expression "iVar1 < 0x4001" identifier < number_literal) )) (goto_statement "goto LAB_00024d70;" goto statement_identifier ;)) (expression_statement "uStack_40 = 0x24e42;" (assignment_expression "uStack_40 = 0x24e42" identifier = number_literal) ;) (expression_statement "iVar1 = FUN_00088730();" (assignment_expression "iVar1 = FUN_00088730()" identifier = (call_expression "FUN_00088730()" identifier (argument_list "()" ( )))) ;) (if_statement "if (-1 < iVar1) {\n      do {\n        iVar1 = (**(code **)(DAT_000cd1dc + 0x10))(DAT_000cd1d8);\n        puVar3 = (undefined4 *)auStack_3c;\n        if (iVar1 < 0x4001) goto LAB_00024d70;\n        uStack_40 = 0x24e75;\n        iVar1 = FUN_00088730();\n      } while (-1 < iVar1);\n      uVar4 = 1;\n      puVar3 = (undefined4 *)auStack_3c;\n      goto LAB_00024d70;\n    }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n      do {\n        iVar1 = (**(code **)(DAT_000cd1dc + 0x10))(DAT_000cd1d8);\n        puVar3 = (undefined4 *)auStack_3c;\n        if (iVar1 < 0x4001) goto LAB_00024d70;\n        uStack_40 = 0x24e75;\n        iVar1 = FUN_00088730();\n      } while (-1 < iVar1);\n      uVar4 = 1;\n      puVar3 = (undefined4 *)auStack_3c;\n      goto LAB_00024d70;\n    }" { (do_statement "do {\n        iVar1 = (**(code **)(DAT_000cd1dc + 0x10))(DAT_000cd1d8);\n        puVar3 = (undefined4 *)auStack_3c;\n        if (iVar1 < 0x4001) goto LAB_00024d70;\n        uStack_40 = 0x24e75;\n        iVar1 = FUN_00088730();\n      } while (-1 < iVar1);" do (compound_statement "{\n        iVar1 = (**(code **)(DAT_000cd1dc + 0x10))(DAT_000cd1d8);\n        puVar3 = (undefined4 *)auStack_3c;\n        if (iVar1 < 0x4001) goto LAB_00024d70;\n        uStack_40 = 0x24e75;\n        iVar1 = FUN_00088730();\n      }" { (expression_statement "iVar1 = (**(code **)(DAT_000cd1dc + 0x10))(DAT_000cd1d8);" (assignment_expression "iVar1 = (**(code **)(DAT_000cd1dc + 0x10))(DAT_000cd1d8)" identifier = (call_expression "(**(code **)(DAT_000cd1dc + 0x10))(DAT_000cd1d8)" (parenthesized_expression "(**(code **)(DAT_000cd1dc + 0x10))" ( (pointer_expression "**(code **)(DAT_000cd1dc + 0x10)" * (pointer_expression "*(code **)(DAT_000cd1dc + 0x10)" * (cast_expression "(code **)(DAT_000cd1dc + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_000cd1dc + 0x10)" ( (binary_expression "DAT_000cd1dc + 0x10" identifier + number_literal) ))))) )) (argument_list "(DAT_000cd1d8)" ( identifier )))) ;) (expression_statement "puVar3 = (undefined4 *)auStack_3c;" (assignment_expression "puVar3 = (undefined4 *)auStack_3c" identifier = (cast_expression "(undefined4 *)auStack_3c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (iVar1 < 0x4001) goto LAB_00024d70;" if (parenthesized_expression "(iVar1 < 0x4001)" ( (binary_expression "iVar1 < 0x4001" identifier < number_literal) )) (goto_statement "goto LAB_00024d70;" goto statement_identifier ;)) (expression_statement "uStack_40 = 0x24e75;" (assignment_expression "uStack_40 = 0x24e75" identifier = number_literal) ;) (expression_statement "iVar1 = FUN_00088730();" (assignment_expression "iVar1 = FUN_00088730()" identifier = (call_expression "FUN_00088730()" identifier (argument_list "()" ( )))) ;) }) while (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) ;) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) (expression_statement "puVar3 = (undefined4 *)auStack_3c;" (assignment_expression "puVar3 = (undefined4 *)auStack_3c" identifier = (cast_expression "(undefined4 *)auStack_3c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (goto_statement "goto LAB_00024d70;" goto statement_identifier ;) })) }) (else_clause "else if (DAT_000cd190 != 0) {\n    do {\n      iVar1 = FUN_00033110(DAT_000cd18c);\n      if (iVar1 != 0) {\n        uVar4 = 0;\n        FUN_00033140(DAT_000cd18c,param_1,param_2);\n        FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2);\n        DAT_000cd184 = local_38;\n        DAT_000cd188 = local_34[0];\n        puVar3 = &uStack_40;\n        goto LAB_00024d70;\n      }\n      uStack_40 = 0x24d95;\n      uVar4 = FUN_0002eb50();\n      iVar1 = FUN_00033230(DAT_000cd18c,uVar4);\n    } while (0 < iVar1);\n    uStack_40 = 0x24e8d;\n    uVar2 = FUN_0002ed80();\n    FUN_000235c0(*(undefined4 *)PTR_stderr_000ccfa4,"error while writing: %s",uVar2);\n    if (iVar1 == -0x80000000) {\n      FUN_0001dd30(uVar4);\n    }\n    DAT_000cd1f0 = DAT_000cd1f0 + 1;\n    uVar4 = 1;\n    puVar3 = (undefined4 *)auStack_3c;\n    goto LAB_00024d70;\n  }" else (if_statement "if (DAT_000cd190 != 0) {\n    do {\n      iVar1 = FUN_00033110(DAT_000cd18c);\n      if (iVar1 != 0) {\n        uVar4 = 0;\n        FUN_00033140(DAT_000cd18c,param_1,param_2);\n        FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2);\n        DAT_000cd184 = local_38;\n        DAT_000cd188 = local_34[0];\n        puVar3 = &uStack_40;\n        goto LAB_00024d70;\n      }\n      uStack_40 = 0x24d95;\n      uVar4 = FUN_0002eb50();\n      iVar1 = FUN_00033230(DAT_000cd18c,uVar4);\n    } while (0 < iVar1);\n    uStack_40 = 0x24e8d;\n    uVar2 = FUN_0002ed80();\n    FUN_000235c0(*(undefined4 *)PTR_stderr_000ccfa4,"error while writing: %s",uVar2);\n    if (iVar1 == -0x80000000) {\n      FUN_0001dd30(uVar4);\n    }\n    DAT_000cd1f0 = DAT_000cd1f0 + 1;\n    uVar4 = 1;\n    puVar3 = (undefined4 *)auStack_3c;\n    goto LAB_00024d70;\n  }" if (parenthesized_expression "(DAT_000cd190 != 0)" ( (binary_expression "DAT_000cd190 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      iVar1 = FUN_00033110(DAT_000cd18c);\n      if (iVar1 != 0) {\n        uVar4 = 0;\n        FUN_00033140(DAT_000cd18c,param_1,param_2);\n        FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2);\n        DAT_000cd184 = local_38;\n        DAT_000cd188 = local_34[0];\n        puVar3 = &uStack_40;\n        goto LAB_00024d70;\n      }\n      uStack_40 = 0x24d95;\n      uVar4 = FUN_0002eb50();\n      iVar1 = FUN_00033230(DAT_000cd18c,uVar4);\n    } while (0 < iVar1);\n    uStack_40 = 0x24e8d;\n    uVar2 = FUN_0002ed80();\n    FUN_000235c0(*(undefined4 *)PTR_stderr_000ccfa4,"error while writing: %s",uVar2);\n    if (iVar1 == -0x80000000) {\n      FUN_0001dd30(uVar4);\n    }\n    DAT_000cd1f0 = DAT_000cd1f0 + 1;\n    uVar4 = 1;\n    puVar3 = (undefined4 *)auStack_3c;\n    goto LAB_00024d70;\n  }" { (do_statement "do {\n      iVar1 = FUN_00033110(DAT_000cd18c);\n      if (iVar1 != 0) {\n        uVar4 = 0;\n        FUN_00033140(DAT_000cd18c,param_1,param_2);\n        FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2);\n        DAT_000cd184 = local_38;\n        DAT_000cd188 = local_34[0];\n        puVar3 = &uStack_40;\n        goto LAB_00024d70;\n      }\n      uStack_40 = 0x24d95;\n      uVar4 = FUN_0002eb50();\n      iVar1 = FUN_00033230(DAT_000cd18c,uVar4);\n    } while (0 < iVar1);" do (compound_statement "{\n      iVar1 = FUN_00033110(DAT_000cd18c);\n      if (iVar1 != 0) {\n        uVar4 = 0;\n        FUN_00033140(DAT_000cd18c,param_1,param_2);\n        FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2);\n        DAT_000cd184 = local_38;\n        DAT_000cd188 = local_34[0];\n        puVar3 = &uStack_40;\n        goto LAB_00024d70;\n      }\n      uStack_40 = 0x24d95;\n      uVar4 = FUN_0002eb50();\n      iVar1 = FUN_00033230(DAT_000cd18c,uVar4);\n    }" { (expression_statement "iVar1 = FUN_00033110(DAT_000cd18c);" (assignment_expression "iVar1 = FUN_00033110(DAT_000cd18c)" identifier = (call_expression "FUN_00033110(DAT_000cd18c)" identifier (argument_list "(DAT_000cd18c)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n        uVar4 = 0;\n        FUN_00033140(DAT_000cd18c,param_1,param_2);\n        FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2);\n        DAT_000cd184 = local_38;\n        DAT_000cd188 = local_34[0];\n        puVar3 = &uStack_40;\n        goto LAB_00024d70;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        uVar4 = 0;\n        FUN_00033140(DAT_000cd18c,param_1,param_2);\n        FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2);\n        DAT_000cd184 = local_38;\n        DAT_000cd188 = local_34[0];\n        puVar3 = &uStack_40;\n        goto LAB_00024d70;\n      }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "FUN_00033140(DAT_000cd18c,param_1,param_2);" (call_expression "FUN_00033140(DAT_000cd18c,param_1,param_2)" identifier (argument_list "(DAT_000cd18c,param_1,param_2)" ( identifier , identifier , identifier ))) ;) (expression_statement "FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2);" (call_expression "FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2)" identifier (argument_list "(local_34,DAT_000cd184,DAT_000cd188,param_2)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "DAT_000cd184 = local_38;" (assignment_expression "DAT_000cd184 = local_38" identifier = identifier) ;) (expression_statement "DAT_000cd188 = local_34[0];" (assignment_expression "DAT_000cd188 = local_34[0]" identifier = (subscript_expression "local_34[0]" identifier [ number_literal ])) ;) (expression_statement "puVar3 = &uStack_40;" (assignment_expression "puVar3 = &uStack_40" identifier = (pointer_expression "&uStack_40" & identifier)) ;) (goto_statement "goto LAB_00024d70;" goto statement_identifier ;) })) (expression_statement "uStack_40 = 0x24d95;" (assignment_expression "uStack_40 = 0x24d95" identifier = number_literal) ;) (expression_statement "uVar4 = FUN_0002eb50();" (assignment_expression "uVar4 = FUN_0002eb50()" identifier = (call_expression "FUN_0002eb50()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar1 = FUN_00033230(DAT_000cd18c,uVar4);" (assignment_expression "iVar1 = FUN_00033230(DAT_000cd18c,uVar4)" identifier = (call_expression "FUN_00033230(DAT_000cd18c,uVar4)" identifier (argument_list "(DAT_000cd18c,uVar4)" ( identifier , identifier )))) ;) }) while (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) ;) (expression_statement "uStack_40 = 0x24e8d;" (assignment_expression "uStack_40 = 0x24e8d" identifier = number_literal) ;) (expression_statement "uVar2 = FUN_0002ed80();" (assignment_expression "uVar2 = FUN_0002ed80()" identifier = (call_expression "FUN_0002ed80()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_000235c0(*(undefined4 *)PTR_stderr_000ccfa4,"error while writing: %s",uVar2);" (call_expression "FUN_000235c0(*(undefined4 *)PTR_stderr_000ccfa4,"error while writing: %s",uVar2)" identifier (argument_list "(*(undefined4 *)PTR_stderr_000ccfa4,"error while writing: %s",uVar2)" ( (pointer_expression "*(undefined4 *)PTR_stderr_000ccfa4" * (cast_expression "(undefined4 *)PTR_stderr_000ccfa4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , (string_literal ""error while writing: %s"" " string_content ") , identifier ))) ;) (if_statement "if (iVar1 == -0x80000000) {\n      FUN_0001dd30(uVar4);\n    }" if (parenthesized_expression "(iVar1 == -0x80000000)" ( (binary_expression "iVar1 == -0x80000000" identifier == number_literal) )) (compound_statement "{\n      FUN_0001dd30(uVar4);\n    }" { (expression_statement "FUN_0001dd30(uVar4);" (call_expression "FUN_0001dd30(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) })) (expression_statement "DAT_000cd1f0 = DAT_000cd1f0 + 1;" (assignment_expression "DAT_000cd1f0 = DAT_000cd1f0 + 1" identifier = (binary_expression "DAT_000cd1f0 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) (expression_statement "puVar3 = (undefined4 *)auStack_3c;" (assignment_expression "puVar3 = (undefined4 *)auStack_3c" identifier = (cast_expression "(undefined4 *)auStack_3c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (goto_statement "goto LAB_00024d70;" goto statement_identifier ;) })))) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) (expression_statement "puVar3 = (undefined4 *)auStack_3c;" (assignment_expression "puVar3 = (undefined4 *)auStack_3c" identifier = (cast_expression "(undefined4 *)auStack_3c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (labeled_statement "LAB_00024d70:\n  if (*(int *)((int)puVar3 + 0x1c) != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    *(undefined **)((int)puVar3 + -4) = &UNK_00024ed4;\n    FUN_0008d800();\n  }" statement_identifier : (if_statement "if (*(int *)((int)puVar3 + 0x1c) != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    *(undefined **)((int)puVar3 + -4) = &UNK_00024ed4;\n    FUN_0008d800();\n  }" if (parenthesized_expression "(*(int *)((int)puVar3 + 0x1c) != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "*(int *)((int)puVar3 + 0x1c) != *(int *)(in_GS_OFFSET + 0x14)" (pointer_expression "*(int *)((int)puVar3 + 0x1c)" * (cast_expression "(int *)((int)puVar3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar3 + 0x1c)" ( (binary_expression "(int)puVar3 + 0x1c" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    *(undefined **)((int)puVar3 + -4) = &UNK_00024ed4;\n    FUN_0008d800();\n  }" { (expression_statement "*(undefined **)((int)puVar3 + -4) = &UNK_00024ed4;" (assignment_expression "*(undefined **)((int)puVar3 + -4) = &UNK_00024ed4" (pointer_expression "*(undefined **)((int)puVar3 + -4)" * (cast_expression "(undefined **)((int)puVar3 + -4)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)puVar3 + -4)" ( (binary_expression "(int)puVar3 + -4" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (pointer_expression "&UNK_00024ed4" & identifier)) ;) (expression_statement "FUN_0008d800();" (call_expression "FUN_0008d800()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return uVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (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 { (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 IDENT + LIT) ))))) )) (argument_list ( IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (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 IDENT + LIT) ))))) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) }) while (parenthesized_expression ( (binary_expression LIT < IDENT) )) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) }) while (parenthesized_expression ( (binary_expression LIT < IDENT) )) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , (string_literal " string_content ") , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (goto_statement goto statement_identifier ;) })))) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_00024d30(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  undefined4 uStack_40;\n  undefined1 auStack_3c [4];\n  undefined4 local_38;\n  undefined4 local_34 [5];\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x24d39;\n  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  if (DAT_000cd1e4 == 0) {\n    iVar1 = (**(code **)(DAT_000cd1dc + 0xc))(DAT_000cd1d8,param_1,param_2);\n    uVar4 = 0;\n    puVar3 = (undefined4 *)auStack_3c;\n    if (iVar1 < 0x4001) goto LAB_00024d70;\n    uStack_40 = 0x24e42;\n    iVar1 = FUN_00088730();\n    if (-1 < iVar1) {\n      do {\n        iVar1 = (**(code **)(DAT_000cd1dc + 0x10))(DAT_000cd1d8);\n        puVar3 = (undefined4 *)auStack_3c;\n        if (iVar1 < 0x4001) goto LAB_00024d70;\n        uStack_40 = 0x24e75;\n        iVar1 = FUN_00088730();\n      } while (-1 < iVar1);\n      uVar4 = 1;\n      puVar3 = (undefined4 *)auStack_3c;\n      goto LAB_00024d70;\n    }\n  }\n  else if (DAT_000cd190 != 0) {\n    do {\n      iVar1 = FUN_00033110(DAT_000cd18c);\n      if (iVar1 != 0) {\n        uVar4 = 0;\n        FUN_00033140(DAT_000cd18c,param_1,param_2);\n        FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2);\n        DAT_000cd184 = local_38;\n        DAT_000cd188 = local_34[0];\n        puVar3 = &uStack_40;\n        goto LAB_00024d70;\n      }\n      uStack_40 = 0x24d95;\n      uVar4 = FUN_0002eb50();\n      iVar1 = FUN_00033230(DAT_000cd18c,uVar4);\n    } while (0 < iVar1);\n    uStack_40 = 0x24e8d;\n    uVar2 = FUN_0002ed80();\n    FUN_000235c0(*(undefined4 *)PTR_stderr_000ccfa4,"error while writing: %s",uVar2);\n    if (iVar1 == -0x80000000) {\n      FUN_0001dd30(uVar4);\n    }\n    DAT_000cd1f0 = DAT_000cd1f0 + 1;\n    uVar4 = 1;\n    puVar3 = (undefined4 *)auStack_3c;\n    goto LAB_00024d70;\n  }\n  uVar4 = 1;\n  puVar3 = (undefined4 *)auStack_3c;\nLAB_00024d70:\n  if (*(int *)((int)puVar3 + 0x1c) != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    *(undefined **)((int)puVar3 + -4) = &UNK_00024ed4;\n    FUN_0008d800();\n  }\n  return uVar4;\n}" (type_identifier "undefined4") (function_declarator "FUN_00024d30(undefined4 param_1,undefined4 param_2)" (identifier "FUN_00024d30") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  undefined4 uStack_40;\n  undefined1 auStack_3c [4];\n  undefined4 local_38;\n  undefined4 local_34 [5];\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x24d39;\n  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  if (DAT_000cd1e4 == 0) {\n    iVar1 = (**(code **)(DAT_000cd1dc + 0xc))(DAT_000cd1d8,param_1,param_2);\n    uVar4 = 0;\n    puVar3 = (undefined4 *)auStack_3c;\n    if (iVar1 < 0x4001) goto LAB_00024d70;\n    uStack_40 = 0x24e42;\n    iVar1 = FUN_00088730();\n    if (-1 < iVar1) {\n      do {\n        iVar1 = (**(code **)(DAT_000cd1dc + 0x10))(DAT_000cd1d8);\n        puVar3 = (undefined4 *)auStack_3c;\n        if (iVar1 < 0x4001) goto LAB_00024d70;\n        uStack_40 = 0x24e75;\n        iVar1 = FUN_00088730();\n      } while (-1 < iVar1);\n      uVar4 = 1;\n      puVar3 = (undefined4 *)auStack_3c;\n      goto LAB_00024d70;\n    }\n  }\n  else if (DAT_000cd190 != 0) {\n    do {\n      iVar1 = FUN_00033110(DAT_000cd18c);\n      if (iVar1 != 0) {\n        uVar4 = 0;\n        FUN_00033140(DAT_000cd18c,param_1,param_2);\n        FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2);\n        DAT_000cd184 = local_38;\n        DAT_000cd188 = local_34[0];\n        puVar3 = &uStack_40;\n        goto LAB_00024d70;\n      }\n      uStack_40 = 0x24d95;\n      uVar4 = FUN_0002eb50();\n      iVar1 = FUN_00033230(DAT_000cd18c,uVar4);\n    } while (0 < iVar1);\n    uStack_40 = 0x24e8d;\n    uVar2 = FUN_0002ed80();\n    FUN_000235c0(*(undefined4 *)PTR_stderr_000ccfa4,"error while writing: %s",uVar2);\n    if (iVar1 == -0x80000000) {\n      FUN_0001dd30(uVar4);\n    }\n    DAT_000cd1f0 = DAT_000cd1f0 + 1;\n    uVar4 = 1;\n    puVar3 = (undefined4 *)auStack_3c;\n    goto LAB_00024d70;\n  }\n  uVar4 = 1;\n  puVar3 = (undefined4 *)auStack_3c;\nLAB_00024d70:\n  if (*(int *)((int)puVar3 + 0x1c) != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    *(undefined **)((int)puVar3 + -4) = &UNK_00024ed4;\n    FUN_0008d800();\n  }\n  return uVar4;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 uStack_40;" (type_identifier "undefined4") (identifier "uStack_40") (; ";")) (declaration "undefined1 auStack_3c [4];" (type_identifier "undefined1") (array_declarator "auStack_3c [4]" (identifier "auStack_3c") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "undefined4 local_38;" (type_identifier "undefined4") (identifier "local_38") (; ";")) (declaration "undefined4 local_34 [5];" (type_identifier "undefined4") (array_declarator "local_34 [5]" (identifier "local_34") ([ "[") (number_literal "5") (] "]")) (; ";")) (declaration "undefined4 local_20;" (type_identifier "undefined4") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x24d39;" (assignment_expression "uStack_14 = 0x24d39" (identifier "uStack_14") (= "=") (number_literal "0x24d39")) (; ";")) (expression_statement "local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(undefined4 *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(undefined4 *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (DAT_000cd1e4 == 0) {\n    iVar1 = (**(code **)(DAT_000cd1dc + 0xc))(DAT_000cd1d8,param_1,param_2);\n    uVar4 = 0;\n    puVar3 = (undefined4 *)auStack_3c;\n    if (iVar1 < 0x4001) goto LAB_00024d70;\n    uStack_40 = 0x24e42;\n    iVar1 = FUN_00088730();\n    if (-1 < iVar1) {\n      do {\n        iVar1 = (**(code **)(DAT_000cd1dc + 0x10))(DAT_000cd1d8);\n        puVar3 = (undefined4 *)auStack_3c;\n        if (iVar1 < 0x4001) goto LAB_00024d70;\n        uStack_40 = 0x24e75;\n        iVar1 = FUN_00088730();\n      } while (-1 < iVar1);\n      uVar4 = 1;\n      puVar3 = (undefined4 *)auStack_3c;\n      goto LAB_00024d70;\n    }\n  }\n  else if (DAT_000cd190 != 0) {\n    do {\n      iVar1 = FUN_00033110(DAT_000cd18c);\n      if (iVar1 != 0) {\n        uVar4 = 0;\n        FUN_00033140(DAT_000cd18c,param_1,param_2);\n        FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2);\n        DAT_000cd184 = local_38;\n        DAT_000cd188 = local_34[0];\n        puVar3 = &uStack_40;\n        goto LAB_00024d70;\n      }\n      uStack_40 = 0x24d95;\n      uVar4 = FUN_0002eb50();\n      iVar1 = FUN_00033230(DAT_000cd18c,uVar4);\n    } while (0 < iVar1);\n    uStack_40 = 0x24e8d;\n    uVar2 = FUN_0002ed80();\n    FUN_000235c0(*(undefined4 *)PTR_stderr_000ccfa4,"error while writing: %s",uVar2);\n    if (iVar1 == -0x80000000) {\n      FUN_0001dd30(uVar4);\n    }\n    DAT_000cd1f0 = DAT_000cd1f0 + 1;\n    uVar4 = 1;\n    puVar3 = (undefined4 *)auStack_3c;\n    goto LAB_00024d70;\n  }" (if "if") (parenthesized_expression "(DAT_000cd1e4 == 0)" (( "(") (binary_expression "DAT_000cd1e4 == 0" (identifier "DAT_000cd1e4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = (**(code **)(DAT_000cd1dc + 0xc))(DAT_000cd1d8,param_1,param_2);\n    uVar4 = 0;\n    puVar3 = (undefined4 *)auStack_3c;\n    if (iVar1 < 0x4001) goto LAB_00024d70;\n    uStack_40 = 0x24e42;\n    iVar1 = FUN_00088730();\n    if (-1 < iVar1) {\n      do {\n        iVar1 = (**(code **)(DAT_000cd1dc + 0x10))(DAT_000cd1d8);\n        puVar3 = (undefined4 *)auStack_3c;\n        if (iVar1 < 0x4001) goto LAB_00024d70;\n        uStack_40 = 0x24e75;\n        iVar1 = FUN_00088730();\n      } while (-1 < iVar1);\n      uVar4 = 1;\n      puVar3 = (undefined4 *)auStack_3c;\n      goto LAB_00024d70;\n    }\n  }" ({ "{") (expression_statement "iVar1 = (**(code **)(DAT_000cd1dc + 0xc))(DAT_000cd1d8,param_1,param_2);" (assignment_expression "iVar1 = (**(code **)(DAT_000cd1dc + 0xc))(DAT_000cd1d8,param_1,param_2)" (identifier "iVar1") (= "=") (call_expression "(**(code **)(DAT_000cd1dc + 0xc))(DAT_000cd1d8,param_1,param_2)" (parenthesized_expression "(**(code **)(DAT_000cd1dc + 0xc))" (( "(") (pointer_expression "**(code **)(DAT_000cd1dc + 0xc)" (* "*") (pointer_expression "*(code **)(DAT_000cd1dc + 0xc)" (* "*") (cast_expression "(code **)(DAT_000cd1dc + 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(DAT_000cd1dc + 0xc)" (( "(") (binary_expression "DAT_000cd1dc + 0xc" (identifier "DAT_000cd1dc") (+ "+") (number_literal "0xc")) () ")"))))) () ")")) (argument_list "(DAT_000cd1d8,param_1,param_2)" (( "(") (identifier "DAT_000cd1d8") (, ",") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3 = (undefined4 *)auStack_3c;" (assignment_expression "puVar3 = (undefined4 *)auStack_3c" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)auStack_3c" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "auStack_3c"))) (; ";")) (if_statement "if (iVar1 < 0x4001) goto LAB_00024d70;" (if "if") (parenthesized_expression "(iVar1 < 0x4001)" (( "(") (binary_expression "iVar1 < 0x4001" (identifier "iVar1") (< "<") (number_literal "0x4001")) () ")")) (goto_statement "goto LAB_00024d70;" (goto "goto") (statement_identifier "LAB_00024d70") (; ";"))) (expression_statement "uStack_40 = 0x24e42;" (assignment_expression "uStack_40 = 0x24e42" (identifier "uStack_40") (= "=") (number_literal "0x24e42")) (; ";")) (expression_statement "iVar1 = FUN_00088730();" (assignment_expression "iVar1 = FUN_00088730()" (identifier "iVar1") (= "=") (call_expression "FUN_00088730()" (identifier "FUN_00088730") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (-1 < iVar1) {\n      do {\n        iVar1 = (**(code **)(DAT_000cd1dc + 0x10))(DAT_000cd1d8);\n        puVar3 = (undefined4 *)auStack_3c;\n        if (iVar1 < 0x4001) goto LAB_00024d70;\n        uStack_40 = 0x24e75;\n        iVar1 = FUN_00088730();\n      } while (-1 < iVar1);\n      uVar4 = 1;\n      puVar3 = (undefined4 *)auStack_3c;\n      goto LAB_00024d70;\n    }" (if "if") (parenthesized_expression "(-1 < iVar1)" (( "(") (binary_expression "-1 < iVar1" (number_literal "-1") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n      do {\n        iVar1 = (**(code **)(DAT_000cd1dc + 0x10))(DAT_000cd1d8);\n        puVar3 = (undefined4 *)auStack_3c;\n        if (iVar1 < 0x4001) goto LAB_00024d70;\n        uStack_40 = 0x24e75;\n        iVar1 = FUN_00088730();\n      } while (-1 < iVar1);\n      uVar4 = 1;\n      puVar3 = (undefined4 *)auStack_3c;\n      goto LAB_00024d70;\n    }" ({ "{") (do_statement "do {\n        iVar1 = (**(code **)(DAT_000cd1dc + 0x10))(DAT_000cd1d8);\n        puVar3 = (undefined4 *)auStack_3c;\n        if (iVar1 < 0x4001) goto LAB_00024d70;\n        uStack_40 = 0x24e75;\n        iVar1 = FUN_00088730();\n      } while (-1 < iVar1);" (do "do") (compound_statement "{\n        iVar1 = (**(code **)(DAT_000cd1dc + 0x10))(DAT_000cd1d8);\n        puVar3 = (undefined4 *)auStack_3c;\n        if (iVar1 < 0x4001) goto LAB_00024d70;\n        uStack_40 = 0x24e75;\n        iVar1 = FUN_00088730();\n      }" ({ "{") (expression_statement "iVar1 = (**(code **)(DAT_000cd1dc + 0x10))(DAT_000cd1d8);" (assignment_expression "iVar1 = (**(code **)(DAT_000cd1dc + 0x10))(DAT_000cd1d8)" (identifier "iVar1") (= "=") (call_expression "(**(code **)(DAT_000cd1dc + 0x10))(DAT_000cd1d8)" (parenthesized_expression "(**(code **)(DAT_000cd1dc + 0x10))" (( "(") (pointer_expression "**(code **)(DAT_000cd1dc + 0x10)" (* "*") (pointer_expression "*(code **)(DAT_000cd1dc + 0x10)" (* "*") (cast_expression "(code **)(DAT_000cd1dc + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(DAT_000cd1dc + 0x10)" (( "(") (binary_expression "DAT_000cd1dc + 0x10" (identifier "DAT_000cd1dc") (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (argument_list "(DAT_000cd1d8)" (( "(") (identifier "DAT_000cd1d8") () ")")))) (; ";")) (expression_statement "puVar3 = (undefined4 *)auStack_3c;" (assignment_expression "puVar3 = (undefined4 *)auStack_3c" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)auStack_3c" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "auStack_3c"))) (; ";")) (if_statement "if (iVar1 < 0x4001) goto LAB_00024d70;" (if "if") (parenthesized_expression "(iVar1 < 0x4001)" (( "(") (binary_expression "iVar1 < 0x4001" (identifier "iVar1") (< "<") (number_literal "0x4001")) () ")")) (goto_statement "goto LAB_00024d70;" (goto "goto") (statement_identifier "LAB_00024d70") (; ";"))) (expression_statement "uStack_40 = 0x24e75;" (assignment_expression "uStack_40 = 0x24e75" (identifier "uStack_40") (= "=") (number_literal "0x24e75")) (; ";")) (expression_statement "iVar1 = FUN_00088730();" (assignment_expression "iVar1 = FUN_00088730()" (identifier "iVar1") (= "=") (call_expression "FUN_00088730()" (identifier "FUN_00088730") (argument_list "()" (( "(") () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(-1 < iVar1)" (( "(") (binary_expression "-1 < iVar1" (number_literal "-1") (< "<") (identifier "iVar1")) () ")")) (; ";")) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" (identifier "uVar4") (= "=") (number_literal "1")) (; ";")) (expression_statement "puVar3 = (undefined4 *)auStack_3c;" (assignment_expression "puVar3 = (undefined4 *)auStack_3c" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)auStack_3c" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "auStack_3c"))) (; ";")) (goto_statement "goto LAB_00024d70;" (goto "goto") (statement_identifier "LAB_00024d70") (; ";")) (} "}"))) (} "}")) (else_clause "else if (DAT_000cd190 != 0) {\n    do {\n      iVar1 = FUN_00033110(DAT_000cd18c);\n      if (iVar1 != 0) {\n        uVar4 = 0;\n        FUN_00033140(DAT_000cd18c,param_1,param_2);\n        FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2);\n        DAT_000cd184 = local_38;\n        DAT_000cd188 = local_34[0];\n        puVar3 = &uStack_40;\n        goto LAB_00024d70;\n      }\n      uStack_40 = 0x24d95;\n      uVar4 = FUN_0002eb50();\n      iVar1 = FUN_00033230(DAT_000cd18c,uVar4);\n    } while (0 < iVar1);\n    uStack_40 = 0x24e8d;\n    uVar2 = FUN_0002ed80();\n    FUN_000235c0(*(undefined4 *)PTR_stderr_000ccfa4,"error while writing: %s",uVar2);\n    if (iVar1 == -0x80000000) {\n      FUN_0001dd30(uVar4);\n    }\n    DAT_000cd1f0 = DAT_000cd1f0 + 1;\n    uVar4 = 1;\n    puVar3 = (undefined4 *)auStack_3c;\n    goto LAB_00024d70;\n  }" (else "else") (if_statement "if (DAT_000cd190 != 0) {\n    do {\n      iVar1 = FUN_00033110(DAT_000cd18c);\n      if (iVar1 != 0) {\n        uVar4 = 0;\n        FUN_00033140(DAT_000cd18c,param_1,param_2);\n        FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2);\n        DAT_000cd184 = local_38;\n        DAT_000cd188 = local_34[0];\n        puVar3 = &uStack_40;\n        goto LAB_00024d70;\n      }\n      uStack_40 = 0x24d95;\n      uVar4 = FUN_0002eb50();\n      iVar1 = FUN_00033230(DAT_000cd18c,uVar4);\n    } while (0 < iVar1);\n    uStack_40 = 0x24e8d;\n    uVar2 = FUN_0002ed80();\n    FUN_000235c0(*(undefined4 *)PTR_stderr_000ccfa4,"error while writing: %s",uVar2);\n    if (iVar1 == -0x80000000) {\n      FUN_0001dd30(uVar4);\n    }\n    DAT_000cd1f0 = DAT_000cd1f0 + 1;\n    uVar4 = 1;\n    puVar3 = (undefined4 *)auStack_3c;\n    goto LAB_00024d70;\n  }" (if "if") (parenthesized_expression "(DAT_000cd190 != 0)" (( "(") (binary_expression "DAT_000cd190 != 0" (identifier "DAT_000cd190") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    do {\n      iVar1 = FUN_00033110(DAT_000cd18c);\n      if (iVar1 != 0) {\n        uVar4 = 0;\n        FUN_00033140(DAT_000cd18c,param_1,param_2);\n        FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2);\n        DAT_000cd184 = local_38;\n        DAT_000cd188 = local_34[0];\n        puVar3 = &uStack_40;\n        goto LAB_00024d70;\n      }\n      uStack_40 = 0x24d95;\n      uVar4 = FUN_0002eb50();\n      iVar1 = FUN_00033230(DAT_000cd18c,uVar4);\n    } while (0 < iVar1);\n    uStack_40 = 0x24e8d;\n    uVar2 = FUN_0002ed80();\n    FUN_000235c0(*(undefined4 *)PTR_stderr_000ccfa4,"error while writing: %s",uVar2);\n    if (iVar1 == -0x80000000) {\n      FUN_0001dd30(uVar4);\n    }\n    DAT_000cd1f0 = DAT_000cd1f0 + 1;\n    uVar4 = 1;\n    puVar3 = (undefined4 *)auStack_3c;\n    goto LAB_00024d70;\n  }" ({ "{") (do_statement "do {\n      iVar1 = FUN_00033110(DAT_000cd18c);\n      if (iVar1 != 0) {\n        uVar4 = 0;\n        FUN_00033140(DAT_000cd18c,param_1,param_2);\n        FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2);\n        DAT_000cd184 = local_38;\n        DAT_000cd188 = local_34[0];\n        puVar3 = &uStack_40;\n        goto LAB_00024d70;\n      }\n      uStack_40 = 0x24d95;\n      uVar4 = FUN_0002eb50();\n      iVar1 = FUN_00033230(DAT_000cd18c,uVar4);\n    } while (0 < iVar1);" (do "do") (compound_statement "{\n      iVar1 = FUN_00033110(DAT_000cd18c);\n      if (iVar1 != 0) {\n        uVar4 = 0;\n        FUN_00033140(DAT_000cd18c,param_1,param_2);\n        FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2);\n        DAT_000cd184 = local_38;\n        DAT_000cd188 = local_34[0];\n        puVar3 = &uStack_40;\n        goto LAB_00024d70;\n      }\n      uStack_40 = 0x24d95;\n      uVar4 = FUN_0002eb50();\n      iVar1 = FUN_00033230(DAT_000cd18c,uVar4);\n    }" ({ "{") (expression_statement "iVar1 = FUN_00033110(DAT_000cd18c);" (assignment_expression "iVar1 = FUN_00033110(DAT_000cd18c)" (identifier "iVar1") (= "=") (call_expression "FUN_00033110(DAT_000cd18c)" (identifier "FUN_00033110") (argument_list "(DAT_000cd18c)" (( "(") (identifier "DAT_000cd18c") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n        uVar4 = 0;\n        FUN_00033140(DAT_000cd18c,param_1,param_2);\n        FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2);\n        DAT_000cd184 = local_38;\n        DAT_000cd188 = local_34[0];\n        puVar3 = &uStack_40;\n        goto LAB_00024d70;\n      }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        uVar4 = 0;\n        FUN_00033140(DAT_000cd18c,param_1,param_2);\n        FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2);\n        DAT_000cd184 = local_38;\n        DAT_000cd188 = local_34[0];\n        puVar3 = &uStack_40;\n        goto LAB_00024d70;\n      }" ({ "{") (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_00033140(DAT_000cd18c,param_1,param_2);" (call_expression "FUN_00033140(DAT_000cd18c,param_1,param_2)" (identifier "FUN_00033140") (argument_list "(DAT_000cd18c,param_1,param_2)" (( "(") (identifier "DAT_000cd18c") (, ",") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2);" (call_expression "FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2)" (identifier "FUN_0001a870") (argument_list "(local_34,DAT_000cd184,DAT_000cd188,param_2)" (( "(") (identifier "local_34") (, ",") (identifier "DAT_000cd184") (, ",") (identifier "DAT_000cd188") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "DAT_000cd184 = local_38;" (assignment_expression "DAT_000cd184 = local_38" (identifier "DAT_000cd184") (= "=") (identifier "local_38")) (; ";")) (expression_statement "DAT_000cd188 = local_34[0];" (assignment_expression "DAT_000cd188 = local_34[0]" (identifier "DAT_000cd188") (= "=") (subscript_expression "local_34[0]" (identifier "local_34") ([ "[") (number_literal "0") (] "]"))) (; ";")) (expression_statement "puVar3 = &uStack_40;" (assignment_expression "puVar3 = &uStack_40" (identifier "puVar3") (= "=") (pointer_expression "&uStack_40" (& "&") (identifier "uStack_40"))) (; ";")) (goto_statement "goto LAB_00024d70;" (goto "goto") (statement_identifier "LAB_00024d70") (; ";")) (} "}"))) (expression_statement "uStack_40 = 0x24d95;" (assignment_expression "uStack_40 = 0x24d95" (identifier "uStack_40") (= "=") (number_literal "0x24d95")) (; ";")) (expression_statement "uVar4 = FUN_0002eb50();" (assignment_expression "uVar4 = FUN_0002eb50()" (identifier "uVar4") (= "=") (call_expression "FUN_0002eb50()" (identifier "FUN_0002eb50") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar1 = FUN_00033230(DAT_000cd18c,uVar4);" (assignment_expression "iVar1 = FUN_00033230(DAT_000cd18c,uVar4)" (identifier "iVar1") (= "=") (call_expression "FUN_00033230(DAT_000cd18c,uVar4)" (identifier "FUN_00033230") (argument_list "(DAT_000cd18c,uVar4)" (( "(") (identifier "DAT_000cd18c") (, ",") (identifier "uVar4") () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(0 < iVar1)" (( "(") (binary_expression "0 < iVar1" (number_literal "0") (< "<") (identifier "iVar1")) () ")")) (; ";")) (expression_statement "uStack_40 = 0x24e8d;" (assignment_expression "uStack_40 = 0x24e8d" (identifier "uStack_40") (= "=") (number_literal "0x24e8d")) (; ";")) (expression_statement "uVar2 = FUN_0002ed80();" (assignment_expression "uVar2 = FUN_0002ed80()" (identifier "uVar2") (= "=") (call_expression "FUN_0002ed80()" (identifier "FUN_0002ed80") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "FUN_000235c0(*(undefined4 *)PTR_stderr_000ccfa4,"error while writing: %s",uVar2);" (call_expression "FUN_000235c0(*(undefined4 *)PTR_stderr_000ccfa4,"error while writing: %s",uVar2)" (identifier "FUN_000235c0") (argument_list "(*(undefined4 *)PTR_stderr_000ccfa4,"error while writing: %s",uVar2)" (( "(") (pointer_expression "*(undefined4 *)PTR_stderr_000ccfa4" (* "*") (cast_expression "(undefined4 *)PTR_stderr_000ccfa4" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stderr_000ccfa4"))) (, ",") (string_literal ""error while writing: %s"" (" """) (string_content "error while writing: %s") (" """)) (, ",") (identifier "uVar2") () ")"))) (; ";")) (if_statement "if (iVar1 == -0x80000000) {\n      FUN_0001dd30(uVar4);\n    }" (if "if") (parenthesized_expression "(iVar1 == -0x80000000)" (( "(") (binary_expression "iVar1 == -0x80000000" (identifier "iVar1") (== "==") (number_literal "-0x80000000")) () ")")) (compound_statement "{\n      FUN_0001dd30(uVar4);\n    }" ({ "{") (expression_statement "FUN_0001dd30(uVar4);" (call_expression "FUN_0001dd30(uVar4)" (identifier "FUN_0001dd30") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (} "}"))) (expression_statement "DAT_000cd1f0 = DAT_000cd1f0 + 1;" (assignment_expression "DAT_000cd1f0 = DAT_000cd1f0 + 1" (identifier "DAT_000cd1f0") (= "=") (binary_expression "DAT_000cd1f0 + 1" (identifier "DAT_000cd1f0") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" (identifier "uVar4") (= "=") (number_literal "1")) (; ";")) (expression_statement "puVar3 = (undefined4 *)auStack_3c;" (assignment_expression "puVar3 = (undefined4 *)auStack_3c" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)auStack_3c" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "auStack_3c"))) (; ";")) (goto_statement "goto LAB_00024d70;" (goto "goto") (statement_identifier "LAB_00024d70") (; ";")) (} "}"))))) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" (identifier "uVar4") (= "=") (number_literal "1")) (; ";")) (expression_statement "puVar3 = (undefined4 *)auStack_3c;" (assignment_expression "puVar3 = (undefined4 *)auStack_3c" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)auStack_3c" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "auStack_3c"))) (; ";")) (labeled_statement "LAB_00024d70:\n  if (*(int *)((int)puVar3 + 0x1c) != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    *(undefined **)((int)puVar3 + -4) = &UNK_00024ed4;\n    FUN_0008d800();\n  }" (statement_identifier "LAB_00024d70") (: ":") (if_statement "if (*(int *)((int)puVar3 + 0x1c) != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    *(undefined **)((int)puVar3 + -4) = &UNK_00024ed4;\n    FUN_0008d800();\n  }" (if "if") (parenthesized_expression "(*(int *)((int)puVar3 + 0x1c) != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "*(int *)((int)puVar3 + 0x1c) != *(int *)(in_GS_OFFSET + 0x14)" (pointer_expression "*(int *)((int)puVar3 + 0x1c)" (* "*") (cast_expression "(int *)((int)puVar3 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar3 + 0x1c)" (( "(") (binary_expression "(int)puVar3 + 0x1c" (cast_expression "(int)puVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar3")) (+ "+") (number_literal "0x1c")) () ")")))) (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    *(undefined **)((int)puVar3 + -4) = &UNK_00024ed4;\n    FUN_0008d800();\n  }" ({ "{") (expression_statement "*(undefined **)((int)puVar3 + -4) = &UNK_00024ed4;" (assignment_expression "*(undefined **)((int)puVar3 + -4) = &UNK_00024ed4" (pointer_expression "*(undefined **)((int)puVar3 + -4)" (* "*") (cast_expression "(undefined **)((int)puVar3 + -4)" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)puVar3 + -4)" (( "(") (binary_expression "(int)puVar3 + -4" (cast_expression "(int)puVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar3")) (+ "+") (number_literal "-4")) () ")")))) (= "=") (pointer_expression "&UNK_00024ed4" (& "&") (identifier "UNK_00024ed4"))) (; ";")) (expression_statement "FUN_0008d800();" (call_expression "FUN_0008d800()" (identifier "FUN_0008d800") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

int function_1(char *data,int len)

{
  int var_16;
  type_1 x;
  type_2 *pktin;
  int var_3;
  char *pcVar3;
  int var_7;
  int var_1;
  type_3 local_34;
  type_3 uStack_30;
  
  var_16 = *(int *)(var_1 + 0x14);
  if (var_2 == 0) {
    var_3 = (*back->send)(backhandle,data,len);
    var_7 = 0;
    if (var_3 < 0x4001) goto LAB_00024d70;
    var_3 = var_4();
    if (-1 < var_3) {
      do {
        var_3 = (*back->sendbuffer)(backhandle);
        if (var_3 < 0x4001) goto LAB_00024d70;
        var_3 = var_4();
      } while (-1 < var_3);
      var_7 = 1;
      goto LAB_00024d70;
    }
  }
  else if (var_5 != (type_4 *)0x0) {
    do {
      var_7 = var_6(scp_sftp_xfer);
      if (var_7 != 0) {
        var_7 = 0;
        var_8(scp_sftp_xfer,data,len);
        x.lo = scp_sftp_fileoffset.lo;
        x.hi = scp_sftp_fileoffset.hi;
        var_9(x,len);
        scp_sftp_fileoffset.hi = local_34;
        scp_sftp_fileoffset.lo = uStack_30;
        goto LAB_00024d70;
      }
      pktin = var_10();
      var_7 = var_11(scp_sftp_xfer,pktin);
    } while (0 < var_7);
    pcVar3 = var_12();
    var_13(*(type_5 **)PTR_stderr_000ccfa4,"error while writing: %s",pcVar3);
    if (var_7 == -0x80000000) {
      var_14(pktin);
    }
    var_15 = var_15 + 1;
    var_7 = 1;
    goto LAB_00024d70;
  }
  var_7 = 1;
LAB_00024d70:
  if (var_16 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_17();
  }
  return var_7;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 MASKED(undefined4 param_1,undefined4 param_2)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 *puVar3;
  undefined4 uVar4;
  int in_GS_OFFSET;
  undefined4 uStack_40;
  undefined1 auStack_3c [4];
  undefined4 local_38;
  undefined4 local_34 [5];
  undefined4 local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x24d39;
  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);
  if (DAT_000cd1e4 == 0) {
    iVar1 = (**(code **)(DAT_000cd1dc + 0xc))(DAT_000cd1d8,param_1,param_2);
    uVar4 = 0;
    puVar3 = (undefined4 *)auStack_3c;
    if (iVar1 < 0x4001) goto LAB_00024d70;
    uStack_40 = 0x24e42;
    iVar1 = FUN_00088730();
    if (-1 < iVar1) {
      do {
        iVar1 = (**(code **)(DAT_000cd1dc + 0x10))(DAT_000cd1d8);
        puVar3 = (undefined4 *)auStack_3c;
        if (iVar1 < 0x4001) goto LAB_00024d70;
        uStack_40 = 0x24e75;
        iVar1 = FUN_00088730();
      } while (-1 < iVar1);
      uVar4 = 1;
      puVar3 = (undefined4 *)auStack_3c;
      goto LAB_00024d70;
    }
  }
  else if (DAT_000cd190 != 0) {
    do {
      iVar1 = FUN_00033110(DAT_000cd18c);
      if (iVar1 != 0) {
        uVar4 = 0;
        FUN_00033140(DAT_000cd18c,param_1,param_2);
        FUN_0001a870(local_34,DAT_000cd184,DAT_000cd188,param_2);
        DAT_000cd184 = local_38;
        DAT_000cd188 = local_34[0];
        puVar3 = &uStack_40;
        goto LAB_00024d70;
      }
      uStack_40 = 0x24d95;
      uVar4 = FUN_0002eb50();
      iVar1 = FUN_00033230(DAT_000cd18c,uVar4);
    } while (0 < iVar1);
    uStack_40 = 0x24e8d;
    uVar2 = FUN_0002ed80();
    FUN_000235c0(*(undefined4 *)PTR_stderr_000ccfa4,"error while writing: %s",uVar2);
    if (iVar1 == -0x80000000) {
      FUN_0001dd30(uVar4);
    }
    DAT_000cd1f0 = DAT_000cd1f0 + 1;
    uVar4 = 1;
    puVar3 = (undefined4 *)auStack_3c;
    goto LAB_00024d70;
  }
  uVar4 = 1;
  puVar3 = (undefined4 *)auStack_3c;
LAB_00024d70:
  if (*(int *)((int)puVar3 + 0x1c) != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    *(undefined **)((int)puVar3 + -4) = &UNK_00024ed4;
    FUN_0008d800();
  }
  return uVar4;
}

