
/* std::Catalogs::~Catalogs() */

void __thiscall std::Catalogs::~Catalogs(Catalogs *this)

{
  void *pvVar1;
  undefined8 *puVar2;
  undefined8 *puVar3;
  
  puVar2 = *(undefined8 **)(this + 0x30);
  puVar3 = *(undefined8 **)(this + 0x38);
  if (puVar2 != puVar3) {
    do {
      pvVar1 = (void *)*puVar2;
      if (pvVar1 != (void *)0x0) {
        free(*(void **)((long)pvVar1 + 8));
        locale::~locale((locale *)((long)pvVar1 + 0x10));
        operator_delete(pvVar1);
      }
      puVar2 = puVar2 + 1;
    } while (*(undefined8 **)(this + 0x38) != puVar2);
    puVar3 = *(undefined8 **)(this + 0x30);
  }
  if (puVar3 != (undefined8 *)0x0) {
    operator_delete(puVar3);
    return;
  }
  return;
}



void FUN_00332ab0(long param_1)

{
  long lVar1;
  long *plVar2;
  long *plVar3;
  
  plVar2 = *(long **)(param_1 + 0x30);
  plVar3 = *(long **)(param_1 + 0x38);
  if (plVar2 != plVar3) {
    do {
      lVar1 = *plVar2;
      if (lVar1 != 0) {
        free(*(void **)(lVar1 + 8));
        FUN_002f43a0(lVar1 + 0x10);
        FUN_002f1e60(lVar1);
      }
      plVar2 = plVar2 + 1;
    } while (*(long **)(param_1 + 0x38) != plVar2);
    plVar3 = *(long **)(param_1 + 0x30);
  }
  if (plVar3 != (long *)0x0) {
    FUN_002f1e60();
    return;
  }
  return;
}


