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

void symbol_mark_used(symbolS *s)

{
  byte bVar1;
  segT paVar2;
  symbolS *psVar3;
  
  paVar2 = reg_section;
  while( true ) {
    if (((uint)s->sy_flags & 1) != 0) {
      if ((segT)s->bsym != paVar2) {
        return;
      }
      s = (s->sy_value).X_op_symbol;
    }
    bVar1 = *(byte *)&s->sy_flags;
    *(byte *)&s->sy_flags = bVar1 | 0x20;
    psVar3 = s;
    if ((bVar1 & 1) != 0) {
      if (paVar2 != (segT)s->bsym) {
        return;
      }
      psVar3 = (s->sy_value).X_op_symbol;
    }
    if (((psVar3->sy_flags).field_0x1 & 2) == 0) break;
    s = (s->sy_value).X_add_symbol;
  }
  return;
}



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

void FUN_00038ab0(byte *param_1)

{
  byte bVar1;
  int iVar2;
  byte *pbVar3;
  
  iVar2 = DAT_00087fb4;
  while( true ) {
    if ((*param_1 & 1) != 0) {
      if (*(int *)(param_1 + 4) != iVar2) {
        return;
      }
      param_1 = *(byte **)(param_1 + 0xc);
    }
    bVar1 = *param_1;
    *param_1 = bVar1 | 0x20;
    pbVar3 = param_1;
    if ((bVar1 & 1) != 0) {
      if (iVar2 != *(int *)(param_1 + 4)) {
        return;
      }
      pbVar3 = *(byte **)(param_1 + 0xc);
    }
    if ((pbVar3[1] & 2) == 0) break;
    param_1 = *(byte **)(param_1 + 8);
  }
  return;
}


