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

_Bool seen_file(Hash_table *ht,char *file,stat *stats)

{
  int iVar1;
  void *pvVar2;
  int in_GS_OFFSET;
  _Bool _Var3;
  F_triple new_ent;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  _Var3 = false;
  if (ht != (Hash_table *)0x0) {
    new_ent.name = file;
    new_ent.st_ino._4_4_ = *(undefined4 *)((int)&stats->st_ino + 4);
    new_ent.st_ino._0_4_ = (undefined4)stats->st_ino;
    new_ent.st_dev._4_4_ = *(undefined4 *)((int)&stats->st_dev + 4);
    new_ent.st_dev._0_4_ = (undefined4)stats->st_dev;
    pvVar2 = hash_lookup(ht,&new_ent);
    _Var3 = pvVar2 != (void *)0x0;
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return _Var3;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

bool FUN_0001d2a0(int param_1,undefined4 param_2,undefined4 *param_3)

{
  int iVar1;
  int in_GS_OFFSET;
  bool bVar2;
  undefined4 local_24;
  undefined4 local_20;
  undefined4 local_1c;
  undefined4 local_18;
  undefined4 local_14;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  bVar2 = false;
  if (param_1 != 0) {
    local_24 = param_2;
    local_1c = param_3[0x17];
    local_20 = param_3[0x16];
    local_14 = param_3[1];
    local_18 = *param_3;
    iVar1 = FUN_0001e310(param_1,&local_24);
    bVar2 = iVar1 != 0;
  }
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return bVar2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0002dd10();
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000142a0
ADD EBX,0x1fd58
SUB ESP,0x20
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x1c],EAX
XOR EAX,EAX
MOV EDX,dword ptr [ESP + 0x30]
MOV ESI,dword ptr [ESP + 0x34]
MOV ECX,dword ptr [ESP + 0x38]
TEST EDX,EDX
JZ 0x0001d302
MOV dword ptr [ESP + 0x8],ESI
MOV EDI,dword ptr [ECX + 0x5c]
SUB ESP,0x8
MOV ESI,dword ptr [ECX + 0x58]
MOV dword ptr [ESP + 0x18],EDI
MOV EDI,dword ptr [ECX + 0x4]
MOV dword ptr [ESP + 0x14],ESI
MOV ESI,dword ptr [ECX]
MOV dword ptr [ESP + 0x20],EDI
MOV dword ptr [ESP + 0x1c],ESI
LEA EAX,[ESP + 0x10]
PUSH EAX
PUSH EDX
CALL 0x0001e310
ADD ESP,0x10
TEST EAX,EAX
SETNZ AL
MOV ECX,dword ptr [ESP + 0x1c]
XOR ECX,dword ptr GS:[0x14]
JNZ 0x0001d316
ADD ESP,0x20
POP EBX
POP ESI
POP EDI
RET
CALL 0x0002dd10
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbool FUN_0001d2a0(int param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  bool bVar2;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  bVar2 = false;\n  if (param_1 != 0) {\n    local_24 = param_2;\n    local_1c = param_3[0x17];\n    local_20 = param_3[0x16];\n    local_14 = param_3[1];\n    local_18 = *param_3;\n    iVar1 = FUN_0001e310(param_1,&local_24);\n    bVar2 = iVar1 != 0;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0002dd10();\n}\n\n" comment (function_definition "bool FUN_0001d2a0(int param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  bool bVar2;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  bVar2 = false;\n  if (param_1 != 0) {\n    local_24 = param_2;\n    local_1c = param_3[0x17];\n    local_20 = param_3[0x16];\n    local_14 = param_3[1];\n    local_18 = *param_3;\n    iVar1 = FUN_0001e310(param_1,&local_24);\n    bVar2 = iVar1 != 0;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0002dd10();\n}" primitive_type (function_declarator "FUN_0001d2a0(int param_1,undefined4 param_2,undefined4 *param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  bool bVar2;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  bVar2 = false;\n  if (param_1 != 0) {\n    local_24 = param_2;\n    local_1c = param_3[0x17];\n    local_20 = param_3[0x16];\n    local_14 = param_3[1];\n    local_18 = *param_3;\n    iVar1 = FUN_0001e310(param_1,&local_24);\n    bVar2 = iVar1 != 0;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0002dd10();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (declaration "undefined4 local_1c;" type_identifier identifier ;) (declaration "undefined4 local_18;" type_identifier identifier ;) (declaration "undefined4 local_14;" 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) ))))) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (if_statement "if (param_1 != 0) {\n    local_24 = param_2;\n    local_1c = param_3[0x17];\n    local_20 = param_3[0x16];\n    local_14 = param_3[1];\n    local_18 = *param_3;\n    iVar1 = FUN_0001e310(param_1,&local_24);\n    bVar2 = iVar1 != 0;\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    local_24 = param_2;\n    local_1c = param_3[0x17];\n    local_20 = param_3[0x16];\n    local_14 = param_3[1];\n    local_18 = *param_3;\n    iVar1 = FUN_0001e310(param_1,&local_24);\n    bVar2 = iVar1 != 0;\n  }" { (expression_statement "local_24 = param_2;" (assignment_expression "local_24 = param_2" identifier = identifier) ;) (expression_statement "local_1c = param_3[0x17];" (assignment_expression "local_1c = param_3[0x17]" identifier = (subscript_expression "param_3[0x17]" identifier [ number_literal ])) ;) (expression_statement "local_20 = param_3[0x16];" (assignment_expression "local_20 = param_3[0x16]" identifier = (subscript_expression "param_3[0x16]" identifier [ number_literal ])) ;) (expression_statement "local_14 = param_3[1];" (assignment_expression "local_14 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "local_18 = *param_3;" (assignment_expression "local_18 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "iVar1 = FUN_0001e310(param_1,&local_24);" (assignment_expression "iVar1 = FUN_0001e310(param_1,&local_24)" identifier = (call_expression "FUN_0001e310(param_1,&local_24)" identifier (argument_list "(param_1,&local_24)" ( identifier , (pointer_expression "&local_24" & identifier) )))) ;) (expression_statement "bVar2 = iVar1 != 0;" (assignment_expression "bVar2 = iVar1 != 0" identifier = (binary_expression "iVar1 != 0" identifier != number_literal)) ;) })) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar2;\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 bVar2;\n  }" { (return_statement "return bVar2;" return identifier ;) })) comment (expression_statement "FUN_0002dd10();" (call_expression "FUN_0002dd10()" 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\n_Bool seen_file(Hash_table *ht,char *file,stat *stats)\n\n{\n  int iVar1;\n  void *pvVar2;\n  int in_GS_OFFSET;\n  _Bool _Var3;\n  F_triple new_ent;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  _Var3 = false;\n  if (ht != (Hash_table *)0x0) {\n    new_ent.name = file;\n    new_ent.st_ino._4_4_ = *(undefined4 *)((int)&stats->st_ino + 4);\n    new_ent.st_ino._0_4_ = (undefined4)stats->st_ino;\n    new_ent.st_dev._4_4_ = *(undefined4 *)((int)&stats->st_dev + 4);\n    new_ent.st_dev._0_4_ = (undefined4)stats->st_dev;\n    pvVar2 = hash_lookup(ht,&new_ent);\n    _Var3 = pvVar2 != (void *)0x0;\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return _Var3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "_Bool seen_file(Hash_table *ht,char *file,stat *stats)\n\n{\n  int iVar1;\n  void *pvVar2;\n  int in_GS_OFFSET;\n  _Bool _Var3;\n  F_triple new_ent;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  _Var3 = false;\n  if (ht != (Hash_table *)0x0) {\n    new_ent.name = file;\n    new_ent.st_ino._4_4_ = *(undefined4 *)((int)&stats->st_ino + 4);\n    new_ent.st_ino._0_4_ = (undefined4)stats->st_ino;\n    new_ent.st_dev._4_4_ = *(undefined4 *)((int)&stats->st_dev + 4);\n    new_ent.st_dev._0_4_ = (undefined4)stats->st_dev;\n    pvVar2 = hash_lookup(ht,&new_ent);\n    _Var3 = pvVar2 != (void *)0x0;\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return _Var3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" type_identifier (function_declarator "seen_file(Hash_table *ht,char *file,stat *stats)" identifier (parameter_list "(Hash_table *ht,char *file,stat *stats)" ( (parameter_declaration "Hash_table *ht" type_identifier (pointer_declarator "*ht" * identifier)) , (parameter_declaration "char *file" primitive_type (pointer_declarator "*file" * identifier)) , (parameter_declaration "stat *stats" type_identifier (pointer_declarator "*stats" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  void *pvVar2;\n  int in_GS_OFFSET;\n  _Bool _Var3;\n  F_triple new_ent;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  _Var3 = false;\n  if (ht != (Hash_table *)0x0) {\n    new_ent.name = file;\n    new_ent.st_ino._4_4_ = *(undefined4 *)((int)&stats->st_ino + 4);\n    new_ent.st_ino._0_4_ = (undefined4)stats->st_ino;\n    new_ent.st_dev._4_4_ = *(undefined4 *)((int)&stats->st_dev + 4);\n    new_ent.st_dev._0_4_ = (undefined4)stats->st_dev;\n    pvVar2 = hash_lookup(ht,&new_ent);\n    _Var3 = pvVar2 != (void *)0x0;\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return _Var3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "_Bool _Var3;" type_identifier identifier ;) (declaration "F_triple new_ent;" 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 "_Var3 = false;" (assignment_expression "_Var3 = false" identifier = false) ;) (if_statement "if (ht != (Hash_table *)0x0) {\n    new_ent.name = file;\n    new_ent.st_ino._4_4_ = *(undefined4 *)((int)&stats->st_ino + 4);\n    new_ent.st_ino._0_4_ = (undefined4)stats->st_ino;\n    new_ent.st_dev._4_4_ = *(undefined4 *)((int)&stats->st_dev + 4);\n    new_ent.st_dev._0_4_ = (undefined4)stats->st_dev;\n    pvVar2 = hash_lookup(ht,&new_ent);\n    _Var3 = pvVar2 != (void *)0x0;\n  }" if (parenthesized_expression "(ht != (Hash_table *)0x0)" ( (binary_expression "ht != (Hash_table *)0x0" identifier != (cast_expression "(Hash_table *)0x0" ( (type_descriptor "Hash_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    new_ent.name = file;\n    new_ent.st_ino._4_4_ = *(undefined4 *)((int)&stats->st_ino + 4);\n    new_ent.st_ino._0_4_ = (undefined4)stats->st_ino;\n    new_ent.st_dev._4_4_ = *(undefined4 *)((int)&stats->st_dev + 4);\n    new_ent.st_dev._0_4_ = (undefined4)stats->st_dev;\n    pvVar2 = hash_lookup(ht,&new_ent);\n    _Var3 = pvVar2 != (void *)0x0;\n  }" { (expression_statement "new_ent.name = file;" (assignment_expression "new_ent.name = file" (field_expression "new_ent.name" identifier . field_identifier) = identifier) ;) (expression_statement "new_ent.st_ino._4_4_ = *(undefined4 *)((int)&stats->st_ino + 4);" (assignment_expression "new_ent.st_ino._4_4_ = *(undefined4 *)((int)&stats->st_ino + 4)" (field_expression "new_ent.st_ino._4_4_" (field_expression "new_ent.st_ino" identifier . field_identifier) . field_identifier) = (pointer_expression "*(undefined4 *)((int)&stats->st_ino + 4)" * (cast_expression "(undefined4 *)((int)&stats->st_ino + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&stats->st_ino + 4)" ( (binary_expression "(int)&stats->st_ino + 4" (cast_expression "(int)&stats->st_ino" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&stats->st_ino" & (field_expression "stats->st_ino" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "new_ent.st_ino._0_4_ = (undefined4)stats->st_ino;" (assignment_expression "new_ent.st_ino._0_4_ = (undefined4)stats->st_ino" (field_expression "new_ent.st_ino._0_4_" (field_expression "new_ent.st_ino" identifier . field_identifier) . field_identifier) = (cast_expression "(undefined4)stats->st_ino" ( (type_descriptor "undefined4" type_identifier) ) (field_expression "stats->st_ino" identifier -> field_identifier))) ;) (expression_statement "new_ent.st_dev._4_4_ = *(undefined4 *)((int)&stats->st_dev + 4);" (assignment_expression "new_ent.st_dev._4_4_ = *(undefined4 *)((int)&stats->st_dev + 4)" (field_expression "new_ent.st_dev._4_4_" (field_expression "new_ent.st_dev" identifier . field_identifier) . field_identifier) = (pointer_expression "*(undefined4 *)((int)&stats->st_dev + 4)" * (cast_expression "(undefined4 *)((int)&stats->st_dev + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&stats->st_dev + 4)" ( (binary_expression "(int)&stats->st_dev + 4" (cast_expression "(int)&stats->st_dev" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&stats->st_dev" & (field_expression "stats->st_dev" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "new_ent.st_dev._0_4_ = (undefined4)stats->st_dev;" (assignment_expression "new_ent.st_dev._0_4_ = (undefined4)stats->st_dev" (field_expression "new_ent.st_dev._0_4_" (field_expression "new_ent.st_dev" identifier . field_identifier) . field_identifier) = (cast_expression "(undefined4)stats->st_dev" ( (type_descriptor "undefined4" type_identifier) ) (field_expression "stats->st_dev" identifier -> field_identifier))) ;) (expression_statement "pvVar2 = hash_lookup(ht,&new_ent);" (assignment_expression "pvVar2 = hash_lookup(ht,&new_ent)" identifier = (call_expression "hash_lookup(ht,&new_ent)" identifier (argument_list "(ht,&new_ent)" ( identifier , (pointer_expression "&new_ent" & identifier) )))) ;) (expression_statement "_Var3 = pvVar2 != (void *)0x0;" (assignment_expression "_Var3 = pvVar2 != (void *)0x0" identifier = (binary_expression "pvVar2 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ;) })) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return _Var3;\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 _Var3;\n  }" { (return_statement "return _Var3;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "bool FUN_0001d2a0(int param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  bool bVar2;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  bVar2 = false;\n  if (param_1 != 0) {\n    local_24 = param_2;\n    local_1c = param_3[0x17];\n    local_20 = param_3[0x16];\n    local_14 = param_3[1];\n    local_18 = *param_3;\n    iVar1 = FUN_0001e310(param_1,&local_24);\n    bVar2 = iVar1 != 0;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar2;\n  }\n                    \n  FUN_0002dd10();\n}\n\n" (function_definition "bool FUN_0001d2a0(int param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  bool bVar2;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  bVar2 = false;\n  if (param_1 != 0) {\n    local_24 = param_2;\n    local_1c = param_3[0x17];\n    local_20 = param_3[0x16];\n    local_14 = param_3[1];\n    local_18 = *param_3;\n    iVar1 = FUN_0001e310(param_1,&local_24);\n    bVar2 = iVar1 != 0;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar2;\n  }\n                    \n  FUN_0002dd10();\n}" primitive_type (function_declarator "FUN_0001d2a0(int param_1,undefined4 param_2,undefined4 *param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  bool bVar2;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  bVar2 = false;\n  if (param_1 != 0) {\n    local_24 = param_2;\n    local_1c = param_3[0x17];\n    local_20 = param_3[0x16];\n    local_14 = param_3[1];\n    local_18 = *param_3;\n    iVar1 = FUN_0001e310(param_1,&local_24);\n    bVar2 = iVar1 != 0;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar2;\n  }\n                    \n  FUN_0002dd10();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (declaration "undefined4 local_1c;" type_identifier identifier ;) (declaration "undefined4 local_18;" type_identifier identifier ;) (declaration "undefined4 local_14;" 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) ))))) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (if_statement "if (param_1 != 0) {\n    local_24 = param_2;\n    local_1c = param_3[0x17];\n    local_20 = param_3[0x16];\n    local_14 = param_3[1];\n    local_18 = *param_3;\n    iVar1 = FUN_0001e310(param_1,&local_24);\n    bVar2 = iVar1 != 0;\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    local_24 = param_2;\n    local_1c = param_3[0x17];\n    local_20 = param_3[0x16];\n    local_14 = param_3[1];\n    local_18 = *param_3;\n    iVar1 = FUN_0001e310(param_1,&local_24);\n    bVar2 = iVar1 != 0;\n  }" { (expression_statement "local_24 = param_2;" (assignment_expression "local_24 = param_2" identifier = identifier) ;) (expression_statement "local_1c = param_3[0x17];" (assignment_expression "local_1c = param_3[0x17]" identifier = (subscript_expression "param_3[0x17]" identifier [ number_literal ])) ;) (expression_statement "local_20 = param_3[0x16];" (assignment_expression "local_20 = param_3[0x16]" identifier = (subscript_expression "param_3[0x16]" identifier [ number_literal ])) ;) (expression_statement "local_14 = param_3[1];" (assignment_expression "local_14 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "local_18 = *param_3;" (assignment_expression "local_18 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "iVar1 = FUN_0001e310(param_1,&local_24);" (assignment_expression "iVar1 = FUN_0001e310(param_1,&local_24)" identifier = (call_expression "FUN_0001e310(param_1,&local_24)" identifier (argument_list "(param_1,&local_24)" ( identifier , (pointer_expression "&local_24" & identifier) )))) ;) (expression_statement "bVar2 = iVar1 != 0;" (assignment_expression "bVar2 = iVar1 != 0" identifier = (binary_expression "iVar1 != 0" identifier != number_literal)) ;) })) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar2;\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 bVar2;\n  }" { (return_statement "return bVar2;" return identifier ;) })) (expression_statement "FUN_0002dd10();" (call_expression "FUN_0002dd10()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT != 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 "bool FUN_0001d2a0(int param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  bool bVar2;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  bVar2 = false;\n  if (param_1 != 0) {\n    local_24 = param_2;\n    local_1c = param_3[0x17];\n    local_20 = param_3[0x16];\n    local_14 = param_3[1];\n    local_18 = *param_3;\n    iVar1 = FUN_0001e310(param_1,&local_24);\n    bVar2 = iVar1 != 0;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar2;\n  }\n                    \n  FUN_0002dd10();\n}" (primitive_type "bool") (function_declarator "FUN_0001d2a0(int param_1,undefined4 param_2,undefined4 *param_3)" (identifier "FUN_0001d2a0") (parameter_list "(int param_1,undefined4 param_2,undefined4 *param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  bool bVar2;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  bVar2 = false;\n  if (param_1 != 0) {\n    local_24 = param_2;\n    local_1c = param_3[0x17];\n    local_20 = param_3[0x16];\n    local_14 = param_3[1];\n    local_18 = *param_3;\n    iVar1 = FUN_0001e310(param_1,&local_24);\n    bVar2 = iVar1 != 0;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar2;\n  }\n                    \n  FUN_0002dd10();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "bool bVar2;" (primitive_type "bool") (identifier "bVar2") (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (identifier "local_24") (; ";")) (declaration "undefined4 local_20;" (type_identifier "undefined4") (identifier "local_20") (; ";")) (declaration "undefined4 local_1c;" (type_identifier "undefined4") (identifier "local_1c") (; ";")) (declaration "undefined4 local_18;" (type_identifier "undefined4") (identifier "local_18") (; ";")) (declaration "undefined4 local_14;" (type_identifier "undefined4") (identifier "local_14") (; ";")) (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")) () ")"))))) (; ";")) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" (identifier "bVar2") (= "=") (false "false")) (; ";")) (if_statement "if (param_1 != 0) {\n    local_24 = param_2;\n    local_1c = param_3[0x17];\n    local_20 = param_3[0x16];\n    local_14 = param_3[1];\n    local_18 = *param_3;\n    iVar1 = FUN_0001e310(param_1,&local_24);\n    bVar2 = iVar1 != 0;\n  }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    local_24 = param_2;\n    local_1c = param_3[0x17];\n    local_20 = param_3[0x16];\n    local_14 = param_3[1];\n    local_18 = *param_3;\n    iVar1 = FUN_0001e310(param_1,&local_24);\n    bVar2 = iVar1 != 0;\n  }" ({ "{") (expression_statement "local_24 = param_2;" (assignment_expression "local_24 = param_2" (identifier "local_24") (= "=") (identifier "param_2")) (; ";")) (expression_statement "local_1c = param_3[0x17];" (assignment_expression "local_1c = param_3[0x17]" (identifier "local_1c") (= "=") (subscript_expression "param_3[0x17]" (identifier "param_3") ([ "[") (number_literal "0x17") (] "]"))) (; ";")) (expression_statement "local_20 = param_3[0x16];" (assignment_expression "local_20 = param_3[0x16]" (identifier "local_20") (= "=") (subscript_expression "param_3[0x16]" (identifier "param_3") ([ "[") (number_literal "0x16") (] "]"))) (; ";")) (expression_statement "local_14 = param_3[1];" (assignment_expression "local_14 = param_3[1]" (identifier "local_14") (= "=") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "local_18 = *param_3;" (assignment_expression "local_18 = *param_3" (identifier "local_18") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (expression_statement "iVar1 = FUN_0001e310(param_1,&local_24);" (assignment_expression "iVar1 = FUN_0001e310(param_1,&local_24)" (identifier "iVar1") (= "=") (call_expression "FUN_0001e310(param_1,&local_24)" (identifier "FUN_0001e310") (argument_list "(param_1,&local_24)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")")))) (; ";")) (expression_statement "bVar2 = iVar1 != 0;" (assignment_expression "bVar2 = iVar1 != 0" (identifier "bVar2") (= "=") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) (; ";")) (} "}"))) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar2;\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 bVar2;\n  }" ({ "{") (return_statement "return bVar2;" (return "return") (identifier "bVar2") (; ";")) (} "}"))) (expression_statement "FUN_0002dd10();" (call_expression "FUN_0002dd10()" (identifier "FUN_0002dd10") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

type_1 function_1(type_2 *var_2,char *file,type_3 *stats)

{
  int var_5;
  void *var_4;
  int var_1;
  type_1 _Var3;
  type_4 new_ent;
  
  var_5 = *(int *)(var_1 + 0x14);
  _Var3 = false;
  if (var_2 != (type_2 *)0x0) {
    new_ent.name = file;
    new_ent.st_ino._4_4_ = *(type_5 *)((int)&stats->st_ino + 4);
    new_ent.st_ino._0_4_ = (type_5)stats->st_ino;
    new_ent.st_dev._4_4_ = *(type_5 *)((int)&stats->st_dev + 4);
    new_ent.st_dev._0_4_ = (type_5)stats->st_dev;
    var_4 = var_3(var_2,&new_ent);
    _Var3 = var_4 != (void *)0x0;
  }
  if (var_5 == *(int *)(var_1 + 0x14)) {
    return _Var3;
  }
                    /* WARNING: Subroutine does not return */
  var_6();
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (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))))))) (expression_statement (assignment_expression left: (identifier) right: (false))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) 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 */

bool MASKED(int param_1,undefined4 param_2,undefined4 *param_3)

{
  int iVar1;
  int in_GS_OFFSET;
  bool bVar2;
  undefined4 local_24;
  undefined4 local_20;
  undefined4 local_1c;
  undefined4 local_18;
  undefined4 local_14;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  bVar2 = false;
  if (param_1 != 0) {
    local_24 = param_2;
    local_1c = param_3[0x17];
    local_20 = param_3[0x16];
    local_14 = param_3[1];
    local_18 = *param_3;
    iVar1 = FUN_0001e310(param_1,&local_24);
    bVar2 = iVar1 != 0;
  }
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return bVar2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0002dd10();
}

