
int FUN_002421a8(int param_1)

{
  uint uVar1;
  char unaff_BP;
  int unaff_ESI;
  
  uVar1 = *(uint *)(unaff_ESI + 0x14) | 1;
  *(uint *)(unaff_ESI + 0x14) = uVar1;
  if ((*(uint *)(unaff_ESI + 0x10) & uVar1) != 0) {
                    /* WARNING: Subroutine does not return */
    std::__throw_ios_failure((char *)(param_1 + -0xec3f4));
  }
  if (unaff_BP == '\0') {
    *(undefined4 *)(unaff_ESI + 0x1c) = 0;
  }
  else {
    *(undefined4 *)(unaff_ESI + 0x20) = 0;
  }
  return unaff_ESI + 0x1c;
}



int FUN_002421a8(int param_1)

{
  uint uVar1;
  char unaff_BP;
  int unaff_ESI;
  
  uVar1 = *(uint *)(unaff_ESI + 0x14) | 1;
  *(uint *)(unaff_ESI + 0x14) = uVar1;
  if ((*(uint *)(unaff_ESI + 0x10) & uVar1) != 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0023cd60(param_1 + -0xec3f4);
  }
  if (unaff_BP == '\0') {
    *(undefined4 *)(unaff_ESI + 0x1c) = 0;
  }
  else {
    *(undefined4 *)(unaff_ESI + 0x20) = 0;
  }
  return unaff_ESI + 0x1c;
}


