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

int dotcmd(int argc_,char **argv_)

{
  char *path;
  shparam saveparam;
  
}



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

undefined4 FUN_000638db(void)

{
  char *__s;
  char *pcVar1;
  char *__filename;
  int iVar2;
  int iVar3;
  undefined4 uVar4;
  int *piVar5;
  stat64 *psVar6;
  stat64 *psVar7;
  int *piVar8;
  int in_GS_OFFSET;
  byte bVar9;
  undefined4 *puVar10;
  int local_84;
  stat64 local_80;
  int local_20;
  
  bVar9 = 0;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  FUN_0005728c();
  __s = (char *)*DAT_000dc298;
  if (__s == (char *)0x0) {
    uVar4 = 2;
  }
  else {
    piVar5 = (int *)DAT_000dc70c[0x3c];
    local_84 = (int)piVar5 + 5;
    puVar10 = DAT_000dc298;
    piVar8 = DAT_000dc70c;
    pcVar1 = strchr(__s,0x2f);
    __filename = __s;
    if (pcVar1 == (char *)0x0) {
      piVar5 = &local_84;
      while( true ) {
        __filename = (char *)FUN_00059ef1(puVar10,piVar8,piVar5);
        if (__filename == (char *)0x0) {
                    /* WARNING: Subroutine does not return */
          FUN_00056c26("%s: not found",__s);
        }
        iVar2 = __xstat64(3,__filename,&local_80);
        iVar3 = DAT_000dc710;
        if ((iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000)) break;
        if (__s != __filename) {
          *(int *)(DAT_000dc710 + 0xc) =
               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);
          *(char **)(iVar3 + 4) = __filename;
        }
      }
    }
    if (puVar10[1] == 0) {
      FUN_00057eec(puVar10,piVar8,piVar5);
      DAT_000dc29c = __filename;
      uVar4 = FUN_00062c6c();
      FUN_0005683d();
    }
    else {
      psVar6 = &local_80;
      piVar5 = piVar8;
      psVar7 = psVar6;
      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {
        *(int *)&psVar7->st_dev = *piVar5;
        piVar5 = piVar5 + (uint)bVar9 * -2 + 1;
        psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4);
      }
      *(undefined1 *)(piVar8 + 3) = 0;
      iVar3 = puVar10[2];
      iVar2 = 1;
      while (iVar3 != 0) {
        iVar3 = puVar10[iVar2 + 2];
        iVar2 = iVar2 + 1;
      }
      *piVar8 = iVar2;
      piVar8[4] = (int)(puVar10 + 1);
      FUN_00057eec();
      DAT_000dc29c = __filename;
      uVar4 = FUN_00062c6c();
      FUN_0005683d();
      FUN_00055d48();
      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {
        *piVar8 = (int)psVar6->st_dev;
        psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4);
        piVar8 = piVar8 + (uint)bVar9 * -2 + 1;
      }
    }
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar4;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00017e20();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x8c
CALL 0x00017650
ADD EBX,0x78136
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x7c],EAX
XOR EAX,EAX
LEA EAX,[EBX + 0xce8]
MOV EAX,dword ptr [EAX]
ADD EAX,0x2c
CALL 0x0005728c
MOV EAX,dword ptr [EBX + 0x878]
MOV dword ptr [ESP],EAX
MOV EBP,dword ptr [EAX]
TEST EBP,EBP
JNZ 0x00063925
MOV EBP,0x2
JMP 0x000639cc
LEA EAX,[EBX + 0xcec]
MOV EAX,dword ptr [EAX]
MOV dword ptr [ESP + 0x4],EAX
MOV EAX,dword ptr [EAX + 0xf0]
MOV dword ptr [ESP + 0x8],EAX
ADD EAX,0x5
MOV dword ptr [ESP + 0x18],EAX
SUB ESP,0x8
PUSH 0x2f
PUSH EBP
CALL 0x00016ad0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x000639a2
LEA EAX,[ESP + 0x18]
MOV dword ptr [ESP + 0x8],EAX
LEA EDI,[ESP + 0x1c]
LEA ESI,[EBX + 0xcf0]
MOV EDX,EBP
MOV EAX,dword ptr [ESP + 0x8]
CALL 0x00059ef1
MOV EDX,EAX
TEST EAX,EAX
JZ 0x000639e6
PUSH EAX
PUSH EDI
PUSH EDX
MOV dword ptr [ESP + 0x18],EDX
PUSH 0x3
CALL 0x00017410
ADD ESP,0x10
TEST EAX,EAX
MOV EDX,dword ptr [ESP + 0xc]
JNZ 0x000639f6
MOV EAX,dword ptr [ESP + 0x2c]
AND EAX,0xf000
CMP EAX,0x8000
JNZ 0x000639f6
MOV EBP,EDX
MOV EAX,dword ptr [ESP]
MOV EDI,dword ptr [EAX + 0x4]
TEST EDI,EDI
JNZ 0x00063a15
MOV EDX,0x1
MOV EAX,EBP
CALL 0x00057eec
MOV dword ptr [EBX + 0x87c],EBP
XOR EAX,EAX
CALL 0x00062c6c
MOV EBP,EAX
CALL 0x0005683d
MOV EAX,EBP
MOV ESI,dword ptr [ESP + 0x7c]
XOR ESI,dword ptr GS:[0x14]
JNZ 0x00063a10
ADD ESP,0x8c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH EBP
LEA EAX,[EBX + 0xffff84a9]
PUSH EAX
CALL 0x00056c26
CMP EBP,EDX
JZ 0x00063966
MOV EAX,dword ptr [ESI]
MOV ECX,dword ptr [EAX + 0x4]
SUB ECX,EDX
ADD dword ptr [EAX + 0xc],ECX
MOV dword ptr [EAX + 0x4],EDX
JMP 0x00063966
CALL 0x00017e20
ADD EAX,0x4
LEA EDI,[ESP + 0x1c]
MOV dword ptr [ESP + 0x8],EDI
MOV ECX,0x5
MOV ESI,dword ptr [ESP + 0x4]
MOVSD.REP ES:EDI,ESI
MOV ESI,dword ptr [ESP + 0x4]
MOV byte ptr [ESI + 0xc],0x0
MOV EDX,0x1
MOV ECX,dword ptr [ESP]
MOV ESI,dword ptr [ECX + 0x8]
TEST ESI,ESI
JZ 0x00063a4e
INC EDX
MOV ESI,dword ptr [ESP]
MOV ECX,dword ptr [ESI + EDX*0x4 + 0x4]
TEST ECX,ECX
JNZ 0x00063a42
MOV EDI,dword ptr [ESP + 0x4]
MOV dword ptr [EDI],EDX
MOV dword ptr [EDI + 0x10],EAX
MOV EDX,0x1
MOV EAX,EBP
CALL 0x00057eec
MOV dword ptr [EBX + 0x87c],EBP
XOR EAX,EAX
CALL 0x00062c6c
MOV EBP,EAX
CALL 0x0005683d
MOV EAX,EDI
CALL 0x00055d48
MOV ECX,0x5
MOV ESI,dword ptr [ESP + 0x8]
MOVSD.REP ES:EDI,ESI
JMP 0x000639cc
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_000638db(void)\n\n{\n  char *__s;\n  char *pcVar1;\n  char *__filename;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  stat64 *psVar6;\n  stat64 *psVar7;\n  int *piVar8;\n  int in_GS_OFFSET;\n  byte bVar9;\n  undefined4 *puVar10;\n  int local_84;\n  stat64 local_80;\n  int local_20;\n  \n  bVar9 = 0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0005728c();\n  __s = (char *)*DAT_000dc298;\n  if (__s == (char *)0x0) {\n    uVar4 = 2;\n  }\n  else {\n    piVar5 = (int *)DAT_000dc70c[0x3c];\n    local_84 = (int)piVar5 + 5;\n    puVar10 = DAT_000dc298;\n    piVar8 = DAT_000dc70c;\n    pcVar1 = strchr(__s,0x2f);\n    __filename = __s;\n    if (pcVar1 == (char *)0x0) {\n      piVar5 = &local_84;\n      while( true ) {\n        __filename = (char *)FUN_00059ef1(puVar10,piVar8,piVar5);\n        if (__filename == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          FUN_00056c26("%s: not found",__s);\n        }\n        iVar2 = __xstat64(3,__filename,&local_80);\n        iVar3 = DAT_000dc710;\n        if ((iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000)) break;\n        if (__s != __filename) {\n          *(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);\n          *(char **)(iVar3 + 4) = __filename;\n        }\n      }\n    }\n    if (puVar10[1] == 0) {\n      FUN_00057eec(puVar10,piVar8,piVar5);\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n    }\n    else {\n      psVar6 = &local_80;\n      piVar5 = piVar8;\n      psVar7 = psVar6;\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *(int *)&psVar7->st_dev = *piVar5;\n        piVar5 = piVar5 + (uint)bVar9 * -2 + 1;\n        psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4);\n      }\n      *(undefined1 *)(piVar8 + 3) = 0;\n      iVar3 = puVar10[2];\n      iVar2 = 1;\n      while (iVar3 != 0) {\n        iVar3 = puVar10[iVar2 + 2];\n        iVar2 = iVar2 + 1;\n      }\n      *piVar8 = iVar2;\n      piVar8[4] = (int)(puVar10 + 1);\n      FUN_00057eec();\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n      FUN_00055d48();\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *piVar8 = (int)psVar6->st_dev;\n        psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4);\n        piVar8 = piVar8 + (uint)bVar9 * -2 + 1;\n      }\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00017e20();\n}\n\n" comment (function_definition "undefined4 FUN_000638db(void)\n\n{\n  char *__s;\n  char *pcVar1;\n  char *__filename;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  stat64 *psVar6;\n  stat64 *psVar7;\n  int *piVar8;\n  int in_GS_OFFSET;\n  byte bVar9;\n  undefined4 *puVar10;\n  int local_84;\n  stat64 local_80;\n  int local_20;\n  \n  bVar9 = 0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0005728c();\n  __s = (char *)*DAT_000dc298;\n  if (__s == (char *)0x0) {\n    uVar4 = 2;\n  }\n  else {\n    piVar5 = (int *)DAT_000dc70c[0x3c];\n    local_84 = (int)piVar5 + 5;\n    puVar10 = DAT_000dc298;\n    piVar8 = DAT_000dc70c;\n    pcVar1 = strchr(__s,0x2f);\n    __filename = __s;\n    if (pcVar1 == (char *)0x0) {\n      piVar5 = &local_84;\n      while( true ) {\n        __filename = (char *)FUN_00059ef1(puVar10,piVar8,piVar5);\n        if (__filename == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          FUN_00056c26("%s: not found",__s);\n        }\n        iVar2 = __xstat64(3,__filename,&local_80);\n        iVar3 = DAT_000dc710;\n        if ((iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000)) break;\n        if (__s != __filename) {\n          *(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);\n          *(char **)(iVar3 + 4) = __filename;\n        }\n      }\n    }\n    if (puVar10[1] == 0) {\n      FUN_00057eec(puVar10,piVar8,piVar5);\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n    }\n    else {\n      psVar6 = &local_80;\n      piVar5 = piVar8;\n      psVar7 = psVar6;\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *(int *)&psVar7->st_dev = *piVar5;\n        piVar5 = piVar5 + (uint)bVar9 * -2 + 1;\n        psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4);\n      }\n      *(undefined1 *)(piVar8 + 3) = 0;\n      iVar3 = puVar10[2];\n      iVar2 = 1;\n      while (iVar3 != 0) {\n        iVar3 = puVar10[iVar2 + 2];\n        iVar2 = iVar2 + 1;\n      }\n      *piVar8 = iVar2;\n      piVar8[4] = (int)(puVar10 + 1);\n      FUN_00057eec();\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n      FUN_00055d48();\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *piVar8 = (int)psVar6->st_dev;\n        psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4);\n        piVar8 = piVar8 + (uint)bVar9 * -2 + 1;\n      }\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00017e20();\n}" type_identifier (function_declarator "FUN_000638db(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char *__s;\n  char *pcVar1;\n  char *__filename;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  stat64 *psVar6;\n  stat64 *psVar7;\n  int *piVar8;\n  int in_GS_OFFSET;\n  byte bVar9;\n  undefined4 *puVar10;\n  int local_84;\n  stat64 local_80;\n  int local_20;\n  \n  bVar9 = 0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0005728c();\n  __s = (char *)*DAT_000dc298;\n  if (__s == (char *)0x0) {\n    uVar4 = 2;\n  }\n  else {\n    piVar5 = (int *)DAT_000dc70c[0x3c];\n    local_84 = (int)piVar5 + 5;\n    puVar10 = DAT_000dc298;\n    piVar8 = DAT_000dc70c;\n    pcVar1 = strchr(__s,0x2f);\n    __filename = __s;\n    if (pcVar1 == (char *)0x0) {\n      piVar5 = &local_84;\n      while( true ) {\n        __filename = (char *)FUN_00059ef1(puVar10,piVar8,piVar5);\n        if (__filename == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          FUN_00056c26("%s: not found",__s);\n        }\n        iVar2 = __xstat64(3,__filename,&local_80);\n        iVar3 = DAT_000dc710;\n        if ((iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000)) break;\n        if (__s != __filename) {\n          *(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);\n          *(char **)(iVar3 + 4) = __filename;\n        }\n      }\n    }\n    if (puVar10[1] == 0) {\n      FUN_00057eec(puVar10,piVar8,piVar5);\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n    }\n    else {\n      psVar6 = &local_80;\n      piVar5 = piVar8;\n      psVar7 = psVar6;\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *(int *)&psVar7->st_dev = *piVar5;\n        piVar5 = piVar5 + (uint)bVar9 * -2 + 1;\n        psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4);\n      }\n      *(undefined1 *)(piVar8 + 3) = 0;\n      iVar3 = puVar10[2];\n      iVar2 = 1;\n      while (iVar3 != 0) {\n        iVar3 = puVar10[iVar2 + 2];\n        iVar2 = iVar2 + 1;\n      }\n      *piVar8 = iVar2;\n      piVar8[4] = (int)(puVar10 + 1);\n      FUN_00057eec();\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n      FUN_00055d48();\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *piVar8 = (int)psVar6->st_dev;\n        psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4);\n        piVar8 = piVar8 + (uint)bVar9 * -2 + 1;\n      }\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00017e20();\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char *__filename;" primitive_type (pointer_declarator "*__filename" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "stat64 *psVar6;" type_identifier (pointer_declarator "*psVar6" * identifier) ;) (declaration "stat64 *psVar7;" type_identifier (pointer_declarator "*psVar7" * identifier) ;) (declaration "int *piVar8;" primitive_type (pointer_declarator "*piVar8" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar9;" type_identifier identifier ;) (declaration "undefined4 *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "int local_84;" primitive_type identifier ;) (declaration "stat64 local_80;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "FUN_0005728c();" (call_expression "FUN_0005728c()" identifier (argument_list "()" ( ))) ;) (expression_statement "__s = (char *)*DAT_000dc298;" (assignment_expression "__s = (char *)*DAT_000dc298" identifier = (cast_expression "(char *)*DAT_000dc298" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*DAT_000dc298" * identifier))) ;) (if_statement "if (__s == (char *)0x0) {\n    uVar4 = 2;\n  }\n  else {\n    piVar5 = (int *)DAT_000dc70c[0x3c];\n    local_84 = (int)piVar5 + 5;\n    puVar10 = DAT_000dc298;\n    piVar8 = DAT_000dc70c;\n    pcVar1 = strchr(__s,0x2f);\n    __filename = __s;\n    if (pcVar1 == (char *)0x0) {\n      piVar5 = &local_84;\n      while( true ) {\n        __filename = (char *)FUN_00059ef1(puVar10,piVar8,piVar5);\n        if (__filename == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          FUN_00056c26("%s: not found",__s);\n        }\n        iVar2 = __xstat64(3,__filename,&local_80);\n        iVar3 = DAT_000dc710;\n        if ((iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000)) break;\n        if (__s != __filename) {\n          *(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);\n          *(char **)(iVar3 + 4) = __filename;\n        }\n      }\n    }\n    if (puVar10[1] == 0) {\n      FUN_00057eec(puVar10,piVar8,piVar5);\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n    }\n    else {\n      psVar6 = &local_80;\n      piVar5 = piVar8;\n      psVar7 = psVar6;\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *(int *)&psVar7->st_dev = *piVar5;\n        piVar5 = piVar5 + (uint)bVar9 * -2 + 1;\n        psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4);\n      }\n      *(undefined1 *)(piVar8 + 3) = 0;\n      iVar3 = puVar10[2];\n      iVar2 = 1;\n      while (iVar3 != 0) {\n        iVar3 = puVar10[iVar2 + 2];\n        iVar2 = iVar2 + 1;\n      }\n      *piVar8 = iVar2;\n      piVar8[4] = (int)(puVar10 + 1);\n      FUN_00057eec();\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n      FUN_00055d48();\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *piVar8 = (int)psVar6->st_dev;\n        psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4);\n        piVar8 = piVar8 + (uint)bVar9 * -2 + 1;\n      }\n    }\n  }" if (parenthesized_expression "(__s == (char *)0x0)" ( (binary_expression "__s == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar4 = 2;\n  }" { (expression_statement "uVar4 = 2;" (assignment_expression "uVar4 = 2" identifier = number_literal) ;) }) (else_clause "else {\n    piVar5 = (int *)DAT_000dc70c[0x3c];\n    local_84 = (int)piVar5 + 5;\n    puVar10 = DAT_000dc298;\n    piVar8 = DAT_000dc70c;\n    pcVar1 = strchr(__s,0x2f);\n    __filename = __s;\n    if (pcVar1 == (char *)0x0) {\n      piVar5 = &local_84;\n      while( true ) {\n        __filename = (char *)FUN_00059ef1(puVar10,piVar8,piVar5);\n        if (__filename == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          FUN_00056c26("%s: not found",__s);\n        }\n        iVar2 = __xstat64(3,__filename,&local_80);\n        iVar3 = DAT_000dc710;\n        if ((iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000)) break;\n        if (__s != __filename) {\n          *(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);\n          *(char **)(iVar3 + 4) = __filename;\n        }\n      }\n    }\n    if (puVar10[1] == 0) {\n      FUN_00057eec(puVar10,piVar8,piVar5);\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n    }\n    else {\n      psVar6 = &local_80;\n      piVar5 = piVar8;\n      psVar7 = psVar6;\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *(int *)&psVar7->st_dev = *piVar5;\n        piVar5 = piVar5 + (uint)bVar9 * -2 + 1;\n        psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4);\n      }\n      *(undefined1 *)(piVar8 + 3) = 0;\n      iVar3 = puVar10[2];\n      iVar2 = 1;\n      while (iVar3 != 0) {\n        iVar3 = puVar10[iVar2 + 2];\n        iVar2 = iVar2 + 1;\n      }\n      *piVar8 = iVar2;\n      piVar8[4] = (int)(puVar10 + 1);\n      FUN_00057eec();\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n      FUN_00055d48();\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *piVar8 = (int)psVar6->st_dev;\n        psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4);\n        piVar8 = piVar8 + (uint)bVar9 * -2 + 1;\n      }\n    }\n  }" else (compound_statement "{\n    piVar5 = (int *)DAT_000dc70c[0x3c];\n    local_84 = (int)piVar5 + 5;\n    puVar10 = DAT_000dc298;\n    piVar8 = DAT_000dc70c;\n    pcVar1 = strchr(__s,0x2f);\n    __filename = __s;\n    if (pcVar1 == (char *)0x0) {\n      piVar5 = &local_84;\n      while( true ) {\n        __filename = (char *)FUN_00059ef1(puVar10,piVar8,piVar5);\n        if (__filename == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          FUN_00056c26("%s: not found",__s);\n        }\n        iVar2 = __xstat64(3,__filename,&local_80);\n        iVar3 = DAT_000dc710;\n        if ((iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000)) break;\n        if (__s != __filename) {\n          *(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);\n          *(char **)(iVar3 + 4) = __filename;\n        }\n      }\n    }\n    if (puVar10[1] == 0) {\n      FUN_00057eec(puVar10,piVar8,piVar5);\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n    }\n    else {\n      psVar6 = &local_80;\n      piVar5 = piVar8;\n      psVar7 = psVar6;\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *(int *)&psVar7->st_dev = *piVar5;\n        piVar5 = piVar5 + (uint)bVar9 * -2 + 1;\n        psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4);\n      }\n      *(undefined1 *)(piVar8 + 3) = 0;\n      iVar3 = puVar10[2];\n      iVar2 = 1;\n      while (iVar3 != 0) {\n        iVar3 = puVar10[iVar2 + 2];\n        iVar2 = iVar2 + 1;\n      }\n      *piVar8 = iVar2;\n      piVar8[4] = (int)(puVar10 + 1);\n      FUN_00057eec();\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n      FUN_00055d48();\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *piVar8 = (int)psVar6->st_dev;\n        psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4);\n        piVar8 = piVar8 + (uint)bVar9 * -2 + 1;\n      }\n    }\n  }" { (expression_statement "piVar5 = (int *)DAT_000dc70c[0x3c];" (assignment_expression "piVar5 = (int *)DAT_000dc70c[0x3c]" identifier = (cast_expression "(int *)DAT_000dc70c[0x3c]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "DAT_000dc70c[0x3c]" identifier [ number_literal ]))) ;) (expression_statement "local_84 = (int)piVar5 + 5;" (assignment_expression "local_84 = (int)piVar5 + 5" identifier = (binary_expression "(int)piVar5 + 5" (cast_expression "(int)piVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal)) ;) (expression_statement "puVar10 = DAT_000dc298;" (assignment_expression "puVar10 = DAT_000dc298" identifier = identifier) ;) (expression_statement "piVar8 = DAT_000dc70c;" (assignment_expression "piVar8 = DAT_000dc70c" identifier = identifier) ;) (expression_statement "pcVar1 = strchr(__s,0x2f);" (assignment_expression "pcVar1 = strchr(__s,0x2f)" identifier = (call_expression "strchr(__s,0x2f)" identifier (argument_list "(__s,0x2f)" ( identifier , number_literal )))) ;) (expression_statement "__filename = __s;" (assignment_expression "__filename = __s" identifier = identifier) ;) (if_statement "if (pcVar1 == (char *)0x0) {\n      piVar5 = &local_84;\n      while( true ) {\n        __filename = (char *)FUN_00059ef1(puVar10,piVar8,piVar5);\n        if (__filename == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          FUN_00056c26("%s: not found",__s);\n        }\n        iVar2 = __xstat64(3,__filename,&local_80);\n        iVar3 = DAT_000dc710;\n        if ((iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000)) break;\n        if (__s != __filename) {\n          *(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);\n          *(char **)(iVar3 + 4) = __filename;\n        }\n      }\n    }" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      piVar5 = &local_84;\n      while( true ) {\n        __filename = (char *)FUN_00059ef1(puVar10,piVar8,piVar5);\n        if (__filename == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          FUN_00056c26("%s: not found",__s);\n        }\n        iVar2 = __xstat64(3,__filename,&local_80);\n        iVar3 = DAT_000dc710;\n        if ((iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000)) break;\n        if (__s != __filename) {\n          *(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);\n          *(char **)(iVar3 + 4) = __filename;\n        }\n      }\n    }" { (expression_statement "piVar5 = &local_84;" (assignment_expression "piVar5 = &local_84" identifier = (pointer_expression "&local_84" & identifier)) ;) (while_statement "while( true ) {\n        __filename = (char *)FUN_00059ef1(puVar10,piVar8,piVar5);\n        if (__filename == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          FUN_00056c26("%s: not found",__s);\n        }\n        iVar2 = __xstat64(3,__filename,&local_80);\n        iVar3 = DAT_000dc710;\n        if ((iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000)) break;\n        if (__s != __filename) {\n          *(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);\n          *(char **)(iVar3 + 4) = __filename;\n        }\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        __filename = (char *)FUN_00059ef1(puVar10,piVar8,piVar5);\n        if (__filename == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          FUN_00056c26("%s: not found",__s);\n        }\n        iVar2 = __xstat64(3,__filename,&local_80);\n        iVar3 = DAT_000dc710;\n        if ((iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000)) break;\n        if (__s != __filename) {\n          *(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);\n          *(char **)(iVar3 + 4) = __filename;\n        }\n      }" { (expression_statement "__filename = (char *)FUN_00059ef1(puVar10,piVar8,piVar5);" (assignment_expression "__filename = (char *)FUN_00059ef1(puVar10,piVar8,piVar5)" identifier = (cast_expression "(char *)FUN_00059ef1(puVar10,piVar8,piVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00059ef1(puVar10,piVar8,piVar5)" identifier (argument_list "(puVar10,piVar8,piVar5)" ( identifier , identifier , identifier ))))) ;) (if_statement "if (__filename == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          FUN_00056c26("%s: not found",__s);\n        }" if (parenthesized_expression "(__filename == (char *)0x0)" ( (binary_expression "__filename == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n          FUN_00056c26("%s: not found",__s);\n        }" { comment (expression_statement "FUN_00056c26("%s: not found",__s);" (call_expression "FUN_00056c26("%s: not found",__s)" identifier (argument_list "("%s: not found",__s)" ( (string_literal ""%s: not found"" " string_content ") , identifier ))) ;) })) (expression_statement "iVar2 = __xstat64(3,__filename,&local_80);" (assignment_expression "iVar2 = __xstat64(3,__filename,&local_80)" identifier = (call_expression "__xstat64(3,__filename,&local_80)" identifier (argument_list "(3,__filename,&local_80)" ( number_literal , identifier , (pointer_expression "&local_80" & identifier) )))) ;) (expression_statement "iVar3 = DAT_000dc710;" (assignment_expression "iVar3 = DAT_000dc710" identifier = identifier) ;) (if_statement "if ((iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000)) break;" if (parenthesized_expression "((iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000))" ( (binary_expression "(iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000)" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) && (parenthesized_expression "((local_80.st_mode & 0xf000) == 0x8000)" ( (binary_expression "(local_80.st_mode & 0xf000) == 0x8000" (parenthesized_expression "(local_80.st_mode & 0xf000)" ( (binary_expression "local_80.st_mode & 0xf000" (field_expression "local_80.st_mode" identifier . field_identifier) & number_literal) )) == number_literal) ))) )) (break_statement "break;" break ;)) (if_statement "if (__s != __filename) {\n          *(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);\n          *(char **)(iVar3 + 4) = __filename;\n        }" if (parenthesized_expression "(__s != __filename)" ( (binary_expression "__s != __filename" identifier != identifier) )) (compound_statement "{\n          *(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);\n          *(char **)(iVar3 + 4) = __filename;\n        }" { (expression_statement "*(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);" (assignment_expression "*(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename)" (pointer_expression "*(int *)(DAT_000dc710 + 0xc)" * (cast_expression "(int *)(DAT_000dc710 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000dc710 + 0xc)" ( (binary_expression "DAT_000dc710 + 0xc" identifier + number_literal) )))) = (binary_expression "*(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename)" (pointer_expression "*(int *)(DAT_000dc710 + 0xc)" * (cast_expression "(int *)(DAT_000dc710 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000dc710 + 0xc)" ( (binary_expression "DAT_000dc710 + 0xc" identifier + number_literal) )))) + (parenthesized_expression "(*(int *)(DAT_000dc710 + 4) - (int)__filename)" ( (binary_expression "*(int *)(DAT_000dc710 + 4) - (int)__filename" (pointer_expression "*(int *)(DAT_000dc710 + 4)" * (cast_expression "(int *)(DAT_000dc710 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000dc710 + 4)" ( (binary_expression "DAT_000dc710 + 4" identifier + number_literal) )))) - (cast_expression "(int)__filename" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "*(char **)(iVar3 + 4) = __filename;" (assignment_expression "*(char **)(iVar3 + 4) = __filename" (pointer_expression "*(char **)(iVar3 + 4)" * (cast_expression "(char **)(iVar3 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) )))) = identifier) ;) })) })) })) (if_statement "if (puVar10[1] == 0) {\n      FUN_00057eec(puVar10,piVar8,piVar5);\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n    }\n    else {\n      psVar6 = &local_80;\n      piVar5 = piVar8;\n      psVar7 = psVar6;\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *(int *)&psVar7->st_dev = *piVar5;\n        piVar5 = piVar5 + (uint)bVar9 * -2 + 1;\n        psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4);\n      }\n      *(undefined1 *)(piVar8 + 3) = 0;\n      iVar3 = puVar10[2];\n      iVar2 = 1;\n      while (iVar3 != 0) {\n        iVar3 = puVar10[iVar2 + 2];\n        iVar2 = iVar2 + 1;\n      }\n      *piVar8 = iVar2;\n      piVar8[4] = (int)(puVar10 + 1);\n      FUN_00057eec();\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n      FUN_00055d48();\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *piVar8 = (int)psVar6->st_dev;\n        psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4);\n        piVar8 = piVar8 + (uint)bVar9 * -2 + 1;\n      }\n    }" if (parenthesized_expression "(puVar10[1] == 0)" ( (binary_expression "puVar10[1] == 0" (subscript_expression "puVar10[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      FUN_00057eec(puVar10,piVar8,piVar5);\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n    }" { (expression_statement "FUN_00057eec(puVar10,piVar8,piVar5);" (call_expression "FUN_00057eec(puVar10,piVar8,piVar5)" identifier (argument_list "(puVar10,piVar8,piVar5)" ( identifier , identifier , identifier ))) ;) (expression_statement "DAT_000dc29c = __filename;" (assignment_expression "DAT_000dc29c = __filename" identifier = identifier) ;) (expression_statement "uVar4 = FUN_00062c6c();" (assignment_expression "uVar4 = FUN_00062c6c()" identifier = (call_expression "FUN_00062c6c()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_0005683d();" (call_expression "FUN_0005683d()" identifier (argument_list "()" ( ))) ;) }) (else_clause "else {\n      psVar6 = &local_80;\n      piVar5 = piVar8;\n      psVar7 = psVar6;\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *(int *)&psVar7->st_dev = *piVar5;\n        piVar5 = piVar5 + (uint)bVar9 * -2 + 1;\n        psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4);\n      }\n      *(undefined1 *)(piVar8 + 3) = 0;\n      iVar3 = puVar10[2];\n      iVar2 = 1;\n      while (iVar3 != 0) {\n        iVar3 = puVar10[iVar2 + 2];\n        iVar2 = iVar2 + 1;\n      }\n      *piVar8 = iVar2;\n      piVar8[4] = (int)(puVar10 + 1);\n      FUN_00057eec();\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n      FUN_00055d48();\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *piVar8 = (int)psVar6->st_dev;\n        psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4);\n        piVar8 = piVar8 + (uint)bVar9 * -2 + 1;\n      }\n    }" else (compound_statement "{\n      psVar6 = &local_80;\n      piVar5 = piVar8;\n      psVar7 = psVar6;\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *(int *)&psVar7->st_dev = *piVar5;\n        piVar5 = piVar5 + (uint)bVar9 * -2 + 1;\n        psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4);\n      }\n      *(undefined1 *)(piVar8 + 3) = 0;\n      iVar3 = puVar10[2];\n      iVar2 = 1;\n      while (iVar3 != 0) {\n        iVar3 = puVar10[iVar2 + 2];\n        iVar2 = iVar2 + 1;\n      }\n      *piVar8 = iVar2;\n      piVar8[4] = (int)(puVar10 + 1);\n      FUN_00057eec();\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n      FUN_00055d48();\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *piVar8 = (int)psVar6->st_dev;\n        psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4);\n        piVar8 = piVar8 + (uint)bVar9 * -2 + 1;\n      }\n    }" { (expression_statement "psVar6 = &local_80;" (assignment_expression "psVar6 = &local_80" identifier = (pointer_expression "&local_80" & identifier)) ;) (expression_statement "piVar5 = piVar8;" (assignment_expression "piVar5 = piVar8" identifier = identifier) ;) (expression_statement "psVar7 = psVar6;" (assignment_expression "psVar7 = psVar6" identifier = identifier) ;) (for_statement "for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *(int *)&psVar7->st_dev = *piVar5;\n        piVar5 = piVar5 + (uint)bVar9 * -2 + 1;\n        psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4);\n      }" for ( (assignment_expression "iVar3 = 5" identifier = number_literal) ; (binary_expression "iVar3 != 0" identifier != number_literal) ; (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ) (compound_statement "{\n        *(int *)&psVar7->st_dev = *piVar5;\n        piVar5 = piVar5 + (uint)bVar9 * -2 + 1;\n        psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4);\n      }" { (expression_statement "*(int *)&psVar7->st_dev = *piVar5;" (assignment_expression "*(int *)&psVar7->st_dev = *piVar5" (pointer_expression "*(int *)&psVar7->st_dev" * (cast_expression "(int *)&psVar7->st_dev" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&psVar7->st_dev" & (field_expression "psVar7->st_dev" identifier -> field_identifier)))) = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "piVar5 = piVar5 + (uint)bVar9 * -2 + 1;" (assignment_expression "piVar5 = piVar5 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "piVar5 + (uint)bVar9 * -2 + 1" (binary_expression "piVar5 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4);" (assignment_expression "psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4)" identifier = (cast_expression "(stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4)" ( (type_descriptor "stat64 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4)" ( (binary_expression "(int)psVar7 + ((uint)bVar9 * -2 + 1) * 4" (cast_expression "(int)psVar7" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "((uint)bVar9 * -2 + 1) * 4" (parenthesized_expression "((uint)bVar9 * -2 + 1)" ( (binary_expression "(uint)bVar9 * -2 + 1" (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal) + number_literal) )) * number_literal)) )))) ;) })) (expression_statement "*(undefined1 *)(piVar8 + 3) = 0;" (assignment_expression "*(undefined1 *)(piVar8 + 3) = 0" (pointer_expression "*(undefined1 *)(piVar8 + 3)" * (cast_expression "(undefined1 *)(piVar8 + 3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar8 + 3)" ( (binary_expression "piVar8 + 3" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar3 = puVar10[2];" (assignment_expression "iVar3 = puVar10[2]" identifier = (subscript_expression "puVar10[2]" identifier [ number_literal ])) ;) (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" identifier = number_literal) ;) (while_statement "while (iVar3 != 0) {\n        iVar3 = puVar10[iVar2 + 2];\n        iVar2 = iVar2 + 1;\n      }" while (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar3 = puVar10[iVar2 + 2];\n        iVar2 = iVar2 + 1;\n      }" { (expression_statement "iVar3 = puVar10[iVar2 + 2];" (assignment_expression "iVar3 = puVar10[iVar2 + 2]" identifier = (subscript_expression "puVar10[iVar2 + 2]" identifier [ (binary_expression "iVar2 + 2" identifier + number_literal) ])) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) })) (expression_statement "*piVar8 = iVar2;" (assignment_expression "*piVar8 = iVar2" (pointer_expression "*piVar8" * identifier) = identifier) ;) (expression_statement "piVar8[4] = (int)(puVar10 + 1);" (assignment_expression "piVar8[4] = (int)(puVar10 + 1)" (subscript_expression "piVar8[4]" identifier [ number_literal ]) = (cast_expression "(int)(puVar10 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(puVar10 + 1)" ( (binary_expression "puVar10 + 1" identifier + number_literal) )))) ;) (expression_statement "FUN_00057eec();" (call_expression "FUN_00057eec()" identifier (argument_list "()" ( ))) ;) (expression_statement "DAT_000dc29c = __filename;" (assignment_expression "DAT_000dc29c = __filename" identifier = identifier) ;) (expression_statement "uVar4 = FUN_00062c6c();" (assignment_expression "uVar4 = FUN_00062c6c()" identifier = (call_expression "FUN_00062c6c()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_0005683d();" (call_expression "FUN_0005683d()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00055d48();" (call_expression "FUN_00055d48()" identifier (argument_list "()" ( ))) ;) (for_statement "for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *piVar8 = (int)psVar6->st_dev;\n        psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4);\n        piVar8 = piVar8 + (uint)bVar9 * -2 + 1;\n      }" for ( (assignment_expression "iVar3 = 5" identifier = number_literal) ; (binary_expression "iVar3 != 0" identifier != number_literal) ; (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ) (compound_statement "{\n        *piVar8 = (int)psVar6->st_dev;\n        psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4);\n        piVar8 = piVar8 + (uint)bVar9 * -2 + 1;\n      }" { (expression_statement "*piVar8 = (int)psVar6->st_dev;" (assignment_expression "*piVar8 = (int)psVar6->st_dev" (pointer_expression "*piVar8" * identifier) = (cast_expression "(int)psVar6->st_dev" ( (type_descriptor "int" primitive_type) ) (field_expression "psVar6->st_dev" identifier -> field_identifier))) ;) (expression_statement "psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4);" (assignment_expression "psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4)" identifier = (cast_expression "(stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4)" ( (type_descriptor "stat64 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4)" ( (binary_expression "(int)psVar6 + ((uint)bVar9 * -2 + 1) * 4" (cast_expression "(int)psVar6" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "((uint)bVar9 * -2 + 1) * 4" (parenthesized_expression "((uint)bVar9 * -2 + 1)" ( (binary_expression "(uint)bVar9 * -2 + 1" (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal) + number_literal) )) * number_literal)) )))) ;) (expression_statement "piVar8 = piVar8 + (uint)bVar9 * -2 + 1;" (assignment_expression "piVar8 = piVar8 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "piVar8 + (uint)bVar9 * -2 + 1" (binary_expression "piVar8 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) }))) }))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar4;\n  }" { (return_statement "return uVar4;" return identifier ;) })) comment (expression_statement "FUN_00017e20();" (call_expression "FUN_00017e20()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint dotcmd(int argc_,char **argv_)\n\n{\n  char *path;\n  shparam saveparam;\n  \n}\n\n" comment (function_definition "int dotcmd(int argc_,char **argv_)\n\n{\n  char *path;\n  shparam saveparam;\n  \n}" primitive_type (function_declarator "dotcmd(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  char *path;\n  shparam saveparam;\n  \n}" { (declaration "char *path;" primitive_type (pointer_declarator "*path" * identifier) ;) (declaration "shparam saveparam;" type_identifier identifier ;) })))
(translation_unit "undefined4 FUN_000638db(void)\n\n{\n  char *__s;\n  char *pcVar1;\n  char *__filename;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  stat64 *psVar6;\n  stat64 *psVar7;\n  int *piVar8;\n  int in_GS_OFFSET;\n  byte bVar9;\n  undefined4 *puVar10;\n  int local_84;\n  stat64 local_80;\n  int local_20;\n  \n  bVar9 = 0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0005728c();\n  __s = (char *)*DAT_000dc298;\n  if (__s == (char *)0x0) {\n    uVar4 = 2;\n  }\n  else {\n    piVar5 = (int *)DAT_000dc70c[0x3c];\n    local_84 = (int)piVar5 + 5;\n    puVar10 = DAT_000dc298;\n    piVar8 = DAT_000dc70c;\n    pcVar1 = strchr(__s,0x2f);\n    __filename = __s;\n    if (pcVar1 == (char *)0x0) {\n      piVar5 = &local_84;\n      while( true ) {\n        __filename = (char *)FUN_00059ef1(puVar10,piVar8,piVar5);\n        if (__filename == (char *)0x0) {\n                    \n          FUN_00056c26("%s: not found",__s);\n        }\n        iVar2 = __xstat64(3,__filename,&local_80);\n        iVar3 = DAT_000dc710;\n        if ((iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000)) break;\n        if (__s != __filename) {\n          *(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);\n          *(char **)(iVar3 + 4) = __filename;\n        }\n      }\n    }\n    if (puVar10[1] == 0) {\n      FUN_00057eec(puVar10,piVar8,piVar5);\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n    }\n    else {\n      psVar6 = &local_80;\n      piVar5 = piVar8;\n      psVar7 = psVar6;\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *(int *)&psVar7->st_dev = *piVar5;\n        piVar5 = piVar5 + (uint)bVar9 * -2 + 1;\n        psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4);\n      }\n      *(undefined1 *)(piVar8 + 3) = 0;\n      iVar3 = puVar10[2];\n      iVar2 = 1;\n      while (iVar3 != 0) {\n        iVar3 = puVar10[iVar2 + 2];\n        iVar2 = iVar2 + 1;\n      }\n      *piVar8 = iVar2;\n      piVar8[4] = (int)(puVar10 + 1);\n      FUN_00057eec();\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n      FUN_00055d48();\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *piVar8 = (int)psVar6->st_dev;\n        psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4);\n        piVar8 = piVar8 + (uint)bVar9 * -2 + 1;\n      }\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    \n  FUN_00017e20();\n}\n\n" (function_definition "undefined4 FUN_000638db(void)\n\n{\n  char *__s;\n  char *pcVar1;\n  char *__filename;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  stat64 *psVar6;\n  stat64 *psVar7;\n  int *piVar8;\n  int in_GS_OFFSET;\n  byte bVar9;\n  undefined4 *puVar10;\n  int local_84;\n  stat64 local_80;\n  int local_20;\n  \n  bVar9 = 0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0005728c();\n  __s = (char *)*DAT_000dc298;\n  if (__s == (char *)0x0) {\n    uVar4 = 2;\n  }\n  else {\n    piVar5 = (int *)DAT_000dc70c[0x3c];\n    local_84 = (int)piVar5 + 5;\n    puVar10 = DAT_000dc298;\n    piVar8 = DAT_000dc70c;\n    pcVar1 = strchr(__s,0x2f);\n    __filename = __s;\n    if (pcVar1 == (char *)0x0) {\n      piVar5 = &local_84;\n      while( true ) {\n        __filename = (char *)FUN_00059ef1(puVar10,piVar8,piVar5);\n        if (__filename == (char *)0x0) {\n                    \n          FUN_00056c26("%s: not found",__s);\n        }\n        iVar2 = __xstat64(3,__filename,&local_80);\n        iVar3 = DAT_000dc710;\n        if ((iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000)) break;\n        if (__s != __filename) {\n          *(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);\n          *(char **)(iVar3 + 4) = __filename;\n        }\n      }\n    }\n    if (puVar10[1] == 0) {\n      FUN_00057eec(puVar10,piVar8,piVar5);\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n    }\n    else {\n      psVar6 = &local_80;\n      piVar5 = piVar8;\n      psVar7 = psVar6;\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *(int *)&psVar7->st_dev = *piVar5;\n        piVar5 = piVar5 + (uint)bVar9 * -2 + 1;\n        psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4);\n      }\n      *(undefined1 *)(piVar8 + 3) = 0;\n      iVar3 = puVar10[2];\n      iVar2 = 1;\n      while (iVar3 != 0) {\n        iVar3 = puVar10[iVar2 + 2];\n        iVar2 = iVar2 + 1;\n      }\n      *piVar8 = iVar2;\n      piVar8[4] = (int)(puVar10 + 1);\n      FUN_00057eec();\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n      FUN_00055d48();\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *piVar8 = (int)psVar6->st_dev;\n        psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4);\n        piVar8 = piVar8 + (uint)bVar9 * -2 + 1;\n      }\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    \n  FUN_00017e20();\n}" type_identifier (function_declarator "FUN_000638db(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char *__s;\n  char *pcVar1;\n  char *__filename;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  stat64 *psVar6;\n  stat64 *psVar7;\n  int *piVar8;\n  int in_GS_OFFSET;\n  byte bVar9;\n  undefined4 *puVar10;\n  int local_84;\n  stat64 local_80;\n  int local_20;\n  \n  bVar9 = 0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0005728c();\n  __s = (char *)*DAT_000dc298;\n  if (__s == (char *)0x0) {\n    uVar4 = 2;\n  }\n  else {\n    piVar5 = (int *)DAT_000dc70c[0x3c];\n    local_84 = (int)piVar5 + 5;\n    puVar10 = DAT_000dc298;\n    piVar8 = DAT_000dc70c;\n    pcVar1 = strchr(__s,0x2f);\n    __filename = __s;\n    if (pcVar1 == (char *)0x0) {\n      piVar5 = &local_84;\n      while( true ) {\n        __filename = (char *)FUN_00059ef1(puVar10,piVar8,piVar5);\n        if (__filename == (char *)0x0) {\n                    \n          FUN_00056c26("%s: not found",__s);\n        }\n        iVar2 = __xstat64(3,__filename,&local_80);\n        iVar3 = DAT_000dc710;\n        if ((iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000)) break;\n        if (__s != __filename) {\n          *(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);\n          *(char **)(iVar3 + 4) = __filename;\n        }\n      }\n    }\n    if (puVar10[1] == 0) {\n      FUN_00057eec(puVar10,piVar8,piVar5);\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n    }\n    else {\n      psVar6 = &local_80;\n      piVar5 = piVar8;\n      psVar7 = psVar6;\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *(int *)&psVar7->st_dev = *piVar5;\n        piVar5 = piVar5 + (uint)bVar9 * -2 + 1;\n        psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4);\n      }\n      *(undefined1 *)(piVar8 + 3) = 0;\n      iVar3 = puVar10[2];\n      iVar2 = 1;\n      while (iVar3 != 0) {\n        iVar3 = puVar10[iVar2 + 2];\n        iVar2 = iVar2 + 1;\n      }\n      *piVar8 = iVar2;\n      piVar8[4] = (int)(puVar10 + 1);\n      FUN_00057eec();\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n      FUN_00055d48();\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *piVar8 = (int)psVar6->st_dev;\n        psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4);\n        piVar8 = piVar8 + (uint)bVar9 * -2 + 1;\n      }\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    \n  FUN_00017e20();\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char *__filename;" primitive_type (pointer_declarator "*__filename" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "stat64 *psVar6;" type_identifier (pointer_declarator "*psVar6" * identifier) ;) (declaration "stat64 *psVar7;" type_identifier (pointer_declarator "*psVar7" * identifier) ;) (declaration "int *piVar8;" primitive_type (pointer_declarator "*piVar8" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar9;" type_identifier identifier ;) (declaration "undefined4 *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "int local_84;" primitive_type identifier ;) (declaration "stat64 local_80;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "FUN_0005728c();" (call_expression "FUN_0005728c()" identifier (argument_list "()" ( ))) ;) (expression_statement "__s = (char *)*DAT_000dc298;" (assignment_expression "__s = (char *)*DAT_000dc298" identifier = (cast_expression "(char *)*DAT_000dc298" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*DAT_000dc298" * identifier))) ;) (if_statement "if (__s == (char *)0x0) {\n    uVar4 = 2;\n  }\n  else {\n    piVar5 = (int *)DAT_000dc70c[0x3c];\n    local_84 = (int)piVar5 + 5;\n    puVar10 = DAT_000dc298;\n    piVar8 = DAT_000dc70c;\n    pcVar1 = strchr(__s,0x2f);\n    __filename = __s;\n    if (pcVar1 == (char *)0x0) {\n      piVar5 = &local_84;\n      while( true ) {\n        __filename = (char *)FUN_00059ef1(puVar10,piVar8,piVar5);\n        if (__filename == (char *)0x0) {\n                    \n          FUN_00056c26("%s: not found",__s);\n        }\n        iVar2 = __xstat64(3,__filename,&local_80);\n        iVar3 = DAT_000dc710;\n        if ((iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000)) break;\n        if (__s != __filename) {\n          *(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);\n          *(char **)(iVar3 + 4) = __filename;\n        }\n      }\n    }\n    if (puVar10[1] == 0) {\n      FUN_00057eec(puVar10,piVar8,piVar5);\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n    }\n    else {\n      psVar6 = &local_80;\n      piVar5 = piVar8;\n      psVar7 = psVar6;\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *(int *)&psVar7->st_dev = *piVar5;\n        piVar5 = piVar5 + (uint)bVar9 * -2 + 1;\n        psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4);\n      }\n      *(undefined1 *)(piVar8 + 3) = 0;\n      iVar3 = puVar10[2];\n      iVar2 = 1;\n      while (iVar3 != 0) {\n        iVar3 = puVar10[iVar2 + 2];\n        iVar2 = iVar2 + 1;\n      }\n      *piVar8 = iVar2;\n      piVar8[4] = (int)(puVar10 + 1);\n      FUN_00057eec();\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n      FUN_00055d48();\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *piVar8 = (int)psVar6->st_dev;\n        psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4);\n        piVar8 = piVar8 + (uint)bVar9 * -2 + 1;\n      }\n    }\n  }" if (parenthesized_expression "(__s == (char *)0x0)" ( (binary_expression "__s == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar4 = 2;\n  }" { (expression_statement "uVar4 = 2;" (assignment_expression "uVar4 = 2" identifier = number_literal) ;) }) (else_clause "else {\n    piVar5 = (int *)DAT_000dc70c[0x3c];\n    local_84 = (int)piVar5 + 5;\n    puVar10 = DAT_000dc298;\n    piVar8 = DAT_000dc70c;\n    pcVar1 = strchr(__s,0x2f);\n    __filename = __s;\n    if (pcVar1 == (char *)0x0) {\n      piVar5 = &local_84;\n      while( true ) {\n        __filename = (char *)FUN_00059ef1(puVar10,piVar8,piVar5);\n        if (__filename == (char *)0x0) {\n                    \n          FUN_00056c26("%s: not found",__s);\n        }\n        iVar2 = __xstat64(3,__filename,&local_80);\n        iVar3 = DAT_000dc710;\n        if ((iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000)) break;\n        if (__s != __filename) {\n          *(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);\n          *(char **)(iVar3 + 4) = __filename;\n        }\n      }\n    }\n    if (puVar10[1] == 0) {\n      FUN_00057eec(puVar10,piVar8,piVar5);\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n    }\n    else {\n      psVar6 = &local_80;\n      piVar5 = piVar8;\n      psVar7 = psVar6;\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *(int *)&psVar7->st_dev = *piVar5;\n        piVar5 = piVar5 + (uint)bVar9 * -2 + 1;\n        psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4);\n      }\n      *(undefined1 *)(piVar8 + 3) = 0;\n      iVar3 = puVar10[2];\n      iVar2 = 1;\n      while (iVar3 != 0) {\n        iVar3 = puVar10[iVar2 + 2];\n        iVar2 = iVar2 + 1;\n      }\n      *piVar8 = iVar2;\n      piVar8[4] = (int)(puVar10 + 1);\n      FUN_00057eec();\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n      FUN_00055d48();\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *piVar8 = (int)psVar6->st_dev;\n        psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4);\n        piVar8 = piVar8 + (uint)bVar9 * -2 + 1;\n      }\n    }\n  }" else (compound_statement "{\n    piVar5 = (int *)DAT_000dc70c[0x3c];\n    local_84 = (int)piVar5 + 5;\n    puVar10 = DAT_000dc298;\n    piVar8 = DAT_000dc70c;\n    pcVar1 = strchr(__s,0x2f);\n    __filename = __s;\n    if (pcVar1 == (char *)0x0) {\n      piVar5 = &local_84;\n      while( true ) {\n        __filename = (char *)FUN_00059ef1(puVar10,piVar8,piVar5);\n        if (__filename == (char *)0x0) {\n                    \n          FUN_00056c26("%s: not found",__s);\n        }\n        iVar2 = __xstat64(3,__filename,&local_80);\n        iVar3 = DAT_000dc710;\n        if ((iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000)) break;\n        if (__s != __filename) {\n          *(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);\n          *(char **)(iVar3 + 4) = __filename;\n        }\n      }\n    }\n    if (puVar10[1] == 0) {\n      FUN_00057eec(puVar10,piVar8,piVar5);\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n    }\n    else {\n      psVar6 = &local_80;\n      piVar5 = piVar8;\n      psVar7 = psVar6;\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *(int *)&psVar7->st_dev = *piVar5;\n        piVar5 = piVar5 + (uint)bVar9 * -2 + 1;\n        psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4);\n      }\n      *(undefined1 *)(piVar8 + 3) = 0;\n      iVar3 = puVar10[2];\n      iVar2 = 1;\n      while (iVar3 != 0) {\n        iVar3 = puVar10[iVar2 + 2];\n        iVar2 = iVar2 + 1;\n      }\n      *piVar8 = iVar2;\n      piVar8[4] = (int)(puVar10 + 1);\n      FUN_00057eec();\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n      FUN_00055d48();\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *piVar8 = (int)psVar6->st_dev;\n        psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4);\n        piVar8 = piVar8 + (uint)bVar9 * -2 + 1;\n      }\n    }\n  }" { (expression_statement "piVar5 = (int *)DAT_000dc70c[0x3c];" (assignment_expression "piVar5 = (int *)DAT_000dc70c[0x3c]" identifier = (cast_expression "(int *)DAT_000dc70c[0x3c]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "DAT_000dc70c[0x3c]" identifier [ number_literal ]))) ;) (expression_statement "local_84 = (int)piVar5 + 5;" (assignment_expression "local_84 = (int)piVar5 + 5" identifier = (binary_expression "(int)piVar5 + 5" (cast_expression "(int)piVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal)) ;) (expression_statement "puVar10 = DAT_000dc298;" (assignment_expression "puVar10 = DAT_000dc298" identifier = identifier) ;) (expression_statement "piVar8 = DAT_000dc70c;" (assignment_expression "piVar8 = DAT_000dc70c" identifier = identifier) ;) (expression_statement "pcVar1 = strchr(__s,0x2f);" (assignment_expression "pcVar1 = strchr(__s,0x2f)" identifier = (call_expression "strchr(__s,0x2f)" identifier (argument_list "(__s,0x2f)" ( identifier , number_literal )))) ;) (expression_statement "__filename = __s;" (assignment_expression "__filename = __s" identifier = identifier) ;) (if_statement "if (pcVar1 == (char *)0x0) {\n      piVar5 = &local_84;\n      while( true ) {\n        __filename = (char *)FUN_00059ef1(puVar10,piVar8,piVar5);\n        if (__filename == (char *)0x0) {\n                    \n          FUN_00056c26("%s: not found",__s);\n        }\n        iVar2 = __xstat64(3,__filename,&local_80);\n        iVar3 = DAT_000dc710;\n        if ((iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000)) break;\n        if (__s != __filename) {\n          *(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);\n          *(char **)(iVar3 + 4) = __filename;\n        }\n      }\n    }" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      piVar5 = &local_84;\n      while( true ) {\n        __filename = (char *)FUN_00059ef1(puVar10,piVar8,piVar5);\n        if (__filename == (char *)0x0) {\n                    \n          FUN_00056c26("%s: not found",__s);\n        }\n        iVar2 = __xstat64(3,__filename,&local_80);\n        iVar3 = DAT_000dc710;\n        if ((iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000)) break;\n        if (__s != __filename) {\n          *(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);\n          *(char **)(iVar3 + 4) = __filename;\n        }\n      }\n    }" { (expression_statement "piVar5 = &local_84;" (assignment_expression "piVar5 = &local_84" identifier = (pointer_expression "&local_84" & identifier)) ;) (while_statement "while( true ) {\n        __filename = (char *)FUN_00059ef1(puVar10,piVar8,piVar5);\n        if (__filename == (char *)0x0) {\n                    \n          FUN_00056c26("%s: not found",__s);\n        }\n        iVar2 = __xstat64(3,__filename,&local_80);\n        iVar3 = DAT_000dc710;\n        if ((iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000)) break;\n        if (__s != __filename) {\n          *(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);\n          *(char **)(iVar3 + 4) = __filename;\n        }\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        __filename = (char *)FUN_00059ef1(puVar10,piVar8,piVar5);\n        if (__filename == (char *)0x0) {\n                    \n          FUN_00056c26("%s: not found",__s);\n        }\n        iVar2 = __xstat64(3,__filename,&local_80);\n        iVar3 = DAT_000dc710;\n        if ((iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000)) break;\n        if (__s != __filename) {\n          *(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);\n          *(char **)(iVar3 + 4) = __filename;\n        }\n      }" { (expression_statement "__filename = (char *)FUN_00059ef1(puVar10,piVar8,piVar5);" (assignment_expression "__filename = (char *)FUN_00059ef1(puVar10,piVar8,piVar5)" identifier = (cast_expression "(char *)FUN_00059ef1(puVar10,piVar8,piVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00059ef1(puVar10,piVar8,piVar5)" identifier (argument_list "(puVar10,piVar8,piVar5)" ( identifier , identifier , identifier ))))) ;) (if_statement "if (__filename == (char *)0x0) {\n                    \n          FUN_00056c26("%s: not found",__s);\n        }" if (parenthesized_expression "(__filename == (char *)0x0)" ( (binary_expression "__filename == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n          FUN_00056c26("%s: not found",__s);\n        }" { (expression_statement "FUN_00056c26("%s: not found",__s);" (call_expression "FUN_00056c26("%s: not found",__s)" identifier (argument_list "("%s: not found",__s)" ( (string_literal ""%s: not found"" " string_content ") , identifier ))) ;) })) (expression_statement "iVar2 = __xstat64(3,__filename,&local_80);" (assignment_expression "iVar2 = __xstat64(3,__filename,&local_80)" identifier = (call_expression "__xstat64(3,__filename,&local_80)" identifier (argument_list "(3,__filename,&local_80)" ( number_literal , identifier , (pointer_expression "&local_80" & identifier) )))) ;) (expression_statement "iVar3 = DAT_000dc710;" (assignment_expression "iVar3 = DAT_000dc710" identifier = identifier) ;) (if_statement "if ((iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000)) break;" if (parenthesized_expression "((iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000))" ( (binary_expression "(iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000)" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) && (parenthesized_expression "((local_80.st_mode & 0xf000) == 0x8000)" ( (binary_expression "(local_80.st_mode & 0xf000) == 0x8000" (parenthesized_expression "(local_80.st_mode & 0xf000)" ( (binary_expression "local_80.st_mode & 0xf000" (field_expression "local_80.st_mode" identifier . field_identifier) & number_literal) )) == number_literal) ))) )) (break_statement "break;" break ;)) (if_statement "if (__s != __filename) {\n          *(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);\n          *(char **)(iVar3 + 4) = __filename;\n        }" if (parenthesized_expression "(__s != __filename)" ( (binary_expression "__s != __filename" identifier != identifier) )) (compound_statement "{\n          *(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);\n          *(char **)(iVar3 + 4) = __filename;\n        }" { (expression_statement "*(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);" (assignment_expression "*(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename)" (pointer_expression "*(int *)(DAT_000dc710 + 0xc)" * (cast_expression "(int *)(DAT_000dc710 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000dc710 + 0xc)" ( (binary_expression "DAT_000dc710 + 0xc" identifier + number_literal) )))) = (binary_expression "*(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename)" (pointer_expression "*(int *)(DAT_000dc710 + 0xc)" * (cast_expression "(int *)(DAT_000dc710 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000dc710 + 0xc)" ( (binary_expression "DAT_000dc710 + 0xc" identifier + number_literal) )))) + (parenthesized_expression "(*(int *)(DAT_000dc710 + 4) - (int)__filename)" ( (binary_expression "*(int *)(DAT_000dc710 + 4) - (int)__filename" (pointer_expression "*(int *)(DAT_000dc710 + 4)" * (cast_expression "(int *)(DAT_000dc710 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000dc710 + 4)" ( (binary_expression "DAT_000dc710 + 4" identifier + number_literal) )))) - (cast_expression "(int)__filename" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "*(char **)(iVar3 + 4) = __filename;" (assignment_expression "*(char **)(iVar3 + 4) = __filename" (pointer_expression "*(char **)(iVar3 + 4)" * (cast_expression "(char **)(iVar3 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) )))) = identifier) ;) })) })) })) (if_statement "if (puVar10[1] == 0) {\n      FUN_00057eec(puVar10,piVar8,piVar5);\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n    }\n    else {\n      psVar6 = &local_80;\n      piVar5 = piVar8;\n      psVar7 = psVar6;\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *(int *)&psVar7->st_dev = *piVar5;\n        piVar5 = piVar5 + (uint)bVar9 * -2 + 1;\n        psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4);\n      }\n      *(undefined1 *)(piVar8 + 3) = 0;\n      iVar3 = puVar10[2];\n      iVar2 = 1;\n      while (iVar3 != 0) {\n        iVar3 = puVar10[iVar2 + 2];\n        iVar2 = iVar2 + 1;\n      }\n      *piVar8 = iVar2;\n      piVar8[4] = (int)(puVar10 + 1);\n      FUN_00057eec();\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n      FUN_00055d48();\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *piVar8 = (int)psVar6->st_dev;\n        psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4);\n        piVar8 = piVar8 + (uint)bVar9 * -2 + 1;\n      }\n    }" if (parenthesized_expression "(puVar10[1] == 0)" ( (binary_expression "puVar10[1] == 0" (subscript_expression "puVar10[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      FUN_00057eec(puVar10,piVar8,piVar5);\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n    }" { (expression_statement "FUN_00057eec(puVar10,piVar8,piVar5);" (call_expression "FUN_00057eec(puVar10,piVar8,piVar5)" identifier (argument_list "(puVar10,piVar8,piVar5)" ( identifier , identifier , identifier ))) ;) (expression_statement "DAT_000dc29c = __filename;" (assignment_expression "DAT_000dc29c = __filename" identifier = identifier) ;) (expression_statement "uVar4 = FUN_00062c6c();" (assignment_expression "uVar4 = FUN_00062c6c()" identifier = (call_expression "FUN_00062c6c()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_0005683d();" (call_expression "FUN_0005683d()" identifier (argument_list "()" ( ))) ;) }) (else_clause "else {\n      psVar6 = &local_80;\n      piVar5 = piVar8;\n      psVar7 = psVar6;\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *(int *)&psVar7->st_dev = *piVar5;\n        piVar5 = piVar5 + (uint)bVar9 * -2 + 1;\n        psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4);\n      }\n      *(undefined1 *)(piVar8 + 3) = 0;\n      iVar3 = puVar10[2];\n      iVar2 = 1;\n      while (iVar3 != 0) {\n        iVar3 = puVar10[iVar2 + 2];\n        iVar2 = iVar2 + 1;\n      }\n      *piVar8 = iVar2;\n      piVar8[4] = (int)(puVar10 + 1);\n      FUN_00057eec();\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n      FUN_00055d48();\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *piVar8 = (int)psVar6->st_dev;\n        psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4);\n        piVar8 = piVar8 + (uint)bVar9 * -2 + 1;\n      }\n    }" else (compound_statement "{\n      psVar6 = &local_80;\n      piVar5 = piVar8;\n      psVar7 = psVar6;\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *(int *)&psVar7->st_dev = *piVar5;\n        piVar5 = piVar5 + (uint)bVar9 * -2 + 1;\n        psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4);\n      }\n      *(undefined1 *)(piVar8 + 3) = 0;\n      iVar3 = puVar10[2];\n      iVar2 = 1;\n      while (iVar3 != 0) {\n        iVar3 = puVar10[iVar2 + 2];\n        iVar2 = iVar2 + 1;\n      }\n      *piVar8 = iVar2;\n      piVar8[4] = (int)(puVar10 + 1);\n      FUN_00057eec();\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n      FUN_00055d48();\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *piVar8 = (int)psVar6->st_dev;\n        psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4);\n        piVar8 = piVar8 + (uint)bVar9 * -2 + 1;\n      }\n    }" { (expression_statement "psVar6 = &local_80;" (assignment_expression "psVar6 = &local_80" identifier = (pointer_expression "&local_80" & identifier)) ;) (expression_statement "piVar5 = piVar8;" (assignment_expression "piVar5 = piVar8" identifier = identifier) ;) (expression_statement "psVar7 = psVar6;" (assignment_expression "psVar7 = psVar6" identifier = identifier) ;) (for_statement "for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *(int *)&psVar7->st_dev = *piVar5;\n        piVar5 = piVar5 + (uint)bVar9 * -2 + 1;\n        psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4);\n      }" for ( (assignment_expression "iVar3 = 5" identifier = number_literal) ; (binary_expression "iVar3 != 0" identifier != number_literal) ; (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ) (compound_statement "{\n        *(int *)&psVar7->st_dev = *piVar5;\n        piVar5 = piVar5 + (uint)bVar9 * -2 + 1;\n        psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4);\n      }" { (expression_statement "*(int *)&psVar7->st_dev = *piVar5;" (assignment_expression "*(int *)&psVar7->st_dev = *piVar5" (pointer_expression "*(int *)&psVar7->st_dev" * (cast_expression "(int *)&psVar7->st_dev" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&psVar7->st_dev" & (field_expression "psVar7->st_dev" identifier -> field_identifier)))) = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "piVar5 = piVar5 + (uint)bVar9 * -2 + 1;" (assignment_expression "piVar5 = piVar5 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "piVar5 + (uint)bVar9 * -2 + 1" (binary_expression "piVar5 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4);" (assignment_expression "psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4)" identifier = (cast_expression "(stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4)" ( (type_descriptor "stat64 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4)" ( (binary_expression "(int)psVar7 + ((uint)bVar9 * -2 + 1) * 4" (cast_expression "(int)psVar7" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "((uint)bVar9 * -2 + 1) * 4" (parenthesized_expression "((uint)bVar9 * -2 + 1)" ( (binary_expression "(uint)bVar9 * -2 + 1" (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal) + number_literal) )) * number_literal)) )))) ;) })) (expression_statement "*(undefined1 *)(piVar8 + 3) = 0;" (assignment_expression "*(undefined1 *)(piVar8 + 3) = 0" (pointer_expression "*(undefined1 *)(piVar8 + 3)" * (cast_expression "(undefined1 *)(piVar8 + 3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar8 + 3)" ( (binary_expression "piVar8 + 3" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar3 = puVar10[2];" (assignment_expression "iVar3 = puVar10[2]" identifier = (subscript_expression "puVar10[2]" identifier [ number_literal ])) ;) (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" identifier = number_literal) ;) (while_statement "while (iVar3 != 0) {\n        iVar3 = puVar10[iVar2 + 2];\n        iVar2 = iVar2 + 1;\n      }" while (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar3 = puVar10[iVar2 + 2];\n        iVar2 = iVar2 + 1;\n      }" { (expression_statement "iVar3 = puVar10[iVar2 + 2];" (assignment_expression "iVar3 = puVar10[iVar2 + 2]" identifier = (subscript_expression "puVar10[iVar2 + 2]" identifier [ (binary_expression "iVar2 + 2" identifier + number_literal) ])) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) })) (expression_statement "*piVar8 = iVar2;" (assignment_expression "*piVar8 = iVar2" (pointer_expression "*piVar8" * identifier) = identifier) ;) (expression_statement "piVar8[4] = (int)(puVar10 + 1);" (assignment_expression "piVar8[4] = (int)(puVar10 + 1)" (subscript_expression "piVar8[4]" identifier [ number_literal ]) = (cast_expression "(int)(puVar10 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(puVar10 + 1)" ( (binary_expression "puVar10 + 1" identifier + number_literal) )))) ;) (expression_statement "FUN_00057eec();" (call_expression "FUN_00057eec()" identifier (argument_list "()" ( ))) ;) (expression_statement "DAT_000dc29c = __filename;" (assignment_expression "DAT_000dc29c = __filename" identifier = identifier) ;) (expression_statement "uVar4 = FUN_00062c6c();" (assignment_expression "uVar4 = FUN_00062c6c()" identifier = (call_expression "FUN_00062c6c()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_0005683d();" (call_expression "FUN_0005683d()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00055d48();" (call_expression "FUN_00055d48()" identifier (argument_list "()" ( ))) ;) (for_statement "for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *piVar8 = (int)psVar6->st_dev;\n        psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4);\n        piVar8 = piVar8 + (uint)bVar9 * -2 + 1;\n      }" for ( (assignment_expression "iVar3 = 5" identifier = number_literal) ; (binary_expression "iVar3 != 0" identifier != number_literal) ; (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ) (compound_statement "{\n        *piVar8 = (int)psVar6->st_dev;\n        psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4);\n        piVar8 = piVar8 + (uint)bVar9 * -2 + 1;\n      }" { (expression_statement "*piVar8 = (int)psVar6->st_dev;" (assignment_expression "*piVar8 = (int)psVar6->st_dev" (pointer_expression "*piVar8" * identifier) = (cast_expression "(int)psVar6->st_dev" ( (type_descriptor "int" primitive_type) ) (field_expression "psVar6->st_dev" identifier -> field_identifier))) ;) (expression_statement "psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4);" (assignment_expression "psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4)" identifier = (cast_expression "(stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4)" ( (type_descriptor "stat64 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4)" ( (binary_expression "(int)psVar6 + ((uint)bVar9 * -2 + 1) * 4" (cast_expression "(int)psVar6" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "((uint)bVar9 * -2 + 1) * 4" (parenthesized_expression "((uint)bVar9 * -2 + 1)" ( (binary_expression "(uint)bVar9 * -2 + 1" (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal) + number_literal) )) * number_literal)) )))) ;) (expression_statement "piVar8 = piVar8 + (uint)bVar9 * -2 + 1;" (assignment_expression "piVar8 = piVar8 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "piVar8 + (uint)bVar9 * -2 + 1" (binary_expression "piVar8 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) }))) }))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar4;\n  }" { (return_statement "return uVar4;" return identifier ;) })) (expression_statement "FUN_00017e20();" (call_expression "FUN_00017e20()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (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) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , (pointer_expression & IDENT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (field_expression IDENT . field_identifier) & LIT) )) == LIT) ))) )) (break_statement break ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) })) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (for_statement for ( (assignment_expression IDENT = LIT) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & (field_expression IDENT -> field_identifier)))) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT) + LIT) )) * LIT)) )))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ (binary_expression IDENT + LIT) ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (for_statement for ( (assignment_expression IDENT = LIT) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (field_expression IDENT -> field_identifier))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT) + LIT) )) * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) }))) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined4 FUN_000638db(void)\n\n{\n  char *__s;\n  char *pcVar1;\n  char *__filename;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  stat64 *psVar6;\n  stat64 *psVar7;\n  int *piVar8;\n  int in_GS_OFFSET;\n  byte bVar9;\n  undefined4 *puVar10;\n  int local_84;\n  stat64 local_80;\n  int local_20;\n  \n  bVar9 = 0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0005728c();\n  __s = (char *)*DAT_000dc298;\n  if (__s == (char *)0x0) {\n    uVar4 = 2;\n  }\n  else {\n    piVar5 = (int *)DAT_000dc70c[0x3c];\n    local_84 = (int)piVar5 + 5;\n    puVar10 = DAT_000dc298;\n    piVar8 = DAT_000dc70c;\n    pcVar1 = strchr(__s,0x2f);\n    __filename = __s;\n    if (pcVar1 == (char *)0x0) {\n      piVar5 = &local_84;\n      while( true ) {\n        __filename = (char *)FUN_00059ef1(puVar10,piVar8,piVar5);\n        if (__filename == (char *)0x0) {\n                    \n          FUN_00056c26("%s: not found",__s);\n        }\n        iVar2 = __xstat64(3,__filename,&local_80);\n        iVar3 = DAT_000dc710;\n        if ((iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000)) break;\n        if (__s != __filename) {\n          *(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);\n          *(char **)(iVar3 + 4) = __filename;\n        }\n      }\n    }\n    if (puVar10[1] == 0) {\n      FUN_00057eec(puVar10,piVar8,piVar5);\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n    }\n    else {\n      psVar6 = &local_80;\n      piVar5 = piVar8;\n      psVar7 = psVar6;\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *(int *)&psVar7->st_dev = *piVar5;\n        piVar5 = piVar5 + (uint)bVar9 * -2 + 1;\n        psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4);\n      }\n      *(undefined1 *)(piVar8 + 3) = 0;\n      iVar3 = puVar10[2];\n      iVar2 = 1;\n      while (iVar3 != 0) {\n        iVar3 = puVar10[iVar2 + 2];\n        iVar2 = iVar2 + 1;\n      }\n      *piVar8 = iVar2;\n      piVar8[4] = (int)(puVar10 + 1);\n      FUN_00057eec();\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n      FUN_00055d48();\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *piVar8 = (int)psVar6->st_dev;\n        psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4);\n        piVar8 = piVar8 + (uint)bVar9 * -2 + 1;\n      }\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    \n  FUN_00017e20();\n}" (type_identifier "undefined4") (function_declarator "FUN_000638db(void)" (identifier "FUN_000638db") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  char *__s;\n  char *pcVar1;\n  char *__filename;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  stat64 *psVar6;\n  stat64 *psVar7;\n  int *piVar8;\n  int in_GS_OFFSET;\n  byte bVar9;\n  undefined4 *puVar10;\n  int local_84;\n  stat64 local_80;\n  int local_20;\n  \n  bVar9 = 0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0005728c();\n  __s = (char *)*DAT_000dc298;\n  if (__s == (char *)0x0) {\n    uVar4 = 2;\n  }\n  else {\n    piVar5 = (int *)DAT_000dc70c[0x3c];\n    local_84 = (int)piVar5 + 5;\n    puVar10 = DAT_000dc298;\n    piVar8 = DAT_000dc70c;\n    pcVar1 = strchr(__s,0x2f);\n    __filename = __s;\n    if (pcVar1 == (char *)0x0) {\n      piVar5 = &local_84;\n      while( true ) {\n        __filename = (char *)FUN_00059ef1(puVar10,piVar8,piVar5);\n        if (__filename == (char *)0x0) {\n                    \n          FUN_00056c26("%s: not found",__s);\n        }\n        iVar2 = __xstat64(3,__filename,&local_80);\n        iVar3 = DAT_000dc710;\n        if ((iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000)) break;\n        if (__s != __filename) {\n          *(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);\n          *(char **)(iVar3 + 4) = __filename;\n        }\n      }\n    }\n    if (puVar10[1] == 0) {\n      FUN_00057eec(puVar10,piVar8,piVar5);\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n    }\n    else {\n      psVar6 = &local_80;\n      piVar5 = piVar8;\n      psVar7 = psVar6;\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *(int *)&psVar7->st_dev = *piVar5;\n        piVar5 = piVar5 + (uint)bVar9 * -2 + 1;\n        psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4);\n      }\n      *(undefined1 *)(piVar8 + 3) = 0;\n      iVar3 = puVar10[2];\n      iVar2 = 1;\n      while (iVar3 != 0) {\n        iVar3 = puVar10[iVar2 + 2];\n        iVar2 = iVar2 + 1;\n      }\n      *piVar8 = iVar2;\n      piVar8[4] = (int)(puVar10 + 1);\n      FUN_00057eec();\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n      FUN_00055d48();\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *piVar8 = (int)psVar6->st_dev;\n        psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4);\n        piVar8 = piVar8 + (uint)bVar9 * -2 + 1;\n      }\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    \n  FUN_00017e20();\n}" ({ "{") (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "char *__filename;" (primitive_type "char") (pointer_declarator "*__filename" (* "*") (identifier "__filename")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "stat64 *psVar6;" (type_identifier "stat64") (pointer_declarator "*psVar6" (* "*") (identifier "psVar6")) (; ";")) (declaration "stat64 *psVar7;" (type_identifier "stat64") (pointer_declarator "*psVar7" (* "*") (identifier "psVar7")) (; ";")) (declaration "int *piVar8;" (primitive_type "int") (pointer_declarator "*piVar8" (* "*") (identifier "piVar8")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "byte bVar9;" (type_identifier "byte") (identifier "bVar9") (; ";")) (declaration "undefined4 *puVar10;" (type_identifier "undefined4") (pointer_declarator "*puVar10" (* "*") (identifier "puVar10")) (; ";")) (declaration "int local_84;" (primitive_type "int") (identifier "local_84") (; ";")) (declaration "stat64 local_80;" (type_identifier "stat64") (identifier "local_80") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" (identifier "bVar9") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "FUN_0005728c();" (call_expression "FUN_0005728c()" (identifier "FUN_0005728c") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "__s = (char *)*DAT_000dc298;" (assignment_expression "__s = (char *)*DAT_000dc298" (identifier "__s") (= "=") (cast_expression "(char *)*DAT_000dc298" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*DAT_000dc298" (* "*") (identifier "DAT_000dc298")))) (; ";")) (if_statement "if (__s == (char *)0x0) {\n    uVar4 = 2;\n  }\n  else {\n    piVar5 = (int *)DAT_000dc70c[0x3c];\n    local_84 = (int)piVar5 + 5;\n    puVar10 = DAT_000dc298;\n    piVar8 = DAT_000dc70c;\n    pcVar1 = strchr(__s,0x2f);\n    __filename = __s;\n    if (pcVar1 == (char *)0x0) {\n      piVar5 = &local_84;\n      while( true ) {\n        __filename = (char *)FUN_00059ef1(puVar10,piVar8,piVar5);\n        if (__filename == (char *)0x0) {\n                    \n          FUN_00056c26("%s: not found",__s);\n        }\n        iVar2 = __xstat64(3,__filename,&local_80);\n        iVar3 = DAT_000dc710;\n        if ((iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000)) break;\n        if (__s != __filename) {\n          *(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);\n          *(char **)(iVar3 + 4) = __filename;\n        }\n      }\n    }\n    if (puVar10[1] == 0) {\n      FUN_00057eec(puVar10,piVar8,piVar5);\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n    }\n    else {\n      psVar6 = &local_80;\n      piVar5 = piVar8;\n      psVar7 = psVar6;\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *(int *)&psVar7->st_dev = *piVar5;\n        piVar5 = piVar5 + (uint)bVar9 * -2 + 1;\n        psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4);\n      }\n      *(undefined1 *)(piVar8 + 3) = 0;\n      iVar3 = puVar10[2];\n      iVar2 = 1;\n      while (iVar3 != 0) {\n        iVar3 = puVar10[iVar2 + 2];\n        iVar2 = iVar2 + 1;\n      }\n      *piVar8 = iVar2;\n      piVar8[4] = (int)(puVar10 + 1);\n      FUN_00057eec();\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n      FUN_00055d48();\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *piVar8 = (int)psVar6->st_dev;\n        psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4);\n        piVar8 = piVar8 + (uint)bVar9 * -2 + 1;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(__s == (char *)0x0)" (( "(") (binary_expression "__s == (char *)0x0" (identifier "__s") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    uVar4 = 2;\n  }" ({ "{") (expression_statement "uVar4 = 2;" (assignment_expression "uVar4 = 2" (identifier "uVar4") (= "=") (number_literal "2")) (; ";")) (} "}")) (else_clause "else {\n    piVar5 = (int *)DAT_000dc70c[0x3c];\n    local_84 = (int)piVar5 + 5;\n    puVar10 = DAT_000dc298;\n    piVar8 = DAT_000dc70c;\n    pcVar1 = strchr(__s,0x2f);\n    __filename = __s;\n    if (pcVar1 == (char *)0x0) {\n      piVar5 = &local_84;\n      while( true ) {\n        __filename = (char *)FUN_00059ef1(puVar10,piVar8,piVar5);\n        if (__filename == (char *)0x0) {\n                    \n          FUN_00056c26("%s: not found",__s);\n        }\n        iVar2 = __xstat64(3,__filename,&local_80);\n        iVar3 = DAT_000dc710;\n        if ((iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000)) break;\n        if (__s != __filename) {\n          *(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);\n          *(char **)(iVar3 + 4) = __filename;\n        }\n      }\n    }\n    if (puVar10[1] == 0) {\n      FUN_00057eec(puVar10,piVar8,piVar5);\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n    }\n    else {\n      psVar6 = &local_80;\n      piVar5 = piVar8;\n      psVar7 = psVar6;\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *(int *)&psVar7->st_dev = *piVar5;\n        piVar5 = piVar5 + (uint)bVar9 * -2 + 1;\n        psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4);\n      }\n      *(undefined1 *)(piVar8 + 3) = 0;\n      iVar3 = puVar10[2];\n      iVar2 = 1;\n      while (iVar3 != 0) {\n        iVar3 = puVar10[iVar2 + 2];\n        iVar2 = iVar2 + 1;\n      }\n      *piVar8 = iVar2;\n      piVar8[4] = (int)(puVar10 + 1);\n      FUN_00057eec();\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n      FUN_00055d48();\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *piVar8 = (int)psVar6->st_dev;\n        psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4);\n        piVar8 = piVar8 + (uint)bVar9 * -2 + 1;\n      }\n    }\n  }" (else "else") (compound_statement "{\n    piVar5 = (int *)DAT_000dc70c[0x3c];\n    local_84 = (int)piVar5 + 5;\n    puVar10 = DAT_000dc298;\n    piVar8 = DAT_000dc70c;\n    pcVar1 = strchr(__s,0x2f);\n    __filename = __s;\n    if (pcVar1 == (char *)0x0) {\n      piVar5 = &local_84;\n      while( true ) {\n        __filename = (char *)FUN_00059ef1(puVar10,piVar8,piVar5);\n        if (__filename == (char *)0x0) {\n                    \n          FUN_00056c26("%s: not found",__s);\n        }\n        iVar2 = __xstat64(3,__filename,&local_80);\n        iVar3 = DAT_000dc710;\n        if ((iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000)) break;\n        if (__s != __filename) {\n          *(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);\n          *(char **)(iVar3 + 4) = __filename;\n        }\n      }\n    }\n    if (puVar10[1] == 0) {\n      FUN_00057eec(puVar10,piVar8,piVar5);\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n    }\n    else {\n      psVar6 = &local_80;\n      piVar5 = piVar8;\n      psVar7 = psVar6;\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *(int *)&psVar7->st_dev = *piVar5;\n        piVar5 = piVar5 + (uint)bVar9 * -2 + 1;\n        psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4);\n      }\n      *(undefined1 *)(piVar8 + 3) = 0;\n      iVar3 = puVar10[2];\n      iVar2 = 1;\n      while (iVar3 != 0) {\n        iVar3 = puVar10[iVar2 + 2];\n        iVar2 = iVar2 + 1;\n      }\n      *piVar8 = iVar2;\n      piVar8[4] = (int)(puVar10 + 1);\n      FUN_00057eec();\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n      FUN_00055d48();\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *piVar8 = (int)psVar6->st_dev;\n        psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4);\n        piVar8 = piVar8 + (uint)bVar9 * -2 + 1;\n      }\n    }\n  }" ({ "{") (expression_statement "piVar5 = (int *)DAT_000dc70c[0x3c];" (assignment_expression "piVar5 = (int *)DAT_000dc70c[0x3c]" (identifier "piVar5") (= "=") (cast_expression "(int *)DAT_000dc70c[0x3c]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "DAT_000dc70c[0x3c]" (identifier "DAT_000dc70c") ([ "[") (number_literal "0x3c") (] "]")))) (; ";")) (expression_statement "local_84 = (int)piVar5 + 5;" (assignment_expression "local_84 = (int)piVar5 + 5" (identifier "local_84") (= "=") (binary_expression "(int)piVar5 + 5" (cast_expression "(int)piVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar5")) (+ "+") (number_literal "5"))) (; ";")) (expression_statement "puVar10 = DAT_000dc298;" (assignment_expression "puVar10 = DAT_000dc298" (identifier "puVar10") (= "=") (identifier "DAT_000dc298")) (; ";")) (expression_statement "piVar8 = DAT_000dc70c;" (assignment_expression "piVar8 = DAT_000dc70c" (identifier "piVar8") (= "=") (identifier "DAT_000dc70c")) (; ";")) (expression_statement "pcVar1 = strchr(__s,0x2f);" (assignment_expression "pcVar1 = strchr(__s,0x2f)" (identifier "pcVar1") (= "=") (call_expression "strchr(__s,0x2f)" (identifier "strchr") (argument_list "(__s,0x2f)" (( "(") (identifier "__s") (, ",") (number_literal "0x2f") () ")")))) (; ";")) (expression_statement "__filename = __s;" (assignment_expression "__filename = __s" (identifier "__filename") (= "=") (identifier "__s")) (; ";")) (if_statement "if (pcVar1 == (char *)0x0) {\n      piVar5 = &local_84;\n      while( true ) {\n        __filename = (char *)FUN_00059ef1(puVar10,piVar8,piVar5);\n        if (__filename == (char *)0x0) {\n                    \n          FUN_00056c26("%s: not found",__s);\n        }\n        iVar2 = __xstat64(3,__filename,&local_80);\n        iVar3 = DAT_000dc710;\n        if ((iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000)) break;\n        if (__s != __filename) {\n          *(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);\n          *(char **)(iVar3 + 4) = __filename;\n        }\n      }\n    }" (if "if") (parenthesized_expression "(pcVar1 == (char *)0x0)" (( "(") (binary_expression "pcVar1 == (char *)0x0" (identifier "pcVar1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      piVar5 = &local_84;\n      while( true ) {\n        __filename = (char *)FUN_00059ef1(puVar10,piVar8,piVar5);\n        if (__filename == (char *)0x0) {\n                    \n          FUN_00056c26("%s: not found",__s);\n        }\n        iVar2 = __xstat64(3,__filename,&local_80);\n        iVar3 = DAT_000dc710;\n        if ((iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000)) break;\n        if (__s != __filename) {\n          *(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);\n          *(char **)(iVar3 + 4) = __filename;\n        }\n      }\n    }" ({ "{") (expression_statement "piVar5 = &local_84;" (assignment_expression "piVar5 = &local_84" (identifier "piVar5") (= "=") (pointer_expression "&local_84" (& "&") (identifier "local_84"))) (; ";")) (while_statement "while( true ) {\n        __filename = (char *)FUN_00059ef1(puVar10,piVar8,piVar5);\n        if (__filename == (char *)0x0) {\n                    \n          FUN_00056c26("%s: not found",__s);\n        }\n        iVar2 = __xstat64(3,__filename,&local_80);\n        iVar3 = DAT_000dc710;\n        if ((iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000)) break;\n        if (__s != __filename) {\n          *(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);\n          *(char **)(iVar3 + 4) = __filename;\n        }\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        __filename = (char *)FUN_00059ef1(puVar10,piVar8,piVar5);\n        if (__filename == (char *)0x0) {\n                    \n          FUN_00056c26("%s: not found",__s);\n        }\n        iVar2 = __xstat64(3,__filename,&local_80);\n        iVar3 = DAT_000dc710;\n        if ((iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000)) break;\n        if (__s != __filename) {\n          *(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);\n          *(char **)(iVar3 + 4) = __filename;\n        }\n      }" ({ "{") (expression_statement "__filename = (char *)FUN_00059ef1(puVar10,piVar8,piVar5);" (assignment_expression "__filename = (char *)FUN_00059ef1(puVar10,piVar8,piVar5)" (identifier "__filename") (= "=") (cast_expression "(char *)FUN_00059ef1(puVar10,piVar8,piVar5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00059ef1(puVar10,piVar8,piVar5)" (identifier "FUN_00059ef1") (argument_list "(puVar10,piVar8,piVar5)" (( "(") (identifier "puVar10") (, ",") (identifier "piVar8") (, ",") (identifier "piVar5") () ")"))))) (; ";")) (if_statement "if (__filename == (char *)0x0) {\n                    \n          FUN_00056c26("%s: not found",__s);\n        }" (if "if") (parenthesized_expression "(__filename == (char *)0x0)" (( "(") (binary_expression "__filename == (char *)0x0" (identifier "__filename") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n          FUN_00056c26("%s: not found",__s);\n        }" ({ "{") (expression_statement "FUN_00056c26("%s: not found",__s);" (call_expression "FUN_00056c26("%s: not found",__s)" (identifier "FUN_00056c26") (argument_list "("%s: not found",__s)" (( "(") (string_literal ""%s: not found"" (" """) (string_content "%s: not found") (" """)) (, ",") (identifier "__s") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar2 = __xstat64(3,__filename,&local_80);" (assignment_expression "iVar2 = __xstat64(3,__filename,&local_80)" (identifier "iVar2") (= "=") (call_expression "__xstat64(3,__filename,&local_80)" (identifier "__xstat64") (argument_list "(3,__filename,&local_80)" (( "(") (number_literal "3") (, ",") (identifier "__filename") (, ",") (pointer_expression "&local_80" (& "&") (identifier "local_80")) () ")")))) (; ";")) (expression_statement "iVar3 = DAT_000dc710;" (assignment_expression "iVar3 = DAT_000dc710" (identifier "iVar3") (= "=") (identifier "DAT_000dc710")) (; ";")) (if_statement "if ((iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000)) break;" (if "if") (parenthesized_expression "((iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000))" (( "(") (binary_expression "(iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000)" (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((local_80.st_mode & 0xf000) == 0x8000)" (( "(") (binary_expression "(local_80.st_mode & 0xf000) == 0x8000" (parenthesized_expression "(local_80.st_mode & 0xf000)" (( "(") (binary_expression "local_80.st_mode & 0xf000" (field_expression "local_80.st_mode" (identifier "local_80") (. ".") (field_identifier "st_mode")) (& "&") (number_literal "0xf000")) () ")")) (== "==") (number_literal "0x8000")) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if (__s != __filename) {\n          *(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);\n          *(char **)(iVar3 + 4) = __filename;\n        }" (if "if") (parenthesized_expression "(__s != __filename)" (( "(") (binary_expression "__s != __filename" (identifier "__s") (!= "!=") (identifier "__filename")) () ")")) (compound_statement "{\n          *(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);\n          *(char **)(iVar3 + 4) = __filename;\n        }" ({ "{") (expression_statement "*(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);" (assignment_expression "*(int *)(DAT_000dc710 + 0xc) =\n               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename)" (pointer_expression "*(int *)(DAT_000dc710 + 0xc)" (* "*") (cast_expression "(int *)(DAT_000dc710 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_000dc710 + 0xc)" (( "(") (binary_expression "DAT_000dc710 + 0xc" (identifier "DAT_000dc710") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (binary_expression "*(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename)" (pointer_expression "*(int *)(DAT_000dc710 + 0xc)" (* "*") (cast_expression "(int *)(DAT_000dc710 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_000dc710 + 0xc)" (( "(") (binary_expression "DAT_000dc710 + 0xc" (identifier "DAT_000dc710") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (parenthesized_expression "(*(int *)(DAT_000dc710 + 4) - (int)__filename)" (( "(") (binary_expression "*(int *)(DAT_000dc710 + 4) - (int)__filename" (pointer_expression "*(int *)(DAT_000dc710 + 4)" (* "*") (cast_expression "(int *)(DAT_000dc710 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_000dc710 + 4)" (( "(") (binary_expression "DAT_000dc710 + 4" (identifier "DAT_000dc710") (+ "+") (number_literal "4")) () ")")))) (- "-") (cast_expression "(int)__filename" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__filename"))) () ")")))) (; ";")) (expression_statement "*(char **)(iVar3 + 4) = __filename;" (assignment_expression "*(char **)(iVar3 + 4) = __filename" (pointer_expression "*(char **)(iVar3 + 4)" (* "*") (cast_expression "(char **)(iVar3 + 4)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar3 + 4)" (( "(") (binary_expression "iVar3 + 4" (identifier "iVar3") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "__filename")) (; ";")) (} "}"))) (} "}"))) (} "}"))) (if_statement "if (puVar10[1] == 0) {\n      FUN_00057eec(puVar10,piVar8,piVar5);\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n    }\n    else {\n      psVar6 = &local_80;\n      piVar5 = piVar8;\n      psVar7 = psVar6;\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *(int *)&psVar7->st_dev = *piVar5;\n        piVar5 = piVar5 + (uint)bVar9 * -2 + 1;\n        psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4);\n      }\n      *(undefined1 *)(piVar8 + 3) = 0;\n      iVar3 = puVar10[2];\n      iVar2 = 1;\n      while (iVar3 != 0) {\n        iVar3 = puVar10[iVar2 + 2];\n        iVar2 = iVar2 + 1;\n      }\n      *piVar8 = iVar2;\n      piVar8[4] = (int)(puVar10 + 1);\n      FUN_00057eec();\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n      FUN_00055d48();\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *piVar8 = (int)psVar6->st_dev;\n        psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4);\n        piVar8 = piVar8 + (uint)bVar9 * -2 + 1;\n      }\n    }" (if "if") (parenthesized_expression "(puVar10[1] == 0)" (( "(") (binary_expression "puVar10[1] == 0" (subscript_expression "puVar10[1]" (identifier "puVar10") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00057eec(puVar10,piVar8,piVar5);\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n    }" ({ "{") (expression_statement "FUN_00057eec(puVar10,piVar8,piVar5);" (call_expression "FUN_00057eec(puVar10,piVar8,piVar5)" (identifier "FUN_00057eec") (argument_list "(puVar10,piVar8,piVar5)" (( "(") (identifier "puVar10") (, ",") (identifier "piVar8") (, ",") (identifier "piVar5") () ")"))) (; ";")) (expression_statement "DAT_000dc29c = __filename;" (assignment_expression "DAT_000dc29c = __filename" (identifier "DAT_000dc29c") (= "=") (identifier "__filename")) (; ";")) (expression_statement "uVar4 = FUN_00062c6c();" (assignment_expression "uVar4 = FUN_00062c6c()" (identifier "uVar4") (= "=") (call_expression "FUN_00062c6c()" (identifier "FUN_00062c6c") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "FUN_0005683d();" (call_expression "FUN_0005683d()" (identifier "FUN_0005683d") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")) (else_clause "else {\n      psVar6 = &local_80;\n      piVar5 = piVar8;\n      psVar7 = psVar6;\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *(int *)&psVar7->st_dev = *piVar5;\n        piVar5 = piVar5 + (uint)bVar9 * -2 + 1;\n        psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4);\n      }\n      *(undefined1 *)(piVar8 + 3) = 0;\n      iVar3 = puVar10[2];\n      iVar2 = 1;\n      while (iVar3 != 0) {\n        iVar3 = puVar10[iVar2 + 2];\n        iVar2 = iVar2 + 1;\n      }\n      *piVar8 = iVar2;\n      piVar8[4] = (int)(puVar10 + 1);\n      FUN_00057eec();\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n      FUN_00055d48();\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *piVar8 = (int)psVar6->st_dev;\n        psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4);\n        piVar8 = piVar8 + (uint)bVar9 * -2 + 1;\n      }\n    }" (else "else") (compound_statement "{\n      psVar6 = &local_80;\n      piVar5 = piVar8;\n      psVar7 = psVar6;\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *(int *)&psVar7->st_dev = *piVar5;\n        piVar5 = piVar5 + (uint)bVar9 * -2 + 1;\n        psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4);\n      }\n      *(undefined1 *)(piVar8 + 3) = 0;\n      iVar3 = puVar10[2];\n      iVar2 = 1;\n      while (iVar3 != 0) {\n        iVar3 = puVar10[iVar2 + 2];\n        iVar2 = iVar2 + 1;\n      }\n      *piVar8 = iVar2;\n      piVar8[4] = (int)(puVar10 + 1);\n      FUN_00057eec();\n      DAT_000dc29c = __filename;\n      uVar4 = FUN_00062c6c();\n      FUN_0005683d();\n      FUN_00055d48();\n      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *piVar8 = (int)psVar6->st_dev;\n        psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4);\n        piVar8 = piVar8 + (uint)bVar9 * -2 + 1;\n      }\n    }" ({ "{") (expression_statement "psVar6 = &local_80;" (assignment_expression "psVar6 = &local_80" (identifier "psVar6") (= "=") (pointer_expression "&local_80" (& "&") (identifier "local_80"))) (; ";")) (expression_statement "piVar5 = piVar8;" (assignment_expression "piVar5 = piVar8" (identifier "piVar5") (= "=") (identifier "piVar8")) (; ";")) (expression_statement "psVar7 = psVar6;" (assignment_expression "psVar7 = psVar6" (identifier "psVar7") (= "=") (identifier "psVar6")) (; ";")) (for_statement "for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *(int *)&psVar7->st_dev = *piVar5;\n        piVar5 = piVar5 + (uint)bVar9 * -2 + 1;\n        psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4);\n      }" (for "for") (( "(") (assignment_expression "iVar3 = 5" (identifier "iVar3") (= "=") (number_literal "5")) (; ";") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar3 = iVar3 + -1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n        *(int *)&psVar7->st_dev = *piVar5;\n        piVar5 = piVar5 + (uint)bVar9 * -2 + 1;\n        psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4);\n      }" ({ "{") (expression_statement "*(int *)&psVar7->st_dev = *piVar5;" (assignment_expression "*(int *)&psVar7->st_dev = *piVar5" (pointer_expression "*(int *)&psVar7->st_dev" (* "*") (cast_expression "(int *)&psVar7->st_dev" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&psVar7->st_dev" (& "&") (field_expression "psVar7->st_dev" (identifier "psVar7") (-> "->") (field_identifier "st_dev"))))) (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (expression_statement "piVar5 = piVar5 + (uint)bVar9 * -2 + 1;" (assignment_expression "piVar5 = piVar5 + (uint)bVar9 * -2 + 1" (identifier "piVar5") (= "=") (binary_expression "piVar5 + (uint)bVar9 * -2 + 1" (binary_expression "piVar5 + (uint)bVar9 * -2" (identifier "piVar5") (+ "+") (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar9")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4);" (assignment_expression "psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4)" (identifier "psVar7") (= "=") (cast_expression "(stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4)" (( "(") (type_descriptor "stat64 *" (type_identifier "stat64") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4)" (( "(") (binary_expression "(int)psVar7 + ((uint)bVar9 * -2 + 1) * 4" (cast_expression "(int)psVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "psVar7")) (+ "+") (binary_expression "((uint)bVar9 * -2 + 1) * 4" (parenthesized_expression "((uint)bVar9 * -2 + 1)" (( "(") (binary_expression "(uint)bVar9 * -2 + 1" (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar9")) (* "*") (number_literal "-2")) (+ "+") (number_literal "1")) () ")")) (* "*") (number_literal "4"))) () ")")))) (; ";")) (} "}"))) (expression_statement "*(undefined1 *)(piVar8 + 3) = 0;" (assignment_expression "*(undefined1 *)(piVar8 + 3) = 0" (pointer_expression "*(undefined1 *)(piVar8 + 3)" (* "*") (cast_expression "(undefined1 *)(piVar8 + 3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar8 + 3)" (( "(") (binary_expression "piVar8 + 3" (identifier "piVar8") (+ "+") (number_literal "3")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar3 = puVar10[2];" (assignment_expression "iVar3 = puVar10[2]" (identifier "iVar3") (= "=") (subscript_expression "puVar10[2]" (identifier "puVar10") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" (identifier "iVar2") (= "=") (number_literal "1")) (; ";")) (while_statement "while (iVar3 != 0) {\n        iVar3 = puVar10[iVar2 + 2];\n        iVar2 = iVar2 + 1;\n      }" (while "while") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        iVar3 = puVar10[iVar2 + 2];\n        iVar2 = iVar2 + 1;\n      }" ({ "{") (expression_statement "iVar3 = puVar10[iVar2 + 2];" (assignment_expression "iVar3 = puVar10[iVar2 + 2]" (identifier "iVar3") (= "=") (subscript_expression "puVar10[iVar2 + 2]" (identifier "puVar10") ([ "[") (binary_expression "iVar2 + 2" (identifier "iVar2") (+ "+") (number_literal "2")) (] "]"))) (; ";")) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "*piVar8 = iVar2;" (assignment_expression "*piVar8 = iVar2" (pointer_expression "*piVar8" (* "*") (identifier "piVar8")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "piVar8[4] = (int)(puVar10 + 1);" (assignment_expression "piVar8[4] = (int)(puVar10 + 1)" (subscript_expression "piVar8[4]" (identifier "piVar8") ([ "[") (number_literal "4") (] "]")) (= "=") (cast_expression "(int)(puVar10 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(puVar10 + 1)" (( "(") (binary_expression "puVar10 + 1" (identifier "puVar10") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "FUN_00057eec();" (call_expression "FUN_00057eec()" (identifier "FUN_00057eec") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "DAT_000dc29c = __filename;" (assignment_expression "DAT_000dc29c = __filename" (identifier "DAT_000dc29c") (= "=") (identifier "__filename")) (; ";")) (expression_statement "uVar4 = FUN_00062c6c();" (assignment_expression "uVar4 = FUN_00062c6c()" (identifier "uVar4") (= "=") (call_expression "FUN_00062c6c()" (identifier "FUN_00062c6c") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "FUN_0005683d();" (call_expression "FUN_0005683d()" (identifier "FUN_0005683d") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_00055d48();" (call_expression "FUN_00055d48()" (identifier "FUN_00055d48") (argument_list "()" (( "(") () ")"))) (; ";")) (for_statement "for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *piVar8 = (int)psVar6->st_dev;\n        psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4);\n        piVar8 = piVar8 + (uint)bVar9 * -2 + 1;\n      }" (for "for") (( "(") (assignment_expression "iVar3 = 5" (identifier "iVar3") (= "=") (number_literal "5")) (; ";") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar3 = iVar3 + -1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n        *piVar8 = (int)psVar6->st_dev;\n        psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4);\n        piVar8 = piVar8 + (uint)bVar9 * -2 + 1;\n      }" ({ "{") (expression_statement "*piVar8 = (int)psVar6->st_dev;" (assignment_expression "*piVar8 = (int)psVar6->st_dev" (pointer_expression "*piVar8" (* "*") (identifier "piVar8")) (= "=") (cast_expression "(int)psVar6->st_dev" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (field_expression "psVar6->st_dev" (identifier "psVar6") (-> "->") (field_identifier "st_dev")))) (; ";")) (expression_statement "psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4);" (assignment_expression "psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4)" (identifier "psVar6") (= "=") (cast_expression "(stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4)" (( "(") (type_descriptor "stat64 *" (type_identifier "stat64") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4)" (( "(") (binary_expression "(int)psVar6 + ((uint)bVar9 * -2 + 1) * 4" (cast_expression "(int)psVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "psVar6")) (+ "+") (binary_expression "((uint)bVar9 * -2 + 1) * 4" (parenthesized_expression "((uint)bVar9 * -2 + 1)" (( "(") (binary_expression "(uint)bVar9 * -2 + 1" (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar9")) (* "*") (number_literal "-2")) (+ "+") (number_literal "1")) () ")")) (* "*") (number_literal "4"))) () ")")))) (; ";")) (expression_statement "piVar8 = piVar8 + (uint)bVar9 * -2 + 1;" (assignment_expression "piVar8 = piVar8 + (uint)bVar9 * -2 + 1" (identifier "piVar8") (= "=") (binary_expression "piVar8 + (uint)bVar9 * -2 + 1" (binary_expression "piVar8 + (uint)bVar9 * -2" (identifier "piVar8") (+ "+") (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar9")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (} "}")))) (} "}")))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return uVar4;\n  }" ({ "{") (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}"))) (expression_statement "FUN_00017e20();" (call_expression "FUN_00017e20()" (identifier "FUN_00017e20") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

int function_1(int argc_,char **argv_)

{
  char *path;
  type_1 saveparam;
  
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator 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: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) 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: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) 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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (while_statement condition: (parenthesized_expression (true)) 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 (identifier) (identifier) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier) (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))) right: (number_literal))))) consequence: (break_statement)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (for_statement initializer: (assignment_expression left: (identifier) right: (number_literal)) condition: (binary_expression left: (identifier) right: (number_literal)) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (field_expression argument: (identifier) field: (field_identifier))))) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal)))) (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)) right: (number_literal))) right: (number_literal))))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (for_statement initializer: (assignment_expression left: (identifier) right: (number_literal)) condition: (binary_expression left: (identifier) right: (number_literal)) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (field_expression argument: (identifier) field: (field_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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)) right: (number_literal))) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal)))))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

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

undefined4 MASKED(void)

{
  char *__s;
  char *pcVar1;
  char *__filename;
  int iVar2;
  int iVar3;
  undefined4 uVar4;
  int *piVar5;
  stat64 *psVar6;
  stat64 *psVar7;
  int *piVar8;
  int in_GS_OFFSET;
  byte bVar9;
  undefined4 *puVar10;
  int local_84;
  stat64 local_80;
  int local_20;
  
  bVar9 = 0;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  FUN_0005728c();
  __s = (char *)*DAT_000dc298;
  if (__s == (char *)0x0) {
    uVar4 = 2;
  }
  else {
    piVar5 = (int *)DAT_000dc70c[0x3c];
    local_84 = (int)piVar5 + 5;
    puVar10 = DAT_000dc298;
    piVar8 = DAT_000dc70c;
    pcVar1 = strchr(__s,0x2f);
    __filename = __s;
    if (pcVar1 == (char *)0x0) {
      piVar5 = &local_84;
      while( true ) {
        __filename = (char *)FUN_00059ef1(puVar10,piVar8,piVar5);
        if (__filename == (char *)0x0) {
                    /* WARNING: Subroutine does not return */
          FUN_00056c26("%s: not found",__s);
        }
        iVar2 = __xstat64(3,__filename,&local_80);
        iVar3 = DAT_000dc710;
        if ((iVar2 == 0) && ((local_80.st_mode & 0xf000) == 0x8000)) break;
        if (__s != __filename) {
          *(int *)(DAT_000dc710 + 0xc) =
               *(int *)(DAT_000dc710 + 0xc) + (*(int *)(DAT_000dc710 + 4) - (int)__filename);
          *(char **)(iVar3 + 4) = __filename;
        }
      }
    }
    if (puVar10[1] == 0) {
      FUN_00057eec(puVar10,piVar8,piVar5);
      DAT_000dc29c = __filename;
      uVar4 = FUN_00062c6c();
      FUN_0005683d();
    }
    else {
      psVar6 = &local_80;
      piVar5 = piVar8;
      psVar7 = psVar6;
      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {
        *(int *)&psVar7->st_dev = *piVar5;
        piVar5 = piVar5 + (uint)bVar9 * -2 + 1;
        psVar7 = (stat64 *)((int)psVar7 + ((uint)bVar9 * -2 + 1) * 4);
      }
      *(undefined1 *)(piVar8 + 3) = 0;
      iVar3 = puVar10[2];
      iVar2 = 1;
      while (iVar3 != 0) {
        iVar3 = puVar10[iVar2 + 2];
        iVar2 = iVar2 + 1;
      }
      *piVar8 = iVar2;
      piVar8[4] = (int)(puVar10 + 1);
      FUN_00057eec();
      DAT_000dc29c = __filename;
      uVar4 = FUN_00062c6c();
      FUN_0005683d();
      FUN_00055d48();
      for (iVar3 = 5; iVar3 != 0; iVar3 = iVar3 + -1) {
        *piVar8 = (int)psVar6->st_dev;
        psVar6 = (stat64 *)((int)psVar6 + ((uint)bVar9 * -2 + 1) * 4);
        piVar8 = piVar8 + (uint)bVar9 * -2 + 1;
      }
    }
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar4;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00017e20();
}

