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

bool gold::Layout::match_file_name(Relobj *relobj,char *match)

{
  char *__s1;
  size_t __n;
  int iVar1;
  size_t sVar2;
  bool bVar3;
  
  __s1 = lbasename((relobj->super_Object).name_._M_dataplus._M_p);
  __n = strlen(match);
  bVar3 = false;
  iVar1 = strncmp(__s1,match,__n);
  if (iVar1 == 0) {
    sVar2 = strlen(__s1);
    if ((__n + 2 == sVar2) || (__n + 3 == sVar2)) {
      bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e;
    }
  }
  return bVar3;
}



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

bool FUN_0007d960(int param_1,char *param_2)

{
  char *__s1;
  size_t __n;
  int iVar1;
  size_t sVar2;
  bool bVar3;
  
  __s1 = (char *)FUN_0017dd20(*(undefined4 *)(param_1 + 4));
  __n = strlen(param_2);
  bVar3 = false;
  iVar1 = strncmp(__s1,param_2,__n);
  if (iVar1 == 0) {
    sVar2 = strlen(__s1);
    if ((__n + 2 == sVar2) || (__n + 3 == sVar2)) {
      bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e;
    }
  }
  return bVar3;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00032730
ADD EBX,0x284697
SUB ESP,0x18
MOV EAX,dword ptr [ESP + 0x2c]
MOV EBP,dword ptr [ESP + 0x30]
PUSH dword ptr [EAX + 0x4]
CALL 0x0017dd20
MOV dword ptr [ESP],EBP
MOV EDI,EAX
CALL 0x000265f0
ADD ESP,0xc
PUSH EAX
MOV ESI,EAX
PUSH EBP
XOR EBP,EBP
PUSH EDI
CALL 0x00026990
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0007d9c8
SUB ESP,0xc
PUSH EDI
CALL 0x000265f0
LEA EDX,[ESI + 0x2]
ADD ESP,0x10
CMP EDX,EAX
JZ 0x0007d9bc
ADD ESI,0x3
CMP ESI,EAX
JNZ 0x0007d9c8
CMP word ptr [EDI + EAX*0x1 + -0x2],0x6f2e
SETZ AL
MOV EBP,EAX
ADD ESP,0xc
MOV EAX,EBP
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbool FUN_0007d960(int param_1,char *param_2)\n\n{\n  char *__s1;\n  size_t __n;\n  int iVar1;\n  size_t sVar2;\n  bool bVar3;\n  \n  __s1 = (char *)FUN_0017dd20(*(undefined4 *)(param_1 + 4));\n  __n = strlen(param_2);\n  bVar3 = false;\n  iVar1 = strncmp(__s1,param_2,__n);\n  if (iVar1 == 0) {\n    sVar2 = strlen(__s1);\n    if ((__n + 2 == sVar2) || (__n + 3 == sVar2)) {\n      bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e;\n    }\n  }\n  return bVar3;\n}\n\n" comment (function_definition "bool FUN_0007d960(int param_1,char *param_2)\n\n{\n  char *__s1;\n  size_t __n;\n  int iVar1;\n  size_t sVar2;\n  bool bVar3;\n  \n  __s1 = (char *)FUN_0017dd20(*(undefined4 *)(param_1 + 4));\n  __n = strlen(param_2);\n  bVar3 = false;\n  iVar1 = strncmp(__s1,param_2,__n);\n  if (iVar1 == 0) {\n    sVar2 = strlen(__s1);\n    if ((__n + 2 == sVar2) || (__n + 3 == sVar2)) {\n      bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e;\n    }\n  }\n  return bVar3;\n}" primitive_type (function_declarator "FUN_0007d960(int param_1,char *param_2)" identifier (parameter_list "(int param_1,char *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char *__s1;\n  size_t __n;\n  int iVar1;\n  size_t sVar2;\n  bool bVar3;\n  \n  __s1 = (char *)FUN_0017dd20(*(undefined4 *)(param_1 + 4));\n  __n = strlen(param_2);\n  bVar3 = false;\n  iVar1 = strncmp(__s1,param_2,__n);\n  if (iVar1 == 0) {\n    sVar2 = strlen(__s1);\n    if ((__n + 2 == sVar2) || (__n + 3 == sVar2)) {\n      bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e;\n    }\n  }\n  return bVar3;\n}" { (declaration "char *__s1;" primitive_type (pointer_declarator "*__s1" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (expression_statement "__s1 = (char *)FUN_0017dd20(*(undefined4 *)(param_1 + 4));" (assignment_expression "__s1 = (char *)FUN_0017dd20(*(undefined4 *)(param_1 + 4))" identifier = (cast_expression "(char *)FUN_0017dd20(*(undefined4 *)(param_1 + 4))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0017dd20(*(undefined4 *)(param_1 + 4))" identifier (argument_list "(*(undefined4 *)(param_1 + 4))" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) ))))) ;) (expression_statement "__n = strlen(param_2);" (assignment_expression "__n = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" identifier = false) ;) (expression_statement "iVar1 = strncmp(__s1,param_2,__n);" (assignment_expression "iVar1 = strncmp(__s1,param_2,__n)" identifier = (call_expression "strncmp(__s1,param_2,__n)" identifier (argument_list "(__s1,param_2,__n)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    sVar2 = strlen(__s1);\n    if ((__n + 2 == sVar2) || (__n + 3 == sVar2)) {\n      bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e;\n    }\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    sVar2 = strlen(__s1);\n    if ((__n + 2 == sVar2) || (__n + 3 == sVar2)) {\n      bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e;\n    }\n  }" { (expression_statement "sVar2 = strlen(__s1);" (assignment_expression "sVar2 = strlen(__s1)" identifier = (call_expression "strlen(__s1)" identifier (argument_list "(__s1)" ( identifier )))) ;) (if_statement "if ((__n + 2 == sVar2) || (__n + 3 == sVar2)) {\n      bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e;\n    }" if (parenthesized_expression "((__n + 2 == sVar2) || (__n + 3 == sVar2))" ( (binary_expression "(__n + 2 == sVar2) || (__n + 3 == sVar2)" (parenthesized_expression "(__n + 2 == sVar2)" ( (binary_expression "__n + 2 == sVar2" (binary_expression "__n + 2" identifier + number_literal) == identifier) )) || (parenthesized_expression "(__n + 3 == sVar2)" ( (binary_expression "__n + 3 == sVar2" (binary_expression "__n + 3" identifier + number_literal) == identifier) ))) )) (compound_statement "{\n      bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e;\n    }" { (expression_statement "bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e;" (assignment_expression "bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e" identifier = (binary_expression "*(short *)(__s1 + (sVar2 - 2)) == 0x6f2e" (pointer_expression "*(short *)(__s1 + (sVar2 - 2))" * (cast_expression "(short *)(__s1 + (sVar2 - 2))" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__s1 + (sVar2 - 2))" ( (binary_expression "__s1 + (sVar2 - 2)" identifier + (parenthesized_expression "(sVar2 - 2)" ( (binary_expression "sVar2 - 2" identifier - number_literal) ))) )))) == number_literal)) ;) })) })) (return_statement "return bVar3;" return 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::Layout::match_file_name(Relobj *relobj,char *match)\n\n{\n  char *__s1;\n  size_t __n;\n  int iVar1;\n  size_t sVar2;\n  bool bVar3;\n  \n  __s1 = lbasename((relobj->super_Object).name_._M_dataplus._M_p);\n  __n = strlen(match);\n  bVar3 = false;\n  iVar1 = strncmp(__s1,match,__n);\n  if (iVar1 == 0) {\n    sVar2 = strlen(__s1);\n    if ((__n + 2 == sVar2) || (__n + 3 == sVar2)) {\n      bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e;\n    }\n  }\n  return bVar3;\n}\n\n" comment comment (function_definition "bool gold::Layout::match_file_name(Relobj *relobj,char *match)\n\n{\n  char *__s1;\n  size_t __n;\n  int iVar1;\n  size_t sVar2;\n  bool bVar3;\n  \n  __s1 = lbasename((relobj->super_Object).name_._M_dataplus._M_p);\n  __n = strlen(match);\n  bVar3 = false;\n  iVar1 = strncmp(__s1,match,__n);\n  if (iVar1 == 0) {\n    sVar2 = strlen(__s1);\n    if ((__n + 2 == sVar2) || (__n + 3 == sVar2)) {\n      bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e;\n    }\n  }\n  return bVar3;\n}" primitive_type (ERROR "gold::Layout::" identifier : : identifier : :) (function_declarator "match_file_name(Relobj *relobj,char *match)" identifier (parameter_list "(Relobj *relobj,char *match)" ( (parameter_declaration "Relobj *relobj" type_identifier (pointer_declarator "*relobj" * identifier)) , (parameter_declaration "char *match" primitive_type (pointer_declarator "*match" * identifier)) ))) (compound_statement "{\n  char *__s1;\n  size_t __n;\n  int iVar1;\n  size_t sVar2;\n  bool bVar3;\n  \n  __s1 = lbasename((relobj->super_Object).name_._M_dataplus._M_p);\n  __n = strlen(match);\n  bVar3 = false;\n  iVar1 = strncmp(__s1,match,__n);\n  if (iVar1 == 0) {\n    sVar2 = strlen(__s1);\n    if ((__n + 2 == sVar2) || (__n + 3 == sVar2)) {\n      bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e;\n    }\n  }\n  return bVar3;\n}" { (declaration "char *__s1;" primitive_type (pointer_declarator "*__s1" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (expression_statement "__s1 = lbasename((relobj->super_Object).name_._M_dataplus._M_p);" (assignment_expression "__s1 = lbasename((relobj->super_Object).name_._M_dataplus._M_p)" identifier = (call_expression "lbasename((relobj->super_Object).name_._M_dataplus._M_p)" identifier (argument_list "((relobj->super_Object).name_._M_dataplus._M_p)" ( (field_expression "(relobj->super_Object).name_._M_dataplus._M_p" (field_expression "(relobj->super_Object).name_._M_dataplus" (field_expression "(relobj->super_Object).name_" (parenthesized_expression "(relobj->super_Object)" ( (field_expression "relobj->super_Object" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) )))) ;) (expression_statement "__n = strlen(match);" (assignment_expression "__n = strlen(match)" identifier = (call_expression "strlen(match)" identifier (argument_list "(match)" ( identifier )))) ;) (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" identifier = false) ;) (expression_statement "iVar1 = strncmp(__s1,match,__n);" (assignment_expression "iVar1 = strncmp(__s1,match,__n)" identifier = (call_expression "strncmp(__s1,match,__n)" identifier (argument_list "(__s1,match,__n)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    sVar2 = strlen(__s1);\n    if ((__n + 2 == sVar2) || (__n + 3 == sVar2)) {\n      bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e;\n    }\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    sVar2 = strlen(__s1);\n    if ((__n + 2 == sVar2) || (__n + 3 == sVar2)) {\n      bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e;\n    }\n  }" { (expression_statement "sVar2 = strlen(__s1);" (assignment_expression "sVar2 = strlen(__s1)" identifier = (call_expression "strlen(__s1)" identifier (argument_list "(__s1)" ( identifier )))) ;) (if_statement "if ((__n + 2 == sVar2) || (__n + 3 == sVar2)) {\n      bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e;\n    }" if (parenthesized_expression "((__n + 2 == sVar2) || (__n + 3 == sVar2))" ( (binary_expression "(__n + 2 == sVar2) || (__n + 3 == sVar2)" (parenthesized_expression "(__n + 2 == sVar2)" ( (binary_expression "__n + 2 == sVar2" (binary_expression "__n + 2" identifier + number_literal) == identifier) )) || (parenthesized_expression "(__n + 3 == sVar2)" ( (binary_expression "__n + 3 == sVar2" (binary_expression "__n + 3" identifier + number_literal) == identifier) ))) )) (compound_statement "{\n      bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e;\n    }" { (expression_statement "bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e;" (assignment_expression "bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e" identifier = (binary_expression "*(short *)(__s1 + (sVar2 - 2)) == 0x6f2e" (pointer_expression "*(short *)(__s1 + (sVar2 - 2))" * (cast_expression "(short *)(__s1 + (sVar2 - 2))" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__s1 + (sVar2 - 2))" ( (binary_expression "__s1 + (sVar2 - 2)" identifier + (parenthesized_expression "(sVar2 - 2)" ( (binary_expression "sVar2 - 2" identifier - number_literal) ))) )))) == number_literal)) ;) })) })) (return_statement "return bVar3;" return identifier ;) })))
(translation_unit "bool FUN_0007d960(int param_1,char *param_2)\n\n{\n  char *__s1;\n  size_t __n;\n  int iVar1;\n  size_t sVar2;\n  bool bVar3;\n  \n  __s1 = (char *)FUN_0017dd20(*(undefined4 *)(param_1 + 4));\n  __n = strlen(param_2);\n  bVar3 = false;\n  iVar1 = strncmp(__s1,param_2,__n);\n  if (iVar1 == 0) {\n    sVar2 = strlen(__s1);\n    if ((__n + 2 == sVar2) || (__n + 3 == sVar2)) {\n      bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e;\n    }\n  }\n  return bVar3;\n}\n\n" (function_definition "bool FUN_0007d960(int param_1,char *param_2)\n\n{\n  char *__s1;\n  size_t __n;\n  int iVar1;\n  size_t sVar2;\n  bool bVar3;\n  \n  __s1 = (char *)FUN_0017dd20(*(undefined4 *)(param_1 + 4));\n  __n = strlen(param_2);\n  bVar3 = false;\n  iVar1 = strncmp(__s1,param_2,__n);\n  if (iVar1 == 0) {\n    sVar2 = strlen(__s1);\n    if ((__n + 2 == sVar2) || (__n + 3 == sVar2)) {\n      bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e;\n    }\n  }\n  return bVar3;\n}" primitive_type (function_declarator "FUN_0007d960(int param_1,char *param_2)" identifier (parameter_list "(int param_1,char *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char *__s1;\n  size_t __n;\n  int iVar1;\n  size_t sVar2;\n  bool bVar3;\n  \n  __s1 = (char *)FUN_0017dd20(*(undefined4 *)(param_1 + 4));\n  __n = strlen(param_2);\n  bVar3 = false;\n  iVar1 = strncmp(__s1,param_2,__n);\n  if (iVar1 == 0) {\n    sVar2 = strlen(__s1);\n    if ((__n + 2 == sVar2) || (__n + 3 == sVar2)) {\n      bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e;\n    }\n  }\n  return bVar3;\n}" { (declaration "char *__s1;" primitive_type (pointer_declarator "*__s1" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (expression_statement "__s1 = (char *)FUN_0017dd20(*(undefined4 *)(param_1 + 4));" (assignment_expression "__s1 = (char *)FUN_0017dd20(*(undefined4 *)(param_1 + 4))" identifier = (cast_expression "(char *)FUN_0017dd20(*(undefined4 *)(param_1 + 4))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0017dd20(*(undefined4 *)(param_1 + 4))" identifier (argument_list "(*(undefined4 *)(param_1 + 4))" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) ))))) ;) (expression_statement "__n = strlen(param_2);" (assignment_expression "__n = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" identifier = false) ;) (expression_statement "iVar1 = strncmp(__s1,param_2,__n);" (assignment_expression "iVar1 = strncmp(__s1,param_2,__n)" identifier = (call_expression "strncmp(__s1,param_2,__n)" identifier (argument_list "(__s1,param_2,__n)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    sVar2 = strlen(__s1);\n    if ((__n + 2 == sVar2) || (__n + 3 == sVar2)) {\n      bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e;\n    }\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    sVar2 = strlen(__s1);\n    if ((__n + 2 == sVar2) || (__n + 3 == sVar2)) {\n      bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e;\n    }\n  }" { (expression_statement "sVar2 = strlen(__s1);" (assignment_expression "sVar2 = strlen(__s1)" identifier = (call_expression "strlen(__s1)" identifier (argument_list "(__s1)" ( identifier )))) ;) (if_statement "if ((__n + 2 == sVar2) || (__n + 3 == sVar2)) {\n      bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e;\n    }" if (parenthesized_expression "((__n + 2 == sVar2) || (__n + 3 == sVar2))" ( (binary_expression "(__n + 2 == sVar2) || (__n + 3 == sVar2)" (parenthesized_expression "(__n + 2 == sVar2)" ( (binary_expression "__n + 2 == sVar2" (binary_expression "__n + 2" identifier + number_literal) == identifier) )) || (parenthesized_expression "(__n + 3 == sVar2)" ( (binary_expression "__n + 3 == sVar2" (binary_expression "__n + 3" identifier + number_literal) == identifier) ))) )) (compound_statement "{\n      bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e;\n    }" { (expression_statement "bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e;" (assignment_expression "bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e" identifier = (binary_expression "*(short *)(__s1 + (sVar2 - 2)) == 0x6f2e" (pointer_expression "*(short *)(__s1 + (sVar2 - 2))" * (cast_expression "(short *)(__s1 + (sVar2 - 2))" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__s1 + (sVar2 - 2))" ( (binary_expression "__s1 + (sVar2 - 2)" identifier + (parenthesized_expression "(sVar2 - 2)" ( (binary_expression "sVar2 - 2" identifier - number_literal) ))) )))) == number_literal)) ;) })) })) (return_statement "return bVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (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 ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) == IDENT) )) || (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) == IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (parenthesized_expression ( (binary_expression IDENT - LIT) ))) )))) == LIT)) ;) })) })) (return_statement return IDENT ;) })))
(function_definition "bool FUN_0007d960(int param_1,char *param_2)\n\n{\n  char *__s1;\n  size_t __n;\n  int iVar1;\n  size_t sVar2;\n  bool bVar3;\n  \n  __s1 = (char *)FUN_0017dd20(*(undefined4 *)(param_1 + 4));\n  __n = strlen(param_2);\n  bVar3 = false;\n  iVar1 = strncmp(__s1,param_2,__n);\n  if (iVar1 == 0) {\n    sVar2 = strlen(__s1);\n    if ((__n + 2 == sVar2) || (__n + 3 == sVar2)) {\n      bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e;\n    }\n  }\n  return bVar3;\n}" (primitive_type "bool") (function_declarator "FUN_0007d960(int param_1,char *param_2)" (identifier "FUN_0007d960") (parameter_list "(int param_1,char *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  char *__s1;\n  size_t __n;\n  int iVar1;\n  size_t sVar2;\n  bool bVar3;\n  \n  __s1 = (char *)FUN_0017dd20(*(undefined4 *)(param_1 + 4));\n  __n = strlen(param_2);\n  bVar3 = false;\n  iVar1 = strncmp(__s1,param_2,__n);\n  if (iVar1 == 0) {\n    sVar2 = strlen(__s1);\n    if ((__n + 2 == sVar2) || (__n + 3 == sVar2)) {\n      bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e;\n    }\n  }\n  return bVar3;\n}" ({ "{") (declaration "char *__s1;" (primitive_type "char") (pointer_declarator "*__s1" (* "*") (identifier "__s1")) (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "bool bVar3;" (primitive_type "bool") (identifier "bVar3") (; ";")) (expression_statement "__s1 = (char *)FUN_0017dd20(*(undefined4 *)(param_1 + 4));" (assignment_expression "__s1 = (char *)FUN_0017dd20(*(undefined4 *)(param_1 + 4))" (identifier "__s1") (= "=") (cast_expression "(char *)FUN_0017dd20(*(undefined4 *)(param_1 + 4))" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0017dd20(*(undefined4 *)(param_1 + 4))" (identifier "FUN_0017dd20") (argument_list "(*(undefined4 *)(param_1 + 4))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) () ")"))))) (; ";")) (expression_statement "__n = strlen(param_2);" (assignment_expression "__n = strlen(param_2)" (identifier "__n") (= "=") (call_expression "strlen(param_2)" (identifier "strlen") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" (identifier "bVar3") (= "=") (false "false")) (; ";")) (expression_statement "iVar1 = strncmp(__s1,param_2,__n);" (assignment_expression "iVar1 = strncmp(__s1,param_2,__n)" (identifier "iVar1") (= "=") (call_expression "strncmp(__s1,param_2,__n)" (identifier "strncmp") (argument_list "(__s1,param_2,__n)" (( "(") (identifier "__s1") (, ",") (identifier "param_2") (, ",") (identifier "__n") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    sVar2 = strlen(__s1);\n    if ((__n + 2 == sVar2) || (__n + 3 == sVar2)) {\n      bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e;\n    }\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    sVar2 = strlen(__s1);\n    if ((__n + 2 == sVar2) || (__n + 3 == sVar2)) {\n      bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e;\n    }\n  }" ({ "{") (expression_statement "sVar2 = strlen(__s1);" (assignment_expression "sVar2 = strlen(__s1)" (identifier "sVar2") (= "=") (call_expression "strlen(__s1)" (identifier "strlen") (argument_list "(__s1)" (( "(") (identifier "__s1") () ")")))) (; ";")) (if_statement "if ((__n + 2 == sVar2) || (__n + 3 == sVar2)) {\n      bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e;\n    }" (if "if") (parenthesized_expression "((__n + 2 == sVar2) || (__n + 3 == sVar2))" (( "(") (binary_expression "(__n + 2 == sVar2) || (__n + 3 == sVar2)" (parenthesized_expression "(__n + 2 == sVar2)" (( "(") (binary_expression "__n + 2 == sVar2" (binary_expression "__n + 2" (identifier "__n") (+ "+") (number_literal "2")) (== "==") (identifier "sVar2")) () ")")) (|| "||") (parenthesized_expression "(__n + 3 == sVar2)" (( "(") (binary_expression "__n + 3 == sVar2" (binary_expression "__n + 3" (identifier "__n") (+ "+") (number_literal "3")) (== "==") (identifier "sVar2")) () ")"))) () ")")) (compound_statement "{\n      bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e;\n    }" ({ "{") (expression_statement "bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e;" (assignment_expression "bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e" (identifier "bVar3") (= "=") (binary_expression "*(short *)(__s1 + (sVar2 - 2)) == 0x6f2e" (pointer_expression "*(short *)(__s1 + (sVar2 - 2))" (* "*") (cast_expression "(short *)(__s1 + (sVar2 - 2))" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(__s1 + (sVar2 - 2))" (( "(") (binary_expression "__s1 + (sVar2 - 2)" (identifier "__s1") (+ "+") (parenthesized_expression "(sVar2 - 2)" (( "(") (binary_expression "sVar2 - 2" (identifier "sVar2") (- "-") (number_literal "2")) () ")"))) () ")")))) (== "==") (number_literal "0x6f2e"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return bVar3;" (return "return") (identifier "bVar3") (; ";")) (} "}")))

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

bool gold::Layout::function_1(type_1 *relobj,char *match)

{
  char *var_7;
  size_t var_5;
  int var_4;
  size_t var_6;
  bool bVar3;
  
  var_7 = var_1((relobj->super_Object).name_._M_dataplus._M_p);
  var_5 = var_2(match);
  bVar3 = false;
  var_4 = var_3(var_7,match,var_5);
  if (var_4 == 0) {
    var_6 = var_2(var_7);
    if ((var_5 + 2 == var_6) || (var_5 + 3 == var_6)) {
      bVar3 = *(short *)(var_7 + (var_6 - 2)) == 0x6f2e;
    }
  }
  return bVar3;
}


(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: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) 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 (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))) right: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) right: (number_literal)))))))) (return_statement (identifier)))))

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

bool MASKED(int param_1,char *param_2)

{
  char *__s1;
  size_t __n;
  int iVar1;
  size_t sVar2;
  bool bVar3;
  
  __s1 = (char *)FUN_0017dd20(*(undefined4 *)(param_1 + 4));
  __n = strlen(param_2);
  bVar3 = false;
  iVar1 = strncmp(__s1,param_2,__n);
  if (iVar1 == 0) {
    sVar2 = strlen(__s1);
    if ((__n + 2 == sVar2) || (__n + 3 == sVar2)) {
      bVar3 = *(short *)(__s1 + (sVar2 - 2)) == 0x6f2e;
    }
  }
  return bVar3;
}

