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

_Bool __regparm3 atdir_eq(char *dir,ptrdiff_t dirlen)

{
  int iVar1;
  _Bool _Var2;
  
  if (dirlen == 0) {
    dirlen = 1;
    dir = ".";
  }
  iVar1 = memcmp(dfname,dir,dirlen);
  _Var2 = false;
  if (iVar1 == 0) {
    _Var2 = dfname[dirlen] == '\0';
  }
  return _Var2;
}



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

bool __regparm3 FUN_00014440(undefined *param_1,size_t param_2)

{
  int iVar1;
  bool bVar2;
  
  if (param_2 == 0) {
    param_2 = 1;
    param_1 = &DAT_00023290;
  }
  iVar1 = memcmp(&DAT_00029560,param_1,param_2);
  bVar2 = false;
  if (iVar1 == 0) {
    bVar2 = (&DAT_00029560)[param_2] == '\0';
  }
  return bVar2;
}


PUSH ESI
PUSH EBX
CALL 0x00012e10
ADD EBX,0x14bb9
SUB ESP,0x4
TEST EDX,EDX
JZ 0x00014488
MOV ESI,EDX
SUB ESP,0x4
PUSH EDX
PUSH EAX
LEA EAX,[EBX + 0x560]
PUSH EAX
CALL 0x00012170
ADD ESP,0x10
XOR EDX,EDX
TEST EAX,EAX
JNZ 0x0001447b
CMP byte ptr [EBX + ESI*0x1 + 0x560],0x0
SETZ DL
ADD ESP,0x4
MOV EAX,EDX
POP EBX
POP ESI
RET
MOV EDX,0x1
MOV ESI,0x1
LEA EAX,[EBX + 0xffffa290]
JMP 0x00014456
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbool __regparm3 FUN_00014440(undefined *param_1,size_t param_2)\n\n{\n  int iVar1;\n  bool bVar2;\n  \n  if (param_2 == 0) {\n    param_2 = 1;\n    param_1 = &DAT_00023290;\n  }\n  iVar1 = memcmp(&DAT_00029560,param_1,param_2);\n  bVar2 = false;\n  if (iVar1 == 0) {\n    bVar2 = (&DAT_00029560)[param_2] == '\0';\n  }\n  return bVar2;\n}\n\n" comment (function_definition "bool __regparm3 FUN_00014440(undefined *param_1,size_t param_2)\n\n{\n  int iVar1;\n  bool bVar2;\n  \n  if (param_2 == 0) {\n    param_2 = 1;\n    param_1 = &DAT_00023290;\n  }\n  iVar1 = memcmp(&DAT_00029560,param_1,param_2);\n  bVar2 = false;\n  if (iVar1 == 0) {\n    bVar2 = (&DAT_00029560)[param_2] == '\0';\n  }\n  return bVar2;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00014440(undefined *param_1,size_t param_2)" identifier (parameter_list "(undefined *param_1,size_t param_2)" ( (parameter_declaration "undefined *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "size_t param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  bool bVar2;\n  \n  if (param_2 == 0) {\n    param_2 = 1;\n    param_1 = &DAT_00023290;\n  }\n  iVar1 = memcmp(&DAT_00029560,param_1,param_2);\n  bVar2 = false;\n  if (iVar1 == 0) {\n    bVar2 = (&DAT_00029560)[param_2] == '\0';\n  }\n  return bVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (if_statement "if (param_2 == 0) {\n    param_2 = 1;\n    param_1 = &DAT_00023290;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    param_2 = 1;\n    param_1 = &DAT_00023290;\n  }" { (expression_statement "param_2 = 1;" (assignment_expression "param_2 = 1" identifier = number_literal) ;) (expression_statement "param_1 = &DAT_00023290;" (assignment_expression "param_1 = &DAT_00023290" identifier = (pointer_expression "&DAT_00023290" & identifier)) ;) })) (expression_statement "iVar1 = memcmp(&DAT_00029560,param_1,param_2);" (assignment_expression "iVar1 = memcmp(&DAT_00029560,param_1,param_2)" identifier = (call_expression "memcmp(&DAT_00029560,param_1,param_2)" identifier (argument_list "(&DAT_00029560,param_1,param_2)" ( (pointer_expression "&DAT_00029560" & identifier) , identifier , identifier )))) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (if_statement "if (iVar1 == 0) {\n    bVar2 = (&DAT_00029560)[param_2] == '\0';\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    bVar2 = (&DAT_00029560)[param_2] == '\0';\n  }" { (expression_statement "bVar2 = (&DAT_00029560)[param_2] == '\0';" (assignment_expression "bVar2 = (&DAT_00029560)[param_2] == '\0'" identifier = (binary_expression "(&DAT_00029560)[param_2] == '\0'" (subscript_expression "(&DAT_00029560)[param_2]" (parenthesized_expression "(&DAT_00029560)" ( (pointer_expression "&DAT_00029560" & identifier) )) [ identifier ]) == (char_literal "'\0'" ' escape_sequence '))) ;) })) (return_statement "return bVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\n_Bool __regparm3 atdir_eq(char *dir,ptrdiff_t dirlen)\n\n{\n  int iVar1;\n  _Bool _Var2;\n  \n  if (dirlen == 0) {\n    dirlen = 1;\n    dir = ".";\n  }\n  iVar1 = memcmp(dfname,dir,dirlen);\n  _Var2 = false;\n  if (iVar1 == 0) {\n    _Var2 = dfname[dirlen] == '\0';\n  }\n  return _Var2;\n}\n\n" comment (function_definition "_Bool __regparm3 atdir_eq(char *dir,ptrdiff_t dirlen)\n\n{\n  int iVar1;\n  _Bool _Var2;\n  \n  if (dirlen == 0) {\n    dirlen = 1;\n    dir = ".";\n  }\n  iVar1 = memcmp(dfname,dir,dirlen);\n  _Var2 = false;\n  if (iVar1 == 0) {\n    _Var2 = dfname[dirlen] == '\0';\n  }\n  return _Var2;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "atdir_eq(char *dir,ptrdiff_t dirlen)" identifier (parameter_list "(char *dir,ptrdiff_t dirlen)" ( (parameter_declaration "char *dir" primitive_type (pointer_declarator "*dir" * identifier)) , (parameter_declaration "ptrdiff_t dirlen" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  _Bool _Var2;\n  \n  if (dirlen == 0) {\n    dirlen = 1;\n    dir = ".";\n  }\n  iVar1 = memcmp(dfname,dir,dirlen);\n  _Var2 = false;\n  if (iVar1 == 0) {\n    _Var2 = dfname[dirlen] == '\0';\n  }\n  return _Var2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "_Bool _Var2;" type_identifier identifier ;) (if_statement "if (dirlen == 0) {\n    dirlen = 1;\n    dir = ".";\n  }" if (parenthesized_expression "(dirlen == 0)" ( (binary_expression "dirlen == 0" identifier == number_literal) )) (compound_statement "{\n    dirlen = 1;\n    dir = ".";\n  }" { (expression_statement "dirlen = 1;" (assignment_expression "dirlen = 1" identifier = number_literal) ;) (expression_statement "dir = ".";" (assignment_expression "dir = "."" identifier = (string_literal ""."" " string_content ")) ;) })) (expression_statement "iVar1 = memcmp(dfname,dir,dirlen);" (assignment_expression "iVar1 = memcmp(dfname,dir,dirlen)" identifier = (call_expression "memcmp(dfname,dir,dirlen)" identifier (argument_list "(dfname,dir,dirlen)" ( identifier , identifier , identifier )))) ;) (expression_statement "_Var2 = false;" (assignment_expression "_Var2 = false" identifier = false) ;) (if_statement "if (iVar1 == 0) {\n    _Var2 = dfname[dirlen] == '\0';\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    _Var2 = dfname[dirlen] == '\0';\n  }" { (expression_statement "_Var2 = dfname[dirlen] == '\0';" (assignment_expression "_Var2 = dfname[dirlen] == '\0'" identifier = (binary_expression "dfname[dirlen] == '\0'" (subscript_expression "dfname[dirlen]" identifier [ identifier ]) == (char_literal "'\0'" ' escape_sequence '))) ;) })) (return_statement "return _Var2;" return identifier ;) })))
(translation_unit "bool __regparm3 FUN_00014440(undefined *param_1,size_t param_2)\n\n{\n  int iVar1;\n  bool bVar2;\n  \n  if (param_2 == 0) {\n    param_2 = 1;\n    param_1 = &DAT_00023290;\n  }\n  iVar1 = memcmp(&DAT_00029560,param_1,param_2);\n  bVar2 = false;\n  if (iVar1 == 0) {\n    bVar2 = (&DAT_00029560)[param_2] == '\0';\n  }\n  return bVar2;\n}\n\n" (function_definition "bool __regparm3 FUN_00014440(undefined *param_1,size_t param_2)\n\n{\n  int iVar1;\n  bool bVar2;\n  \n  if (param_2 == 0) {\n    param_2 = 1;\n    param_1 = &DAT_00023290;\n  }\n  iVar1 = memcmp(&DAT_00029560,param_1,param_2);\n  bVar2 = false;\n  if (iVar1 == 0) {\n    bVar2 = (&DAT_00029560)[param_2] == '\0';\n  }\n  return bVar2;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00014440(undefined *param_1,size_t param_2)" identifier (parameter_list "(undefined *param_1,size_t param_2)" ( (parameter_declaration "undefined *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "size_t param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  bool bVar2;\n  \n  if (param_2 == 0) {\n    param_2 = 1;\n    param_1 = &DAT_00023290;\n  }\n  iVar1 = memcmp(&DAT_00029560,param_1,param_2);\n  bVar2 = false;\n  if (iVar1 == 0) {\n    bVar2 = (&DAT_00029560)[param_2] == '\0';\n  }\n  return bVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (if_statement "if (param_2 == 0) {\n    param_2 = 1;\n    param_1 = &DAT_00023290;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    param_2 = 1;\n    param_1 = &DAT_00023290;\n  }" { (expression_statement "param_2 = 1;" (assignment_expression "param_2 = 1" identifier = number_literal) ;) (expression_statement "param_1 = &DAT_00023290;" (assignment_expression "param_1 = &DAT_00023290" identifier = (pointer_expression "&DAT_00023290" & identifier)) ;) })) (expression_statement "iVar1 = memcmp(&DAT_00029560,param_1,param_2);" (assignment_expression "iVar1 = memcmp(&DAT_00029560,param_1,param_2)" identifier = (call_expression "memcmp(&DAT_00029560,param_1,param_2)" identifier (argument_list "(&DAT_00029560,param_1,param_2)" ( (pointer_expression "&DAT_00029560" & identifier) , identifier , identifier )))) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (if_statement "if (iVar1 == 0) {\n    bVar2 = (&DAT_00029560)[param_2] == '\0';\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    bVar2 = (&DAT_00029560)[param_2] == '\0';\n  }" { (expression_statement "bVar2 = (&DAT_00029560)[param_2] == '\0';" (assignment_expression "bVar2 = (&DAT_00029560)[param_2] == '\0'" identifier = (binary_expression "(&DAT_00029560)[param_2] == '\0'" (subscript_expression "(&DAT_00029560)[param_2]" (parenthesized_expression "(&DAT_00029560)" ( (pointer_expression "&DAT_00029560" & identifier) )) [ identifier ]) == (char_literal "'\0'" ' escape_sequence '))) ;) })) (return_statement "return bVar2;" return identifier ;) })))
(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 ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ]) == (char_literal ' escape_sequence '))) ;) })) (return_statement return IDENT ;) })))
(function_definition "bool __regparm3 FUN_00014440(undefined *param_1,size_t param_2)\n\n{\n  int iVar1;\n  bool bVar2;\n  \n  if (param_2 == 0) {\n    param_2 = 1;\n    param_1 = &DAT_00023290;\n  }\n  iVar1 = memcmp(&DAT_00029560,param_1,param_2);\n  bVar2 = false;\n  if (iVar1 == 0) {\n    bVar2 = (&DAT_00029560)[param_2] == '\0';\n  }\n  return bVar2;\n}" (primitive_type "bool") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00014440(undefined *param_1,size_t param_2)" (identifier "FUN_00014440") (parameter_list "(undefined *param_1,size_t param_2)" (( "(") (parameter_declaration "undefined *param_1" (type_identifier "undefined") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "size_t param_2" (primitive_type "size_t") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  bool bVar2;\n  \n  if (param_2 == 0) {\n    param_2 = 1;\n    param_1 = &DAT_00023290;\n  }\n  iVar1 = memcmp(&DAT_00029560,param_1,param_2);\n  bVar2 = false;\n  if (iVar1 == 0) {\n    bVar2 = (&DAT_00029560)[param_2] == '\0';\n  }\n  return bVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "bool bVar2;" (primitive_type "bool") (identifier "bVar2") (; ";")) (if_statement "if (param_2 == 0) {\n    param_2 = 1;\n    param_1 = &DAT_00023290;\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    param_2 = 1;\n    param_1 = &DAT_00023290;\n  }" ({ "{") (expression_statement "param_2 = 1;" (assignment_expression "param_2 = 1" (identifier "param_2") (= "=") (number_literal "1")) (; ";")) (expression_statement "param_1 = &DAT_00023290;" (assignment_expression "param_1 = &DAT_00023290" (identifier "param_1") (= "=") (pointer_expression "&DAT_00023290" (& "&") (identifier "DAT_00023290"))) (; ";")) (} "}"))) (expression_statement "iVar1 = memcmp(&DAT_00029560,param_1,param_2);" (assignment_expression "iVar1 = memcmp(&DAT_00029560,param_1,param_2)" (identifier "iVar1") (= "=") (call_expression "memcmp(&DAT_00029560,param_1,param_2)" (identifier "memcmp") (argument_list "(&DAT_00029560,param_1,param_2)" (( "(") (pointer_expression "&DAT_00029560" (& "&") (identifier "DAT_00029560")) (, ",") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" (identifier "bVar2") (= "=") (false "false")) (; ";")) (if_statement "if (iVar1 == 0) {\n    bVar2 = (&DAT_00029560)[param_2] == '\0';\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    bVar2 = (&DAT_00029560)[param_2] == '\0';\n  }" ({ "{") (expression_statement "bVar2 = (&DAT_00029560)[param_2] == '\0';" (assignment_expression "bVar2 = (&DAT_00029560)[param_2] == '\0'" (identifier "bVar2") (= "=") (binary_expression "(&DAT_00029560)[param_2] == '\0'" (subscript_expression "(&DAT_00029560)[param_2]" (parenthesized_expression "(&DAT_00029560)" (( "(") (pointer_expression "&DAT_00029560" (& "&") (identifier "DAT_00029560")) () ")")) ([ "[") (identifier "param_2") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")))) (; ";")) (} "}"))) (return_statement "return bVar2;" (return "return") (identifier "bVar2") (; ";")) (} "}")))

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

type_1 __regparm3 function_1(char *dir,ptrdiff_t var_1)

{
  int var_3;
  type_1 _Var2;
  
  if (var_1 == 0) {
    var_1 = 1;
    dir = ".";
  }
  var_3 = var_2(dfname,dir,var_1);
  _Var2 = false;
  if (var_3 == 0) {
    _Var2 = dfname[var_1] == '\0';
  }
  return _Var2;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) 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)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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 (pointer_expression argument: (identifier)) (identifier) (identifier))))) (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: (binary_expression left: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (identifier)) right: (char_literal (escape_sequence))))))) (return_statement (identifier)))))

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

bool __regparm3 MASKED(undefined *param_1,size_t param_2)

{
  int iVar1;
  bool bVar2;
  
  if (param_2 == 0) {
    param_2 = 1;
    param_1 = &DAT_00023290;
  }
  iVar1 = memcmp(&DAT_00029560,param_1,param_2);
  bVar2 = false;
  if (iVar1 == 0) {
    bVar2 = (&DAT_00029560)[param_2] == '\0';
  }
  return bVar2;
}

