
char * host_strchr(char *s,int c)

{
  long lVar1;
  char *pcVar2;
  long in_FS_OFFSET;
  char set [2];
  
  lVar1 = *(long *)(in_FS_OFFSET + 0x28);
  set[0] = (char)c;
  set[1] = '\0';
  pcVar2 = host_strchr_internal(s,set,1);
  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {
    return pcVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



void FUN_00121f50(undefined8 param_1,undefined1 param_2)

{
  long in_FS_OFFSET;
  undefined1 local_12;
  undefined1 local_11;
  long local_10;
  
  local_10 = *(long *)(in_FS_OFFSET + 0x28);
  local_11 = 0;
  local_12 = param_2;
  FUN_00121d3c(param_1,&local_12,1);
  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}


PUSH RBX
SUB RSP,0x10
MOV EBX,0x28
MOV RAX,qword ptr FS:[RBX]
MOV qword ptr [RSP + 0x8],RAX
XOR EAX,EAX
MOV byte ptr [RSP + 0x6],SIL
MOV byte ptr [RSP + 0x7],0x0
LEA RSI,[RSP + 0x6]
MOV EDX,0x1
CALL 0x00121d3c
MOV RCX,qword ptr [RSP + 0x8]
XOR RCX,qword ptr FS:[RBX]
JNZ 0x00121f8f
ADD RSP,0x10
POP RBX
RET
CALL 0x001111e0
(translation_unit "void FUN_00121f50(undefined8 param_1,undefined1 param_2)\n\n{\n  long in_FS_OFFSET;\n  undefined1 local_12;\n  undefined1 local_11;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  local_11 = 0;\n  local_12 = param_2;\n  FUN_00121d3c(param_1,&local_12,1);\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "void FUN_00121f50(undefined8 param_1,undefined1 param_2)\n\n{\n  long in_FS_OFFSET;\n  undefined1 local_12;\n  undefined1 local_11;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  local_11 = 0;\n  local_12 = param_2;\n  FUN_00121d3c(param_1,&local_12,1);\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" primitive_type (function_declarator "FUN_00121f50(undefined8 param_1,undefined1 param_2)" identifier (parameter_list "(undefined8 param_1,undefined1 param_2)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined1 param_2" type_identifier identifier) ))) (compound_statement "{\n  long in_FS_OFFSET;\n  undefined1 local_12;\n  undefined1 local_11;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  local_11 = 0;\n  local_12 = param_2;\n  FUN_00121d3c(param_1,&local_12,1);\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 local_12;" type_identifier identifier ;) (declaration "undefined1 local_11;" type_identifier identifier ;) (declaration "long local_10;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_10 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_10 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "local_11 = 0;" (assignment_expression "local_11 = 0" identifier = number_literal) ;) (expression_statement "local_12 = param_2;" (assignment_expression "local_12 = param_2" identifier = identifier) ;) (expression_statement "FUN_00121d3c(param_1,&local_12,1);" (call_expression "FUN_00121d3c(param_1,&local_12,1)" identifier (argument_list "(param_1,&local_12,1)" ( identifier , (pointer_expression "&local_12" & identifier) , number_literal ))) ;) (if_statement "if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }" if (parenthesized_expression "(local_10 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_10 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "char * host_strchr(char *s,int c)\n\n{\n  long lVar1;\n  char *pcVar2;\n  long in_FS_OFFSET;\n  char set [2];\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  set[0] = (char)c;\n  set[1] = '\0';\n  pcVar2 = host_strchr_internal(s,set,1);\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return pcVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "char * host_strchr(char *s,int c)\n\n{\n  long lVar1;\n  char *pcVar2;\n  long in_FS_OFFSET;\n  char set [2];\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  set[0] = (char)c;\n  set[1] = '\0';\n  pcVar2 = host_strchr_internal(s,set,1);\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return pcVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" primitive_type (pointer_declarator "* host_strchr(char *s,int c)" * (function_declarator "host_strchr(char *s,int c)" identifier (parameter_list "(char *s,int c)" ( (parameter_declaration "char *s" primitive_type (pointer_declarator "*s" * identifier)) , (parameter_declaration "int c" primitive_type identifier) )))) (compound_statement "{\n  long lVar1;\n  char *pcVar2;\n  long in_FS_OFFSET;\n  char set [2];\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  set[0] = (char)c;\n  set[1] = '\0';\n  pcVar2 = host_strchr_internal(s,set,1);\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return pcVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "char set [2];" primitive_type (array_declarator "set [2]" identifier [ number_literal ]) ;) (expression_statement "lVar1 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar1 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "set[0] = (char)c;" (assignment_expression "set[0] = (char)c" (subscript_expression "set[0]" identifier [ number_literal ]) = (cast_expression "(char)c" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "set[1] = '\0';" (assignment_expression "set[1] = '\0'" (subscript_expression "set[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar2 = host_strchr_internal(s,set,1);" (assignment_expression "pcVar2 = host_strchr_internal(s,set,1)" identifier = (call_expression "host_strchr_internal(s,set,1)" identifier (argument_list "(s,set,1)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return pcVar2;\n  }" if (parenthesized_expression "(lVar1 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar1 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return pcVar2;\n  }" { (return_statement "return pcVar2;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_00121f50(undefined8 param_1,undefined1 param_2)\n\n{\n  long in_FS_OFFSET;\n  undefined1 local_12;\n  undefined1 local_11;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  local_11 = 0;\n  local_12 = param_2;\n  FUN_00121d3c(param_1,&local_12,1);\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  __stack_chk_fail();\n}\n\n" (function_definition "void FUN_00121f50(undefined8 param_1,undefined1 param_2)\n\n{\n  long in_FS_OFFSET;\n  undefined1 local_12;\n  undefined1 local_11;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  local_11 = 0;\n  local_12 = param_2;\n  FUN_00121d3c(param_1,&local_12,1);\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  __stack_chk_fail();\n}" primitive_type (function_declarator "FUN_00121f50(undefined8 param_1,undefined1 param_2)" identifier (parameter_list "(undefined8 param_1,undefined1 param_2)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined1 param_2" type_identifier identifier) ))) (compound_statement "{\n  long in_FS_OFFSET;\n  undefined1 local_12;\n  undefined1 local_11;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  local_11 = 0;\n  local_12 = param_2;\n  FUN_00121d3c(param_1,&local_12,1);\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  __stack_chk_fail();\n}" { (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 local_12;" type_identifier identifier ;) (declaration "undefined1 local_11;" type_identifier identifier ;) (declaration "long local_10;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_10 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_10 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "local_11 = 0;" (assignment_expression "local_11 = 0" identifier = number_literal) ;) (expression_statement "local_12 = param_2;" (assignment_expression "local_12 = param_2" identifier = identifier) ;) (expression_statement "FUN_00121d3c(param_1,&local_12,1);" (call_expression "FUN_00121d3c(param_1,&local_12,1)" identifier (argument_list "(param_1,&local_12,1)" ( identifier , (pointer_expression "&local_12" & identifier) , number_literal ))) ;) (if_statement "if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }" if (parenthesized_expression "(local_10 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_10 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_00121f50(undefined8 param_1,undefined1 param_2)\n\n{\n  long in_FS_OFFSET;\n  undefined1 local_12;\n  undefined1 local_11;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  local_11 = 0;\n  local_12 = param_2;\n  FUN_00121d3c(param_1,&local_12,1);\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  __stack_chk_fail();\n}" (primitive_type "void") (function_declarator "FUN_00121f50(undefined8 param_1,undefined1 param_2)" (identifier "FUN_00121f50") (parameter_list "(undefined8 param_1,undefined1 param_2)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "undefined1 param_2" (type_identifier "undefined1") (identifier "param_2")) () ")"))) (compound_statement "{\n  long in_FS_OFFSET;\n  undefined1 local_12;\n  undefined1 local_11;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  local_11 = 0;\n  local_12 = param_2;\n  FUN_00121d3c(param_1,&local_12,1);\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  __stack_chk_fail();\n}" ({ "{") (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "undefined1 local_12;" (type_identifier "undefined1") (identifier "local_12") (; ";")) (declaration "undefined1 local_11;" (type_identifier "undefined1") (identifier "local_11") (; ";")) (declaration "long local_10;" (sized_type_specifier "long" (long "long")) (identifier "local_10") (; ";")) (expression_statement "local_10 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_10 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_10") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "local_11 = 0;" (assignment_expression "local_11 = 0" (identifier "local_11") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_12 = param_2;" (assignment_expression "local_12 = param_2" (identifier "local_12") (= "=") (identifier "param_2")) (; ";")) (expression_statement "FUN_00121d3c(param_1,&local_12,1);" (call_expression "FUN_00121d3c(param_1,&local_12,1)" (identifier "FUN_00121d3c") (argument_list "(param_1,&local_12,1)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&local_12" (& "&") (identifier "local_12")) (, ",") (number_literal "1") () ")"))) (; ";")) (if_statement "if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_10 == *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_10 == *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_10") (== "==") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

char * function_1(char *s,int c)

{
  long var_3;
  char *pcVar2;
  long var_1;
  char set [2];
  
  var_3 = *(long *)(var_1 + 0x28);
  set[0] = (char)c;
  set[1] = '\0';
  pcVar2 = var_2(s,set,1);
  if (var_3 == *(long *)(var_1 + 0x28)) {
    return pcVar2;
  }
                    /* WARNING: Subroutine does not return */
  var_4();
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

void MASKED(undefined8 param_1,undefined1 param_2)

{
  long in_FS_OFFSET;
  undefined1 local_12;
  undefined1 local_11;
  long local_10;
  
  local_10 = *(long *)(in_FS_OFFSET + 0x28);
  local_11 = 0;
  local_12 = param_2;
  FUN_00121d3c(param_1,&local_12,1);
  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