PUSH R12
MOV R12,RDI
PUSH RBP
PUSH RBX
MOV RBX,qword ptr [RDI + 0x30]
MOV RDI,qword ptr [RDI + 0x38]
CMP RBX,RDI
JZ 0x00332afa
NOP dword ptr [RAX]
MOV RBP,qword ptr [RBX]
TEST RBP,RBP
JZ 0x00332aea
MOV RDI,qword ptr [RBP + 0x8]
CALL 0x00149470
LEA RDI,[RBP + 0x10]
CALL 0x002f43a0
MOV RDI,RBP
CALL 0x002f1e60
ADD RBX,0x8
CMP qword ptr [R12 + 0x38],RBX
JNZ 0x00332ac8
MOV RDI,qword ptr [R12 + 0x30]
TEST RDI,RDI
JZ 0x00332b10
POP RBX
POP RBP
POP R12
JMP 0x002f1e60
POP RBX
POP RBP
POP R12
RET
(translation_unit "void FUN_00332ab0(long param_1)\n\n{\n  long lVar1;\n  long *plVar2;\n  long *plVar3;\n  \n  plVar2 = *(long **)(param_1 + 0x30);\n  plVar3 = *(long **)(param_1 + 0x38);\n  if (plVar2 != plVar3) {\n    do {\n      lVar1 = *plVar2;\n      if (lVar1 != 0) {\n        free(*(void **)(lVar1 + 8));\n        FUN_002f43a0(lVar1 + 0x10);\n        FUN_002f1e60(lVar1);\n      }\n      plVar2 = plVar2 + 1;\n    } while (*(long **)(param_1 + 0x38) != plVar2);\n    plVar3 = *(long **)(param_1 + 0x30);\n  }\n  if (plVar3 != (long *)0x0) {\n    FUN_002f1e60();\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_00332ab0(long param_1)\n\n{\n  long lVar1;\n  long *plVar2;\n  long *plVar3;\n  \n  plVar2 = *(long **)(param_1 + 0x30);\n  plVar3 = *(long **)(param_1 + 0x38);\n  if (plVar2 != plVar3) {\n    do {\n      lVar1 = *plVar2;\n      if (lVar1 != 0) {\n        free(*(void **)(lVar1 + 8));\n        FUN_002f43a0(lVar1 + 0x10);\n        FUN_002f1e60(lVar1);\n      }\n      plVar2 = plVar2 + 1;\n    } while (*(long **)(param_1 + 0x38) != plVar2);\n    plVar3 = *(long **)(param_1 + 0x30);\n  }\n  if (plVar3 != (long *)0x0) {\n    FUN_002f1e60();\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00332ab0(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  long *plVar2;\n  long *plVar3;\n  \n  plVar2 = *(long **)(param_1 + 0x30);\n  plVar3 = *(long **)(param_1 + 0x38);\n  if (plVar2 != plVar3) {\n    do {\n      lVar1 = *plVar2;\n      if (lVar1 != 0) {\n        free(*(void **)(lVar1 + 8));\n        FUN_002f43a0(lVar1 + 0x10);\n        FUN_002f1e60(lVar1);\n      }\n      plVar2 = plVar2 + 1;\n    } while (*(long **)(param_1 + 0x38) != plVar2);\n    plVar3 = *(long **)(param_1 + 0x30);\n  }\n  if (plVar3 != (long *)0x0) {\n    FUN_002f1e60();\n    return;\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (declaration "long *plVar3;" (sized_type_specifier "long" long) (pointer_declarator "*plVar3" * identifier) ;) (expression_statement "plVar2 = *(long **)(param_1 + 0x30);" (assignment_expression "plVar2 = *(long **)(param_1 + 0x30)" identifier = (pointer_expression "*(long **)(param_1 + 0x30)" * (cast_expression "(long **)(param_1 + 0x30)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "plVar3 = *(long **)(param_1 + 0x38);" (assignment_expression "plVar3 = *(long **)(param_1 + 0x38)" identifier = (pointer_expression "*(long **)(param_1 + 0x38)" * (cast_expression "(long **)(param_1 + 0x38)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) ))))) ;) (if_statement "if (plVar2 != plVar3) {\n    do {\n      lVar1 = *plVar2;\n      if (lVar1 != 0) {\n        free(*(void **)(lVar1 + 8));\n        FUN_002f43a0(lVar1 + 0x10);\n        FUN_002f1e60(lVar1);\n      }\n      plVar2 = plVar2 + 1;\n    } while (*(long **)(param_1 + 0x38) != plVar2);\n    plVar3 = *(long **)(param_1 + 0x30);\n  }" if (parenthesized_expression "(plVar2 != plVar3)" ( (binary_expression "plVar2 != plVar3" identifier != identifier) )) (compound_statement "{\n    do {\n      lVar1 = *plVar2;\n      if (lVar1 != 0) {\n        free(*(void **)(lVar1 + 8));\n        FUN_002f43a0(lVar1 + 0x10);\n        FUN_002f1e60(lVar1);\n      }\n      plVar2 = plVar2 + 1;\n    } while (*(long **)(param_1 + 0x38) != plVar2);\n    plVar3 = *(long **)(param_1 + 0x30);\n  }" { (do_statement "do {\n      lVar1 = *plVar2;\n      if (lVar1 != 0) {\n        free(*(void **)(lVar1 + 8));\n        FUN_002f43a0(lVar1 + 0x10);\n        FUN_002f1e60(lVar1);\n      }\n      plVar2 = plVar2 + 1;\n    } while (*(long **)(param_1 + 0x38) != plVar2);" do (compound_statement "{\n      lVar1 = *plVar2;\n      if (lVar1 != 0) {\n        free(*(void **)(lVar1 + 8));\n        FUN_002f43a0(lVar1 + 0x10);\n        FUN_002f1e60(lVar1);\n      }\n      plVar2 = plVar2 + 1;\n    }" { (expression_statement "lVar1 = *plVar2;" (assignment_expression "lVar1 = *plVar2" identifier = (pointer_expression "*plVar2" * identifier)) ;) (if_statement "if (lVar1 != 0) {\n        free(*(void **)(lVar1 + 8));\n        FUN_002f43a0(lVar1 + 0x10);\n        FUN_002f1e60(lVar1);\n      }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        free(*(void **)(lVar1 + 8));\n        FUN_002f43a0(lVar1 + 0x10);\n        FUN_002f1e60(lVar1);\n      }" { (expression_statement "free(*(void **)(lVar1 + 8));" (call_expression "free(*(void **)(lVar1 + 8))" identifier (argument_list "(*(void **)(lVar1 + 8))" ( (pointer_expression "*(void **)(lVar1 + 8)" * (cast_expression "(void **)(lVar1 + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar1 + 8)" ( (binary_expression "lVar1 + 8" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_002f43a0(lVar1 + 0x10);" (call_expression "FUN_002f43a0(lVar1 + 0x10)" identifier (argument_list "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) ))) ;) (expression_statement "FUN_002f1e60(lVar1);" (call_expression "FUN_002f1e60(lVar1)" identifier (argument_list "(lVar1)" ( identifier ))) ;) })) (expression_statement "plVar2 = plVar2 + 1;" (assignment_expression "plVar2 = plVar2 + 1" identifier = (binary_expression "plVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(*(long **)(param_1 + 0x38) != plVar2)" ( (binary_expression "*(long **)(param_1 + 0x38) != plVar2" (pointer_expression "*(long **)(param_1 + 0x38)" * (cast_expression "(long **)(param_1 + 0x38)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) != identifier) )) ;) (expression_statement "plVar3 = *(long **)(param_1 + 0x30);" (assignment_expression "plVar3 = *(long **)(param_1 + 0x30)" identifier = (pointer_expression "*(long **)(param_1 + 0x30)" * (cast_expression "(long **)(param_1 + 0x30)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) ;) })) (if_statement "if (plVar3 != (long *)0x0) {\n    FUN_002f1e60();\n    return;\n  }" if (parenthesized_expression "(plVar3 != (long *)0x0)" ( (binary_expression "plVar3 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    FUN_002f1e60();\n    return;\n  }" { (expression_statement "FUN_002f1e60();" (call_expression "FUN_002f1e60()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* std::Catalogs::~Catalogs() */\n\nvoid __thiscall std::Catalogs::~Catalogs(Catalogs *this)\n\n{\n  void *pvVar1;\n  undefined8 *puVar2;\n  undefined8 *puVar3;\n  \n  puVar2 = *(undefined8 **)(this + 0x30);\n  puVar3 = *(undefined8 **)(this + 0x38);\n  if (puVar2 != puVar3) {\n    do {\n      pvVar1 = (void *)*puVar2;\n      if (pvVar1 != (void *)0x0) {\n        free(*(void **)((long)pvVar1 + 8));\n        locale::~locale((locale *)((long)pvVar1 + 0x10));\n        operator_delete(pvVar1);\n      }\n      puVar2 = puVar2 + 1;\n    } while (*(undefined8 **)(this + 0x38) != puVar2);\n    puVar3 = *(undefined8 **)(this + 0x30);\n  }\n  if (puVar3 != (undefined8 *)0x0) {\n    operator_delete(puVar3);\n    return;\n  }\n  return;\n}\n\n" comment (function_definition "void __thiscall std::Catalogs::~Catalogs(Catalogs *this)\n\n{\n  void *pvVar1;\n  undefined8 *puVar2;\n  undefined8 *puVar3;\n  \n  puVar2 = *(undefined8 **)(this + 0x30);\n  puVar3 = *(undefined8 **)(this + 0x38);\n  if (puVar2 != puVar3) {\n    do {\n      pvVar1 = (void *)*puVar2;\n      if (pvVar1 != (void *)0x0) {\n        free(*(void **)((long)pvVar1 + 8));\n        locale::~locale((locale *)((long)pvVar1 + 0x10));\n        operator_delete(pvVar1);\n      }\n      puVar2 = puVar2 + 1;\n    } while (*(undefined8 **)(this + 0x38) != puVar2);\n    puVar3 = *(undefined8 **)(this + 0x30);\n  }\n  if (puVar3 != (undefined8 *)0x0) {\n    operator_delete(puVar3);\n    return;\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::Catalogs::~" identifier : : identifier : : ~) (function_declarator "Catalogs(Catalogs *this)" identifier (parameter_list "(Catalogs *this)" ( (parameter_declaration "Catalogs *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  void *pvVar1;\n  undefined8 *puVar2;\n  undefined8 *puVar3;\n  \n  puVar2 = *(undefined8 **)(this + 0x30);\n  puVar3 = *(undefined8 **)(this + 0x38);\n  if (puVar2 != puVar3) {\n    do {\n      pvVar1 = (void *)*puVar2;\n      if (pvVar1 != (void *)0x0) {\n        free(*(void **)((long)pvVar1 + 8));\n        locale::~locale((locale *)((long)pvVar1 + 0x10));\n        operator_delete(pvVar1);\n      }\n      puVar2 = puVar2 + 1;\n    } while (*(undefined8 **)(this + 0x38) != puVar2);\n    puVar3 = *(undefined8 **)(this + 0x30);\n  }\n  if (puVar3 != (undefined8 *)0x0) {\n    operator_delete(puVar3);\n    return;\n  }\n  return;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined8 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "puVar2 = *(undefined8 **)(this + 0x30);" (assignment_expression "puVar2 = *(undefined8 **)(this + 0x30)" identifier = (pointer_expression "*(undefined8 **)(this + 0x30)" * (cast_expression "(undefined8 **)(this + 0x30)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x30)" ( (binary_expression "this + 0x30" identifier + number_literal) ))))) ;) (expression_statement "puVar3 = *(undefined8 **)(this + 0x38);" (assignment_expression "puVar3 = *(undefined8 **)(this + 0x38)" identifier = (pointer_expression "*(undefined8 **)(this + 0x38)" * (cast_expression "(undefined8 **)(this + 0x38)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x38)" ( (binary_expression "this + 0x38" identifier + number_literal) ))))) ;) (if_statement "if (puVar2 != puVar3) {\n    do {\n      pvVar1 = (void *)*puVar2;\n      if (pvVar1 != (void *)0x0) {\n        free(*(void **)((long)pvVar1 + 8));\n        locale::~locale((locale *)((long)pvVar1 + 0x10));\n        operator_delete(pvVar1);\n      }\n      puVar2 = puVar2 + 1;\n    } while (*(undefined8 **)(this + 0x38) != puVar2);\n    puVar3 = *(undefined8 **)(this + 0x30);\n  }" if (parenthesized_expression "(puVar2 != puVar3)" ( (binary_expression "puVar2 != puVar3" identifier != identifier) )) (compound_statement "{\n    do {\n      pvVar1 = (void *)*puVar2;\n      if (pvVar1 != (void *)0x0) {\n        free(*(void **)((long)pvVar1 + 8));\n        locale::~locale((locale *)((long)pvVar1 + 0x10));\n        operator_delete(pvVar1);\n      }\n      puVar2 = puVar2 + 1;\n    } while (*(undefined8 **)(this + 0x38) != puVar2);\n    puVar3 = *(undefined8 **)(this + 0x30);\n  }" { (do_statement "do {\n      pvVar1 = (void *)*puVar2;\n      if (pvVar1 != (void *)0x0) {\n        free(*(void **)((long)pvVar1 + 8));\n        locale::~locale((locale *)((long)pvVar1 + 0x10));\n        operator_delete(pvVar1);\n      }\n      puVar2 = puVar2 + 1;\n    } while (*(undefined8 **)(this + 0x38) != puVar2);" do (compound_statement "{\n      pvVar1 = (void *)*puVar2;\n      if (pvVar1 != (void *)0x0) {\n        free(*(void **)((long)pvVar1 + 8));\n        locale::~locale((locale *)((long)pvVar1 + 0x10));\n        operator_delete(pvVar1);\n      }\n      puVar2 = puVar2 + 1;\n    }" { (expression_statement "pvVar1 = (void *)*puVar2;" (assignment_expression "pvVar1 = (void *)*puVar2" identifier = (cast_expression "(void *)*puVar2" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) ;) (if_statement "if (pvVar1 != (void *)0x0) {\n        free(*(void **)((long)pvVar1 + 8));\n        locale::~locale((locale *)((long)pvVar1 + 0x10));\n        operator_delete(pvVar1);\n      }" if (parenthesized_expression "(pvVar1 != (void *)0x0)" ( (binary_expression "pvVar1 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        free(*(void **)((long)pvVar1 + 8));\n        locale::~locale((locale *)((long)pvVar1 + 0x10));\n        operator_delete(pvVar1);\n      }" { (expression_statement "free(*(void **)((long)pvVar1 + 8));" (call_expression "free(*(void **)((long)pvVar1 + 8))" identifier (argument_list "(*(void **)((long)pvVar1 + 8))" ( (pointer_expression "*(void **)((long)pvVar1 + 8)" * (cast_expression "(void **)((long)pvVar1 + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)pvVar1 + 8)" ( (binary_expression "(long)pvVar1 + 8" (cast_expression "(long)pvVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ))) ;) (labeled_statement "locale::~locale((locale *)((long)pvVar1 + 0x10));" statement_identifier : (ERROR ":" :) (expression_statement "~locale((locale *)((long)pvVar1 + 0x10));" (unary_expression "~locale((locale *)((long)pvVar1 + 0x10))" ~ (call_expression "locale((locale *)((long)pvVar1 + 0x10))" identifier (argument_list "((locale *)((long)pvVar1 + 0x10))" ( (cast_expression "(locale *)((long)pvVar1 + 0x10)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar1 + 0x10)" ( (binary_expression "(long)pvVar1 + 0x10" (cast_expression "(long)pvVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))) )))) ;)) (expression_statement "operator_delete(pvVar1);" (call_expression "operator_delete(pvVar1)" identifier (argument_list "(pvVar1)" ( identifier ))) ;) })) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(*(undefined8 **)(this + 0x38) != puVar2)" ( (binary_expression "*(undefined8 **)(this + 0x38) != puVar2" (pointer_expression "*(undefined8 **)(this + 0x38)" * (cast_expression "(undefined8 **)(this + 0x38)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x38)" ( (binary_expression "this + 0x38" identifier + number_literal) )))) != identifier) )) ;) (expression_statement "puVar3 = *(undefined8 **)(this + 0x30);" (assignment_expression "puVar3 = *(undefined8 **)(this + 0x30)" identifier = (pointer_expression "*(undefined8 **)(this + 0x30)" * (cast_expression "(undefined8 **)(this + 0x30)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x30)" ( (binary_expression "this + 0x30" identifier + number_literal) ))))) ;) })) (if_statement "if (puVar3 != (undefined8 *)0x0) {\n    operator_delete(puVar3);\n    return;\n  }" if (parenthesized_expression "(puVar3 != (undefined8 *)0x0)" ( (binary_expression "puVar3 != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    operator_delete(puVar3);\n    return;\n  }" { (expression_statement "operator_delete(puVar3);" (call_expression "operator_delete(puVar3)" identifier (argument_list "(puVar3)" ( identifier ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00332ab0(long param_1)\n\n{\n  long lVar1;\n  long *plVar2;\n  long *plVar3;\n  \n  plVar2 = *(long **)(param_1 + 0x30);\n  plVar3 = *(long **)(param_1 + 0x38);\n  if (plVar2 != plVar3) {\n    do {\n      lVar1 = *plVar2;\n      if (lVar1 != 0) {\n        free(*(void **)(lVar1 + 8));\n        FUN_002f43a0(lVar1 + 0x10);\n        FUN_002f1e60(lVar1);\n      }\n      plVar2 = plVar2 + 1;\n    } while (*(long **)(param_1 + 0x38) != plVar2);\n    plVar3 = *(long **)(param_1 + 0x30);\n  }\n  if (plVar3 != (long *)0x0) {\n    FUN_002f1e60();\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_00332ab0(long param_1)\n\n{\n  long lVar1;\n  long *plVar2;\n  long *plVar3;\n  \n  plVar2 = *(long **)(param_1 + 0x30);\n  plVar3 = *(long **)(param_1 + 0x38);\n  if (plVar2 != plVar3) {\n    do {\n      lVar1 = *plVar2;\n      if (lVar1 != 0) {\n        free(*(void **)(lVar1 + 8));\n        FUN_002f43a0(lVar1 + 0x10);\n        FUN_002f1e60(lVar1);\n      }\n      plVar2 = plVar2 + 1;\n    } while (*(long **)(param_1 + 0x38) != plVar2);\n    plVar3 = *(long **)(param_1 + 0x30);\n  }\n  if (plVar3 != (long *)0x0) {\n    FUN_002f1e60();\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00332ab0(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  long *plVar2;\n  long *plVar3;\n  \n  plVar2 = *(long **)(param_1 + 0x30);\n  plVar3 = *(long **)(param_1 + 0x38);\n  if (plVar2 != plVar3) {\n    do {\n      lVar1 = *plVar2;\n      if (lVar1 != 0) {\n        free(*(void **)(lVar1 + 8));\n        FUN_002f43a0(lVar1 + 0x10);\n        FUN_002f1e60(lVar1);\n      }\n      plVar2 = plVar2 + 1;\n    } while (*(long **)(param_1 + 0x38) != plVar2);\n    plVar3 = *(long **)(param_1 + 0x30);\n  }\n  if (plVar3 != (long *)0x0) {\n    FUN_002f1e60();\n    return;\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (declaration "long *plVar3;" (sized_type_specifier "long" long) (pointer_declarator "*plVar3" * identifier) ;) (expression_statement "plVar2 = *(long **)(param_1 + 0x30);" (assignment_expression "plVar2 = *(long **)(param_1 + 0x30)" identifier = (pointer_expression "*(long **)(param_1 + 0x30)" * (cast_expression "(long **)(param_1 + 0x30)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "plVar3 = *(long **)(param_1 + 0x38);" (assignment_expression "plVar3 = *(long **)(param_1 + 0x38)" identifier = (pointer_expression "*(long **)(param_1 + 0x38)" * (cast_expression "(long **)(param_1 + 0x38)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) ))))) ;) (if_statement "if (plVar2 != plVar3) {\n    do {\n      lVar1 = *plVar2;\n      if (lVar1 != 0) {\n        free(*(void **)(lVar1 + 8));\n        FUN_002f43a0(lVar1 + 0x10);\n        FUN_002f1e60(lVar1);\n      }\n      plVar2 = plVar2 + 1;\n    } while (*(long **)(param_1 + 0x38) != plVar2);\n    plVar3 = *(long **)(param_1 + 0x30);\n  }" if (parenthesized_expression "(plVar2 != plVar3)" ( (binary_expression "plVar2 != plVar3" identifier != identifier) )) (compound_statement "{\n    do {\n      lVar1 = *plVar2;\n      if (lVar1 != 0) {\n        free(*(void **)(lVar1 + 8));\n        FUN_002f43a0(lVar1 + 0x10);\n        FUN_002f1e60(lVar1);\n      }\n      plVar2 = plVar2 + 1;\n    } while (*(long **)(param_1 + 0x38) != plVar2);\n    plVar3 = *(long **)(param_1 + 0x30);\n  }" { (do_statement "do {\n      lVar1 = *plVar2;\n      if (lVar1 != 0) {\n        free(*(void **)(lVar1 + 8));\n        FUN_002f43a0(lVar1 + 0x10);\n        FUN_002f1e60(lVar1);\n      }\n      plVar2 = plVar2 + 1;\n    } while (*(long **)(param_1 + 0x38) != plVar2);" do (compound_statement "{\n      lVar1 = *plVar2;\n      if (lVar1 != 0) {\n        free(*(void **)(lVar1 + 8));\n        FUN_002f43a0(lVar1 + 0x10);\n        FUN_002f1e60(lVar1);\n      }\n      plVar2 = plVar2 + 1;\n    }" { (expression_statement "lVar1 = *plVar2;" (assignment_expression "lVar1 = *plVar2" identifier = (pointer_expression "*plVar2" * identifier)) ;) (if_statement "if (lVar1 != 0) {\n        free(*(void **)(lVar1 + 8));\n        FUN_002f43a0(lVar1 + 0x10);\n        FUN_002f1e60(lVar1);\n      }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        free(*(void **)(lVar1 + 8));\n        FUN_002f43a0(lVar1 + 0x10);\n        FUN_002f1e60(lVar1);\n      }" { (expression_statement "free(*(void **)(lVar1 + 8));" (call_expression "free(*(void **)(lVar1 + 8))" identifier (argument_list "(*(void **)(lVar1 + 8))" ( (pointer_expression "*(void **)(lVar1 + 8)" * (cast_expression "(void **)(lVar1 + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar1 + 8)" ( (binary_expression "lVar1 + 8" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_002f43a0(lVar1 + 0x10);" (call_expression "FUN_002f43a0(lVar1 + 0x10)" identifier (argument_list "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) ))) ;) (expression_statement "FUN_002f1e60(lVar1);" (call_expression "FUN_002f1e60(lVar1)" identifier (argument_list "(lVar1)" ( identifier ))) ;) })) (expression_statement "plVar2 = plVar2 + 1;" (assignment_expression "plVar2 = plVar2 + 1" identifier = (binary_expression "plVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(*(long **)(param_1 + 0x38) != plVar2)" ( (binary_expression "*(long **)(param_1 + 0x38) != plVar2" (pointer_expression "*(long **)(param_1 + 0x38)" * (cast_expression "(long **)(param_1 + 0x38)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) != identifier) )) ;) (expression_statement "plVar3 = *(long **)(param_1 + 0x30);" (assignment_expression "plVar3 = *(long **)(param_1 + 0x30)" identifier = (pointer_expression "*(long **)(param_1 + 0x30)" * (cast_expression "(long **)(param_1 + 0x30)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) ;) })) (if_statement "if (plVar3 != (long *)0x0) {\n    FUN_002f1e60();\n    return;\n  }" if (parenthesized_expression "(plVar3 != (long *)0x0)" ( (binary_expression "plVar3 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    FUN_002f1e60();\n    return;\n  }" { (expression_statement "FUN_002f1e60();" (call_expression "FUN_002f1e60()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) )) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void FUN_00332ab0(long param_1)\n\n{\n  long lVar1;\n  long *plVar2;\n  long *plVar3;\n  \n  plVar2 = *(long **)(param_1 + 0x30);\n  plVar3 = *(long **)(param_1 + 0x38);\n  if (plVar2 != plVar3) {\n    do {\n      lVar1 = *plVar2;\n      if (lVar1 != 0) {\n        free(*(void **)(lVar1 + 8));\n        FUN_002f43a0(lVar1 + 0x10);\n        FUN_002f1e60(lVar1);\n      }\n      plVar2 = plVar2 + 1;\n    } while (*(long **)(param_1 + 0x38) != plVar2);\n    plVar3 = *(long **)(param_1 + 0x30);\n  }\n  if (plVar3 != (long *)0x0) {\n    FUN_002f1e60();\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00332ab0(long param_1)" (identifier "FUN_00332ab0") (parameter_list "(long param_1)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) () ")"))) (compound_statement "{\n  long lVar1;\n  long *plVar2;\n  long *plVar3;\n  \n  plVar2 = *(long **)(param_1 + 0x30);\n  plVar3 = *(long **)(param_1 + 0x38);\n  if (plVar2 != plVar3) {\n    do {\n      lVar1 = *plVar2;\n      if (lVar1 != 0) {\n        free(*(void **)(lVar1 + 8));\n        FUN_002f43a0(lVar1 + 0x10);\n        FUN_002f1e60(lVar1);\n      }\n      plVar2 = plVar2 + 1;\n    } while (*(long **)(param_1 + 0x38) != plVar2);\n    plVar3 = *(long **)(param_1 + 0x30);\n  }\n  if (plVar3 != (long *)0x0) {\n    FUN_002f1e60();\n    return;\n  }\n  return;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "long *plVar2;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar2" (* "*") (identifier "plVar2")) (; ";")) (declaration "long *plVar3;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar3" (* "*") (identifier "plVar3")) (; ";")) (expression_statement "plVar2 = *(long **)(param_1 + 0x30);" (assignment_expression "plVar2 = *(long **)(param_1 + 0x30)" (identifier "plVar2") (= "=") (pointer_expression "*(long **)(param_1 + 0x30)" (* "*") (cast_expression "(long **)(param_1 + 0x30)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (expression_statement "plVar3 = *(long **)(param_1 + 0x38);" (assignment_expression "plVar3 = *(long **)(param_1 + 0x38)" (identifier "plVar3") (= "=") (pointer_expression "*(long **)(param_1 + 0x38)" (* "*") (cast_expression "(long **)(param_1 + 0x38)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")"))))) (; ";")) (if_statement "if (plVar2 != plVar3) {\n    do {\n      lVar1 = *plVar2;\n      if (lVar1 != 0) {\n        free(*(void **)(lVar1 + 8));\n        FUN_002f43a0(lVar1 + 0x10);\n        FUN_002f1e60(lVar1);\n      }\n      plVar2 = plVar2 + 1;\n    } while (*(long **)(param_1 + 0x38) != plVar2);\n    plVar3 = *(long **)(param_1 + 0x30);\n  }" (if "if") (parenthesized_expression "(plVar2 != plVar3)" (( "(") (binary_expression "plVar2 != plVar3" (identifier "plVar2") (!= "!=") (identifier "plVar3")) () ")")) (compound_statement "{\n    do {\n      lVar1 = *plVar2;\n      if (lVar1 != 0) {\n        free(*(void **)(lVar1 + 8));\n        FUN_002f43a0(lVar1 + 0x10);\n        FUN_002f1e60(lVar1);\n      }\n      plVar2 = plVar2 + 1;\n    } while (*(long **)(param_1 + 0x38) != plVar2);\n    plVar3 = *(long **)(param_1 + 0x30);\n  }" ({ "{") (do_statement "do {\n      lVar1 = *plVar2;\n      if (lVar1 != 0) {\n        free(*(void **)(lVar1 + 8));\n        FUN_002f43a0(lVar1 + 0x10);\n        FUN_002f1e60(lVar1);\n      }\n      plVar2 = plVar2 + 1;\n    } while (*(long **)(param_1 + 0x38) != plVar2);" (do "do") (compound_statement "{\n      lVar1 = *plVar2;\n      if (lVar1 != 0) {\n        free(*(void **)(lVar1 + 8));\n        FUN_002f43a0(lVar1 + 0x10);\n        FUN_002f1e60(lVar1);\n      }\n      plVar2 = plVar2 + 1;\n    }" ({ "{") (expression_statement "lVar1 = *plVar2;" (assignment_expression "lVar1 = *plVar2" (identifier "lVar1") (= "=") (pointer_expression "*plVar2" (* "*") (identifier "plVar2"))) (; ";")) (if_statement "if (lVar1 != 0) {\n        free(*(void **)(lVar1 + 8));\n        FUN_002f43a0(lVar1 + 0x10);\n        FUN_002f1e60(lVar1);\n      }" (if "if") (parenthesized_expression "(lVar1 != 0)" (( "(") (binary_expression "lVar1 != 0" (identifier "lVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        free(*(void **)(lVar1 + 8));\n        FUN_002f43a0(lVar1 + 0x10);\n        FUN_002f1e60(lVar1);\n      }" ({ "{") (expression_statement "free(*(void **)(lVar1 + 8));" (call_expression "free(*(void **)(lVar1 + 8))" (identifier "free") (argument_list "(*(void **)(lVar1 + 8))" (( "(") (pointer_expression "*(void **)(lVar1 + 8)" (* "*") (cast_expression "(void **)(lVar1 + 8)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar1 + 8)" (( "(") (binary_expression "lVar1 + 8" (identifier "lVar1") (+ "+") (number_literal "8")) () ")")))) () ")"))) (; ";")) (expression_statement "FUN_002f43a0(lVar1 + 0x10);" (call_expression "FUN_002f43a0(lVar1 + 0x10)" (identifier "FUN_002f43a0") (argument_list "(lVar1 + 0x10)" (( "(") (binary_expression "lVar1 + 0x10" (identifier "lVar1") (+ "+") (number_literal "0x10")) () ")"))) (; ";")) (expression_statement "FUN_002f1e60(lVar1);" (call_expression "FUN_002f1e60(lVar1)" (identifier "FUN_002f1e60") (argument_list "(lVar1)" (( "(") (identifier "lVar1") () ")"))) (; ";")) (} "}"))) (expression_statement "plVar2 = plVar2 + 1;" (assignment_expression "plVar2 = plVar2 + 1" (identifier "plVar2") (= "=") (binary_expression "plVar2 + 1" (identifier "plVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*(long **)(param_1 + 0x38) != plVar2)" (( "(") (binary_expression "*(long **)(param_1 + 0x38) != plVar2" (pointer_expression "*(long **)(param_1 + 0x38)" (* "*") (cast_expression "(long **)(param_1 + 0x38)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (!= "!=") (identifier "plVar2")) () ")")) (; ";")) (expression_statement "plVar3 = *(long **)(param_1 + 0x30);" (assignment_expression "plVar3 = *(long **)(param_1 + 0x30)" (identifier "plVar3") (= "=") (pointer_expression "*(long **)(param_1 + 0x30)" (* "*") (cast_expression "(long **)(param_1 + 0x30)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (} "}"))) (if_statement "if (plVar3 != (long *)0x0) {\n    FUN_002f1e60();\n    return;\n  }" (if "if") (parenthesized_expression "(plVar3 != (long *)0x0)" (( "(") (binary_expression "plVar3 != (long *)0x0" (identifier "plVar3") (!= "!=") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    FUN_002f1e60();\n    return;\n  }" ({ "{") (expression_statement "FUN_002f1e60();" (call_expression "FUN_002f1e60()" (identifier "FUN_002f1e60") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::Catalogs::~Catalogs() */

void __thiscall std::function_1::~function_1(function_1 *var_1)

{
  void *var_4;
  type_1 *var_2;
  type_1 *var_3;
  
  var_2 = *(type_1 **)(var_1 + 0x30);
  var_3 = *(type_1 **)(var_1 + 0x38);
  if (var_2 != var_3) {
    do {
      var_4 = (void *)*var_2;
      if (var_4 != (void *)0x0) {
        var_5(*(void **)((long)var_4 + 8));
        locale::~var_6((var_6 *)((long)var_4 + 0x10));
        var_7(var_4);
      }
      var_2 = var_2 + 1;
    } while (*(type_1 **)(var_1 + 0x38) != var_2);
    var_3 = *(type_1 **)(var_1 + 0x30);
  }
  if (var_3 != (type_1 *)0x0) {
    var_7(var_3);
    return;
  }
  return;
}


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

void MASKED(long param_1)

{
  long lVar1;
  long *plVar2;
  long *plVar3;
  
  plVar2 = *(long **)(param_1 + 0x30);
  plVar3 = *(long **)(param_1 + 0x38);
  if (plVar2 != plVar3) {
    do {
      lVar1 = *plVar2;
      if (lVar1 != 0) {
        free(*(void **)(lVar1 + 8));
        FUN_002f43a0(lVar1 + 0x10);
        FUN_002f1e60(lVar1);
      }
      plVar2 = plVar2 + 1;
    } while (*(long **)(param_1 + 0x38) != plVar2);
    plVar3 = *(long **)(param_1 + 0x30);
  }
  if (plVar3 != (long *)0x0) {
    FUN_002f1e60();
    return;
  }
  return;
}