CALL 0x00016165
ADD EDX,0x4554b
MOV EAX,dword ptr [ESP + 0x4]
LEA EDX,[EDX + 0x9fb4]
MOV ECX,dword ptr [EDX]
TEST byte ptr [EAX],0x1
JZ 0x00038ad4
CMP dword ptr [EAX + 0x4],ECX
JNZ 0x00038ae6
MOV EAX,dword ptr [EAX + 0xc]
MOVZX EDX,byte ptr [EAX]
OR EDX,0x20
MOV byte ptr [EAX],DL
AND EDX,0x1
JZ 0x00038af0
CMP ECX,dword ptr [EAX + 0x4]
JZ 0x00038b00
RET
MOV EDX,EAX
TEST byte ptr [EDX + 0x1],0x2
JZ 0x00038ae6
MOV EAX,dword ptr [EAX + 0x8]
JMP 0x00038ac7
MOV EDX,dword ptr [EAX + 0xc]
JMP 0x00038af2
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nvoid FUN_00038ab0(byte *param_1)\n\n{\n  byte bVar1;\n  int iVar2;\n  byte *pbVar3;\n  \n  iVar2 = DAT_00087fb4;\n  while( true ) {\n    if ((*param_1 & 1) != 0) {\n      if (*(int *)(param_1 + 4) != iVar2) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n    bVar1 = *param_1;\n    *param_1 = bVar1 | 0x20;\n    pbVar3 = param_1;\n    if ((bVar1 & 1) != 0) {\n      if (iVar2 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      pbVar3 = *(byte **)(param_1 + 0xc);\n    }\n    if ((pbVar3[1] & 2) == 0) break;\n    param_1 = *(byte **)(param_1 + 8);\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00038ab0(byte *param_1)\n\n{\n  byte bVar1;\n  int iVar2;\n  byte *pbVar3;\n  \n  iVar2 = DAT_00087fb4;\n  while( true ) {\n    if ((*param_1 & 1) != 0) {\n      if (*(int *)(param_1 + 4) != iVar2) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n    bVar1 = *param_1;\n    *param_1 = bVar1 | 0x20;\n    pbVar3 = param_1;\n    if ((bVar1 & 1) != 0) {\n      if (iVar2 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      pbVar3 = *(byte **)(param_1 + 0xc);\n    }\n    if ((pbVar3[1] & 2) == 0) break;\n    param_1 = *(byte **)(param_1 + 8);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00038ab0(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  byte *pbVar3;\n  \n  iVar2 = DAT_00087fb4;\n  while( true ) {\n    if ((*param_1 & 1) != 0) {\n      if (*(int *)(param_1 + 4) != iVar2) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n    bVar1 = *param_1;\n    *param_1 = bVar1 | 0x20;\n    pbVar3 = param_1;\n    if ((bVar1 & 1) != 0) {\n      if (iVar2 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      pbVar3 = *(byte **)(param_1 + 0xc);\n    }\n    if ((pbVar3[1] & 2) == 0) break;\n    param_1 = *(byte **)(param_1 + 8);\n  }\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (expression_statement "iVar2 = DAT_00087fb4;" (assignment_expression "iVar2 = DAT_00087fb4" identifier = identifier) ;) (while_statement "while( true ) {\n    if ((*param_1 & 1) != 0) {\n      if (*(int *)(param_1 + 4) != iVar2) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n    bVar1 = *param_1;\n    *param_1 = bVar1 | 0x20;\n    pbVar3 = param_1;\n    if ((bVar1 & 1) != 0) {\n      if (iVar2 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      pbVar3 = *(byte **)(param_1 + 0xc);\n    }\n    if ((pbVar3[1] & 2) == 0) break;\n    param_1 = *(byte **)(param_1 + 8);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if ((*param_1 & 1) != 0) {\n      if (*(int *)(param_1 + 4) != iVar2) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n    bVar1 = *param_1;\n    *param_1 = bVar1 | 0x20;\n    pbVar3 = param_1;\n    if ((bVar1 & 1) != 0) {\n      if (iVar2 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      pbVar3 = *(byte **)(param_1 + 0xc);\n    }\n    if ((pbVar3[1] & 2) == 0) break;\n    param_1 = *(byte **)(param_1 + 8);\n  }" { (if_statement "if ((*param_1 & 1) != 0) {\n      if (*(int *)(param_1 + 4) != iVar2) {\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) != iVar2) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n    }" { (if_statement "if (*(int *)(param_1 + 4) != iVar2) {\n        return;\n      }" if (parenthesized_expression "(*(int *)(param_1 + 4) != iVar2)" ( (binary_expression "*(int *)(param_1 + 4) != iVar2" (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) ))))) ;) })) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "*param_1 = bVar1 | 0x20;" (assignment_expression "*param_1 = bVar1 | 0x20" (pointer_expression "*param_1" * identifier) = (binary_expression "bVar1 | 0x20" identifier | number_literal)) ;) (expression_statement "pbVar3 = param_1;" (assignment_expression "pbVar3 = param_1" identifier = identifier) ;) (if_statement "if ((bVar1 & 1) != 0) {\n      if (iVar2 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      pbVar3 = *(byte **)(param_1 + 0xc);\n    }" if (parenthesized_expression "((bVar1 & 1) != 0)" ( (binary_expression "(bVar1 & 1) != 0" (parenthesized_expression "(bVar1 & 1)" ( (binary_expression "bVar1 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      if (iVar2 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      pbVar3 = *(byte **)(param_1 + 0xc);\n    }" { (if_statement "if (iVar2 != *(int *)(param_1 + 4)) {\n        return;\n      }" if (parenthesized_expression "(iVar2 != *(int *)(param_1 + 4))" ( (binary_expression "iVar2 != *(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) ))))) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "pbVar3 = *(byte **)(param_1 + 0xc);" (assignment_expression "pbVar3 = *(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 ((pbVar3[1] & 2) == 0) break;" if (parenthesized_expression "((pbVar3[1] & 2) == 0)" ( (binary_expression "(pbVar3[1] & 2) == 0" (parenthesized_expression "(pbVar3[1] & 2)" ( (binary_expression "pbVar3[1] & 2" (subscript_expression "pbVar3[1]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "param_1 = *(byte **)(param_1 + 8);" (assignment_expression "param_1 = *(byte **)(param_1 + 8)" identifier = (pointer_expression "*(byte **)(param_1 + 8)" * (cast_expression "(byte **)(param_1 + 8)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nvoid symbol_mark_used(symbolS *s)\n\n{\n  byte bVar1;\n  segT paVar2;\n  symbolS *psVar3;\n  \n  paVar2 = reg_section;\n  while( true ) {\n    if (((uint)s->sy_flags & 1) != 0) {\n      if ((segT)s->bsym != paVar2) {\n        return;\n      }\n      s = (s->sy_value).X_op_symbol;\n    }\n    bVar1 = *(byte *)&s->sy_flags;\n    *(byte *)&s->sy_flags = bVar1 | 0x20;\n    psVar3 = s;\n    if ((bVar1 & 1) != 0) {\n      if (paVar2 != (segT)s->bsym) {\n        return;\n      }\n      psVar3 = (s->sy_value).X_op_symbol;\n    }\n    if (((psVar3->sy_flags).field_0x1 & 2) == 0) break;\n    s = (s->sy_value).X_add_symbol;\n  }\n  return;\n}\n\n" comment (function_definition "void symbol_mark_used(symbolS *s)\n\n{\n  byte bVar1;\n  segT paVar2;\n  symbolS *psVar3;\n  \n  paVar2 = reg_section;\n  while( true ) {\n    if (((uint)s->sy_flags & 1) != 0) {\n      if ((segT)s->bsym != paVar2) {\n        return;\n      }\n      s = (s->sy_value).X_op_symbol;\n    }\n    bVar1 = *(byte *)&s->sy_flags;\n    *(byte *)&s->sy_flags = bVar1 | 0x20;\n    psVar3 = s;\n    if ((bVar1 & 1) != 0) {\n      if (paVar2 != (segT)s->bsym) {\n        return;\n      }\n      psVar3 = (s->sy_value).X_op_symbol;\n    }\n    if (((psVar3->sy_flags).field_0x1 & 2) == 0) break;\n    s = (s->sy_value).X_add_symbol;\n  }\n  return;\n}" primitive_type (function_declarator "symbol_mark_used(symbolS *s)" identifier (parameter_list "(symbolS *s)" ( (parameter_declaration "symbolS *s" type_identifier (pointer_declarator "*s" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  segT paVar2;\n  symbolS *psVar3;\n  \n  paVar2 = reg_section;\n  while( true ) {\n    if (((uint)s->sy_flags & 1) != 0) {\n      if ((segT)s->bsym != paVar2) {\n        return;\n      }\n      s = (s->sy_value).X_op_symbol;\n    }\n    bVar1 = *(byte *)&s->sy_flags;\n    *(byte *)&s->sy_flags = bVar1 | 0x20;\n    psVar3 = s;\n    if ((bVar1 & 1) != 0) {\n      if (paVar2 != (segT)s->bsym) {\n        return;\n      }\n      psVar3 = (s->sy_value).X_op_symbol;\n    }\n    if (((psVar3->sy_flags).field_0x1 & 2) == 0) break;\n    s = (s->sy_value).X_add_symbol;\n  }\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "segT paVar2;" type_identifier identifier ;) (declaration "symbolS *psVar3;" type_identifier (pointer_declarator "*psVar3" * identifier) ;) (expression_statement "paVar2 = reg_section;" (assignment_expression "paVar2 = reg_section" identifier = identifier) ;) (while_statement "while( true ) {\n    if (((uint)s->sy_flags & 1) != 0) {\n      if ((segT)s->bsym != paVar2) {\n        return;\n      }\n      s = (s->sy_value).X_op_symbol;\n    }\n    bVar1 = *(byte *)&s->sy_flags;\n    *(byte *)&s->sy_flags = bVar1 | 0x20;\n    psVar3 = s;\n    if ((bVar1 & 1) != 0) {\n      if (paVar2 != (segT)s->bsym) {\n        return;\n      }\n      psVar3 = (s->sy_value).X_op_symbol;\n    }\n    if (((psVar3->sy_flags).field_0x1 & 2) == 0) break;\n    s = (s->sy_value).X_add_symbol;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (((uint)s->sy_flags & 1) != 0) {\n      if ((segT)s->bsym != paVar2) {\n        return;\n      }\n      s = (s->sy_value).X_op_symbol;\n    }\n    bVar1 = *(byte *)&s->sy_flags;\n    *(byte *)&s->sy_flags = bVar1 | 0x20;\n    psVar3 = s;\n    if ((bVar1 & 1) != 0) {\n      if (paVar2 != (segT)s->bsym) {\n        return;\n      }\n      psVar3 = (s->sy_value).X_op_symbol;\n    }\n    if (((psVar3->sy_flags).field_0x1 & 2) == 0) break;\n    s = (s->sy_value).X_add_symbol;\n  }" { (if_statement "if (((uint)s->sy_flags & 1) != 0) {\n      if ((segT)s->bsym != paVar2) {\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 != paVar2) {\n        return;\n      }\n      s = (s->sy_value).X_op_symbol;\n    }" { (if_statement "if ((segT)s->bsym != paVar2) {\n        return;\n      }" if (parenthesized_expression "((segT)s->bsym != paVar2)" ( (binary_expression "(segT)s->bsym != paVar2" (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 = *(byte *)&s->sy_flags;" (assignment_expression "bVar1 = *(byte *)&s->sy_flags" identifier = (pointer_expression "*(byte *)&s->sy_flags" * (cast_expression "(byte *)&s->sy_flags" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&s->sy_flags" & (field_expression "s->sy_flags" identifier -> field_identifier))))) ;) (expression_statement "*(byte *)&s->sy_flags = bVar1 | 0x20;" (assignment_expression "*(byte *)&s->sy_flags = bVar1 | 0x20" (pointer_expression "*(byte *)&s->sy_flags" * (cast_expression "(byte *)&s->sy_flags" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&s->sy_flags" & (field_expression "s->sy_flags" identifier -> field_identifier)))) = (binary_expression "bVar1 | 0x20" identifier | number_literal)) ;) (expression_statement "psVar3 = s;" (assignment_expression "psVar3 = s" identifier = identifier) ;) (if_statement "if ((bVar1 & 1) != 0) {\n      if (paVar2 != (segT)s->bsym) {\n        return;\n      }\n      psVar3 = (s->sy_value).X_op_symbol;\n    }" if (parenthesized_expression "((bVar1 & 1) != 0)" ( (binary_expression "(bVar1 & 1) != 0" (parenthesized_expression "(bVar1 & 1)" ( (binary_expression "bVar1 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      if (paVar2 != (segT)s->bsym) {\n        return;\n      }\n      psVar3 = (s->sy_value).X_op_symbol;\n    }" { (if_statement "if (paVar2 != (segT)s->bsym) {\n        return;\n      }" if (parenthesized_expression "(paVar2 != (segT)s->bsym)" ( (binary_expression "paVar2 != (segT)s->bsym" identifier != (cast_expression "(segT)s->bsym" ( (type_descriptor "segT" type_identifier) ) (field_expression "s->bsym" identifier -> field_identifier))) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "psVar3 = (s->sy_value).X_op_symbol;" (assignment_expression "psVar3 = (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)) ;) })) (if_statement "if (((psVar3->sy_flags).field_0x1 & 2) == 0) break;" if (parenthesized_expression "(((psVar3->sy_flags).field_0x1 & 2) == 0)" ( (binary_expression "((psVar3->sy_flags).field_0x1 & 2) == 0" (parenthesized_expression "((psVar3->sy_flags).field_0x1 & 2)" ( (binary_expression "(psVar3->sy_flags).field_0x1 & 2" (field_expression "(psVar3->sy_flags).field_0x1" (parenthesized_expression "(psVar3->sy_flags)" ( (field_expression "psVar3->sy_flags" identifier -> field_identifier) )) . field_identifier) & number_literal) )) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "s = (s->sy_value).X_add_symbol;" (assignment_expression "s = (s->sy_value).X_add_symbol" identifier = (field_expression "(s->sy_value).X_add_symbol" (parenthesized_expression "(s->sy_value)" ( (field_expression "s->sy_value" identifier -> field_identifier) )) . field_identifier)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00038ab0(byte *param_1)\n\n{\n  byte bVar1;\n  int iVar2;\n  byte *pbVar3;\n  \n  iVar2 = DAT_00087fb4;\n  while( true ) {\n    if ((*param_1 & 1) != 0) {\n      if (*(int *)(param_1 + 4) != iVar2) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n    bVar1 = *param_1;\n    *param_1 = bVar1 | 0x20;\n    pbVar3 = param_1;\n    if ((bVar1 & 1) != 0) {\n      if (iVar2 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      pbVar3 = *(byte **)(param_1 + 0xc);\n    }\n    if ((pbVar3[1] & 2) == 0) break;\n    param_1 = *(byte **)(param_1 + 8);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00038ab0(byte *param_1)\n\n{\n  byte bVar1;\n  int iVar2;\n  byte *pbVar3;\n  \n  iVar2 = DAT_00087fb4;\n  while( true ) {\n    if ((*param_1 & 1) != 0) {\n      if (*(int *)(param_1 + 4) != iVar2) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n    bVar1 = *param_1;\n    *param_1 = bVar1 | 0x20;\n    pbVar3 = param_1;\n    if ((bVar1 & 1) != 0) {\n      if (iVar2 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      pbVar3 = *(byte **)(param_1 + 0xc);\n    }\n    if ((pbVar3[1] & 2) == 0) break;\n    param_1 = *(byte **)(param_1 + 8);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00038ab0(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  byte *pbVar3;\n  \n  iVar2 = DAT_00087fb4;\n  while( true ) {\n    if ((*param_1 & 1) != 0) {\n      if (*(int *)(param_1 + 4) != iVar2) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n    bVar1 = *param_1;\n    *param_1 = bVar1 | 0x20;\n    pbVar3 = param_1;\n    if ((bVar1 & 1) != 0) {\n      if (iVar2 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      pbVar3 = *(byte **)(param_1 + 0xc);\n    }\n    if ((pbVar3[1] & 2) == 0) break;\n    param_1 = *(byte **)(param_1 + 8);\n  }\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (expression_statement "iVar2 = DAT_00087fb4;" (assignment_expression "iVar2 = DAT_00087fb4" identifier = identifier) ;) (while_statement "while( true ) {\n    if ((*param_1 & 1) != 0) {\n      if (*(int *)(param_1 + 4) != iVar2) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n    bVar1 = *param_1;\n    *param_1 = bVar1 | 0x20;\n    pbVar3 = param_1;\n    if ((bVar1 & 1) != 0) {\n      if (iVar2 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      pbVar3 = *(byte **)(param_1 + 0xc);\n    }\n    if ((pbVar3[1] & 2) == 0) break;\n    param_1 = *(byte **)(param_1 + 8);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if ((*param_1 & 1) != 0) {\n      if (*(int *)(param_1 + 4) != iVar2) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n    bVar1 = *param_1;\n    *param_1 = bVar1 | 0x20;\n    pbVar3 = param_1;\n    if ((bVar1 & 1) != 0) {\n      if (iVar2 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      pbVar3 = *(byte **)(param_1 + 0xc);\n    }\n    if ((pbVar3[1] & 2) == 0) break;\n    param_1 = *(byte **)(param_1 + 8);\n  }" { (if_statement "if ((*param_1 & 1) != 0) {\n      if (*(int *)(param_1 + 4) != iVar2) {\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) != iVar2) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n    }" { (if_statement "if (*(int *)(param_1 + 4) != iVar2) {\n        return;\n      }" if (parenthesized_expression "(*(int *)(param_1 + 4) != iVar2)" ( (binary_expression "*(int *)(param_1 + 4) != iVar2" (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) ))))) ;) })) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "*param_1 = bVar1 | 0x20;" (assignment_expression "*param_1 = bVar1 | 0x20" (pointer_expression "*param_1" * identifier) = (binary_expression "bVar1 | 0x20" identifier | number_literal)) ;) (expression_statement "pbVar3 = param_1;" (assignment_expression "pbVar3 = param_1" identifier = identifier) ;) (if_statement "if ((bVar1 & 1) != 0) {\n      if (iVar2 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      pbVar3 = *(byte **)(param_1 + 0xc);\n    }" if (parenthesized_expression "((bVar1 & 1) != 0)" ( (binary_expression "(bVar1 & 1) != 0" (parenthesized_expression "(bVar1 & 1)" ( (binary_expression "bVar1 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      if (iVar2 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      pbVar3 = *(byte **)(param_1 + 0xc);\n    }" { (if_statement "if (iVar2 != *(int *)(param_1 + 4)) {\n        return;\n      }" if (parenthesized_expression "(iVar2 != *(int *)(param_1 + 4))" ( (binary_expression "iVar2 != *(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) ))))) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "pbVar3 = *(byte **)(param_1 + 0xc);" (assignment_expression "pbVar3 = *(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 ((pbVar3[1] & 2) == 0) break;" if (parenthesized_expression "((pbVar3[1] & 2) == 0)" ( (binary_expression "(pbVar3[1] & 2) == 0" (parenthesized_expression "(pbVar3[1] & 2)" ( (binary_expression "pbVar3[1] & 2" (subscript_expression "pbVar3[1]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "param_1 = *(byte **)(param_1 + 8);" (assignment_expression "param_1 = *(byte **)(param_1 + 8)" identifier = (pointer_expression "*(byte **)(param_1 + 8)" * (cast_expression "(byte **)(param_1 + 8)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) & LIT) )) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) )) (compound_statement { (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) ))))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT | LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (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) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00038ab0(byte *param_1)\n\n{\n  byte bVar1;\n  int iVar2;\n  byte *pbVar3;\n  \n  iVar2 = DAT_00087fb4;\n  while( true ) {\n    if ((*param_1 & 1) != 0) {\n      if (*(int *)(param_1 + 4) != iVar2) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n    bVar1 = *param_1;\n    *param_1 = bVar1 | 0x20;\n    pbVar3 = param_1;\n    if ((bVar1 & 1) != 0) {\n      if (iVar2 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      pbVar3 = *(byte **)(param_1 + 0xc);\n    }\n    if ((pbVar3[1] & 2) == 0) break;\n    param_1 = *(byte **)(param_1 + 8);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00038ab0(byte *param_1)" (identifier "FUN_00038ab0") (parameter_list "(byte *param_1)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  byte *pbVar3;\n  \n  iVar2 = DAT_00087fb4;\n  while( true ) {\n    if ((*param_1 & 1) != 0) {\n      if (*(int *)(param_1 + 4) != iVar2) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n    bVar1 = *param_1;\n    *param_1 = bVar1 | 0x20;\n    pbVar3 = param_1;\n    if ((bVar1 & 1) != 0) {\n      if (iVar2 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      pbVar3 = *(byte **)(param_1 + 0xc);\n    }\n    if ((pbVar3[1] & 2) == 0) break;\n    param_1 = *(byte **)(param_1 + 8);\n  }\n  return;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (expression_statement "iVar2 = DAT_00087fb4;" (assignment_expression "iVar2 = DAT_00087fb4" (identifier "iVar2") (= "=") (identifier "DAT_00087fb4")) (; ";")) (while_statement "while( true ) {\n    if ((*param_1 & 1) != 0) {\n      if (*(int *)(param_1 + 4) != iVar2) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n    bVar1 = *param_1;\n    *param_1 = bVar1 | 0x20;\n    pbVar3 = param_1;\n    if ((bVar1 & 1) != 0) {\n      if (iVar2 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      pbVar3 = *(byte **)(param_1 + 0xc);\n    }\n    if ((pbVar3[1] & 2) == 0) break;\n    param_1 = *(byte **)(param_1 + 8);\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    if ((*param_1 & 1) != 0) {\n      if (*(int *)(param_1 + 4) != iVar2) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n    bVar1 = *param_1;\n    *param_1 = bVar1 | 0x20;\n    pbVar3 = param_1;\n    if ((bVar1 & 1) != 0) {\n      if (iVar2 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      pbVar3 = *(byte **)(param_1 + 0xc);\n    }\n    if ((pbVar3[1] & 2) == 0) break;\n    param_1 = *(byte **)(param_1 + 8);\n  }" ({ "{") (if_statement "if ((*param_1 & 1) != 0) {\n      if (*(int *)(param_1 + 4) != iVar2) {\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) != iVar2) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n    }" ({ "{") (if_statement "if (*(int *)(param_1 + 4) != iVar2) {\n        return;\n      }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 4) != iVar2)" (( "(") (binary_expression "*(int *)(param_1 + 4) != iVar2" (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 "iVar2")) () ")")) (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")) () ")"))))) (; ";")) (} "}"))) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" (identifier "bVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "*param_1 = bVar1 | 0x20;" (assignment_expression "*param_1 = bVar1 | 0x20" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "bVar1 | 0x20" (identifier "bVar1") (| "|") (number_literal "0x20"))) (; ";")) (expression_statement "pbVar3 = param_1;" (assignment_expression "pbVar3 = param_1" (identifier "pbVar3") (= "=") (identifier "param_1")) (; ";")) (if_statement "if ((bVar1 & 1) != 0) {\n      if (iVar2 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      pbVar3 = *(byte **)(param_1 + 0xc);\n    }" (if "if") (parenthesized_expression "((bVar1 & 1) != 0)" (( "(") (binary_expression "(bVar1 & 1) != 0" (parenthesized_expression "(bVar1 & 1)" (( "(") (binary_expression "bVar1 & 1" (identifier "bVar1") (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (iVar2 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      pbVar3 = *(byte **)(param_1 + 0xc);\n    }" ({ "{") (if_statement "if (iVar2 != *(int *)(param_1 + 4)) {\n        return;\n      }" (if "if") (parenthesized_expression "(iVar2 != *(int *)(param_1 + 4))" (( "(") (binary_expression "iVar2 != *(int *)(param_1 + 4)" (identifier "iVar2") (!= "!=") (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")) () ")"))))) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "pbVar3 = *(byte **)(param_1 + 0xc);" (assignment_expression "pbVar3 = *(byte **)(param_1 + 0xc)" (identifier "pbVar3") (= "=") (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 ((pbVar3[1] & 2) == 0) break;" (if "if") (parenthesized_expression "((pbVar3[1] & 2) == 0)" (( "(") (binary_expression "(pbVar3[1] & 2) == 0" (parenthesized_expression "(pbVar3[1] & 2)" (( "(") (binary_expression "pbVar3[1] & 2" (subscript_expression "pbVar3[1]" (identifier "pbVar3") ([ "[") (number_literal "1") (] "]")) (& "&") (number_literal "2")) () ")")) (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "param_1 = *(byte **)(param_1 + 8);" (assignment_expression "param_1 = *(byte **)(param_1 + 8)" (identifier "param_1") (= "=") (pointer_expression "*(byte **)(param_1 + 8)" (* "*") (cast_expression "(byte **)(param_1 + 8)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (} "}"))) (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_1;
  type_1 *psVar3;
  
  var_1 = reg_section;
  while( true ) {
    if (((type_4)s->sy_flags & 1) != 0) {
      if ((type_3)s->bsym != var_1) {
        return;
      }
      s = (s->sy_value).X_op_symbol;
    }
    var_2 = *(type_2 *)&s->sy_flags;
    *(type_2 *)&s->sy_flags = var_2 | 0x20;
    psVar3 = s;
    if ((var_2 & 1) != 0) {
      if (var_1 != (type_3)s->bsym) {
        return;
      }
      psVar3 = (s->sy_value).X_op_symbol;
    }
    if (((psVar3->sy_flags).field_0x1 & 2) == 0) break;
    s = (s->sy_value).X_add_symbol;
  }
  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)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) consequence: (compound_statement (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))))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_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))))))) 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: (break_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))))))))) (return_statement))))

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

void MASKED(byte *param_1)

{
  byte bVar1;
  int iVar2;
  byte *pbVar3;
  
  iVar2 = DAT_00087fb4;
  while( true ) {
    if ((*param_1 & 1) != 0) {
      if (*(int *)(param_1 + 4) != iVar2) {
        return;
      }
      param_1 = *(byte **)(param_1 + 0xc);
    }
    bVar1 = *param_1;
    *param_1 = bVar1 | 0x20;
    pbVar3 = param_1;
    if ((bVar1 & 1) != 0) {
      if (iVar2 != *(int *)(param_1 + 4)) {
        return;
      }
      pbVar3 = *(byte **)(param_1 + 0xc);
    }
    if ((pbVar3[1] & 2) == 0) break;
    param_1 = *(byte **)(param_1 + 8);
  }
  return;
}

