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

int is_directory(char *fileName,int followLinks)

{
  stat statBuf;
  
}



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

bool __regparm3 FUN_000aa928(char *param_1,int param_2)

{
  int iVar1;
  int in_GS_OFFSET;
  stat64 local_70;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_2 == 0) {
    iVar1 = __lxstat64(3,param_1,&local_70);
  }
  else {
    iVar1 = __xstat64(3,param_1,&local_70);
  }
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar1 == 0 && (local_70.st_mode & 0xf000) == 0x4000;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00017e10();
}


PUSH EBX
SUB ESP,0x78
CALL 0x00017640
ADD EBX,0x260ef
MOV ECX,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x6c],ECX
XOR ECX,ECX
TEST EDX,EDX
JZ 0x000aa986
PUSH ECX
LEA EDX,[ESP + 0x10]
PUSH EDX
PUSH EAX
PUSH 0x3
CALL 0x00017410
ADD ESP,0x10
XOR EDX,EDX
TEST EAX,EAX
JNZ 0x000aa972
MOV EAX,dword ptr [ESP + 0x1c]
AND EAX,0xf000
XOR EDX,EDX
CMP EAX,0x4000
SETZ DL
MOV EAX,EDX
MOV ECX,dword ptr [ESP + 0x6c]
XOR ECX,dword ptr GS:[0x14]
JNZ 0x000aa99f
ADD ESP,0x78
POP EBX
RET
PUSH EDX
LEA EDX,[ESP + 0x10]
PUSH EDX
PUSH EAX
PUSH 0x3
CALL 0x000174b0
ADD ESP,0x10
XOR EDX,EDX
TEST EAX,EAX
JNZ 0x000aa972
JMP 0x000aa95f
CALL 0x00017e10
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbool __regparm3 FUN_000aa928(char *param_1,int param_2)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  stat64 local_70;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == 0) {\n    iVar1 = __lxstat64(3,param_1,&local_70);\n  }\n  else {\n    iVar1 = __xstat64(3,param_1,&local_70);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1 == 0 && (local_70.st_mode & 0xf000) == 0x4000;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00017e10();\n}\n\n" comment (function_definition "bool __regparm3 FUN_000aa928(char *param_1,int param_2)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  stat64 local_70;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == 0) {\n    iVar1 = __lxstat64(3,param_1,&local_70);\n  }\n  else {\n    iVar1 = __xstat64(3,param_1,&local_70);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1 == 0 && (local_70.st_mode & 0xf000) == 0x4000;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00017e10();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000aa928(char *param_1,int param_2)" identifier (parameter_list "(char *param_1,int param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  stat64 local_70;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == 0) {\n    iVar1 = __lxstat64(3,param_1,&local_70);\n  }\n  else {\n    iVar1 = __xstat64(3,param_1,&local_70);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1 == 0 && (local_70.st_mode & 0xf000) == 0x4000;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00017e10();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "stat64 local_70;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_2 == 0) {\n    iVar1 = __lxstat64(3,param_1,&local_70);\n  }\n  else {\n    iVar1 = __xstat64(3,param_1,&local_70);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = __lxstat64(3,param_1,&local_70);\n  }" { (expression_statement "iVar1 = __lxstat64(3,param_1,&local_70);" (assignment_expression "iVar1 = __lxstat64(3,param_1,&local_70)" identifier = (call_expression "__lxstat64(3,param_1,&local_70)" identifier (argument_list "(3,param_1,&local_70)" ( number_literal , identifier , (pointer_expression "&local_70" & identifier) )))) ;) }) (else_clause "else {\n    iVar1 = __xstat64(3,param_1,&local_70);\n  }" else (compound_statement "{\n    iVar1 = __xstat64(3,param_1,&local_70);\n  }" { (expression_statement "iVar1 = __xstat64(3,param_1,&local_70);" (assignment_expression "iVar1 = __xstat64(3,param_1,&local_70)" identifier = (call_expression "__xstat64(3,param_1,&local_70)" identifier (argument_list "(3,param_1,&local_70)" ( number_literal , identifier , (pointer_expression "&local_70" & identifier) )))) ;) }))) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1 == 0 && (local_70.st_mode & 0xf000) == 0x4000;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(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 iVar1 == 0 && (local_70.st_mode & 0xf000) == 0x4000;\n  }" { (return_statement "return iVar1 == 0 && (local_70.st_mode & 0xf000) == 0x4000;" return (binary_expression "iVar1 == 0 && (local_70.st_mode & 0xf000) == 0x4000" (binary_expression "iVar1 == 0" identifier == number_literal) && (binary_expression "(local_70.st_mode & 0xf000) == 0x4000" (parenthesized_expression "(local_70.st_mode & 0xf000)" ( (binary_expression "local_70.st_mode & 0xf000" (field_expression "local_70.st_mode" identifier . field_identifier) & number_literal) )) == number_literal)) ;) })) comment (expression_statement "FUN_00017e10();" (call_expression "FUN_00017e10()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint is_directory(char *fileName,int followLinks)\n\n{\n  stat statBuf;\n  \n}\n\n" comment (function_definition "int is_directory(char *fileName,int followLinks)\n\n{\n  stat statBuf;\n  \n}" primitive_type (function_declarator "is_directory(char *fileName,int followLinks)" identifier (parameter_list "(char *fileName,int followLinks)" ( (parameter_declaration "char *fileName" primitive_type (pointer_declarator "*fileName" * identifier)) , (parameter_declaration "int followLinks" primitive_type identifier) ))) (compound_statement "{\n  stat statBuf;\n  \n}" { (declaration "stat statBuf;" type_identifier identifier ;) })))
(translation_unit "bool __regparm3 FUN_000aa928(char *param_1,int param_2)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  stat64 local_70;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == 0) {\n    iVar1 = __lxstat64(3,param_1,&local_70);\n  }\n  else {\n    iVar1 = __xstat64(3,param_1,&local_70);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1 == 0 && (local_70.st_mode & 0xf000) == 0x4000;\n  }\n                    \n  FUN_00017e10();\n}\n\n" (function_definition "bool __regparm3 FUN_000aa928(char *param_1,int param_2)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  stat64 local_70;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == 0) {\n    iVar1 = __lxstat64(3,param_1,&local_70);\n  }\n  else {\n    iVar1 = __xstat64(3,param_1,&local_70);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1 == 0 && (local_70.st_mode & 0xf000) == 0x4000;\n  }\n                    \n  FUN_00017e10();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000aa928(char *param_1,int param_2)" identifier (parameter_list "(char *param_1,int param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  stat64 local_70;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == 0) {\n    iVar1 = __lxstat64(3,param_1,&local_70);\n  }\n  else {\n    iVar1 = __xstat64(3,param_1,&local_70);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1 == 0 && (local_70.st_mode & 0xf000) == 0x4000;\n  }\n                    \n  FUN_00017e10();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "stat64 local_70;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_2 == 0) {\n    iVar1 = __lxstat64(3,param_1,&local_70);\n  }\n  else {\n    iVar1 = __xstat64(3,param_1,&local_70);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = __lxstat64(3,param_1,&local_70);\n  }" { (expression_statement "iVar1 = __lxstat64(3,param_1,&local_70);" (assignment_expression "iVar1 = __lxstat64(3,param_1,&local_70)" identifier = (call_expression "__lxstat64(3,param_1,&local_70)" identifier (argument_list "(3,param_1,&local_70)" ( number_literal , identifier , (pointer_expression "&local_70" & identifier) )))) ;) }) (else_clause "else {\n    iVar1 = __xstat64(3,param_1,&local_70);\n  }" else (compound_statement "{\n    iVar1 = __xstat64(3,param_1,&local_70);\n  }" { (expression_statement "iVar1 = __xstat64(3,param_1,&local_70);" (assignment_expression "iVar1 = __xstat64(3,param_1,&local_70)" identifier = (call_expression "__xstat64(3,param_1,&local_70)" identifier (argument_list "(3,param_1,&local_70)" ( number_literal , identifier , (pointer_expression "&local_70" & identifier) )))) ;) }))) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1 == 0 && (local_70.st_mode & 0xf000) == 0x4000;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(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 iVar1 == 0 && (local_70.st_mode & 0xf000) == 0x4000;\n  }" { (return_statement "return iVar1 == 0 && (local_70.st_mode & 0xf000) == 0x4000;" return (binary_expression "iVar1 == 0 && (local_70.st_mode & 0xf000) == 0x4000" (binary_expression "iVar1 == 0" identifier == number_literal) && (binary_expression "(local_70.st_mode & 0xf000) == 0x4000" (parenthesized_expression "(local_70.st_mode & 0xf000)" ( (binary_expression "local_70.st_mode & 0xf000" (field_expression "local_70.st_mode" identifier . field_identifier) & number_literal) )) == number_literal)) ;) })) (expression_statement "FUN_00017e10();" (call_expression "FUN_00017e10()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , (pointer_expression & IDENT) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , (pointer_expression & IDENT) )))) ;) }))) (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 (binary_expression (binary_expression IDENT == LIT) && (binary_expression (parenthesized_expression ( (binary_expression (field_expression IDENT . field_identifier) & LIT) )) == LIT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "bool __regparm3 FUN_000aa928(char *param_1,int param_2)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  stat64 local_70;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == 0) {\n    iVar1 = __lxstat64(3,param_1,&local_70);\n  }\n  else {\n    iVar1 = __xstat64(3,param_1,&local_70);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1 == 0 && (local_70.st_mode & 0xf000) == 0x4000;\n  }\n                    \n  FUN_00017e10();\n}" (primitive_type "bool") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000aa928(char *param_1,int param_2)" (identifier "FUN_000aa928") (parameter_list "(char *param_1,int param_2)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  stat64 local_70;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == 0) {\n    iVar1 = __lxstat64(3,param_1,&local_70);\n  }\n  else {\n    iVar1 = __xstat64(3,param_1,&local_70);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1 == 0 && (local_70.st_mode & 0xf000) == 0x4000;\n  }\n                    \n  FUN_00017e10();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "stat64 local_70;" (type_identifier "stat64") (identifier "local_70") (; ";")) (declaration "int local_10;" (primitive_type "int") (identifier "local_10") (; ";")) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (= "=") (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")) () ")"))))) (; ";")) (if_statement "if (param_2 == 0) {\n    iVar1 = __lxstat64(3,param_1,&local_70);\n  }\n  else {\n    iVar1 = __xstat64(3,param_1,&local_70);\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = __lxstat64(3,param_1,&local_70);\n  }" ({ "{") (expression_statement "iVar1 = __lxstat64(3,param_1,&local_70);" (assignment_expression "iVar1 = __lxstat64(3,param_1,&local_70)" (identifier "iVar1") (= "=") (call_expression "__lxstat64(3,param_1,&local_70)" (identifier "__lxstat64") (argument_list "(3,param_1,&local_70)" (( "(") (number_literal "3") (, ",") (identifier "param_1") (, ",") (pointer_expression "&local_70" (& "&") (identifier "local_70")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = __xstat64(3,param_1,&local_70);\n  }" (else "else") (compound_statement "{\n    iVar1 = __xstat64(3,param_1,&local_70);\n  }" ({ "{") (expression_statement "iVar1 = __xstat64(3,param_1,&local_70);" (assignment_expression "iVar1 = __xstat64(3,param_1,&local_70)" (identifier "iVar1") (= "=") (call_expression "__xstat64(3,param_1,&local_70)" (identifier "__xstat64") (argument_list "(3,param_1,&local_70)" (( "(") (number_literal "3") (, ",") (identifier "param_1") (, ",") (pointer_expression "&local_70" (& "&") (identifier "local_70")) () ")")))) (; ";")) (} "}")))) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1 == 0 && (local_70.st_mode & 0xf000) == 0x4000;\n  }" (if "if") (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (== "==") (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 iVar1 == 0 && (local_70.st_mode & 0xf000) == 0x4000;\n  }" ({ "{") (return_statement "return iVar1 == 0 && (local_70.st_mode & 0xf000) == 0x4000;" (return "return") (binary_expression "iVar1 == 0 && (local_70.st_mode & 0xf000) == 0x4000" (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) (&& "&&") (binary_expression "(local_70.st_mode & 0xf000) == 0x4000" (parenthesized_expression "(local_70.st_mode & 0xf000)" (( "(") (binary_expression "local_70.st_mode & 0xf000" (field_expression "local_70.st_mode" (identifier "local_70") (. ".") (field_identifier "st_mode")) (& "&") (number_literal "0xf000")) () ")")) (== "==") (number_literal "0x4000"))) (; ";")) (} "}"))) (expression_statement "FUN_00017e10();" (call_expression "FUN_00017e10()" (identifier "FUN_00017e10") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

int function_1(char *fileName,int followLinks)

{
  type_1 statBuf;
  
}


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

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

bool __regparm3 MASKED(char *param_1,int param_2)

{
  int iVar1;
  int in_GS_OFFSET;
  stat64 local_70;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_2 == 0) {
    iVar1 = __lxstat64(3,param_1,&local_70);
  }
  else {
    iVar1 = __xstat64(3,param_1,&local_70);
  }
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar1 == 0 && (local_70.st_mode & 0xf000) == 0x4000;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00017e10();
}

