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

section_name_struct ** __regparm3 lookup(char *name,section_name_struct **list)

{
  section_name_struct *psVar1;
  int iVar2;
  section_name_struct *psVar3;
  section_name_struct **ptr;
  
  psVar3 = *list;
  while (psVar1 = (section_name_struct *)list, list = &psVar3->next,
        (section_name_struct *)list != (section_name_struct *)0x0) {
    iVar2 = strcmp(name,((section_name_struct *)list)->name);
    psVar3 = ((section_name_struct *)list)->next;
    if (iVar2 == 0) {
      psVar1->next = psVar3;
      list = &psVar1->next;
    }
  }
  psVar3 = (section_name_struct *)xmalloc(0x1c);
  psVar1->next = psVar3;
  return &psVar1->next;
}



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

undefined4 * __regparm3 FUN_0002d1f0(char *param_1,undefined4 *param_2)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  int iVar3;
  undefined4 uVar4;
  
  puVar1 = (undefined4 *)*param_2;
  while (puVar2 = param_2, param_2 = puVar1, param_2 != (undefined4 *)0x0) {
    iVar3 = strcmp(param_1,(char *)param_2[1]);
    puVar1 = (undefined4 *)*param_2;
    if (iVar3 == 0) {
      *puVar2 = puVar1;
      param_2 = puVar2;
    }
  }
  uVar4 = xmalloc(0x1c);
  *puVar2 = uVar4;
  return puVar2;
}