MOV EAX,dword ptr [ESI + 0x14]
OR EAX,0x1
MOV dword ptr [ESI + 0x14],EAX
TEST dword ptr [ESI + 0x10],EAX
JZ 0x0024216e
SUB ESP,0xc
MOV EBX,dword ptr [ESP + 0x10]
LEA EAX,[EBX + 0xfff13c0c]
PUSH EAX
CALL 0x0023cd60
(translation_unit "int FUN_002421a8(int param_1)\n\n{\n  uint uVar1;\n  char unaff_BP;\n  int unaff_ESI;\n  \n  uVar1 = *(uint *)(unaff_ESI + 0x14) | 1;\n  *(uint *)(unaff_ESI + 0x14) = uVar1;\n  if ((*(uint *)(unaff_ESI + 0x10) & uVar1) != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0023cd60(param_1 + -0xec3f4);\n  }\n  if (unaff_BP == '\0') {\n    *(undefined4 *)(unaff_ESI + 0x1c) = 0;\n  }\n  else {\n    *(undefined4 *)(unaff_ESI + 0x20) = 0;\n  }\n  return unaff_ESI + 0x1c;\n}\n\n" (function_definition "int FUN_002421a8(int param_1)\n\n{\n  uint uVar1;\n  char unaff_BP;\n  int unaff_ESI;\n  \n  uVar1 = *(uint *)(unaff_ESI + 0x14) | 1;\n  *(uint *)(unaff_ESI + 0x14) = uVar1;\n  if ((*(uint *)(unaff_ESI + 0x10) & uVar1) != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0023cd60(param_1 + -0xec3f4);\n  }\n  if (unaff_BP == '\0') {\n    *(undefined4 *)(unaff_ESI + 0x1c) = 0;\n  }\n  else {\n    *(undefined4 *)(unaff_ESI + 0x20) = 0;\n  }\n  return unaff_ESI + 0x1c;\n}" primitive_type (function_declarator "FUN_002421a8(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  char unaff_BP;\n  int unaff_ESI;\n  \n  uVar1 = *(uint *)(unaff_ESI + 0x14) | 1;\n  *(uint *)(unaff_ESI + 0x14) = uVar1;\n  if ((*(uint *)(unaff_ESI + 0x10) & uVar1) != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0023cd60(param_1 + -0xec3f4);\n  }\n  if (unaff_BP == '\0') {\n    *(undefined4 *)(unaff_ESI + 0x1c) = 0;\n  }\n  else {\n    *(undefined4 *)(unaff_ESI + 0x20) = 0;\n  }\n  return unaff_ESI + 0x1c;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "char unaff_BP;" primitive_type identifier ;) (declaration "int unaff_ESI;" primitive_type identifier ;) (expression_statement "uVar1 = *(uint *)(unaff_ESI + 0x14) | 1;" (assignment_expression "uVar1 = *(uint *)(unaff_ESI + 0x14) | 1" identifier = (binary_expression "*(uint *)(unaff_ESI + 0x14) | 1" (pointer_expression "*(uint *)(unaff_ESI + 0x14)" * (cast_expression "(uint *)(unaff_ESI + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_ESI + 0x14)" ( (binary_expression "unaff_ESI + 0x14" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "*(uint *)(unaff_ESI + 0x14) = uVar1;" (assignment_expression "*(uint *)(unaff_ESI + 0x14) = uVar1" (pointer_expression "*(uint *)(unaff_ESI + 0x14)" * (cast_expression "(uint *)(unaff_ESI + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_ESI + 0x14)" ( (binary_expression "unaff_ESI + 0x14" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((*(uint *)(unaff_ESI + 0x10) & uVar1) != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0023cd60(param_1 + -0xec3f4);\n  }" if (parenthesized_expression "((*(uint *)(unaff_ESI + 0x10) & uVar1) != 0)" ( (binary_expression "(*(uint *)(unaff_ESI + 0x10) & uVar1) != 0" (parenthesized_expression "(*(uint *)(unaff_ESI + 0x10) & uVar1)" ( (binary_expression "*(uint *)(unaff_ESI + 0x10) & uVar1" (pointer_expression "*(uint *)(unaff_ESI + 0x10)" * (cast_expression "(uint *)(unaff_ESI + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_ESI + 0x10)" ( (binary_expression "unaff_ESI + 0x10" identifier + number_literal) )))) & identifier) )) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0023cd60(param_1 + -0xec3f4);\n  }" { comment (expression_statement "FUN_0023cd60(param_1 + -0xec3f4);" (call_expression "FUN_0023cd60(param_1 + -0xec3f4)" identifier (argument_list "(param_1 + -0xec3f4)" ( (binary_expression "param_1 + -0xec3f4" identifier + number_literal) ))) ;) })) (if_statement "if (unaff_BP == '\0') {\n    *(undefined4 *)(unaff_ESI + 0x1c) = 0;\n  }\n  else {\n    *(undefined4 *)(unaff_ESI + 0x20) = 0;\n  }" if (parenthesized_expression "(unaff_BP == '\0')" ( (binary_expression "unaff_BP == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *(undefined4 *)(unaff_ESI + 0x1c) = 0;\n  }" { (expression_statement "*(undefined4 *)(unaff_ESI + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(unaff_ESI + 0x1c) = 0" (pointer_expression "*(undefined4 *)(unaff_ESI + 0x1c)" * (cast_expression "(undefined4 *)(unaff_ESI + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_ESI + 0x1c)" ( (binary_expression "unaff_ESI + 0x1c" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    *(undefined4 *)(unaff_ESI + 0x20) = 0;\n  }" else (compound_statement "{\n    *(undefined4 *)(unaff_ESI + 0x20) = 0;\n  }" { (expression_statement "*(undefined4 *)(unaff_ESI + 0x20) = 0;" (assignment_expression "*(undefined4 *)(unaff_ESI + 0x20) = 0" (pointer_expression "*(undefined4 *)(unaff_ESI + 0x20)" * (cast_expression "(undefined4 *)(unaff_ESI + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_ESI + 0x20)" ( (binary_expression "unaff_ESI + 0x20" identifier + number_literal) )))) = number_literal) ;) }))) (return_statement "return unaff_ESI + 0x1c;" return (binary_expression "unaff_ESI + 0x1c" identifier + number_literal) ;) })))
(translation_unit "int FUN_002421a8(int param_1)\n\n{\n  uint uVar1;\n  char unaff_BP;\n  int unaff_ESI;\n  \n  uVar1 = *(uint *)(unaff_ESI + 0x14) | 1;\n  *(uint *)(unaff_ESI + 0x14) = uVar1;\n  if ((*(uint *)(unaff_ESI + 0x10) & uVar1) != 0) {\n                    /* WARNING: Subroutine does not return */\n    std::__throw_ios_failure((char *)(param_1 + -0xec3f4));\n  }\n  if (unaff_BP == '\0') {\n    *(undefined4 *)(unaff_ESI + 0x1c) = 0;\n  }\n  else {\n    *(undefined4 *)(unaff_ESI + 0x20) = 0;\n  }\n  return unaff_ESI + 0x1c;\n}\n\n" (function_definition "int FUN_002421a8(int param_1)\n\n{\n  uint uVar1;\n  char unaff_BP;\n  int unaff_ESI;\n  \n  uVar1 = *(uint *)(unaff_ESI + 0x14) | 1;\n  *(uint *)(unaff_ESI + 0x14) = uVar1;\n  if ((*(uint *)(unaff_ESI + 0x10) & uVar1) != 0) {\n                    /* WARNING: Subroutine does not return */\n    std::__throw_ios_failure((char *)(param_1 + -0xec3f4));\n  }\n  if (unaff_BP == '\0') {\n    *(undefined4 *)(unaff_ESI + 0x1c) = 0;\n  }\n  else {\n    *(undefined4 *)(unaff_ESI + 0x20) = 0;\n  }\n  return unaff_ESI + 0x1c;\n}" primitive_type (function_declarator "FUN_002421a8(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  char unaff_BP;\n  int unaff_ESI;\n  \n  uVar1 = *(uint *)(unaff_ESI + 0x14) | 1;\n  *(uint *)(unaff_ESI + 0x14) = uVar1;\n  if ((*(uint *)(unaff_ESI + 0x10) & uVar1) != 0) {\n                    /* WARNING: Subroutine does not return */\n    std::__throw_ios_failure((char *)(param_1 + -0xec3f4));\n  }\n  if (unaff_BP == '\0') {\n    *(undefined4 *)(unaff_ESI + 0x1c) = 0;\n  }\n  else {\n    *(undefined4 *)(unaff_ESI + 0x20) = 0;\n  }\n  return unaff_ESI + 0x1c;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "char unaff_BP;" primitive_type identifier ;) (declaration "int unaff_ESI;" primitive_type identifier ;) (expression_statement "uVar1 = *(uint *)(unaff_ESI + 0x14) | 1;" (assignment_expression "uVar1 = *(uint *)(unaff_ESI + 0x14) | 1" identifier = (binary_expression "*(uint *)(unaff_ESI + 0x14) | 1" (pointer_expression "*(uint *)(unaff_ESI + 0x14)" * (cast_expression "(uint *)(unaff_ESI + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_ESI + 0x14)" ( (binary_expression "unaff_ESI + 0x14" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "*(uint *)(unaff_ESI + 0x14) = uVar1;" (assignment_expression "*(uint *)(unaff_ESI + 0x14) = uVar1" (pointer_expression "*(uint *)(unaff_ESI + 0x14)" * (cast_expression "(uint *)(unaff_ESI + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_ESI + 0x14)" ( (binary_expression "unaff_ESI + 0x14" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((*(uint *)(unaff_ESI + 0x10) & uVar1) != 0) {\n                    /* WARNING: Subroutine does not return */\n    std::__throw_ios_failure((char *)(param_1 + -0xec3f4));\n  }" if (parenthesized_expression "((*(uint *)(unaff_ESI + 0x10) & uVar1) != 0)" ( (binary_expression "(*(uint *)(unaff_ESI + 0x10) & uVar1) != 0" (parenthesized_expression "(*(uint *)(unaff_ESI + 0x10) & uVar1)" ( (binary_expression "*(uint *)(unaff_ESI + 0x10) & uVar1" (pointer_expression "*(uint *)(unaff_ESI + 0x10)" * (cast_expression "(uint *)(unaff_ESI + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_ESI + 0x10)" ( (binary_expression "unaff_ESI + 0x10" identifier + number_literal) )))) & identifier) )) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    std::__throw_ios_failure((char *)(param_1 + -0xec3f4));\n  }" { comment (labeled_statement "std::__throw_ios_failure((char *)(param_1 + -0xec3f4));" statement_identifier : (ERROR ":" :) (expression_statement "__throw_ios_failure((char *)(param_1 + -0xec3f4));" (call_expression "__throw_ios_failure((char *)(param_1 + -0xec3f4))" identifier (argument_list "((char *)(param_1 + -0xec3f4))" ( (cast_expression "(char *)(param_1 + -0xec3f4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + -0xec3f4)" ( (binary_expression "param_1 + -0xec3f4" identifier + number_literal) ))) ))) ;)) })) (if_statement "if (unaff_BP == '\0') {\n    *(undefined4 *)(unaff_ESI + 0x1c) = 0;\n  }\n  else {\n    *(undefined4 *)(unaff_ESI + 0x20) = 0;\n  }" if (parenthesized_expression "(unaff_BP == '\0')" ( (binary_expression "unaff_BP == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *(undefined4 *)(unaff_ESI + 0x1c) = 0;\n  }" { (expression_statement "*(undefined4 *)(unaff_ESI + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(unaff_ESI + 0x1c) = 0" (pointer_expression "*(undefined4 *)(unaff_ESI + 0x1c)" * (cast_expression "(undefined4 *)(unaff_ESI + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_ESI + 0x1c)" ( (binary_expression "unaff_ESI + 0x1c" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    *(undefined4 *)(unaff_ESI + 0x20) = 0;\n  }" else (compound_statement "{\n    *(undefined4 *)(unaff_ESI + 0x20) = 0;\n  }" { (expression_statement "*(undefined4 *)(unaff_ESI + 0x20) = 0;" (assignment_expression "*(undefined4 *)(unaff_ESI + 0x20) = 0" (pointer_expression "*(undefined4 *)(unaff_ESI + 0x20)" * (cast_expression "(undefined4 *)(unaff_ESI + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_ESI + 0x20)" ( (binary_expression "unaff_ESI + 0x20" identifier + number_literal) )))) = number_literal) ;) }))) (return_statement "return unaff_ESI + 0x1c;" return (binary_expression "unaff_ESI + 0x1c" identifier + number_literal) ;) })))
(translation_unit "int FUN_002421a8(int param_1)\n\n{\n  uint uVar1;\n  char unaff_BP;\n  int unaff_ESI;\n  \n  uVar1 = *(uint *)(unaff_ESI + 0x14) | 1;\n  *(uint *)(unaff_ESI + 0x14) = uVar1;\n  if ((*(uint *)(unaff_ESI + 0x10) & uVar1) != 0) {\n                    \n    FUN_0023cd60(param_1 + -0xec3f4);\n  }\n  if (unaff_BP == '\0') {\n    *(undefined4 *)(unaff_ESI + 0x1c) = 0;\n  }\n  else {\n    *(undefined4 *)(unaff_ESI + 0x20) = 0;\n  }\n  return unaff_ESI + 0x1c;\n}\n\n" (function_definition "int FUN_002421a8(int param_1)\n\n{\n  uint uVar1;\n  char unaff_BP;\n  int unaff_ESI;\n  \n  uVar1 = *(uint *)(unaff_ESI + 0x14) | 1;\n  *(uint *)(unaff_ESI + 0x14) = uVar1;\n  if ((*(uint *)(unaff_ESI + 0x10) & uVar1) != 0) {\n                    \n    FUN_0023cd60(param_1 + -0xec3f4);\n  }\n  if (unaff_BP == '\0') {\n    *(undefined4 *)(unaff_ESI + 0x1c) = 0;\n  }\n  else {\n    *(undefined4 *)(unaff_ESI + 0x20) = 0;\n  }\n  return unaff_ESI + 0x1c;\n}" primitive_type (function_declarator "FUN_002421a8(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  char unaff_BP;\n  int unaff_ESI;\n  \n  uVar1 = *(uint *)(unaff_ESI + 0x14) | 1;\n  *(uint *)(unaff_ESI + 0x14) = uVar1;\n  if ((*(uint *)(unaff_ESI + 0x10) & uVar1) != 0) {\n                    \n    FUN_0023cd60(param_1 + -0xec3f4);\n  }\n  if (unaff_BP == '\0') {\n    *(undefined4 *)(unaff_ESI + 0x1c) = 0;\n  }\n  else {\n    *(undefined4 *)(unaff_ESI + 0x20) = 0;\n  }\n  return unaff_ESI + 0x1c;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "char unaff_BP;" primitive_type identifier ;) (declaration "int unaff_ESI;" primitive_type identifier ;) (expression_statement "uVar1 = *(uint *)(unaff_ESI + 0x14) | 1;" (assignment_expression "uVar1 = *(uint *)(unaff_ESI + 0x14) | 1" identifier = (binary_expression "*(uint *)(unaff_ESI + 0x14) | 1" (pointer_expression "*(uint *)(unaff_ESI + 0x14)" * (cast_expression "(uint *)(unaff_ESI + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_ESI + 0x14)" ( (binary_expression "unaff_ESI + 0x14" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "*(uint *)(unaff_ESI + 0x14) = uVar1;" (assignment_expression "*(uint *)(unaff_ESI + 0x14) = uVar1" (pointer_expression "*(uint *)(unaff_ESI + 0x14)" * (cast_expression "(uint *)(unaff_ESI + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_ESI + 0x14)" ( (binary_expression "unaff_ESI + 0x14" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((*(uint *)(unaff_ESI + 0x10) & uVar1) != 0) {\n                    \n    FUN_0023cd60(param_1 + -0xec3f4);\n  }" if (parenthesized_expression "((*(uint *)(unaff_ESI + 0x10) & uVar1) != 0)" ( (binary_expression "(*(uint *)(unaff_ESI + 0x10) & uVar1) != 0" (parenthesized_expression "(*(uint *)(unaff_ESI + 0x10) & uVar1)" ( (binary_expression "*(uint *)(unaff_ESI + 0x10) & uVar1" (pointer_expression "*(uint *)(unaff_ESI + 0x10)" * (cast_expression "(uint *)(unaff_ESI + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_ESI + 0x10)" ( (binary_expression "unaff_ESI + 0x10" identifier + number_literal) )))) & identifier) )) != number_literal) )) (compound_statement "{\n                    \n    FUN_0023cd60(param_1 + -0xec3f4);\n  }" { (expression_statement "FUN_0023cd60(param_1 + -0xec3f4);" (call_expression "FUN_0023cd60(param_1 + -0xec3f4)" identifier (argument_list "(param_1 + -0xec3f4)" ( (binary_expression "param_1 + -0xec3f4" identifier + number_literal) ))) ;) })) (if_statement "if (unaff_BP == '\0') {\n    *(undefined4 *)(unaff_ESI + 0x1c) = 0;\n  }\n  else {\n    *(undefined4 *)(unaff_ESI + 0x20) = 0;\n  }" if (parenthesized_expression "(unaff_BP == '\0')" ( (binary_expression "unaff_BP == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *(undefined4 *)(unaff_ESI + 0x1c) = 0;\n  }" { (expression_statement "*(undefined4 *)(unaff_ESI + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(unaff_ESI + 0x1c) = 0" (pointer_expression "*(undefined4 *)(unaff_ESI + 0x1c)" * (cast_expression "(undefined4 *)(unaff_ESI + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_ESI + 0x1c)" ( (binary_expression "unaff_ESI + 0x1c" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    *(undefined4 *)(unaff_ESI + 0x20) = 0;\n  }" else (compound_statement "{\n    *(undefined4 *)(unaff_ESI + 0x20) = 0;\n  }" { (expression_statement "*(undefined4 *)(unaff_ESI + 0x20) = 0;" (assignment_expression "*(undefined4 *)(unaff_ESI + 0x20) = 0" (pointer_expression "*(undefined4 *)(unaff_ESI + 0x20)" * (cast_expression "(undefined4 *)(unaff_ESI + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_ESI + 0x20)" ( (binary_expression "unaff_ESI + 0x20" identifier + number_literal) )))) = number_literal) ;) }))) (return_statement "return unaff_ESI + 0x1c;" return (binary_expression "unaff_ESI + 0x1c" identifier + number_literal) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & IDENT) )) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }))) (return_statement return (binary_expression IDENT + LIT) ;) })))
(function_definition "int FUN_002421a8(int param_1)\n\n{\n  uint uVar1;\n  char unaff_BP;\n  int unaff_ESI;\n  \n  uVar1 = *(uint *)(unaff_ESI + 0x14) | 1;\n  *(uint *)(unaff_ESI + 0x14) = uVar1;\n  if ((*(uint *)(unaff_ESI + 0x10) & uVar1) != 0) {\n                    \n    FUN_0023cd60(param_1 + -0xec3f4);\n  }\n  if (unaff_BP == '\0') {\n    *(undefined4 *)(unaff_ESI + 0x1c) = 0;\n  }\n  else {\n    *(undefined4 *)(unaff_ESI + 0x20) = 0;\n  }\n  return unaff_ESI + 0x1c;\n}" (primitive_type "int") (function_declarator "FUN_002421a8(int param_1)" (identifier "FUN_002421a8") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  uint uVar1;\n  char unaff_BP;\n  int unaff_ESI;\n  \n  uVar1 = *(uint *)(unaff_ESI + 0x14) | 1;\n  *(uint *)(unaff_ESI + 0x14) = uVar1;\n  if ((*(uint *)(unaff_ESI + 0x10) & uVar1) != 0) {\n                    \n    FUN_0023cd60(param_1 + -0xec3f4);\n  }\n  if (unaff_BP == '\0') {\n    *(undefined4 *)(unaff_ESI + 0x1c) = 0;\n  }\n  else {\n    *(undefined4 *)(unaff_ESI + 0x20) = 0;\n  }\n  return unaff_ESI + 0x1c;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "char unaff_BP;" (primitive_type "char") (identifier "unaff_BP") (; ";")) (declaration "int unaff_ESI;" (primitive_type "int") (identifier "unaff_ESI") (; ";")) (expression_statement "uVar1 = *(uint *)(unaff_ESI + 0x14) | 1;" (assignment_expression "uVar1 = *(uint *)(unaff_ESI + 0x14) | 1" (identifier "uVar1") (= "=") (binary_expression "*(uint *)(unaff_ESI + 0x14) | 1" (pointer_expression "*(uint *)(unaff_ESI + 0x14)" (* "*") (cast_expression "(uint *)(unaff_ESI + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_ESI + 0x14)" (( "(") (binary_expression "unaff_ESI + 0x14" (identifier "unaff_ESI") (+ "+") (number_literal "0x14")) () ")")))) (| "|") (number_literal "1"))) (; ";")) (expression_statement "*(uint *)(unaff_ESI + 0x14) = uVar1;" (assignment_expression "*(uint *)(unaff_ESI + 0x14) = uVar1" (pointer_expression "*(uint *)(unaff_ESI + 0x14)" (* "*") (cast_expression "(uint *)(unaff_ESI + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_ESI + 0x14)" (( "(") (binary_expression "unaff_ESI + 0x14" (identifier "unaff_ESI") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (if_statement "if ((*(uint *)(unaff_ESI + 0x10) & uVar1) != 0) {\n                    \n    FUN_0023cd60(param_1 + -0xec3f4);\n  }" (if "if") (parenthesized_expression "((*(uint *)(unaff_ESI + 0x10) & uVar1) != 0)" (( "(") (binary_expression "(*(uint *)(unaff_ESI + 0x10) & uVar1) != 0" (parenthesized_expression "(*(uint *)(unaff_ESI + 0x10) & uVar1)" (( "(") (binary_expression "*(uint *)(unaff_ESI + 0x10) & uVar1" (pointer_expression "*(uint *)(unaff_ESI + 0x10)" (* "*") (cast_expression "(uint *)(unaff_ESI + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_ESI + 0x10)" (( "(") (binary_expression "unaff_ESI + 0x10" (identifier "unaff_ESI") (+ "+") (number_literal "0x10")) () ")")))) (& "&") (identifier "uVar1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_0023cd60(param_1 + -0xec3f4);\n  }" ({ "{") (expression_statement "FUN_0023cd60(param_1 + -0xec3f4);" (call_expression "FUN_0023cd60(param_1 + -0xec3f4)" (identifier "FUN_0023cd60") (argument_list "(param_1 + -0xec3f4)" (( "(") (binary_expression "param_1 + -0xec3f4" (identifier "param_1") (+ "+") (number_literal "-0xec3f4")) () ")"))) (; ";")) (} "}"))) (if_statement "if (unaff_BP == '\0') {\n    *(undefined4 *)(unaff_ESI + 0x1c) = 0;\n  }\n  else {\n    *(undefined4 *)(unaff_ESI + 0x20) = 0;\n  }" (if "if") (parenthesized_expression "(unaff_BP == '\0')" (( "(") (binary_expression "unaff_BP == '\0'" (identifier "unaff_BP") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    *(undefined4 *)(unaff_ESI + 0x1c) = 0;\n  }" ({ "{") (expression_statement "*(undefined4 *)(unaff_ESI + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(unaff_ESI + 0x1c) = 0" (pointer_expression "*(undefined4 *)(unaff_ESI + 0x1c)" (* "*") (cast_expression "(undefined4 *)(unaff_ESI + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_ESI + 0x1c)" (( "(") (binary_expression "unaff_ESI + 0x1c" (identifier "unaff_ESI") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    *(undefined4 *)(unaff_ESI + 0x20) = 0;\n  }" (else "else") (compound_statement "{\n    *(undefined4 *)(unaff_ESI + 0x20) = 0;\n  }" ({ "{") (expression_statement "*(undefined4 *)(unaff_ESI + 0x20) = 0;" (assignment_expression "*(undefined4 *)(unaff_ESI + 0x20) = 0" (pointer_expression "*(undefined4 *)(unaff_ESI + 0x20)" (* "*") (cast_expression "(undefined4 *)(unaff_ESI + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_ESI + 0x20)" (( "(") (binary_expression "unaff_ESI + 0x20" (identifier "unaff_ESI") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")))) (return_statement "return unaff_ESI + 0x1c;" (return "return") (binary_expression "unaff_ESI + 0x1c" (identifier "unaff_ESI") (+ "+") (number_literal "0x1c")) (; ";")) (} "}")))

int function_1(int var_4)

{
  type_1 var_2;
  char var_5;
  int var_1;
  
  var_2 = *(type_1 *)(var_1 + 0x14) | 1;
  *(type_1 *)(var_1 + 0x14) = var_2;
  if ((*(type_1 *)(var_1 + 0x10) & var_2) != 0) {
                    /* WARNING: Subroutine does not return */
    std::var_3((char *)(var_4 + -0xec3f4));
  }
  if (var_5 == '\0') {
    *(type_2 *)(var_1 + 0x1c) = 0;
  }
  else {
    *(type_2 *)(var_1 + 0x20) = 0;
  }
  return var_1 + 0x1c;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (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))))) right: (number_literal)))) (expression_statement (assignment_expression left: (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))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (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))))) right: (identifier))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (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))))) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (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))))) right: (number_literal)))))) (return_statement (binary_expression left: (identifier) right: (number_literal))))))

int MASKED(int param_1)

{
  uint uVar1;
  char unaff_BP;
  int unaff_ESI;
  
  uVar1 = *(uint *)(unaff_ESI + 0x14) | 1;
  *(uint *)(unaff_ESI + 0x14) = uVar1;
  if ((*(uint *)(unaff_ESI + 0x10) & uVar1) != 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0023cd60(param_1 + -0xec3f4);
  }
  if (unaff_BP == '\0') {
    *(undefined4 *)(unaff_ESI + 0x1c) = 0;
  }
  else {
    *(undefined4 *)(unaff_ESI + 0x20) = 0;
  }
  return unaff_ESI + 0x1c;
}

