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

bool gold::Stringpool_template<short_unsigned_int>::is_suffix
               (ushort *s1,size_t len1,ushort *s2,size_t len2)

{
  int iVar1;
  bool bVar2;
  
  bVar2 = false;
  if (len1 <= len2) {
    iVar1 = memcmp(s1,s2 + (len2 - len1),len1 * 2);
    bVar2 = iVar1 == 0;
  }
  return bVar2;
}



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

bool FUN_00171f60(void *param_1,uint param_2,int param_3,uint param_4)

{
  int iVar1;
  bool bVar2;
  
  bVar2 = false;
  if (param_2 <= param_4) {
    iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);
    bVar2 = iVar1 == 0;
  }
  return bVar2;
}


PUSH EBX
XOR EAX,EAX
CALL 0x00035840
ADD EBX,0x21d098
SUB ESP,0x8
MOV ECX,dword ptr [ESP + 0x14]
MOV EDX,dword ptr [ESP + 0x1c]
CMP ECX,EDX
JA 0x00171f9f
SUB ESP,0x4
LEA EAX,[ECX + ECX*0x1]
SUB EDX,ECX
PUSH EAX
MOV EAX,dword ptr [ESP + 0x20]
LEA EAX,[EAX + EDX*0x2]
PUSH EAX
PUSH dword ptr [ESP + 0x1c]
CALL 0x00029130
ADD ESP,0x10
TEST EAX,EAX
SETZ AL
ADD ESP,0x8
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbool FUN_00171f60(void *param_1,uint param_2,int param_3,uint param_4)\n\n{\n  int iVar1;\n  bool bVar2;\n  \n  bVar2 = false;\n  if (param_2 <= param_4) {\n    iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);\n    bVar2 = iVar1 == 0;\n  }\n  return bVar2;\n}\n\n" comment (function_definition "bool FUN_00171f60(void *param_1,uint param_2,int param_3,uint param_4)\n\n{\n  int iVar1;\n  bool bVar2;\n  \n  bVar2 = false;\n  if (param_2 <= param_4) {\n    iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);\n    bVar2 = iVar1 == 0;\n  }\n  return bVar2;\n}" primitive_type (function_declarator "FUN_00171f60(void *param_1,uint param_2,int param_3,uint param_4)" identifier (parameter_list "(void *param_1,uint param_2,int param_3,uint param_4)" ( (parameter_declaration "void *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  bool bVar2;\n  \n  bVar2 = false;\n  if (param_2 <= param_4) {\n    iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);\n    bVar2 = iVar1 == 0;\n  }\n  return bVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (if_statement "if (param_2 <= param_4) {\n    iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);\n    bVar2 = iVar1 == 0;\n  }" if (parenthesized_expression "(param_2 <= param_4)" ( (binary_expression "param_2 <= param_4" identifier <= identifier) )) (compound_statement "{\n    iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);\n    bVar2 = iVar1 == 0;\n  }" { (expression_statement "iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);" (assignment_expression "iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2)" identifier = (call_expression "memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2)" identifier (argument_list "(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2)" ( identifier , (cast_expression "(void *)(param_3 + (param_4 - param_2) * 2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + (param_4 - param_2) * 2)" ( (binary_expression "param_3 + (param_4 - param_2) * 2" identifier + (binary_expression "(param_4 - param_2) * 2" (parenthesized_expression "(param_4 - param_2)" ( (binary_expression "param_4 - param_2" identifier - identifier) )) * number_literal)) ))) , (binary_expression "param_2 * 2" identifier * number_literal) )))) ;) (expression_statement "bVar2 = iVar1 == 0;" (assignment_expression "bVar2 = iVar1 == 0" identifier = (binary_expression "iVar1 == 0" identifier == number_literal)) ;) })) (return_statement "return bVar2;" 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::Stringpool_template<short_unsigned_int>::is_suffix\n               (ushort *s1,size_t len1,ushort *s2,size_t len2)\n\n{\n  int iVar1;\n  bool bVar2;\n  \n  bVar2 = false;\n  if (len1 <= len2) {\n    iVar1 = memcmp(s1,s2 + (len2 - len1),len1 * 2);\n    bVar2 = iVar1 == 0;\n  }\n  return bVar2;\n}\n\n" comment comment (function_definition "bool gold::Stringpool_template<short_unsigned_int>::is_suffix\n               (ushort *s1,size_t len1,ushort *s2,size_t len2)\n\n{\n  int iVar1;\n  bool bVar2;\n  \n  bVar2 = false;\n  if (len1 <= len2) {\n    iVar1 = memcmp(s1,s2 + (len2 - len1),len1 * 2);\n    bVar2 = iVar1 == 0;\n  }\n  return bVar2;\n}" primitive_type (ERROR "gold::Stringpool_template<short_unsigned_int>::" identifier : : identifier < identifier > : :) (function_declarator "is_suffix\n               (ushort *s1,size_t len1,ushort *s2,size_t len2)" identifier (parameter_list "(ushort *s1,size_t len1,ushort *s2,size_t len2)" ( (parameter_declaration "ushort *s1" type_identifier (pointer_declarator "*s1" * identifier)) , (parameter_declaration "size_t len1" primitive_type identifier) , (parameter_declaration "ushort *s2" type_identifier (pointer_declarator "*s2" * identifier)) , (parameter_declaration "size_t len2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  bool bVar2;\n  \n  bVar2 = false;\n  if (len1 <= len2) {\n    iVar1 = memcmp(s1,s2 + (len2 - len1),len1 * 2);\n    bVar2 = iVar1 == 0;\n  }\n  return bVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (if_statement "if (len1 <= len2) {\n    iVar1 = memcmp(s1,s2 + (len2 - len1),len1 * 2);\n    bVar2 = iVar1 == 0;\n  }" if (parenthesized_expression "(len1 <= len2)" ( (binary_expression "len1 <= len2" identifier <= identifier) )) (compound_statement "{\n    iVar1 = memcmp(s1,s2 + (len2 - len1),len1 * 2);\n    bVar2 = iVar1 == 0;\n  }" { (expression_statement "iVar1 = memcmp(s1,s2 + (len2 - len1),len1 * 2);" (assignment_expression "iVar1 = memcmp(s1,s2 + (len2 - len1),len1 * 2)" identifier = (call_expression "memcmp(s1,s2 + (len2 - len1),len1 * 2)" identifier (argument_list "(s1,s2 + (len2 - len1),len1 * 2)" ( identifier , (binary_expression "s2 + (len2 - len1)" identifier + (parenthesized_expression "(len2 - len1)" ( (binary_expression "len2 - len1" identifier - identifier) ))) , (binary_expression "len1 * 2" identifier * number_literal) )))) ;) (expression_statement "bVar2 = iVar1 == 0;" (assignment_expression "bVar2 = iVar1 == 0" identifier = (binary_expression "iVar1 == 0" identifier == number_literal)) ;) })) (return_statement "return bVar2;" return identifier ;) })))
(translation_unit "bool FUN_00171f60(void *param_1,uint param_2,int param_3,uint param_4)\n\n{\n  int iVar1;\n  bool bVar2;\n  \n  bVar2 = false;\n  if (param_2 <= param_4) {\n    iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);\n    bVar2 = iVar1 == 0;\n  }\n  return bVar2;\n}\n\n" (function_definition "bool FUN_00171f60(void *param_1,uint param_2,int param_3,uint param_4)\n\n{\n  int iVar1;\n  bool bVar2;\n  \n  bVar2 = false;\n  if (param_2 <= param_4) {\n    iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);\n    bVar2 = iVar1 == 0;\n  }\n  return bVar2;\n}" primitive_type (function_declarator "FUN_00171f60(void *param_1,uint param_2,int param_3,uint param_4)" identifier (parameter_list "(void *param_1,uint param_2,int param_3,uint param_4)" ( (parameter_declaration "void *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  bool bVar2;\n  \n  bVar2 = false;\n  if (param_2 <= param_4) {\n    iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);\n    bVar2 = iVar1 == 0;\n  }\n  return bVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (if_statement "if (param_2 <= param_4) {\n    iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);\n    bVar2 = iVar1 == 0;\n  }" if (parenthesized_expression "(param_2 <= param_4)" ( (binary_expression "param_2 <= param_4" identifier <= identifier) )) (compound_statement "{\n    iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);\n    bVar2 = iVar1 == 0;\n  }" { (expression_statement "iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);" (assignment_expression "iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2)" identifier = (call_expression "memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2)" identifier (argument_list "(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2)" ( identifier , (cast_expression "(void *)(param_3 + (param_4 - param_2) * 2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + (param_4 - param_2) * 2)" ( (binary_expression "param_3 + (param_4 - param_2) * 2" identifier + (binary_expression "(param_4 - param_2) * 2" (parenthesized_expression "(param_4 - param_2)" ( (binary_expression "param_4 - param_2" identifier - identifier) )) * number_literal)) ))) , (binary_expression "param_2 * 2" identifier * number_literal) )))) ;) (expression_statement "bVar2 = iVar1 == 0;" (assignment_expression "bVar2 = iVar1 == 0" identifier = (binary_expression "iVar1 == 0" identifier == number_literal)) ;) })) (return_statement "return bVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) * LIT)) ))) , (binary_expression IDENT * LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == LIT)) ;) })) (return_statement return IDENT ;) })))
(function_definition "bool FUN_00171f60(void *param_1,uint param_2,int param_3,uint param_4)\n\n{\n  int iVar1;\n  bool bVar2;\n  \n  bVar2 = false;\n  if (param_2 <= param_4) {\n    iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);\n    bVar2 = iVar1 == 0;\n  }\n  return bVar2;\n}" (primitive_type "bool") (function_declarator "FUN_00171f60(void *param_1,uint param_2,int param_3,uint param_4)" (identifier "FUN_00171f60") (parameter_list "(void *param_1,uint param_2,int param_3,uint param_4)" (( "(") (parameter_declaration "void *param_1" (primitive_type "void") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  bool bVar2;\n  \n  bVar2 = false;\n  if (param_2 <= param_4) {\n    iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);\n    bVar2 = iVar1 == 0;\n  }\n  return bVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "bool bVar2;" (primitive_type "bool") (identifier "bVar2") (; ";")) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" (identifier "bVar2") (= "=") (false "false")) (; ";")) (if_statement "if (param_2 <= param_4) {\n    iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);\n    bVar2 = iVar1 == 0;\n  }" (if "if") (parenthesized_expression "(param_2 <= param_4)" (( "(") (binary_expression "param_2 <= param_4" (identifier "param_2") (<= "<=") (identifier "param_4")) () ")")) (compound_statement "{\n    iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);\n    bVar2 = iVar1 == 0;\n  }" ({ "{") (expression_statement "iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);" (assignment_expression "iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2)" (identifier "iVar1") (= "=") (call_expression "memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2)" (identifier "memcmp") (argument_list "(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2)" (( "(") (identifier "param_1") (, ",") (cast_expression "(void *)(param_3 + (param_4 - param_2) * 2)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + (param_4 - param_2) * 2)" (( "(") (binary_expression "param_3 + (param_4 - param_2) * 2" (identifier "param_3") (+ "+") (binary_expression "(param_4 - param_2) * 2" (parenthesized_expression "(param_4 - param_2)" (( "(") (binary_expression "param_4 - param_2" (identifier "param_4") (- "-") (identifier "param_2")) () ")")) (* "*") (number_literal "2"))) () ")"))) (, ",") (binary_expression "param_2 * 2" (identifier "param_2") (* "*") (number_literal "2")) () ")")))) (; ";")) (expression_statement "bVar2 = iVar1 == 0;" (assignment_expression "bVar2 = iVar1 == 0" (identifier "bVar2") (= "=") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0"))) (; ";")) (} "}"))) (return_statement "return bVar2;" (return "return") (identifier "bVar2") (; ";")) (} "}")))

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

bool gold::Stringpool_template<short_unsigned_int>::function_1
               (type_1 *s1,size_t var_1,type_1 *var_4,size_t var_2)

{
  int var_5;
  bool bVar2;
  
  bVar2 = false;
  if (var_1 <= var_2) {
    var_5 = var_3(s1,var_4 + (var_2 - var_1),var_1 * 2);
    bVar2 = var_5 == 0;
  }
  return bVar2;
}


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

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

bool MASKED(void *param_1,uint param_2,int param_3,uint param_4)

{
  int iVar1;
  bool bVar2;
  
  bVar2 = false;
  if (param_2 <= param_4) {
    iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);
    bVar2 = iVar1 == 0;
  }
  return bVar2;
}

