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

bool gold::get_mtime(char *filename,Timespec *mtime)

{
  int iVar1;
  stat file_stat;
  
  iVar1 = __xstat64(3,filename,(stat64 *)&file_stat);
  if (-1 < iVar1) {
    mtime->seconds = file_stat.st_mtim.tv_sec;
    mtime->nanoseconds = file_stat.st_mtim.tv_nsec;
  }
  return -1 < iVar1;
}



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

bool FUN_00074f20(char *param_1,__time_t *param_2)

{
  int iVar1;
  stat64 local_6c;
  undefined4 uStack_c;
  
  uStack_c = 0x74f27;
  iVar1 = __xstat64(3,param_1,&local_6c);
  if (-1 < iVar1) {
    *param_2 = local_6c.st_mtim.tv_sec;
    param_2[1] = local_6c.st_mtim.tv_nsec;
  }
  return -1 < iVar1;
}


PUSH ESI
PUSH EBX
CALL 0x00036f20
ADD EBX,0x33a0d9
SUB ESP,0x68
LEA EAX,[ESP + 0x4]
MOV ESI,dword ptr [ESP + 0x78]
PUSH EAX
PUSH dword ptr [ESP + 0x78]
PUSH 0x3
CALL 0x0002a1c0
ADD ESP,0x10
XOR EDX,EDX
TEST EAX,EAX
JS 0x00074f5f
MOV EAX,dword ptr [ESP + 0x48]
MOV EDX,0x1
MOV dword ptr [ESI],EAX
MOV EAX,dword ptr [ESP + 0x4c]
MOV dword ptr [ESI + 0x4],EAX
ADD ESP,0x64
MOV EAX,EDX
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbool FUN_00074f20(char *param_1,__time_t *param_2)\n\n{\n  int iVar1;\n  stat64 local_6c;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x74f27;\n  iVar1 = __xstat64(3,param_1,&local_6c);\n  if (-1 < iVar1) {\n    *param_2 = local_6c.st_mtim.tv_sec;\n    param_2[1] = local_6c.st_mtim.tv_nsec;\n  }\n  return -1 < iVar1;\n}\n\n" comment (function_definition "bool FUN_00074f20(char *param_1,__time_t *param_2)\n\n{\n  int iVar1;\n  stat64 local_6c;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x74f27;\n  iVar1 = __xstat64(3,param_1,&local_6c);\n  if (-1 < iVar1) {\n    *param_2 = local_6c.st_mtim.tv_sec;\n    param_2[1] = local_6c.st_mtim.tv_nsec;\n  }\n  return -1 < iVar1;\n}" primitive_type (function_declarator "FUN_00074f20(char *param_1,__time_t *param_2)" identifier (parameter_list "(char *param_1,__time_t *param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "__time_t *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  stat64 local_6c;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x74f27;\n  iVar1 = __xstat64(3,param_1,&local_6c);\n  if (-1 < iVar1) {\n    *param_2 = local_6c.st_mtim.tv_sec;\n    param_2[1] = local_6c.st_mtim.tv_nsec;\n  }\n  return -1 < iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "stat64 local_6c;" type_identifier identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x74f27;" (assignment_expression "uStack_c = 0x74f27" identifier = number_literal) ;) (expression_statement "iVar1 = __xstat64(3,param_1,&local_6c);" (assignment_expression "iVar1 = __xstat64(3,param_1,&local_6c)" identifier = (call_expression "__xstat64(3,param_1,&local_6c)" identifier (argument_list "(3,param_1,&local_6c)" ( number_literal , identifier , (pointer_expression "&local_6c" & identifier) )))) ;) (if_statement "if (-1 < iVar1) {\n    *param_2 = local_6c.st_mtim.tv_sec;\n    param_2[1] = local_6c.st_mtim.tv_nsec;\n  }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n    *param_2 = local_6c.st_mtim.tv_sec;\n    param_2[1] = local_6c.st_mtim.tv_nsec;\n  }" { (expression_statement "*param_2 = local_6c.st_mtim.tv_sec;" (assignment_expression "*param_2 = local_6c.st_mtim.tv_sec" (pointer_expression "*param_2" * identifier) = (field_expression "local_6c.st_mtim.tv_sec" (field_expression "local_6c.st_mtim" identifier . field_identifier) . field_identifier)) ;) (expression_statement "param_2[1] = local_6c.st_mtim.tv_nsec;" (assignment_expression "param_2[1] = local_6c.st_mtim.tv_nsec" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (field_expression "local_6c.st_mtim.tv_nsec" (field_expression "local_6c.st_mtim" identifier . field_identifier) . field_identifier)) ;) })) (return_statement "return -1 < iVar1;" return (binary_expression "-1 < iVar1" number_literal < identifier) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nbool gold::get_mtime(char *filename,Timespec *mtime)\n\n{\n  int iVar1;\n  stat file_stat;\n  \n  iVar1 = __xstat64(3,filename,(stat64 *)&file_stat);\n  if (-1 < iVar1) {\n    mtime->seconds = file_stat.st_mtim.tv_sec;\n    mtime->nanoseconds = file_stat.st_mtim.tv_nsec;\n  }\n  return -1 < iVar1;\n}\n\n" comment comment (function_definition "bool gold::get_mtime(char *filename,Timespec *mtime)\n\n{\n  int iVar1;\n  stat file_stat;\n  \n  iVar1 = __xstat64(3,filename,(stat64 *)&file_stat);\n  if (-1 < iVar1) {\n    mtime->seconds = file_stat.st_mtim.tv_sec;\n    mtime->nanoseconds = file_stat.st_mtim.tv_nsec;\n  }\n  return -1 < iVar1;\n}" primitive_type (ERROR "gold::" identifier : :) (function_declarator "get_mtime(char *filename,Timespec *mtime)" identifier (parameter_list "(char *filename,Timespec *mtime)" ( (parameter_declaration "char *filename" primitive_type (pointer_declarator "*filename" * identifier)) , (parameter_declaration "Timespec *mtime" type_identifier (pointer_declarator "*mtime" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  stat file_stat;\n  \n  iVar1 = __xstat64(3,filename,(stat64 *)&file_stat);\n  if (-1 < iVar1) {\n    mtime->seconds = file_stat.st_mtim.tv_sec;\n    mtime->nanoseconds = file_stat.st_mtim.tv_nsec;\n  }\n  return -1 < iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "stat file_stat;" type_identifier identifier ;) (expression_statement "iVar1 = __xstat64(3,filename,(stat64 *)&file_stat);" (assignment_expression "iVar1 = __xstat64(3,filename,(stat64 *)&file_stat)" identifier = (call_expression "__xstat64(3,filename,(stat64 *)&file_stat)" identifier (argument_list "(3,filename,(stat64 *)&file_stat)" ( number_literal , identifier , (cast_expression "(stat64 *)&file_stat" ( (type_descriptor "stat64 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&file_stat" & identifier)) )))) ;) (if_statement "if (-1 < iVar1) {\n    mtime->seconds = file_stat.st_mtim.tv_sec;\n    mtime->nanoseconds = file_stat.st_mtim.tv_nsec;\n  }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n    mtime->seconds = file_stat.st_mtim.tv_sec;\n    mtime->nanoseconds = file_stat.st_mtim.tv_nsec;\n  }" { (expression_statement "mtime->seconds = file_stat.st_mtim.tv_sec;" (assignment_expression "mtime->seconds = file_stat.st_mtim.tv_sec" (field_expression "mtime->seconds" identifier -> field_identifier) = (field_expression "file_stat.st_mtim.tv_sec" (field_expression "file_stat.st_mtim" identifier . field_identifier) . field_identifier)) ;) (expression_statement "mtime->nanoseconds = file_stat.st_mtim.tv_nsec;" (assignment_expression "mtime->nanoseconds = file_stat.st_mtim.tv_nsec" (field_expression "mtime->nanoseconds" identifier -> field_identifier) = (field_expression "file_stat.st_mtim.tv_nsec" (field_expression "file_stat.st_mtim" identifier . field_identifier) . field_identifier)) ;) })) (return_statement "return -1 < iVar1;" return (binary_expression "-1 < iVar1" number_literal < identifier) ;) })))
(translation_unit "bool FUN_00074f20(char *param_1,__time_t *param_2)\n\n{\n  int iVar1;\n  stat64 local_6c;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x74f27;\n  iVar1 = __xstat64(3,param_1,&local_6c);\n  if (-1 < iVar1) {\n    *param_2 = local_6c.st_mtim.tv_sec;\n    param_2[1] = local_6c.st_mtim.tv_nsec;\n  }\n  return -1 < iVar1;\n}\n\n" (function_definition "bool FUN_00074f20(char *param_1,__time_t *param_2)\n\n{\n  int iVar1;\n  stat64 local_6c;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x74f27;\n  iVar1 = __xstat64(3,param_1,&local_6c);\n  if (-1 < iVar1) {\n    *param_2 = local_6c.st_mtim.tv_sec;\n    param_2[1] = local_6c.st_mtim.tv_nsec;\n  }\n  return -1 < iVar1;\n}" primitive_type (function_declarator "FUN_00074f20(char *param_1,__time_t *param_2)" identifier (parameter_list "(char *param_1,__time_t *param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "__time_t *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  stat64 local_6c;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x74f27;\n  iVar1 = __xstat64(3,param_1,&local_6c);\n  if (-1 < iVar1) {\n    *param_2 = local_6c.st_mtim.tv_sec;\n    param_2[1] = local_6c.st_mtim.tv_nsec;\n  }\n  return -1 < iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "stat64 local_6c;" type_identifier identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x74f27;" (assignment_expression "uStack_c = 0x74f27" identifier = number_literal) ;) (expression_statement "iVar1 = __xstat64(3,param_1,&local_6c);" (assignment_expression "iVar1 = __xstat64(3,param_1,&local_6c)" identifier = (call_expression "__xstat64(3,param_1,&local_6c)" identifier (argument_list "(3,param_1,&local_6c)" ( number_literal , identifier , (pointer_expression "&local_6c" & identifier) )))) ;) (if_statement "if (-1 < iVar1) {\n    *param_2 = local_6c.st_mtim.tv_sec;\n    param_2[1] = local_6c.st_mtim.tv_nsec;\n  }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n    *param_2 = local_6c.st_mtim.tv_sec;\n    param_2[1] = local_6c.st_mtim.tv_nsec;\n  }" { (expression_statement "*param_2 = local_6c.st_mtim.tv_sec;" (assignment_expression "*param_2 = local_6c.st_mtim.tv_sec" (pointer_expression "*param_2" * identifier) = (field_expression "local_6c.st_mtim.tv_sec" (field_expression "local_6c.st_mtim" identifier . field_identifier) . field_identifier)) ;) (expression_statement "param_2[1] = local_6c.st_mtim.tv_nsec;" (assignment_expression "param_2[1] = local_6c.st_mtim.tv_nsec" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (field_expression "local_6c.st_mtim.tv_nsec" (field_expression "local_6c.st_mtim" identifier . field_identifier) . field_identifier)) ;) })) (return_statement "return -1 < iVar1;" return (binary_expression "-1 < iVar1" number_literal < identifier) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_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 LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (field_expression (field_expression IDENT . field_identifier) . field_identifier)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (field_expression (field_expression IDENT . field_identifier) . field_identifier)) ;) })) (return_statement return (binary_expression LIT < IDENT) ;) })))
(function_definition "bool FUN_00074f20(char *param_1,__time_t *param_2)\n\n{\n  int iVar1;\n  stat64 local_6c;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x74f27;\n  iVar1 = __xstat64(3,param_1,&local_6c);\n  if (-1 < iVar1) {\n    *param_2 = local_6c.st_mtim.tv_sec;\n    param_2[1] = local_6c.st_mtim.tv_nsec;\n  }\n  return -1 < iVar1;\n}" (primitive_type "bool") (function_declarator "FUN_00074f20(char *param_1,__time_t *param_2)" (identifier "FUN_00074f20") (parameter_list "(char *param_1,__time_t *param_2)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "__time_t *param_2" (type_identifier "__time_t") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  stat64 local_6c;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x74f27;\n  iVar1 = __xstat64(3,param_1,&local_6c);\n  if (-1 < iVar1) {\n    *param_2 = local_6c.st_mtim.tv_sec;\n    param_2[1] = local_6c.st_mtim.tv_nsec;\n  }\n  return -1 < iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "stat64 local_6c;" (type_identifier "stat64") (identifier "local_6c") (; ";")) (declaration "undefined4 uStack_c;" (type_identifier "undefined4") (identifier "uStack_c") (; ";")) (expression_statement "uStack_c = 0x74f27;" (assignment_expression "uStack_c = 0x74f27" (identifier "uStack_c") (= "=") (number_literal "0x74f27")) (; ";")) (expression_statement "iVar1 = __xstat64(3,param_1,&local_6c);" (assignment_expression "iVar1 = __xstat64(3,param_1,&local_6c)" (identifier "iVar1") (= "=") (call_expression "__xstat64(3,param_1,&local_6c)" (identifier "__xstat64") (argument_list "(3,param_1,&local_6c)" (( "(") (number_literal "3") (, ",") (identifier "param_1") (, ",") (pointer_expression "&local_6c" (& "&") (identifier "local_6c")) () ")")))) (; ";")) (if_statement "if (-1 < iVar1) {\n    *param_2 = local_6c.st_mtim.tv_sec;\n    param_2[1] = local_6c.st_mtim.tv_nsec;\n  }" (if "if") (parenthesized_expression "(-1 < iVar1)" (( "(") (binary_expression "-1 < iVar1" (number_literal "-1") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n    *param_2 = local_6c.st_mtim.tv_sec;\n    param_2[1] = local_6c.st_mtim.tv_nsec;\n  }" ({ "{") (expression_statement "*param_2 = local_6c.st_mtim.tv_sec;" (assignment_expression "*param_2 = local_6c.st_mtim.tv_sec" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (field_expression "local_6c.st_mtim.tv_sec" (field_expression "local_6c.st_mtim" (identifier "local_6c") (. ".") (field_identifier "st_mtim")) (. ".") (field_identifier "tv_sec"))) (; ";")) (expression_statement "param_2[1] = local_6c.st_mtim.tv_nsec;" (assignment_expression "param_2[1] = local_6c.st_mtim.tv_nsec" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (field_expression "local_6c.st_mtim.tv_nsec" (field_expression "local_6c.st_mtim" (identifier "local_6c") (. ".") (field_identifier "st_mtim")) (. ".") (field_identifier "tv_nsec"))) (; ";")) (} "}"))) (return_statement "return -1 < iVar1;" (return "return") (binary_expression "-1 < iVar1" (number_literal "-1") (< "<") (identifier "iVar1")) (; ";")) (} "}")))

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

bool gold::function_1(char *filename,type_1 *mtime)

{
  int var_2;
  type_2 file_stat;
  
  var_2 = var_1(3,filename,(type_3 *)&file_stat);
  if (-1 < var_2) {
    mtime->seconds = file_stat.st_mtim.tv_sec;
    mtime->nanoseconds = file_stat.st_mtim.tv_nsec;
  }
  return -1 < var_2;
}


(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))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_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: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (field_expression argument: (field_expression argument: (identifier) field: (field_identifier)) field: (field_identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (field_expression argument: (field_expression argument: (identifier) field: (field_identifier)) field: (field_identifier)))))) (return_statement (binary_expression left: (number_literal) right: (identifier))))))

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

bool MASKED(char *param_1,__time_t *param_2)

{
  int iVar1;
  stat64 local_6c;
  undefined4 uStack_c;
  
  uStack_c = 0x74f27;
  iVar1 = __xstat64(3,param_1,&local_6c);
  if (-1 < iVar1) {
    *param_2 = local_6c.st_mtim.tv_sec;
    param_2[1] = local_6c.st_mtim.tv_nsec;
  }
  return -1 < iVar1;
}

