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

segT __regparm3 get_segmented_expression(expressionS *expP)

{
  undefined *puVar1;
  segT paVar2;
  char *format;
  
  paVar2 = expr(0,expP,expr_normal);
  if ((1 < (byte)expP->field_0xc) && (expP->field_0xc != 6)) {
    return paVar2;
  }
  format = (char *)dcgettext(0,"expected address expression",5);
  as_bad(format);
  puVar1 = PTR__bfd_std_section_0007afb4;
  expP->field_0xc = 2;
  expP->X_add_number = 0;
  return (segT)(puVar1 + 0x150);
}



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

undefined * __regparm3 FUN_0002dd50(int param_1)

{
  undefined *puVar1;
  undefined4 uVar2;
  
  puVar1 = (undefined *)FUN_00024f00(0,param_1,1);
  if ((1 < *(byte *)(param_1 + 0xc)) && (*(byte *)(param_1 + 0xc) != 6)) {
    return puVar1;
  }
  uVar2 = dcgettext(0,"expected address expression",5);
  FUN_0002d660(uVar2);
  puVar1 = PTR__bfd_std_section_0007afb4;
  *(undefined1 *)(param_1 + 0xc) = 2;
  *(undefined4 *)(param_1 + 8) = 0;
  return puVar1 + 0x150;
}


PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00019010
ADD EBX,0x4d2a7
SUB ESP,0x8
PUSH 0x1
PUSH EAX
PUSH 0x0
CALL 0x00024f00
MOVZX EDX,byte ptr [ESI + 0xc]
ADD ESP,0x10
CMP DL,0x1
JBE 0x0002dd88
CMP DL,0x6
JZ 0x0002dd88
ADD ESP,0x4
POP EBX
POP ESI
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xfffde060]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000171a0
MOV dword ptr [ESP],EAX
CALL 0x0002d660
MOV EAX,dword ptr [EBX + 0xffffffb4]
ADD ESP,0x10
MOV byte ptr [ESI + 0xc],0x2
MOV dword ptr [ESI + 0x8],0x0
ADD ESP,0x4
ADD EAX,0x150
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined * __regparm3 FUN_0002dd50(int param_1)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined *)FUN_00024f00(0,param_1,1);\n  if ((1 < *(byte *)(param_1 + 0xc)) && (*(byte *)(param_1 + 0xc) != 6)) {\n    return puVar1;\n  }\n  uVar2 = dcgettext(0,"expected address expression",5);\n  FUN_0002d660(uVar2);\n  puVar1 = PTR__bfd_std_section_0007afb4;\n  *(undefined1 *)(param_1 + 0xc) = 2;\n  *(undefined4 *)(param_1 + 8) = 0;\n  return puVar1 + 0x150;\n}\n\n" comment (ERROR "undefined * __regparm3 FUN_0002dd50(int param_1)" (binary_expression "undefined * __regparm3 FUN_0002dd50(int param_1)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_0002dd50(int param_1)" identifier (argument_list "(int param_1)" ( (ERROR "int" identifier) identifier ))))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined *)FUN_00024f00(0,param_1,1);\n  if ((1 < *(byte *)(param_1 + 0xc)) && (*(byte *)(param_1 + 0xc) != 6)) {\n    return puVar1;\n  }\n  uVar2 = dcgettext(0,"expected address expression",5);\n  FUN_0002d660(uVar2);\n  puVar1 = PTR__bfd_std_section_0007afb4;\n  *(undefined1 *)(param_1 + 0xc) = 2;\n  *(undefined4 *)(param_1 + 8) = 0;\n  return puVar1 + 0x150;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined *)FUN_00024f00(0,param_1,1);" (assignment_expression "puVar1 = (undefined *)FUN_00024f00(0,param_1,1)" identifier = (cast_expression "(undefined *)FUN_00024f00(0,param_1,1)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00024f00(0,param_1,1)" identifier (argument_list "(0,param_1,1)" ( number_literal , identifier , number_literal ))))) ;) (if_statement "if ((1 < *(byte *)(param_1 + 0xc)) && (*(byte *)(param_1 + 0xc) != 6)) {\n    return puVar1;\n  }" if (parenthesized_expression "((1 < *(byte *)(param_1 + 0xc)) && (*(byte *)(param_1 + 0xc) != 6))" ( (binary_expression "(1 < *(byte *)(param_1 + 0xc)) && (*(byte *)(param_1 + 0xc) != 6)" (parenthesized_expression "(1 < *(byte *)(param_1 + 0xc))" ( (binary_expression "1 < *(byte *)(param_1 + 0xc)" number_literal < (pointer_expression "*(byte *)(param_1 + 0xc)" * (cast_expression "(byte *)(param_1 + 0xc)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) )) && (parenthesized_expression "(*(byte *)(param_1 + 0xc) != 6)" ( (binary_expression "*(byte *)(param_1 + 0xc) != 6" (pointer_expression "*(byte *)(param_1 + 0xc)" * (cast_expression "(byte *)(param_1 + 0xc)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    return puVar1;\n  }" { (return_statement "return puVar1;" return identifier ;) })) (expression_statement "uVar2 = dcgettext(0,"expected address expression",5);" (assignment_expression "uVar2 = dcgettext(0,"expected address expression",5)" identifier = (call_expression "dcgettext(0,"expected address expression",5)" identifier (argument_list "(0,"expected address expression",5)" ( number_literal , (string_literal ""expected address expression"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_0002d660(uVar2);" (call_expression "FUN_0002d660(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "puVar1 = PTR__bfd_std_section_0007afb4;" (assignment_expression "puVar1 = PTR__bfd_std_section_0007afb4" identifier = identifier) ;) (expression_statement "*(undefined1 *)(param_1 + 0xc) = 2;" (assignment_expression "*(undefined1 *)(param_1 + 0xc) = 2" (pointer_expression "*(undefined1 *)(param_1 + 0xc)" * (cast_expression "(undefined1 *)(param_1 + 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = number_literal) ;) (return_statement "return puVar1 + 0x150;" return (binary_expression "puVar1 + 0x150" identifier + number_literal) ;) }))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nsegT __regparm3 get_segmented_expression(expressionS *expP)\n\n{\n  undefined *puVar1;\n  segT paVar2;\n  char *format;\n  \n  paVar2 = expr(0,expP,expr_normal);\n  if ((1 < (byte)expP->field_0xc) && (expP->field_0xc != 6)) {\n    return paVar2;\n  }\n  format = (char *)dcgettext(0,"expected address expression",5);\n  as_bad(format);\n  puVar1 = PTR__bfd_std_section_0007afb4;\n  expP->field_0xc = 2;\n  expP->X_add_number = 0;\n  return (segT)(puVar1 + 0x150);\n}\n\n" comment (function_definition "segT __regparm3 get_segmented_expression(expressionS *expP)\n\n{\n  undefined *puVar1;\n  segT paVar2;\n  char *format;\n  \n  paVar2 = expr(0,expP,expr_normal);\n  if ((1 < (byte)expP->field_0xc) && (expP->field_0xc != 6)) {\n    return paVar2;\n  }\n  format = (char *)dcgettext(0,"expected address expression",5);\n  as_bad(format);\n  puVar1 = PTR__bfd_std_section_0007afb4;\n  expP->field_0xc = 2;\n  expP->X_add_number = 0;\n  return (segT)(puVar1 + 0x150);\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "get_segmented_expression(expressionS *expP)" identifier (parameter_list "(expressionS *expP)" ( (parameter_declaration "expressionS *expP" type_identifier (pointer_declarator "*expP" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  segT paVar2;\n  char *format;\n  \n  paVar2 = expr(0,expP,expr_normal);\n  if ((1 < (byte)expP->field_0xc) && (expP->field_0xc != 6)) {\n    return paVar2;\n  }\n  format = (char *)dcgettext(0,"expected address expression",5);\n  as_bad(format);\n  puVar1 = PTR__bfd_std_section_0007afb4;\n  expP->field_0xc = 2;\n  expP->X_add_number = 0;\n  return (segT)(puVar1 + 0x150);\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "segT paVar2;" type_identifier identifier ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (expression_statement "paVar2 = expr(0,expP,expr_normal);" (assignment_expression "paVar2 = expr(0,expP,expr_normal)" identifier = (call_expression "expr(0,expP,expr_normal)" identifier (argument_list "(0,expP,expr_normal)" ( number_literal , identifier , identifier )))) ;) (if_statement "if ((1 < (byte)expP->field_0xc) && (expP->field_0xc != 6)) {\n    return paVar2;\n  }" if (parenthesized_expression "((1 < (byte)expP->field_0xc) && (expP->field_0xc != 6))" ( (binary_expression "(1 < (byte)expP->field_0xc) && (expP->field_0xc != 6)" (parenthesized_expression "(1 < (byte)expP->field_0xc)" ( (binary_expression "1 < (byte)expP->field_0xc" number_literal < (cast_expression "(byte)expP->field_0xc" ( (type_descriptor "byte" type_identifier) ) (field_expression "expP->field_0xc" identifier -> field_identifier))) )) && (parenthesized_expression "(expP->field_0xc != 6)" ( (binary_expression "expP->field_0xc != 6" (field_expression "expP->field_0xc" identifier -> field_identifier) != number_literal) ))) )) (compound_statement "{\n    return paVar2;\n  }" { (return_statement "return paVar2;" return identifier ;) })) (expression_statement "format = (char *)dcgettext(0,"expected address expression",5);" (assignment_expression "format = (char *)dcgettext(0,"expected address expression",5)" identifier = (cast_expression "(char *)dcgettext(0,"expected address expression",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"expected address expression",5)" identifier (argument_list "(0,"expected address expression",5)" ( number_literal , (string_literal ""expected address expression"" " string_content ") , number_literal ))))) ;) (expression_statement "as_bad(format);" (call_expression "as_bad(format)" identifier (argument_list "(format)" ( identifier ))) ;) (expression_statement "puVar1 = PTR__bfd_std_section_0007afb4;" (assignment_expression "puVar1 = PTR__bfd_std_section_0007afb4" identifier = identifier) ;) (expression_statement "expP->field_0xc = 2;" (assignment_expression "expP->field_0xc = 2" (field_expression "expP->field_0xc" identifier -> field_identifier) = number_literal) ;) (expression_statement "expP->X_add_number = 0;" (assignment_expression "expP->X_add_number = 0" (field_expression "expP->X_add_number" identifier -> field_identifier) = number_literal) ;) (return_statement "return (segT)(puVar1 + 0x150);" return (call_expression "(segT)(puVar1 + 0x150)" (parenthesized_expression "(segT)" ( identifier )) (argument_list "(puVar1 + 0x150)" ( (binary_expression "puVar1 + 0x150" identifier + number_literal) ))) ;) })))
(translation_unit "undefined * __regparm3 FUN_0002dd50(int param_1)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined *)FUN_00024f00(0,param_1,1);\n  if ((1 < *(byte *)(param_1 + 0xc)) && (*(byte *)(param_1 + 0xc) != 6)) {\n    return puVar1;\n  }\n  uVar2 = dcgettext(0,"expected address expression",5);\n  FUN_0002d660(uVar2);\n  puVar1 = PTR__bfd_std_section_0007afb4;\n  *(undefined1 *)(param_1 + 0xc) = 2;\n  *(undefined4 *)(param_1 + 8) = 0;\n  return puVar1 + 0x150;\n}\n\n" (ERROR "undefined * __regparm3 FUN_0002dd50(int param_1)" (binary_expression "undefined * __regparm3 FUN_0002dd50(int param_1)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_0002dd50(int param_1)" identifier (argument_list "(int param_1)" ( (ERROR "int" identifier) identifier ))))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined *)FUN_00024f00(0,param_1,1);\n  if ((1 < *(byte *)(param_1 + 0xc)) && (*(byte *)(param_1 + 0xc) != 6)) {\n    return puVar1;\n  }\n  uVar2 = dcgettext(0,"expected address expression",5);\n  FUN_0002d660(uVar2);\n  puVar1 = PTR__bfd_std_section_0007afb4;\n  *(undefined1 *)(param_1 + 0xc) = 2;\n  *(undefined4 *)(param_1 + 8) = 0;\n  return puVar1 + 0x150;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined *)FUN_00024f00(0,param_1,1);" (assignment_expression "puVar1 = (undefined *)FUN_00024f00(0,param_1,1)" identifier = (cast_expression "(undefined *)FUN_00024f00(0,param_1,1)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00024f00(0,param_1,1)" identifier (argument_list "(0,param_1,1)" ( number_literal , identifier , number_literal ))))) ;) (if_statement "if ((1 < *(byte *)(param_1 + 0xc)) && (*(byte *)(param_1 + 0xc) != 6)) {\n    return puVar1;\n  }" if (parenthesized_expression "((1 < *(byte *)(param_1 + 0xc)) && (*(byte *)(param_1 + 0xc) != 6))" ( (binary_expression "(1 < *(byte *)(param_1 + 0xc)) && (*(byte *)(param_1 + 0xc) != 6)" (parenthesized_expression "(1 < *(byte *)(param_1 + 0xc))" ( (binary_expression "1 < *(byte *)(param_1 + 0xc)" number_literal < (pointer_expression "*(byte *)(param_1 + 0xc)" * (cast_expression "(byte *)(param_1 + 0xc)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) )) && (parenthesized_expression "(*(byte *)(param_1 + 0xc) != 6)" ( (binary_expression "*(byte *)(param_1 + 0xc) != 6" (pointer_expression "*(byte *)(param_1 + 0xc)" * (cast_expression "(byte *)(param_1 + 0xc)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    return puVar1;\n  }" { (return_statement "return puVar1;" return identifier ;) })) (expression_statement "uVar2 = dcgettext(0,"expected address expression",5);" (assignment_expression "uVar2 = dcgettext(0,"expected address expression",5)" identifier = (call_expression "dcgettext(0,"expected address expression",5)" identifier (argument_list "(0,"expected address expression",5)" ( number_literal , (string_literal ""expected address expression"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_0002d660(uVar2);" (call_expression "FUN_0002d660(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "puVar1 = PTR__bfd_std_section_0007afb4;" (assignment_expression "puVar1 = PTR__bfd_std_section_0007afb4" identifier = identifier) ;) (expression_statement "*(undefined1 *)(param_1 + 0xc) = 2;" (assignment_expression "*(undefined1 *)(param_1 + 0xc) = 2" (pointer_expression "*(undefined1 *)(param_1 + 0xc)" * (cast_expression "(undefined1 *)(param_1 + 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = number_literal) ;) (return_statement "return puVar1 + 0x150;" return (binary_expression "puVar1 + 0x150" identifier + number_literal) ;) }))
(translation_unit (ERROR (binary_expression IDENT * (ERROR IDENT) (call_expression IDENT (argument_list ( (ERROR IDENT) IDENT ))))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , IDENT , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) ))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return (binary_expression IDENT + LIT) ;) }))
(ERROR "undefined * __regparm3 FUN_0002dd50(int param_1)" (binary_expression "undefined * __regparm3 FUN_0002dd50(int param_1)" (identifier "undefined") (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (call_expression "FUN_0002dd50(int param_1)" (identifier "FUN_0002dd50") (argument_list "(int param_1)" (( "(") (ERROR "int" (identifier "int")) (identifier "param_1") () ")"))))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined *)FUN_00024f00(0,param_1,1);\n  if ((1 < *(byte *)(param_1 + 0xc)) && (*(byte *)(param_1 + 0xc) != 6)) {\n    return puVar1;\n  }\n  uVar2 = dcgettext(0,"expected address expression",5);\n  FUN_0002d660(uVar2);\n  puVar1 = PTR__bfd_std_section_0007afb4;\n  *(undefined1 *)(param_1 + 0xc) = 2;\n  *(undefined4 *)(param_1 + 8) = 0;\n  return puVar1 + 0x150;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "puVar1 = (undefined *)FUN_00024f00(0,param_1,1);" (assignment_expression "puVar1 = (undefined *)FUN_00024f00(0,param_1,1)" (identifier "puVar1") (= "=") (cast_expression "(undefined *)FUN_00024f00(0,param_1,1)" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00024f00(0,param_1,1)" (identifier "FUN_00024f00") (argument_list "(0,param_1,1)" (( "(") (number_literal "0") (, ",") (identifier "param_1") (, ",") (number_literal "1") () ")"))))) (; ";")) (if_statement "if ((1 < *(byte *)(param_1 + 0xc)) && (*(byte *)(param_1 + 0xc) != 6)) {\n    return puVar1;\n  }" (if "if") (parenthesized_expression "((1 < *(byte *)(param_1 + 0xc)) && (*(byte *)(param_1 + 0xc) != 6))" (( "(") (binary_expression "(1 < *(byte *)(param_1 + 0xc)) && (*(byte *)(param_1 + 0xc) != 6)" (parenthesized_expression "(1 < *(byte *)(param_1 + 0xc))" (( "(") (binary_expression "1 < *(byte *)(param_1 + 0xc)" (number_literal "1") (< "<") (pointer_expression "*(byte *)(param_1 + 0xc)" (* "*") (cast_expression "(byte *)(param_1 + 0xc)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) () ")")) (&& "&&") (parenthesized_expression "(*(byte *)(param_1 + 0xc) != 6)" (( "(") (binary_expression "*(byte *)(param_1 + 0xc) != 6" (pointer_expression "*(byte *)(param_1 + 0xc)" (* "*") (cast_expression "(byte *)(param_1 + 0xc)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "6")) () ")"))) () ")")) (compound_statement "{\n    return puVar1;\n  }" ({ "{") (return_statement "return puVar1;" (return "return") (identifier "puVar1") (; ";")) (} "}"))) (expression_statement "uVar2 = dcgettext(0,"expected address expression",5);" (assignment_expression "uVar2 = dcgettext(0,"expected address expression",5)" (identifier "uVar2") (= "=") (call_expression "dcgettext(0,"expected address expression",5)" (identifier "dcgettext") (argument_list "(0,"expected address expression",5)" (( "(") (number_literal "0") (, ",") (string_literal ""expected address expression"" (" """) (string_content "expected address expression") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_0002d660(uVar2);" (call_expression "FUN_0002d660(uVar2)" (identifier "FUN_0002d660") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "puVar1 = PTR__bfd_std_section_0007afb4;" (assignment_expression "puVar1 = PTR__bfd_std_section_0007afb4" (identifier "puVar1") (= "=") (identifier "PTR__bfd_std_section_0007afb4")) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 0xc) = 2;" (assignment_expression "*(undefined1 *)(param_1 + 0xc) = 2" (pointer_expression "*(undefined1 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "2")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return puVar1 + 0x150;" (return "return") (binary_expression "puVar1 + 0x150" (identifier "puVar1") (+ "+") (number_literal "0x150")) (; ";")) (} "}"))

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

type_1 __regparm3 function_1(type_2 *expP)

{
  type_3 *var_4;
  type_1 paVar2;
  char *format;
  
  paVar2 = var_1(0,expP,expr_normal);
  if ((1 < (type_4)expP->field_0xc) && (expP->field_0xc != 6)) {
    return paVar2;
  }
  format = (char *)var_2(0,"expected address expression",5);
  var_3(format);
  var_4 = PTR__bfd_std_section_0007afb4;
  expP->field_0xc = 2;
  expP->X_add_number = 0;
  return (type_1)(var_4 + 0x150);
}


(translation_unit (ERROR (binary_expression left: (identifier) (ERROR (identifier)) right: (call_expression function: (identifier) arguments: (argument_list (ERROR (identifier)) (identifier))))) (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator 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: (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier) (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (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))))))) right: (parenthesized_expression (binary_expression left: (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))))) right: (number_literal))))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (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))))) right: (number_literal))) (expression_statement (assignment_expression left: (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))))) right: (number_literal))) (return_statement (binary_expression left: (identifier) right: (number_literal)))))

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

undefined * __regparm3 MASKED(int param_1)

{
  undefined *puVar1;
  undefined4 uVar2;
  
  puVar1 = (undefined *)FUN_00024f00(0,param_1,1);
  if ((1 < *(byte *)(param_1 + 0xc)) && (*(byte *)(param_1 + 0xc) != 6)) {
    return puVar1;
  }
  uVar2 = dcgettext(0,"expected address expression",5);
  FUN_0002d660(uVar2);
  puVar1 = PTR__bfd_std_section_0007afb4;
  *(undefined1 *)(param_1 + 0xc) = 2;
  *(undefined4 *)(param_1 + 8) = 0;
  return puVar1 + 0x150;
}

