
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: ld_plugin_status release_input_file(Plugin_manager * this, uint handle)
    */

ld_plugin_status __thiscall
gold::Plugin_manager::release_input_file(Plugin_manager *this,uint handle)

{
  pointer ppOVar1;
  Object *pOVar2;
  int iVar3;
  
  ppOVar1 = (this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.
            _M_impl._M_start;
  if ((handle < (uint)((int)(this->objects_).
                            super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.
                            _M_impl._M_finish - (int)ppOVar1 >> 2)) &&
     (pOVar2 = ppOVar1[handle], pOVar2 != (Object *)0x0)) {
    iVar3 = (*pOVar2->_vptr_Object[5])(pOVar2);
    if (iVar3 != 0) {
      if (*(int *)(iVar3 + 0x1c) != 0) {
        File_read::unlock((File_read *)(*(int *)(iVar3 + 0x1c) + 0x1c),this->task_);
      }
      return LDPS_OK;
    }
  }
  return LDPS_BAD_HANDLE;
}



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

undefined4 FUN_0013b040(int param_1,uint param_2)

{
  int *piVar1;
  int iVar2;
  
  if ((param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&
     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)) {
    iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);
    if (iVar2 != 0) {
      if (*(int *)(iVar2 + 0x1c) != 0) {
        FUN_000679d0(*(int *)(iVar2 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));
      }
      return 0;
    }
  }
  return 2;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x10]
