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

bfd_boolean pe_undef_fill(bfd_link_hash_entry *h,void *inf)

{
  key_value *pkVar1;
  int iVar2;
  char *pcVar3;
  
  if (h->field_0xc != '\x01') {
    return 1;
  }
  pkVar1 = udef_table + undef_count;
  pcVar3 = (char *)xstrdup((h->root).string);
  pkVar1->key = pcVar3;
  iVar2 = undef_count;
  pkVar1 = udef_table + undef_count;
  pcVar3 = pkVar1->key;
  pcVar3 = strchr(pcVar3 + (*pcVar3 == '@'),0x40);
  if (pcVar3 != (char *)0x0) {
    pcVar3[1] = '\0';
  }
  undef_count = iVar2 + 1;
  pkVar1->oname = (h->root).string;
  return 1;
}



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

undefined4 FUN_00062780(int param_1)

{
  undefined4 *puVar1;
  int iVar2;
  undefined4 uVar3;
  char *pcVar4;
  
  if (*(char *)(param_1 + 0xc) != '\x01') {
    return 1;
  }
  puVar1 = (undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8);
  uVar3 = xstrdup(*(undefined4 *)(param_1 + 4));
  *puVar1 = uVar3;
  iVar2 = DAT_001d0228;
  puVar1 = (undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8);
  pcVar4 = (char *)*puVar1;
  pcVar4 = strchr(pcVar4 + (*pcVar4 == '@'),0x40);
  if (pcVar4 != (char *)0x0) {
    pcVar4[1] = '\0';
  }
  DAT_001d0228 = iVar2 + 1;
  puVar1[1] = *(undefined4 *)(param_1 + 4);
  return 1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00017b80
ADD EBX,0x16b877
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x20]
CMP byte ptr [ESI + 0xc],0x1
JZ 0x000627b0
ADD ESP,0xc
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH dword ptr [ESI + 0x4]
MOV EDX,dword ptr [EBX + 0x2228]
MOV EAX,dword ptr [EBX + 0x2224]
LEA EDI,[EAX + EDX*0x8]
CALL 0x000164f0
MOV dword ptr [EDI],EAX
MOV EAX,dword ptr [EBX + 0x2224]
MOV EDI,dword ptr [EBX + 0x2228]
POP EDX
XOR EDX,EDX
POP ECX
LEA EBP,[EAX + EDI*0x8]
MOV EAX,dword ptr [EBP]
PUSH 0x40
CMP byte ptr [EAX],0x40
SETZ DL
ADD EAX,EDX
PUSH EAX
CALL 0x00016730
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000627fd
MOV byte ptr [EAX + 0x1],0x0
MOV EAX,dword ptr [ESI + 0x4]
ADD EDI,0x1
MOV dword ptr [EBX + 0x2228],EDI
MOV dword ptr [EBP + 0x4],EAX
ADD ESP,0xc
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_00062780(int param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  \n  if (*(char *)(param_1 + 0xc) != '\x01') {\n    return 1;\n  }\n  puVar1 = (undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8);\n  uVar3 = xstrdup(*(undefined4 *)(param_1 + 4));\n  *puVar1 = uVar3;\n  iVar2 = DAT_001d0228;\n  puVar1 = (undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8);\n  pcVar4 = (char *)*puVar1;\n  pcVar4 = strchr(pcVar4 + (*pcVar4 == '@'),0x40);\n  if (pcVar4 != (char *)0x0) {\n    pcVar4[1] = '\0';\n  }\n  DAT_001d0228 = iVar2 + 1;\n  puVar1[1] = *(undefined4 *)(param_1 + 4);\n  return 1;\n}\n\n" comment (function_definition "undefined4 FUN_00062780(int param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  \n  if (*(char *)(param_1 + 0xc) != '\x01') {\n    return 1;\n  }\n  puVar1 = (undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8);\n  uVar3 = xstrdup(*(undefined4 *)(param_1 + 4));\n  *puVar1 = uVar3;\n  iVar2 = DAT_001d0228;\n  puVar1 = (undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8);\n  pcVar4 = (char *)*puVar1;\n  pcVar4 = strchr(pcVar4 + (*pcVar4 == '@'),0x40);\n  if (pcVar4 != (char *)0x0) {\n    pcVar4[1] = '\0';\n  }\n  DAT_001d0228 = iVar2 + 1;\n  puVar1[1] = *(undefined4 *)(param_1 + 4);\n  return 1;\n}" type_identifier (function_declarator "FUN_00062780(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  \n  if (*(char *)(param_1 + 0xc) != '\x01') {\n    return 1;\n  }\n  puVar1 = (undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8);\n  uVar3 = xstrdup(*(undefined4 *)(param_1 + 4));\n  *puVar1 = uVar3;\n  iVar2 = DAT_001d0228;\n  puVar1 = (undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8);\n  pcVar4 = (char *)*puVar1;\n  pcVar4 = strchr(pcVar4 + (*pcVar4 == '@'),0x40);\n  if (pcVar4 != (char *)0x0) {\n    pcVar4[1] = '\0';\n  }\n  DAT_001d0228 = iVar2 + 1;\n  puVar1[1] = *(undefined4 *)(param_1 + 4);\n  return 1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (if_statement "if (*(char *)(param_1 + 0xc) != '\x01') {\n    return 1;\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0xc) != '\x01')" ( (binary_expression "*(char *)(param_1 + 0xc) != '\x01'" (pointer_expression "*(char *)(param_1 + 0xc)" * (cast_expression "(char *)(param_1 + 0xc)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "puVar1 = (undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8);" (assignment_expression "puVar1 = (undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8)" identifier = (cast_expression "(undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001d0224 + DAT_001d0228 * 8)" ( (binary_expression "DAT_001d0224 + DAT_001d0228 * 8" identifier + (binary_expression "DAT_001d0228 * 8" identifier * number_literal)) )))) ;) (expression_statement "uVar3 = xstrdup(*(undefined4 *)(param_1 + 4));" (assignment_expression "uVar3 = xstrdup(*(undefined4 *)(param_1 + 4))" identifier = (call_expression "xstrdup(*(undefined4 *)(param_1 + 4))" identifier (argument_list "(*(undefined4 *)(param_1 + 4))" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) )))) ;) (expression_statement "*puVar1 = uVar3;" (assignment_expression "*puVar1 = uVar3" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "iVar2 = DAT_001d0228;" (assignment_expression "iVar2 = DAT_001d0228" identifier = identifier) ;) (expression_statement "puVar1 = (undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8);" (assignment_expression "puVar1 = (undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8)" identifier = (cast_expression "(undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001d0224 + DAT_001d0228 * 8)" ( (binary_expression "DAT_001d0224 + DAT_001d0228 * 8" identifier + (binary_expression "DAT_001d0228 * 8" identifier * number_literal)) )))) ;) (expression_statement "pcVar4 = (char *)*puVar1;" (assignment_expression "pcVar4 = (char *)*puVar1" identifier = (cast_expression "(char *)*puVar1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) (expression_statement "pcVar4 = strchr(pcVar4 + (*pcVar4 == '@'),0x40);" (assignment_expression "pcVar4 = strchr(pcVar4 + (*pcVar4 == '@'),0x40)" identifier = (call_expression "strchr(pcVar4 + (*pcVar4 == '@'),0x40)" identifier (argument_list "(pcVar4 + (*pcVar4 == '@'),0x40)" ( (binary_expression "pcVar4 + (*pcVar4 == '@')" identifier + (parenthesized_expression "(*pcVar4 == '@')" ( (binary_expression "*pcVar4 == '@'" (pointer_expression "*pcVar4" * identifier) == (char_literal "'@'" ' character ')) ))) , number_literal )))) ;) (if_statement "if (pcVar4 != (char *)0x0) {\n    pcVar4[1] = '\0';\n  }" if (parenthesized_expression "(pcVar4 != (char *)0x0)" ( (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar4[1] = '\0';\n  }" { (expression_statement "pcVar4[1] = '\0';" (assignment_expression "pcVar4[1] = '\0'" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) })) (expression_statement "DAT_001d0228 = iVar2 + 1;" (assignment_expression "DAT_001d0228 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "puVar1[1] = *(undefined4 *)(param_1 + 4);" (assignment_expression "puVar1[1] = *(undefined4 *)(param_1 + 4)" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nbfd_boolean pe_undef_fill(bfd_link_hash_entry *h,void *inf)\n\n{\n  key_value *pkVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  if (h->field_0xc != '\x01') {\n    return 1;\n  }\n  pkVar1 = udef_table + undef_count;\n  pcVar3 = (char *)xstrdup((h->root).string);\n  pkVar1->key = pcVar3;\n  iVar2 = undef_count;\n  pkVar1 = udef_table + undef_count;\n  pcVar3 = pkVar1->key;\n  pcVar3 = strchr(pcVar3 + (*pcVar3 == '@'),0x40);\n  if (pcVar3 != (char *)0x0) {\n    pcVar3[1] = '\0';\n  }\n  undef_count = iVar2 + 1;\n  pkVar1->oname = (h->root).string;\n  return 1;\n}\n\n" comment comment (function_definition "bfd_boolean pe_undef_fill(bfd_link_hash_entry *h,void *inf)\n\n{\n  key_value *pkVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  if (h->field_0xc != '\x01') {\n    return 1;\n  }\n  pkVar1 = udef_table + undef_count;\n  pcVar3 = (char *)xstrdup((h->root).string);\n  pkVar1->key = pcVar3;\n  iVar2 = undef_count;\n  pkVar1 = udef_table + undef_count;\n  pcVar3 = pkVar1->key;\n  pcVar3 = strchr(pcVar3 + (*pcVar3 == '@'),0x40);\n  if (pcVar3 != (char *)0x0) {\n    pcVar3[1] = '\0';\n  }\n  undef_count = iVar2 + 1;\n  pkVar1->oname = (h->root).string;\n  return 1;\n}" type_identifier (function_declarator "pe_undef_fill(bfd_link_hash_entry *h,void *inf)" identifier (parameter_list "(bfd_link_hash_entry *h,void *inf)" ( (parameter_declaration "bfd_link_hash_entry *h" type_identifier (pointer_declarator "*h" * identifier)) , (parameter_declaration "void *inf" primitive_type (pointer_declarator "*inf" * identifier)) ))) (compound_statement "{\n  key_value *pkVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  if (h->field_0xc != '\x01') {\n    return 1;\n  }\n  pkVar1 = udef_table + undef_count;\n  pcVar3 = (char *)xstrdup((h->root).string);\n  pkVar1->key = pcVar3;\n  iVar2 = undef_count;\n  pkVar1 = udef_table + undef_count;\n  pcVar3 = pkVar1->key;\n  pcVar3 = strchr(pcVar3 + (*pcVar3 == '@'),0x40);\n  if (pcVar3 != (char *)0x0) {\n    pcVar3[1] = '\0';\n  }\n  undef_count = iVar2 + 1;\n  pkVar1->oname = (h->root).string;\n  return 1;\n}" { (declaration "key_value *pkVar1;" type_identifier (pointer_declarator "*pkVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (if_statement "if (h->field_0xc != '\x01') {\n    return 1;\n  }" if (parenthesized_expression "(h->field_0xc != '\x01')" ( (binary_expression "h->field_0xc != '\x01'" (field_expression "h->field_0xc" identifier -> field_identifier) != (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "pkVar1 = udef_table + undef_count;" (assignment_expression "pkVar1 = udef_table + undef_count" identifier = (binary_expression "udef_table + undef_count" identifier + identifier)) ;) (expression_statement "pcVar3 = (char *)xstrdup((h->root).string);" (assignment_expression "pcVar3 = (char *)xstrdup((h->root).string)" identifier = (cast_expression "(char *)xstrdup((h->root).string)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xstrdup((h->root).string)" identifier (argument_list "((h->root).string)" ( (field_expression "(h->root).string" (parenthesized_expression "(h->root)" ( (field_expression "h->root" identifier -> field_identifier) )) . field_identifier) ))))) ;) (expression_statement "pkVar1->key = pcVar3;" (assignment_expression "pkVar1->key = pcVar3" (field_expression "pkVar1->key" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar2 = undef_count;" (assignment_expression "iVar2 = undef_count" identifier = identifier) ;) (expression_statement "pkVar1 = udef_table + undef_count;" (assignment_expression "pkVar1 = udef_table + undef_count" identifier = (binary_expression "udef_table + undef_count" identifier + identifier)) ;) (expression_statement "pcVar3 = pkVar1->key;" (assignment_expression "pcVar3 = pkVar1->key" identifier = (field_expression "pkVar1->key" identifier -> field_identifier)) ;) (expression_statement "pcVar3 = strchr(pcVar3 + (*pcVar3 == '@'),0x40);" (assignment_expression "pcVar3 = strchr(pcVar3 + (*pcVar3 == '@'),0x40)" identifier = (call_expression "strchr(pcVar3 + (*pcVar3 == '@'),0x40)" identifier (argument_list "(pcVar3 + (*pcVar3 == '@'),0x40)" ( (binary_expression "pcVar3 + (*pcVar3 == '@')" identifier + (parenthesized_expression "(*pcVar3 == '@')" ( (binary_expression "*pcVar3 == '@'" (pointer_expression "*pcVar3" * identifier) == (char_literal "'@'" ' character ')) ))) , number_literal )))) ;) (if_statement "if (pcVar3 != (char *)0x0) {\n    pcVar3[1] = '\0';\n  }" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar3[1] = '\0';\n  }" { (expression_statement "pcVar3[1] = '\0';" (assignment_expression "pcVar3[1] = '\0'" (subscript_expression "pcVar3[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) })) (expression_statement "undef_count = iVar2 + 1;" (assignment_expression "undef_count = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "pkVar1->oname = (h->root).string;" (assignment_expression "pkVar1->oname = (h->root).string" (field_expression "pkVar1->oname" identifier -> field_identifier) = (field_expression "(h->root).string" (parenthesized_expression "(h->root)" ( (field_expression "h->root" identifier -> field_identifier) )) . field_identifier)) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 FUN_00062780(int param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  \n  if (*(char *)(param_1 + 0xc) != '\x01') {\n    return 1;\n  }\n  puVar1 = (undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8);\n  uVar3 = xstrdup(*(undefined4 *)(param_1 + 4));\n  *puVar1 = uVar3;\n  iVar2 = DAT_001d0228;\n  puVar1 = (undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8);\n  pcVar4 = (char *)*puVar1;\n  pcVar4 = strchr(pcVar4 + (*pcVar4 == '@'),0x40);\n  if (pcVar4 != (char *)0x0) {\n    pcVar4[1] = '\0';\n  }\n  DAT_001d0228 = iVar2 + 1;\n  puVar1[1] = *(undefined4 *)(param_1 + 4);\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_00062780(int param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  \n  if (*(char *)(param_1 + 0xc) != '\x01') {\n    return 1;\n  }\n  puVar1 = (undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8);\n  uVar3 = xstrdup(*(undefined4 *)(param_1 + 4));\n  *puVar1 = uVar3;\n  iVar2 = DAT_001d0228;\n  puVar1 = (undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8);\n  pcVar4 = (char *)*puVar1;\n  pcVar4 = strchr(pcVar4 + (*pcVar4 == '@'),0x40);\n  if (pcVar4 != (char *)0x0) {\n    pcVar4[1] = '\0';\n  }\n  DAT_001d0228 = iVar2 + 1;\n  puVar1[1] = *(undefined4 *)(param_1 + 4);\n  return 1;\n}" type_identifier (function_declarator "FUN_00062780(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  \n  if (*(char *)(param_1 + 0xc) != '\x01') {\n    return 1;\n  }\n  puVar1 = (undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8);\n  uVar3 = xstrdup(*(undefined4 *)(param_1 + 4));\n  *puVar1 = uVar3;\n  iVar2 = DAT_001d0228;\n  puVar1 = (undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8);\n  pcVar4 = (char *)*puVar1;\n  pcVar4 = strchr(pcVar4 + (*pcVar4 == '@'),0x40);\n  if (pcVar4 != (char *)0x0) {\n    pcVar4[1] = '\0';\n  }\n  DAT_001d0228 = iVar2 + 1;\n  puVar1[1] = *(undefined4 *)(param_1 + 4);\n  return 1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (if_statement "if (*(char *)(param_1 + 0xc) != '\x01') {\n    return 1;\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0xc) != '\x01')" ( (binary_expression "*(char *)(param_1 + 0xc) != '\x01'" (pointer_expression "*(char *)(param_1 + 0xc)" * (cast_expression "(char *)(param_1 + 0xc)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "puVar1 = (undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8);" (assignment_expression "puVar1 = (undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8)" identifier = (cast_expression "(undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001d0224 + DAT_001d0228 * 8)" ( (binary_expression "DAT_001d0224 + DAT_001d0228 * 8" identifier + (binary_expression "DAT_001d0228 * 8" identifier * number_literal)) )))) ;) (expression_statement "uVar3 = xstrdup(*(undefined4 *)(param_1 + 4));" (assignment_expression "uVar3 = xstrdup(*(undefined4 *)(param_1 + 4))" identifier = (call_expression "xstrdup(*(undefined4 *)(param_1 + 4))" identifier (argument_list "(*(undefined4 *)(param_1 + 4))" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) )))) ;) (expression_statement "*puVar1 = uVar3;" (assignment_expression "*puVar1 = uVar3" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "iVar2 = DAT_001d0228;" (assignment_expression "iVar2 = DAT_001d0228" identifier = identifier) ;) (expression_statement "puVar1 = (undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8);" (assignment_expression "puVar1 = (undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8)" identifier = (cast_expression "(undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001d0224 + DAT_001d0228 * 8)" ( (binary_expression "DAT_001d0224 + DAT_001d0228 * 8" identifier + (binary_expression "DAT_001d0228 * 8" identifier * number_literal)) )))) ;) (expression_statement "pcVar4 = (char *)*puVar1;" (assignment_expression "pcVar4 = (char *)*puVar1" identifier = (cast_expression "(char *)*puVar1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) (expression_statement "pcVar4 = strchr(pcVar4 + (*pcVar4 == '@'),0x40);" (assignment_expression "pcVar4 = strchr(pcVar4 + (*pcVar4 == '@'),0x40)" identifier = (call_expression "strchr(pcVar4 + (*pcVar4 == '@'),0x40)" identifier (argument_list "(pcVar4 + (*pcVar4 == '@'),0x40)" ( (binary_expression "pcVar4 + (*pcVar4 == '@')" identifier + (parenthesized_expression "(*pcVar4 == '@')" ( (binary_expression "*pcVar4 == '@'" (pointer_expression "*pcVar4" * identifier) == (char_literal "'@'" ' character ')) ))) , number_literal )))) ;) (if_statement "if (pcVar4 != (char *)0x0) {\n    pcVar4[1] = '\0';\n  }" if (parenthesized_expression "(pcVar4 != (char *)0x0)" ( (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar4[1] = '\0';\n  }" { (expression_statement "pcVar4[1] = '\0';" (assignment_expression "pcVar4[1] = '\0'" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) })) (expression_statement "DAT_001d0228 = iVar2 + 1;" (assignment_expression "DAT_001d0228 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "puVar1[1] = *(undefined4 *)(param_1 + 4);" (assignment_expression "puVar1[1] = *(undefined4 *)(param_1 + 4)" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) ))) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00062780(int param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  \n  if (*(char *)(param_1 + 0xc) != '\x01') {\n    return 1;\n  }\n  puVar1 = (undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8);\n  uVar3 = xstrdup(*(undefined4 *)(param_1 + 4));\n  *puVar1 = uVar3;\n  iVar2 = DAT_001d0228;\n  puVar1 = (undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8);\n  pcVar4 = (char *)*puVar1;\n  pcVar4 = strchr(pcVar4 + (*pcVar4 == '@'),0x40);\n  if (pcVar4 != (char *)0x0) {\n    pcVar4[1] = '\0';\n  }\n  DAT_001d0228 = iVar2 + 1;\n  puVar1[1] = *(undefined4 *)(param_1 + 4);\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_00062780(int param_1)" (identifier "FUN_00062780") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  \n  if (*(char *)(param_1 + 0xc) != '\x01') {\n    return 1;\n  }\n  puVar1 = (undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8);\n  uVar3 = xstrdup(*(undefined4 *)(param_1 + 4));\n  *puVar1 = uVar3;\n  iVar2 = DAT_001d0228;\n  puVar1 = (undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8);\n  pcVar4 = (char *)*puVar1;\n  pcVar4 = strchr(pcVar4 + (*pcVar4 == '@'),0x40);\n  if (pcVar4 != (char *)0x0) {\n    pcVar4[1] = '\0';\n  }\n  DAT_001d0228 = iVar2 + 1;\n  puVar1[1] = *(undefined4 *)(param_1 + 4);\n  return 1;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (if_statement "if (*(char *)(param_1 + 0xc) != '\x01') {\n    return 1;\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0xc) != '\x01')" (( "(") (binary_expression "*(char *)(param_1 + 0xc) != '\x01'" (pointer_expression "*(char *)(param_1 + 0xc)" (* "*") (cast_expression "(char *)(param_1 + 0xc)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) () ")")) (compound_statement "{\n    return 1;\n  }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "puVar1 = (undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8);" (assignment_expression "puVar1 = (undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_001d0224 + DAT_001d0228 * 8)" (( "(") (binary_expression "DAT_001d0224 + DAT_001d0228 * 8" (identifier "DAT_001d0224") (+ "+") (binary_expression "DAT_001d0228 * 8" (identifier "DAT_001d0228") (* "*") (number_literal "8"))) () ")")))) (; ";")) (expression_statement "uVar3 = xstrdup(*(undefined4 *)(param_1 + 4));" (assignment_expression "uVar3 = xstrdup(*(undefined4 *)(param_1 + 4))" (identifier "uVar3") (= "=") (call_expression "xstrdup(*(undefined4 *)(param_1 + 4))" (identifier "xstrdup") (argument_list "(*(undefined4 *)(param_1 + 4))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) () ")")))) (; ";")) (expression_statement "*puVar1 = uVar3;" (assignment_expression "*puVar1 = uVar3" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "iVar2 = DAT_001d0228;" (assignment_expression "iVar2 = DAT_001d0228" (identifier "iVar2") (= "=") (identifier "DAT_001d0228")) (; ";")) (expression_statement "puVar1 = (undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8);" (assignment_expression "puVar1 = (undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_001d0224 + DAT_001d0228 * 8)" (( "(") (binary_expression "DAT_001d0224 + DAT_001d0228 * 8" (identifier "DAT_001d0224") (+ "+") (binary_expression "DAT_001d0228 * 8" (identifier "DAT_001d0228") (* "*") (number_literal "8"))) () ")")))) (; ";")) (expression_statement "pcVar4 = (char *)*puVar1;" (assignment_expression "pcVar4 = (char *)*puVar1" (identifier "pcVar4") (= "=") (cast_expression "(char *)*puVar1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) (; ";")) (expression_statement "pcVar4 = strchr(pcVar4 + (*pcVar4 == '@'),0x40);" (assignment_expression "pcVar4 = strchr(pcVar4 + (*pcVar4 == '@'),0x40)" (identifier "pcVar4") (= "=") (call_expression "strchr(pcVar4 + (*pcVar4 == '@'),0x40)" (identifier "strchr") (argument_list "(pcVar4 + (*pcVar4 == '@'),0x40)" (( "(") (binary_expression "pcVar4 + (*pcVar4 == '@')" (identifier "pcVar4") (+ "+") (parenthesized_expression "(*pcVar4 == '@')" (( "(") (binary_expression "*pcVar4 == '@'" (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4")) (== "==") (char_literal "'@'" (' "'") (character "@") (' "'"))) () ")"))) (, ",") (number_literal "0x40") () ")")))) (; ";")) (if_statement "if (pcVar4 != (char *)0x0) {\n    pcVar4[1] = '\0';\n  }" (if "if") (parenthesized_expression "(pcVar4 != (char *)0x0)" (( "(") (binary_expression "pcVar4 != (char *)0x0" (identifier "pcVar4") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    pcVar4[1] = '\0';\n  }" ({ "{") (expression_statement "pcVar4[1] = '\0';" (assignment_expression "pcVar4[1] = '\0'" (subscript_expression "pcVar4[1]" (identifier "pcVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (} "}"))) (expression_statement "DAT_001d0228 = iVar2 + 1;" (assignment_expression "DAT_001d0228 = iVar2 + 1" (identifier "DAT_001d0228") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar1[1] = *(undefined4 *)(param_1 + 4);" (assignment_expression "puVar1[1] = *(undefined4 *)(param_1 + 4)" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

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

type_1 function_1(type_2 *h,void *inf)

{
  type_3 *pkVar1;
  int var_6;
  char *var_5;
  
  if (h->field_0xc != '\x01') {
    return 1;
  }
  pkVar1 = var_1 + var_2;
  var_5 = (char *)var_3((h->root).string);
  pkVar1->key = var_5;
  var_6 = var_2;
  pkVar1 = var_1 + var_2;
  var_5 = pkVar1->key;
  var_5 = var_4(var_5 + (*var_5 == '@'),0x40);
  if (var_5 != (char *)0x0) {
    var_5[1] = '\0';
  }
  var_2 = var_6 + 1;
  pkVar1->oname = (h->root).string;
  return 1;
}


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

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

undefined4 MASKED(int param_1)

{
  undefined4 *puVar1;
  int iVar2;
  undefined4 uVar3;
  char *pcVar4;
  
  if (*(char *)(param_1 + 0xc) != '\x01') {
    return 1;
  }
  puVar1 = (undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8);
  uVar3 = xstrdup(*(undefined4 *)(param_1 + 4));
  *puVar1 = uVar3;
  iVar2 = DAT_001d0228;
  puVar1 = (undefined4 *)(DAT_001d0224 + DAT_001d0228 * 8);
  pcVar4 = (char *)*puVar1;
  pcVar4 = strchr(pcVar4 + (*pcVar4 == '@'),0x40);
  if (pcVar4 != (char *)0x0) {
    pcVar4[1] = '\0';
  }
  DAT_001d0228 = iVar2 + 1;
  puVar1[1] = *(undefined4 *)(param_1 + 4);
  return 1;
}

