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

void __regparm3 set_pe_value(char *name)

{
  undefined *puVar1;
  char *pcVar2;
  ulong val;
  char *fmt;
  char *end;
  
  puVar1 = PTR_optarg_001cdfdc;
  end = (char *)0x573fa;
  val = strtoul(*(char **)PTR_optarg_001cdfdc,&end,0);
  set_pe_name(name,val);
  pcVar2 = end;
  if (end != *(char **)puVar1) {
    *(char **)puVar1 = end;
    return;
  }
  fmt = (char *)dcgettext(0,"%F%P: invalid hex number for PE parameter \'%s\'\n",5);
  einfo(fmt,pcVar2);
  *(char **)puVar1 = end;
  return;
}



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

void FUN_000573f0(void)

{
  undefined *puVar1;
  char *pcVar2;
  undefined4 uVar3;
  char *local_10;
  
  puVar1 = PTR_optarg_001cdfdc;
  local_10 = (char *)0x573fa;
  strtoul(*(char **)PTR_optarg_001cdfdc,&local_10,0);
  FUN_000572d0();
  pcVar2 = local_10;
  if (local_10 != *(char **)puVar1) {
    *(char **)puVar1 = local_10;
    return;
  }
  uVar3 = dcgettext(0,"%F%P: invalid hex number for PE parameter \'%s\'\n",5);
  FUN_00034d20(uVar3,pcVar2);
  *(char **)puVar1 = local_10;
  return;
}


