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

int S_FORCE_RELOC(symbolS *s,int strict)

{
  uint uVar1;
  segT paVar2;
  
  paVar2 = (segT)s->bsym;
  if (((uint)s->sy_flags & 1) != 0) {
    if (reg_section != paVar2) goto LAB_00038742;
    paVar2 = (segT)((s->sy_value).X_op_symbol)->bsym;
  }
  if ((strict != 0) && (((uint)paVar2->prev & 0x82) != 0)) {
    return 1;
  }
  if (((uint)paVar2->prev & 0x400000) != 0) {
    return 1;
  }
  paVar2 = (segT)paVar2->flags;
LAB_00038742:
  uVar1 = 1;
  if (paVar2 != (segT)(PTR__bfd_std_section_0007ffb0 + 0xc0)) {
    uVar1 = paVar2->flags >> 0xc & 1;
  }
  return uVar1;
}



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

uint FUN_00038720(byte *param_1,int param_2)

{
  uint uVar1;
  undefined *puVar2;
  
  puVar2 = *(undefined **)(param_1 + 4);
  if ((*param_1 & 1) != 0) {
    if (DAT_000897ec != puVar2) goto LAB_00038742;
    puVar2 = *(undefined **)(*(int *)(param_1 + 0xc) + 4);
  }
  if ((param_2 != 0) && ((*(uint *)(puVar2 + 0x10) & 0x82) != 0)) {
    return 1;
  }
  if ((*(uint *)(puVar2 + 0x10) & 0x400000) != 0) {
    return 1;
  }
  puVar2 = *(undefined **)(puVar2 + 0x14);
LAB_00038742:
  uVar1 = 1;
  if (puVar2 != PTR__bfd_std_section_0007ffb0 + 0xc0) {
    uVar1 = *(uint *)(puVar2 + 0x14) >> 0xc & 1;
  }
  return uVar1;
}


