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

void S_CLEAR_WEAKREFD(symbolS *s)

{
  byte bVar1;
  uint uVar2;
  
  if (((uint)s->sy_flags & 1) != 0) {
    if ((segT)s->bsym != reg_section) {
      return;
    }
    s = (s->sy_value).X_op_symbol;
  }
  bVar1 = (s->sy_flags).field_0x1;
  if ((bVar1 & 4) != 0) {
    (s->sy_flags).field_0x1 = bVar1 & 0xfb;
    uVar2 = s->bsym->flags;
    if ((uVar2 & 0x80) != 0) {
      s->bsym->flags = uVar2 & 0xffffff7f | 1;
      return;
    }
  }
  return;
}



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

void FUN_00039230(byte *param_1)

{
  uint uVar1;
  
  if ((*param_1 & 1) != 0) {
    if (*(int *)(param_1 + 4) != DAT_00070e90) {
      return;
    }
    param_1 = *(byte **)(param_1 + 0xc);
  }
  if ((param_1[1] & 4) != 0) {
    param_1[1] = param_1[1] & 0xfb;
    uVar1 = *(uint *)(*(int *)(param_1 + 4) + 0x10);
    if ((uVar1 & 0x80) != 0) {
      *(uint *)(*(int *)(param_1 + 4) + 0x10) = uVar1 & 0xffffff7f | 1;
      return;
    }
  }
  return;
}