CALL 0x00035840
ADD EBX,0x253fb4
MOV ECX,dword ptr [ESP + 0x14]
MOV EDX,dword ptr [ESI + 0x10]
MOV EAX,dword ptr [ESI + 0x14]
SUB EAX,EDX
SAR EAX,0x2
CMP ECX,EAX
JNC 0x0013b0a0
MOV EAX,dword ptr [EDX + ECX*0x4]
TEST EAX,EAX
JZ 0x0013b0a0
SUB ESP,0xc
MOV EDX,dword ptr [EAX]
PUSH EAX
CALL dword ptr [EDX + 0x14]
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0013b0a0
MOV EDX,dword ptr [EAX + 0x1c]
XOR EDI,EDI
TEST EDX,EDX
JZ 0x0013b097
SUB ESP,0x8
ADD EDX,0x1c
PUSH dword ptr [ESI + 0x6c]
PUSH EDX
CALL 0x000679d0
ADD ESP,0x10
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
RET
MOV EDI,0x2
POP EBX
POP ESI
MOV EAX,EDI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_0013b040(int param_1,uint param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  if ((param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&\n     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)) {\n    iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);\n    if (iVar2 != 0) {\n      if (*(int *)(iVar2 + 0x1c) != 0) {\n        FUN_000679d0(*(int *)(iVar2 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n      }\n      return 0;\n    }\n  }\n  return 2;\n}\n\n" comment (function_definition "undefined4 FUN_0013b040(int param_1,uint param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  if ((param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&\n     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)) {\n    iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);\n    if (iVar2 != 0) {\n      if (*(int *)(iVar2 + 0x1c) != 0) {\n        FUN_000679d0(*(int *)(iVar2 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n      }\n      return 0;\n    }\n  }\n  return 2;\n}" type_identifier (function_declarator "FUN_0013b040(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  if ((param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&\n     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)) {\n    iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);\n    if (iVar2 != 0) {\n      if (*(int *)(iVar2 + 0x1c) != 0) {\n        FUN_000679d0(*(int *)(iVar2 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n      }\n      return 0;\n    }\n  }\n  return 2;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if ((param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&\n     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)) {\n    iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);\n    if (iVar2 != 0) {\n      if (*(int *)(iVar2 + 0x1c) != 0) {\n        FUN_000679d0(*(int *)(iVar2 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n      }\n      return 0;\n    }\n  }" if (parenthesized_expression "((param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&\n     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0))" ( (binary_expression "(param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&\n     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)" (parenthesized_expression "(param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2))" ( (binary_expression "param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)" identifier < (call_expression "(uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)" ( (binary_expression "*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2" (binary_expression "*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10)" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) - (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) >> number_literal) )))) )) && (parenthesized_expression "(piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)" ( (comma_expression "piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0" (assignment_expression "piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4)" identifier = (pointer_expression "*(int **)(*(int *)(param_1 + 0x10) + param_2 * 4)" * (cast_expression "(int **)(*(int *)(param_1 + 0x10) + param_2 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + param_2 * 4)" ( (binary_expression "*(int *)(param_1 + 0x10) + param_2 * 4" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + (binary_expression "param_2 * 4" identifier * number_literal)) ))))) , (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);\n    if (iVar2 != 0) {\n      if (*(int *)(iVar2 + 0x1c) != 0) {\n        FUN_000679d0(*(int *)(iVar2 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n      }\n      return 0;\n    }\n  }" { (expression_statement "iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);" (assignment_expression "iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x14))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x14))" ( (pointer_expression "**(code **)(*piVar1 + 0x14)" * (pointer_expression "*(code **)(*piVar1 + 0x14)" * (cast_expression "(code **)(*piVar1 + 0x14)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x14)" ( (binary_expression "*piVar1 + 0x14" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) (if_statement "if (iVar2 != 0) {\n      if (*(int *)(iVar2 + 0x1c) != 0) {\n        FUN_000679d0(*(int *)(iVar2 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n      }\n      return 0;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      if (*(int *)(iVar2 + 0x1c) != 0) {\n        FUN_000679d0(*(int *)(iVar2 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n      }\n      return 0;\n    }" { (if_statement "if (*(int *)(iVar2 + 0x1c) != 0) {\n        FUN_000679d0(*(int *)(iVar2 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n      }" if (parenthesized_expression "(*(int *)(iVar2 + 0x1c) != 0)" ( (binary_expression "*(int *)(iVar2 + 0x1c) != 0" (pointer_expression "*(int *)(iVar2 + 0x1c)" * (cast_expression "(int *)(iVar2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x1c)" ( (binary_expression "iVar2 + 0x1c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        FUN_000679d0(*(int *)(iVar2 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n      }" { (expression_statement "FUN_000679d0(*(int *)(iVar2 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));" (call_expression "FUN_000679d0(*(int *)(iVar2 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c))" identifier (argument_list "(*(int *)(iVar2 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c))" ( (binary_expression "*(int *)(iVar2 + 0x1c) + 0x1c" (pointer_expression "*(int *)(iVar2 + 0x1c)" * (cast_expression "(int *)(iVar2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x1c)" ( (binary_expression "iVar2 + 0x1c" identifier + number_literal) )))) + number_literal) , (pointer_expression "*(undefined4 *)(param_1 + 0x6c)" * (cast_expression "(undefined4 *)(param_1 + 0x6c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) ))) ;) })) (return_statement "return 0;" return number_literal ;) })) })) (return_statement "return 2;" return number_literal ;) })))
(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/* DWARF original prototype: ld_plugin_status release_input_file(Plugin_manager * this, uint handle)\n    */\n\nld_plugin_status __thiscall\ngold::Plugin_manager::release_input_file(Plugin_manager *this,uint handle)\n\n{\n  pointer ppOVar1;\n  Object *pOVar2;\n  int iVar3;\n  \n  ppOVar1 = (this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n            _M_impl._M_start;\n  if ((handle < (uint)((int)(this->objects_).\n                            super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n                            _M_impl._M_finish - (int)ppOVar1 >> 2)) &&\n     (pOVar2 = ppOVar1[handle], pOVar2 != (Object *)0x0)) {\n    iVar3 = (*pOVar2->_vptr_Object[5])(pOVar2);\n    if (iVar3 != 0) {\n      if (*(int *)(iVar3 + 0x1c) != 0) {\n        File_read::unlock((File_read *)(*(int *)(iVar3 + 0x1c) + 0x1c),this->task_);\n      }\n      return LDPS_OK;\n    }\n  }\n  return LDPS_BAD_HANDLE;\n}\n\n" comment comment comment (function_definition "ld_plugin_status __thiscall\ngold::Plugin_manager::release_input_file(Plugin_manager *this,uint handle)\n\n{\n  pointer ppOVar1;\n  Object *pOVar2;\n  int iVar3;\n  \n  ppOVar1 = (this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n            _M_impl._M_start;\n  if ((handle < (uint)((int)(this->objects_).\n                            super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n                            _M_impl._M_finish - (int)ppOVar1 >> 2)) &&\n     (pOVar2 = ppOVar1[handle], pOVar2 != (Object *)0x0)) {\n    iVar3 = (*pOVar2->_vptr_Object[5])(pOVar2);\n    if (iVar3 != 0) {\n      if (*(int *)(iVar3 + 0x1c) != 0) {\n        File_read::unlock((File_read *)(*(int *)(iVar3 + 0x1c) + 0x1c),this->task_);\n      }\n      return LDPS_OK;\n    }\n  }\n  return LDPS_BAD_HANDLE;\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Plugin_manager::" identifier : : identifier : :) (function_declarator "release_input_file(Plugin_manager *this,uint handle)" identifier (parameter_list "(Plugin_manager *this,uint handle)" ( (parameter_declaration "Plugin_manager *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "uint handle" type_identifier identifier) ))) (compound_statement "{\n  pointer ppOVar1;\n  Object *pOVar2;\n  int iVar3;\n  \n  ppOVar1 = (this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n            _M_impl._M_start;\n  if ((handle < (uint)((int)(this->objects_).\n                            super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n                            _M_impl._M_finish - (int)ppOVar1 >> 2)) &&\n     (pOVar2 = ppOVar1[handle], pOVar2 != (Object *)0x0)) {\n    iVar3 = (*pOVar2->_vptr_Object[5])(pOVar2);\n    if (iVar3 != 0) {\n      if (*(int *)(iVar3 + 0x1c) != 0) {\n        File_read::unlock((File_read *)(*(int *)(iVar3 + 0x1c) + 0x1c),this->task_);\n      }\n      return LDPS_OK;\n    }\n  }\n  return LDPS_BAD_HANDLE;\n}" { (declaration "pointer ppOVar1;" type_identifier identifier ;) (declaration "Object *pOVar2;" type_identifier (pointer_declarator "*pOVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "ppOVar1 = (this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n            _M_impl._M_start;" (field_expression "ppOVar1 = (this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n            _M_impl._M_start" (field_expression "ppOVar1 = (this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n            _M_impl" (binary_expression "ppOVar1 = (this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_" (binary_expression "ppOVar1 = (this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold" (binary_expression "ppOVar1 = (this->objects_).super__Vector_base<gold::Object*,_std" (assignment_expression "ppOVar1 = (this->objects_).super__Vector_base<gold" identifier = (binary_expression "(this->objects_).super__Vector_base<gold" (field_expression "(this->objects_).super__Vector_base" (parenthesized_expression "(this->objects_)" ( (field_expression "this->objects_" identifier -> field_identifier) )) . field_identifier) < identifier)) (ERROR "::Object" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Object" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) ;) (if_statement "if ((handle < (uint)((int)(this->objects_).\n                            super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n                            _M_impl._M_finish - (int)ppOVar1 >> 2)) &&\n     (pOVar2 = ppOVar1[handle], pOVar2 != (Object *)0x0)) {\n    iVar3 = (*pOVar2->_vptr_Object[5])(pOVar2);\n    if (iVar3 != 0) {\n      if (*(int *)(iVar3 + 0x1c) != 0) {\n        File_read::unlock((File_read *)(*(int *)(iVar3 + 0x1c) + 0x1c),this->task_);\n      }\n      return LDPS_OK;\n    }\n  }" if (parenthesized_expression "((handle < (uint)((int)(this->objects_).\n                            super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n                            _M_impl._M_finish - (int)ppOVar1 >> 2)) &&\n     (pOVar2 = ppOVar1[handle], pOVar2 != (Object *)0x0))" ( (binary_expression "(handle < (uint)((int)(this->objects_).\n                            super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n                            _M_impl._M_finish - (int)ppOVar1 >> 2)) &&\n     (pOVar2 = ppOVar1[handle], pOVar2 != (Object *)0x0)" (parenthesized_expression "(handle < (uint)((int)(this->objects_).\n                            super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n                            _M_impl._M_finish - (int)ppOVar1 >> 2))" ( (binary_expression "handle < (uint)((int)(this->objects_).\n                            super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n                            _M_impl._M_finish - (int)ppOVar1 >> 2)" identifier < (call_expression "(uint)((int)(this->objects_).\n                            super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n                            _M_impl._M_finish - (int)ppOVar1 >> 2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)(this->objects_).\n                            super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n                            _M_impl._M_finish - (int)ppOVar1 >> 2)" ( (binary_expression "(int)(this->objects_).\n                            super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n                            _M_impl._M_finish - (int)ppOVar1 >> 2" (binary_expression "(int)(this->objects_).\n                            super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n                            _M_impl._M_finish - (int)ppOVar1" (field_expression "(int)(this->objects_).\n                            super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n                            _M_impl._M_finish" (field_expression "(int)(this->objects_).\n                            super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n                            _M_impl" (binary_expression "(int)(this->objects_).\n                            super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_" (binary_expression "(int)(this->objects_).\n                            super__Vector_base<gold::Object*,_std::allocator<gold" (binary_expression "(int)(this->objects_).\n                            super__Vector_base<gold::Object*,_std" (binary_expression "(int)(this->objects_).\n                            super__Vector_base<gold" (cast_expression "(int)(this->objects_).\n                            super__Vector_base" ( (type_descriptor "int" primitive_type) ) (field_expression "(this->objects_).\n                            super__Vector_base" (parenthesized_expression "(this->objects_)" ( (field_expression "this->objects_" identifier -> field_identifier) )) . field_identifier)) < identifier) (ERROR "::Object" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Object" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) - (cast_expression "(int)ppOVar1" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal) )))) )) && (parenthesized_expression "(pOVar2 = ppOVar1[handle], pOVar2 != (Object *)0x0)" ( (comma_expression "pOVar2 = ppOVar1[handle], pOVar2 != (Object *)0x0" (assignment_expression "pOVar2 = ppOVar1[handle]" identifier = (subscript_expression "ppOVar1[handle]" identifier [ identifier ])) , (binary_expression "pOVar2 != (Object *)0x0" identifier != (cast_expression "(Object *)0x0" ( (type_descriptor "Object *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    iVar3 = (*pOVar2->_vptr_Object[5])(pOVar2);\n    if (iVar3 != 0) {\n      if (*(int *)(iVar3 + 0x1c) != 0) {\n        File_read::unlock((File_read *)(*(int *)(iVar3 + 0x1c) + 0x1c),this->task_);\n      }\n      return LDPS_OK;\n    }\n  }" { (expression_statement "iVar3 = (*pOVar2->_vptr_Object[5])(pOVar2);" (assignment_expression "iVar3 = (*pOVar2->_vptr_Object[5])(pOVar2)" identifier = (call_expression "(*pOVar2->_vptr_Object[5])(pOVar2)" (parenthesized_expression "(*pOVar2->_vptr_Object[5])" ( (pointer_expression "*pOVar2->_vptr_Object[5]" * (subscript_expression "pOVar2->_vptr_Object[5]" (field_expression "pOVar2->_vptr_Object" identifier -> field_identifier) [ number_literal ])) )) (argument_list "(pOVar2)" ( identifier )))) ;) (if_statement "if (iVar3 != 0) {\n      if (*(int *)(iVar3 + 0x1c) != 0) {\n        File_read::unlock((File_read *)(*(int *)(iVar3 + 0x1c) + 0x1c),this->task_);\n      }\n      return LDPS_OK;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      if (*(int *)(iVar3 + 0x1c) != 0) {\n        File_read::unlock((File_read *)(*(int *)(iVar3 + 0x1c) + 0x1c),this->task_);\n      }\n      return LDPS_OK;\n    }" { (if_statement "if (*(int *)(iVar3 + 0x1c) != 0) {\n        File_read::unlock((File_read *)(*(int *)(iVar3 + 0x1c) + 0x1c),this->task_);\n      }" if (parenthesized_expression "(*(int *)(iVar3 + 0x1c) != 0)" ( (binary_expression "*(int *)(iVar3 + 0x1c) != 0" (pointer_expression "*(int *)(iVar3 + 0x1c)" * (cast_expression "(int *)(iVar3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        File_read::unlock((File_read *)(*(int *)(iVar3 + 0x1c) + 0x1c),this->task_);\n      }" { (labeled_statement "File_read::unlock((File_read *)(*(int *)(iVar3 + 0x1c) + 0x1c),this->task_);" statement_identifier : (ERROR ":" :) (expression_statement "unlock((File_read *)(*(int *)(iVar3 + 0x1c) + 0x1c),this->task_);" (call_expression "unlock((File_read *)(*(int *)(iVar3 + 0x1c) + 0x1c),this->task_)" identifier (argument_list "((File_read *)(*(int *)(iVar3 + 0x1c) + 0x1c),this->task_)" ( (cast_expression "(File_read *)(*(int *)(iVar3 + 0x1c) + 0x1c)" ( (type_descriptor "File_read *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar3 + 0x1c) + 0x1c)" ( (binary_expression "*(int *)(iVar3 + 0x1c) + 0x1c" (pointer_expression "*(int *)(iVar3 + 0x1c)" * (cast_expression "(int *)(iVar3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) )))) + number_literal) ))) , (field_expression "this->task_" identifier -> field_identifier) ))) ;)) })) (return_statement "return LDPS_OK;" return identifier ;) })) })) (return_statement "return LDPS_BAD_HANDLE;" return identifier ;) })))
(translation_unit "undefined4 FUN_0013b040(int param_1,uint param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  if ((param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&\n     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)) {\n    iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);\n    if (iVar2 != 0) {\n      if (*(int *)(iVar2 + 0x1c) != 0) {\n        FUN_000679d0(*(int *)(iVar2 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n      }\n      return 0;\n    }\n  }\n  return 2;\n}\n\n" (function_definition "undefined4 FUN_0013b040(int param_1,uint param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  if ((param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&\n     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)) {\n    iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);\n    if (iVar2 != 0) {\n      if (*(int *)(iVar2 + 0x1c) != 0) {\n        FUN_000679d0(*(int *)(iVar2 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n      }\n      return 0;\n    }\n  }\n  return 2;\n}" type_identifier (function_declarator "FUN_0013b040(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  if ((param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&\n     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)) {\n    iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);\n    if (iVar2 != 0) {\n      if (*(int *)(iVar2 + 0x1c) != 0) {\n        FUN_000679d0(*(int *)(iVar2 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n      }\n      return 0;\n    }\n  }\n  return 2;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if ((param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&\n     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)) {\n    iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);\n    if (iVar2 != 0) {\n      if (*(int *)(iVar2 + 0x1c) != 0) {\n        FUN_000679d0(*(int *)(iVar2 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n      }\n      return 0;\n    }\n  }" if (parenthesized_expression "((param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&\n     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0))" ( (binary_expression "(param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&\n     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)" (parenthesized_expression "(param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2))" ( (binary_expression "param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)" identifier < (call_expression "(uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)" ( (binary_expression "*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2" (binary_expression "*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10)" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) - (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) >> number_literal) )))) )) && (parenthesized_expression "(piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)" ( (comma_expression "piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0" (assignment_expression "piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4)" identifier = (pointer_expression "*(int **)(*(int *)(param_1 + 0x10) + param_2 * 4)" * (cast_expression "(int **)(*(int *)(param_1 + 0x10) + param_2 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + param_2 * 4)" ( (binary_expression "*(int *)(param_1 + 0x10) + param_2 * 4" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + (binary_expression "param_2 * 4" identifier * number_literal)) ))))) , (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);\n    if (iVar2 != 0) {\n      if (*(int *)(iVar2 + 0x1c) != 0) {\n        FUN_000679d0(*(int *)(iVar2 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n      }\n      return 0;\n    }\n  }" { (expression_statement "iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);" (assignment_expression "iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x14))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x14))" ( (pointer_expression "**(code **)(*piVar1 + 0x14)" * (pointer_expression "*(code **)(*piVar1 + 0x14)" * (cast_expression "(code **)(*piVar1 + 0x14)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x14)" ( (binary_expression "*piVar1 + 0x14" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) (if_statement "if (iVar2 != 0) {\n      if (*(int *)(iVar2 + 0x1c) != 0) {\n        FUN_000679d0(*(int *)(iVar2 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n      }\n      return 0;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      if (*(int *)(iVar2 + 0x1c) != 0) {\n        FUN_000679d0(*(int *)(iVar2 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n      }\n      return 0;\n    }" { (if_statement "if (*(int *)(iVar2 + 0x1c) != 0) {\n        FUN_000679d0(*(int *)(iVar2 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n      }" if (parenthesized_expression "(*(int *)(iVar2 + 0x1c) != 0)" ( (binary_expression "*(int *)(iVar2 + 0x1c) != 0" (pointer_expression "*(int *)(iVar2 + 0x1c)" * (cast_expression "(int *)(iVar2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x1c)" ( (binary_expression "iVar2 + 0x1c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        FUN_000679d0(*(int *)(iVar2 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n      }" { (expression_statement "FUN_000679d0(*(int *)(iVar2 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));" (call_expression "FUN_000679d0(*(int *)(iVar2 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c))" identifier (argument_list "(*(int *)(iVar2 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c))" ( (binary_expression "*(int *)(iVar2 + 0x1c) + 0x1c" (pointer_expression "*(int *)(iVar2 + 0x1c)" * (cast_expression "(int *)(iVar2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x1c)" ( (binary_expression "iVar2 + 0x1c" identifier + number_literal) )))) + number_literal) , (pointer_expression "*(undefined4 *)(param_1 + 0x6c)" * (cast_expression "(undefined4 *)(param_1 + 0x6c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) ))) ;) })) (return_statement "return 0;" return number_literal ;) })) })) (return_statement "return 2;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) >> LIT) )))) )) && (parenthesized_expression ( (comma_expression (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) )))) + (binary_expression IDENT * LIT)) ))))) , (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != 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) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })) (return_statement return LIT ;) })) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0013b040(int param_1,uint param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  if ((param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&\n     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)) {\n    iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);\n    if (iVar2 != 0) {\n      if (*(int *)(iVar2 + 0x1c) != 0) {\n        FUN_000679d0(*(int *)(iVar2 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n      }\n      return 0;\n    }\n  }\n  return 2;\n}" (type_identifier "undefined4") (function_declarator "FUN_0013b040(int param_1,uint param_2)" (identifier "FUN_0013b040") (parameter_list "(int param_1,uint param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  if ((param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&\n     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)) {\n    iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);\n    if (iVar2 != 0) {\n      if (*(int *)(iVar2 + 0x1c) != 0) {\n        FUN_000679d0(*(int *)(iVar2 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n      }\n      return 0;\n    }\n  }\n  return 2;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (if_statement "if ((param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&\n     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)) {\n    iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);\n    if (iVar2 != 0) {\n      if (*(int *)(iVar2 + 0x1c) != 0) {\n        FUN_000679d0(*(int *)(iVar2 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n      }\n      return 0;\n    }\n  }" (if "if") (parenthesized_expression "((param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&\n     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0))" (( "(") (binary_expression "(param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&\n     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)" (parenthesized_expression "(param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2))" (( "(") (binary_expression "param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)" (identifier "param_2") (< "<") (call_expression "(uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)" (( "(") (binary_expression "*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2" (binary_expression "*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10)" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (- "-") (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (>> ">>") (number_literal "2")) () ")")))) () ")")) (&& "&&") (parenthesized_expression "(piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)" (( "(") (comma_expression "piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0" (assignment_expression "piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(*(int *)(param_1 + 0x10) + param_2 * 4)" (* "*") (cast_expression "(int **)(*(int *)(param_1 + 0x10) + param_2 * 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x10) + param_2 * 4)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) + param_2 * 4" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (binary_expression "param_2 * 4" (identifier "param_2") (* "*") (number_literal "4"))) () ")"))))) (, ",") (binary_expression "piVar1 != (int *)0x0" (identifier "piVar1") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n    iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);\n    if (iVar2 != 0) {\n      if (*(int *)(iVar2 + 0x1c) != 0) {\n        FUN_000679d0(*(int *)(iVar2 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n      }\n      return 0;\n    }\n  }" ({ "{") (expression_statement "iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);" (assignment_expression "iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(*piVar1 + 0x14))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x14))" (( "(") (pointer_expression "**(code **)(*piVar1 + 0x14)" (* "*") (pointer_expression "*(code **)(*piVar1 + 0x14)" (* "*") (cast_expression "(code **)(*piVar1 + 0x14)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0x14)" (( "(") (binary_expression "*piVar1 + 0x14" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n      if (*(int *)(iVar2 + 0x1c) != 0) {\n        FUN_000679d0(*(int *)(iVar2 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n      }\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (*(int *)(iVar2 + 0x1c) != 0) {\n        FUN_000679d0(*(int *)(iVar2 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n      }\n      return 0;\n    }" ({ "{") (if_statement "if (*(int *)(iVar2 + 0x1c) != 0) {\n        FUN_000679d0(*(int *)(iVar2 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n      }" (if "if") (parenthesized_expression "(*(int *)(iVar2 + 0x1c) != 0)" (( "(") (binary_expression "*(int *)(iVar2 + 0x1c) != 0" (pointer_expression "*(int *)(iVar2 + 0x1c)" (* "*") (cast_expression "(int *)(iVar2 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x1c)" (( "(") (binary_expression "iVar2 + 0x1c" (identifier "iVar2") (+ "+") (number_literal "0x1c")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_000679d0(*(int *)(iVar2 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n      }" ({ "{") (expression_statement "FUN_000679d0(*(int *)(iVar2 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));" (call_expression "FUN_000679d0(*(int *)(iVar2 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c))" (identifier "FUN_000679d0") (argument_list "(*(int *)(iVar2 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c))" (( "(") (binary_expression "*(int *)(iVar2 + 0x1c) + 0x1c" (pointer_expression "*(int *)(iVar2 + 0x1c)" (* "*") (cast_expression "(int *)(iVar2 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x1c)" (( "(") (binary_expression "iVar2 + 0x1c" (identifier "iVar2") (+ "+") (number_literal "0x1c")) () ")")))) (+ "+") (number_literal "0x1c")) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x6c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x6c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")")))) () ")"))) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}"))) (return_statement "return 2;" (return "return") (number_literal "2") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: ld_plugin_status release_input_file(Plugin_manager * this, uint handle)
    */

type_1 __thiscall
var_1::type_2::function_1(type_2 *this,type_3 var_4)

{
  type_4 ppOVar1;
  type_5 *var_5;
  int var_6;
  
  ppOVar1 = (this->objects_).super__Vector_base<var_1::type_5*,var_2::allocator<var_1::type_5*>var_3>.
            _M_impl._M_start;
  if ((var_4 < (type_3)((int)(this->objects_).
                            super__Vector_base<var_1::type_5*,var_2::allocator<var_1::type_5*>var_3>.
                            _M_impl._M_finish - (int)ppOVar1 >> 2)) &&
     (var_5 = ppOVar1[var_4], var_5 != (type_5 *)0x0)) {
    var_6 = (*var_5->_vptr_Object[5])(var_5);
    if (var_6 != 0) {
      if (*(int *)(var_6 + 0x1c) != 0) {
        File_read::var_7((type_6 *)(*(int *)(var_6 + 0x1c) + 0x1c),this->task_);
      }
      return LDPS_OK;
    }
  }
  return LDPS_BAD_HANDLE;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal)))))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) 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: (binary_expression left: (identifier) right: (number_literal))))))) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (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: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) 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: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (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)) (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)))))))))) (return_statement (number_literal)))))) (return_statement (number_literal)))))

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

undefined4 MASKED(int param_1,uint param_2)

{
  int *piVar1;
  int iVar2;
  
  if ((param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&
     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)) {
    iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);
    if (iVar2 != 0) {
      if (*(int *)(iVar2 + 0x1c) != 0) {
        FUN_000679d0(*(int *)(iVar2 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));
      }
      return 0;
    }
  }
  return 2;
}

