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

void __regparm3 listing_message(char *name,char *message)

{
  list_info_struct *plVar1;
  char *pcVar2;
  list_message *plVar3;
  
  pcVar2 = (char *)concat(name,message,0);
  plVar3 = (list_message *)xmalloc(8);
  plVar3->message = pcVar2;
  plVar1 = listing_tail;
  plVar3->next = (list_message *)0x0;
  if (plVar1->last_message != (list_message *)0x0) {
    plVar1->last_message->next = plVar3;
    plVar1->last_message = plVar3;
    return;
  }
  plVar1->messages = plVar3;
  plVar1->last_message = plVar3;
  return;
}



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

void __regparm3 FUN_000280d0(undefined4 param_1,undefined4 param_2)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 *puVar3;
  
  uVar2 = concat(param_1,param_2,0);
  puVar3 = (undefined4 *)xmalloc(8);
  *puVar3 = uVar2;
  iVar1 = DAT_00083eb8;
  puVar3[1] = 0;
  if (*(int *)(iVar1 + 0x20) != 0) {
    *(undefined4 **)(*(int *)(iVar1 + 0x20) + 4) = puVar3;
    *(undefined4 **)(iVar1 + 0x20) = puVar3;
    return;
  }
  *(undefined4 **)(iVar1 + 0x1c) = puVar3;
  *(undefined4 **)(iVar1 + 0x20) = puVar3;
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00019010
ADD EBX,0x52f29
SUB ESP,0x8
PUSH 0x0
PUSH EDX
PUSH EAX
CALL 0x00017240
MOV dword ptr [ESP],0x8
MOV ESI,EAX
CALL 0x00017780
LEA EDX,[EBX + 0x8eb8]
ADD ESP,0x10
MOV dword ptr [EAX],ESI
MOV EDX,dword ptr [EDX]
MOV dword ptr [EAX + 0x4],0x0
MOV ECX,dword ptr [EDX + 0x20]
TEST ECX,ECX
JZ 0x00028120
MOV dword ptr [ECX + 0x4],EAX
MOV dword ptr [EDX + 0x20],EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
MOV dword ptr [EDX + 0x1c],EAX
MOV dword ptr [EDX + 0x20],EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_000280d0(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  \n  uVar2 = concat(param_1,param_2,0);\n  puVar3 = (undefined4 *)xmalloc(8);\n  *puVar3 = uVar2;\n  iVar1 = DAT_00083eb8;\n  puVar3[1] = 0;\n  if (*(int *)(iVar1 + 0x20) != 0) {\n    *(undefined4 **)(*(int *)(iVar1 + 0x20) + 4) = puVar3;\n    *(undefined4 **)(iVar1 + 0x20) = puVar3;\n    return;\n  }\n  *(undefined4 **)(iVar1 + 0x1c) = puVar3;\n  *(undefined4 **)(iVar1 + 0x20) = puVar3;\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_000280d0(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  \n  uVar2 = concat(param_1,param_2,0);\n  puVar3 = (undefined4 *)xmalloc(8);\n  *puVar3 = uVar2;\n  iVar1 = DAT_00083eb8;\n  puVar3[1] = 0;\n  if (*(int *)(iVar1 + 0x20) != 0) {\n    *(undefined4 **)(*(int *)(iVar1 + 0x20) + 4) = puVar3;\n    *(undefined4 **)(iVar1 + 0x20) = puVar3;\n    return;\n  }\n  *(undefined4 **)(iVar1 + 0x1c) = puVar3;\n  *(undefined4 **)(iVar1 + 0x20) = puVar3;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000280d0(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  \n  uVar2 = concat(param_1,param_2,0);\n  puVar3 = (undefined4 *)xmalloc(8);\n  *puVar3 = uVar2;\n  iVar1 = DAT_00083eb8;\n  puVar3[1] = 0;\n  if (*(int *)(iVar1 + 0x20) != 0) {\n    *(undefined4 **)(*(int *)(iVar1 + 0x20) + 4) = puVar3;\n    *(undefined4 **)(iVar1 + 0x20) = puVar3;\n    return;\n  }\n  *(undefined4 **)(iVar1 + 0x1c) = puVar3;\n  *(undefined4 **)(iVar1 + 0x20) = puVar3;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "uVar2 = concat(param_1,param_2,0);" (assignment_expression "uVar2 = 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 "puVar3 = (undefined4 *)xmalloc(8);" (assignment_expression "puVar3 = (undefined4 *)xmalloc(8)" identifier = (cast_expression "(undefined4 *)xmalloc(8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "*puVar3 = uVar2;" (assignment_expression "*puVar3 = uVar2" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "iVar1 = DAT_00083eb8;" (assignment_expression "iVar1 = DAT_00083eb8" identifier = identifier) ;) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (*(int *)(iVar1 + 0x20) != 0) {\n    *(undefined4 **)(*(int *)(iVar1 + 0x20) + 4) = puVar3;\n    *(undefined4 **)(iVar1 + 0x20) = puVar3;\n    return;\n  }" if (parenthesized_expression "(*(int *)(iVar1 + 0x20) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x20) != 0" (pointer_expression "*(int *)(iVar1 + 0x20)" * (cast_expression "(int *)(iVar1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    *(undefined4 **)(*(int *)(iVar1 + 0x20) + 4) = puVar3;\n    *(undefined4 **)(iVar1 + 0x20) = puVar3;\n    return;\n  }" { (expression_statement "*(undefined4 **)(*(int *)(iVar1 + 0x20) + 4) = puVar3;" (assignment_expression "*(undefined4 **)(*(int *)(iVar1 + 0x20) + 4) = puVar3" (pointer_expression "*(undefined4 **)(*(int *)(iVar1 + 0x20) + 4)" * (cast_expression "(undefined4 **)(*(int *)(iVar1 + 0x20) + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(iVar1 + 0x20) + 4)" ( (binary_expression "*(int *)(iVar1 + 0x20) + 4" (pointer_expression "*(int *)(iVar1 + 0x20)" * (cast_expression "(int *)(iVar1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 **)(iVar1 + 0x20) = puVar3;" (assignment_expression "*(undefined4 **)(iVar1 + 0x20) = puVar3" (pointer_expression "*(undefined4 **)(iVar1 + 0x20)" * (cast_expression "(undefined4 **)(iVar1 + 0x20)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "*(undefined4 **)(iVar1 + 0x1c) = puVar3;" (assignment_expression "*(undefined4 **)(iVar1 + 0x1c) = puVar3" (pointer_expression "*(undefined4 **)(iVar1 + 0x1c)" * (cast_expression "(undefined4 **)(iVar1 + 0x1c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x1c)" ( (binary_expression "iVar1 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 **)(iVar1 + 0x20) = puVar3;" (assignment_expression "*(undefined4 **)(iVar1 + 0x20) = puVar3" (pointer_expression "*(undefined4 **)(iVar1 + 0x20)" * (cast_expression "(undefined4 **)(iVar1 + 0x20)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 listing_message(char *name,char *message)\n\n{\n  list_info_struct *plVar1;\n  char *pcVar2;\n  list_message *plVar3;\n  \n  pcVar2 = (char *)concat(name,message,0);\n  plVar3 = (list_message *)xmalloc(8);\n  plVar3->message = pcVar2;\n  plVar1 = listing_tail;\n  plVar3->next = (list_message *)0x0;\n  if (plVar1->last_message != (list_message *)0x0) {\n    plVar1->last_message->next = plVar3;\n    plVar1->last_message = plVar3;\n    return;\n  }\n  plVar1->messages = plVar3;\n  plVar1->last_message = plVar3;\n  return;\n}\n\n" comment (function_definition "void __regparm3 listing_message(char *name,char *message)\n\n{\n  list_info_struct *plVar1;\n  char *pcVar2;\n  list_message *plVar3;\n  \n  pcVar2 = (char *)concat(name,message,0);\n  plVar3 = (list_message *)xmalloc(8);\n  plVar3->message = pcVar2;\n  plVar1 = listing_tail;\n  plVar3->next = (list_message *)0x0;\n  if (plVar1->last_message != (list_message *)0x0) {\n    plVar1->last_message->next = plVar3;\n    plVar1->last_message = plVar3;\n    return;\n  }\n  plVar1->messages = plVar3;\n  plVar1->last_message = plVar3;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (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_info_struct *plVar1;\n  char *pcVar2;\n  list_message *plVar3;\n  \n  pcVar2 = (char *)concat(name,message,0);\n  plVar3 = (list_message *)xmalloc(8);\n  plVar3->message = pcVar2;\n  plVar1 = listing_tail;\n  plVar3->next = (list_message *)0x0;\n  if (plVar1->last_message != (list_message *)0x0) {\n    plVar1->last_message->next = plVar3;\n    plVar1->last_message = plVar3;\n    return;\n  }\n  plVar1->messages = plVar3;\n  plVar1->last_message = plVar3;\n  return;\n}" { (declaration "list_info_struct *plVar1;" type_identifier (pointer_declarator "*plVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "list_message *plVar3;" type_identifier (pointer_declarator "*plVar3" * identifier) ;) (expression_statement "pcVar2 = (char *)concat(name,message,0);" (assignment_expression "pcVar2 = (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 "plVar3 = (list_message *)xmalloc(8);" (assignment_expression "plVar3 = (list_message *)xmalloc(8)" identifier = (cast_expression "(list_message *)xmalloc(8)" ( (type_descriptor "list_message *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "plVar3->message = pcVar2;" (assignment_expression "plVar3->message = pcVar2" (field_expression "plVar3->message" identifier -> field_identifier) = identifier) ;) (expression_statement "plVar1 = listing_tail;" (assignment_expression "plVar1 = listing_tail" identifier = identifier) ;) (expression_statement "plVar3->next = (list_message *)0x0;" (assignment_expression "plVar3->next = (list_message *)0x0" (field_expression "plVar3->next" identifier -> field_identifier) = (cast_expression "(list_message *)0x0" ( (type_descriptor "list_message *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (plVar1->last_message != (list_message *)0x0) {\n    plVar1->last_message->next = plVar3;\n    plVar1->last_message = plVar3;\n    return;\n  }" if (parenthesized_expression "(plVar1->last_message != (list_message *)0x0)" ( (binary_expression "plVar1->last_message != (list_message *)0x0" (field_expression "plVar1->last_message" identifier -> field_identifier) != (cast_expression "(list_message *)0x0" ( (type_descriptor "list_message *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    plVar1->last_message->next = plVar3;\n    plVar1->last_message = plVar3;\n    return;\n  }" { (expression_statement "plVar1->last_message->next = plVar3;" (assignment_expression "plVar1->last_message->next = plVar3" (field_expression "plVar1->last_message->next" (field_expression "plVar1->last_message" identifier -> field_identifier) -> field_identifier) = identifier) ;) (expression_statement "plVar1->last_message = plVar3;" (assignment_expression "plVar1->last_message = plVar3" (field_expression "plVar1->last_message" identifier -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "plVar1->messages = plVar3;" (assignment_expression "plVar1->messages = plVar3" (field_expression "plVar1->messages" identifier -> field_identifier) = identifier) ;) (expression_statement "plVar1->last_message = plVar3;" (assignment_expression "plVar1->last_message = plVar3" (field_expression "plVar1->last_message" identifier -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_000280d0(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  \n  uVar2 = concat(param_1,param_2,0);\n  puVar3 = (undefined4 *)xmalloc(8);\n  *puVar3 = uVar2;\n  iVar1 = DAT_00083eb8;\n  puVar3[1] = 0;\n  if (*(int *)(iVar1 + 0x20) != 0) {\n    *(undefined4 **)(*(int *)(iVar1 + 0x20) + 4) = puVar3;\n    *(undefined4 **)(iVar1 + 0x20) = puVar3;\n    return;\n  }\n  *(undefined4 **)(iVar1 + 0x1c) = puVar3;\n  *(undefined4 **)(iVar1 + 0x20) = puVar3;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_000280d0(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  \n  uVar2 = concat(param_1,param_2,0);\n  puVar3 = (undefined4 *)xmalloc(8);\n  *puVar3 = uVar2;\n  iVar1 = DAT_00083eb8;\n  puVar3[1] = 0;\n  if (*(int *)(iVar1 + 0x20) != 0) {\n    *(undefined4 **)(*(int *)(iVar1 + 0x20) + 4) = puVar3;\n    *(undefined4 **)(iVar1 + 0x20) = puVar3;\n    return;\n  }\n  *(undefined4 **)(iVar1 + 0x1c) = puVar3;\n  *(undefined4 **)(iVar1 + 0x20) = puVar3;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000280d0(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  \n  uVar2 = concat(param_1,param_2,0);\n  puVar3 = (undefined4 *)xmalloc(8);\n  *puVar3 = uVar2;\n  iVar1 = DAT_00083eb8;\n  puVar3[1] = 0;\n  if (*(int *)(iVar1 + 0x20) != 0) {\n    *(undefined4 **)(*(int *)(iVar1 + 0x20) + 4) = puVar3;\n    *(undefined4 **)(iVar1 + 0x20) = puVar3;\n    return;\n  }\n  *(undefined4 **)(iVar1 + 0x1c) = puVar3;\n  *(undefined4 **)(iVar1 + 0x20) = puVar3;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "uVar2 = concat(param_1,param_2,0);" (assignment_expression "uVar2 = 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 "puVar3 = (undefined4 *)xmalloc(8);" (assignment_expression "puVar3 = (undefined4 *)xmalloc(8)" identifier = (cast_expression "(undefined4 *)xmalloc(8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "*puVar3 = uVar2;" (assignment_expression "*puVar3 = uVar2" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "iVar1 = DAT_00083eb8;" (assignment_expression "iVar1 = DAT_00083eb8" identifier = identifier) ;) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (*(int *)(iVar1 + 0x20) != 0) {\n    *(undefined4 **)(*(int *)(iVar1 + 0x20) + 4) = puVar3;\n    *(undefined4 **)(iVar1 + 0x20) = puVar3;\n    return;\n  }" if (parenthesized_expression "(*(int *)(iVar1 + 0x20) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x20) != 0" (pointer_expression "*(int *)(iVar1 + 0x20)" * (cast_expression "(int *)(iVar1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    *(undefined4 **)(*(int *)(iVar1 + 0x20) + 4) = puVar3;\n    *(undefined4 **)(iVar1 + 0x20) = puVar3;\n    return;\n  }" { (expression_statement "*(undefined4 **)(*(int *)(iVar1 + 0x20) + 4) = puVar3;" (assignment_expression "*(undefined4 **)(*(int *)(iVar1 + 0x20) + 4) = puVar3" (pointer_expression "*(undefined4 **)(*(int *)(iVar1 + 0x20) + 4)" * (cast_expression "(undefined4 **)(*(int *)(iVar1 + 0x20) + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(iVar1 + 0x20) + 4)" ( (binary_expression "*(int *)(iVar1 + 0x20) + 4" (pointer_expression "*(int *)(iVar1 + 0x20)" * (cast_expression "(int *)(iVar1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 **)(iVar1 + 0x20) = puVar3;" (assignment_expression "*(undefined4 **)(iVar1 + 0x20) = puVar3" (pointer_expression "*(undefined4 **)(iVar1 + 0x20)" * (cast_expression "(undefined4 **)(iVar1 + 0x20)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "*(undefined4 **)(iVar1 + 0x1c) = puVar3;" (assignment_expression "*(undefined4 **)(iVar1 + 0x1c) = puVar3" (pointer_expression "*(undefined4 **)(iVar1 + 0x1c)" * (cast_expression "(undefined4 **)(iVar1 + 0x1c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x1c)" ( (binary_expression "iVar1 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 **)(iVar1 + 0x20) = puVar3;" (assignment_expression "*(undefined4 **)(iVar1 + 0x20) = puVar3" (pointer_expression "*(undefined4 **)(iVar1 + 0x20)" * (cast_expression "(undefined4 **)(iVar1 + 0x20)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE 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 (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + 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 __regparm3 FUN_000280d0(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  \n  uVar2 = concat(param_1,param_2,0);\n  puVar3 = (undefined4 *)xmalloc(8);\n  *puVar3 = uVar2;\n  iVar1 = DAT_00083eb8;\n  puVar3[1] = 0;\n  if (*(int *)(iVar1 + 0x20) != 0) {\n    *(undefined4 **)(*(int *)(iVar1 + 0x20) + 4) = puVar3;\n    *(undefined4 **)(iVar1 + 0x20) = puVar3;\n    return;\n  }\n  *(undefined4 **)(iVar1 + 0x1c) = puVar3;\n  *(undefined4 **)(iVar1 + 0x20) = puVar3;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000280d0(undefined4 param_1,undefined4 param_2)" (identifier "FUN_000280d0") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  \n  uVar2 = concat(param_1,param_2,0);\n  puVar3 = (undefined4 *)xmalloc(8);\n  *puVar3 = uVar2;\n  iVar1 = DAT_00083eb8;\n  puVar3[1] = 0;\n  if (*(int *)(iVar1 + 0x20) != 0) {\n    *(undefined4 **)(*(int *)(iVar1 + 0x20) + 4) = puVar3;\n    *(undefined4 **)(iVar1 + 0x20) = puVar3;\n    return;\n  }\n  *(undefined4 **)(iVar1 + 0x1c) = puVar3;\n  *(undefined4 **)(iVar1 + 0x20) = puVar3;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (expression_statement "uVar2 = concat(param_1,param_2,0);" (assignment_expression "uVar2 = concat(param_1,param_2,0)" (identifier "uVar2") (= "=") (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 "puVar3 = (undefined4 *)xmalloc(8);" (assignment_expression "puVar3 = (undefined4 *)xmalloc(8)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)xmalloc(8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(8)" (identifier "xmalloc") (argument_list "(8)" (( "(") (number_literal "8") () ")"))))) (; ";")) (expression_statement "*puVar3 = uVar2;" (assignment_expression "*puVar3 = uVar2" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "iVar1 = DAT_00083eb8;" (assignment_expression "iVar1 = DAT_00083eb8" (identifier "iVar1") (= "=") (identifier "DAT_00083eb8")) (; ";")) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (*(int *)(iVar1 + 0x20) != 0) {\n    *(undefined4 **)(*(int *)(iVar1 + 0x20) + 4) = puVar3;\n    *(undefined4 **)(iVar1 + 0x20) = puVar3;\n    return;\n  }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + 0x20) != 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0x20) != 0" (pointer_expression "*(int *)(iVar1 + 0x20)" (* "*") (cast_expression "(int *)(iVar1 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x20)" (( "(") (binary_expression "iVar1 + 0x20" (identifier "iVar1") (+ "+") (number_literal "0x20")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined4 **)(*(int *)(iVar1 + 0x20) + 4) = puVar3;\n    *(undefined4 **)(iVar1 + 0x20) = puVar3;\n    return;\n  }" ({ "{") (expression_statement "*(undefined4 **)(*(int *)(iVar1 + 0x20) + 4) = puVar3;" (assignment_expression "*(undefined4 **)(*(int *)(iVar1 + 0x20) + 4) = puVar3" (pointer_expression "*(undefined4 **)(*(int *)(iVar1 + 0x20) + 4)" (* "*") (cast_expression "(undefined4 **)(*(int *)(iVar1 + 0x20) + 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(iVar1 + 0x20) + 4)" (( "(") (binary_expression "*(int *)(iVar1 + 0x20) + 4" (pointer_expression "*(int *)(iVar1 + 0x20)" (* "*") (cast_expression "(int *)(iVar1 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x20)" (( "(") (binary_expression "iVar1 + 0x20" (identifier "iVar1") (+ "+") (number_literal "0x20")) () ")")))) (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "puVar3")) (; ";")) (expression_statement "*(undefined4 **)(iVar1 + 0x20) = puVar3;" (assignment_expression "*(undefined4 **)(iVar1 + 0x20) = puVar3" (pointer_expression "*(undefined4 **)(iVar1 + 0x20)" (* "*") (cast_expression "(undefined4 **)(iVar1 + 0x20)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 0x20)" (( "(") (binary_expression "iVar1 + 0x20" (identifier "iVar1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "puVar3")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*(undefined4 **)(iVar1 + 0x1c) = puVar3;" (assignment_expression "*(undefined4 **)(iVar1 + 0x1c) = puVar3" (pointer_expression "*(undefined4 **)(iVar1 + 0x1c)" (* "*") (cast_expression "(undefined4 **)(iVar1 + 0x1c)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 0x1c)" (( "(") (binary_expression "iVar1 + 0x1c" (identifier "iVar1") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (identifier "puVar3")) (; ";")) (expression_statement "*(undefined4 **)(iVar1 + 0x20) = puVar3;" (assignment_expression "*(undefined4 **)(iVar1 + 0x20) = puVar3" (pointer_expression "*(undefined4 **)(iVar1 + 0x20)" (* "*") (cast_expression "(undefined4 **)(iVar1 + 0x20)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 0x20)" (( "(") (binary_expression "iVar1 + 0x20" (identifier "iVar1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "puVar3")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(char *name,char *message)

{
  type_1 *plVar1;
  char *pcVar2;
  type_2 *plVar3;
  
  pcVar2 = (char *)var_1(name,message,0);
  plVar3 = (type_2 *)var_2(8);
  plVar3->message = pcVar2;
  plVar1 = listing_tail;
  plVar3->next = (type_2 *)0x0;
  if (plVar1->last_message != (type_2 *)0x0) {
    plVar1->last_message->next = plVar3;
    plVar1->last_message = plVar3;
    return;
  }
  plVar1->messages = plVar3;
  plVar1->last_message = plVar3;
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) 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: (primitive_type) 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: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) 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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) 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))))

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

void __regparm3 MASKED(undefined4 param_1,undefined4 param_2)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 *puVar3;
  
  uVar2 = concat(param_1,param_2,0);
  puVar3 = (undefined4 *)xmalloc(8);
  *puVar3 = uVar2;
  iVar1 = DAT_00083eb8;
  puVar3[1] = 0;
  if (*(int *)(iVar1 + 0x20) != 0) {
    *(undefined4 **)(*(int *)(iVar1 + 0x20) + 4) = puVar3;
    *(undefined4 **)(iVar1 + 0x20) = puVar3;
    return;
  }
  *(undefined4 **)(iVar1 + 0x1c) = puVar3;
  *(undefined4 **)(iVar1 + 0x20) = puVar3;
  return;
}

