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

int match_ssh_id(int stringlen,void *string,char *id)

{
  size_t __n;
  int iVar1;
  uint uVar2;
  
  __n = strlen(id);
  uVar2 = 0;
  if (__n == stringlen) {
    iVar1 = memcmp(string,id,__n);
    uVar2 = (uint)(iVar1 == 0);
  }
  return uVar2;
}



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

bool FUN_0001e310(size_t param_1,void *param_2,char *param_3)

{
  size_t __n;
  int iVar1;
  bool bVar2;
  
  __n = strlen(param_3);
  bVar2 = false;
  if (__n == param_1) {
    iVar1 = memcmp(param_2,param_3,__n);
    bVar2 = iVar1 == 0;
  }
  return bVar2;
}


PUSH ESI
PUSH EBX
CALL 0x000149a0
ADD EBX,0xaea59
SUB ESP,0x10
MOV ESI,dword ptr [ESP + 0x24]
PUSH ESI
CALL 0x00014460
ADD ESP,0x10
XOR EDX,EDX
CMP EAX,dword ptr [ESP + 0x10]
JNZ 0x0001e34d
SUB ESP,0x4
PUSH EAX
PUSH ESI
PUSH dword ptr [ESP + 0x20]
CALL 0x000141a0
XOR EDX,EDX
ADD ESP,0x10
TEST EAX,EAX
SETZ DL
ADD ESP,0x4
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_0001e310(size_t param_1,void *param_2,char *param_3)\n\n{\n  size_t __n;\n  int iVar1;\n  bool bVar2;\n  \n  __n = strlen(param_3);\n  bVar2 = false;\n  if (__n == param_1) {\n    iVar1 = memcmp(param_2,param_3,__n);\n    bVar2 = iVar1 == 0;\n  }\n  return bVar2;\n}\n\n" comment (function_definition "bool FUN_0001e310(size_t param_1,void *param_2,char *param_3)\n\n{\n  size_t __n;\n  int iVar1;\n  bool bVar2;\n  \n  __n = strlen(param_3);\n  bVar2 = false;\n  if (__n == param_1) {\n    iVar1 = memcmp(param_2,param_3,__n);\n    bVar2 = iVar1 == 0;\n  }\n  return bVar2;\n}" primitive_type (function_declarator "FUN_0001e310(size_t param_1,void *param_2,char *param_3)" identifier (parameter_list "(size_t param_1,void *param_2,char *param_3)" ( (parameter_declaration "size_t param_1" primitive_type identifier) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  size_t __n;\n  int iVar1;\n  bool bVar2;\n  \n  __n = strlen(param_3);\n  bVar2 = false;\n  if (__n == param_1) {\n    iVar1 = memcmp(param_2,param_3,__n);\n    bVar2 = iVar1 == 0;\n  }\n  return bVar2;\n}" { (declaration "size_t __n;" primitive_type identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (expression_statement "__n = strlen(param_3);" (assignment_expression "__n = strlen(param_3)" identifier = (call_expression "strlen(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (if_statement "if (__n == param_1) {\n    iVar1 = memcmp(param_2,param_3,__n);\n    bVar2 = iVar1 == 0;\n  }" if (parenthesized_expression "(__n == param_1)" ( (binary_expression "__n == param_1" identifier == identifier) )) (compound_statement "{\n    iVar1 = memcmp(param_2,param_3,__n);\n    bVar2 = iVar1 == 0;\n  }" { (expression_statement "iVar1 = memcmp(param_2,param_3,__n);" (assignment_expression "iVar1 = memcmp(param_2,param_3,__n)" identifier = (call_expression "memcmp(param_2,param_3,__n)" identifier (argument_list "(param_2,param_3,__n)" ( identifier , identifier , identifier )))) ;) (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\nint match_ssh_id(int stringlen,void *string,char *id)\n\n{\n  size_t __n;\n  int iVar1;\n  uint uVar2;\n  \n  __n = strlen(id);\n  uVar2 = 0;\n  if (__n == stringlen) {\n    iVar1 = memcmp(string,id,__n);\n    uVar2 = (uint)(iVar1 == 0);\n  }\n  return uVar2;\n}\n\n" comment comment (function_definition "int match_ssh_id(int stringlen,void *string,char *id)\n\n{\n  size_t __n;\n  int iVar1;\n  uint uVar2;\n  \n  __n = strlen(id);\n  uVar2 = 0;\n  if (__n == stringlen) {\n    iVar1 = memcmp(string,id,__n);\n    uVar2 = (uint)(iVar1 == 0);\n  }\n  return uVar2;\n}" primitive_type (function_declarator "match_ssh_id(int stringlen,void *string,char *id)" identifier (parameter_list "(int stringlen,void *string,char *id)" ( (parameter_declaration "int stringlen" primitive_type identifier) , (parameter_declaration "void *string" primitive_type (pointer_declarator "*string" * identifier)) , (parameter_declaration "char *id" primitive_type (pointer_declarator "*id" * identifier)) ))) (compound_statement "{\n  size_t __n;\n  int iVar1;\n  uint uVar2;\n  \n  __n = strlen(id);\n  uVar2 = 0;\n  if (__n == stringlen) {\n    iVar1 = memcmp(string,id,__n);\n    uVar2 = (uint)(iVar1 == 0);\n  }\n  return uVar2;\n}" { (declaration "size_t __n;" primitive_type identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "__n = strlen(id);" (assignment_expression "__n = strlen(id)" identifier = (call_expression "strlen(id)" identifier (argument_list "(id)" ( identifier )))) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (if_statement "if (__n == stringlen) {\n    iVar1 = memcmp(string,id,__n);\n    uVar2 = (uint)(iVar1 == 0);\n  }" if (parenthesized_expression "(__n == stringlen)" ( (binary_expression "__n == stringlen" identifier == identifier) )) (compound_statement "{\n    iVar1 = memcmp(string,id,__n);\n    uVar2 = (uint)(iVar1 == 0);\n  }" { (expression_statement "iVar1 = memcmp(string,id,__n);" (assignment_expression "iVar1 = memcmp(string,id,__n)" identifier = (call_expression "memcmp(string,id,__n)" identifier (argument_list "(string,id,__n)" ( identifier , identifier , identifier )))) ;) (expression_statement "uVar2 = (uint)(iVar1 == 0);" (assignment_expression "uVar2 = (uint)(iVar1 == 0)" identifier = (call_expression "(uint)(iVar1 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )))) ;) })) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "bool FUN_0001e310(size_t param_1,void *param_2,char *param_3)\n\n{\n  size_t __n;\n  int iVar1;\n  bool bVar2;\n  \n  __n = strlen(param_3);\n  bVar2 = false;\n  if (__n == param_1) {\n    iVar1 = memcmp(param_2,param_3,__n);\n    bVar2 = iVar1 == 0;\n  }\n  return bVar2;\n}\n\n" (function_definition "bool FUN_0001e310(size_t param_1,void *param_2,char *param_3)\n\n{\n  size_t __n;\n  int iVar1;\n  bool bVar2;\n  \n  __n = strlen(param_3);\n  bVar2 = false;\n  if (__n == param_1) {\n    iVar1 = memcmp(param_2,param_3,__n);\n    bVar2 = iVar1 == 0;\n  }\n  return bVar2;\n}" primitive_type (function_declarator "FUN_0001e310(size_t param_1,void *param_2,char *param_3)" identifier (parameter_list "(size_t param_1,void *param_2,char *param_3)" ( (parameter_declaration "size_t param_1" primitive_type identifier) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  size_t __n;\n  int iVar1;\n  bool bVar2;\n  \n  __n = strlen(param_3);\n  bVar2 = false;\n  if (__n == param_1) {\n    iVar1 = memcmp(param_2,param_3,__n);\n    bVar2 = iVar1 == 0;\n  }\n  return bVar2;\n}" { (declaration "size_t __n;" primitive_type identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (expression_statement "__n = strlen(param_3);" (assignment_expression "__n = strlen(param_3)" identifier = (call_expression "strlen(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (if_statement "if (__n == param_1) {\n    iVar1 = memcmp(param_2,param_3,__n);\n    bVar2 = iVar1 == 0;\n  }" if (parenthesized_expression "(__n == param_1)" ( (binary_expression "__n == param_1" identifier == identifier) )) (compound_statement "{\n    iVar1 = memcmp(param_2,param_3,__n);\n    bVar2 = iVar1 == 0;\n  }" { (expression_statement "iVar1 = memcmp(param_2,param_3,__n);" (assignment_expression "iVar1 = memcmp(param_2,param_3,__n)" identifier = (call_expression "memcmp(param_2,param_3,__n)" identifier (argument_list "(param_2,param_3,__n)" ( identifier , identifier , identifier )))) ;) (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 IDENT) , (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 = (call_expression IDENT (argument_list ( 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 , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == LIT)) ;) })) (return_statement return IDENT ;) })))
(function_definition "bool FUN_0001e310(size_t param_1,void *param_2,char *param_3)\n\n{\n  size_t __n;\n  int iVar1;\n  bool bVar2;\n  \n  __n = strlen(param_3);\n  bVar2 = false;\n  if (__n == param_1) {\n    iVar1 = memcmp(param_2,param_3,__n);\n    bVar2 = iVar1 == 0;\n  }\n  return bVar2;\n}" (primitive_type "bool") (function_declarator "FUN_0001e310(size_t param_1,void *param_2,char *param_3)" (identifier "FUN_0001e310") (parameter_list "(size_t param_1,void *param_2,char *param_3)" (( "(") (parameter_declaration "size_t param_1" (primitive_type "size_t") (identifier "param_1")) (, ",") (parameter_declaration "void *param_2" (primitive_type "void") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "char *param_3" (primitive_type "char") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  size_t __n;\n  int iVar1;\n  bool bVar2;\n  \n  __n = strlen(param_3);\n  bVar2 = false;\n  if (__n == param_1) {\n    iVar1 = memcmp(param_2,param_3,__n);\n    bVar2 = iVar1 == 0;\n  }\n  return bVar2;\n}" ({ "{") (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "bool bVar2;" (primitive_type "bool") (identifier "bVar2") (; ";")) (expression_statement "__n = strlen(param_3);" (assignment_expression "__n = strlen(param_3)" (identifier "__n") (= "=") (call_expression "strlen(param_3)" (identifier "strlen") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (; ";")) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" (identifier "bVar2") (= "=") (false "false")) (; ";")) (if_statement "if (__n == param_1) {\n    iVar1 = memcmp(param_2,param_3,__n);\n    bVar2 = iVar1 == 0;\n  }" (if "if") (parenthesized_expression "(__n == param_1)" (( "(") (binary_expression "__n == param_1" (identifier "__n") (== "==") (identifier "param_1")) () ")")) (compound_statement "{\n    iVar1 = memcmp(param_2,param_3,__n);\n    bVar2 = iVar1 == 0;\n  }" ({ "{") (expression_statement "iVar1 = memcmp(param_2,param_3,__n);" (assignment_expression "iVar1 = memcmp(param_2,param_3,__n)" (identifier "iVar1") (= "=") (call_expression "memcmp(param_2,param_3,__n)" (identifier "memcmp") (argument_list "(param_2,param_3,__n)" (( "(") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "__n") () ")")))) (; ";")) (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 */

int function_1(int var_3,void *string,char *id)

{
  size_t var_2;
  int var_5;
  type_1 uVar2;
  
  var_2 = var_1(id);
  uVar2 = 0;
  if (var_2 == var_3) {
    var_5 = var_4(string,id,var_2);
    uVar2 = (type_1)(var_5 == 0);
  }
  return uVar2;
}


(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))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (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: (call_expression function: (identifier) arguments: (argument_list (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) (identifier) (identifier))))) (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(size_t param_1,void *param_2,char *param_3)

{
  size_t __n;
  int iVar1;
  bool bVar2;
  
  __n = strlen(param_3);
  bVar2 = false;
  if (__n == param_1) {
    iVar1 = memcmp(param_2,param_3,__n);
    bVar2 = iVar1 == 0;
  }
  return bVar2;
}