PUSH EBP
MOV EBP,EAX
PUSH EDI
MOV EDI,EDX
PUSH ESI
PUSH EBX
CALL 0x00017bc0
ADD EBX,0x191e03
SUB ESP,0xc
MOV ESI,dword ptr [EDX]
TEST ESI,ESI
JZ 0x0002d22d
LEA ESI,[ESI]
SUB ESP,0x8
PUSH dword ptr [ESI + 0x4]
PUSH EBP
CALL 0x000160d0
ADD ESP,0x10
MOV EDX,dword ptr [ESI]
TEST EAX,EAX
JNZ 0x0002d248
MOV dword ptr [EDI],EDX
MOV ESI,EDX
TEST ESI,ESI
JNZ 0x0002d210
SUB ESP,0xc
PUSH 0x1c
CALL 0x00016e08
MOV dword ptr [EDI],EAX
ADD ESP,0x1c
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDI,ESI
MOV ESI,EDX
JMP 0x0002d229
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 * __regparm3 FUN_0002d1f0(char *param_1,undefined4 *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  puVar1 = (undefined4 *)*param_2;\n  while (puVar2 = param_2, param_2 = puVar1, param_2 != (undefined4 *)0x0) {\n    iVar3 = strcmp(param_1,(char *)param_2[1]);\n    puVar1 = (undefined4 *)*param_2;\n    if (iVar3 == 0) {\n      *puVar2 = puVar1;\n      param_2 = puVar2;\n    }\n  }\n  uVar4 = xmalloc(0x1c);\n  *puVar2 = uVar4;\n  return puVar2;\n}\n\n" comment (ERROR "undefined4 * __regparm3 FUN_0002d1f0(char *param_1,undefined4 *param_2)" (binary_expression "undefined4 * __regparm3 FUN_0002d1f0(char *param_1,undefined4 *param_2)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_0002d1f0(char *param_1,undefined4 *param_2)" identifier (argument_list "(char *param_1,undefined4 *param_2)" ( (binary_expression "char *param_1" identifier * identifier) , (binary_expression "undefined4 *param_2" identifier * identifier) ))))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  puVar1 = (undefined4 *)*param_2;\n  while (puVar2 = param_2, param_2 = puVar1, param_2 != (undefined4 *)0x0) {\n    iVar3 = strcmp(param_1,(char *)param_2[1]);\n    puVar1 = (undefined4 *)*param_2;\n    if (iVar3 == 0) {\n      *puVar2 = puVar1;\n      param_2 = puVar2;\n    }\n  }\n  uVar4 = xmalloc(0x1c);\n  *puVar2 = uVar4;\n  return puVar2;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined4 *)*param_2;" (assignment_expression "puVar1 = (undefined4 *)*param_2" identifier = (cast_expression "(undefined4 *)*param_2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (while_statement "while (puVar2 = param_2, param_2 = puVar1, param_2 != (undefined4 *)0x0) {\n    iVar3 = strcmp(param_1,(char *)param_2[1]);\n    puVar1 = (undefined4 *)*param_2;\n    if (iVar3 == 0) {\n      *puVar2 = puVar1;\n      param_2 = puVar2;\n    }\n  }" while (parenthesized_expression "(puVar2 = param_2, param_2 = puVar1, param_2 != (undefined4 *)0x0)" ( (comma_expression "puVar2 = param_2, param_2 = puVar1, param_2 != (undefined4 *)0x0" (assignment_expression "puVar2 = param_2" identifier = identifier) , (comma_expression "param_2 = puVar1, param_2 != (undefined4 *)0x0" (assignment_expression "param_2 = puVar1" identifier = identifier) , (binary_expression "param_2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)))) )) (compound_statement "{\n    iVar3 = strcmp(param_1,(char *)param_2[1]);\n    puVar1 = (undefined4 *)*param_2;\n    if (iVar3 == 0) {\n      *puVar2 = puVar1;\n      param_2 = puVar2;\n    }\n  }" { (expression_statement "iVar3 = strcmp(param_1,(char *)param_2[1]);" (assignment_expression "iVar3 = strcmp(param_1,(char *)param_2[1])" identifier = (call_expression "strcmp(param_1,(char *)param_2[1])" identifier (argument_list "(param_1,(char *)param_2[1])" ( identifier , (cast_expression "(char *)param_2[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[1]" identifier [ number_literal ])) )))) ;) (expression_statement "puVar1 = (undefined4 *)*param_2;" (assignment_expression "puVar1 = (undefined4 *)*param_2" identifier = (cast_expression "(undefined4 *)*param_2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (iVar3 == 0) {\n      *puVar2 = puVar1;\n      param_2 = puVar2;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      *puVar2 = puVar1;\n      param_2 = puVar2;\n    }" { (expression_statement "*puVar2 = puVar1;" (assignment_expression "*puVar2 = puVar1" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "param_2 = puVar2;" (assignment_expression "param_2 = puVar2" identifier = identifier) ;) })) })) (expression_statement "uVar4 = xmalloc(0x1c);" (assignment_expression "uVar4 = xmalloc(0x1c)" identifier = (call_expression "xmalloc(0x1c)" identifier (argument_list "(0x1c)" ( number_literal )))) ;) (expression_statement "*puVar2 = uVar4;" (assignment_expression "*puVar2 = uVar4" (pointer_expression "*puVar2" * identifier) = identifier) ;) (return_statement "return puVar2;" return identifier ;) }))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nsection_name_struct ** __regparm3 lookup(char *name,section_name_struct **list)\n\n{\n  section_name_struct *psVar1;\n  int iVar2;\n  section_name_struct *psVar3;\n  section_name_struct **ptr;\n  \n  psVar3 = *list;\n  while (psVar1 = (section_name_struct *)list, list = &psVar3->next,\n        (section_name_struct *)list != (section_name_struct *)0x0) {\n    iVar2 = strcmp(name,((section_name_struct *)list)->name);\n    psVar3 = ((section_name_struct *)list)->next;\n    if (iVar2 == 0) {\n      psVar1->next = psVar3;\n      list = &psVar1->next;\n    }\n  }\n  psVar3 = (section_name_struct *)xmalloc(0x1c);\n  psVar1->next = psVar3;\n  return &psVar1->next;\n}\n\n" comment (ERROR "section_name_struct ** __regparm3 lookup(char *name,section_name_struct **list)" (binary_expression "section_name_struct ** __regparm3 lookup(char *name,section_name_struct **list)" identifier * (ERROR "* __regparm3" (pointer_expression "* __regparm3" * identifier)) (call_expression "lookup(char *name,section_name_struct **list)" identifier (argument_list "(char *name,section_name_struct **list)" ( (binary_expression "char *name" identifier * identifier) , (binary_expression "section_name_struct **list" identifier * (pointer_expression "*list" * identifier)) ))))) (compound_statement "{\n  section_name_struct *psVar1;\n  int iVar2;\n  section_name_struct *psVar3;\n  section_name_struct **ptr;\n  \n  psVar3 = *list;\n  while (psVar1 = (section_name_struct *)list, list = &psVar3->next,\n        (section_name_struct *)list != (section_name_struct *)0x0) {\n    iVar2 = strcmp(name,((section_name_struct *)list)->name);\n    psVar3 = ((section_name_struct *)list)->next;\n    if (iVar2 == 0) {\n      psVar1->next = psVar3;\n      list = &psVar1->next;\n    }\n  }\n  psVar3 = (section_name_struct *)xmalloc(0x1c);\n  psVar1->next = psVar3;\n  return &psVar1->next;\n}" { (declaration "section_name_struct *psVar1;" type_identifier (pointer_declarator "*psVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "section_name_struct *psVar3;" type_identifier (pointer_declarator "*psVar3" * identifier) ;) (declaration "section_name_struct **ptr;" type_identifier (pointer_declarator "**ptr" * (pointer_declarator "*ptr" * identifier)) ;) (expression_statement "psVar3 = *list;" (assignment_expression "psVar3 = *list" identifier = (pointer_expression "*list" * identifier)) ;) (while_statement "while (psVar1 = (section_name_struct *)list, list = &psVar3->next,\n        (section_name_struct *)list != (section_name_struct *)0x0) {\n    iVar2 = strcmp(name,((section_name_struct *)list)->name);\n    psVar3 = ((section_name_struct *)list)->next;\n    if (iVar2 == 0) {\n      psVar1->next = psVar3;\n      list = &psVar1->next;\n    }\n  }" while (parenthesized_expression "(psVar1 = (section_name_struct *)list, list = &psVar3->next,\n        (section_name_struct *)list != (section_name_struct *)0x0)" ( (comma_expression "psVar1 = (section_name_struct *)list, list = &psVar3->next,\n        (section_name_struct *)list != (section_name_struct *)0x0" (assignment_expression "psVar1 = (section_name_struct *)list" identifier = (cast_expression "(section_name_struct *)list" ( (type_descriptor "section_name_struct *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , (comma_expression "list = &psVar3->next,\n        (section_name_struct *)list != (section_name_struct *)0x0" (assignment_expression "list = &psVar3->next" identifier = (pointer_expression "&psVar3->next" & (field_expression "psVar3->next" identifier -> field_identifier))) , (binary_expression "(section_name_struct *)list != (section_name_struct *)0x0" (cast_expression "(section_name_struct *)list" ( (type_descriptor "section_name_struct *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) != (cast_expression "(section_name_struct *)0x0" ( (type_descriptor "section_name_struct *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)))) )) (compound_statement "{\n    iVar2 = strcmp(name,((section_name_struct *)list)->name);\n    psVar3 = ((section_name_struct *)list)->next;\n    if (iVar2 == 0) {\n      psVar1->next = psVar3;\n      list = &psVar1->next;\n    }\n  }" { (expression_statement "iVar2 = strcmp(name,((section_name_struct *)list)->name);" (assignment_expression "iVar2 = strcmp(name,((section_name_struct *)list)->name)" identifier = (call_expression "strcmp(name,((section_name_struct *)list)->name)" identifier (argument_list "(name,((section_name_struct *)list)->name)" ( identifier , (field_expression "((section_name_struct *)list)->name" (parenthesized_expression "((section_name_struct *)list)" ( (cast_expression "(section_name_struct *)list" ( (type_descriptor "section_name_struct *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier) )))) ;) (expression_statement "psVar3 = ((section_name_struct *)list)->next;" (assignment_expression "psVar3 = ((section_name_struct *)list)->next" identifier = (field_expression "((section_name_struct *)list)->next" (parenthesized_expression "((section_name_struct *)list)" ( (cast_expression "(section_name_struct *)list" ( (type_descriptor "section_name_struct *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier)) ;) (if_statement "if (iVar2 == 0) {\n      psVar1->next = psVar3;\n      list = &psVar1->next;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      psVar1->next = psVar3;\n      list = &psVar1->next;\n    }" { (expression_statement "psVar1->next = psVar3;" (assignment_expression "psVar1->next = psVar3" (field_expression "psVar1->next" identifier -> field_identifier) = identifier) ;) (expression_statement "list = &psVar1->next;" (assignment_expression "list = &psVar1->next" identifier = (pointer_expression "&psVar1->next" & (field_expression "psVar1->next" identifier -> field_identifier))) ;) })) })) (expression_statement "psVar3 = (section_name_struct *)xmalloc(0x1c);" (assignment_expression "psVar3 = (section_name_struct *)xmalloc(0x1c)" identifier = (cast_expression "(section_name_struct *)xmalloc(0x1c)" ( (type_descriptor "section_name_struct *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x1c)" identifier (argument_list "(0x1c)" ( number_literal ))))) ;) (expression_statement "psVar1->next = psVar3;" (assignment_expression "psVar1->next = psVar3" (field_expression "psVar1->next" identifier -> field_identifier) = identifier) ;) (return_statement "return &psVar1->next;" return (pointer_expression "&psVar1->next" & (field_expression "psVar1->next" identifier -> field_identifier)) ;) }))
(translation_unit "undefined4 * __regparm3 FUN_0002d1f0(char *param_1,undefined4 *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  puVar1 = (undefined4 *)*param_2;\n  while (puVar2 = param_2, param_2 = puVar1, param_2 != (undefined4 *)0x0) {\n    iVar3 = strcmp(param_1,(char *)param_2[1]);\n    puVar1 = (undefined4 *)*param_2;\n    if (iVar3 == 0) {\n      *puVar2 = puVar1;\n      param_2 = puVar2;\n    }\n  }\n  uVar4 = xmalloc(0x1c);\n  *puVar2 = uVar4;\n  return puVar2;\n}\n\n" (ERROR "undefined4 * __regparm3 FUN_0002d1f0(char *param_1,undefined4 *param_2)" (binary_expression "undefined4 * __regparm3 FUN_0002d1f0(char *param_1,undefined4 *param_2)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_0002d1f0(char *param_1,undefined4 *param_2)" identifier (argument_list "(char *param_1,undefined4 *param_2)" ( (binary_expression "char *param_1" identifier * identifier) , (binary_expression "undefined4 *param_2" identifier * identifier) ))))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  puVar1 = (undefined4 *)*param_2;\n  while (puVar2 = param_2, param_2 = puVar1, param_2 != (undefined4 *)0x0) {\n    iVar3 = strcmp(param_1,(char *)param_2[1]);\n    puVar1 = (undefined4 *)*param_2;\n    if (iVar3 == 0) {\n      *puVar2 = puVar1;\n      param_2 = puVar2;\n    }\n  }\n  uVar4 = xmalloc(0x1c);\n  *puVar2 = uVar4;\n  return puVar2;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined4 *)*param_2;" (assignment_expression "puVar1 = (undefined4 *)*param_2" identifier = (cast_expression "(undefined4 *)*param_2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (while_statement "while (puVar2 = param_2, param_2 = puVar1, param_2 != (undefined4 *)0x0) {\n    iVar3 = strcmp(param_1,(char *)param_2[1]);\n    puVar1 = (undefined4 *)*param_2;\n    if (iVar3 == 0) {\n      *puVar2 = puVar1;\n      param_2 = puVar2;\n    }\n  }" while (parenthesized_expression "(puVar2 = param_2, param_2 = puVar1, param_2 != (undefined4 *)0x0)" ( (comma_expression "puVar2 = param_2, param_2 = puVar1, param_2 != (undefined4 *)0x0" (assignment_expression "puVar2 = param_2" identifier = identifier) , (comma_expression "param_2 = puVar1, param_2 != (undefined4 *)0x0" (assignment_expression "param_2 = puVar1" identifier = identifier) , (binary_expression "param_2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)))) )) (compound_statement "{\n    iVar3 = strcmp(param_1,(char *)param_2[1]);\n    puVar1 = (undefined4 *)*param_2;\n    if (iVar3 == 0) {\n      *puVar2 = puVar1;\n      param_2 = puVar2;\n    }\n  }" { (expression_statement "iVar3 = strcmp(param_1,(char *)param_2[1]);" (assignment_expression "iVar3 = strcmp(param_1,(char *)param_2[1])" identifier = (call_expression "strcmp(param_1,(char *)param_2[1])" identifier (argument_list "(param_1,(char *)param_2[1])" ( identifier , (cast_expression "(char *)param_2[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[1]" identifier [ number_literal ])) )))) ;) (expression_statement "puVar1 = (undefined4 *)*param_2;" (assignment_expression "puVar1 = (undefined4 *)*param_2" identifier = (cast_expression "(undefined4 *)*param_2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (iVar3 == 0) {\n      *puVar2 = puVar1;\n      param_2 = puVar2;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      *puVar2 = puVar1;\n      param_2 = puVar2;\n    }" { (expression_statement "*puVar2 = puVar1;" (assignment_expression "*puVar2 = puVar1" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "param_2 = puVar2;" (assignment_expression "param_2 = puVar2" identifier = identifier) ;) })) })) (expression_statement "uVar4 = xmalloc(0x1c);" (assignment_expression "uVar4 = xmalloc(0x1c)" identifier = (call_expression "xmalloc(0x1c)" identifier (argument_list "(0x1c)" ( number_literal )))) ;) (expression_statement "*puVar2 = uVar4;" (assignment_expression "*puVar2 = uVar4" (pointer_expression "*puVar2" * identifier) = identifier) ;) (return_statement "return puVar2;" return identifier ;) }))
(translation_unit (ERROR (binary_expression IDENT * (ERROR IDENT) (call_expression IDENT (argument_list ( (binary_expression IDENT * IDENT) , (binary_expression IDENT * IDENT) ))))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return IDENT ;) }))
(ERROR "undefined4 * __regparm3 FUN_0002d1f0(char *param_1,undefined4 *param_2)" (binary_expression "undefined4 * __regparm3 FUN_0002d1f0(char *param_1,undefined4 *param_2)" (identifier "undefined4") (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (call_expression "FUN_0002d1f0(char *param_1,undefined4 *param_2)" (identifier "FUN_0002d1f0") (argument_list "(char *param_1,undefined4 *param_2)" (( "(") (binary_expression "char *param_1" (identifier "char") (* "*") (identifier "param_1")) (, ",") (binary_expression "undefined4 *param_2" (identifier "undefined4") (* "*") (identifier "param_2")) () ")"))))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  puVar1 = (undefined4 *)*param_2;\n  while (puVar2 = param_2, param_2 = puVar1, param_2 != (undefined4 *)0x0) {\n    iVar3 = strcmp(param_1,(char *)param_2[1]);\n    puVar1 = (undefined4 *)*param_2;\n    if (iVar3 == 0) {\n      *puVar2 = puVar1;\n      param_2 = puVar2;\n    }\n  }\n  uVar4 = xmalloc(0x1c);\n  *puVar2 = uVar4;\n  return puVar2;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (expression_statement "puVar1 = (undefined4 *)*param_2;" (assignment_expression "puVar1 = (undefined4 *)*param_2" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)*param_2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (while_statement "while (puVar2 = param_2, param_2 = puVar1, param_2 != (undefined4 *)0x0) {\n    iVar3 = strcmp(param_1,(char *)param_2[1]);\n    puVar1 = (undefined4 *)*param_2;\n    if (iVar3 == 0) {\n      *puVar2 = puVar1;\n      param_2 = puVar2;\n    }\n  }" (while "while") (parenthesized_expression "(puVar2 = param_2, param_2 = puVar1, param_2 != (undefined4 *)0x0)" (( "(") (comma_expression "puVar2 = param_2, param_2 = puVar1, param_2 != (undefined4 *)0x0" (assignment_expression "puVar2 = param_2" (identifier "puVar2") (= "=") (identifier "param_2")) (, ",") (comma_expression "param_2 = puVar1, param_2 != (undefined4 *)0x0" (assignment_expression "param_2 = puVar1" (identifier "param_2") (= "=") (identifier "puVar1")) (, ",") (binary_expression "param_2 != (undefined4 *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))))) () ")")) (compound_statement "{\n    iVar3 = strcmp(param_1,(char *)param_2[1]);\n    puVar1 = (undefined4 *)*param_2;\n    if (iVar3 == 0) {\n      *puVar2 = puVar1;\n      param_2 = puVar2;\n    }\n  }" ({ "{") (expression_statement "iVar3 = strcmp(param_1,(char *)param_2[1]);" (assignment_expression "iVar3 = strcmp(param_1,(char *)param_2[1])" (identifier "iVar3") (= "=") (call_expression "strcmp(param_1,(char *)param_2[1])" (identifier "strcmp") (argument_list "(param_1,(char *)param_2[1])" (( "(") (identifier "param_1") (, ",") (cast_expression "(char *)param_2[1]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) () ")")))) (; ";")) (expression_statement "puVar1 = (undefined4 *)*param_2;" (assignment_expression "puVar1 = (undefined4 *)*param_2" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)*param_2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (if_statement "if (iVar3 == 0) {\n      *puVar2 = puVar1;\n      param_2 = puVar2;\n    }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *puVar2 = puVar1;\n      param_2 = puVar2;\n    }" ({ "{") (expression_statement "*puVar2 = puVar1;" (assignment_expression "*puVar2 = puVar1" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "puVar1")) (; ";")) (expression_statement "param_2 = puVar2;" (assignment_expression "param_2 = puVar2" (identifier "param_2") (= "=") (identifier "puVar2")) (; ";")) (} "}"))) (} "}"))) (expression_statement "uVar4 = xmalloc(0x1c);" (assignment_expression "uVar4 = xmalloc(0x1c)" (identifier "uVar4") (= "=") (call_expression "xmalloc(0x1c)" (identifier "xmalloc") (argument_list "(0x1c)" (( "(") (number_literal "0x1c") () ")")))) (; ";")) (expression_statement "*puVar2 = uVar4;" (assignment_expression "*puVar2 = uVar4" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "uVar4")) (; ";")) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}"))

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

type_1 ** __regparm3 lookup(char *name,type_1 **list)

{
  type_1 *psVar1;
  int var_2;
  type_1 *psVar3;
  type_1 **ptr;
  
  psVar3 = *list;
  while (psVar1 = (type_1 *)list, list = &psVar3->next,
        (type_1 *)list != (type_1 *)0x0) {
    var_2 = var_1(name,((type_1 *)list)->name);
    psVar3 = ((type_1 *)list)->next;
    if (var_2 == 0) {
      psVar1->next = psVar3;
      list = &psVar1->next;
    }
  }
  psVar3 = (type_1 *)var_3(0x1c);
  psVar1->next = psVar3;
  return &psVar1->next;
}


(translation_unit (ERROR (binary_expression left: (identifier) (ERROR (identifier)) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)) (binary_expression left: (identifier) right: (identifier)))))) (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement (identifier))))

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

undefined4 * __regparm3 MASKED(char *param_1,undefined4 *param_2)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  int iVar3;
  undefined4 uVar4;
  
  puVar1 = (undefined4 *)*param_2;
  while (puVar2 = param_2, param_2 = puVar1, param_2 != (undefined4 *)0x0) {
    iVar3 = strcmp(param_1,(char *)param_2[1]);
    puVar1 = (undefined4 *)*param_2;
    if (iVar3 == 0) {
      *puVar2 = puVar1;
      param_2 = puVar2;
    }
  }
  uVar4 = xmalloc(0x1c);
  *puVar2 = uVar4;
  return puVar2;
}

