
void listing_message(char *name,char *message)

{
  list_message *plVar1;
  list_info_struct *plVar2;
  char *pcVar3;
  list_message *plVar4;
  
  pcVar3 = (char *)concat(name,message,0);
  plVar4 = (list_message *)xmalloc(0x10);
  plVar2 = listing_tail;
  plVar4->message = pcVar3;
  plVar1 = plVar2->last_message;
  plVar4->next = (list_message *)0x0;
  if (plVar1 != (list_message *)0x0) {
    plVar1->next = plVar4;
    plVar2->last_message = plVar4;
    return;
  }
  plVar2->messages = plVar4;
  plVar2->last_message = plVar4;
  return;
}



void FUN_00118940(undefined8 param_1,undefined8 param_2)

{
  long lVar1;
  long lVar2;
  undefined8 uVar3;
  undefined8 *puVar4;
  
  uVar3 = concat(param_1,param_2,0);
  puVar4 = (undefined8 *)xmalloc(0x10);
  lVar2 = DAT_001e4738;
  *puVar4 = uVar3;
  lVar1 = *(long *)(lVar2 + 0x40);
  puVar4[1] = 0;
  if (lVar1 != 0) {
    *(undefined8 **)(lVar1 + 8) = puVar4;
    *(undefined8 **)(lVar2 + 0x40) = puVar4;
    return;
  }
  *(undefined8 **)(lVar2 + 0x38) = puVar4;
  *(undefined8 **)(lVar2 + 0x40) = puVar4;
  return;
}


