
/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

void symbol_set_bfdsym(symbolS *s,asymbol *bsym)

{
  segT paVar1;
  
  paVar1 = (segT)s->bsym;
  if (((uint)s->sy_flags & 1) != 0) {
    if (reg_section == paVar1) {
      s = (s->sy_value).X_op_symbol;
      paVar1 = (segT)s->bsym;
    }
    else {
      s = local_symbol_convert((local_symbol *)s);
      paVar1 = (segT)s->bsym;
    }
  }
  if (((uint)paVar1->prev & 0x100) == 0) {
    s->bsym = bsym;
  }
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

void FUN_0003be40(byte *param_1,undefined4 param_2)

{
  int iVar1;
  
  iVar1 = *(int *)(param_1 + 4);
  if ((*param_1 & 1) != 0) {
    if (DAT_000897ec == iVar1) {
      param_1 = *(byte **)(param_1 + 0xc);
      iVar1 = *(int *)(param_1 + 4);
    }
    else {
      param_1 = (byte *)FUN_00038d80();
      iVar1 = *(int *)(param_1 + 4);
    }
  }
  if ((*(byte *)(iVar1 + 0x11) & 1) == 0) {
    *(undefined4 *)(param_1 + 4) = param_2;
  }
  return;
}


CALL 0x00019a25
ADD ECX,0x441bb
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [EAX + 0x4]
TEST byte ptr [EAX],0x1
JZ 0x0003be6c
LEA ECX,[ECX + 0x97ec]
CMP dword ptr [ECX],EDX
JZ 0x0003be80
CALL 0x00038d80
MOV EDX,dword ptr [EAX + 0x4]
TEST byte ptr [EDX + 0x11],0x1
JNZ 0x0003be79
MOV EDX,dword ptr [ESP + 0x14]
MOV dword ptr [EAX + 0x4],EDX
ADD ESP,0xc
RET
MOV EAX,dword ptr [EAX + 0xc]
MOV EDX,dword ptr [EAX + 0x4]
JMP 0x0003be6c
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n\nvoid FUN_0003be40(byte *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if ((*param_1 & 1) != 0) {\n    if (DAT_000897ec == iVar1) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\n    }\n    else {\n      param_1 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_1 + 4);\n    }\n  }\n  if ((*(byte *)(iVar1 + 0x11) & 1) == 0) {\n    *(undefined4 *)(param_1 + 4) = param_2;\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_0003be40(byte *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if ((*param_1 & 1) != 0) {\n    if (DAT_000897ec == iVar1) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\n    }\n    else {\n      param_1 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_1 + 4);\n    }\n  }\n  if ((*(byte *)(iVar1 + 0x11) & 1) == 0) {\n    *(undefined4 *)(param_1 + 4) = param_2;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0003be40(byte *param_1,undefined4 param_2)" identifier (parameter_list "(byte *param_1,undefined4 param_2)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if ((*param_1 & 1) != 0) {\n    if (DAT_000897ec == iVar1) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\n    }\n    else {\n      param_1 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_1 + 4);\n    }\n  }\n  if ((*(byte *)(iVar1 + 0x11) & 1) == 0) {\n    *(undefined4 *)(param_1 + 4) = param_2;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" identifier = (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) ))))) ;) (if_statement "if ((*param_1 & 1) != 0) {\n    if (DAT_000897ec == iVar1) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\n    }\n    else {\n      param_1 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_1 + 4);\n    }\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 (DAT_000897ec == iVar1) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\n    }\n    else {\n      param_1 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_1 + 4);\n    }\n  }" { (if_statement "if (DAT_000897ec == iVar1) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\n    }\n    else {\n      param_1 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_1 + 4);\n    }" if (parenthesized_expression "(DAT_000897ec == iVar1)" ( (binary_expression "DAT_000897ec == iVar1" identifier == identifier) )) (compound_statement "{\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\n    }" { (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) ))))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" identifier = (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) ))))) ;) }) (else_clause "else {\n      param_1 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_1 + 4);\n    }" else (compound_statement "{\n      param_1 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_1 + 4);\n    }" { (expression_statement "param_1 = (byte *)FUN_00038d80();" (assignment_expression "param_1 = (byte *)FUN_00038d80()" identifier = (cast_expression "(byte *)FUN_00038d80()" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00038d80()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" identifier = (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) ))))) ;) }))) })) (if_statement "if ((*(byte *)(iVar1 + 0x11) & 1) == 0) {\n    *(undefined4 *)(param_1 + 4) = param_2;\n  }" if (parenthesized_expression "((*(byte *)(iVar1 + 0x11) & 1) == 0)" ( (binary_expression "(*(byte *)(iVar1 + 0x11) & 1) == 0" (parenthesized_expression "(*(byte *)(iVar1 + 0x11) & 1)" ( (binary_expression "*(byte *)(iVar1 + 0x11) & 1" (pointer_expression "*(byte *)(iVar1 + 0x11)" * (cast_expression "(byte *)(iVar1 + 0x11)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x11)" ( (binary_expression "iVar1 + 0x11" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 4) = param_2;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 4) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 4) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n\nvoid symbol_set_bfdsym(symbolS *s,asymbol *bsym)\n\n{\n  segT paVar1;\n  \n  paVar1 = (segT)s->bsym;\n  if (((uint)s->sy_flags & 1) != 0) {\n    if (reg_section == paVar1) {\n      s = (s->sy_value).X_op_symbol;\n      paVar1 = (segT)s->bsym;\n    }\n    else {\n      s = local_symbol_convert((local_symbol *)s);\n      paVar1 = (segT)s->bsym;\n    }\n  }\n  if (((uint)paVar1->prev & 0x100) == 0) {\n    s->bsym = bsym;\n  }\n  return;\n}\n\n" comment (function_definition "void symbol_set_bfdsym(symbolS *s,asymbol *bsym)\n\n{\n  segT paVar1;\n  \n  paVar1 = (segT)s->bsym;\n  if (((uint)s->sy_flags & 1) != 0) {\n    if (reg_section == paVar1) {\n      s = (s->sy_value).X_op_symbol;\n      paVar1 = (segT)s->bsym;\n    }\n    else {\n      s = local_symbol_convert((local_symbol *)s);\n      paVar1 = (segT)s->bsym;\n    }\n  }\n  if (((uint)paVar1->prev & 0x100) == 0) {\n    s->bsym = bsym;\n  }\n  return;\n}" primitive_type (function_declarator "symbol_set_bfdsym(symbolS *s,asymbol *bsym)" identifier (parameter_list "(symbolS *s,asymbol *bsym)" ( (parameter_declaration "symbolS *s" type_identifier (pointer_declarator "*s" * identifier)) , (parameter_declaration "asymbol *bsym" type_identifier (pointer_declarator "*bsym" * identifier)) ))) (compound_statement "{\n  segT paVar1;\n  \n  paVar1 = (segT)s->bsym;\n  if (((uint)s->sy_flags & 1) != 0) {\n    if (reg_section == paVar1) {\n      s = (s->sy_value).X_op_symbol;\n      paVar1 = (segT)s->bsym;\n    }\n    else {\n      s = local_symbol_convert((local_symbol *)s);\n      paVar1 = (segT)s->bsym;\n    }\n  }\n  if (((uint)paVar1->prev & 0x100) == 0) {\n    s->bsym = bsym;\n  }\n  return;\n}" { (declaration "segT paVar1;" type_identifier identifier ;) (expression_statement "paVar1 = (segT)s->bsym;" (assignment_expression "paVar1 = (segT)s->bsym" identifier = (cast_expression "(segT)s->bsym" ( (type_descriptor "segT" type_identifier) ) (field_expression "s->bsym" identifier -> field_identifier))) ;) (if_statement "if (((uint)s->sy_flags & 1) != 0) {\n    if (reg_section == paVar1) {\n      s = (s->sy_value).X_op_symbol;\n      paVar1 = (segT)s->bsym;\n    }\n    else {\n      s = local_symbol_convert((local_symbol *)s);\n      paVar1 = (segT)s->bsym;\n    }\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 (reg_section == paVar1) {\n      s = (s->sy_value).X_op_symbol;\n      paVar1 = (segT)s->bsym;\n    }\n    else {\n      s = local_symbol_convert((local_symbol *)s);\n      paVar1 = (segT)s->bsym;\n    }\n  }" { (if_statement "if (reg_section == paVar1) {\n      s = (s->sy_value).X_op_symbol;\n      paVar1 = (segT)s->bsym;\n    }\n    else {\n      s = local_symbol_convert((local_symbol *)s);\n      paVar1 = (segT)s->bsym;\n    }" if (parenthesized_expression "(reg_section == paVar1)" ( (binary_expression "reg_section == paVar1" identifier == identifier) )) (compound_statement "{\n      s = (s->sy_value).X_op_symbol;\n      paVar1 = (segT)s->bsym;\n    }" { (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 "paVar1 = (segT)s->bsym;" (assignment_expression "paVar1 = (segT)s->bsym" identifier = (cast_expression "(segT)s->bsym" ( (type_descriptor "segT" type_identifier) ) (field_expression "s->bsym" identifier -> field_identifier))) ;) }) (else_clause "else {\n      s = local_symbol_convert((local_symbol *)s);\n      paVar1 = (segT)s->bsym;\n    }" else (compound_statement "{\n      s = local_symbol_convert((local_symbol *)s);\n      paVar1 = (segT)s->bsym;\n    }" { (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 "paVar1 = (segT)s->bsym;" (assignment_expression "paVar1 = (segT)s->bsym" identifier = (cast_expression "(segT)s->bsym" ( (type_descriptor "segT" type_identifier) ) (field_expression "s->bsym" identifier -> field_identifier))) ;) }))) })) (if_statement "if (((uint)paVar1->prev & 0x100) == 0) {\n    s->bsym = bsym;\n  }" if (parenthesized_expression "(((uint)paVar1->prev & 0x100) == 0)" ( (binary_expression "((uint)paVar1->prev & 0x100) == 0" (parenthesized_expression "((uint)paVar1->prev & 0x100)" ( (binary_expression "(uint)paVar1->prev & 0x100" (cast_expression "(uint)paVar1->prev" ( (type_descriptor "uint" type_identifier) ) (field_expression "paVar1->prev" identifier -> field_identifier)) & number_literal) )) == number_literal) )) (compound_statement "{\n    s->bsym = bsym;\n  }" { (expression_statement "s->bsym = bsym;" (assignment_expression "s->bsym = bsym" (field_expression "s->bsym" identifier -> field_identifier) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0003be40(byte *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if ((*param_1 & 1) != 0) {\n    if (DAT_000897ec == iVar1) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\n    }\n    else {\n      param_1 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_1 + 4);\n    }\n  }\n  if ((*(byte *)(iVar1 + 0x11) & 1) == 0) {\n    *(undefined4 *)(param_1 + 4) = param_2;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0003be40(byte *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if ((*param_1 & 1) != 0) {\n    if (DAT_000897ec == iVar1) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\n    }\n    else {\n      param_1 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_1 + 4);\n    }\n  }\n  if ((*(byte *)(iVar1 + 0x11) & 1) == 0) {\n    *(undefined4 *)(param_1 + 4) = param_2;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0003be40(byte *param_1,undefined4 param_2)" identifier (parameter_list "(byte *param_1,undefined4 param_2)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if ((*param_1 & 1) != 0) {\n    if (DAT_000897ec == iVar1) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\n    }\n    else {\n      param_1 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_1 + 4);\n    }\n  }\n  if ((*(byte *)(iVar1 + 0x11) & 1) == 0) {\n    *(undefined4 *)(param_1 + 4) = param_2;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" identifier = (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) ))))) ;) (if_statement "if ((*param_1 & 1) != 0) {\n    if (DAT_000897ec == iVar1) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\n    }\n    else {\n      param_1 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_1 + 4);\n    }\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 (DAT_000897ec == iVar1) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\n    }\n    else {\n      param_1 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_1 + 4);\n    }\n  }" { (if_statement "if (DAT_000897ec == iVar1) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\n    }\n    else {\n      param_1 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_1 + 4);\n    }" if (parenthesized_expression "(DAT_000897ec == iVar1)" ( (binary_expression "DAT_000897ec == iVar1" identifier == identifier) )) (compound_statement "{\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\n    }" { (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) ))))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" identifier = (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) ))))) ;) }) (else_clause "else {\n      param_1 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_1 + 4);\n    }" else (compound_statement "{\n      param_1 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_1 + 4);\n    }" { (expression_statement "param_1 = (byte *)FUN_00038d80();" (assignment_expression "param_1 = (byte *)FUN_00038d80()" identifier = (cast_expression "(byte *)FUN_00038d80()" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00038d80()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" identifier = (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) ))))) ;) }))) })) (if_statement "if ((*(byte *)(iVar1 + 0x11) & 1) == 0) {\n    *(undefined4 *)(param_1 + 4) = param_2;\n  }" if (parenthesized_expression "((*(byte *)(iVar1 + 0x11) & 1) == 0)" ( (binary_expression "(*(byte *)(iVar1 + 0x11) & 1) == 0" (parenthesized_expression "(*(byte *)(iVar1 + 0x11) & 1)" ( (binary_expression "*(byte *)(iVar1 + 0x11) & 1" (pointer_expression "*(byte *)(iVar1 + 0x11)" * (cast_expression "(byte *)(iVar1 + 0x11)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x11)" ( (binary_expression "iVar1 + 0x11" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 4) = param_2;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 4) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 4) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (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 IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0003be40(byte *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if ((*param_1 & 1) != 0) {\n    if (DAT_000897ec == iVar1) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\n    }\n    else {\n      param_1 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_1 + 4);\n    }\n  }\n  if ((*(byte *)(iVar1 + 0x11) & 1) == 0) {\n    *(undefined4 *)(param_1 + 4) = param_2;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0003be40(byte *param_1,undefined4 param_2)" (identifier "FUN_0003be40") (parameter_list "(byte *param_1,undefined4 param_2)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if ((*param_1 & 1) != 0) {\n    if (DAT_000897ec == iVar1) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\n    }\n    else {\n      param_1 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_1 + 4);\n    }\n  }\n  if ((*(byte *)(iVar1 + 0x11) & 1) == 0) {\n    *(undefined4 *)(param_1 + 4) = param_2;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" (identifier "iVar1") (= "=") (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")) () ")"))))) (; ";")) (if_statement "if ((*param_1 & 1) != 0) {\n    if (DAT_000897ec == iVar1) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\n    }\n    else {\n      param_1 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_1 + 4);\n    }\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 (DAT_000897ec == iVar1) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\n    }\n    else {\n      param_1 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_1 + 4);\n    }\n  }" ({ "{") (if_statement "if (DAT_000897ec == iVar1) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\n    }\n    else {\n      param_1 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_1 + 4);\n    }" (if "if") (parenthesized_expression "(DAT_000897ec == iVar1)" (( "(") (binary_expression "DAT_000897ec == iVar1" (identifier "DAT_000897ec") (== "==") (identifier "iVar1")) () ")")) (compound_statement "{\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\n    }" ({ "{") (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")) () ")"))))) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" (identifier "iVar1") (= "=") (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")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n      param_1 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_1 + 4);\n    }" (else "else") (compound_statement "{\n      param_1 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_1 + 4);\n    }" ({ "{") (expression_statement "param_1 = (byte *)FUN_00038d80();" (assignment_expression "param_1 = (byte *)FUN_00038d80()" (identifier "param_1") (= "=") (cast_expression "(byte *)FUN_00038d80()" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00038d80()" (identifier "FUN_00038d80") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" (identifier "iVar1") (= "=") (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")) () ")"))))) (; ";")) (} "}")))) (} "}"))) (if_statement "if ((*(byte *)(iVar1 + 0x11) & 1) == 0) {\n    *(undefined4 *)(param_1 + 4) = param_2;\n  }" (if "if") (parenthesized_expression "((*(byte *)(iVar1 + 0x11) & 1) == 0)" (( "(") (binary_expression "(*(byte *)(iVar1 + 0x11) & 1) == 0" (parenthesized_expression "(*(byte *)(iVar1 + 0x11) & 1)" (( "(") (binary_expression "*(byte *)(iVar1 + 0x11) & 1" (pointer_expression "*(byte *)(iVar1 + 0x11)" (* "*") (cast_expression "(byte *)(iVar1 + 0x11)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x11)" (( "(") (binary_expression "iVar1 + 0x11" (identifier "iVar1") (+ "+") (number_literal "0x11")) () ")")))) (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined4 *)(param_1 + 4) = param_2;\n  }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 4) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 4) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

void function_1(type_1 *s,type_2 *bsym)

{
  type_3 var_2;
  
  var_2 = (type_3)s->bsym;
  if (((type_4)s->sy_flags & 1) != 0) {
    if (var_1 == var_2) {
      s = (s->sy_value).X_op_symbol;
      var_2 = (type_3)s->bsym;
    }
    else {
      s = var_3((type_5 *)s);
      var_2 = (type_3)s->bsym;
    }
  }
  if (((type_4)var_2->prev & 0x100) == 0) {
    s->bsym = bsym;
  }
  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))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (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: (identifier) right: (identifier))) consequence: (compound_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))))))) (expression_statement (assignment_expression left: (identifier) right: (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)))))))) alternative: (else_clause (compound_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: (identifier) right: (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)))))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (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))) 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: (identifier) right: (number_literal))))) right: (identifier))))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

void MASKED(byte *param_1,undefined4 param_2)

{
  int iVar1;
  
  iVar1 = *(int *)(param_1 + 4);
  if ((*param_1 & 1) != 0) {
    if (DAT_000897ec == iVar1) {
      param_1 = *(byte **)(param_1 + 0xc);
      iVar1 = *(int *)(param_1 + 4);
    }
    else {
      param_1 = (byte *)FUN_00038d80();
      iVar1 = *(int *)(param_1 + 4);
    }
  }
  if ((*(byte *)(iVar1 + 0x11) & 1) == 0) {
    *(undefined4 *)(param_1 + 4) = param_2;
  }
  return;
}

