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

int file_isdir(char *fn)

{
  int iVar1;
  int iVar2;
  uint uVar3;
  int in_GS_OFFSET;
  stat sb;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = __xstat64(3,fn,(stat64 *)&sb);
  uVar3 = 0;
  if (iVar2 == 0) {
    uVar3 = (uint)((sb.st_mode & 0xf000) == 0x4000);
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar3;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

bool file_isdir(char *param_1)

{
  int iVar1;
  int in_GS_OFFSET;
  stat64 local_70;
  int local_10;
  undefined4 uStack_8;
  
  uStack_8 = 0x41b76;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  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_000ecc40();
}


PUSH EBX
CALL 0x00031ed0
ADD EBX,0x10848a
SUB ESP,0x7c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x70],EAX
XOR EAX,EAX
LEA EAX,[ESP + 0x10]
PUSH EAX
PUSH dword ptr [ESP + 0x88]
PUSH 0x3
CALL 0x0002fc90
ADD ESP,0x10
XOR EDX,EDX
TEST EAX,EAX
JNZ 0x00041bba
MOV EAX,dword ptr [ESP + 0x1c]
XOR EDX,EDX
AND EAX,0xf000
CMP EAX,0x4000
SETZ DL
MOV ECX,dword ptr [ESP + 0x6c]
XOR ECX,dword ptr GS:[0x14]
MOV EAX,EDX
JNZ 0x00041bce
ADD ESP,0x78
POP EBX
RET
CALL 0x000ecc40
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbool file_isdir(char *param_1)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  stat64 local_70;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x41b76;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = __xstat64(3,param_1,&local_70);\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_000ecc40();\n}\n\n" comment (function_definition "bool file_isdir(char *param_1)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  stat64 local_70;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x41b76;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = __xstat64(3,param_1,&local_70);\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_000ecc40();\n}" primitive_type (function_declarator "file_isdir(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  stat64 local_70;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x41b76;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = __xstat64(3,param_1,&local_70);\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_000ecc40();\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 ;) (declaration "undefined4 uStack_8;" type_identifier identifier ;) (expression_statement "uStack_8 = 0x41b76;" (assignment_expression "uStack_8 = 0x41b76" identifier = number_literal) ;) (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) ))))) ;) (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_000ecc40();" (call_expression "FUN_000ecc40()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint file_isdir(char *fn)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int in_GS_OFFSET;\n  stat sb;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = __xstat64(3,fn,(stat64 *)&sb);\n  uVar3 = 0;\n  if (iVar2 == 0) {\n    uVar3 = (uint)((sb.st_mode & 0xf000) == 0x4000);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "int file_isdir(char *fn)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int in_GS_OFFSET;\n  stat sb;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = __xstat64(3,fn,(stat64 *)&sb);\n  uVar3 = 0;\n  if (iVar2 == 0) {\n    uVar3 = (uint)((sb.st_mode & 0xf000) == 0x4000);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "file_isdir(char *fn)" identifier (parameter_list "(char *fn)" ( (parameter_declaration "char *fn" primitive_type (pointer_declarator "*fn" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int in_GS_OFFSET;\n  stat sb;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = __xstat64(3,fn,(stat64 *)&sb);\n  uVar3 = 0;\n  if (iVar2 == 0) {\n    uVar3 = (uint)((sb.st_mode & 0xf000) == 0x4000);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "stat sb;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = __xstat64(3,fn,(stat64 *)&sb);" (assignment_expression "iVar2 = __xstat64(3,fn,(stat64 *)&sb)" identifier = (call_expression "__xstat64(3,fn,(stat64 *)&sb)" identifier (argument_list "(3,fn,(stat64 *)&sb)" ( number_literal , identifier , (cast_expression "(stat64 *)&sb" ( (type_descriptor "stat64 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&sb" & identifier)) )))) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (if_statement "if (iVar2 == 0) {\n    uVar3 = (uint)((sb.st_mode & 0xf000) == 0x4000);\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar3 = (uint)((sb.st_mode & 0xf000) == 0x4000);\n  }" { (expression_statement "uVar3 = (uint)((sb.st_mode & 0xf000) == 0x4000);" (assignment_expression "uVar3 = (uint)((sb.st_mode & 0xf000) == 0x4000)" identifier = (call_expression "(uint)((sb.st_mode & 0xf000) == 0x4000)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((sb.st_mode & 0xf000) == 0x4000)" ( (binary_expression "(sb.st_mode & 0xf000) == 0x4000" (parenthesized_expression "(sb.st_mode & 0xf000)" ( (binary_expression "sb.st_mode & 0xf000" (field_expression "sb.st_mode" identifier . field_identifier) & number_literal) )) == number_literal) )))) ;) })) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar3;\n  }" { (return_statement "return uVar3;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "bool file_isdir(char *param_1)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  stat64 local_70;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x41b76;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = __xstat64(3,param_1,&local_70);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1 == 0 && (local_70.st_mode & 0xf000) == 0x4000;\n  }\n                    \n  FUN_000ecc40();\n}\n\n" (function_definition "bool file_isdir(char *param_1)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  stat64 local_70;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x41b76;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = __xstat64(3,param_1,&local_70);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1 == 0 && (local_70.st_mode & 0xf000) == 0x4000;\n  }\n                    \n  FUN_000ecc40();\n}" primitive_type (function_declarator "file_isdir(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  stat64 local_70;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x41b76;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = __xstat64(3,param_1,&local_70);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1 == 0 && (local_70.st_mode & 0xf000) == 0x4000;\n  }\n                    \n  FUN_000ecc40();\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 ;) (declaration "undefined4 uStack_8;" type_identifier identifier ;) (expression_statement "uStack_8 = 0x41b76;" (assignment_expression "uStack_8 = 0x41b76" identifier = number_literal) ;) (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) ))))) ;) (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_000ecc40();" (call_expression "FUN_000ecc40()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE 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 (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 file_isdir(char *param_1)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  stat64 local_70;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x41b76;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = __xstat64(3,param_1,&local_70);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1 == 0 && (local_70.st_mode & 0xf000) == 0x4000;\n  }\n                    \n  FUN_000ecc40();\n}" (primitive_type "bool") (function_declarator "file_isdir(char *param_1)" (identifier "file_isdir") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  stat64 local_70;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x41b76;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = __xstat64(3,param_1,&local_70);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1 == 0 && (local_70.st_mode & 0xf000) == 0x4000;\n  }\n                    \n  FUN_000ecc40();\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") (; ";")) (declaration "undefined4 uStack_8;" (type_identifier "undefined4") (identifier "uStack_8") (; ";")) (expression_statement "uStack_8 = 0x41b76;" (assignment_expression "uStack_8 = 0x41b76" (identifier "uStack_8") (= "=") (number_literal "0x41b76")) (; ";")) (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")) () ")"))))) (; ";")) (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_000ecc40();" (call_expression "FUN_000ecc40()" (identifier "FUN_000ecc40") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

int function_1(char *fn)

{
  int var_4;
  int var_3;
  type_1 uVar3;
  int var_1;
  type_2 sb;
  
  var_4 = *(int *)(var_1 + 0x14);
  var_3 = var_2(3,fn,(type_3 *)&sb);
  uVar3 = 0;
  if (var_3 == 0) {
    uVar3 = (type_1)((sb.st_mode & 0xf000) == 0x4000);
  }
  if (var_4 == *(int *)(var_1 + 0x14)) {
    return uVar3;
  }
                    /* WARNING: Subroutine does not return */
  var_5();
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator 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)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (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 MASKED(char *param_1)

{
  int iVar1;
  int in_GS_OFFSET;
  stat64 local_70;
  int local_10;
  undefined4 uStack_8;
  
  uStack_8 = 0x41b76;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  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_000ecc40();
}