PUSH RBX
XOR EDX,EDX
XOR EAX,EAX
CALL 0x00108290
MOV EDI,0x10
MOV RBX,RAX
CALL 0x00108748
MOV RDX,qword ptr [0x001e4738]
MOV qword ptr [RAX],RBX
MOV RCX,qword ptr [RDX + 0x40]
MOV qword ptr [RAX + 0x8],0x0
TEST RCX,RCX
JZ 0x00118980
MOV qword ptr [RCX + 0x8],RAX
MOV qword ptr [RDX + 0x40],RAX
POP RBX
RET
MOV qword ptr [RDX + 0x38],RAX
MOV qword ptr [RDX + 0x40],RAX
POP RBX
RET
(translation_unit "void FUN_00118940(undefined8 param_1,undefined8 param_2)\n\n{\n  long lVar1;\n  long lVar2;\n  undefined8 uVar3;\n  undefined8 *puVar4;\n  \n  uVar3 = concat(param_1,param_2,0);\n  puVar4 = (undefined8 *)xmalloc(0x10);\n  lVar2 = DAT_001e4738;\n  *puVar4 = uVar3;\n  lVar1 = *(long *)(lVar2 + 0x40);\n  puVar4[1] = 0;\n  if (lVar1 != 0) {\n    *(undefined8 **)(lVar1 + 8) = puVar4;\n    *(undefined8 **)(lVar2 + 0x40) = puVar4;\n    return;\n  }\n  *(undefined8 **)(lVar2 + 0x38) = puVar4;\n  *(undefined8 **)(lVar2 + 0x40) = puVar4;\n  return;\n}\n\n" (function_definition "void FUN_00118940(undefined8 param_1,undefined8 param_2)\n\n{\n  long lVar1;\n  long lVar2;\n  undefined8 uVar3;\n  undefined8 *puVar4;\n  \n  uVar3 = concat(param_1,param_2,0);\n  puVar4 = (undefined8 *)xmalloc(0x10);\n  lVar2 = DAT_001e4738;\n  *puVar4 = uVar3;\n  lVar1 = *(long *)(lVar2 + 0x40);\n  puVar4[1] = 0;\n  if (lVar1 != 0) {\n    *(undefined8 **)(lVar1 + 8) = puVar4;\n    *(undefined8 **)(lVar2 + 0x40) = puVar4;\n    return;\n  }\n  *(undefined8 **)(lVar2 + 0x38) = puVar4;\n  *(undefined8 **)(lVar2 + 0x40) = puVar4;\n  return;\n}" primitive_type (function_declarator "FUN_00118940(undefined8 param_1,undefined8 param_2)" identifier (parameter_list "(undefined8 param_1,undefined8 param_2)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  undefined8 uVar3;\n  undefined8 *puVar4;\n  \n  uVar3 = concat(param_1,param_2,0);\n  puVar4 = (undefined8 *)xmalloc(0x10);\n  lVar2 = DAT_001e4738;\n  *puVar4 = uVar3;\n  lVar1 = *(long *)(lVar2 + 0x40);\n  puVar4[1] = 0;\n  if (lVar1 != 0) {\n    *(undefined8 **)(lVar1 + 8) = puVar4;\n    *(undefined8 **)(lVar2 + 0x40) = puVar4;\n    return;\n  }\n  *(undefined8 **)(lVar2 + 0x38) = puVar4;\n  *(undefined8 **)(lVar2 + 0x40) = puVar4;\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "undefined8 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (expression_statement "uVar3 = concat(param_1,param_2,0);" (assignment_expression "uVar3 = concat(param_1,param_2,0)" identifier = (call_expression "concat(param_1,param_2,0)" identifier (argument_list "(param_1,param_2,0)" ( identifier , identifier , number_literal )))) ;) (expression_statement "puVar4 = (undefined8 *)xmalloc(0x10);" (assignment_expression "puVar4 = (undefined8 *)xmalloc(0x10)" identifier = (cast_expression "(undefined8 *)xmalloc(0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (expression_statement "lVar2 = DAT_001e4738;" (assignment_expression "lVar2 = DAT_001e4738" identifier = identifier) ;) (expression_statement "*puVar4 = uVar3;" (assignment_expression "*puVar4 = uVar3" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "lVar1 = *(long *)(lVar2 + 0x40);" (assignment_expression "lVar1 = *(long *)(lVar2 + 0x40)" identifier = (pointer_expression "*(long *)(lVar2 + 0x40)" * (cast_expression "(long *)(lVar2 + 0x40)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x40)" ( (binary_expression "lVar2 + 0x40" identifier + number_literal) ))))) ;) (expression_statement "puVar4[1] = 0;" (assignment_expression "puVar4[1] = 0" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (lVar1 != 0) {\n    *(undefined8 **)(lVar1 + 8) = puVar4;\n    *(undefined8 **)(lVar2 + 0x40) = puVar4;\n    return;\n  }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    *(undefined8 **)(lVar1 + 8) = puVar4;\n    *(undefined8 **)(lVar2 + 0x40) = puVar4;\n    return;\n  }" { (expression_statement "*(undefined8 **)(lVar1 + 8) = puVar4;" (assignment_expression "*(undefined8 **)(lVar1 + 8) = puVar4" (pointer_expression "*(undefined8 **)(lVar1 + 8)" * (cast_expression "(undefined8 **)(lVar1 + 8)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar1 + 8)" ( (binary_expression "lVar1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 **)(lVar2 + 0x40) = puVar4;" (assignment_expression "*(undefined8 **)(lVar2 + 0x40) = puVar4" (pointer_expression "*(undefined8 **)(lVar2 + 0x40)" * (cast_expression "(undefined8 **)(lVar2 + 0x40)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar2 + 0x40)" ( (binary_expression "lVar2 + 0x40" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "*(undefined8 **)(lVar2 + 0x38) = puVar4;" (assignment_expression "*(undefined8 **)(lVar2 + 0x38) = puVar4" (pointer_expression "*(undefined8 **)(lVar2 + 0x38)" * (cast_expression "(undefined8 **)(lVar2 + 0x38)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar2 + 0x38)" ( (binary_expression "lVar2 + 0x38" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 **)(lVar2 + 0x40) = puVar4;" (assignment_expression "*(undefined8 **)(lVar2 + 0x40) = puVar4" (pointer_expression "*(undefined8 **)(lVar2 + 0x40)" * (cast_expression "(undefined8 **)(lVar2 + 0x40)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar2 + 0x40)" ( (binary_expression "lVar2 + 0x40" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void listing_message(char *name,char *message)\n\n{\n  list_message *plVar1;\n  list_info_struct *plVar2;\n  char *pcVar3;\n  list_message *plVar4;\n  \n  pcVar3 = (char *)concat(name,message,0);\n  plVar4 = (list_message *)xmalloc(0x10);\n  plVar2 = listing_tail;\n  plVar4->message = pcVar3;\n  plVar1 = plVar2->last_message;\n  plVar4->next = (list_message *)0x0;\n  if (plVar1 != (list_message *)0x0) {\n    plVar1->next = plVar4;\n    plVar2->last_message = plVar4;\n    return;\n  }\n  plVar2->messages = plVar4;\n  plVar2->last_message = plVar4;\n  return;\n}\n\n" (function_definition "void listing_message(char *name,char *message)\n\n{\n  list_message *plVar1;\n  list_info_struct *plVar2;\n  char *pcVar3;\n  list_message *plVar4;\n  \n  pcVar3 = (char *)concat(name,message,0);\n  plVar4 = (list_message *)xmalloc(0x10);\n  plVar2 = listing_tail;\n  plVar4->message = pcVar3;\n  plVar1 = plVar2->last_message;\n  plVar4->next = (list_message *)0x0;\n  if (plVar1 != (list_message *)0x0) {\n    plVar1->next = plVar4;\n    plVar2->last_message = plVar4;\n    return;\n  }\n  plVar2->messages = plVar4;\n  plVar2->last_message = plVar4;\n  return;\n}" primitive_type (function_declarator "listing_message(char *name,char *message)" identifier (parameter_list "(char *name,char *message)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "char *message" primitive_type (pointer_declarator "*message" * identifier)) ))) (compound_statement "{\n  list_message *plVar1;\n  list_info_struct *plVar2;\n  char *pcVar3;\n  list_message *plVar4;\n  \n  pcVar3 = (char *)concat(name,message,0);\n  plVar4 = (list_message *)xmalloc(0x10);\n  plVar2 = listing_tail;\n  plVar4->message = pcVar3;\n  plVar1 = plVar2->last_message;\n  plVar4->next = (list_message *)0x0;\n  if (plVar1 != (list_message *)0x0) {\n    plVar1->next = plVar4;\n    plVar2->last_message = plVar4;\n    return;\n  }\n  plVar2->messages = plVar4;\n  plVar2->last_message = plVar4;\n  return;\n}" { (declaration "list_message *plVar1;" type_identifier (pointer_declarator "*plVar1" * identifier) ;) (declaration "list_info_struct *plVar2;" type_identifier (pointer_declarator "*plVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "list_message *plVar4;" type_identifier (pointer_declarator "*plVar4" * identifier) ;) (expression_statement "pcVar3 = (char *)concat(name,message,0);" (assignment_expression "pcVar3 = (char *)concat(name,message,0)" identifier = (cast_expression "(char *)concat(name,message,0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "concat(name,message,0)" identifier (argument_list "(name,message,0)" ( identifier , identifier , number_literal ))))) ;) (expression_statement "plVar4 = (list_message *)xmalloc(0x10);" (assignment_expression "plVar4 = (list_message *)xmalloc(0x10)" identifier = (cast_expression "(list_message *)xmalloc(0x10)" ( (type_descriptor "list_message *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (expression_statement "plVar2 = listing_tail;" (assignment_expression "plVar2 = listing_tail" identifier = identifier) ;) (expression_statement "plVar4->message = pcVar3;" (assignment_expression "plVar4->message = pcVar3" (field_expression "plVar4->message" identifier -> field_identifier) = identifier) ;) (expression_statement "plVar1 = plVar2->last_message;" (assignment_expression "plVar1 = plVar2->last_message" identifier = (field_expression "plVar2->last_message" identifier -> field_identifier)) ;) (expression_statement "plVar4->next = (list_message *)0x0;" (assignment_expression "plVar4->next = (list_message *)0x0" (field_expression "plVar4->next" identifier -> field_identifier) = (cast_expression "(list_message *)0x0" ( (type_descriptor "list_message *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (plVar1 != (list_message *)0x0) {\n    plVar1->next = plVar4;\n    plVar2->last_message = plVar4;\n    return;\n  }" if (parenthesized_expression "(plVar1 != (list_message *)0x0)" ( (binary_expression "plVar1 != (list_message *)0x0" identifier != (cast_expression "(list_message *)0x0" ( (type_descriptor "list_message *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    plVar1->next = plVar4;\n    plVar2->last_message = plVar4;\n    return;\n  }" { (expression_statement "plVar1->next = plVar4;" (assignment_expression "plVar1->next = plVar4" (field_expression "plVar1->next" identifier -> field_identifier) = identifier) ;) (expression_statement "plVar2->last_message = plVar4;" (assignment_expression "plVar2->last_message = plVar4" (field_expression "plVar2->last_message" identifier -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "plVar2->messages = plVar4;" (assignment_expression "plVar2->messages = plVar4" (field_expression "plVar2->messages" identifier -> field_identifier) = identifier) ;) (expression_statement "plVar2->last_message = plVar4;" (assignment_expression "plVar2->last_message = plVar4" (field_expression "plVar2->last_message" identifier -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00118940(undefined8 param_1,undefined8 param_2)\n\n{\n  long lVar1;\n  long lVar2;\n  undefined8 uVar3;\n  undefined8 *puVar4;\n  \n  uVar3 = concat(param_1,param_2,0);\n  puVar4 = (undefined8 *)xmalloc(0x10);\n  lVar2 = DAT_001e4738;\n  *puVar4 = uVar3;\n  lVar1 = *(long *)(lVar2 + 0x40);\n  puVar4[1] = 0;\n  if (lVar1 != 0) {\n    *(undefined8 **)(lVar1 + 8) = puVar4;\n    *(undefined8 **)(lVar2 + 0x40) = puVar4;\n    return;\n  }\n  *(undefined8 **)(lVar2 + 0x38) = puVar4;\n  *(undefined8 **)(lVar2 + 0x40) = puVar4;\n  return;\n}\n\n" (function_definition "void FUN_00118940(undefined8 param_1,undefined8 param_2)\n\n{\n  long lVar1;\n  long lVar2;\n  undefined8 uVar3;\n  undefined8 *puVar4;\n  \n  uVar3 = concat(param_1,param_2,0);\n  puVar4 = (undefined8 *)xmalloc(0x10);\n  lVar2 = DAT_001e4738;\n  *puVar4 = uVar3;\n  lVar1 = *(long *)(lVar2 + 0x40);\n  puVar4[1] = 0;\n  if (lVar1 != 0) {\n    *(undefined8 **)(lVar1 + 8) = puVar4;\n    *(undefined8 **)(lVar2 + 0x40) = puVar4;\n    return;\n  }\n  *(undefined8 **)(lVar2 + 0x38) = puVar4;\n  *(undefined8 **)(lVar2 + 0x40) = puVar4;\n  return;\n}" primitive_type (function_declarator "FUN_00118940(undefined8 param_1,undefined8 param_2)" identifier (parameter_list "(undefined8 param_1,undefined8 param_2)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  undefined8 uVar3;\n  undefined8 *puVar4;\n  \n  uVar3 = concat(param_1,param_2,0);\n  puVar4 = (undefined8 *)xmalloc(0x10);\n  lVar2 = DAT_001e4738;\n  *puVar4 = uVar3;\n  lVar1 = *(long *)(lVar2 + 0x40);\n  puVar4[1] = 0;\n  if (lVar1 != 0) {\n    *(undefined8 **)(lVar1 + 8) = puVar4;\n    *(undefined8 **)(lVar2 + 0x40) = puVar4;\n    return;\n  }\n  *(undefined8 **)(lVar2 + 0x38) = puVar4;\n  *(undefined8 **)(lVar2 + 0x40) = puVar4;\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "undefined8 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (expression_statement "uVar3 = concat(param_1,param_2,0);" (assignment_expression "uVar3 = concat(param_1,param_2,0)" identifier = (call_expression "concat(param_1,param_2,0)" identifier (argument_list "(param_1,param_2,0)" ( identifier , identifier , number_literal )))) ;) (expression_statement "puVar4 = (undefined8 *)xmalloc(0x10);" (assignment_expression "puVar4 = (undefined8 *)xmalloc(0x10)" identifier = (cast_expression "(undefined8 *)xmalloc(0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (expression_statement "lVar2 = DAT_001e4738;" (assignment_expression "lVar2 = DAT_001e4738" identifier = identifier) ;) (expression_statement "*puVar4 = uVar3;" (assignment_expression "*puVar4 = uVar3" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "lVar1 = *(long *)(lVar2 + 0x40);" (assignment_expression "lVar1 = *(long *)(lVar2 + 0x40)" identifier = (pointer_expression "*(long *)(lVar2 + 0x40)" * (cast_expression "(long *)(lVar2 + 0x40)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x40)" ( (binary_expression "lVar2 + 0x40" identifier + number_literal) ))))) ;) (expression_statement "puVar4[1] = 0;" (assignment_expression "puVar4[1] = 0" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (lVar1 != 0) {\n    *(undefined8 **)(lVar1 + 8) = puVar4;\n    *(undefined8 **)(lVar2 + 0x40) = puVar4;\n    return;\n  }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    *(undefined8 **)(lVar1 + 8) = puVar4;\n    *(undefined8 **)(lVar2 + 0x40) = puVar4;\n    return;\n  }" { (expression_statement "*(undefined8 **)(lVar1 + 8) = puVar4;" (assignment_expression "*(undefined8 **)(lVar1 + 8) = puVar4" (pointer_expression "*(undefined8 **)(lVar1 + 8)" * (cast_expression "(undefined8 **)(lVar1 + 8)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar1 + 8)" ( (binary_expression "lVar1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 **)(lVar2 + 0x40) = puVar4;" (assignment_expression "*(undefined8 **)(lVar2 + 0x40) = puVar4" (pointer_expression "*(undefined8 **)(lVar2 + 0x40)" * (cast_expression "(undefined8 **)(lVar2 + 0x40)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar2 + 0x40)" ( (binary_expression "lVar2 + 0x40" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "*(undefined8 **)(lVar2 + 0x38) = puVar4;" (assignment_expression "*(undefined8 **)(lVar2 + 0x38) = puVar4" (pointer_expression "*(undefined8 **)(lVar2 + 0x38)" * (cast_expression "(undefined8 **)(lVar2 + 0x38)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar2 + 0x38)" ( (binary_expression "lVar2 + 0x38" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 **)(lVar2 + 0x40) = puVar4;" (assignment_expression "*(undefined8 **)(lVar2 + 0x40) = puVar4" (pointer_expression "*(undefined8 **)(lVar2 + 0x40)" * (cast_expression "(undefined8 **)(lVar2 + 0x40)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar2 + 0x40)" ( (binary_expression "lVar2 + 0x40" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(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 (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = 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 (subscript_expression IDENT [ LIT ]) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_00118940(undefined8 param_1,undefined8 param_2)\n\n{\n  long lVar1;\n  long lVar2;\n  undefined8 uVar3;\n  undefined8 *puVar4;\n  \n  uVar3 = concat(param_1,param_2,0);\n  puVar4 = (undefined8 *)xmalloc(0x10);\n  lVar2 = DAT_001e4738;\n  *puVar4 = uVar3;\n  lVar1 = *(long *)(lVar2 + 0x40);\n  puVar4[1] = 0;\n  if (lVar1 != 0) {\n    *(undefined8 **)(lVar1 + 8) = puVar4;\n    *(undefined8 **)(lVar2 + 0x40) = puVar4;\n    return;\n  }\n  *(undefined8 **)(lVar2 + 0x38) = puVar4;\n  *(undefined8 **)(lVar2 + 0x40) = puVar4;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00118940(undefined8 param_1,undefined8 param_2)" (identifier "FUN_00118940") (parameter_list "(undefined8 param_1,undefined8 param_2)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) () ")"))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  undefined8 uVar3;\n  undefined8 *puVar4;\n  \n  uVar3 = concat(param_1,param_2,0);\n  puVar4 = (undefined8 *)xmalloc(0x10);\n  lVar2 = DAT_001e4738;\n  *puVar4 = uVar3;\n  lVar1 = *(long *)(lVar2 + 0x40);\n  puVar4[1] = 0;\n  if (lVar1 != 0) {\n    *(undefined8 **)(lVar1 + 8) = puVar4;\n    *(undefined8 **)(lVar2 + 0x40) = puVar4;\n    return;\n  }\n  *(undefined8 **)(lVar2 + 0x38) = puVar4;\n  *(undefined8 **)(lVar2 + 0x40) = puVar4;\n  return;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (declaration "undefined8 *puVar4;" (type_identifier "undefined8") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (expression_statement "uVar3 = concat(param_1,param_2,0);" (assignment_expression "uVar3 = concat(param_1,param_2,0)" (identifier "uVar3") (= "=") (call_expression "concat(param_1,param_2,0)" (identifier "concat") (argument_list "(param_1,param_2,0)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "puVar4 = (undefined8 *)xmalloc(0x10);" (assignment_expression "puVar4 = (undefined8 *)xmalloc(0x10)" (identifier "puVar4") (= "=") (cast_expression "(undefined8 *)xmalloc(0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x10)" (identifier "xmalloc") (argument_list "(0x10)" (( "(") (number_literal "0x10") () ")"))))) (; ";")) (expression_statement "lVar2 = DAT_001e4738;" (assignment_expression "lVar2 = DAT_001e4738" (identifier "lVar2") (= "=") (identifier "DAT_001e4738")) (; ";")) (expression_statement "*puVar4 = uVar3;" (assignment_expression "*puVar4 = uVar3" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "lVar1 = *(long *)(lVar2 + 0x40);" (assignment_expression "lVar1 = *(long *)(lVar2 + 0x40)" (identifier "lVar1") (= "=") (pointer_expression "*(long *)(lVar2 + 0x40)" (* "*") (cast_expression "(long *)(lVar2 + 0x40)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x40)" (( "(") (binary_expression "lVar2 + 0x40" (identifier "lVar2") (+ "+") (number_literal "0x40")) () ")"))))) (; ";")) (expression_statement "puVar4[1] = 0;" (assignment_expression "puVar4[1] = 0" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (lVar1 != 0) {\n    *(undefined8 **)(lVar1 + 8) = puVar4;\n    *(undefined8 **)(lVar2 + 0x40) = puVar4;\n    return;\n  }" (if "if") (parenthesized_expression "(lVar1 != 0)" (( "(") (binary_expression "lVar1 != 0" (identifier "lVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined8 **)(lVar1 + 8) = puVar4;\n    *(undefined8 **)(lVar2 + 0x40) = puVar4;\n    return;\n  }" ({ "{") (expression_statement "*(undefined8 **)(lVar1 + 8) = puVar4;" (assignment_expression "*(undefined8 **)(lVar1 + 8) = puVar4" (pointer_expression "*(undefined8 **)(lVar1 + 8)" (* "*") (cast_expression "(undefined8 **)(lVar1 + 8)" (( "(") (type_descriptor "undefined8 **" (type_identifier "undefined8") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar1 + 8)" (( "(") (binary_expression "lVar1 + 8" (identifier "lVar1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "puVar4")) (; ";")) (expression_statement "*(undefined8 **)(lVar2 + 0x40) = puVar4;" (assignment_expression "*(undefined8 **)(lVar2 + 0x40) = puVar4" (pointer_expression "*(undefined8 **)(lVar2 + 0x40)" (* "*") (cast_expression "(undefined8 **)(lVar2 + 0x40)" (( "(") (type_descriptor "undefined8 **" (type_identifier "undefined8") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar2 + 0x40)" (( "(") (binary_expression "lVar2 + 0x40" (identifier "lVar2") (+ "+") (number_literal "0x40")) () ")")))) (= "=") (identifier "puVar4")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*(undefined8 **)(lVar2 + 0x38) = puVar4;" (assignment_expression "*(undefined8 **)(lVar2 + 0x38) = puVar4" (pointer_expression "*(undefined8 **)(lVar2 + 0x38)" (* "*") (cast_expression "(undefined8 **)(lVar2 + 0x38)" (( "(") (type_descriptor "undefined8 **" (type_identifier "undefined8") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar2 + 0x38)" (( "(") (binary_expression "lVar2 + 0x38" (identifier "lVar2") (+ "+") (number_literal "0x38")) () ")")))) (= "=") (identifier "puVar4")) (; ";")) (expression_statement "*(undefined8 **)(lVar2 + 0x40) = puVar4;" (assignment_expression "*(undefined8 **)(lVar2 + 0x40) = puVar4" (pointer_expression "*(undefined8 **)(lVar2 + 0x40)" (* "*") (cast_expression "(undefined8 **)(lVar2 + 0x40)" (( "(") (type_descriptor "undefined8 **" (type_identifier "undefined8") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar2 + 0x40)" (( "(") (binary_expression "lVar2 + 0x40" (identifier "lVar2") (+ "+") (number_literal "0x40")) () ")")))) (= "=") (identifier "puVar4")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(char *name,char *message)

{
  type_1 *var_3;
  type_2 *plVar2;
  char *pcVar3;
  type_1 *plVar4;
  
  pcVar3 = (char *)var_1(name,message,0);
  plVar4 = (type_1 *)var_2(0x10);
  plVar2 = listing_tail;
  plVar4->message = pcVar3;
  var_3 = plVar2->last_message;
  plVar4->next = (type_1 *)0x0;
  if (var_3 != (type_1 *)0x0) {
    var_3->next = plVar4;
    plVar2->last_message = plVar4;
    return;
  }
  plVar2->messages = plVar4;
  plVar2->last_message = plVar4;
  return;
}


(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: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (return_statement))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (return_statement))))

void MASKED(undefined8 param_1,undefined8 param_2)

{
  long lVar1;
  long lVar2;
  undefined8 uVar3;
  undefined8 *puVar4;
  
  uVar3 = concat(param_1,param_2,0);
  puVar4 = (undefined8 *)xmalloc(0x10);
  lVar2 = DAT_001e4738;
  *puVar4 = uVar3;
  lVar1 = *(long *)(lVar2 + 0x40);
  puVar4[1] = 0;
  if (lVar1 != 0) {
    *(undefined8 **)(lVar1 + 8) = puVar4;
    *(undefined8 **)(lVar2 + 0x40) = puVar4;
    return;
  }
  *(undefined8 **)(lVar2 + 0x38) = puVar4;
  *(undefined8 **)(lVar2 + 0x40) = puVar4;
  return;
}

