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

int watch_main(int argc,char **argv)

{
  uint period;
  
}



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

void FUN_00050f49(undefined4 param_1,int param_2)

{
  undefined4 *puVar1;
  char *pcVar2;
  uint uVar3;
  char *__command;
  uint uVar4;
  int iVar5;
  undefined4 extraout_EDX;
  undefined4 uVar6;
  int *piVar7;
  void *__ptr;
  int in_GS_OFFSET;
  undefined8 uVar8;
  undefined8 uVar9;
  uint local_40;
  undefined4 local_24;
  undefined4 local_20;
  
  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);
  local_24 = 2;
  uVar3 = FUN_000a8bdf(param_2,"^+dtn:+",&local_24);
  puVar1 = (undefined4 *)(param_2 + *(int *)PTR_optind_000d0f94 * 4);
  pcVar2 = (char *)*puVar1;
  iVar5 = puVar1[1];
  __command = pcVar2;
  if (iVar5 != 0) {
    piVar7 = puVar1 + 1;
    do {
      __command = (char *)FUN_00019fd7("%s %s",__command,iVar5,pcVar2);
      piVar7 = piVar7 + 1;
      iVar5 = *piVar7;
    } while (iVar5 != 0);
  }
  __ptr = (void *)0x0;
  local_40 = 0xffffffff;
  do {
    __printf_chk(1,&DAT_000c8852);
    if ((uVar3 & 2) == 0) {
      uVar8 = FUN_00019828();
      uVar9 = CONCAT44((int)((ulonglong)uVar8 >> 0x20),__ptr);
      uVar4 = (uint)uVar8;
      if (local_40 != uVar4) {
        free(__ptr);
        uVar9 = FUN_00019fd7("Every %us: %-*s",local_24,uVar4,__command);
      }
      uVar6 = (undefined4)((ulonglong)uVar9 >> 0x20);
      __ptr = (void *)uVar9;
      if (0x14 < uVar4) {
        FUN_0001b631();
        uVar6 = extraout_EDX;
      }
      __printf_chk(1,"%s\n\n",__ptr,uVar6);
      local_40 = uVar4;
    }
    FUN_00019f78();
    system(__command);
    FUN_000163c0(local_24);
  } while( true );
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x40
CALL 0x00017640
ADD EBX,0x7facb
MOV ESI,dword ptr [ESP + 0x58]
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x30],EAX
XOR EAX,EAX
MOV dword ptr [ESP + 0x2c],0x2
LEA EAX,[ESP + 0x2c]
PUSH EAX
LEA EAX,[EBX + 0xffff7e27]
PUSH EAX
PUSH ESI
CALL 0x000a8bdf
MOV dword ptr [ESP + 0x1c],EAX
MOV EAX,dword ptr [EBX + 0x574]
MOV EAX,dword ptr [EAX]
LEA ESI,[ESI + EAX*0x4]
MOV EBP,dword ptr [ESI]
MOV EAX,dword ptr [ESI + 0x4]
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00050fc4
ADD ESI,0x4
LEA EDI,[EBX + 0xffff49aa]
MOV EDX,EAX
MOV EAX,EBP
PUSH EBP
PUSH EDX
PUSH EAX
PUSH EDI
CALL 0x00019fd7
ADD ESI,0x4
MOV EDX,dword ptr [ESI]
ADD ESP,0x10
TEST EDX,EDX
JNZ 0x00050fad
MOV EBP,EAX
MOV EAX,dword ptr [ESP + 0xc]
AND EAX,0x2
MOV dword ptr [ESP + 0x10],EAX
XOR EDI,EDI
MOV dword ptr [ESP + 0xc],0xffffffff
LEA EAX,[EBX + 0xffff7e32]
MOV dword ptr [ESP + 0x14],EAX
LEA EAX,[EBX + 0xffff7e39]
MOV dword ptr [ESP + 0x18],EAX
LEA EAX,[EBX + 0xffff58fb]
MOV dword ptr [ESP + 0x1c],EAX
SUB ESP,0x8
PUSH dword ptr [ESP + 0x1c]
PUSH 0x1
CALL 0x00016f40
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x10]
TEST ECX,ECX
JNZ 0x00051068
MOV EAX,0x2
CALL 0x00019828
MOV ESI,EAX
CMP dword ptr [ESP + 0xc],EAX
JZ 0x0005103f
SUB ESP,0xc
PUSH EDI
CALL 0x000175a0
PUSH EBP
PUSH ESI
PUSH dword ptr [ESP + 0x40]
PUSH dword ptr [ESP + 0x34]
CALL 0x00019fd7
MOV EDI,EAX
ADD ESP,0x20
CMP ESI,0x14
JBE 0x00051054
LEA EAX,[EDI + ESI*0x1 + -0x14]
XOR ECX,ECX
MOV EDX,0x14
CALL 0x0001b631
PUSH EDX
PUSH EDI
PUSH dword ptr [ESP + 0x24]
PUSH 0x1
CALL 0x00016f40
ADD ESP,0x10
MOV dword ptr [ESP + 0xc],ESI
CALL 0x00019f78
SUB ESP,0xc
PUSH EBP
CALL 0x00016940
POP EAX
PUSH dword ptr [ESP + 0x34]
CALL 0x000163c0
ADD ESP,0x10
JMP 0x00050ff7
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00050f49(undefined4 param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  char *pcVar2;\n  uint uVar3;\n  char *__command;\n  uint uVar4;\n  int iVar5;\n  undefined4 extraout_EDX;\n  undefined4 uVar6;\n  int *piVar7;\n  void *__ptr;\n  int in_GS_OFFSET;\n  undefined8 uVar8;\n  undefined8 uVar9;\n  uint local_40;\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  local_24 = 2;\n  uVar3 = FUN_000a8bdf(param_2,"^+dtn:+",&local_24);\n  puVar1 = (undefined4 *)(param_2 + *(int *)PTR_optind_000d0f94 * 4);\n  pcVar2 = (char *)*puVar1;\n  iVar5 = puVar1[1];\n  __command = pcVar2;\n  if (iVar5 != 0) {\n    piVar7 = puVar1 + 1;\n    do {\n      __command = (char *)FUN_00019fd7("%s %s",__command,iVar5,pcVar2);\n      piVar7 = piVar7 + 1;\n      iVar5 = *piVar7;\n    } while (iVar5 != 0);\n  }\n  __ptr = (void *)0x0;\n  local_40 = 0xffffffff;\n  do {\n    __printf_chk(1,&DAT_000c8852);\n    if ((uVar3 & 2) == 0) {\n      uVar8 = FUN_00019828();\n      uVar9 = CONCAT44((int)((ulonglong)uVar8 >> 0x20),__ptr);\n      uVar4 = (uint)uVar8;\n      if (local_40 != uVar4) {\n        free(__ptr);\n        uVar9 = FUN_00019fd7("Every %us: %-*s",local_24,uVar4,__command);\n      }\n      uVar6 = (undefined4)((ulonglong)uVar9 >> 0x20);\n      __ptr = (void *)uVar9;\n      if (0x14 < uVar4) {\n        FUN_0001b631();\n        uVar6 = extraout_EDX;\n      }\n      __printf_chk(1,"%s\n\n",__ptr,uVar6);\n      local_40 = uVar4;\n    }\n    FUN_00019f78();\n    system(__command);\n    FUN_000163c0(local_24);\n  } while( true );\n}\n\n" comment (function_definition "void FUN_00050f49(undefined4 param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  char *pcVar2;\n  uint uVar3;\n  char *__command;\n  uint uVar4;\n  int iVar5;\n  undefined4 extraout_EDX;\n  undefined4 uVar6;\n  int *piVar7;\n  void *__ptr;\n  int in_GS_OFFSET;\n  undefined8 uVar8;\n  undefined8 uVar9;\n  uint local_40;\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  local_24 = 2;\n  uVar3 = FUN_000a8bdf(param_2,"^+dtn:+",&local_24);\n  puVar1 = (undefined4 *)(param_2 + *(int *)PTR_optind_000d0f94 * 4);\n  pcVar2 = (char *)*puVar1;\n  iVar5 = puVar1[1];\n  __command = pcVar2;\n  if (iVar5 != 0) {\n    piVar7 = puVar1 + 1;\n    do {\n      __command = (char *)FUN_00019fd7("%s %s",__command,iVar5,pcVar2);\n      piVar7 = piVar7 + 1;\n      iVar5 = *piVar7;\n    } while (iVar5 != 0);\n  }\n  __ptr = (void *)0x0;\n  local_40 = 0xffffffff;\n  do {\n    __printf_chk(1,&DAT_000c8852);\n    if ((uVar3 & 2) == 0) {\n      uVar8 = FUN_00019828();\n      uVar9 = CONCAT44((int)((ulonglong)uVar8 >> 0x20),__ptr);\n      uVar4 = (uint)uVar8;\n      if (local_40 != uVar4) {\n        free(__ptr);\n        uVar9 = FUN_00019fd7("Every %us: %-*s",local_24,uVar4,__command);\n      }\n      uVar6 = (undefined4)((ulonglong)uVar9 >> 0x20);\n      __ptr = (void *)uVar9;\n      if (0x14 < uVar4) {\n        FUN_0001b631();\n        uVar6 = extraout_EDX;\n      }\n      __printf_chk(1,"%s\n\n",__ptr,uVar6);\n      local_40 = uVar4;\n    }\n    FUN_00019f78();\n    system(__command);\n    FUN_000163c0(local_24);\n  } while( true );\n}" primitive_type (function_declarator "FUN_00050f49(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  char *pcVar2;\n  uint uVar3;\n  char *__command;\n  uint uVar4;\n  int iVar5;\n  undefined4 extraout_EDX;\n  undefined4 uVar6;\n  int *piVar7;\n  void *__ptr;\n  int in_GS_OFFSET;\n  undefined8 uVar8;\n  undefined8 uVar9;\n  uint local_40;\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  local_24 = 2;\n  uVar3 = FUN_000a8bdf(param_2,"^+dtn:+",&local_24);\n  puVar1 = (undefined4 *)(param_2 + *(int *)PTR_optind_000d0f94 * 4);\n  pcVar2 = (char *)*puVar1;\n  iVar5 = puVar1[1];\n  __command = pcVar2;\n  if (iVar5 != 0) {\n    piVar7 = puVar1 + 1;\n    do {\n      __command = (char *)FUN_00019fd7("%s %s",__command,iVar5,pcVar2);\n      piVar7 = piVar7 + 1;\n      iVar5 = *piVar7;\n    } while (iVar5 != 0);\n  }\n  __ptr = (void *)0x0;\n  local_40 = 0xffffffff;\n  do {\n    __printf_chk(1,&DAT_000c8852);\n    if ((uVar3 & 2) == 0) {\n      uVar8 = FUN_00019828();\n      uVar9 = CONCAT44((int)((ulonglong)uVar8 >> 0x20),__ptr);\n      uVar4 = (uint)uVar8;\n      if (local_40 != uVar4) {\n        free(__ptr);\n        uVar9 = FUN_00019fd7("Every %us: %-*s",local_24,uVar4,__command);\n      }\n      uVar6 = (undefined4)((ulonglong)uVar9 >> 0x20);\n      __ptr = (void *)uVar9;\n      if (0x14 < uVar4) {\n        FUN_0001b631();\n        uVar6 = extraout_EDX;\n      }\n      __printf_chk(1,"%s\n\n",__ptr,uVar6);\n      local_40 = uVar4;\n    }\n    FUN_00019f78();\n    system(__command);\n    FUN_000163c0(local_24);\n  } while( true );\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "char *__command;" primitive_type (pointer_declarator "*__command" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 extraout_EDX;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined8 uVar8;" type_identifier identifier ;) (declaration "undefined8 uVar9;" type_identifier identifier ;) (declaration "uint local_40;" type_identifier identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (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) ))))) ;) (expression_statement "local_24 = 2;" (assignment_expression "local_24 = 2" identifier = number_literal) ;) (expression_statement "uVar3 = FUN_000a8bdf(param_2,"^+dtn:+",&local_24);" (assignment_expression "uVar3 = FUN_000a8bdf(param_2,"^+dtn:+",&local_24)" identifier = (call_expression "FUN_000a8bdf(param_2,"^+dtn:+",&local_24)" identifier (argument_list "(param_2,"^+dtn:+",&local_24)" ( identifier , (string_literal ""^+dtn:+"" " string_content ") , (pointer_expression "&local_24" & identifier) )))) ;) (expression_statement "puVar1 = (undefined4 *)(param_2 + *(int *)PTR_optind_000d0f94 * 4);" (assignment_expression "puVar1 = (undefined4 *)(param_2 + *(int *)PTR_optind_000d0f94 * 4)" identifier = (cast_expression "(undefined4 *)(param_2 + *(int *)PTR_optind_000d0f94 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + *(int *)PTR_optind_000d0f94 * 4)" ( (binary_expression "param_2 + *(int *)PTR_optind_000d0f94 * 4" identifier + (binary_expression "*(int *)PTR_optind_000d0f94 * 4" (pointer_expression "*(int *)PTR_optind_000d0f94" * (cast_expression "(int *)PTR_optind_000d0f94" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) * number_literal)) )))) ;) (expression_statement "pcVar2 = (char *)*puVar1;" (assignment_expression "pcVar2 = (char *)*puVar1" identifier = (cast_expression "(char *)*puVar1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) (expression_statement "iVar5 = puVar1[1];" (assignment_expression "iVar5 = puVar1[1]" identifier = (subscript_expression "puVar1[1]" identifier [ number_literal ])) ;) (expression_statement "__command = pcVar2;" (assignment_expression "__command = pcVar2" identifier = identifier) ;) (if_statement "if (iVar5 != 0) {\n    piVar7 = puVar1 + 1;\n    do {\n      __command = (char *)FUN_00019fd7("%s %s",__command,iVar5,pcVar2);\n      piVar7 = piVar7 + 1;\n      iVar5 = *piVar7;\n    } while (iVar5 != 0);\n  }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n    piVar7 = puVar1 + 1;\n    do {\n      __command = (char *)FUN_00019fd7("%s %s",__command,iVar5,pcVar2);\n      piVar7 = piVar7 + 1;\n      iVar5 = *piVar7;\n    } while (iVar5 != 0);\n  }" { (expression_statement "piVar7 = puVar1 + 1;" (assignment_expression "piVar7 = puVar1 + 1" identifier = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) (do_statement "do {\n      __command = (char *)FUN_00019fd7("%s %s",__command,iVar5,pcVar2);\n      piVar7 = piVar7 + 1;\n      iVar5 = *piVar7;\n    } while (iVar5 != 0);" do (compound_statement "{\n      __command = (char *)FUN_00019fd7("%s %s",__command,iVar5,pcVar2);\n      piVar7 = piVar7 + 1;\n      iVar5 = *piVar7;\n    }" { (expression_statement "__command = (char *)FUN_00019fd7("%s %s",__command,iVar5,pcVar2);" (assignment_expression "__command = (char *)FUN_00019fd7("%s %s",__command,iVar5,pcVar2)" identifier = (cast_expression "(char *)FUN_00019fd7("%s %s",__command,iVar5,pcVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00019fd7("%s %s",__command,iVar5,pcVar2)" identifier (argument_list "("%s %s",__command,iVar5,pcVar2)" ( (string_literal ""%s %s"" " string_content ") , identifier , identifier , identifier ))))) ;) (expression_statement "piVar7 = piVar7 + 1;" (assignment_expression "piVar7 = piVar7 + 1" identifier = (binary_expression "piVar7 + 1" identifier + number_literal)) ;) (expression_statement "iVar5 = *piVar7;" (assignment_expression "iVar5 = *piVar7" identifier = (pointer_expression "*piVar7" * identifier)) ;) }) while (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) ;) })) (expression_statement "__ptr = (void *)0x0;" (assignment_expression "__ptr = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_40 = 0xffffffff;" (assignment_expression "local_40 = 0xffffffff" identifier = number_literal) ;) (do_statement "do {\n    __printf_chk(1,&DAT_000c8852);\n    if ((uVar3 & 2) == 0) {\n      uVar8 = FUN_00019828();\n      uVar9 = CONCAT44((int)((ulonglong)uVar8 >> 0x20),__ptr);\n      uVar4 = (uint)uVar8;\n      if (local_40 != uVar4) {\n        free(__ptr);\n        uVar9 = FUN_00019fd7("Every %us: %-*s",local_24,uVar4,__command);\n      }\n      uVar6 = (undefined4)((ulonglong)uVar9 >> 0x20);\n      __ptr = (void *)uVar9;\n      if (0x14 < uVar4) {\n        FUN_0001b631();\n        uVar6 = extraout_EDX;\n      }\n      __printf_chk(1,"%s\n\n",__ptr,uVar6);\n      local_40 = uVar4;\n    }\n    FUN_00019f78();\n    system(__command);\n    FUN_000163c0(local_24);\n  } while( true );" do (compound_statement "{\n    __printf_chk(1,&DAT_000c8852);\n    if ((uVar3 & 2) == 0) {\n      uVar8 = FUN_00019828();\n      uVar9 = CONCAT44((int)((ulonglong)uVar8 >> 0x20),__ptr);\n      uVar4 = (uint)uVar8;\n      if (local_40 != uVar4) {\n        free(__ptr);\n        uVar9 = FUN_00019fd7("Every %us: %-*s",local_24,uVar4,__command);\n      }\n      uVar6 = (undefined4)((ulonglong)uVar9 >> 0x20);\n      __ptr = (void *)uVar9;\n      if (0x14 < uVar4) {\n        FUN_0001b631();\n        uVar6 = extraout_EDX;\n      }\n      __printf_chk(1,"%s\n\n",__ptr,uVar6);\n      local_40 = uVar4;\n    }\n    FUN_00019f78();\n    system(__command);\n    FUN_000163c0(local_24);\n  }" { (expression_statement "__printf_chk(1,&DAT_000c8852);" (call_expression "__printf_chk(1,&DAT_000c8852)" identifier (argument_list "(1,&DAT_000c8852)" ( number_literal , (pointer_expression "&DAT_000c8852" & identifier) ))) ;) (if_statement "if ((uVar3 & 2) == 0) {\n      uVar8 = FUN_00019828();\n      uVar9 = CONCAT44((int)((ulonglong)uVar8 >> 0x20),__ptr);\n      uVar4 = (uint)uVar8;\n      if (local_40 != uVar4) {\n        free(__ptr);\n        uVar9 = FUN_00019fd7("Every %us: %-*s",local_24,uVar4,__command);\n      }\n      uVar6 = (undefined4)((ulonglong)uVar9 >> 0x20);\n      __ptr = (void *)uVar9;\n      if (0x14 < uVar4) {\n        FUN_0001b631();\n        uVar6 = extraout_EDX;\n      }\n      __printf_chk(1,"%s\n\n",__ptr,uVar6);\n      local_40 = uVar4;\n    }" if (parenthesized_expression "((uVar3 & 2) == 0)" ( (binary_expression "(uVar3 & 2) == 0" (parenthesized_expression "(uVar3 & 2)" ( (binary_expression "uVar3 & 2" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      uVar8 = FUN_00019828();\n      uVar9 = CONCAT44((int)((ulonglong)uVar8 >> 0x20),__ptr);\n      uVar4 = (uint)uVar8;\n      if (local_40 != uVar4) {\n        free(__ptr);\n        uVar9 = FUN_00019fd7("Every %us: %-*s",local_24,uVar4,__command);\n      }\n      uVar6 = (undefined4)((ulonglong)uVar9 >> 0x20);\n      __ptr = (void *)uVar9;\n      if (0x14 < uVar4) {\n        FUN_0001b631();\n        uVar6 = extraout_EDX;\n      }\n      __printf_chk(1,"%s\n\n",__ptr,uVar6);\n      local_40 = uVar4;\n    }" { (expression_statement "uVar8 = FUN_00019828();" (assignment_expression "uVar8 = FUN_00019828()" identifier = (call_expression "FUN_00019828()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar9 = CONCAT44((int)((ulonglong)uVar8 >> 0x20),__ptr);" (assignment_expression "uVar9 = CONCAT44((int)((ulonglong)uVar8 >> 0x20),__ptr)" identifier = (call_expression "CONCAT44((int)((ulonglong)uVar8 >> 0x20),__ptr)" identifier (argument_list "((int)((ulonglong)uVar8 >> 0x20),__ptr)" ( (cast_expression "(int)((ulonglong)uVar8 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar8 >> 0x20)" ( (binary_expression "(ulonglong)uVar8 >> 0x20" (cast_expression "(ulonglong)uVar8" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) , identifier )))) ;) (expression_statement "uVar4 = (uint)uVar8;" (assignment_expression "uVar4 = (uint)uVar8" identifier = (cast_expression "(uint)uVar8" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if (local_40 != uVar4) {\n        free(__ptr);\n        uVar9 = FUN_00019fd7("Every %us: %-*s",local_24,uVar4,__command);\n      }" if (parenthesized_expression "(local_40 != uVar4)" ( (binary_expression "local_40 != uVar4" identifier != identifier) )) (compound_statement "{\n        free(__ptr);\n        uVar9 = FUN_00019fd7("Every %us: %-*s",local_24,uVar4,__command);\n      }" { (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "uVar9 = FUN_00019fd7("Every %us: %-*s",local_24,uVar4,__command);" (assignment_expression "uVar9 = FUN_00019fd7("Every %us: %-*s",local_24,uVar4,__command)" identifier = (call_expression "FUN_00019fd7("Every %us: %-*s",local_24,uVar4,__command)" identifier (argument_list "("Every %us: %-*s",local_24,uVar4,__command)" ( (string_literal ""Every %us: %-*s"" " string_content ") , identifier , identifier , identifier )))) ;) })) (expression_statement "uVar6 = (undefined4)((ulonglong)uVar9 >> 0x20);" (assignment_expression "uVar6 = (undefined4)((ulonglong)uVar9 >> 0x20)" identifier = (call_expression "(undefined4)((ulonglong)uVar9 >> 0x20)" (parenthesized_expression "(undefined4)" ( identifier )) (argument_list "((ulonglong)uVar9 >> 0x20)" ( (binary_expression "(ulonglong)uVar9 >> 0x20" (cast_expression "(ulonglong)uVar9" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "__ptr = (void *)uVar9;" (assignment_expression "__ptr = (void *)uVar9" identifier = (cast_expression "(void *)uVar9" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (0x14 < uVar4) {\n        FUN_0001b631();\n        uVar6 = extraout_EDX;\n      }" if (parenthesized_expression "(0x14 < uVar4)" ( (binary_expression "0x14 < uVar4" number_literal < identifier) )) (compound_statement "{\n        FUN_0001b631();\n        uVar6 = extraout_EDX;\n      }" { (expression_statement "FUN_0001b631();" (call_expression "FUN_0001b631()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar6 = extraout_EDX;" (assignment_expression "uVar6 = extraout_EDX" identifier = identifier) ;) })) (expression_statement "__printf_chk(1,"%s\n\n",__ptr,uVar6);" (call_expression "__printf_chk(1,"%s\n\n",__ptr,uVar6)" identifier (argument_list "(1,"%s\n\n",__ptr,uVar6)" ( number_literal , (string_literal ""%s\n\n"" " string_content escape_sequence escape_sequence ") , identifier , identifier ))) ;) (expression_statement "local_40 = uVar4;" (assignment_expression "local_40 = uVar4" identifier = identifier) ;) })) (expression_statement "FUN_00019f78();" (call_expression "FUN_00019f78()" identifier (argument_list "()" ( ))) ;) (expression_statement "system(__command);" (call_expression "system(__command)" identifier (argument_list "(__command)" ( identifier ))) ;) (expression_statement "FUN_000163c0(local_24);" (call_expression "FUN_000163c0(local_24)" identifier (argument_list "(local_24)" ( identifier ))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint watch_main(int argc,char **argv)\n\n{\n  uint period;\n  \n}\n\n" comment (function_definition "int watch_main(int argc,char **argv)\n\n{\n  uint period;\n  \n}" primitive_type (function_declarator "watch_main(int argc,char **argv)" identifier (parameter_list "(int argc,char **argv)" ( (parameter_declaration "int argc" primitive_type identifier) , (parameter_declaration "char **argv" primitive_type (pointer_declarator "**argv" * (pointer_declarator "*argv" * identifier))) ))) (compound_statement "{\n  uint period;\n  \n}" { (declaration "uint period;" type_identifier identifier ;) })))
(translation_unit "void FUN_00050f49(undefined4 param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  char *pcVar2;\n  uint uVar3;\n  char *__command;\n  uint uVar4;\n  int iVar5;\n  undefined4 extraout_EDX;\n  undefined4 uVar6;\n  int *piVar7;\n  void *__ptr;\n  int in_GS_OFFSET;\n  undefined8 uVar8;\n  undefined8 uVar9;\n  uint local_40;\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  local_24 = 2;\n  uVar3 = FUN_000a8bdf(param_2,"^+dtn:+",&local_24);\n  puVar1 = (undefined4 *)(param_2 + *(int *)PTR_optind_000d0f94 * 4);\n  pcVar2 = (char *)*puVar1;\n  iVar5 = puVar1[1];\n  __command = pcVar2;\n  if (iVar5 != 0) {\n    piVar7 = puVar1 + 1;\n    do {\n      __command = (char *)FUN_00019fd7("%s %s",__command,iVar5,pcVar2);\n      piVar7 = piVar7 + 1;\n      iVar5 = *piVar7;\n    } while (iVar5 != 0);\n  }\n  __ptr = (void *)0x0;\n  local_40 = 0xffffffff;\n  do {\n    __printf_chk(1,&DAT_000c8852);\n    if ((uVar3 & 2) == 0) {\n      uVar8 = FUN_00019828();\n      uVar9 = CONCAT44((int)((ulonglong)uVar8 >> 0x20),__ptr);\n      uVar4 = (uint)uVar8;\n      if (local_40 != uVar4) {\n        free(__ptr);\n        uVar9 = FUN_00019fd7("Every %us: %-*s",local_24,uVar4,__command);\n      }\n      uVar6 = (undefined4)((ulonglong)uVar9 >> 0x20);\n      __ptr = (void *)uVar9;\n      if (0x14 < uVar4) {\n        FUN_0001b631();\n        uVar6 = extraout_EDX;\n      }\n      __printf_chk(1,"%s\n\n",__ptr,uVar6);\n      local_40 = uVar4;\n    }\n    FUN_00019f78();\n    system(__command);\n    FUN_000163c0(local_24);\n  } while( true );\n}\n\n" (function_definition "void FUN_00050f49(undefined4 param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  char *pcVar2;\n  uint uVar3;\n  char *__command;\n  uint uVar4;\n  int iVar5;\n  undefined4 extraout_EDX;\n  undefined4 uVar6;\n  int *piVar7;\n  void *__ptr;\n  int in_GS_OFFSET;\n  undefined8 uVar8;\n  undefined8 uVar9;\n  uint local_40;\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  local_24 = 2;\n  uVar3 = FUN_000a8bdf(param_2,"^+dtn:+",&local_24);\n  puVar1 = (undefined4 *)(param_2 + *(int *)PTR_optind_000d0f94 * 4);\n  pcVar2 = (char *)*puVar1;\n  iVar5 = puVar1[1];\n  __command = pcVar2;\n  if (iVar5 != 0) {\n    piVar7 = puVar1 + 1;\n    do {\n      __command = (char *)FUN_00019fd7("%s %s",__command,iVar5,pcVar2);\n      piVar7 = piVar7 + 1;\n      iVar5 = *piVar7;\n    } while (iVar5 != 0);\n  }\n  __ptr = (void *)0x0;\n  local_40 = 0xffffffff;\n  do {\n    __printf_chk(1,&DAT_000c8852);\n    if ((uVar3 & 2) == 0) {\n      uVar8 = FUN_00019828();\n      uVar9 = CONCAT44((int)((ulonglong)uVar8 >> 0x20),__ptr);\n      uVar4 = (uint)uVar8;\n      if (local_40 != uVar4) {\n        free(__ptr);\n        uVar9 = FUN_00019fd7("Every %us: %-*s",local_24,uVar4,__command);\n      }\n      uVar6 = (undefined4)((ulonglong)uVar9 >> 0x20);\n      __ptr = (void *)uVar9;\n      if (0x14 < uVar4) {\n        FUN_0001b631();\n        uVar6 = extraout_EDX;\n      }\n      __printf_chk(1,"%s\n\n",__ptr,uVar6);\n      local_40 = uVar4;\n    }\n    FUN_00019f78();\n    system(__command);\n    FUN_000163c0(local_24);\n  } while( true );\n}" primitive_type (function_declarator "FUN_00050f49(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  char *pcVar2;\n  uint uVar3;\n  char *__command;\n  uint uVar4;\n  int iVar5;\n  undefined4 extraout_EDX;\n  undefined4 uVar6;\n  int *piVar7;\n  void *__ptr;\n  int in_GS_OFFSET;\n  undefined8 uVar8;\n  undefined8 uVar9;\n  uint local_40;\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  local_24 = 2;\n  uVar3 = FUN_000a8bdf(param_2,"^+dtn:+",&local_24);\n  puVar1 = (undefined4 *)(param_2 + *(int *)PTR_optind_000d0f94 * 4);\n  pcVar2 = (char *)*puVar1;\n  iVar5 = puVar1[1];\n  __command = pcVar2;\n  if (iVar5 != 0) {\n    piVar7 = puVar1 + 1;\n    do {\n      __command = (char *)FUN_00019fd7("%s %s",__command,iVar5,pcVar2);\n      piVar7 = piVar7 + 1;\n      iVar5 = *piVar7;\n    } while (iVar5 != 0);\n  }\n  __ptr = (void *)0x0;\n  local_40 = 0xffffffff;\n  do {\n    __printf_chk(1,&DAT_000c8852);\n    if ((uVar3 & 2) == 0) {\n      uVar8 = FUN_00019828();\n      uVar9 = CONCAT44((int)((ulonglong)uVar8 >> 0x20),__ptr);\n      uVar4 = (uint)uVar8;\n      if (local_40 != uVar4) {\n        free(__ptr);\n        uVar9 = FUN_00019fd7("Every %us: %-*s",local_24,uVar4,__command);\n      }\n      uVar6 = (undefined4)((ulonglong)uVar9 >> 0x20);\n      __ptr = (void *)uVar9;\n      if (0x14 < uVar4) {\n        FUN_0001b631();\n        uVar6 = extraout_EDX;\n      }\n      __printf_chk(1,"%s\n\n",__ptr,uVar6);\n      local_40 = uVar4;\n    }\n    FUN_00019f78();\n    system(__command);\n    FUN_000163c0(local_24);\n  } while( true );\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "char *__command;" primitive_type (pointer_declarator "*__command" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 extraout_EDX;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined8 uVar8;" type_identifier identifier ;) (declaration "undefined8 uVar9;" type_identifier identifier ;) (declaration "uint local_40;" type_identifier identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (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) ))))) ;) (expression_statement "local_24 = 2;" (assignment_expression "local_24 = 2" identifier = number_literal) ;) (expression_statement "uVar3 = FUN_000a8bdf(param_2,"^+dtn:+",&local_24);" (assignment_expression "uVar3 = FUN_000a8bdf(param_2,"^+dtn:+",&local_24)" identifier = (call_expression "FUN_000a8bdf(param_2,"^+dtn:+",&local_24)" identifier (argument_list "(param_2,"^+dtn:+",&local_24)" ( identifier , (string_literal ""^+dtn:+"" " string_content ") , (pointer_expression "&local_24" & identifier) )))) ;) (expression_statement "puVar1 = (undefined4 *)(param_2 + *(int *)PTR_optind_000d0f94 * 4);" (assignment_expression "puVar1 = (undefined4 *)(param_2 + *(int *)PTR_optind_000d0f94 * 4)" identifier = (cast_expression "(undefined4 *)(param_2 + *(int *)PTR_optind_000d0f94 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + *(int *)PTR_optind_000d0f94 * 4)" ( (binary_expression "param_2 + *(int *)PTR_optind_000d0f94 * 4" identifier + (binary_expression "*(int *)PTR_optind_000d0f94 * 4" (pointer_expression "*(int *)PTR_optind_000d0f94" * (cast_expression "(int *)PTR_optind_000d0f94" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) * number_literal)) )))) ;) (expression_statement "pcVar2 = (char *)*puVar1;" (assignment_expression "pcVar2 = (char *)*puVar1" identifier = (cast_expression "(char *)*puVar1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) (expression_statement "iVar5 = puVar1[1];" (assignment_expression "iVar5 = puVar1[1]" identifier = (subscript_expression "puVar1[1]" identifier [ number_literal ])) ;) (expression_statement "__command = pcVar2;" (assignment_expression "__command = pcVar2" identifier = identifier) ;) (if_statement "if (iVar5 != 0) {\n    piVar7 = puVar1 + 1;\n    do {\n      __command = (char *)FUN_00019fd7("%s %s",__command,iVar5,pcVar2);\n      piVar7 = piVar7 + 1;\n      iVar5 = *piVar7;\n    } while (iVar5 != 0);\n  }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n    piVar7 = puVar1 + 1;\n    do {\n      __command = (char *)FUN_00019fd7("%s %s",__command,iVar5,pcVar2);\n      piVar7 = piVar7 + 1;\n      iVar5 = *piVar7;\n    } while (iVar5 != 0);\n  }" { (expression_statement "piVar7 = puVar1 + 1;" (assignment_expression "piVar7 = puVar1 + 1" identifier = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) (do_statement "do {\n      __command = (char *)FUN_00019fd7("%s %s",__command,iVar5,pcVar2);\n      piVar7 = piVar7 + 1;\n      iVar5 = *piVar7;\n    } while (iVar5 != 0);" do (compound_statement "{\n      __command = (char *)FUN_00019fd7("%s %s",__command,iVar5,pcVar2);\n      piVar7 = piVar7 + 1;\n      iVar5 = *piVar7;\n    }" { (expression_statement "__command = (char *)FUN_00019fd7("%s %s",__command,iVar5,pcVar2);" (assignment_expression "__command = (char *)FUN_00019fd7("%s %s",__command,iVar5,pcVar2)" identifier = (cast_expression "(char *)FUN_00019fd7("%s %s",__command,iVar5,pcVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00019fd7("%s %s",__command,iVar5,pcVar2)" identifier (argument_list "("%s %s",__command,iVar5,pcVar2)" ( (string_literal ""%s %s"" " string_content ") , identifier , identifier , identifier ))))) ;) (expression_statement "piVar7 = piVar7 + 1;" (assignment_expression "piVar7 = piVar7 + 1" identifier = (binary_expression "piVar7 + 1" identifier + number_literal)) ;) (expression_statement "iVar5 = *piVar7;" (assignment_expression "iVar5 = *piVar7" identifier = (pointer_expression "*piVar7" * identifier)) ;) }) while (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) ;) })) (expression_statement "__ptr = (void *)0x0;" (assignment_expression "__ptr = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_40 = 0xffffffff;" (assignment_expression "local_40 = 0xffffffff" identifier = number_literal) ;) (do_statement "do {\n    __printf_chk(1,&DAT_000c8852);\n    if ((uVar3 & 2) == 0) {\n      uVar8 = FUN_00019828();\n      uVar9 = CONCAT44((int)((ulonglong)uVar8 >> 0x20),__ptr);\n      uVar4 = (uint)uVar8;\n      if (local_40 != uVar4) {\n        free(__ptr);\n        uVar9 = FUN_00019fd7("Every %us: %-*s",local_24,uVar4,__command);\n      }\n      uVar6 = (undefined4)((ulonglong)uVar9 >> 0x20);\n      __ptr = (void *)uVar9;\n      if (0x14 < uVar4) {\n        FUN_0001b631();\n        uVar6 = extraout_EDX;\n      }\n      __printf_chk(1,"%s\n\n",__ptr,uVar6);\n      local_40 = uVar4;\n    }\n    FUN_00019f78();\n    system(__command);\n    FUN_000163c0(local_24);\n  } while( true );" do (compound_statement "{\n    __printf_chk(1,&DAT_000c8852);\n    if ((uVar3 & 2) == 0) {\n      uVar8 = FUN_00019828();\n      uVar9 = CONCAT44((int)((ulonglong)uVar8 >> 0x20),__ptr);\n      uVar4 = (uint)uVar8;\n      if (local_40 != uVar4) {\n        free(__ptr);\n        uVar9 = FUN_00019fd7("Every %us: %-*s",local_24,uVar4,__command);\n      }\n      uVar6 = (undefined4)((ulonglong)uVar9 >> 0x20);\n      __ptr = (void *)uVar9;\n      if (0x14 < uVar4) {\n        FUN_0001b631();\n        uVar6 = extraout_EDX;\n      }\n      __printf_chk(1,"%s\n\n",__ptr,uVar6);\n      local_40 = uVar4;\n    }\n    FUN_00019f78();\n    system(__command);\n    FUN_000163c0(local_24);\n  }" { (expression_statement "__printf_chk(1,&DAT_000c8852);" (call_expression "__printf_chk(1,&DAT_000c8852)" identifier (argument_list "(1,&DAT_000c8852)" ( number_literal , (pointer_expression "&DAT_000c8852" & identifier) ))) ;) (if_statement "if ((uVar3 & 2) == 0) {\n      uVar8 = FUN_00019828();\n      uVar9 = CONCAT44((int)((ulonglong)uVar8 >> 0x20),__ptr);\n      uVar4 = (uint)uVar8;\n      if (local_40 != uVar4) {\n        free(__ptr);\n        uVar9 = FUN_00019fd7("Every %us: %-*s",local_24,uVar4,__command);\n      }\n      uVar6 = (undefined4)((ulonglong)uVar9 >> 0x20);\n      __ptr = (void *)uVar9;\n      if (0x14 < uVar4) {\n        FUN_0001b631();\n        uVar6 = extraout_EDX;\n      }\n      __printf_chk(1,"%s\n\n",__ptr,uVar6);\n      local_40 = uVar4;\n    }" if (parenthesized_expression "((uVar3 & 2) == 0)" ( (binary_expression "(uVar3 & 2) == 0" (parenthesized_expression "(uVar3 & 2)" ( (binary_expression "uVar3 & 2" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      uVar8 = FUN_00019828();\n      uVar9 = CONCAT44((int)((ulonglong)uVar8 >> 0x20),__ptr);\n      uVar4 = (uint)uVar8;\n      if (local_40 != uVar4) {\n        free(__ptr);\n        uVar9 = FUN_00019fd7("Every %us: %-*s",local_24,uVar4,__command);\n      }\n      uVar6 = (undefined4)((ulonglong)uVar9 >> 0x20);\n      __ptr = (void *)uVar9;\n      if (0x14 < uVar4) {\n        FUN_0001b631();\n        uVar6 = extraout_EDX;\n      }\n      __printf_chk(1,"%s\n\n",__ptr,uVar6);\n      local_40 = uVar4;\n    }" { (expression_statement "uVar8 = FUN_00019828();" (assignment_expression "uVar8 = FUN_00019828()" identifier = (call_expression "FUN_00019828()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar9 = CONCAT44((int)((ulonglong)uVar8 >> 0x20),__ptr);" (assignment_expression "uVar9 = CONCAT44((int)((ulonglong)uVar8 >> 0x20),__ptr)" identifier = (call_expression "CONCAT44((int)((ulonglong)uVar8 >> 0x20),__ptr)" identifier (argument_list "((int)((ulonglong)uVar8 >> 0x20),__ptr)" ( (cast_expression "(int)((ulonglong)uVar8 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar8 >> 0x20)" ( (binary_expression "(ulonglong)uVar8 >> 0x20" (cast_expression "(ulonglong)uVar8" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) , identifier )))) ;) (expression_statement "uVar4 = (uint)uVar8;" (assignment_expression "uVar4 = (uint)uVar8" identifier = (cast_expression "(uint)uVar8" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if (local_40 != uVar4) {\n        free(__ptr);\n        uVar9 = FUN_00019fd7("Every %us: %-*s",local_24,uVar4,__command);\n      }" if (parenthesized_expression "(local_40 != uVar4)" ( (binary_expression "local_40 != uVar4" identifier != identifier) )) (compound_statement "{\n        free(__ptr);\n        uVar9 = FUN_00019fd7("Every %us: %-*s",local_24,uVar4,__command);\n      }" { (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "uVar9 = FUN_00019fd7("Every %us: %-*s",local_24,uVar4,__command);" (assignment_expression "uVar9 = FUN_00019fd7("Every %us: %-*s",local_24,uVar4,__command)" identifier = (call_expression "FUN_00019fd7("Every %us: %-*s",local_24,uVar4,__command)" identifier (argument_list "("Every %us: %-*s",local_24,uVar4,__command)" ( (string_literal ""Every %us: %-*s"" " string_content ") , identifier , identifier , identifier )))) ;) })) (expression_statement "uVar6 = (undefined4)((ulonglong)uVar9 >> 0x20);" (assignment_expression "uVar6 = (undefined4)((ulonglong)uVar9 >> 0x20)" identifier = (call_expression "(undefined4)((ulonglong)uVar9 >> 0x20)" (parenthesized_expression "(undefined4)" ( identifier )) (argument_list "((ulonglong)uVar9 >> 0x20)" ( (binary_expression "(ulonglong)uVar9 >> 0x20" (cast_expression "(ulonglong)uVar9" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "__ptr = (void *)uVar9;" (assignment_expression "__ptr = (void *)uVar9" identifier = (cast_expression "(void *)uVar9" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (0x14 < uVar4) {\n        FUN_0001b631();\n        uVar6 = extraout_EDX;\n      }" if (parenthesized_expression "(0x14 < uVar4)" ( (binary_expression "0x14 < uVar4" number_literal < identifier) )) (compound_statement "{\n        FUN_0001b631();\n        uVar6 = extraout_EDX;\n      }" { (expression_statement "FUN_0001b631();" (call_expression "FUN_0001b631()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar6 = extraout_EDX;" (assignment_expression "uVar6 = extraout_EDX" identifier = identifier) ;) })) (expression_statement "__printf_chk(1,"%s\n\n",__ptr,uVar6);" (call_expression "__printf_chk(1,"%s\n\n",__ptr,uVar6)" identifier (argument_list "(1,"%s\n\n",__ptr,uVar6)" ( number_literal , (string_literal ""%s\n\n"" " string_content escape_sequence escape_sequence ") , identifier , identifier ))) ;) (expression_statement "local_40 = uVar4;" (assignment_expression "local_40 = uVar4" identifier = identifier) ;) })) (expression_statement "FUN_00019f78();" (call_expression "FUN_00019f78()" identifier (argument_list "()" ( ))) ;) (expression_statement "system(__command);" (call_expression "system(__command)" identifier (argument_list "(__command)" ( identifier ))) ;) (expression_statement "FUN_000163c0(local_24);" (call_expression "FUN_000163c0(local_24)" identifier (argument_list "(local_24)" ( identifier ))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , (pointer_expression & IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT , IDENT , IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression & IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT , IDENT , IDENT )))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence escape_sequence ") , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "void FUN_00050f49(undefined4 param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  char *pcVar2;\n  uint uVar3;\n  char *__command;\n  uint uVar4;\n  int iVar5;\n  undefined4 extraout_EDX;\n  undefined4 uVar6;\n  int *piVar7;\n  void *__ptr;\n  int in_GS_OFFSET;\n  undefined8 uVar8;\n  undefined8 uVar9;\n  uint local_40;\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  local_24 = 2;\n  uVar3 = FUN_000a8bdf(param_2,"^+dtn:+",&local_24);\n  puVar1 = (undefined4 *)(param_2 + *(int *)PTR_optind_000d0f94 * 4);\n  pcVar2 = (char *)*puVar1;\n  iVar5 = puVar1[1];\n  __command = pcVar2;\n  if (iVar5 != 0) {\n    piVar7 = puVar1 + 1;\n    do {\n      __command = (char *)FUN_00019fd7("%s %s",__command,iVar5,pcVar2);\n      piVar7 = piVar7 + 1;\n      iVar5 = *piVar7;\n    } while (iVar5 != 0);\n  }\n  __ptr = (void *)0x0;\n  local_40 = 0xffffffff;\n  do {\n    __printf_chk(1,&DAT_000c8852);\n    if ((uVar3 & 2) == 0) {\n      uVar8 = FUN_00019828();\n      uVar9 = CONCAT44((int)((ulonglong)uVar8 >> 0x20),__ptr);\n      uVar4 = (uint)uVar8;\n      if (local_40 != uVar4) {\n        free(__ptr);\n        uVar9 = FUN_00019fd7("Every %us: %-*s",local_24,uVar4,__command);\n      }\n      uVar6 = (undefined4)((ulonglong)uVar9 >> 0x20);\n      __ptr = (void *)uVar9;\n      if (0x14 < uVar4) {\n        FUN_0001b631();\n        uVar6 = extraout_EDX;\n      }\n      __printf_chk(1,"%s\n\n",__ptr,uVar6);\n      local_40 = uVar4;\n    }\n    FUN_00019f78();\n    system(__command);\n    FUN_000163c0(local_24);\n  } while( true );\n}" (primitive_type "void") (function_declarator "FUN_00050f49(undefined4 param_1,int param_2)" (identifier "FUN_00050f49") (parameter_list "(undefined4 param_1,int param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  char *pcVar2;\n  uint uVar3;\n  char *__command;\n  uint uVar4;\n  int iVar5;\n  undefined4 extraout_EDX;\n  undefined4 uVar6;\n  int *piVar7;\n  void *__ptr;\n  int in_GS_OFFSET;\n  undefined8 uVar8;\n  undefined8 uVar9;\n  uint local_40;\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  local_24 = 2;\n  uVar3 = FUN_000a8bdf(param_2,"^+dtn:+",&local_24);\n  puVar1 = (undefined4 *)(param_2 + *(int *)PTR_optind_000d0f94 * 4);\n  pcVar2 = (char *)*puVar1;\n  iVar5 = puVar1[1];\n  __command = pcVar2;\n  if (iVar5 != 0) {\n    piVar7 = puVar1 + 1;\n    do {\n      __command = (char *)FUN_00019fd7("%s %s",__command,iVar5,pcVar2);\n      piVar7 = piVar7 + 1;\n      iVar5 = *piVar7;\n    } while (iVar5 != 0);\n  }\n  __ptr = (void *)0x0;\n  local_40 = 0xffffffff;\n  do {\n    __printf_chk(1,&DAT_000c8852);\n    if ((uVar3 & 2) == 0) {\n      uVar8 = FUN_00019828();\n      uVar9 = CONCAT44((int)((ulonglong)uVar8 >> 0x20),__ptr);\n      uVar4 = (uint)uVar8;\n      if (local_40 != uVar4) {\n        free(__ptr);\n        uVar9 = FUN_00019fd7("Every %us: %-*s",local_24,uVar4,__command);\n      }\n      uVar6 = (undefined4)((ulonglong)uVar9 >> 0x20);\n      __ptr = (void *)uVar9;\n      if (0x14 < uVar4) {\n        FUN_0001b631();\n        uVar6 = extraout_EDX;\n      }\n      __printf_chk(1,"%s\n\n",__ptr,uVar6);\n      local_40 = uVar4;\n    }\n    FUN_00019f78();\n    system(__command);\n    FUN_000163c0(local_24);\n  } while( true );\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "char *__command;" (primitive_type "char") (pointer_declarator "*__command" (* "*") (identifier "__command")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 extraout_EDX;" (type_identifier "undefined4") (identifier "extraout_EDX") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "int *piVar7;" (primitive_type "int") (pointer_declarator "*piVar7" (* "*") (identifier "piVar7")) (; ";")) (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined8 uVar8;" (type_identifier "undefined8") (identifier "uVar8") (; ";")) (declaration "undefined8 uVar9;" (type_identifier "undefined8") (identifier "uVar9") (; ";")) (declaration "uint local_40;" (type_identifier "uint") (identifier "local_40") (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (identifier "local_24") (; ";")) (declaration "undefined4 local_20;" (type_identifier "undefined4") (identifier "local_20") (; ";")) (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")) () ")"))))) (; ";")) (expression_statement "local_24 = 2;" (assignment_expression "local_24 = 2" (identifier "local_24") (= "=") (number_literal "2")) (; ";")) (expression_statement "uVar3 = FUN_000a8bdf(param_2,"^+dtn:+",&local_24);" (assignment_expression "uVar3 = FUN_000a8bdf(param_2,"^+dtn:+",&local_24)" (identifier "uVar3") (= "=") (call_expression "FUN_000a8bdf(param_2,"^+dtn:+",&local_24)" (identifier "FUN_000a8bdf") (argument_list "(param_2,"^+dtn:+",&local_24)" (( "(") (identifier "param_2") (, ",") (string_literal ""^+dtn:+"" (" """) (string_content "^+dtn:+") (" """)) (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")")))) (; ";")) (expression_statement "puVar1 = (undefined4 *)(param_2 + *(int *)PTR_optind_000d0f94 * 4);" (assignment_expression "puVar1 = (undefined4 *)(param_2 + *(int *)PTR_optind_000d0f94 * 4)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(param_2 + *(int *)PTR_optind_000d0f94 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + *(int *)PTR_optind_000d0f94 * 4)" (( "(") (binary_expression "param_2 + *(int *)PTR_optind_000d0f94 * 4" (identifier "param_2") (+ "+") (binary_expression "*(int *)PTR_optind_000d0f94 * 4" (pointer_expression "*(int *)PTR_optind_000d0f94" (* "*") (cast_expression "(int *)PTR_optind_000d0f94" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_optind_000d0f94"))) (* "*") (number_literal "4"))) () ")")))) (; ";")) (expression_statement "pcVar2 = (char *)*puVar1;" (assignment_expression "pcVar2 = (char *)*puVar1" (identifier "pcVar2") (= "=") (cast_expression "(char *)*puVar1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) (; ";")) (expression_statement "iVar5 = puVar1[1];" (assignment_expression "iVar5 = puVar1[1]" (identifier "iVar5") (= "=") (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "__command = pcVar2;" (assignment_expression "__command = pcVar2" (identifier "__command") (= "=") (identifier "pcVar2")) (; ";")) (if_statement "if (iVar5 != 0) {\n    piVar7 = puVar1 + 1;\n    do {\n      __command = (char *)FUN_00019fd7("%s %s",__command,iVar5,pcVar2);\n      piVar7 = piVar7 + 1;\n      iVar5 = *piVar7;\n    } while (iVar5 != 0);\n  }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    piVar7 = puVar1 + 1;\n    do {\n      __command = (char *)FUN_00019fd7("%s %s",__command,iVar5,pcVar2);\n      piVar7 = piVar7 + 1;\n      iVar5 = *piVar7;\n    } while (iVar5 != 0);\n  }" ({ "{") (expression_statement "piVar7 = puVar1 + 1;" (assignment_expression "piVar7 = puVar1 + 1" (identifier "piVar7") (= "=") (binary_expression "puVar1 + 1" (identifier "puVar1") (+ "+") (number_literal "1"))) (; ";")) (do_statement "do {\n      __command = (char *)FUN_00019fd7("%s %s",__command,iVar5,pcVar2);\n      piVar7 = piVar7 + 1;\n      iVar5 = *piVar7;\n    } while (iVar5 != 0);" (do "do") (compound_statement "{\n      __command = (char *)FUN_00019fd7("%s %s",__command,iVar5,pcVar2);\n      piVar7 = piVar7 + 1;\n      iVar5 = *piVar7;\n    }" ({ "{") (expression_statement "__command = (char *)FUN_00019fd7("%s %s",__command,iVar5,pcVar2);" (assignment_expression "__command = (char *)FUN_00019fd7("%s %s",__command,iVar5,pcVar2)" (identifier "__command") (= "=") (cast_expression "(char *)FUN_00019fd7("%s %s",__command,iVar5,pcVar2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00019fd7("%s %s",__command,iVar5,pcVar2)" (identifier "FUN_00019fd7") (argument_list "("%s %s",__command,iVar5,pcVar2)" (( "(") (string_literal ""%s %s"" (" """) (string_content "%s %s") (" """)) (, ",") (identifier "__command") (, ",") (identifier "iVar5") (, ",") (identifier "pcVar2") () ")"))))) (; ";")) (expression_statement "piVar7 = piVar7 + 1;" (assignment_expression "piVar7 = piVar7 + 1" (identifier "piVar7") (= "=") (binary_expression "piVar7 + 1" (identifier "piVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar5 = *piVar7;" (assignment_expression "iVar5 = *piVar7" (identifier "iVar5") (= "=") (pointer_expression "*piVar7" (* "*") (identifier "piVar7"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (expression_statement "__ptr = (void *)0x0;" (assignment_expression "__ptr = (void *)0x0" (identifier "__ptr") (= "=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "local_40 = 0xffffffff;" (assignment_expression "local_40 = 0xffffffff" (identifier "local_40") (= "=") (number_literal "0xffffffff")) (; ";")) (do_statement "do {\n    __printf_chk(1,&DAT_000c8852);\n    if ((uVar3 & 2) == 0) {\n      uVar8 = FUN_00019828();\n      uVar9 = CONCAT44((int)((ulonglong)uVar8 >> 0x20),__ptr);\n      uVar4 = (uint)uVar8;\n      if (local_40 != uVar4) {\n        free(__ptr);\n        uVar9 = FUN_00019fd7("Every %us: %-*s",local_24,uVar4,__command);\n      }\n      uVar6 = (undefined4)((ulonglong)uVar9 >> 0x20);\n      __ptr = (void *)uVar9;\n      if (0x14 < uVar4) {\n        FUN_0001b631();\n        uVar6 = extraout_EDX;\n      }\n      __printf_chk(1,"%s\n\n",__ptr,uVar6);\n      local_40 = uVar4;\n    }\n    FUN_00019f78();\n    system(__command);\n    FUN_000163c0(local_24);\n  } while( true );" (do "do") (compound_statement "{\n    __printf_chk(1,&DAT_000c8852);\n    if ((uVar3 & 2) == 0) {\n      uVar8 = FUN_00019828();\n      uVar9 = CONCAT44((int)((ulonglong)uVar8 >> 0x20),__ptr);\n      uVar4 = (uint)uVar8;\n      if (local_40 != uVar4) {\n        free(__ptr);\n        uVar9 = FUN_00019fd7("Every %us: %-*s",local_24,uVar4,__command);\n      }\n      uVar6 = (undefined4)((ulonglong)uVar9 >> 0x20);\n      __ptr = (void *)uVar9;\n      if (0x14 < uVar4) {\n        FUN_0001b631();\n        uVar6 = extraout_EDX;\n      }\n      __printf_chk(1,"%s\n\n",__ptr,uVar6);\n      local_40 = uVar4;\n    }\n    FUN_00019f78();\n    system(__command);\n    FUN_000163c0(local_24);\n  }" ({ "{") (expression_statement "__printf_chk(1,&DAT_000c8852);" (call_expression "__printf_chk(1,&DAT_000c8852)" (identifier "__printf_chk") (argument_list "(1,&DAT_000c8852)" (( "(") (number_literal "1") (, ",") (pointer_expression "&DAT_000c8852" (& "&") (identifier "DAT_000c8852")) () ")"))) (; ";")) (if_statement "if ((uVar3 & 2) == 0) {\n      uVar8 = FUN_00019828();\n      uVar9 = CONCAT44((int)((ulonglong)uVar8 >> 0x20),__ptr);\n      uVar4 = (uint)uVar8;\n      if (local_40 != uVar4) {\n        free(__ptr);\n        uVar9 = FUN_00019fd7("Every %us: %-*s",local_24,uVar4,__command);\n      }\n      uVar6 = (undefined4)((ulonglong)uVar9 >> 0x20);\n      __ptr = (void *)uVar9;\n      if (0x14 < uVar4) {\n        FUN_0001b631();\n        uVar6 = extraout_EDX;\n      }\n      __printf_chk(1,"%s\n\n",__ptr,uVar6);\n      local_40 = uVar4;\n    }" (if "if") (parenthesized_expression "((uVar3 & 2) == 0)" (( "(") (binary_expression "(uVar3 & 2) == 0" (parenthesized_expression "(uVar3 & 2)" (( "(") (binary_expression "uVar3 & 2" (identifier "uVar3") (& "&") (number_literal "2")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar8 = FUN_00019828();\n      uVar9 = CONCAT44((int)((ulonglong)uVar8 >> 0x20),__ptr);\n      uVar4 = (uint)uVar8;\n      if (local_40 != uVar4) {\n        free(__ptr);\n        uVar9 = FUN_00019fd7("Every %us: %-*s",local_24,uVar4,__command);\n      }\n      uVar6 = (undefined4)((ulonglong)uVar9 >> 0x20);\n      __ptr = (void *)uVar9;\n      if (0x14 < uVar4) {\n        FUN_0001b631();\n        uVar6 = extraout_EDX;\n      }\n      __printf_chk(1,"%s\n\n",__ptr,uVar6);\n      local_40 = uVar4;\n    }" ({ "{") (expression_statement "uVar8 = FUN_00019828();" (assignment_expression "uVar8 = FUN_00019828()" (identifier "uVar8") (= "=") (call_expression "FUN_00019828()" (identifier "FUN_00019828") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar9 = CONCAT44((int)((ulonglong)uVar8 >> 0x20),__ptr);" (assignment_expression "uVar9 = CONCAT44((int)((ulonglong)uVar8 >> 0x20),__ptr)" (identifier "uVar9") (= "=") (call_expression "CONCAT44((int)((ulonglong)uVar8 >> 0x20),__ptr)" (identifier "CONCAT44") (argument_list "((int)((ulonglong)uVar8 >> 0x20),__ptr)" (( "(") (cast_expression "(int)((ulonglong)uVar8 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar8 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar8 >> 0x20" (cast_expression "(ulonglong)uVar8" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar8")) (>> ">>") (number_literal "0x20")) () ")"))) (, ",") (identifier "__ptr") () ")")))) (; ";")) (expression_statement "uVar4 = (uint)uVar8;" (assignment_expression "uVar4 = (uint)uVar8" (identifier "uVar4") (= "=") (cast_expression "(uint)uVar8" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar8"))) (; ";")) (if_statement "if (local_40 != uVar4) {\n        free(__ptr);\n        uVar9 = FUN_00019fd7("Every %us: %-*s",local_24,uVar4,__command);\n      }" (if "if") (parenthesized_expression "(local_40 != uVar4)" (( "(") (binary_expression "local_40 != uVar4" (identifier "local_40") (!= "!=") (identifier "uVar4")) () ")")) (compound_statement "{\n        free(__ptr);\n        uVar9 = FUN_00019fd7("Every %us: %-*s",local_24,uVar4,__command);\n      }" ({ "{") (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (expression_statement "uVar9 = FUN_00019fd7("Every %us: %-*s",local_24,uVar4,__command);" (assignment_expression "uVar9 = FUN_00019fd7("Every %us: %-*s",local_24,uVar4,__command)" (identifier "uVar9") (= "=") (call_expression "FUN_00019fd7("Every %us: %-*s",local_24,uVar4,__command)" (identifier "FUN_00019fd7") (argument_list "("Every %us: %-*s",local_24,uVar4,__command)" (( "(") (string_literal ""Every %us: %-*s"" (" """) (string_content "Every %us: %-*s") (" """)) (, ",") (identifier "local_24") (, ",") (identifier "uVar4") (, ",") (identifier "__command") () ")")))) (; ";")) (} "}"))) (expression_statement "uVar6 = (undefined4)((ulonglong)uVar9 >> 0x20);" (assignment_expression "uVar6 = (undefined4)((ulonglong)uVar9 >> 0x20)" (identifier "uVar6") (= "=") (call_expression "(undefined4)((ulonglong)uVar9 >> 0x20)" (parenthesized_expression "(undefined4)" (( "(") (identifier "undefined4") () ")")) (argument_list "((ulonglong)uVar9 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar9 >> 0x20" (cast_expression "(ulonglong)uVar9" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar9")) (>> ">>") (number_literal "0x20")) () ")")))) (; ";")) (expression_statement "__ptr = (void *)uVar9;" (assignment_expression "__ptr = (void *)uVar9" (identifier "__ptr") (= "=") (cast_expression "(void *)uVar9" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "uVar9"))) (; ";")) (if_statement "if (0x14 < uVar4) {\n        FUN_0001b631();\n        uVar6 = extraout_EDX;\n      }" (if "if") (parenthesized_expression "(0x14 < uVar4)" (( "(") (binary_expression "0x14 < uVar4" (number_literal "0x14") (< "<") (identifier "uVar4")) () ")")) (compound_statement "{\n        FUN_0001b631();\n        uVar6 = extraout_EDX;\n      }" ({ "{") (expression_statement "FUN_0001b631();" (call_expression "FUN_0001b631()" (identifier "FUN_0001b631") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar6 = extraout_EDX;" (assignment_expression "uVar6 = extraout_EDX" (identifier "uVar6") (= "=") (identifier "extraout_EDX")) (; ";")) (} "}"))) (expression_statement "__printf_chk(1,"%s\n\n",__ptr,uVar6);" (call_expression "__printf_chk(1,"%s\n\n",__ptr,uVar6)" (identifier "__printf_chk") (argument_list "(1,"%s\n\n",__ptr,uVar6)" (( "(") (number_literal "1") (, ",") (string_literal ""%s\n\n"" (" """) (string_content "%s") (escape_sequence "\n") (escape_sequence "\n") (" """)) (, ",") (identifier "__ptr") (, ",") (identifier "uVar6") () ")"))) (; ";")) (expression_statement "local_40 = uVar4;" (assignment_expression "local_40 = uVar4" (identifier "local_40") (= "=") (identifier "uVar4")) (; ";")) (} "}"))) (expression_statement "FUN_00019f78();" (call_expression "FUN_00019f78()" (identifier "FUN_00019f78") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "system(__command);" (call_expression "system(__command)" (identifier "system") (argument_list "(__command)" (( "(") (identifier "__command") () ")"))) (; ";")) (expression_statement "FUN_000163c0(local_24);" (call_expression "FUN_000163c0(local_24)" (identifier "FUN_000163c0") (argument_list "(local_24)" (( "(") (identifier "local_24") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

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

int function_1(int argc,char **argv)

{
  type_1 period;
  
}


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

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

void MASKED(undefined4 param_1,int param_2)

{
  undefined4 *puVar1;
  char *pcVar2;
  uint uVar3;
  char *__command;
  uint uVar4;
  int iVar5;
  undefined4 extraout_EDX;
  undefined4 uVar6;
  int *piVar7;
  void *__ptr;
  int in_GS_OFFSET;
  undefined8 uVar8;
  undefined8 uVar9;
  uint local_40;
  undefined4 local_24;
  undefined4 local_20;
  
  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);
  local_24 = 2;
  uVar3 = FUN_000a8bdf(param_2,"^+dtn:+",&local_24);
  puVar1 = (undefined4 *)(param_2 + *(int *)PTR_optind_000d0f94 * 4);
  pcVar2 = (char *)*puVar1;
  iVar5 = puVar1[1];
  __command = pcVar2;
  if (iVar5 != 0) {
    piVar7 = puVar1 + 1;
    do {
      __command = (char *)FUN_00019fd7("%s %s",__command,iVar5,pcVar2);
      piVar7 = piVar7 + 1;
      iVar5 = *piVar7;
    } while (iVar5 != 0);
  }
  __ptr = (void *)0x0;
  local_40 = 0xffffffff;
  do {
    __printf_chk(1,&DAT_000c8852);
    if ((uVar3 & 2) == 0) {
      uVar8 = FUN_00019828();
      uVar9 = CONCAT44((int)((ulonglong)uVar8 >> 0x20),__ptr);
      uVar4 = (uint)uVar8;
      if (local_40 != uVar4) {
        free(__ptr);
        uVar9 = FUN_00019fd7("Every %us: %-*s",local_24,uVar4,__command);
      }
      uVar6 = (undefined4)((ulonglong)uVar9 >> 0x20);
      __ptr = (void *)uVar9;
      if (0x14 < uVar4) {
        FUN_0001b631();
        uVar6 = extraout_EDX;
      }
      __printf_chk(1,"%s\n\n",__ptr,uVar6);
      local_40 = uVar4;
    }
    FUN_00019f78();
    system(__command);
    FUN_000163c0(local_24);
  } while( true );
}

