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

void lang_add_unique(char *name)

{
  int iVar1;
  unique_sections *puVar2;
  char *pcVar3;
  
  puVar2 = unique_section_list;
  if (unique_section_list != (unique_sections *)0x0) {
    do {
      iVar1 = strcmp(puVar2->name,name);
      if (iVar1 == 0) {
        return;
      }
      puVar2 = puVar2->next;
    } while (puVar2 != (unique_sections *)0x0);
  }
  puVar2 = (unique_sections *)xmalloc(8);
  pcVar3 = (char *)xstrdup(name);
  puVar2->name = pcVar3;
  puVar2->next = unique_section_list;
  unique_section_list = puVar2;
  return;
}



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

void FUN_0002ce30(char *param_1)

{
  int iVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  int *piVar4;
  
  piVar4 = DAT_001cf734;
  if (DAT_001cf734 != (int *)0x0) {
    do {
      iVar1 = strcmp((char *)piVar4[1],param_1);
      if (iVar1 == 0) {
        return;
      }
      piVar4 = (int *)*piVar4;
    } while (piVar4 != (int *)0x0);
  }
  puVar2 = (undefined4 *)xmalloc(8);
  uVar3 = xstrdup(param_1);
  puVar2[1] = uVar3;
  *puVar2 = DAT_001cf734;
  DAT_001cf734 = puVar2;
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EDI,dword ptr [ESP + 0x10]
CALL 0x00017b80
ADD EBX,0x1a11c4
MOV ESI,dword ptr [EBX + 0x1734]
TEST ESI,ESI
JNZ 0x0002ce56
JMP 0x0002ce70
MOV ESI,dword ptr [ESI]
TEST ESI,ESI
JZ 0x0002ce70
SUB ESP,0x8
PUSH EDI
PUSH dword ptr [ESI + 0x4]
CALL 0x000160c0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0002ce50
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0xc
PUSH 0x8
CALL 0x00016dc8
MOV dword ptr [ESP],EDI
MOV ESI,EAX
CALL 0x000164f0
ADD ESP,0x10
MOV dword ptr [ESI + 0x4],EAX
MOV EAX,dword ptr [EBX + 0x1734]
MOV dword ptr [EBX + 0x1734],ESI
MOV dword ptr [ESI],EAX
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0002ce30(char *param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  \n  piVar4 = DAT_001cf734;\n  if (DAT_001cf734 != (int *)0x0) {\n    do {\n      iVar1 = strcmp((char *)piVar4[1],param_1);\n      if (iVar1 == 0) {\n        return;\n      }\n      piVar4 = (int *)*piVar4;\n    } while (piVar4 != (int *)0x0);\n  }\n  puVar2 = (undefined4 *)xmalloc(8);\n  uVar3 = xstrdup(param_1);\n  puVar2[1] = uVar3;\n  *puVar2 = DAT_001cf734;\n  DAT_001cf734 = puVar2;\n  return;\n}\n\n" comment (function_definition "void FUN_0002ce30(char *param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  \n  piVar4 = DAT_001cf734;\n  if (DAT_001cf734 != (int *)0x0) {\n    do {\n      iVar1 = strcmp((char *)piVar4[1],param_1);\n      if (iVar1 == 0) {\n        return;\n      }\n      piVar4 = (int *)*piVar4;\n    } while (piVar4 != (int *)0x0);\n  }\n  puVar2 = (undefined4 *)xmalloc(8);\n  uVar3 = xstrdup(param_1);\n  puVar2[1] = uVar3;\n  *puVar2 = DAT_001cf734;\n  DAT_001cf734 = puVar2;\n  return;\n}" primitive_type (function_declarator "FUN_0002ce30(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  \n  piVar4 = DAT_001cf734;\n  if (DAT_001cf734 != (int *)0x0) {\n    do {\n      iVar1 = strcmp((char *)piVar4[1],param_1);\n      if (iVar1 == 0) {\n        return;\n      }\n      piVar4 = (int *)*piVar4;\n    } while (piVar4 != (int *)0x0);\n  }\n  puVar2 = (undefined4 *)xmalloc(8);\n  uVar3 = xstrdup(param_1);\n  puVar2[1] = uVar3;\n  *puVar2 = DAT_001cf734;\n  DAT_001cf734 = puVar2;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (expression_statement "piVar4 = DAT_001cf734;" (assignment_expression "piVar4 = DAT_001cf734" identifier = identifier) ;) (if_statement "if (DAT_001cf734 != (int *)0x0) {\n    do {\n      iVar1 = strcmp((char *)piVar4[1],param_1);\n      if (iVar1 == 0) {\n        return;\n      }\n      piVar4 = (int *)*piVar4;\n    } while (piVar4 != (int *)0x0);\n  }" if (parenthesized_expression "(DAT_001cf734 != (int *)0x0)" ( (binary_expression "DAT_001cf734 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      iVar1 = strcmp((char *)piVar4[1],param_1);\n      if (iVar1 == 0) {\n        return;\n      }\n      piVar4 = (int *)*piVar4;\n    } while (piVar4 != (int *)0x0);\n  }" { (do_statement "do {\n      iVar1 = strcmp((char *)piVar4[1],param_1);\n      if (iVar1 == 0) {\n        return;\n      }\n      piVar4 = (int *)*piVar4;\n    } while (piVar4 != (int *)0x0);" do (compound_statement "{\n      iVar1 = strcmp((char *)piVar4[1],param_1);\n      if (iVar1 == 0) {\n        return;\n      }\n      piVar4 = (int *)*piVar4;\n    }" { (expression_statement "iVar1 = strcmp((char *)piVar4[1],param_1);" (assignment_expression "iVar1 = strcmp((char *)piVar4[1],param_1)" identifier = (call_expression "strcmp((char *)piVar4[1],param_1)" identifier (argument_list "((char *)piVar4[1],param_1)" ( (cast_expression "(char *)piVar4[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[1]" identifier [ number_literal ])) , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n        return;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "piVar4 = (int *)*piVar4;" (assignment_expression "piVar4 = (int *)*piVar4" identifier = (cast_expression "(int *)*piVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier))) ;) }) while (parenthesized_expression "(piVar4 != (int *)0x0)" ( (binary_expression "piVar4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "puVar2 = (undefined4 *)xmalloc(8);" (assignment_expression "puVar2 = (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 "uVar3 = xstrdup(param_1);" (assignment_expression "uVar3 = xstrdup(param_1)" identifier = (call_expression "xstrdup(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "puVar2[1] = uVar3;" (assignment_expression "puVar2[1] = uVar3" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar2 = DAT_001cf734;" (assignment_expression "*puVar2 = DAT_001cf734" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "DAT_001cf734 = puVar2;" (assignment_expression "DAT_001cf734 = puVar2" identifier = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid lang_add_unique(char *name)\n\n{\n  int iVar1;\n  unique_sections *puVar2;\n  char *pcVar3;\n  \n  puVar2 = unique_section_list;\n  if (unique_section_list != (unique_sections *)0x0) {\n    do {\n      iVar1 = strcmp(puVar2->name,name);\n      if (iVar1 == 0) {\n        return;\n      }\n      puVar2 = puVar2->next;\n    } while (puVar2 != (unique_sections *)0x0);\n  }\n  puVar2 = (unique_sections *)xmalloc(8);\n  pcVar3 = (char *)xstrdup(name);\n  puVar2->name = pcVar3;\n  puVar2->next = unique_section_list;\n  unique_section_list = puVar2;\n  return;\n}\n\n" comment comment (function_definition "void lang_add_unique(char *name)\n\n{\n  int iVar1;\n  unique_sections *puVar2;\n  char *pcVar3;\n  \n  puVar2 = unique_section_list;\n  if (unique_section_list != (unique_sections *)0x0) {\n    do {\n      iVar1 = strcmp(puVar2->name,name);\n      if (iVar1 == 0) {\n        return;\n      }\n      puVar2 = puVar2->next;\n    } while (puVar2 != (unique_sections *)0x0);\n  }\n  puVar2 = (unique_sections *)xmalloc(8);\n  pcVar3 = (char *)xstrdup(name);\n  puVar2->name = pcVar3;\n  puVar2->next = unique_section_list;\n  unique_section_list = puVar2;\n  return;\n}" primitive_type (function_declarator "lang_add_unique(char *name)" identifier (parameter_list "(char *name)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  unique_sections *puVar2;\n  char *pcVar3;\n  \n  puVar2 = unique_section_list;\n  if (unique_section_list != (unique_sections *)0x0) {\n    do {\n      iVar1 = strcmp(puVar2->name,name);\n      if (iVar1 == 0) {\n        return;\n      }\n      puVar2 = puVar2->next;\n    } while (puVar2 != (unique_sections *)0x0);\n  }\n  puVar2 = (unique_sections *)xmalloc(8);\n  pcVar3 = (char *)xstrdup(name);\n  puVar2->name = pcVar3;\n  puVar2->next = unique_section_list;\n  unique_section_list = puVar2;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "unique_sections *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "puVar2 = unique_section_list;" (assignment_expression "puVar2 = unique_section_list" identifier = identifier) ;) (if_statement "if (unique_section_list != (unique_sections *)0x0) {\n    do {\n      iVar1 = strcmp(puVar2->name,name);\n      if (iVar1 == 0) {\n        return;\n      }\n      puVar2 = puVar2->next;\n    } while (puVar2 != (unique_sections *)0x0);\n  }" if (parenthesized_expression "(unique_section_list != (unique_sections *)0x0)" ( (binary_expression "unique_section_list != (unique_sections *)0x0" identifier != (cast_expression "(unique_sections *)0x0" ( (type_descriptor "unique_sections *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      iVar1 = strcmp(puVar2->name,name);\n      if (iVar1 == 0) {\n        return;\n      }\n      puVar2 = puVar2->next;\n    } while (puVar2 != (unique_sections *)0x0);\n  }" { (do_statement "do {\n      iVar1 = strcmp(puVar2->name,name);\n      if (iVar1 == 0) {\n        return;\n      }\n      puVar2 = puVar2->next;\n    } while (puVar2 != (unique_sections *)0x0);" do (compound_statement "{\n      iVar1 = strcmp(puVar2->name,name);\n      if (iVar1 == 0) {\n        return;\n      }\n      puVar2 = puVar2->next;\n    }" { (expression_statement "iVar1 = strcmp(puVar2->name,name);" (assignment_expression "iVar1 = strcmp(puVar2->name,name)" identifier = (call_expression "strcmp(puVar2->name,name)" identifier (argument_list "(puVar2->name,name)" ( (field_expression "puVar2->name" identifier -> field_identifier) , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n        return;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "puVar2 = puVar2->next;" (assignment_expression "puVar2 = puVar2->next" identifier = (field_expression "puVar2->next" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(puVar2 != (unique_sections *)0x0)" ( (binary_expression "puVar2 != (unique_sections *)0x0" identifier != (cast_expression "(unique_sections *)0x0" ( (type_descriptor "unique_sections *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "puVar2 = (unique_sections *)xmalloc(8);" (assignment_expression "puVar2 = (unique_sections *)xmalloc(8)" identifier = (cast_expression "(unique_sections *)xmalloc(8)" ( (type_descriptor "unique_sections *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "pcVar3 = (char *)xstrdup(name);" (assignment_expression "pcVar3 = (char *)xstrdup(name)" identifier = (cast_expression "(char *)xstrdup(name)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xstrdup(name)" identifier (argument_list "(name)" ( identifier ))))) ;) (expression_statement "puVar2->name = pcVar3;" (assignment_expression "puVar2->name = pcVar3" (field_expression "puVar2->name" identifier -> field_identifier) = identifier) ;) (expression_statement "puVar2->next = unique_section_list;" (assignment_expression "puVar2->next = unique_section_list" (field_expression "puVar2->next" identifier -> field_identifier) = identifier) ;) (expression_statement "unique_section_list = puVar2;" (assignment_expression "unique_section_list = puVar2" identifier = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0002ce30(char *param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  \n  piVar4 = DAT_001cf734;\n  if (DAT_001cf734 != (int *)0x0) {\n    do {\n      iVar1 = strcmp((char *)piVar4[1],param_1);\n      if (iVar1 == 0) {\n        return;\n      }\n      piVar4 = (int *)*piVar4;\n    } while (piVar4 != (int *)0x0);\n  }\n  puVar2 = (undefined4 *)xmalloc(8);\n  uVar3 = xstrdup(param_1);\n  puVar2[1] = uVar3;\n  *puVar2 = DAT_001cf734;\n  DAT_001cf734 = puVar2;\n  return;\n}\n\n" (function_definition "void FUN_0002ce30(char *param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  \n  piVar4 = DAT_001cf734;\n  if (DAT_001cf734 != (int *)0x0) {\n    do {\n      iVar1 = strcmp((char *)piVar4[1],param_1);\n      if (iVar1 == 0) {\n        return;\n      }\n      piVar4 = (int *)*piVar4;\n    } while (piVar4 != (int *)0x0);\n  }\n  puVar2 = (undefined4 *)xmalloc(8);\n  uVar3 = xstrdup(param_1);\n  puVar2[1] = uVar3;\n  *puVar2 = DAT_001cf734;\n  DAT_001cf734 = puVar2;\n  return;\n}" primitive_type (function_declarator "FUN_0002ce30(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  \n  piVar4 = DAT_001cf734;\n  if (DAT_001cf734 != (int *)0x0) {\n    do {\n      iVar1 = strcmp((char *)piVar4[1],param_1);\n      if (iVar1 == 0) {\n        return;\n      }\n      piVar4 = (int *)*piVar4;\n    } while (piVar4 != (int *)0x0);\n  }\n  puVar2 = (undefined4 *)xmalloc(8);\n  uVar3 = xstrdup(param_1);\n  puVar2[1] = uVar3;\n  *puVar2 = DAT_001cf734;\n  DAT_001cf734 = puVar2;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (expression_statement "piVar4 = DAT_001cf734;" (assignment_expression "piVar4 = DAT_001cf734" identifier = identifier) ;) (if_statement "if (DAT_001cf734 != (int *)0x0) {\n    do {\n      iVar1 = strcmp((char *)piVar4[1],param_1);\n      if (iVar1 == 0) {\n        return;\n      }\n      piVar4 = (int *)*piVar4;\n    } while (piVar4 != (int *)0x0);\n  }" if (parenthesized_expression "(DAT_001cf734 != (int *)0x0)" ( (binary_expression "DAT_001cf734 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      iVar1 = strcmp((char *)piVar4[1],param_1);\n      if (iVar1 == 0) {\n        return;\n      }\n      piVar4 = (int *)*piVar4;\n    } while (piVar4 != (int *)0x0);\n  }" { (do_statement "do {\n      iVar1 = strcmp((char *)piVar4[1],param_1);\n      if (iVar1 == 0) {\n        return;\n      }\n      piVar4 = (int *)*piVar4;\n    } while (piVar4 != (int *)0x0);" do (compound_statement "{\n      iVar1 = strcmp((char *)piVar4[1],param_1);\n      if (iVar1 == 0) {\n        return;\n      }\n      piVar4 = (int *)*piVar4;\n    }" { (expression_statement "iVar1 = strcmp((char *)piVar4[1],param_1);" (assignment_expression "iVar1 = strcmp((char *)piVar4[1],param_1)" identifier = (call_expression "strcmp((char *)piVar4[1],param_1)" identifier (argument_list "((char *)piVar4[1],param_1)" ( (cast_expression "(char *)piVar4[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[1]" identifier [ number_literal ])) , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n        return;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "piVar4 = (int *)*piVar4;" (assignment_expression "piVar4 = (int *)*piVar4" identifier = (cast_expression "(int *)*piVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier))) ;) }) while (parenthesized_expression "(piVar4 != (int *)0x0)" ( (binary_expression "piVar4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "puVar2 = (undefined4 *)xmalloc(8);" (assignment_expression "puVar2 = (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 "uVar3 = xstrdup(param_1);" (assignment_expression "uVar3 = xstrdup(param_1)" identifier = (call_expression "xstrdup(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "puVar2[1] = uVar3;" (assignment_expression "puVar2[1] = uVar3" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar2 = DAT_001cf734;" (assignment_expression "*puVar2 = DAT_001cf734" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "DAT_001cf734 = puVar2;" (assignment_expression "DAT_001cf734 = puVar2" identifier = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_0002ce30(char *param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  \n  piVar4 = DAT_001cf734;\n  if (DAT_001cf734 != (int *)0x0) {\n    do {\n      iVar1 = strcmp((char *)piVar4[1],param_1);\n      if (iVar1 == 0) {\n        return;\n      }\n      piVar4 = (int *)*piVar4;\n    } while (piVar4 != (int *)0x0);\n  }\n  puVar2 = (undefined4 *)xmalloc(8);\n  uVar3 = xstrdup(param_1);\n  puVar2[1] = uVar3;\n  *puVar2 = DAT_001cf734;\n  DAT_001cf734 = puVar2;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0002ce30(char *param_1)" (identifier "FUN_0002ce30") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  \n  piVar4 = DAT_001cf734;\n  if (DAT_001cf734 != (int *)0x0) {\n    do {\n      iVar1 = strcmp((char *)piVar4[1],param_1);\n      if (iVar1 == 0) {\n        return;\n      }\n      piVar4 = (int *)*piVar4;\n    } while (piVar4 != (int *)0x0);\n  }\n  puVar2 = (undefined4 *)xmalloc(8);\n  uVar3 = xstrdup(param_1);\n  puVar2[1] = uVar3;\n  *puVar2 = DAT_001cf734;\n  DAT_001cf734 = puVar2;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (expression_statement "piVar4 = DAT_001cf734;" (assignment_expression "piVar4 = DAT_001cf734" (identifier "piVar4") (= "=") (identifier "DAT_001cf734")) (; ";")) (if_statement "if (DAT_001cf734 != (int *)0x0) {\n    do {\n      iVar1 = strcmp((char *)piVar4[1],param_1);\n      if (iVar1 == 0) {\n        return;\n      }\n      piVar4 = (int *)*piVar4;\n    } while (piVar4 != (int *)0x0);\n  }" (if "if") (parenthesized_expression "(DAT_001cf734 != (int *)0x0)" (( "(") (binary_expression "DAT_001cf734 != (int *)0x0" (identifier "DAT_001cf734") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    do {\n      iVar1 = strcmp((char *)piVar4[1],param_1);\n      if (iVar1 == 0) {\n        return;\n      }\n      piVar4 = (int *)*piVar4;\n    } while (piVar4 != (int *)0x0);\n  }" ({ "{") (do_statement "do {\n      iVar1 = strcmp((char *)piVar4[1],param_1);\n      if (iVar1 == 0) {\n        return;\n      }\n      piVar4 = (int *)*piVar4;\n    } while (piVar4 != (int *)0x0);" (do "do") (compound_statement "{\n      iVar1 = strcmp((char *)piVar4[1],param_1);\n      if (iVar1 == 0) {\n        return;\n      }\n      piVar4 = (int *)*piVar4;\n    }" ({ "{") (expression_statement "iVar1 = strcmp((char *)piVar4[1],param_1);" (assignment_expression "iVar1 = strcmp((char *)piVar4[1],param_1)" (identifier "iVar1") (= "=") (call_expression "strcmp((char *)piVar4[1],param_1)" (identifier "strcmp") (argument_list "((char *)piVar4[1],param_1)" (( "(") (cast_expression "(char *)piVar4[1]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]"))) (, ",") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n        return;\n      }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "piVar4 = (int *)*piVar4;" (assignment_expression "piVar4 = (int *)*piVar4" (identifier "piVar4") (= "=") (cast_expression "(int *)*piVar4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar4" (* "*") (identifier "piVar4")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar4 != (int *)0x0)" (( "(") (binary_expression "piVar4 != (int *)0x0" (identifier "piVar4") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (} "}"))) (expression_statement "puVar2 = (undefined4 *)xmalloc(8);" (assignment_expression "puVar2 = (undefined4 *)xmalloc(8)" (identifier "puVar2") (= "=") (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 "uVar3 = xstrdup(param_1);" (assignment_expression "uVar3 = xstrdup(param_1)" (identifier "uVar3") (= "=") (call_expression "xstrdup(param_1)" (identifier "xstrdup") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "puVar2[1] = uVar3;" (assignment_expression "puVar2[1] = uVar3" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "*puVar2 = DAT_001cf734;" (assignment_expression "*puVar2 = DAT_001cf734" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "DAT_001cf734")) (; ";")) (expression_statement "DAT_001cf734 = puVar2;" (assignment_expression "DAT_001cf734 = puVar2" (identifier "DAT_001cf734") (= "=") (identifier "puVar2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(char *name)

{
  int var_3;
  type_1 *var_4;
  char *pcVar3;
  
  var_4 = var_1;
  if (var_1 != (type_1 *)0x0) {
    do {
      var_3 = var_2(var_4->name,name);
      if (var_3 == 0) {
        return;
      }
      var_4 = var_4->next;
    } while (var_4 != (type_1 *)0x0);
  }
  var_4 = (type_1 *)var_5(8);
  pcVar3 = (char *)var_6(name);
  var_4->name = pcVar3;
  var_4->next = var_1;
  var_1 = var_4;
  return;
}


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

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

void MASKED(char *param_1)

{
  int iVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  int *piVar4;
  
  piVar4 = DAT_001cf734;
  if (DAT_001cf734 != (int *)0x0) {
    do {
      iVar1 = strcmp((char *)piVar4[1],param_1);
      if (iVar1 == 0) {
        return;
      }
      piVar4 = (int *)*piVar4;
    } while (piVar4 != (int *)0x0);
  }
  puVar2 = (undefined4 *)xmalloc(8);
  uVar3 = xstrdup(param_1);
  puVar2[1] = uVar3;
  *puVar2 = DAT_001cf734;
  DAT_001cf734 = puVar2;
  return;
}