CALL 0x00019a25
ADD ECX,0x478db
PUSH EBX
MOV EAX,dword ptr [ESP + 0x8]
MOV EDX,dword ptr [EAX + 0x4]
TEST byte ptr [EAX],0x1
JZ 0x0003876e
LEA EBX,[ECX + 0x97ec]
CMP dword ptr [EBX],EDX
JZ 0x00038768
MOV ECX,dword ptr [ECX + 0xffffffb0]
MOV EAX,0x1
ADD ECX,0xc0
CMP EDX,ECX
JZ 0x00038760
MOV EAX,dword ptr [EDX + 0x14]
SHR EAX,0xc
AND EAX,0x1
POP EBX
RET
MOV EAX,dword ptr [EAX + 0xc]
MOV EDX,dword ptr [EAX + 0x4]
MOV EAX,dword ptr [ESP + 0xc]
MOV EBX,dword ptr [EDX + 0x10]
TEST EAX,EAX
JZ 0x00038783
MOV EAX,0x1
TEST BL,0x82
JNZ 0x00038760
AND EBX,0x400000
MOV EAX,0x1
JNZ 0x00038760
MOV EDX,dword ptr [EDX + 0x14]
JMP 0x00038742
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n\nuint FUN_00038720(byte *param_1,int param_2)\n\n{\n  uint uVar1;\n  undefined *puVar2;\n  \n  puVar2 = *(undefined **)(param_1 + 4);\n  if ((*param_1 & 1) != 0) {\n    if (DAT_000897ec != puVar2) goto LAB_00038742;\n    puVar2 = *(undefined **)(*(int *)(param_1 + 0xc) + 4);\n  }\n  if ((param_2 != 0) && ((*(uint *)(puVar2 + 0x10) & 0x82) != 0)) {\n    return 1;\n  }\n  if ((*(uint *)(puVar2 + 0x10) & 0x400000) != 0) {\n    return 1;\n  }\n  puVar2 = *(undefined **)(puVar2 + 0x14);\nLAB_00038742:\n  uVar1 = 1;\n  if (puVar2 != PTR__bfd_std_section_0007ffb0 + 0xc0) {\n    uVar1 = *(uint *)(puVar2 + 0x14) >> 0xc & 1;\n  }\n  return uVar1;\n}\n\n" comment (function_definition "uint FUN_00038720(byte *param_1,int param_2)\n\n{\n  uint uVar1;\n  undefined *puVar2;\n  \n  puVar2 = *(undefined **)(param_1 + 4);\n  if ((*param_1 & 1) != 0) {\n    if (DAT_000897ec != puVar2) goto LAB_00038742;\n    puVar2 = *(undefined **)(*(int *)(param_1 + 0xc) + 4);\n  }\n  if ((param_2 != 0) && ((*(uint *)(puVar2 + 0x10) & 0x82) != 0)) {\n    return 1;\n  }\n  if ((*(uint *)(puVar2 + 0x10) & 0x400000) != 0) {\n    return 1;\n  }\n  puVar2 = *(undefined **)(puVar2 + 0x14);\nLAB_00038742:\n  uVar1 = 1;\n  if (puVar2 != PTR__bfd_std_section_0007ffb0 + 0xc0) {\n    uVar1 = *(uint *)(puVar2 + 0x14) >> 0xc & 1;\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_00038720(byte *param_1,int param_2)" identifier (parameter_list "(byte *param_1,int param_2)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  undefined *puVar2;\n  \n  puVar2 = *(undefined **)(param_1 + 4);\n  if ((*param_1 & 1) != 0) {\n    if (DAT_000897ec != puVar2) goto LAB_00038742;\n    puVar2 = *(undefined **)(*(int *)(param_1 + 0xc) + 4);\n  }\n  if ((param_2 != 0) && ((*(uint *)(puVar2 + 0x10) & 0x82) != 0)) {\n    return 1;\n  }\n  if ((*(uint *)(puVar2 + 0x10) & 0x400000) != 0) {\n    return 1;\n  }\n  puVar2 = *(undefined **)(puVar2 + 0x14);\nLAB_00038742:\n  uVar1 = 1;\n  if (puVar2 != PTR__bfd_std_section_0007ffb0 + 0xc0) {\n    uVar1 = *(uint *)(puVar2 + 0x14) >> 0xc & 1;\n  }\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "puVar2 = *(undefined **)(param_1 + 4);" (assignment_expression "puVar2 = *(undefined **)(param_1 + 4)" identifier = (pointer_expression "*(undefined **)(param_1 + 4)" * (cast_expression "(undefined **)(param_1 + 4)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (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 != puVar2) goto LAB_00038742;\n    puVar2 = *(undefined **)(*(int *)(param_1 + 0xc) + 4);\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 != puVar2) goto LAB_00038742;\n    puVar2 = *(undefined **)(*(int *)(param_1 + 0xc) + 4);\n  }" { (if_statement "if (DAT_000897ec != puVar2) goto LAB_00038742;" if (parenthesized_expression "(DAT_000897ec != puVar2)" ( (binary_expression "DAT_000897ec != puVar2" identifier != identifier) )) (goto_statement "goto LAB_00038742;" goto statement_identifier ;)) (expression_statement "puVar2 = *(undefined **)(*(int *)(param_1 + 0xc) + 4);" (assignment_expression "puVar2 = *(undefined **)(*(int *)(param_1 + 0xc) + 4)" identifier = (pointer_expression "*(undefined **)(*(int *)(param_1 + 0xc) + 4)" * (cast_expression "(undefined **)(*(int *)(param_1 + 0xc) + 4)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0xc) + 4)" ( (binary_expression "*(int *)(param_1 + 0xc) + 4" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) + number_literal) ))))) ;) })) (if_statement "if ((param_2 != 0) && ((*(uint *)(puVar2 + 0x10) & 0x82) != 0)) {\n    return 1;\n  }" if (parenthesized_expression "((param_2 != 0) && ((*(uint *)(puVar2 + 0x10) & 0x82) != 0))" ( (binary_expression "(param_2 != 0) && ((*(uint *)(puVar2 + 0x10) & 0x82) != 0)" (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) && (parenthesized_expression "((*(uint *)(puVar2 + 0x10) & 0x82) != 0)" ( (binary_expression "(*(uint *)(puVar2 + 0x10) & 0x82) != 0" (parenthesized_expression "(*(uint *)(puVar2 + 0x10) & 0x82)" ( (binary_expression "*(uint *)(puVar2 + 0x10) & 0x82" (pointer_expression "*(uint *)(puVar2 + 0x10)" * (cast_expression "(uint *)(puVar2 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x10)" ( (binary_expression "puVar2 + 0x10" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if ((*(uint *)(puVar2 + 0x10) & 0x400000) != 0) {\n    return 1;\n  }" if (parenthesized_expression "((*(uint *)(puVar2 + 0x10) & 0x400000) != 0)" ( (binary_expression "(*(uint *)(puVar2 + 0x10) & 0x400000) != 0" (parenthesized_expression "(*(uint *)(puVar2 + 0x10) & 0x400000)" ( (binary_expression "*(uint *)(puVar2 + 0x10) & 0x400000" (pointer_expression "*(uint *)(puVar2 + 0x10)" * (cast_expression "(uint *)(puVar2 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x10)" ( (binary_expression "puVar2 + 0x10" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "puVar2 = *(undefined **)(puVar2 + 0x14);" (assignment_expression "puVar2 = *(undefined **)(puVar2 + 0x14)" identifier = (pointer_expression "*(undefined **)(puVar2 + 0x14)" * (cast_expression "(undefined **)(puVar2 + 0x14)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar2 + 0x14)" ( (binary_expression "puVar2 + 0x14" identifier + number_literal) ))))) ;) (labeled_statement "LAB_00038742:\n  uVar1 = 1;" statement_identifier : (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" identifier = number_literal) ;)) (if_statement "if (puVar2 != PTR__bfd_std_section_0007ffb0 + 0xc0) {\n    uVar1 = *(uint *)(puVar2 + 0x14) >> 0xc & 1;\n  }" if (parenthesized_expression "(puVar2 != PTR__bfd_std_section_0007ffb0 + 0xc0)" ( (binary_expression "puVar2 != PTR__bfd_std_section_0007ffb0 + 0xc0" identifier != (binary_expression "PTR__bfd_std_section_0007ffb0 + 0xc0" identifier + number_literal)) )) (compound_statement "{\n    uVar1 = *(uint *)(puVar2 + 0x14) >> 0xc & 1;\n  }" { (expression_statement "uVar1 = *(uint *)(puVar2 + 0x14) >> 0xc & 1;" (assignment_expression "uVar1 = *(uint *)(puVar2 + 0x14) >> 0xc & 1" identifier = (binary_expression "*(uint *)(puVar2 + 0x14) >> 0xc & 1" (binary_expression "*(uint *)(puVar2 + 0x14) >> 0xc" (pointer_expression "*(uint *)(puVar2 + 0x14)" * (cast_expression "(uint *)(puVar2 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x14)" ( (binary_expression "puVar2 + 0x14" identifier + number_literal) )))) >> number_literal) & number_literal)) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n\nint S_FORCE_RELOC(symbolS *s,int strict)\n\n{\n  uint uVar1;\n  segT paVar2;\n  \n  paVar2 = (segT)s->bsym;\n  if (((uint)s->sy_flags & 1) != 0) {\n    if (reg_section != paVar2) goto LAB_00038742;\n    paVar2 = (segT)((s->sy_value).X_op_symbol)->bsym;\n  }\n  if ((strict != 0) && (((uint)paVar2->prev & 0x82) != 0)) {\n    return 1;\n  }\n  if (((uint)paVar2->prev & 0x400000) != 0) {\n    return 1;\n  }\n  paVar2 = (segT)paVar2->flags;\nLAB_00038742:\n  uVar1 = 1;\n  if (paVar2 != (segT)(PTR__bfd_std_section_0007ffb0 + 0xc0)) {\n    uVar1 = paVar2->flags >> 0xc & 1;\n  }\n  return uVar1;\n}\n\n" comment (function_definition "int S_FORCE_RELOC(symbolS *s,int strict)\n\n{\n  uint uVar1;\n  segT paVar2;\n  \n  paVar2 = (segT)s->bsym;\n  if (((uint)s->sy_flags & 1) != 0) {\n    if (reg_section != paVar2) goto LAB_00038742;\n    paVar2 = (segT)((s->sy_value).X_op_symbol)->bsym;\n  }\n  if ((strict != 0) && (((uint)paVar2->prev & 0x82) != 0)) {\n    return 1;\n  }\n  if (((uint)paVar2->prev & 0x400000) != 0) {\n    return 1;\n  }\n  paVar2 = (segT)paVar2->flags;\nLAB_00038742:\n  uVar1 = 1;\n  if (paVar2 != (segT)(PTR__bfd_std_section_0007ffb0 + 0xc0)) {\n    uVar1 = paVar2->flags >> 0xc & 1;\n  }\n  return uVar1;\n}" primitive_type (function_declarator "S_FORCE_RELOC(symbolS *s,int strict)" identifier (parameter_list "(symbolS *s,int strict)" ( (parameter_declaration "symbolS *s" type_identifier (pointer_declarator "*s" * identifier)) , (parameter_declaration "int strict" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  segT paVar2;\n  \n  paVar2 = (segT)s->bsym;\n  if (((uint)s->sy_flags & 1) != 0) {\n    if (reg_section != paVar2) goto LAB_00038742;\n    paVar2 = (segT)((s->sy_value).X_op_symbol)->bsym;\n  }\n  if ((strict != 0) && (((uint)paVar2->prev & 0x82) != 0)) {\n    return 1;\n  }\n  if (((uint)paVar2->prev & 0x400000) != 0) {\n    return 1;\n  }\n  paVar2 = (segT)paVar2->flags;\nLAB_00038742:\n  uVar1 = 1;\n  if (paVar2 != (segT)(PTR__bfd_std_section_0007ffb0 + 0xc0)) {\n    uVar1 = paVar2->flags >> 0xc & 1;\n  }\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "segT paVar2;" type_identifier identifier ;) (expression_statement "paVar2 = (segT)s->bsym;" (assignment_expression "paVar2 = (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 != paVar2) goto LAB_00038742;\n    paVar2 = (segT)((s->sy_value).X_op_symbol)->bsym;\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 != paVar2) goto LAB_00038742;\n    paVar2 = (segT)((s->sy_value).X_op_symbol)->bsym;\n  }" { (if_statement "if (reg_section != paVar2) goto LAB_00038742;" if (parenthesized_expression "(reg_section != paVar2)" ( (binary_expression "reg_section != paVar2" identifier != identifier) )) (goto_statement "goto LAB_00038742;" goto statement_identifier ;)) (expression_statement "paVar2 = (segT)((s->sy_value).X_op_symbol)->bsym;" (assignment_expression "paVar2 = (segT)((s->sy_value).X_op_symbol)->bsym" identifier = (field_expression "(segT)((s->sy_value).X_op_symbol)->bsym" (call_expression "(segT)((s->sy_value).X_op_symbol)" (parenthesized_expression "(segT)" ( identifier )) (argument_list "((s->sy_value).X_op_symbol)" ( (field_expression "(s->sy_value).X_op_symbol" (parenthesized_expression "(s->sy_value)" ( (field_expression "s->sy_value" identifier -> field_identifier) )) . field_identifier) ))) -> field_identifier)) ;) })) (if_statement "if ((strict != 0) && (((uint)paVar2->prev & 0x82) != 0)) {\n    return 1;\n  }" if (parenthesized_expression "((strict != 0) && (((uint)paVar2->prev & 0x82) != 0))" ( (binary_expression "(strict != 0) && (((uint)paVar2->prev & 0x82) != 0)" (parenthesized_expression "(strict != 0)" ( (binary_expression "strict != 0" identifier != number_literal) )) && (parenthesized_expression "(((uint)paVar2->prev & 0x82) != 0)" ( (binary_expression "((uint)paVar2->prev & 0x82) != 0" (parenthesized_expression "((uint)paVar2->prev & 0x82)" ( (binary_expression "(uint)paVar2->prev & 0x82" (cast_expression "(uint)paVar2->prev" ( (type_descriptor "uint" type_identifier) ) (field_expression "paVar2->prev" identifier -> field_identifier)) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (((uint)paVar2->prev & 0x400000) != 0) {\n    return 1;\n  }" if (parenthesized_expression "(((uint)paVar2->prev & 0x400000) != 0)" ( (binary_expression "((uint)paVar2->prev & 0x400000) != 0" (parenthesized_expression "((uint)paVar2->prev & 0x400000)" ( (binary_expression "(uint)paVar2->prev & 0x400000" (cast_expression "(uint)paVar2->prev" ( (type_descriptor "uint" type_identifier) ) (field_expression "paVar2->prev" identifier -> field_identifier)) & number_literal) )) != number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "paVar2 = (segT)paVar2->flags;" (assignment_expression "paVar2 = (segT)paVar2->flags" identifier = (cast_expression "(segT)paVar2->flags" ( (type_descriptor "segT" type_identifier) ) (field_expression "paVar2->flags" identifier -> field_identifier))) ;) (labeled_statement "LAB_00038742:\n  uVar1 = 1;" statement_identifier : (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" identifier = number_literal) ;)) (if_statement "if (paVar2 != (segT)(PTR__bfd_std_section_0007ffb0 + 0xc0)) {\n    uVar1 = paVar2->flags >> 0xc & 1;\n  }" if (parenthesized_expression "(paVar2 != (segT)(PTR__bfd_std_section_0007ffb0 + 0xc0))" ( (binary_expression "paVar2 != (segT)(PTR__bfd_std_section_0007ffb0 + 0xc0)" identifier != (call_expression "(segT)(PTR__bfd_std_section_0007ffb0 + 0xc0)" (parenthesized_expression "(segT)" ( identifier )) (argument_list "(PTR__bfd_std_section_0007ffb0 + 0xc0)" ( (binary_expression "PTR__bfd_std_section_0007ffb0 + 0xc0" identifier + number_literal) )))) )) (compound_statement "{\n    uVar1 = paVar2->flags >> 0xc & 1;\n  }" { (expression_statement "uVar1 = paVar2->flags >> 0xc & 1;" (assignment_expression "uVar1 = paVar2->flags >> 0xc & 1" identifier = (binary_expression "paVar2->flags >> 0xc & 1" (binary_expression "paVar2->flags >> 0xc" (field_expression "paVar2->flags" identifier -> field_identifier) >> number_literal) & number_literal)) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "uint FUN_00038720(byte *param_1,int param_2)\n\n{\n  uint uVar1;\n  undefined *puVar2;\n  \n  puVar2 = *(undefined **)(param_1 + 4);\n  if ((*param_1 & 1) != 0) {\n    if (DAT_000897ec != puVar2) goto LAB_00038742;\n    puVar2 = *(undefined **)(*(int *)(param_1 + 0xc) + 4);\n  }\n  if ((param_2 != 0) && ((*(uint *)(puVar2 + 0x10) & 0x82) != 0)) {\n    return 1;\n  }\n  if ((*(uint *)(puVar2 + 0x10) & 0x400000) != 0) {\n    return 1;\n  }\n  puVar2 = *(undefined **)(puVar2 + 0x14);\nLAB_00038742:\n  uVar1 = 1;\n  if (puVar2 != PTR__bfd_std_section_0007ffb0 + 0xc0) {\n    uVar1 = *(uint *)(puVar2 + 0x14) >> 0xc & 1;\n  }\n  return uVar1;\n}\n\n" (function_definition "uint FUN_00038720(byte *param_1,int param_2)\n\n{\n  uint uVar1;\n  undefined *puVar2;\n  \n  puVar2 = *(undefined **)(param_1 + 4);\n  if ((*param_1 & 1) != 0) {\n    if (DAT_000897ec != puVar2) goto LAB_00038742;\n    puVar2 = *(undefined **)(*(int *)(param_1 + 0xc) + 4);\n  }\n  if ((param_2 != 0) && ((*(uint *)(puVar2 + 0x10) & 0x82) != 0)) {\n    return 1;\n  }\n  if ((*(uint *)(puVar2 + 0x10) & 0x400000) != 0) {\n    return 1;\n  }\n  puVar2 = *(undefined **)(puVar2 + 0x14);\nLAB_00038742:\n  uVar1 = 1;\n  if (puVar2 != PTR__bfd_std_section_0007ffb0 + 0xc0) {\n    uVar1 = *(uint *)(puVar2 + 0x14) >> 0xc & 1;\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_00038720(byte *param_1,int param_2)" identifier (parameter_list "(byte *param_1,int param_2)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  undefined *puVar2;\n  \n  puVar2 = *(undefined **)(param_1 + 4);\n  if ((*param_1 & 1) != 0) {\n    if (DAT_000897ec != puVar2) goto LAB_00038742;\n    puVar2 = *(undefined **)(*(int *)(param_1 + 0xc) + 4);\n  }\n  if ((param_2 != 0) && ((*(uint *)(puVar2 + 0x10) & 0x82) != 0)) {\n    return 1;\n  }\n  if ((*(uint *)(puVar2 + 0x10) & 0x400000) != 0) {\n    return 1;\n  }\n  puVar2 = *(undefined **)(puVar2 + 0x14);\nLAB_00038742:\n  uVar1 = 1;\n  if (puVar2 != PTR__bfd_std_section_0007ffb0 + 0xc0) {\n    uVar1 = *(uint *)(puVar2 + 0x14) >> 0xc & 1;\n  }\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "puVar2 = *(undefined **)(param_1 + 4);" (assignment_expression "puVar2 = *(undefined **)(param_1 + 4)" identifier = (pointer_expression "*(undefined **)(param_1 + 4)" * (cast_expression "(undefined **)(param_1 + 4)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (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 != puVar2) goto LAB_00038742;\n    puVar2 = *(undefined **)(*(int *)(param_1 + 0xc) + 4);\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 != puVar2) goto LAB_00038742;\n    puVar2 = *(undefined **)(*(int *)(param_1 + 0xc) + 4);\n  }" { (if_statement "if (DAT_000897ec != puVar2) goto LAB_00038742;" if (parenthesized_expression "(DAT_000897ec != puVar2)" ( (binary_expression "DAT_000897ec != puVar2" identifier != identifier) )) (goto_statement "goto LAB_00038742;" goto statement_identifier ;)) (expression_statement "puVar2 = *(undefined **)(*(int *)(param_1 + 0xc) + 4);" (assignment_expression "puVar2 = *(undefined **)(*(int *)(param_1 + 0xc) + 4)" identifier = (pointer_expression "*(undefined **)(*(int *)(param_1 + 0xc) + 4)" * (cast_expression "(undefined **)(*(int *)(param_1 + 0xc) + 4)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0xc) + 4)" ( (binary_expression "*(int *)(param_1 + 0xc) + 4" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) + number_literal) ))))) ;) })) (if_statement "if ((param_2 != 0) && ((*(uint *)(puVar2 + 0x10) & 0x82) != 0)) {\n    return 1;\n  }" if (parenthesized_expression "((param_2 != 0) && ((*(uint *)(puVar2 + 0x10) & 0x82) != 0))" ( (binary_expression "(param_2 != 0) && ((*(uint *)(puVar2 + 0x10) & 0x82) != 0)" (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) && (parenthesized_expression "((*(uint *)(puVar2 + 0x10) & 0x82) != 0)" ( (binary_expression "(*(uint *)(puVar2 + 0x10) & 0x82) != 0" (parenthesized_expression "(*(uint *)(puVar2 + 0x10) & 0x82)" ( (binary_expression "*(uint *)(puVar2 + 0x10) & 0x82" (pointer_expression "*(uint *)(puVar2 + 0x10)" * (cast_expression "(uint *)(puVar2 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x10)" ( (binary_expression "puVar2 + 0x10" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if ((*(uint *)(puVar2 + 0x10) & 0x400000) != 0) {\n    return 1;\n  }" if (parenthesized_expression "((*(uint *)(puVar2 + 0x10) & 0x400000) != 0)" ( (binary_expression "(*(uint *)(puVar2 + 0x10) & 0x400000) != 0" (parenthesized_expression "(*(uint *)(puVar2 + 0x10) & 0x400000)" ( (binary_expression "*(uint *)(puVar2 + 0x10) & 0x400000" (pointer_expression "*(uint *)(puVar2 + 0x10)" * (cast_expression "(uint *)(puVar2 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x10)" ( (binary_expression "puVar2 + 0x10" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "puVar2 = *(undefined **)(puVar2 + 0x14);" (assignment_expression "puVar2 = *(undefined **)(puVar2 + 0x14)" identifier = (pointer_expression "*(undefined **)(puVar2 + 0x14)" * (cast_expression "(undefined **)(puVar2 + 0x14)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar2 + 0x14)" ( (binary_expression "puVar2 + 0x14" identifier + number_literal) ))))) ;) (labeled_statement "LAB_00038742:\n  uVar1 = 1;" statement_identifier : (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" identifier = number_literal) ;)) (if_statement "if (puVar2 != PTR__bfd_std_section_0007ffb0 + 0xc0) {\n    uVar1 = *(uint *)(puVar2 + 0x14) >> 0xc & 1;\n  }" if (parenthesized_expression "(puVar2 != PTR__bfd_std_section_0007ffb0 + 0xc0)" ( (binary_expression "puVar2 != PTR__bfd_std_section_0007ffb0 + 0xc0" identifier != (binary_expression "PTR__bfd_std_section_0007ffb0 + 0xc0" identifier + number_literal)) )) (compound_statement "{\n    uVar1 = *(uint *)(puVar2 + 0x14) >> 0xc & 1;\n  }" { (expression_statement "uVar1 = *(uint *)(puVar2 + 0x14) >> 0xc & 1;" (assignment_expression "uVar1 = *(uint *)(puVar2 + 0x14) >> 0xc & 1" identifier = (binary_expression "*(uint *)(puVar2 + 0x14) >> 0xc & 1" (binary_expression "*(uint *)(puVar2 + 0x14) >> 0xc" (pointer_expression "*(uint *)(puVar2 + 0x14)" * (cast_expression "(uint *)(puVar2 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x14)" ( (binary_expression "puVar2 + 0x14" identifier + number_literal) )))) >> number_literal) & number_literal)) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(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 ;) (declaration TYPE (pointer_declarator * IDENT) ;) (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 (pointer_expression * IDENT) & LIT) )) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (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) )) && (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 { (return_statement return 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 { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) >> LIT) & LIT)) ;) })) (return_statement return IDENT ;) })))
(function_definition "uint FUN_00038720(byte *param_1,int param_2)\n\n{\n  uint uVar1;\n  undefined *puVar2;\n  \n  puVar2 = *(undefined **)(param_1 + 4);\n  if ((*param_1 & 1) != 0) {\n    if (DAT_000897ec != puVar2) goto LAB_00038742;\n    puVar2 = *(undefined **)(*(int *)(param_1 + 0xc) + 4);\n  }\n  if ((param_2 != 0) && ((*(uint *)(puVar2 + 0x10) & 0x82) != 0)) {\n    return 1;\n  }\n  if ((*(uint *)(puVar2 + 0x10) & 0x400000) != 0) {\n    return 1;\n  }\n  puVar2 = *(undefined **)(puVar2 + 0x14);\nLAB_00038742:\n  uVar1 = 1;\n  if (puVar2 != PTR__bfd_std_section_0007ffb0 + 0xc0) {\n    uVar1 = *(uint *)(puVar2 + 0x14) >> 0xc & 1;\n  }\n  return uVar1;\n}" (type_identifier "uint") (function_declarator "FUN_00038720(byte *param_1,int param_2)" (identifier "FUN_00038720") (parameter_list "(byte *param_1,int param_2)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  uint uVar1;\n  undefined *puVar2;\n  \n  puVar2 = *(undefined **)(param_1 + 4);\n  if ((*param_1 & 1) != 0) {\n    if (DAT_000897ec != puVar2) goto LAB_00038742;\n    puVar2 = *(undefined **)(*(int *)(param_1 + 0xc) + 4);\n  }\n  if ((param_2 != 0) && ((*(uint *)(puVar2 + 0x10) & 0x82) != 0)) {\n    return 1;\n  }\n  if ((*(uint *)(puVar2 + 0x10) & 0x400000) != 0) {\n    return 1;\n  }\n  puVar2 = *(undefined **)(puVar2 + 0x14);\nLAB_00038742:\n  uVar1 = 1;\n  if (puVar2 != PTR__bfd_std_section_0007ffb0 + 0xc0) {\n    uVar1 = *(uint *)(puVar2 + 0x14) >> 0xc & 1;\n  }\n  return uVar1;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (expression_statement "puVar2 = *(undefined **)(param_1 + 4);" (assignment_expression "puVar2 = *(undefined **)(param_1 + 4)" (identifier "puVar2") (= "=") (pointer_expression "*(undefined **)(param_1 + 4)" (* "*") (cast_expression "(undefined **)(param_1 + 4)" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (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 != puVar2) goto LAB_00038742;\n    puVar2 = *(undefined **)(*(int *)(param_1 + 0xc) + 4);\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 != puVar2) goto LAB_00038742;\n    puVar2 = *(undefined **)(*(int *)(param_1 + 0xc) + 4);\n  }" ({ "{") (if_statement "if (DAT_000897ec != puVar2) goto LAB_00038742;" (if "if") (parenthesized_expression "(DAT_000897ec != puVar2)" (( "(") (binary_expression "DAT_000897ec != puVar2" (identifier "DAT_000897ec") (!= "!=") (identifier "puVar2")) () ")")) (goto_statement "goto LAB_00038742;" (goto "goto") (statement_identifier "LAB_00038742") (; ";"))) (expression_statement "puVar2 = *(undefined **)(*(int *)(param_1 + 0xc) + 4);" (assignment_expression "puVar2 = *(undefined **)(*(int *)(param_1 + 0xc) + 4)" (identifier "puVar2") (= "=") (pointer_expression "*(undefined **)(*(int *)(param_1 + 0xc) + 4)" (* "*") (cast_expression "(undefined **)(*(int *)(param_1 + 0xc) + 4)" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0xc) + 4)" (( "(") (binary_expression "*(int *)(param_1 + 0xc) + 4" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (} "}"))) (if_statement "if ((param_2 != 0) && ((*(uint *)(puVar2 + 0x10) & 0x82) != 0)) {\n    return 1;\n  }" (if "if") (parenthesized_expression "((param_2 != 0) && ((*(uint *)(puVar2 + 0x10) & 0x82) != 0))" (( "(") (binary_expression "(param_2 != 0) && ((*(uint *)(puVar2 + 0x10) & 0x82) != 0)" (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((*(uint *)(puVar2 + 0x10) & 0x82) != 0)" (( "(") (binary_expression "(*(uint *)(puVar2 + 0x10) & 0x82) != 0" (parenthesized_expression "(*(uint *)(puVar2 + 0x10) & 0x82)" (( "(") (binary_expression "*(uint *)(puVar2 + 0x10) & 0x82" (pointer_expression "*(uint *)(puVar2 + 0x10)" (* "*") (cast_expression "(uint *)(puVar2 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x10)" (( "(") (binary_expression "puVar2 + 0x10" (identifier "puVar2") (+ "+") (number_literal "0x10")) () ")")))) (& "&") (number_literal "0x82")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    return 1;\n  }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (if_statement "if ((*(uint *)(puVar2 + 0x10) & 0x400000) != 0) {\n    return 1;\n  }" (if "if") (parenthesized_expression "((*(uint *)(puVar2 + 0x10) & 0x400000) != 0)" (( "(") (binary_expression "(*(uint *)(puVar2 + 0x10) & 0x400000) != 0" (parenthesized_expression "(*(uint *)(puVar2 + 0x10) & 0x400000)" (( "(") (binary_expression "*(uint *)(puVar2 + 0x10) & 0x400000" (pointer_expression "*(uint *)(puVar2 + 0x10)" (* "*") (cast_expression "(uint *)(puVar2 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x10)" (( "(") (binary_expression "puVar2 + 0x10" (identifier "puVar2") (+ "+") (number_literal "0x10")) () ")")))) (& "&") (number_literal "0x400000")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return 1;\n  }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "puVar2 = *(undefined **)(puVar2 + 0x14);" (assignment_expression "puVar2 = *(undefined **)(puVar2 + 0x14)" (identifier "puVar2") (= "=") (pointer_expression "*(undefined **)(puVar2 + 0x14)" (* "*") (cast_expression "(undefined **)(puVar2 + 0x14)" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar2 + 0x14)" (( "(") (binary_expression "puVar2 + 0x14" (identifier "puVar2") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (labeled_statement "LAB_00038742:\n  uVar1 = 1;" (statement_identifier "LAB_00038742") (: ":") (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" (identifier "uVar1") (= "=") (number_literal "1")) (; ";"))) (if_statement "if (puVar2 != PTR__bfd_std_section_0007ffb0 + 0xc0) {\n    uVar1 = *(uint *)(puVar2 + 0x14) >> 0xc & 1;\n  }" (if "if") (parenthesized_expression "(puVar2 != PTR__bfd_std_section_0007ffb0 + 0xc0)" (( "(") (binary_expression "puVar2 != PTR__bfd_std_section_0007ffb0 + 0xc0" (identifier "puVar2") (!= "!=") (binary_expression "PTR__bfd_std_section_0007ffb0 + 0xc0" (identifier "PTR__bfd_std_section_0007ffb0") (+ "+") (number_literal "0xc0"))) () ")")) (compound_statement "{\n    uVar1 = *(uint *)(puVar2 + 0x14) >> 0xc & 1;\n  }" ({ "{") (expression_statement "uVar1 = *(uint *)(puVar2 + 0x14) >> 0xc & 1;" (assignment_expression "uVar1 = *(uint *)(puVar2 + 0x14) >> 0xc & 1" (identifier "uVar1") (= "=") (binary_expression "*(uint *)(puVar2 + 0x14) >> 0xc & 1" (binary_expression "*(uint *)(puVar2 + 0x14) >> 0xc" (pointer_expression "*(uint *)(puVar2 + 0x14)" (* "*") (cast_expression "(uint *)(puVar2 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x14)" (( "(") (binary_expression "puVar2 + 0x14" (identifier "puVar2") (+ "+") (number_literal "0x14")) () ")")))) (>> ">>") (number_literal "0xc")) (& "&") (number_literal "1"))) (; ";")) (} "}"))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

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

int function_1(type_1 *s,int var_3)

{
  type_2 uVar1;
  type_3 var_2;
  
  var_2 = (type_3)s->bsym;
  if (((type_2)s->sy_flags & 1) != 0) {
    if (var_1 != var_2) goto LAB_00038742;
    var_2 = (type_3)((s->sy_value).X_op_symbol)->bsym;
  }
  if ((var_3 != 0) && (((type_2)var_2->prev & 0x82) != 0)) {
    return 1;
  }
  if (((type_2)var_2->prev & 0x400000) != 0) {
    return 1;
  }
  var_2 = (type_3)var_2->flags;
LAB_00038742:
  uVar1 = 1;
  if (var_2 != (type_3)(var_4 + 0xc0)) {
    uVar1 = var_2->flags >> 0xc & 1;
  }
  return uVar1;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (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: (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: (goto_statement label: (statement_identifier))) (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: (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: (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 (return_statement (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 (return_statement (number_literal)))) (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))))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (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)))))) (return_statement (identifier)))))

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

uint MASKED(byte *param_1,int param_2)

{
  uint uVar1;
  undefined *puVar2;
  
  puVar2 = *(undefined **)(param_1 + 4);
  if ((*param_1 & 1) != 0) {
    if (DAT_000897ec != puVar2) goto LAB_00038742;
    puVar2 = *(undefined **)(*(int *)(param_1 + 0xc) + 4);
  }
  if ((param_2 != 0) && ((*(uint *)(puVar2 + 0x10) & 0x82) != 0)) {
    return 1;
  }
  if ((*(uint *)(puVar2 + 0x10) & 0x400000) != 0) {
    return 1;
  }
  puVar2 = *(undefined **)(puVar2 + 0x14);
LAB_00038742:
  uVar1 = 1;
  if (puVar2 != PTR__bfd_std_section_0007ffb0 + 0xc0) {
    uVar1 = *(uint *)(puVar2 + 0x14) >> 0xc & 1;
  }
  return uVar1;
}