PUSH EDI
MOV EDI,EAX
PUSH ESI
PUSH EBX
CALL 0x00017b80
ADD EBX,0x176c06
SUB ESP,0x14
PUSH 0x0
MOV ESI,dword ptr [EBX + 0xffffffdc]
LEA EAX,[ESP + 0x14]
PUSH EAX
PUSH dword ptr [ESI]
CALL 0x00016720
MOV EDX,EAX
MOV EAX,EDI
CALL 0x000572d0
MOV EDI,dword ptr [ESP + 0x1c]
ADD ESP,0x10
CMP EDI,dword ptr [ESI]
JZ 0x00057438
MOV dword ptr [ESI],EDI
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xfffd2378]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00016310
POP EDX
POP ECX
PUSH EDI
PUSH EAX
CALL 0x00034d20
MOV EDI,dword ptr [ESP + 0x1c]
ADD ESP,0x10
MOV dword ptr [ESI],EDI
ADD ESP,0x10
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_000573f0(void)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  char *local_10;\n  \n  puVar1 = PTR_optarg_001cdfdc;\n  local_10 = (char *)0x573fa;\n  strtoul(*(char **)PTR_optarg_001cdfdc,&local_10,0);\n  FUN_000572d0();\n  pcVar2 = local_10;\n  if (local_10 != *(char **)puVar1) {\n    *(char **)puVar1 = local_10;\n    return;\n  }\n  uVar3 = dcgettext(0,"%F%P: invalid hex number for PE parameter \'%s\'\n",5);\n  FUN_00034d20(uVar3,pcVar2);\n  *(char **)puVar1 = local_10;\n  return;\n}\n\n" comment (function_definition "void FUN_000573f0(void)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  char *local_10;\n  \n  puVar1 = PTR_optarg_001cdfdc;\n  local_10 = (char *)0x573fa;\n  strtoul(*(char **)PTR_optarg_001cdfdc,&local_10,0);\n  FUN_000572d0();\n  pcVar2 = local_10;\n  if (local_10 != *(char **)puVar1) {\n    *(char **)puVar1 = local_10;\n    return;\n  }\n  uVar3 = dcgettext(0,"%F%P: invalid hex number for PE parameter \'%s\'\n",5);\n  FUN_00034d20(uVar3,pcVar2);\n  *(char **)puVar1 = local_10;\n  return;\n}" primitive_type (function_declarator "FUN_000573f0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined *puVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  char *local_10;\n  \n  puVar1 = PTR_optarg_001cdfdc;\n  local_10 = (char *)0x573fa;\n  strtoul(*(char **)PTR_optarg_001cdfdc,&local_10,0);\n  FUN_000572d0();\n  pcVar2 = local_10;\n  if (local_10 != *(char **)puVar1) {\n    *(char **)puVar1 = local_10;\n    return;\n  }\n  uVar3 = dcgettext(0,"%F%P: invalid hex number for PE parameter \'%s\'\n",5);\n  FUN_00034d20(uVar3,pcVar2);\n  *(char **)puVar1 = local_10;\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "char *local_10;" primitive_type (pointer_declarator "*local_10" * identifier) ;) (expression_statement "puVar1 = PTR_optarg_001cdfdc;" (assignment_expression "puVar1 = PTR_optarg_001cdfdc" identifier = identifier) ;) (expression_statement "local_10 = (char *)0x573fa;" (assignment_expression "local_10 = (char *)0x573fa" identifier = (cast_expression "(char *)0x573fa" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "strtoul(*(char **)PTR_optarg_001cdfdc,&local_10,0);" (call_expression "strtoul(*(char **)PTR_optarg_001cdfdc,&local_10,0)" identifier (argument_list "(*(char **)PTR_optarg_001cdfdc,&local_10,0)" ( (pointer_expression "*(char **)PTR_optarg_001cdfdc" * (cast_expression "(char **)PTR_optarg_001cdfdc" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (pointer_expression "&local_10" & identifier) , number_literal ))) ;) (expression_statement "FUN_000572d0();" (call_expression "FUN_000572d0()" identifier (argument_list "()" ( ))) ;) (expression_statement "pcVar2 = local_10;" (assignment_expression "pcVar2 = local_10" identifier = identifier) ;) (if_statement "if (local_10 != *(char **)puVar1) {\n    *(char **)puVar1 = local_10;\n    return;\n  }" if (parenthesized_expression "(local_10 != *(char **)puVar1)" ( (binary_expression "local_10 != *(char **)puVar1" identifier != (pointer_expression "*(char **)puVar1" * (cast_expression "(char **)puVar1" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    *(char **)puVar1 = local_10;\n    return;\n  }" { (expression_statement "*(char **)puVar1 = local_10;" (assignment_expression "*(char **)puVar1 = local_10" (pointer_expression "*(char **)puVar1" * (cast_expression "(char **)puVar1" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "uVar3 = dcgettext(0,"%F%P: invalid hex number for PE parameter \'%s\'\n",5);" (assignment_expression "uVar3 = dcgettext(0,"%F%P: invalid hex number for PE parameter \'%s\'\n",5)" identifier = (call_expression "dcgettext(0,"%F%P: invalid hex number for PE parameter \'%s\'\n",5)" identifier (argument_list "(0,"%F%P: invalid hex number for PE parameter \'%s\'\n",5)" ( number_literal , (string_literal ""%F%P: invalid hex number for PE parameter \'%s\'\n"" " string_content escape_sequence string_content escape_sequence escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00034d20(uVar3,pcVar2);" (call_expression "FUN_00034d20(uVar3,pcVar2)" identifier (argument_list "(uVar3,pcVar2)" ( identifier , identifier ))) ;) (expression_statement "*(char **)puVar1 = local_10;" (assignment_expression "*(char **)puVar1 = local_10" (pointer_expression "*(char **)puVar1" * (cast_expression "(char **)puVar1" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 set_pe_value(char *name)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  ulong val;\n  char *fmt;\n  char *end;\n  \n  puVar1 = PTR_optarg_001cdfdc;\n  end = (char *)0x573fa;\n  val = strtoul(*(char **)PTR_optarg_001cdfdc,&end,0);\n  set_pe_name(name,val);\n  pcVar2 = end;\n  if (end != *(char **)puVar1) {\n    *(char **)puVar1 = end;\n    return;\n  }\n  fmt = (char *)dcgettext(0,"%F%P: invalid hex number for PE parameter \'%s\'\n",5);\n  einfo(fmt,pcVar2);\n  *(char **)puVar1 = end;\n  return;\n}\n\n" comment (function_definition "void __regparm3 set_pe_value(char *name)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  ulong val;\n  char *fmt;\n  char *end;\n  \n  puVar1 = PTR_optarg_001cdfdc;\n  end = (char *)0x573fa;\n  val = strtoul(*(char **)PTR_optarg_001cdfdc,&end,0);\n  set_pe_name(name,val);\n  pcVar2 = end;\n  if (end != *(char **)puVar1) {\n    *(char **)puVar1 = end;\n    return;\n  }\n  fmt = (char *)dcgettext(0,"%F%P: invalid hex number for PE parameter \'%s\'\n",5);\n  einfo(fmt,pcVar2);\n  *(char **)puVar1 = end;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "set_pe_value(char *name)" identifier (parameter_list "(char *name)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  char *pcVar2;\n  ulong val;\n  char *fmt;\n  char *end;\n  \n  puVar1 = PTR_optarg_001cdfdc;\n  end = (char *)0x573fa;\n  val = strtoul(*(char **)PTR_optarg_001cdfdc,&end,0);\n  set_pe_name(name,val);\n  pcVar2 = end;\n  if (end != *(char **)puVar1) {\n    *(char **)puVar1 = end;\n    return;\n  }\n  fmt = (char *)dcgettext(0,"%F%P: invalid hex number for PE parameter \'%s\'\n",5);\n  einfo(fmt,pcVar2);\n  *(char **)puVar1 = end;\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "ulong val;" type_identifier identifier ;) (declaration "char *fmt;" primitive_type (pointer_declarator "*fmt" * identifier) ;) (declaration "char *end;" primitive_type (pointer_declarator "*end" * identifier) ;) (expression_statement "puVar1 = PTR_optarg_001cdfdc;" (assignment_expression "puVar1 = PTR_optarg_001cdfdc" identifier = identifier) ;) (expression_statement "end = (char *)0x573fa;" (assignment_expression "end = (char *)0x573fa" identifier = (cast_expression "(char *)0x573fa" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "val = strtoul(*(char **)PTR_optarg_001cdfdc,&end,0);" (assignment_expression "val = strtoul(*(char **)PTR_optarg_001cdfdc,&end,0)" identifier = (call_expression "strtoul(*(char **)PTR_optarg_001cdfdc,&end,0)" identifier (argument_list "(*(char **)PTR_optarg_001cdfdc,&end,0)" ( (pointer_expression "*(char **)PTR_optarg_001cdfdc" * (cast_expression "(char **)PTR_optarg_001cdfdc" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (pointer_expression "&end" & identifier) , number_literal )))) ;) (expression_statement "set_pe_name(name,val);" (call_expression "set_pe_name(name,val)" identifier (argument_list "(name,val)" ( identifier , identifier ))) ;) (expression_statement "pcVar2 = end;" (assignment_expression "pcVar2 = end" identifier = identifier) ;) (if_statement "if (end != *(char **)puVar1) {\n    *(char **)puVar1 = end;\n    return;\n  }" if (parenthesized_expression "(end != *(char **)puVar1)" ( (binary_expression "end != *(char **)puVar1" identifier != (pointer_expression "*(char **)puVar1" * (cast_expression "(char **)puVar1" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    *(char **)puVar1 = end;\n    return;\n  }" { (expression_statement "*(char **)puVar1 = end;" (assignment_expression "*(char **)puVar1 = end" (pointer_expression "*(char **)puVar1" * (cast_expression "(char **)puVar1" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "fmt = (char *)dcgettext(0,"%F%P: invalid hex number for PE parameter \'%s\'\n",5);" (assignment_expression "fmt = (char *)dcgettext(0,"%F%P: invalid hex number for PE parameter \'%s\'\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"%F%P: invalid hex number for PE parameter \'%s\'\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%F%P: invalid hex number for PE parameter \'%s\'\n",5)" identifier (argument_list "(0,"%F%P: invalid hex number for PE parameter \'%s\'\n",5)" ( number_literal , (string_literal ""%F%P: invalid hex number for PE parameter \'%s\'\n"" " string_content escape_sequence string_content escape_sequence escape_sequence ") , number_literal ))))) ;) (expression_statement "einfo(fmt,pcVar2);" (call_expression "einfo(fmt,pcVar2)" identifier (argument_list "(fmt,pcVar2)" ( identifier , identifier ))) ;) (expression_statement "*(char **)puVar1 = end;" (assignment_expression "*(char **)puVar1 = end" (pointer_expression "*(char **)puVar1" * (cast_expression "(char **)puVar1" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000573f0(void)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  char *local_10;\n  \n  puVar1 = PTR_optarg_001cdfdc;\n  local_10 = (char *)0x573fa;\n  strtoul(*(char **)PTR_optarg_001cdfdc,&local_10,0);\n  FUN_000572d0();\n  pcVar2 = local_10;\n  if (local_10 != *(char **)puVar1) {\n    *(char **)puVar1 = local_10;\n    return;\n  }\n  uVar3 = dcgettext(0,"%F%P: invalid hex number for PE parameter \'%s\'\n",5);\n  FUN_00034d20(uVar3,pcVar2);\n  *(char **)puVar1 = local_10;\n  return;\n}\n\n" (function_definition "void FUN_000573f0(void)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  char *local_10;\n  \n  puVar1 = PTR_optarg_001cdfdc;\n  local_10 = (char *)0x573fa;\n  strtoul(*(char **)PTR_optarg_001cdfdc,&local_10,0);\n  FUN_000572d0();\n  pcVar2 = local_10;\n  if (local_10 != *(char **)puVar1) {\n    *(char **)puVar1 = local_10;\n    return;\n  }\n  uVar3 = dcgettext(0,"%F%P: invalid hex number for PE parameter \'%s\'\n",5);\n  FUN_00034d20(uVar3,pcVar2);\n  *(char **)puVar1 = local_10;\n  return;\n}" primitive_type (function_declarator "FUN_000573f0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined *puVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  char *local_10;\n  \n  puVar1 = PTR_optarg_001cdfdc;\n  local_10 = (char *)0x573fa;\n  strtoul(*(char **)PTR_optarg_001cdfdc,&local_10,0);\n  FUN_000572d0();\n  pcVar2 = local_10;\n  if (local_10 != *(char **)puVar1) {\n    *(char **)puVar1 = local_10;\n    return;\n  }\n  uVar3 = dcgettext(0,"%F%P: invalid hex number for PE parameter \'%s\'\n",5);\n  FUN_00034d20(uVar3,pcVar2);\n  *(char **)puVar1 = local_10;\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "char *local_10;" primitive_type (pointer_declarator "*local_10" * identifier) ;) (expression_statement "puVar1 = PTR_optarg_001cdfdc;" (assignment_expression "puVar1 = PTR_optarg_001cdfdc" identifier = identifier) ;) (expression_statement "local_10 = (char *)0x573fa;" (assignment_expression "local_10 = (char *)0x573fa" identifier = (cast_expression "(char *)0x573fa" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "strtoul(*(char **)PTR_optarg_001cdfdc,&local_10,0);" (call_expression "strtoul(*(char **)PTR_optarg_001cdfdc,&local_10,0)" identifier (argument_list "(*(char **)PTR_optarg_001cdfdc,&local_10,0)" ( (pointer_expression "*(char **)PTR_optarg_001cdfdc" * (cast_expression "(char **)PTR_optarg_001cdfdc" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (pointer_expression "&local_10" & identifier) , number_literal ))) ;) (expression_statement "FUN_000572d0();" (call_expression "FUN_000572d0()" identifier (argument_list "()" ( ))) ;) (expression_statement "pcVar2 = local_10;" (assignment_expression "pcVar2 = local_10" identifier = identifier) ;) (if_statement "if (local_10 != *(char **)puVar1) {\n    *(char **)puVar1 = local_10;\n    return;\n  }" if (parenthesized_expression "(local_10 != *(char **)puVar1)" ( (binary_expression "local_10 != *(char **)puVar1" identifier != (pointer_expression "*(char **)puVar1" * (cast_expression "(char **)puVar1" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    *(char **)puVar1 = local_10;\n    return;\n  }" { (expression_statement "*(char **)puVar1 = local_10;" (assignment_expression "*(char **)puVar1 = local_10" (pointer_expression "*(char **)puVar1" * (cast_expression "(char **)puVar1" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "uVar3 = dcgettext(0,"%F%P: invalid hex number for PE parameter \'%s\'\n",5);" (assignment_expression "uVar3 = dcgettext(0,"%F%P: invalid hex number for PE parameter \'%s\'\n",5)" identifier = (call_expression "dcgettext(0,"%F%P: invalid hex number for PE parameter \'%s\'\n",5)" identifier (argument_list "(0,"%F%P: invalid hex number for PE parameter \'%s\'\n",5)" ( number_literal , (string_literal ""%F%P: invalid hex number for PE parameter \'%s\'\n"" " string_content escape_sequence string_content escape_sequence escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00034d20(uVar3,pcVar2);" (call_expression "FUN_00034d20(uVar3,pcVar2)" identifier (argument_list "(uVar3,pcVar2)" ( identifier , identifier ))) ;) (expression_statement "*(char **)puVar1 = local_10;" (assignment_expression "*(char **)puVar1 = local_10" (pointer_expression "*(char **)puVar1" * (cast_expression "(char **)puVar1" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) , (pointer_expression & IDENT) , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) = IDENT) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence string_content escape_sequence escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_000573f0(void)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  char *local_10;\n  \n  puVar1 = PTR_optarg_001cdfdc;\n  local_10 = (char *)0x573fa;\n  strtoul(*(char **)PTR_optarg_001cdfdc,&local_10,0);\n  FUN_000572d0();\n  pcVar2 = local_10;\n  if (local_10 != *(char **)puVar1) {\n    *(char **)puVar1 = local_10;\n    return;\n  }\n  uVar3 = dcgettext(0,"%F%P: invalid hex number for PE parameter \'%s\'\n",5);\n  FUN_00034d20(uVar3,pcVar2);\n  *(char **)puVar1 = local_10;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000573f0(void)" (identifier "FUN_000573f0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  char *local_10;\n  \n  puVar1 = PTR_optarg_001cdfdc;\n  local_10 = (char *)0x573fa;\n  strtoul(*(char **)PTR_optarg_001cdfdc,&local_10,0);\n  FUN_000572d0();\n  pcVar2 = local_10;\n  if (local_10 != *(char **)puVar1) {\n    *(char **)puVar1 = local_10;\n    return;\n  }\n  uVar3 = dcgettext(0,"%F%P: invalid hex number for PE parameter \'%s\'\n",5);\n  FUN_00034d20(uVar3,pcVar2);\n  *(char **)puVar1 = local_10;\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "char *local_10;" (primitive_type "char") (pointer_declarator "*local_10" (* "*") (identifier "local_10")) (; ";")) (expression_statement "puVar1 = PTR_optarg_001cdfdc;" (assignment_expression "puVar1 = PTR_optarg_001cdfdc" (identifier "puVar1") (= "=") (identifier "PTR_optarg_001cdfdc")) (; ";")) (expression_statement "local_10 = (char *)0x573fa;" (assignment_expression "local_10 = (char *)0x573fa" (identifier "local_10") (= "=") (cast_expression "(char *)0x573fa" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x573fa"))) (; ";")) (expression_statement "strtoul(*(char **)PTR_optarg_001cdfdc,&local_10,0);" (call_expression "strtoul(*(char **)PTR_optarg_001cdfdc,&local_10,0)" (identifier "strtoul") (argument_list "(*(char **)PTR_optarg_001cdfdc,&local_10,0)" (( "(") (pointer_expression "*(char **)PTR_optarg_001cdfdc" (* "*") (cast_expression "(char **)PTR_optarg_001cdfdc" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_optarg_001cdfdc"))) (, ",") (pointer_expression "&local_10" (& "&") (identifier "local_10")) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "FUN_000572d0();" (call_expression "FUN_000572d0()" (identifier "FUN_000572d0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "pcVar2 = local_10;" (assignment_expression "pcVar2 = local_10" (identifier "pcVar2") (= "=") (identifier "local_10")) (; ";")) (if_statement "if (local_10 != *(char **)puVar1) {\n    *(char **)puVar1 = local_10;\n    return;\n  }" (if "if") (parenthesized_expression "(local_10 != *(char **)puVar1)" (( "(") (binary_expression "local_10 != *(char **)puVar1" (identifier "local_10") (!= "!=") (pointer_expression "*(char **)puVar1" (* "*") (cast_expression "(char **)puVar1" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar1")))) () ")")) (compound_statement "{\n    *(char **)puVar1 = local_10;\n    return;\n  }" ({ "{") (expression_statement "*(char **)puVar1 = local_10;" (assignment_expression "*(char **)puVar1 = local_10" (pointer_expression "*(char **)puVar1" (* "*") (cast_expression "(char **)puVar1" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar1"))) (= "=") (identifier "local_10")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar3 = dcgettext(0,"%F%P: invalid hex number for PE parameter \'%s\'\n",5);" (assignment_expression "uVar3 = dcgettext(0,"%F%P: invalid hex number for PE parameter \'%s\'\n",5)" (identifier "uVar3") (= "=") (call_expression "dcgettext(0,"%F%P: invalid hex number for PE parameter \'%s\'\n",5)" (identifier "dcgettext") (argument_list "(0,"%F%P: invalid hex number for PE parameter \'%s\'\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""%F%P: invalid hex number for PE parameter \'%s\'\n"" (" """) (string_content "%F%P: invalid hex number for PE parameter ") (escape_sequence "\'") (string_content "%s") (escape_sequence "\'") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00034d20(uVar3,pcVar2);" (call_expression "FUN_00034d20(uVar3,pcVar2)" (identifier "FUN_00034d20") (argument_list "(uVar3,pcVar2)" (( "(") (identifier "uVar3") (, ",") (identifier "pcVar2") () ")"))) (; ";")) (expression_statement "*(char **)puVar1 = local_10;" (assignment_expression "*(char **)puVar1 = local_10" (pointer_expression "*(char **)puVar1" (* "*") (cast_expression "(char **)puVar1" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar1"))) (= "=") (identifier "local_10")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(char *name)

{
  type_1 *puVar1;
  char *pcVar2;
  type_2 val;
  char *fmt;
  char *var_3;
  
  puVar1 = PTR_optarg_001cdfdc;
  var_3 = (char *)0x573fa;
  val = var_1(*(char **)PTR_optarg_001cdfdc,&var_3,0);
  var_2(name,val);
  pcVar2 = var_3;
  if (var_3 != *(char **)puVar1) {
    *(char **)puVar1 = var_3;
    return;
  }
  fmt = (char *)var_4(0,"%F%P: invalid hex number for PE parameter \'%s\'\n",5);
  var_5(fmt,pcVar2);
  *(char **)puVar1 = var_3;
  return;
}


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

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

void MASKED(void)

{
  undefined *puVar1;
  char *pcVar2;
  undefined4 uVar3;
  char *local_10;
  
  puVar1 = PTR_optarg_001cdfdc;
  local_10 = (char *)0x573fa;
  strtoul(*(char **)PTR_optarg_001cdfdc,&local_10,0);
  FUN_000572d0();
  pcVar2 = local_10;
  if (local_10 != *(char **)puVar1) {
    *(char **)puVar1 = local_10;
    return;
  }
  uVar3 = dcgettext(0,"%F%P: invalid hex number for PE parameter \'%s\'\n",5);
  FUN_00034d20(uVar3,pcVar2);
  *(char **)puVar1 = local_10;
  return;
}

