
/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

void S_SET_VOLATILE(symbolS *s)

{
  symbolS *psVar1;
  
  if (((uint)s->sy_flags & 1) != 0) {
    if ((segT)s->bsym == reg_section) {
      psVar1 = (s->sy_value).X_op_symbol;
      *(byte *)&psVar1->sy_flags = *(byte *)&psVar1->sy_flags | 0x40;
      return;
    }
    s = local_symbol_convert((local_symbol *)s);
  }
  *(byte *)&s->sy_flags = *(byte *)&s->sy_flags | 0x40;
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

void FUN_00040b00(byte *param_1)

{
  if ((*param_1 & 1) != 0) {
    if (*(int *)(param_1 + 4) == DAT_00081410) {
      **(byte **)(param_1 + 0xc) = **(byte **)(param_1 + 0xc) | 0x40;
      return;
    }
    param_1 = (byte *)FUN_0003e490();
  }
  *param_1 = *param_1 | 0x40;
  return;
}


CALL 0x000161a5
ADD EDX,0x374fb
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x10]
TEST byte ptr [EAX],0x1
JZ 0x00040b29
LEA EDX,[EDX + 0x9410]
MOV ECX,dword ptr [EDX]
CMP dword ptr [EAX + 0x4],ECX
JZ 0x00040b30
CALL 0x0003e490
OR byte ptr [EAX],0x40
ADD ESP,0xc
RET
MOV EAX,dword ptr [EAX + 0xc]
OR byte ptr [EAX],0x40
ADD ESP,0xc
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nvoid FUN_00040b00(byte *param_1)\n\n{\n  if ((*param_1 & 1) != 0) {\n    if (*(int *)(param_1 + 4) == DAT_00081410) {\n      **(byte **)(param_1 + 0xc) = **(byte **)(param_1 + 0xc) | 0x40;\n      return;\n    }\n    param_1 = (byte *)FUN_0003e490();\n  }\n  *param_1 = *param_1 | 0x40;\n  return;\n}\n\n" comment (function_definition "void FUN_00040b00(byte *param_1)\n\n{\n  if ((*param_1 & 1) != 0) {\n    if (*(int *)(param_1 + 4) == DAT_00081410) {\n      **(byte **)(param_1 + 0xc) = **(byte **)(param_1 + 0xc) | 0x40;\n      return;\n    }\n    param_1 = (byte *)FUN_0003e490();\n  }\n  *param_1 = *param_1 | 0x40;\n  return;\n}" primitive_type (function_declarator "FUN_00040b00(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  if ((*param_1 & 1) != 0) {\n    if (*(int *)(param_1 + 4) == DAT_00081410) {\n      **(byte **)(param_1 + 0xc) = **(byte **)(param_1 + 0xc) | 0x40;\n      return;\n    }\n    param_1 = (byte *)FUN_0003e490();\n  }\n  *param_1 = *param_1 | 0x40;\n  return;\n}" { (if_statement "if ((*param_1 & 1) != 0) {\n    if (*(int *)(param_1 + 4) == DAT_00081410) {\n      **(byte **)(param_1 + 0xc) = **(byte **)(param_1 + 0xc) | 0x40;\n      return;\n    }\n    param_1 = (byte *)FUN_0003e490();\n  }" if (parenthesized_expression "((*param_1 & 1) != 0)" ( (binary_expression "(*param_1 & 1) != 0" (parenthesized_expression "(*param_1 & 1)" ( (binary_expression "*param_1 & 1" (pointer_expression "*param_1" * identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 4) == DAT_00081410) {\n      **(byte **)(param_1 + 0xc) = **(byte **)(param_1 + 0xc) | 0x40;\n      return;\n    }\n    param_1 = (byte *)FUN_0003e490();\n  }" { (if_statement "if (*(int *)(param_1 + 4) == DAT_00081410) {\n      **(byte **)(param_1 + 0xc) = **(byte **)(param_1 + 0xc) | 0x40;\n      return;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 4) == DAT_00081410)" ( (binary_expression "*(int *)(param_1 + 4) == DAT_00081410" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n      **(byte **)(param_1 + 0xc) = **(byte **)(param_1 + 0xc) | 0x40;\n      return;\n    }" { (expression_statement "**(byte **)(param_1 + 0xc) = **(byte **)(param_1 + 0xc) | 0x40;" (assignment_expression "**(byte **)(param_1 + 0xc) = **(byte **)(param_1 + 0xc) | 0x40" (pointer_expression "**(byte **)(param_1 + 0xc)" * (pointer_expression "*(byte **)(param_1 + 0xc)" * (cast_expression "(byte **)(param_1 + 0xc)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) = (binary_expression "**(byte **)(param_1 + 0xc) | 0x40" (pointer_expression "**(byte **)(param_1 + 0xc)" * (pointer_expression "*(byte **)(param_1 + 0xc)" * (cast_expression "(byte **)(param_1 + 0xc)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) | number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "param_1 = (byte *)FUN_0003e490();" (assignment_expression "param_1 = (byte *)FUN_0003e490()" identifier = (cast_expression "(byte *)FUN_0003e490()" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003e490()" identifier (argument_list "()" ( ))))) ;) })) (expression_statement "*param_1 = *param_1 | 0x40;" (assignment_expression "*param_1 = *param_1 | 0x40" (pointer_expression "*param_1" * identifier) = (binary_expression "*param_1 | 0x40" (pointer_expression "*param_1" * identifier) | number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nvoid S_SET_VOLATILE(symbolS *s)\n\n{\n  symbolS *psVar1;\n  \n  if (((uint)s->sy_flags & 1) != 0) {\n    if ((segT)s->bsym == reg_section) {\n      psVar1 = (s->sy_value).X_op_symbol;\n      *(byte *)&psVar1->sy_flags = *(byte *)&psVar1->sy_flags | 0x40;\n      return;\n    }\n    s = local_symbol_convert((local_symbol *)s);\n  }\n  *(byte *)&s->sy_flags = *(byte *)&s->sy_flags | 0x40;\n  return;\n}\n\n" comment (function_definition "void S_SET_VOLATILE(symbolS *s)\n\n{\n  symbolS *psVar1;\n  \n  if (((uint)s->sy_flags & 1) != 0) {\n    if ((segT)s->bsym == reg_section) {\n      psVar1 = (s->sy_value).X_op_symbol;\n      *(byte *)&psVar1->sy_flags = *(byte *)&psVar1->sy_flags | 0x40;\n      return;\n    }\n    s = local_symbol_convert((local_symbol *)s);\n  }\n  *(byte *)&s->sy_flags = *(byte *)&s->sy_flags | 0x40;\n  return;\n}" primitive_type (function_declarator "S_SET_VOLATILE(symbolS *s)" identifier (parameter_list "(symbolS *s)" ( (parameter_declaration "symbolS *s" type_identifier (pointer_declarator "*s" * identifier)) ))) (compound_statement "{\n  symbolS *psVar1;\n  \n  if (((uint)s->sy_flags & 1) != 0) {\n    if ((segT)s->bsym == reg_section) {\n      psVar1 = (s->sy_value).X_op_symbol;\n      *(byte *)&psVar1->sy_flags = *(byte *)&psVar1->sy_flags | 0x40;\n      return;\n    }\n    s = local_symbol_convert((local_symbol *)s);\n  }\n  *(byte *)&s->sy_flags = *(byte *)&s->sy_flags | 0x40;\n  return;\n}" { (declaration "symbolS *psVar1;" type_identifier (pointer_declarator "*psVar1" * identifier) ;) (if_statement "if (((uint)s->sy_flags & 1) != 0) {\n    if ((segT)s->bsym == reg_section) {\n      psVar1 = (s->sy_value).X_op_symbol;\n      *(byte *)&psVar1->sy_flags = *(byte *)&psVar1->sy_flags | 0x40;\n      return;\n    }\n    s = local_symbol_convert((local_symbol *)s);\n  }" if (parenthesized_expression "(((uint)s->sy_flags & 1) != 0)" ( (binary_expression "((uint)s->sy_flags & 1) != 0" (parenthesized_expression "((uint)s->sy_flags & 1)" ( (binary_expression "(uint)s->sy_flags & 1" (cast_expression "(uint)s->sy_flags" ( (type_descriptor "uint" type_identifier) ) (field_expression "s->sy_flags" identifier -> field_identifier)) & number_literal) )) != number_literal) )) (compound_statement "{\n    if ((segT)s->bsym == reg_section) {\n      psVar1 = (s->sy_value).X_op_symbol;\n      *(byte *)&psVar1->sy_flags = *(byte *)&psVar1->sy_flags | 0x40;\n      return;\n    }\n    s = local_symbol_convert((local_symbol *)s);\n  }" { (if_statement "if ((segT)s->bsym == reg_section) {\n      psVar1 = (s->sy_value).X_op_symbol;\n      *(byte *)&psVar1->sy_flags = *(byte *)&psVar1->sy_flags | 0x40;\n      return;\n    }" if (parenthesized_expression "((segT)s->bsym == reg_section)" ( (binary_expression "(segT)s->bsym == reg_section" (cast_expression "(segT)s->bsym" ( (type_descriptor "segT" type_identifier) ) (field_expression "s->bsym" identifier -> field_identifier)) == identifier) )) (compound_statement "{\n      psVar1 = (s->sy_value).X_op_symbol;\n      *(byte *)&psVar1->sy_flags = *(byte *)&psVar1->sy_flags | 0x40;\n      return;\n    }" { (expression_statement "psVar1 = (s->sy_value).X_op_symbol;" (assignment_expression "psVar1 = (s->sy_value).X_op_symbol" identifier = (field_expression "(s->sy_value).X_op_symbol" (parenthesized_expression "(s->sy_value)" ( (field_expression "s->sy_value" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "*(byte *)&psVar1->sy_flags = *(byte *)&psVar1->sy_flags | 0x40;" (assignment_expression "*(byte *)&psVar1->sy_flags = *(byte *)&psVar1->sy_flags | 0x40" (pointer_expression "*(byte *)&psVar1->sy_flags" * (cast_expression "(byte *)&psVar1->sy_flags" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&psVar1->sy_flags" & (field_expression "psVar1->sy_flags" identifier -> field_identifier)))) = (binary_expression "*(byte *)&psVar1->sy_flags | 0x40" (pointer_expression "*(byte *)&psVar1->sy_flags" * (cast_expression "(byte *)&psVar1->sy_flags" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&psVar1->sy_flags" & (field_expression "psVar1->sy_flags" identifier -> field_identifier)))) | number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "s = local_symbol_convert((local_symbol *)s);" (assignment_expression "s = local_symbol_convert((local_symbol *)s)" identifier = (call_expression "local_symbol_convert((local_symbol *)s)" identifier (argument_list "((local_symbol *)s)" ( (cast_expression "(local_symbol *)s" ( (type_descriptor "local_symbol *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) })) (expression_statement "*(byte *)&s->sy_flags = *(byte *)&s->sy_flags | 0x40;" (assignment_expression "*(byte *)&s->sy_flags = *(byte *)&s->sy_flags | 0x40" (pointer_expression "*(byte *)&s->sy_flags" * (cast_expression "(byte *)&s->sy_flags" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&s->sy_flags" & (field_expression "s->sy_flags" identifier -> field_identifier)))) = (binary_expression "*(byte *)&s->sy_flags | 0x40" (pointer_expression "*(byte *)&s->sy_flags" * (cast_expression "(byte *)&s->sy_flags" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&s->sy_flags" & (field_expression "s->sy_flags" identifier -> field_identifier)))) | number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00040b00(byte *param_1)\n\n{\n  if ((*param_1 & 1) != 0) {\n    if (*(int *)(param_1 + 4) == DAT_00081410) {\n      **(byte **)(param_1 + 0xc) = **(byte **)(param_1 + 0xc) | 0x40;\n      return;\n    }\n    param_1 = (byte *)FUN_0003e490();\n  }\n  *param_1 = *param_1 | 0x40;\n  return;\n}\n\n" (function_definition "void FUN_00040b00(byte *param_1)\n\n{\n  if ((*param_1 & 1) != 0) {\n    if (*(int *)(param_1 + 4) == DAT_00081410) {\n      **(byte **)(param_1 + 0xc) = **(byte **)(param_1 + 0xc) | 0x40;\n      return;\n    }\n    param_1 = (byte *)FUN_0003e490();\n  }\n  *param_1 = *param_1 | 0x40;\n  return;\n}" primitive_type (function_declarator "FUN_00040b00(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  if ((*param_1 & 1) != 0) {\n    if (*(int *)(param_1 + 4) == DAT_00081410) {\n      **(byte **)(param_1 + 0xc) = **(byte **)(param_1 + 0xc) | 0x40;\n      return;\n    }\n    param_1 = (byte *)FUN_0003e490();\n  }\n  *param_1 = *param_1 | 0x40;\n  return;\n}" { (if_statement "if ((*param_1 & 1) != 0) {\n    if (*(int *)(param_1 + 4) == DAT_00081410) {\n      **(byte **)(param_1 + 0xc) = **(byte **)(param_1 + 0xc) | 0x40;\n      return;\n    }\n    param_1 = (byte *)FUN_0003e490();\n  }" if (parenthesized_expression "((*param_1 & 1) != 0)" ( (binary_expression "(*param_1 & 1) != 0" (parenthesized_expression "(*param_1 & 1)" ( (binary_expression "*param_1 & 1" (pointer_expression "*param_1" * identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 4) == DAT_00081410) {\n      **(byte **)(param_1 + 0xc) = **(byte **)(param_1 + 0xc) | 0x40;\n      return;\n    }\n    param_1 = (byte *)FUN_0003e490();\n  }" { (if_statement "if (*(int *)(param_1 + 4) == DAT_00081410) {\n      **(byte **)(param_1 + 0xc) = **(byte **)(param_1 + 0xc) | 0x40;\n      return;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 4) == DAT_00081410)" ( (binary_expression "*(int *)(param_1 + 4) == DAT_00081410" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n      **(byte **)(param_1 + 0xc) = **(byte **)(param_1 + 0xc) | 0x40;\n      return;\n    }" { (expression_statement "**(byte **)(param_1 + 0xc) = **(byte **)(param_1 + 0xc) | 0x40;" (assignment_expression "**(byte **)(param_1 + 0xc) = **(byte **)(param_1 + 0xc) | 0x40" (pointer_expression "**(byte **)(param_1 + 0xc)" * (pointer_expression "*(byte **)(param_1 + 0xc)" * (cast_expression "(byte **)(param_1 + 0xc)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) = (binary_expression "**(byte **)(param_1 + 0xc) | 0x40" (pointer_expression "**(byte **)(param_1 + 0xc)" * (pointer_expression "*(byte **)(param_1 + 0xc)" * (cast_expression "(byte **)(param_1 + 0xc)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) | number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "param_1 = (byte *)FUN_0003e490();" (assignment_expression "param_1 = (byte *)FUN_0003e490()" identifier = (cast_expression "(byte *)FUN_0003e490()" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003e490()" identifier (argument_list "()" ( ))))) ;) })) (expression_statement "*param_1 = *param_1 | 0x40;" (assignment_expression "*param_1 = *param_1 | 0x40" (pointer_expression "*param_1" * identifier) = (binary_expression "*param_1 | 0x40" (pointer_expression "*param_1" * identifier) | number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) & LIT) )) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) = (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) | LIT)) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) | LIT)) ;) (return_statement return ;) })))
(function_definition "void FUN_00040b00(byte *param_1)\n\n{\n  if ((*param_1 & 1) != 0) {\n    if (*(int *)(param_1 + 4) == DAT_00081410) {\n      **(byte **)(param_1 + 0xc) = **(byte **)(param_1 + 0xc) | 0x40;\n      return;\n    }\n    param_1 = (byte *)FUN_0003e490();\n  }\n  *param_1 = *param_1 | 0x40;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00040b00(byte *param_1)" (identifier "FUN_00040b00") (parameter_list "(byte *param_1)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  if ((*param_1 & 1) != 0) {\n    if (*(int *)(param_1 + 4) == DAT_00081410) {\n      **(byte **)(param_1 + 0xc) = **(byte **)(param_1 + 0xc) | 0x40;\n      return;\n    }\n    param_1 = (byte *)FUN_0003e490();\n  }\n  *param_1 = *param_1 | 0x40;\n  return;\n}" ({ "{") (if_statement "if ((*param_1 & 1) != 0) {\n    if (*(int *)(param_1 + 4) == DAT_00081410) {\n      **(byte **)(param_1 + 0xc) = **(byte **)(param_1 + 0xc) | 0x40;\n      return;\n    }\n    param_1 = (byte *)FUN_0003e490();\n  }" (if "if") (parenthesized_expression "((*param_1 & 1) != 0)" (( "(") (binary_expression "(*param_1 & 1) != 0" (parenthesized_expression "(*param_1 & 1)" (( "(") (binary_expression "*param_1 & 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (*(int *)(param_1 + 4) == DAT_00081410) {\n      **(byte **)(param_1 + 0xc) = **(byte **)(param_1 + 0xc) | 0x40;\n      return;\n    }\n    param_1 = (byte *)FUN_0003e490();\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 4) == DAT_00081410) {\n      **(byte **)(param_1 + 0xc) = **(byte **)(param_1 + 0xc) | 0x40;\n      return;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 4) == DAT_00081410)" (( "(") (binary_expression "*(int *)(param_1 + 4) == DAT_00081410" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (== "==") (identifier "DAT_00081410")) () ")")) (compound_statement "{\n      **(byte **)(param_1 + 0xc) = **(byte **)(param_1 + 0xc) | 0x40;\n      return;\n    }" ({ "{") (expression_statement "**(byte **)(param_1 + 0xc) = **(byte **)(param_1 + 0xc) | 0x40;" (assignment_expression "**(byte **)(param_1 + 0xc) = **(byte **)(param_1 + 0xc) | 0x40" (pointer_expression "**(byte **)(param_1 + 0xc)" (* "*") (pointer_expression "*(byte **)(param_1 + 0xc)" (* "*") (cast_expression "(byte **)(param_1 + 0xc)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (= "=") (binary_expression "**(byte **)(param_1 + 0xc) | 0x40" (pointer_expression "**(byte **)(param_1 + 0xc)" (* "*") (pointer_expression "*(byte **)(param_1 + 0xc)" (* "*") (cast_expression "(byte **)(param_1 + 0xc)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (| "|") (number_literal "0x40"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "param_1 = (byte *)FUN_0003e490();" (assignment_expression "param_1 = (byte *)FUN_0003e490()" (identifier "param_1") (= "=") (cast_expression "(byte *)FUN_0003e490()" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0003e490()" (identifier "FUN_0003e490") (argument_list "()" (( "(") () ")"))))) (; ";")) (} "}"))) (expression_statement "*param_1 = *param_1 | 0x40;" (assignment_expression "*param_1 = *param_1 | 0x40" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "*param_1 | 0x40" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (| "|") (number_literal "0x40"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

void function_1(type_1 *s)

{
  type_1 *psVar1;
  
  if (((type_2)s->sy_flags & 1) != 0) {
    if ((type_3)s->bsym == var_1) {
      psVar1 = (s->sy_value).X_op_symbol;
      *(type_4 *)&psVar1->sy_flags = *(type_4 *)&psVar1->sy_flags | 0x40;
      return;
    }
    s = var_2((type_5 *)s);
  }
  *(type_4 *)&s->sy_flags = *(type_4 *)&s->sy_flags | 0x40;
  return;
}


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

/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

void MASKED(byte *param_1)

{
  if ((*param_1 & 1) != 0) {
    if (*(int *)(param_1 + 4) == DAT_00081410) {
      **(byte **)(param_1 + 0xc) = **(byte **)(param_1 + 0xc) | 0x40;
      return;
    }
    param_1 = (byte *)FUN_0003e490();
  }
  *param_1 = *param_1 | 0x40;
  return;
}