CALL 0x00015155
ADD EDX,0x2edcb
MOV EAX,dword ptr [ESP + 0x4]
TEST byte ptr [EAX],0x1
JZ 0x0003925b
LEA EDX,[EDX + 0x8e90]
MOV ECX,dword ptr [EDX]
CMP dword ptr [EAX + 0x4],ECX
JZ 0x00039258
RET
MOV EAX,dword ptr [EAX + 0xc]
MOVZX EDX,byte ptr [EAX + 0x1]
TEST DL,0x4
JZ 0x00039251
AND EDX,0xfffffffb
MOV byte ptr [EAX + 0x1],DL
MOV EDX,dword ptr [EAX + 0x4]
MOV EAX,dword ptr [EDX + 0x10]
TEST AL,0x80
JZ 0x00039251
AND AL,0x7f
OR EAX,0x1
MOV dword ptr [EDX + 0x10],EAX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nvoid FUN_00039230(byte *param_1)\n\n{\n  uint uVar1;\n  \n  if ((*param_1 & 1) != 0) {\n    if (*(int *)(param_1 + 4) != DAT_00070e90) {\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0xc);\n  }\n  if ((param_1[1] & 4) != 0) {\n    param_1[1] = param_1[1] & 0xfb;\n    uVar1 = *(uint *)(*(int *)(param_1 + 4) + 0x10);\n    if ((uVar1 & 0x80) != 0) {\n      *(uint *)(*(int *)(param_1 + 4) + 0x10) = uVar1 & 0xffffff7f | 1;\n      return;\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00039230(byte *param_1)\n\n{\n  uint uVar1;\n  \n  if ((*param_1 & 1) != 0) {\n    if (*(int *)(param_1 + 4) != DAT_00070e90) {\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0xc);\n  }\n  if ((param_1[1] & 4) != 0) {\n    param_1[1] = param_1[1] & 0xfb;\n    uVar1 = *(uint *)(*(int *)(param_1 + 4) + 0x10);\n    if ((uVar1 & 0x80) != 0) {\n      *(uint *)(*(int *)(param_1 + 4) + 0x10) = uVar1 & 0xffffff7f | 1;\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00039230(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  \n  if ((*param_1 & 1) != 0) {\n    if (*(int *)(param_1 + 4) != DAT_00070e90) {\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0xc);\n  }\n  if ((param_1[1] & 4) != 0) {\n    param_1[1] = param_1[1] & 0xfb;\n    uVar1 = *(uint *)(*(int *)(param_1 + 4) + 0x10);\n    if ((uVar1 & 0x80) != 0) {\n      *(uint *)(*(int *)(param_1 + 4) + 0x10) = uVar1 & 0xffffff7f | 1;\n      return;\n    }\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (if_statement "if ((*param_1 & 1) != 0) {\n    if (*(int *)(param_1 + 4) != DAT_00070e90) {\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0xc);\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_00070e90) {\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0xc);\n  }" { (if_statement "if (*(int *)(param_1 + 4) != DAT_00070e90) {\n      return;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 4) != DAT_00070e90)" ( (binary_expression "*(int *)(param_1 + 4) != DAT_00070e90" (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      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "param_1 = *(byte **)(param_1 + 0xc);" (assignment_expression "param_1 = *(byte **)(param_1 + 0xc)" identifier = (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) ))))) ;) })) (if_statement "if ((param_1[1] & 4) != 0) {\n    param_1[1] = param_1[1] & 0xfb;\n    uVar1 = *(uint *)(*(int *)(param_1 + 4) + 0x10);\n    if ((uVar1 & 0x80) != 0) {\n      *(uint *)(*(int *)(param_1 + 4) + 0x10) = uVar1 & 0xffffff7f | 1;\n      return;\n    }\n  }" if (parenthesized_expression "((param_1[1] & 4) != 0)" ( (binary_expression "(param_1[1] & 4) != 0" (parenthesized_expression "(param_1[1] & 4)" ( (binary_expression "param_1[1] & 4" (subscript_expression "param_1[1]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (compound_statement "{\n    param_1[1] = param_1[1] & 0xfb;\n    uVar1 = *(uint *)(*(int *)(param_1 + 4) + 0x10);\n    if ((uVar1 & 0x80) != 0) {\n      *(uint *)(*(int *)(param_1 + 4) + 0x10) = uVar1 & 0xffffff7f | 1;\n      return;\n    }\n  }" { (expression_statement "param_1[1] = param_1[1] & 0xfb;" (assignment_expression "param_1[1] = param_1[1] & 0xfb" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "param_1[1] & 0xfb" (subscript_expression "param_1[1]" identifier [ number_literal ]) & number_literal)) ;) (expression_statement "uVar1 = *(uint *)(*(int *)(param_1 + 4) + 0x10);" (assignment_expression "uVar1 = *(uint *)(*(int *)(param_1 + 4) + 0x10)" identifier = (pointer_expression "*(uint *)(*(int *)(param_1 + 4) + 0x10)" * (cast_expression "(uint *)(*(int *)(param_1 + 4) + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 4) + 0x10)" ( (binary_expression "*(int *)(param_1 + 4) + 0x10" (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) )))) + number_literal) ))))) ;) (if_statement "if ((uVar1 & 0x80) != 0) {\n      *(uint *)(*(int *)(param_1 + 4) + 0x10) = uVar1 & 0xffffff7f | 1;\n      return;\n    }" if (parenthesized_expression "((uVar1 & 0x80) != 0)" ( (binary_expression "(uVar1 & 0x80) != 0" (parenthesized_expression "(uVar1 & 0x80)" ( (binary_expression "uVar1 & 0x80" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      *(uint *)(*(int *)(param_1 + 4) + 0x10) = uVar1 & 0xffffff7f | 1;\n      return;\n    }" { (expression_statement "*(uint *)(*(int *)(param_1 + 4) + 0x10) = uVar1 & 0xffffff7f | 1;" (assignment_expression "*(uint *)(*(int *)(param_1 + 4) + 0x10) = uVar1 & 0xffffff7f | 1" (pointer_expression "*(uint *)(*(int *)(param_1 + 4) + 0x10)" * (cast_expression "(uint *)(*(int *)(param_1 + 4) + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 4) + 0x10)" ( (binary_expression "*(int *)(param_1 + 4) + 0x10" (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) )))) + number_literal) )))) = (binary_expression "uVar1 & 0xffffff7f | 1" (binary_expression "uVar1 & 0xffffff7f" identifier & number_literal) | number_literal)) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nvoid S_CLEAR_WEAKREFD(symbolS *s)\n\n{\n  byte bVar1;\n  uint uVar2;\n  \n  if (((uint)s->sy_flags & 1) != 0) {\n    if ((segT)s->bsym != reg_section) {\n      return;\n    }\n    s = (s->sy_value).X_op_symbol;\n  }\n  bVar1 = (s->sy_flags).field_0x1;\n  if ((bVar1 & 4) != 0) {\n    (s->sy_flags).field_0x1 = bVar1 & 0xfb;\n    uVar2 = s->bsym->flags;\n    if ((uVar2 & 0x80) != 0) {\n      s->bsym->flags = uVar2 & 0xffffff7f | 1;\n      return;\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void S_CLEAR_WEAKREFD(symbolS *s)\n\n{\n  byte bVar1;\n  uint uVar2;\n  \n  if (((uint)s->sy_flags & 1) != 0) {\n    if ((segT)s->bsym != reg_section) {\n      return;\n    }\n    s = (s->sy_value).X_op_symbol;\n  }\n  bVar1 = (s->sy_flags).field_0x1;\n  if ((bVar1 & 4) != 0) {\n    (s->sy_flags).field_0x1 = bVar1 & 0xfb;\n    uVar2 = s->bsym->flags;\n    if ((uVar2 & 0x80) != 0) {\n      s->bsym->flags = uVar2 & 0xffffff7f | 1;\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "S_CLEAR_WEAKREFD(symbolS *s)" identifier (parameter_list "(symbolS *s)" ( (parameter_declaration "symbolS *s" type_identifier (pointer_declarator "*s" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  \n  if (((uint)s->sy_flags & 1) != 0) {\n    if ((segT)s->bsym != reg_section) {\n      return;\n    }\n    s = (s->sy_value).X_op_symbol;\n  }\n  bVar1 = (s->sy_flags).field_0x1;\n  if ((bVar1 & 4) != 0) {\n    (s->sy_flags).field_0x1 = bVar1 & 0xfb;\n    uVar2 = s->bsym->flags;\n    if ((uVar2 & 0x80) != 0) {\n      s->bsym->flags = uVar2 & 0xffffff7f | 1;\n      return;\n    }\n  }\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (if_statement "if (((uint)s->sy_flags & 1) != 0) {\n    if ((segT)s->bsym != reg_section) {\n      return;\n    }\n    s = (s->sy_value).X_op_symbol;\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      return;\n    }\n    s = (s->sy_value).X_op_symbol;\n  }" { (if_statement "if ((segT)s->bsym != reg_section) {\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      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "s = (s->sy_value).X_op_symbol;" (assignment_expression "s = (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 "bVar1 = (s->sy_flags).field_0x1;" (assignment_expression "bVar1 = (s->sy_flags).field_0x1" identifier = (field_expression "(s->sy_flags).field_0x1" (parenthesized_expression "(s->sy_flags)" ( (field_expression "s->sy_flags" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if ((bVar1 & 4) != 0) {\n    (s->sy_flags).field_0x1 = bVar1 & 0xfb;\n    uVar2 = s->bsym->flags;\n    if ((uVar2 & 0x80) != 0) {\n      s->bsym->flags = uVar2 & 0xffffff7f | 1;\n      return;\n    }\n  }" if (parenthesized_expression "((bVar1 & 4) != 0)" ( (binary_expression "(bVar1 & 4) != 0" (parenthesized_expression "(bVar1 & 4)" ( (binary_expression "bVar1 & 4" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    (s->sy_flags).field_0x1 = bVar1 & 0xfb;\n    uVar2 = s->bsym->flags;\n    if ((uVar2 & 0x80) != 0) {\n      s->bsym->flags = uVar2 & 0xffffff7f | 1;\n      return;\n    }\n  }" { (expression_statement "(s->sy_flags).field_0x1 = bVar1 & 0xfb;" (assignment_expression "(s->sy_flags).field_0x1 = bVar1 & 0xfb" (field_expression "(s->sy_flags).field_0x1" (parenthesized_expression "(s->sy_flags)" ( (field_expression "s->sy_flags" identifier -> field_identifier) )) . field_identifier) = (binary_expression "bVar1 & 0xfb" identifier & number_literal)) ;) (expression_statement "uVar2 = s->bsym->flags;" (assignment_expression "uVar2 = s->bsym->flags" identifier = (field_expression "s->bsym->flags" (field_expression "s->bsym" identifier -> field_identifier) -> field_identifier)) ;) (if_statement "if ((uVar2 & 0x80) != 0) {\n      s->bsym->flags = uVar2 & 0xffffff7f | 1;\n      return;\n    }" if (parenthesized_expression "((uVar2 & 0x80) != 0)" ( (binary_expression "(uVar2 & 0x80) != 0" (parenthesized_expression "(uVar2 & 0x80)" ( (binary_expression "uVar2 & 0x80" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      s->bsym->flags = uVar2 & 0xffffff7f | 1;\n      return;\n    }" { (expression_statement "s->bsym->flags = uVar2 & 0xffffff7f | 1;" (assignment_expression "s->bsym->flags = uVar2 & 0xffffff7f | 1" (field_expression "s->bsym->flags" (field_expression "s->bsym" identifier -> field_identifier) -> field_identifier) = (binary_expression "uVar2 & 0xffffff7f | 1" (binary_expression "uVar2 & 0xffffff7f" identifier & number_literal) | number_literal)) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00039230(byte *param_1)\n\n{\n  uint uVar1;\n  \n  if ((*param_1 & 1) != 0) {\n    if (*(int *)(param_1 + 4) != DAT_00070e90) {\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0xc);\n  }\n  if ((param_1[1] & 4) != 0) {\n    param_1[1] = param_1[1] & 0xfb;\n    uVar1 = *(uint *)(*(int *)(param_1 + 4) + 0x10);\n    if ((uVar1 & 0x80) != 0) {\n      *(uint *)(*(int *)(param_1 + 4) + 0x10) = uVar1 & 0xffffff7f | 1;\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_00039230(byte *param_1)\n\n{\n  uint uVar1;\n  \n  if ((*param_1 & 1) != 0) {\n    if (*(int *)(param_1 + 4) != DAT_00070e90) {\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0xc);\n  }\n  if ((param_1[1] & 4) != 0) {\n    param_1[1] = param_1[1] & 0xfb;\n    uVar1 = *(uint *)(*(int *)(param_1 + 4) + 0x10);\n    if ((uVar1 & 0x80) != 0) {\n      *(uint *)(*(int *)(param_1 + 4) + 0x10) = uVar1 & 0xffffff7f | 1;\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00039230(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  \n  if ((*param_1 & 1) != 0) {\n    if (*(int *)(param_1 + 4) != DAT_00070e90) {\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0xc);\n  }\n  if ((param_1[1] & 4) != 0) {\n    param_1[1] = param_1[1] & 0xfb;\n    uVar1 = *(uint *)(*(int *)(param_1 + 4) + 0x10);\n    if ((uVar1 & 0x80) != 0) {\n      *(uint *)(*(int *)(param_1 + 4) + 0x10) = uVar1 & 0xffffff7f | 1;\n      return;\n    }\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (if_statement "if ((*param_1 & 1) != 0) {\n    if (*(int *)(param_1 + 4) != DAT_00070e90) {\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0xc);\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_00070e90) {\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0xc);\n  }" { (if_statement "if (*(int *)(param_1 + 4) != DAT_00070e90) {\n      return;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 4) != DAT_00070e90)" ( (binary_expression "*(int *)(param_1 + 4) != DAT_00070e90" (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      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "param_1 = *(byte **)(param_1 + 0xc);" (assignment_expression "param_1 = *(byte **)(param_1 + 0xc)" identifier = (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) ))))) ;) })) (if_statement "if ((param_1[1] & 4) != 0) {\n    param_1[1] = param_1[1] & 0xfb;\n    uVar1 = *(uint *)(*(int *)(param_1 + 4) + 0x10);\n    if ((uVar1 & 0x80) != 0) {\n      *(uint *)(*(int *)(param_1 + 4) + 0x10) = uVar1 & 0xffffff7f | 1;\n      return;\n    }\n  }" if (parenthesized_expression "((param_1[1] & 4) != 0)" ( (binary_expression "(param_1[1] & 4) != 0" (parenthesized_expression "(param_1[1] & 4)" ( (binary_expression "param_1[1] & 4" (subscript_expression "param_1[1]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (compound_statement "{\n    param_1[1] = param_1[1] & 0xfb;\n    uVar1 = *(uint *)(*(int *)(param_1 + 4) + 0x10);\n    if ((uVar1 & 0x80) != 0) {\n      *(uint *)(*(int *)(param_1 + 4) + 0x10) = uVar1 & 0xffffff7f | 1;\n      return;\n    }\n  }" { (expression_statement "param_1[1] = param_1[1] & 0xfb;" (assignment_expression "param_1[1] = param_1[1] & 0xfb" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "param_1[1] & 0xfb" (subscript_expression "param_1[1]" identifier [ number_literal ]) & number_literal)) ;) (expression_statement "uVar1 = *(uint *)(*(int *)(param_1 + 4) + 0x10);" (assignment_expression "uVar1 = *(uint *)(*(int *)(param_1 + 4) + 0x10)" identifier = (pointer_expression "*(uint *)(*(int *)(param_1 + 4) + 0x10)" * (cast_expression "(uint *)(*(int *)(param_1 + 4) + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 4) + 0x10)" ( (binary_expression "*(int *)(param_1 + 4) + 0x10" (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) )))) + number_literal) ))))) ;) (if_statement "if ((uVar1 & 0x80) != 0) {\n      *(uint *)(*(int *)(param_1 + 4) + 0x10) = uVar1 & 0xffffff7f | 1;\n      return;\n    }" if (parenthesized_expression "((uVar1 & 0x80) != 0)" ( (binary_expression "(uVar1 & 0x80) != 0" (parenthesized_expression "(uVar1 & 0x80)" ( (binary_expression "uVar1 & 0x80" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      *(uint *)(*(int *)(param_1 + 4) + 0x10) = uVar1 & 0xffffff7f | 1;\n      return;\n    }" { (expression_statement "*(uint *)(*(int *)(param_1 + 4) + 0x10) = uVar1 & 0xffffff7f | 1;" (assignment_expression "*(uint *)(*(int *)(param_1 + 4) + 0x10) = uVar1 & 0xffffff7f | 1" (pointer_expression "*(uint *)(*(int *)(param_1 + 4) + 0x10)" * (cast_expression "(uint *)(*(int *)(param_1 + 4) + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 4) + 0x10)" ( (binary_expression "*(int *)(param_1 + 4) + 0x10" (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) )))) + number_literal) )))) = (binary_expression "uVar1 & 0xffffff7f | 1" (binary_expression "uVar1 & 0xffffff7f" identifier & number_literal) | number_literal)) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (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 { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) & LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) = (binary_expression (binary_expression IDENT & LIT) | LIT)) ;) (return_statement return ;) })) })) (return_statement return ;) })))
(function_definition "void FUN_00039230(byte *param_1)\n\n{\n  uint uVar1;\n  \n  if ((*param_1 & 1) != 0) {\n    if (*(int *)(param_1 + 4) != DAT_00070e90) {\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0xc);\n  }\n  if ((param_1[1] & 4) != 0) {\n    param_1[1] = param_1[1] & 0xfb;\n    uVar1 = *(uint *)(*(int *)(param_1 + 4) + 0x10);\n    if ((uVar1 & 0x80) != 0) {\n      *(uint *)(*(int *)(param_1 + 4) + 0x10) = uVar1 & 0xffffff7f | 1;\n      return;\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00039230(byte *param_1)" (identifier "FUN_00039230") (parameter_list "(byte *param_1)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  \n  if ((*param_1 & 1) != 0) {\n    if (*(int *)(param_1 + 4) != DAT_00070e90) {\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0xc);\n  }\n  if ((param_1[1] & 4) != 0) {\n    param_1[1] = param_1[1] & 0xfb;\n    uVar1 = *(uint *)(*(int *)(param_1 + 4) + 0x10);\n    if ((uVar1 & 0x80) != 0) {\n      *(uint *)(*(int *)(param_1 + 4) + 0x10) = uVar1 & 0xffffff7f | 1;\n      return;\n    }\n  }\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (if_statement "if ((*param_1 & 1) != 0) {\n    if (*(int *)(param_1 + 4) != DAT_00070e90) {\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0xc);\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_00070e90) {\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0xc);\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 4) != DAT_00070e90) {\n      return;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 4) != DAT_00070e90)" (( "(") (binary_expression "*(int *)(param_1 + 4) != DAT_00070e90" (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_00070e90")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "param_1 = *(byte **)(param_1 + 0xc);" (assignment_expression "param_1 = *(byte **)(param_1 + 0xc)" (identifier "param_1") (= "=") (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")) () ")"))))) (; ";")) (} "}"))) (if_statement "if ((param_1[1] & 4) != 0) {\n    param_1[1] = param_1[1] & 0xfb;\n    uVar1 = *(uint *)(*(int *)(param_1 + 4) + 0x10);\n    if ((uVar1 & 0x80) != 0) {\n      *(uint *)(*(int *)(param_1 + 4) + 0x10) = uVar1 & 0xffffff7f | 1;\n      return;\n    }\n  }" (if "if") (parenthesized_expression "((param_1[1] & 4) != 0)" (( "(") (binary_expression "(param_1[1] & 4) != 0" (parenthesized_expression "(param_1[1] & 4)" (( "(") (binary_expression "param_1[1] & 4" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    param_1[1] = param_1[1] & 0xfb;\n    uVar1 = *(uint *)(*(int *)(param_1 + 4) + 0x10);\n    if ((uVar1 & 0x80) != 0) {\n      *(uint *)(*(int *)(param_1 + 4) + 0x10) = uVar1 & 0xffffff7f | 1;\n      return;\n    }\n  }" ({ "{") (expression_statement "param_1[1] = param_1[1] & 0xfb;" (assignment_expression "param_1[1] = param_1[1] & 0xfb" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "param_1[1] & 0xfb" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (& "&") (number_literal "0xfb"))) (; ";")) (expression_statement "uVar1 = *(uint *)(*(int *)(param_1 + 4) + 0x10);" (assignment_expression "uVar1 = *(uint *)(*(int *)(param_1 + 4) + 0x10)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(*(int *)(param_1 + 4) + 0x10)" (* "*") (cast_expression "(uint *)(*(int *)(param_1 + 4) + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 4) + 0x10)" (( "(") (binary_expression "*(int *)(param_1 + 4) + 0x10" (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")) () ")")))) (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (if_statement "if ((uVar1 & 0x80) != 0) {\n      *(uint *)(*(int *)(param_1 + 4) + 0x10) = uVar1 & 0xffffff7f | 1;\n      return;\n    }" (if "if") (parenthesized_expression "((uVar1 & 0x80) != 0)" (( "(") (binary_expression "(uVar1 & 0x80) != 0" (parenthesized_expression "(uVar1 & 0x80)" (( "(") (binary_expression "uVar1 & 0x80" (identifier "uVar1") (& "&") (number_literal "0x80")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *(uint *)(*(int *)(param_1 + 4) + 0x10) = uVar1 & 0xffffff7f | 1;\n      return;\n    }" ({ "{") (expression_statement "*(uint *)(*(int *)(param_1 + 4) + 0x10) = uVar1 & 0xffffff7f | 1;" (assignment_expression "*(uint *)(*(int *)(param_1 + 4) + 0x10) = uVar1 & 0xffffff7f | 1" (pointer_expression "*(uint *)(*(int *)(param_1 + 4) + 0x10)" (* "*") (cast_expression "(uint *)(*(int *)(param_1 + 4) + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 4) + 0x10)" (( "(") (binary_expression "*(int *)(param_1 + 4) + 0x10" (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")) () ")")))) (+ "+") (number_literal "0x10")) () ")")))) (= "=") (binary_expression "uVar1 & 0xffffff7f | 1" (binary_expression "uVar1 & 0xffffff7f" (identifier "uVar1") (& "&") (number_literal "0xffffff7f")) (| "|") (number_literal "1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (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_2 var_2;
  type_3 var_3;
  
  if (((type_3)s->sy_flags & 1) != 0) {
    if ((type_4)s->bsym != var_1) {
      return;
    }
    s = (s->sy_value).X_op_symbol;
  }
  var_2 = (s->sy_flags).field_0x1;
  if ((var_2 & 4) != 0) {
    (s->sy_flags).field_0x1 = var_2 & 0xfb;
    var_3 = s->bsym->flags;
    if ((var_3 & 0x80) != 0) {
      s->bsym->flags = var_3 & 0xffffff7f | 1;
      return;
    }
  }
  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 (declaration type: (type_identifier) declarator: (identifier)) (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 (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (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))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (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: (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: (number_literal))))) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))) (return_statement))))) (return_statement))))

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

void MASKED(byte *param_1)

{
  uint uVar1;
  
  if ((*param_1 & 1) != 0) {
    if (*(int *)(param_1 + 4) != DAT_00070e90) {
      return;
    }
    param_1 = *(byte **)(param_1 + 0xc);
  }
  if ((param_1[1] & 4) != 0) {
    param_1[1] = param_1[1] & 0xfb;
    uVar1 = *(uint *)(*(int *)(param_1 + 4) + 0x10);
    if ((uVar1 & 0x80) != 0) {
      *(uint *)(*(int *)(param_1 + 4) + 0x10) = uVar1 & 0xffffff7f | 1;
      return;
    }
  }
  return;
}

