
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* WARNING: Enum "ELFOSABI": Some values do not have unique names */
/* DWARF original prototype: void lock(File_read * this, Task * task) */

void __thiscall gold::File_read::lock(File_read *this,Task *task)

{
  Task *unaff_EBX;
  Task_token *unaff_ESI;
  Task_token *this_00;
  
  this_00 = (Task_token *)0x83927;
  if (this->released_ == false) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/fileread.cc",0x127,"lock");
  }
  if ((parameters->options_ != (General_options *)0x0) && ((parameters->debug_ & 4) != 0)) {
    Errors::debug(parameters->errors_,"Locking file \"%s\"",(this->name_)._M_dataplus._M_p);
  }
  if (((this->token_).is_blocker_ == false) && ((this->token_).writer_ == (Task *)0x0)) {
    this->released_ = false;
    (this->token_).writer_ = task;
    return;
  }
                    /* WARNING: Subroutine does not return */
  Task_token::add_writer(this_00,unaff_EBX,unaff_ESI);
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void FUN_00083920(undefined4 *param_1,undefined4 param_2)

{
  undefined4 in_ECX;
  undefined4 extraout_ECX;
  
  if (*(char *)(param_1 + 0x1a) != '\0') {
    if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {
      FUN_00082810(*DAT_0033f2f0,"Locking file \"%s\"",*param_1);
    }
    if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {
      *(undefined1 *)(param_1 + 0x1a) = 0;
      param_1[0xd] = param_2;
      return;
    }
    FUN_00083500();
    in_ECX = extraout_ECX;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0008b620("../../gold/fileread.cc",0x127,&DAT_002529a8,in_ECX);
}


PUSH ESI
PUSH EBX
CALL 0x00035680
ADD EBX,0x2bb6d9
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
CMP byte ptr [ESI + 0x68],0x0
JZ 0x0008398d
LEA EAX,[EBX + 0x2f0]
MOV EAX,dword ptr [EAX]
MOV EDX,dword ptr [EAX + 0x8]
TEST EDX,EDX
JZ 0x0008394f
TEST byte ptr [EAX + 0x14],0x4
JNZ 0x00083970
CMP byte ptr [ESI + 0x2c],0x0
JNZ 0x00083988
MOV EAX,dword ptr [ESI + 0x34]
TEST EAX,EAX
JNZ 0x00083988
MOV EAX,dword ptr [ESP + 0x14]
MOV byte ptr [ESI + 0x68],0x0
MOV dword ptr [ESI + 0x34],EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
SUB ESP,0x4
LEA EDX,[EBX + 0xfff1370c]
PUSH dword ptr [ESI]
PUSH EDX
PUSH dword ptr [EAX]
CALL 0x00082810
ADD ESP,0x10
JMP 0x0008394f
CALL 0x00083500
LEA EAX,[EBX + 0xfff139a8]
PUSH ECX
PUSH EAX
LEA EAX,[EBX + 0xfff13698]
PUSH 0x127
PUSH EAX
CALL 0x0008b620
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00083920(undefined4 *param_1,undefined4 param_2)\n\n{\n  undefined4 in_ECX;\n  undefined4 extraout_ECX;\n  \n  if (*(char *)(param_1 + 0x1a) != '\0') {\n    if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {\n      FUN_00082810(*DAT_0033f2f0,"Locking file \"%s\"",*param_1);\n    }\n    if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {\n      *(undefined1 *)(param_1 + 0x1a) = 0;\n      param_1[0xd] = param_2;\n      return;\n    }\n    FUN_00083500();\n    in_ECX = extraout_ECX;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0008b620("../../gold/fileread.cc",0x127,&DAT_002529a8,in_ECX);\n}\n\n" comment (function_definition "void FUN_00083920(undefined4 *param_1,undefined4 param_2)\n\n{\n  undefined4 in_ECX;\n  undefined4 extraout_ECX;\n  \n  if (*(char *)(param_1 + 0x1a) != '\0') {\n    if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {\n      FUN_00082810(*DAT_0033f2f0,"Locking file \"%s\"",*param_1);\n    }\n    if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {\n      *(undefined1 *)(param_1 + 0x1a) = 0;\n      param_1[0xd] = param_2;\n      return;\n    }\n    FUN_00083500();\n    in_ECX = extraout_ECX;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0008b620("../../gold/fileread.cc",0x127,&DAT_002529a8,in_ECX);\n}" primitive_type (function_declarator "FUN_00083920(undefined4 *param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 in_ECX;\n  undefined4 extraout_ECX;\n  \n  if (*(char *)(param_1 + 0x1a) != '\0') {\n    if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {\n      FUN_00082810(*DAT_0033f2f0,"Locking file \"%s\"",*param_1);\n    }\n    if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {\n      *(undefined1 *)(param_1 + 0x1a) = 0;\n      param_1[0xd] = param_2;\n      return;\n    }\n    FUN_00083500();\n    in_ECX = extraout_ECX;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0008b620("../../gold/fileread.cc",0x127,&DAT_002529a8,in_ECX);\n}" { (declaration "undefined4 in_ECX;" type_identifier identifier ;) (declaration "undefined4 extraout_ECX;" type_identifier identifier ;) (if_statement "if (*(char *)(param_1 + 0x1a) != '\0') {\n    if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {\n      FUN_00082810(*DAT_0033f2f0,"Locking file \"%s\"",*param_1);\n    }\n    if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {\n      *(undefined1 *)(param_1 + 0x1a) = 0;\n      param_1[0xd] = param_2;\n      return;\n    }\n    FUN_00083500();\n    in_ECX = extraout_ECX;\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0x1a) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x1a) != '\0'" (pointer_expression "*(char *)(param_1 + 0x1a)" * (cast_expression "(char *)(param_1 + 0x1a)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1a)" ( (binary_expression "param_1 + 0x1a" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {\n      FUN_00082810(*DAT_0033f2f0,"Locking file \"%s\"",*param_1);\n    }\n    if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {\n      *(undefined1 *)(param_1 + 0x1a) = 0;\n      param_1[0xd] = param_2;\n      return;\n    }\n    FUN_00083500();\n    in_ECX = extraout_ECX;\n  }" { (if_statement "if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {\n      FUN_00082810(*DAT_0033f2f0,"Locking file \"%s\"",*param_1);\n    }" if (parenthesized_expression "((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0))" ( (binary_expression "(DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)" (parenthesized_expression "(DAT_0033f2f0[2] != 0)" ( (binary_expression "DAT_0033f2f0[2] != 0" (subscript_expression "DAT_0033f2f0[2]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)" ( (binary_expression "(*(byte *)(DAT_0033f2f0 + 5) & 4) != 0" (parenthesized_expression "(*(byte *)(DAT_0033f2f0 + 5) & 4)" ( (binary_expression "*(byte *)(DAT_0033f2f0 + 5) & 4" (pointer_expression "*(byte *)(DAT_0033f2f0 + 5)" * (cast_expression "(byte *)(DAT_0033f2f0 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0033f2f0 + 5)" ( (binary_expression "DAT_0033f2f0 + 5" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n      FUN_00082810(*DAT_0033f2f0,"Locking file \"%s\"",*param_1);\n    }" { (expression_statement "FUN_00082810(*DAT_0033f2f0,"Locking file \"%s\"",*param_1);" (call_expression "FUN_00082810(*DAT_0033f2f0,"Locking file \"%s\"",*param_1)" identifier (argument_list "(*DAT_0033f2f0,"Locking file \"%s\"",*param_1)" ( (pointer_expression "*DAT_0033f2f0" * identifier) , (string_literal ""Locking file \"%s\""" " string_content escape_sequence string_content escape_sequence ") , (pointer_expression "*param_1" * identifier) ))) ;) })) (if_statement "if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {\n      *(undefined1 *)(param_1 + 0x1a) = 0;\n      param_1[0xd] = param_2;\n      return;\n    }" if (parenthesized_expression "((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0))" ( (binary_expression "(*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)" (parenthesized_expression "(*(char *)(param_1 + 0xb) == '\0')" ( (binary_expression "*(char *)(param_1 + 0xb) == '\0'" (pointer_expression "*(char *)(param_1 + 0xb)" * (cast_expression "(char *)(param_1 + 0xb)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb)" ( (binary_expression "param_1 + 0xb" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(param_1[0xd] == 0)" ( (binary_expression "param_1[0xd] == 0" (subscript_expression "param_1[0xd]" identifier [ number_literal ]) == number_literal) ))) )) (compound_statement "{\n      *(undefined1 *)(param_1 + 0x1a) = 0;\n      param_1[0xd] = param_2;\n      return;\n    }" { (expression_statement "*(undefined1 *)(param_1 + 0x1a) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0x1a) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0x1a)" * (cast_expression "(undefined1 *)(param_1 + 0x1a)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1a)" ( (binary_expression "param_1 + 0x1a" identifier + number_literal) )))) = number_literal) ;) (expression_statement "param_1[0xd] = param_2;" (assignment_expression "param_1[0xd] = param_2" (subscript_expression "param_1[0xd]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00083500();" (call_expression "FUN_00083500()" identifier (argument_list "()" ( ))) ;) (expression_statement "in_ECX = extraout_ECX;" (assignment_expression "in_ECX = extraout_ECX" identifier = identifier) ;) })) comment (expression_statement "FUN_0008b620("../../gold/fileread.cc",0x127,&DAT_002529a8,in_ECX);" (call_expression "FUN_0008b620("../../gold/fileread.cc",0x127,&DAT_002529a8,in_ECX)" identifier (argument_list "("../../gold/fileread.cc",0x127,&DAT_002529a8,in_ECX)" ( (string_literal ""../../gold/fileread.cc"" " string_content ") , number_literal , (pointer_expression "&DAT_002529a8" & identifier) , identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* WARNING: Enum "ELFOSABI": Some values do not have unique names */\n/* DWARF original prototype: void lock(File_read * this, Task * task) */\n\nvoid __thiscall gold::File_read::lock(File_read *this,Task *task)\n\n{\n  Task *unaff_EBX;\n  Task_token *unaff_ESI;\n  Task_token *this_00;\n  \n  this_00 = (Task_token *)0x83927;\n  if (this->released_ == false) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/fileread.cc",0x127,"lock");\n  }\n  if ((parameters->options_ != (General_options *)0x0) && ((parameters->debug_ & 4) != 0)) {\n    Errors::debug(parameters->errors_,"Locking file \"%s\"",(this->name_)._M_dataplus._M_p);\n  }\n  if (((this->token_).is_blocker_ == false) && ((this->token_).writer_ == (Task *)0x0)) {\n    this->released_ = false;\n    (this->token_).writer_ = task;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  Task_token::add_writer(this_00,unaff_EBX,unaff_ESI);\n}\n\n" comment comment comment comment (function_definition "void __thiscall gold::File_read::lock(File_read *this,Task *task)\n\n{\n  Task *unaff_EBX;\n  Task_token *unaff_ESI;\n  Task_token *this_00;\n  \n  this_00 = (Task_token *)0x83927;\n  if (this->released_ == false) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/fileread.cc",0x127,"lock");\n  }\n  if ((parameters->options_ != (General_options *)0x0) && ((parameters->debug_ & 4) != 0)) {\n    Errors::debug(parameters->errors_,"Locking file \"%s\"",(this->name_)._M_dataplus._M_p);\n  }\n  if (((this->token_).is_blocker_ == false) && ((this->token_).writer_ == (Task *)0x0)) {\n    this->released_ = false;\n    (this->token_).writer_ = task;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  Task_token::add_writer(this_00,unaff_EBX,unaff_ESI);\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::File_read::" identifier : : identifier : :) (function_declarator "lock(File_read *this,Task *task)" identifier (parameter_list "(File_read *this,Task *task)" ( (parameter_declaration "File_read *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Task *task" type_identifier (pointer_declarator "*task" * identifier)) ))) (compound_statement "{\n  Task *unaff_EBX;\n  Task_token *unaff_ESI;\n  Task_token *this_00;\n  \n  this_00 = (Task_token *)0x83927;\n  if (this->released_ == false) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/fileread.cc",0x127,"lock");\n  }\n  if ((parameters->options_ != (General_options *)0x0) && ((parameters->debug_ & 4) != 0)) {\n    Errors::debug(parameters->errors_,"Locking file \"%s\"",(this->name_)._M_dataplus._M_p);\n  }\n  if (((this->token_).is_blocker_ == false) && ((this->token_).writer_ == (Task *)0x0)) {\n    this->released_ = false;\n    (this->token_).writer_ = task;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  Task_token::add_writer(this_00,unaff_EBX,unaff_ESI);\n}" { (declaration "Task *unaff_EBX;" type_identifier (pointer_declarator "*unaff_EBX" * identifier) ;) (declaration "Task_token *unaff_ESI;" type_identifier (pointer_declarator "*unaff_ESI" * identifier) ;) (declaration "Task_token *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (expression_statement "this_00 = (Task_token *)0x83927;" (assignment_expression "this_00 = (Task_token *)0x83927" identifier = (cast_expression "(Task_token *)0x83927" ( (type_descriptor "Task_token *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (this->released_ == false) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/fileread.cc",0x127,"lock");\n  }" if (parenthesized_expression "(this->released_ == false)" ( (binary_expression "this->released_ == false" (field_expression "this->released_" identifier -> field_identifier) == false) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/fileread.cc",0x127,"lock");\n  }" { comment (expression_statement "do_gold_unreachable("../../gold/fileread.cc",0x127,"lock");" (call_expression "do_gold_unreachable("../../gold/fileread.cc",0x127,"lock")" identifier (argument_list "("../../gold/fileread.cc",0x127,"lock")" ( (string_literal ""../../gold/fileread.cc"" " string_content ") , number_literal , (string_literal ""lock"" " string_content ") ))) ;) })) (if_statement "if ((parameters->options_ != (General_options *)0x0) && ((parameters->debug_ & 4) != 0)) {\n    Errors::debug(parameters->errors_,"Locking file \"%s\"",(this->name_)._M_dataplus._M_p);\n  }" if (parenthesized_expression "((parameters->options_ != (General_options *)0x0) && ((parameters->debug_ & 4) != 0))" ( (binary_expression "(parameters->options_ != (General_options *)0x0) && ((parameters->debug_ & 4) != 0)" (parenthesized_expression "(parameters->options_ != (General_options *)0x0)" ( (binary_expression "parameters->options_ != (General_options *)0x0" (field_expression "parameters->options_" identifier -> field_identifier) != (cast_expression "(General_options *)0x0" ( (type_descriptor "General_options *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "((parameters->debug_ & 4) != 0)" ( (binary_expression "(parameters->debug_ & 4) != 0" (parenthesized_expression "(parameters->debug_ & 4)" ( (binary_expression "parameters->debug_ & 4" (field_expression "parameters->debug_" identifier -> field_identifier) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    Errors::debug(parameters->errors_,"Locking file \"%s\"",(this->name_)._M_dataplus._M_p);\n  }" { (labeled_statement "Errors::debug(parameters->errors_,"Locking file \"%s\"",(this->name_)._M_dataplus._M_p);" statement_identifier : (ERROR ":" :) (expression_statement "debug(parameters->errors_,"Locking file \"%s\"",(this->name_)._M_dataplus._M_p);" (call_expression "debug(parameters->errors_,"Locking file \"%s\"",(this->name_)._M_dataplus._M_p)" identifier (argument_list "(parameters->errors_,"Locking file \"%s\"",(this->name_)._M_dataplus._M_p)" ( (field_expression "parameters->errors_" identifier -> field_identifier) , (string_literal ""Locking file \"%s\""" " string_content escape_sequence string_content escape_sequence ") , (field_expression "(this->name_)._M_dataplus._M_p" (field_expression "(this->name_)._M_dataplus" (parenthesized_expression "(this->name_)" ( (field_expression "this->name_" identifier -> field_identifier) )) . field_identifier) . field_identifier) ))) ;)) })) (if_statement "if (((this->token_).is_blocker_ == false) && ((this->token_).writer_ == (Task *)0x0)) {\n    this->released_ = false;\n    (this->token_).writer_ = task;\n    return;\n  }" if (parenthesized_expression "(((this->token_).is_blocker_ == false) && ((this->token_).writer_ == (Task *)0x0))" ( (binary_expression "((this->token_).is_blocker_ == false) && ((this->token_).writer_ == (Task *)0x0)" (parenthesized_expression "((this->token_).is_blocker_ == false)" ( (binary_expression "(this->token_).is_blocker_ == false" (field_expression "(this->token_).is_blocker_" (parenthesized_expression "(this->token_)" ( (field_expression "this->token_" identifier -> field_identifier) )) . field_identifier) == false) )) && (parenthesized_expression "((this->token_).writer_ == (Task *)0x0)" ( (binary_expression "(this->token_).writer_ == (Task *)0x0" (field_expression "(this->token_).writer_" (parenthesized_expression "(this->token_)" ( (field_expression "this->token_" identifier -> field_identifier) )) . field_identifier) == (cast_expression "(Task *)0x0" ( (type_descriptor "Task *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    this->released_ = false;\n    (this->token_).writer_ = task;\n    return;\n  }" { (expression_statement "this->released_ = false;" (assignment_expression "this->released_ = false" (field_expression "this->released_" identifier -> field_identifier) = false) ;) (expression_statement "(this->token_).writer_ = task;" (assignment_expression "(this->token_).writer_ = task" (field_expression "(this->token_).writer_" (parenthesized_expression "(this->token_)" ( (field_expression "this->token_" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (return_statement "return;" return ;) })) comment (labeled_statement "Task_token::add_writer(this_00,unaff_EBX,unaff_ESI);" statement_identifier : (ERROR ":" :) (expression_statement "add_writer(this_00,unaff_EBX,unaff_ESI);" (call_expression "add_writer(this_00,unaff_EBX,unaff_ESI)" identifier (argument_list "(this_00,unaff_EBX,unaff_ESI)" ( identifier , identifier , identifier ))) ;)) })))
(translation_unit "void FUN_00083920(undefined4 *param_1,undefined4 param_2)\n\n{\n  undefined4 in_ECX;\n  undefined4 extraout_ECX;\n  \n  if (*(char *)(param_1 + 0x1a) != '\0') {\n    if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {\n      FUN_00082810(*DAT_0033f2f0,"Locking file \"%s\"",*param_1);\n    }\n    if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {\n      *(undefined1 *)(param_1 + 0x1a) = 0;\n      param_1[0xd] = param_2;\n      return;\n    }\n    FUN_00083500();\n    in_ECX = extraout_ECX;\n  }\n                    \n  FUN_0008b620("../../gold/fileread.cc",0x127,&DAT_002529a8,in_ECX);\n}\n\n" (function_definition "void FUN_00083920(undefined4 *param_1,undefined4 param_2)\n\n{\n  undefined4 in_ECX;\n  undefined4 extraout_ECX;\n  \n  if (*(char *)(param_1 + 0x1a) != '\0') {\n    if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {\n      FUN_00082810(*DAT_0033f2f0,"Locking file \"%s\"",*param_1);\n    }\n    if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {\n      *(undefined1 *)(param_1 + 0x1a) = 0;\n      param_1[0xd] = param_2;\n      return;\n    }\n    FUN_00083500();\n    in_ECX = extraout_ECX;\n  }\n                    \n  FUN_0008b620("../../gold/fileread.cc",0x127,&DAT_002529a8,in_ECX);\n}" primitive_type (function_declarator "FUN_00083920(undefined4 *param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 in_ECX;\n  undefined4 extraout_ECX;\n  \n  if (*(char *)(param_1 + 0x1a) != '\0') {\n    if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {\n      FUN_00082810(*DAT_0033f2f0,"Locking file \"%s\"",*param_1);\n    }\n    if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {\n      *(undefined1 *)(param_1 + 0x1a) = 0;\n      param_1[0xd] = param_2;\n      return;\n    }\n    FUN_00083500();\n    in_ECX = extraout_ECX;\n  }\n                    \n  FUN_0008b620("../../gold/fileread.cc",0x127,&DAT_002529a8,in_ECX);\n}" { (declaration "undefined4 in_ECX;" type_identifier identifier ;) (declaration "undefined4 extraout_ECX;" type_identifier identifier ;) (if_statement "if (*(char *)(param_1 + 0x1a) != '\0') {\n    if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {\n      FUN_00082810(*DAT_0033f2f0,"Locking file \"%s\"",*param_1);\n    }\n    if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {\n      *(undefined1 *)(param_1 + 0x1a) = 0;\n      param_1[0xd] = param_2;\n      return;\n    }\n    FUN_00083500();\n    in_ECX = extraout_ECX;\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0x1a) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x1a) != '\0'" (pointer_expression "*(char *)(param_1 + 0x1a)" * (cast_expression "(char *)(param_1 + 0x1a)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1a)" ( (binary_expression "param_1 + 0x1a" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {\n      FUN_00082810(*DAT_0033f2f0,"Locking file \"%s\"",*param_1);\n    }\n    if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {\n      *(undefined1 *)(param_1 + 0x1a) = 0;\n      param_1[0xd] = param_2;\n      return;\n    }\n    FUN_00083500();\n    in_ECX = extraout_ECX;\n  }" { (if_statement "if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {\n      FUN_00082810(*DAT_0033f2f0,"Locking file \"%s\"",*param_1);\n    }" if (parenthesized_expression "((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0))" ( (binary_expression "(DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)" (parenthesized_expression "(DAT_0033f2f0[2] != 0)" ( (binary_expression "DAT_0033f2f0[2] != 0" (subscript_expression "DAT_0033f2f0[2]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)" ( (binary_expression "(*(byte *)(DAT_0033f2f0 + 5) & 4) != 0" (parenthesized_expression "(*(byte *)(DAT_0033f2f0 + 5) & 4)" ( (binary_expression "*(byte *)(DAT_0033f2f0 + 5) & 4" (pointer_expression "*(byte *)(DAT_0033f2f0 + 5)" * (cast_expression "(byte *)(DAT_0033f2f0 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0033f2f0 + 5)" ( (binary_expression "DAT_0033f2f0 + 5" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n      FUN_00082810(*DAT_0033f2f0,"Locking file \"%s\"",*param_1);\n    }" { (expression_statement "FUN_00082810(*DAT_0033f2f0,"Locking file \"%s\"",*param_1);" (call_expression "FUN_00082810(*DAT_0033f2f0,"Locking file \"%s\"",*param_1)" identifier (argument_list "(*DAT_0033f2f0,"Locking file \"%s\"",*param_1)" ( (pointer_expression "*DAT_0033f2f0" * identifier) , (string_literal ""Locking file \"%s\""" " string_content escape_sequence string_content escape_sequence ") , (pointer_expression "*param_1" * identifier) ))) ;) })) (if_statement "if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {\n      *(undefined1 *)(param_1 + 0x1a) = 0;\n      param_1[0xd] = param_2;\n      return;\n    }" if (parenthesized_expression "((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0))" ( (binary_expression "(*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)" (parenthesized_expression "(*(char *)(param_1 + 0xb) == '\0')" ( (binary_expression "*(char *)(param_1 + 0xb) == '\0'" (pointer_expression "*(char *)(param_1 + 0xb)" * (cast_expression "(char *)(param_1 + 0xb)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb)" ( (binary_expression "param_1 + 0xb" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(param_1[0xd] == 0)" ( (binary_expression "param_1[0xd] == 0" (subscript_expression "param_1[0xd]" identifier [ number_literal ]) == number_literal) ))) )) (compound_statement "{\n      *(undefined1 *)(param_1 + 0x1a) = 0;\n      param_1[0xd] = param_2;\n      return;\n    }" { (expression_statement "*(undefined1 *)(param_1 + 0x1a) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0x1a) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0x1a)" * (cast_expression "(undefined1 *)(param_1 + 0x1a)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1a)" ( (binary_expression "param_1 + 0x1a" identifier + number_literal) )))) = number_literal) ;) (expression_statement "param_1[0xd] = param_2;" (assignment_expression "param_1[0xd] = param_2" (subscript_expression "param_1[0xd]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00083500();" (call_expression "FUN_00083500()" identifier (argument_list "()" ( ))) ;) (expression_statement "in_ECX = extraout_ECX;" (assignment_expression "in_ECX = extraout_ECX" identifier = identifier) ;) })) (expression_statement "FUN_0008b620("../../gold/fileread.cc",0x127,&DAT_002529a8,in_ECX);" (call_expression "FUN_0008b620("../../gold/fileread.cc",0x127,&DAT_002529a8,in_ECX)" identifier (argument_list "("../../gold/fileread.cc",0x127,&DAT_002529a8,in_ECX)" ( (string_literal ""../../gold/fileread.cc"" " string_content ") , number_literal , (pointer_expression "&DAT_002529a8" & identifier) , 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 IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != 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 { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (string_literal " string_content escape_sequence string_content escape_sequence ") , (pointer_expression * IDENT) ))) ;) })) (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) )))) == (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (pointer_expression & IDENT) , IDENT ))) ;) })))
(function_definition "void FUN_00083920(undefined4 *param_1,undefined4 param_2)\n\n{\n  undefined4 in_ECX;\n  undefined4 extraout_ECX;\n  \n  if (*(char *)(param_1 + 0x1a) != '\0') {\n    if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {\n      FUN_00082810(*DAT_0033f2f0,"Locking file \"%s\"",*param_1);\n    }\n    if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {\n      *(undefined1 *)(param_1 + 0x1a) = 0;\n      param_1[0xd] = param_2;\n      return;\n    }\n    FUN_00083500();\n    in_ECX = extraout_ECX;\n  }\n                    \n  FUN_0008b620("../../gold/fileread.cc",0x127,&DAT_002529a8,in_ECX);\n}" (primitive_type "void") (function_declarator "FUN_00083920(undefined4 *param_1,undefined4 param_2)" (identifier "FUN_00083920") (parameter_list "(undefined4 *param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 in_ECX;\n  undefined4 extraout_ECX;\n  \n  if (*(char *)(param_1 + 0x1a) != '\0') {\n    if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {\n      FUN_00082810(*DAT_0033f2f0,"Locking file \"%s\"",*param_1);\n    }\n    if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {\n      *(undefined1 *)(param_1 + 0x1a) = 0;\n      param_1[0xd] = param_2;\n      return;\n    }\n    FUN_00083500();\n    in_ECX = extraout_ECX;\n  }\n                    \n  FUN_0008b620("../../gold/fileread.cc",0x127,&DAT_002529a8,in_ECX);\n}" ({ "{") (declaration "undefined4 in_ECX;" (type_identifier "undefined4") (identifier "in_ECX") (; ";")) (declaration "undefined4 extraout_ECX;" (type_identifier "undefined4") (identifier "extraout_ECX") (; ";")) (if_statement "if (*(char *)(param_1 + 0x1a) != '\0') {\n    if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {\n      FUN_00082810(*DAT_0033f2f0,"Locking file \"%s\"",*param_1);\n    }\n    if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {\n      *(undefined1 *)(param_1 + 0x1a) = 0;\n      param_1[0xd] = param_2;\n      return;\n    }\n    FUN_00083500();\n    in_ECX = extraout_ECX;\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0x1a) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0x1a) != '\0'" (pointer_expression "*(char *)(param_1 + 0x1a)" (* "*") (cast_expression "(char *)(param_1 + 0x1a)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1a)" (( "(") (binary_expression "param_1 + 0x1a" (identifier "param_1") (+ "+") (number_literal "0x1a")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {\n      FUN_00082810(*DAT_0033f2f0,"Locking file \"%s\"",*param_1);\n    }\n    if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {\n      *(undefined1 *)(param_1 + 0x1a) = 0;\n      param_1[0xd] = param_2;\n      return;\n    }\n    FUN_00083500();\n    in_ECX = extraout_ECX;\n  }" ({ "{") (if_statement "if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {\n      FUN_00082810(*DAT_0033f2f0,"Locking file \"%s\"",*param_1);\n    }" (if "if") (parenthesized_expression "((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0))" (( "(") (binary_expression "(DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)" (parenthesized_expression "(DAT_0033f2f0[2] != 0)" (( "(") (binary_expression "DAT_0033f2f0[2] != 0" (subscript_expression "DAT_0033f2f0[2]" (identifier "DAT_0033f2f0") ([ "[") (number_literal "2") (] "]")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)" (( "(") (binary_expression "(*(byte *)(DAT_0033f2f0 + 5) & 4) != 0" (parenthesized_expression "(*(byte *)(DAT_0033f2f0 + 5) & 4)" (( "(") (binary_expression "*(byte *)(DAT_0033f2f0 + 5) & 4" (pointer_expression "*(byte *)(DAT_0033f2f0 + 5)" (* "*") (cast_expression "(byte *)(DAT_0033f2f0 + 5)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0033f2f0 + 5)" (( "(") (binary_expression "DAT_0033f2f0 + 5" (identifier "DAT_0033f2f0") (+ "+") (number_literal "5")) () ")")))) (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      FUN_00082810(*DAT_0033f2f0,"Locking file \"%s\"",*param_1);\n    }" ({ "{") (expression_statement "FUN_00082810(*DAT_0033f2f0,"Locking file \"%s\"",*param_1);" (call_expression "FUN_00082810(*DAT_0033f2f0,"Locking file \"%s\"",*param_1)" (identifier "FUN_00082810") (argument_list "(*DAT_0033f2f0,"Locking file \"%s\"",*param_1)" (( "(") (pointer_expression "*DAT_0033f2f0" (* "*") (identifier "DAT_0033f2f0")) (, ",") (string_literal ""Locking file \"%s\""" (" """) (string_content "Locking file ") (escape_sequence "\"") (string_content "%s") (escape_sequence "\"") (" """)) (, ",") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")"))) (; ";")) (} "}"))) (if_statement "if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {\n      *(undefined1 *)(param_1 + 0x1a) = 0;\n      param_1[0xd] = param_2;\n      return;\n    }" (if "if") (parenthesized_expression "((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0))" (( "(") (binary_expression "(*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)" (parenthesized_expression "(*(char *)(param_1 + 0xb) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0xb) == '\0'" (pointer_expression "*(char *)(param_1 + 0xb)" (* "*") (cast_expression "(char *)(param_1 + 0xb)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xb)" (( "(") (binary_expression "param_1 + 0xb" (identifier "param_1") (+ "+") (number_literal "0xb")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(param_1[0xd] == 0)" (( "(") (binary_expression "param_1[0xd] == 0" (subscript_expression "param_1[0xd]" (identifier "param_1") ([ "[") (number_literal "0xd") (] "]")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      *(undefined1 *)(param_1 + 0x1a) = 0;\n      param_1[0xd] = param_2;\n      return;\n    }" ({ "{") (expression_statement "*(undefined1 *)(param_1 + 0x1a) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0x1a) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0x1a)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x1a)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1a)" (( "(") (binary_expression "param_1 + 0x1a" (identifier "param_1") (+ "+") (number_literal "0x1a")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0xd] = param_2;" (assignment_expression "param_1[0xd] = param_2" (subscript_expression "param_1[0xd]" (identifier "param_1") ([ "[") (number_literal "0xd") (] "]")) (= "=") (identifier "param_2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00083500();" (call_expression "FUN_00083500()" (identifier "FUN_00083500") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "in_ECX = extraout_ECX;" (assignment_expression "in_ECX = extraout_ECX" (identifier "in_ECX") (= "=") (identifier "extraout_ECX")) (; ";")) (} "}"))) (expression_statement "FUN_0008b620("../../gold/fileread.cc",0x127,&DAT_002529a8,in_ECX);" (call_expression "FUN_0008b620("../../gold/fileread.cc",0x127,&DAT_002529a8,in_ECX)" (identifier "FUN_0008b620") (argument_list "("../../gold/fileread.cc",0x127,&DAT_002529a8,in_ECX)" (( "(") (string_literal ""../../gold/fileread.cc"" (" """) (string_content "../../gold/fileread.cc") (" """)) (, ",") (number_literal "0x127") (, ",") (pointer_expression "&DAT_002529a8" (& "&") (identifier "DAT_002529a8")) (, ",") (identifier "in_ECX") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* WARNING: Enum "ELFOSABI": Some values do not have unique names */
/* DWARF original prototype: void lock(File_read * this, Task * task) */

void __thiscall gold::type_1::function_1(type_1 *this,type_2 *task)

{
  type_2 *unaff_EBX;
  type_3 *unaff_ESI;
  type_3 *this_00;
  
  this_00 = (type_3 *)0x83927;
  if (this->released_ == false) {
                    /* WARNING: Subroutine does not return */
    var_1("../../gold/fileread.cc",0x127,"lock");
  }
  if ((parameters->options_ != (type_4 *)0x0) && ((parameters->debug_ & 4) != 0)) {
    Errors::var_2(parameters->errors_,"Locking file \"%s\"",(this->name_)._M_dataplus._M_p);
  }
  if (((this->token_).is_blocker_ == false) && ((this->token_).writer_ == (type_2 *)0x0)) {
    this->released_ = false;
    (this->token_).writer_ = task;
    return;
  }
                    /* WARNING: Subroutine does not return */
  Task_token::var_3(this_00,unaff_EBX,unaff_ESI);
}


(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: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (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: (char_literal (escape_sequence)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) 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 (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (string_literal (string_content) (escape_sequence) (string_content) (escape_sequence)) (pointer_expression argument: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (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: (char_literal (escape_sequence)))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (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: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (pointer_expression argument: (identifier)) (identifier)))))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void MASKED(undefined4 *param_1,undefined4 param_2)

{
  undefined4 in_ECX;
  undefined4 extraout_ECX;
  
  if (*(char *)(param_1 + 0x1a) != '\0') {
    if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {
      FUN_00082810(*DAT_0033f2f0,"Locking file \"%s\"",*param_1);
    }
    if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {
      *(undefined1 *)(param_1 + 0x1a) = 0;
      param_1[0xd] = param_2;
      return;
    }
    FUN_00083500();
    in_ECX = extraout_ECX;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0008b620("../../gold/fileread.cc",0x127,&DAT_002529a8,in_ECX);
}

