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

int fts3BinCompare(void *pKey1,int n1,void *pKey2,int n2)

{
  int iVar1;
  
  iVar1 = 1;
  if (n1 == n2) {
    iVar1 = memcmp(pKey1,pKey2,n1);
  }
  return iVar1;
}



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

int FUN_00023020(void *param_1,size_t param_2,void *param_3,size_t param_4)

{
  int iVar1;
  
  iVar1 = 1;
  if (param_2 == param_4) {
    iVar1 = memcmp(param_1,param_3,param_2);
  }
  return iVar1;
}


PUSH EBX
MOV EAX,0x1
CALL 0x00014cf0
ADD EBX,0x125ea9
SUB ESP,0x8
MOV EDX,dword ptr [ESP + 0x14]
CMP EDX,dword ptr [ESP + 0x1c]
JNZ 0x00023052
SUB ESP,0x4
PUSH EDX
PUSH dword ptr [ESP + 0x20]
PUSH dword ptr [ESP + 0x1c]
CALL 0x00014110
ADD ESP,0x10
ADD ESP,0x8
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_00023020(void *param_1,size_t param_2,void *param_3,size_t param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = 1;\n  if (param_2 == param_4) {\n    iVar1 = memcmp(param_1,param_3,param_2);\n  }\n  return iVar1;\n}\n\n" comment (function_definition "int FUN_00023020(void *param_1,size_t param_2,void *param_3,size_t param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = 1;\n  if (param_2 == param_4) {\n    iVar1 = memcmp(param_1,param_3,param_2);\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_00023020(void *param_1,size_t param_2,void *param_3,size_t param_4)" identifier (parameter_list "(void *param_1,size_t param_2,void *param_3,size_t param_4)" ( (parameter_declaration "void *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "size_t param_2" primitive_type identifier) , (parameter_declaration "void *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "size_t param_4" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = 1;\n  if (param_2 == param_4) {\n    iVar1 = memcmp(param_1,param_3,param_2);\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (if_statement "if (param_2 == param_4) {\n    iVar1 = memcmp(param_1,param_3,param_2);\n  }" if (parenthesized_expression "(param_2 == param_4)" ( (binary_expression "param_2 == param_4" identifier == identifier) )) (compound_statement "{\n    iVar1 = memcmp(param_1,param_3,param_2);\n  }" { (expression_statement "iVar1 = memcmp(param_1,param_3,param_2);" (assignment_expression "iVar1 = memcmp(param_1,param_3,param_2)" identifier = (call_expression "memcmp(param_1,param_3,param_2)" identifier (argument_list "(param_1,param_3,param_2)" ( identifier , identifier , identifier )))) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint fts3BinCompare(void *pKey1,int n1,void *pKey2,int n2)\n\n{\n  int iVar1;\n  \n  iVar1 = 1;\n  if (n1 == n2) {\n    iVar1 = memcmp(pKey1,pKey2,n1);\n  }\n  return iVar1;\n}\n\n" comment comment (function_definition "int fts3BinCompare(void *pKey1,int n1,void *pKey2,int n2)\n\n{\n  int iVar1;\n  \n  iVar1 = 1;\n  if (n1 == n2) {\n    iVar1 = memcmp(pKey1,pKey2,n1);\n  }\n  return iVar1;\n}" primitive_type (function_declarator "fts3BinCompare(void *pKey1,int n1,void *pKey2,int n2)" identifier (parameter_list "(void *pKey1,int n1,void *pKey2,int n2)" ( (parameter_declaration "void *pKey1" primitive_type (pointer_declarator "*pKey1" * identifier)) , (parameter_declaration "int n1" primitive_type identifier) , (parameter_declaration "void *pKey2" primitive_type (pointer_declarator "*pKey2" * identifier)) , (parameter_declaration "int n2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = 1;\n  if (n1 == n2) {\n    iVar1 = memcmp(pKey1,pKey2,n1);\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (if_statement "if (n1 == n2) {\n    iVar1 = memcmp(pKey1,pKey2,n1);\n  }" if (parenthesized_expression "(n1 == n2)" ( (binary_expression "n1 == n2" identifier == identifier) )) (compound_statement "{\n    iVar1 = memcmp(pKey1,pKey2,n1);\n  }" { (expression_statement "iVar1 = memcmp(pKey1,pKey2,n1);" (assignment_expression "iVar1 = memcmp(pKey1,pKey2,n1)" identifier = (call_expression "memcmp(pKey1,pKey2,n1)" identifier (argument_list "(pKey1,pKey2,n1)" ( identifier , identifier , identifier )))) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int FUN_00023020(void *param_1,size_t param_2,void *param_3,size_t param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = 1;\n  if (param_2 == param_4) {\n    iVar1 = memcmp(param_1,param_3,param_2);\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_00023020(void *param_1,size_t param_2,void *param_3,size_t param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = 1;\n  if (param_2 == param_4) {\n    iVar1 = memcmp(param_1,param_3,param_2);\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_00023020(void *param_1,size_t param_2,void *param_3,size_t param_4)" identifier (parameter_list "(void *param_1,size_t param_2,void *param_3,size_t param_4)" ( (parameter_declaration "void *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "size_t param_2" primitive_type identifier) , (parameter_declaration "void *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "size_t param_4" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = 1;\n  if (param_2 == param_4) {\n    iVar1 = memcmp(param_1,param_3,param_2);\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (if_statement "if (param_2 == param_4) {\n    iVar1 = memcmp(param_1,param_3,param_2);\n  }" if (parenthesized_expression "(param_2 == param_4)" ( (binary_expression "param_2 == param_4" identifier == identifier) )) (compound_statement "{\n    iVar1 = memcmp(param_1,param_3,param_2);\n  }" { (expression_statement "iVar1 = memcmp(param_1,param_3,param_2);" (assignment_expression "iVar1 = memcmp(param_1,param_3,param_2)" identifier = (call_expression "memcmp(param_1,param_3,param_2)" identifier (argument_list "(param_1,param_3,param_2)" ( identifier , identifier , identifier )))) ;) })) (return_statement "return iVar1;" 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 (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_00023020(void *param_1,size_t param_2,void *param_3,size_t param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = 1;\n  if (param_2 == param_4) {\n    iVar1 = memcmp(param_1,param_3,param_2);\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_00023020(void *param_1,size_t param_2,void *param_3,size_t param_4)" (identifier "FUN_00023020") (parameter_list "(void *param_1,size_t param_2,void *param_3,size_t param_4)" (( "(") (parameter_declaration "void *param_1" (primitive_type "void") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "size_t param_2" (primitive_type "size_t") (identifier "param_2")) (, ",") (parameter_declaration "void *param_3" (primitive_type "void") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "size_t param_4" (primitive_type "size_t") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = 1;\n  if (param_2 == param_4) {\n    iVar1 = memcmp(param_1,param_3,param_2);\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" (identifier "iVar1") (= "=") (number_literal "1")) (; ";")) (if_statement "if (param_2 == param_4) {\n    iVar1 = memcmp(param_1,param_3,param_2);\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,param_3,param_2);\n  }" ({ "{") (expression_statement "iVar1 = memcmp(param_1,param_3,param_2);" (assignment_expression "iVar1 = memcmp(param_1,param_3,param_2)" (identifier "iVar1") (= "=") (call_expression "memcmp(param_1,param_3,param_2)" (identifier "memcmp") (argument_list "(param_1,param_3,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_3") (, ",") (identifier "param_2") () ")")))) (; ";")) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

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

int function_1(void *pKey1,int var_1,void *pKey2,int var_2)

{
  int iVar1;
  
  iVar1 = 1;
  if (var_1 == var_2) {
    iVar1 = var_3(pKey1,pKey2,var_1);
  }
  return iVar1;
}


(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: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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) (identifier) (identifier))))))) (return_statement (identifier)))))

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

int MASKED(void *param_1,size_t param_2,void *param_3,size_t param_4)

{
  int iVar1;
  
  iVar1 = 1;
  if (param_2 == param_4) {
    iVar1 = memcmp(param_1,param_3,param_2);
  }
  return iVar1;
}

