
/* std::locale::_Impl::~_Impl() [clone .cold.20] */

void __thiscall std::locale::_Impl::~_Impl(_Impl *this)

{
  int *piVar1;
  int *piVar2;
  void *pvVar3;
  int unaff_EBP;
  int unaff_ESI;
  uint unaff_EDI;
  uint uVar4;
  int iVar5;
  
  __cxa_begin_catch();
                    /* try { // try from 0002f152 to 0002f156 has its CatchHandler @ 0002f17e */
  __cxa_end_catch();
  pvVar3 = *(void **)(unaff_ESI + 4);
  while (unaff_EDI = unaff_EDI + 1, unaff_EDI < *(uint *)(unaff_ESI + 8)) {
    piVar2 = *(int **)((int)pvVar3 + unaff_EDI * 4);
    if (piVar2 != (int *)0x0) {
      if (*(int *)(unaff_EBP + -0x20) == 0) {
        iVar5 = piVar2[1];
        piVar2[1] = iVar5 + -1;
      }
      else {
        LOCK();
        piVar1 = piVar2 + 1;
        iVar5 = *piVar1;
        *piVar1 = *piVar1 + -1;
        UNLOCK();
      }
      if (iVar5 == 1) {
        (**(code **)(*piVar2 + 4))(piVar2);
      }
      pvVar3 = *(void **)(unaff_ESI + 4);
    }
  }
  if (pvVar3 != (void *)0x0) {
    operator_delete__(pvVar3);
  }
  pvVar3 = *(void **)(unaff_ESI + 0xc);
  if (pvVar3 != (void *)0x0) {
    if (*(int *)(unaff_ESI + 8) != 0) {
      uVar4 = 0;
      *(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc);
      do {
        piVar2 = *(int **)((int)pvVar3 + uVar4 * 4);
        if (piVar2 != (int *)0x0) {
          if (*(int *)(unaff_EBP + -0x20) == 0) {
            iVar5 = piVar2[1];
            piVar2[1] = iVar5 + -1;
          }
          else {
            LOCK();
            piVar1 = piVar2 + 1;
            iVar5 = *piVar1;
            *piVar1 = *piVar1 + -1;
            UNLOCK();
          }
          if (iVar5 == 1) {
            (**(code **)(*piVar2 + 4))(piVar2);
          }
          pvVar3 = *(void **)(unaff_ESI + 0xc);
        }
        uVar4 = uVar4 + 1;
      } while (uVar4 < *(uint *)(unaff_ESI + 8));
      if (pvVar3 == (void *)0x0) goto LAB_00182e13;
    }
    operator_delete__(pvVar3);
  }
LAB_00182e13:
  pvVar3 = *(void **)(unaff_ESI + 0x10);
  iVar5 = 0;
  if (pvVar3 != (void *)0x0) {
    do {
      if (*(void **)((int)pvVar3 + iVar5) != (void *)0x0) {
        operator_delete__(*(void **)((int)pvVar3 + iVar5));
        pvVar3 = *(void **)(unaff_ESI + 0x10);
      }
      iVar5 = iVar5 + 4;
    } while (iVar5 != 0x30);
    if (pvVar3 != (void *)0x0) {
      operator_delete__(pvVar3);
    }
  }
  return;
}



void __regparm3 FUN_0002f140(undefined4 param_1)

{
  int *piVar1;
  int *piVar2;
  int iVar3;
  int unaff_EBP;
  int unaff_ESI;
  uint unaff_EDI;
  uint uVar4;
  int iVar5;
  
  FUN_0017feb0(param_1);
                    /* try { // try from 0002f152 to 0002f156 has its CatchHandler @ 0002f17e */
  FUN_0017ff50();
  iVar3 = *(int *)(unaff_ESI + 4);
  while (unaff_EDI = unaff_EDI + 1, unaff_EDI < *(uint *)(unaff_ESI + 8)) {
    piVar2 = *(int **)(iVar3 + unaff_EDI * 4);
    if (piVar2 != (int *)0x0) {
      if (*(int *)(unaff_EBP + -0x20) == 0) {
        iVar3 = piVar2[1];
        piVar2[1] = iVar3 + -1;
      }
      else {
        LOCK();
        piVar1 = piVar2 + 1;
        iVar3 = *piVar1;
        *piVar1 = *piVar1 + -1;
        UNLOCK();
      }
      if (iVar3 == 1) {
        (**(code **)(*piVar2 + 4))(piVar2);
      }
      iVar3 = *(int *)(unaff_ESI + 4);
    }
  }
  if (iVar3 != 0) {
    FUN_00180740(iVar3);
  }
  iVar3 = *(int *)(unaff_ESI + 0xc);
  if (iVar3 != 0) {
    if (*(int *)(unaff_ESI + 8) != 0) {
      uVar4 = 0;
      *(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc);
      do {
        piVar2 = *(int **)(iVar3 + uVar4 * 4);
        if (piVar2 != (int *)0x0) {
          if (*(int *)(unaff_EBP + -0x20) == 0) {
            iVar3 = piVar2[1];
            piVar2[1] = iVar3 + -1;
          }
          else {
            LOCK();
            piVar1 = piVar2 + 1;
            iVar3 = *piVar1;
            *piVar1 = *piVar1 + -1;
            UNLOCK();
          }
          if (iVar3 == 1) {
            (**(code **)(*piVar2 + 4))(piVar2);
          }
          iVar3 = *(int *)(unaff_ESI + 0xc);
        }
        uVar4 = uVar4 + 1;
      } while (uVar4 < *(uint *)(unaff_ESI + 8));
      if (iVar3 == 0) goto LAB_00182e13;
    }
    FUN_00180740(iVar3);
  }
LAB_00182e13:
  iVar3 = *(int *)(unaff_ESI + 0x10);
  iVar5 = 0;
  if (iVar3 != 0) {
    do {
      if (*(int *)(iVar3 + iVar5) != 0) {
        FUN_00180740(*(int *)(iVar3 + iVar5));
        iVar3 = *(int *)(unaff_ESI + 0x10);
      }
      iVar5 = iVar5 + 4;
    } while (iVar5 != 0x30);
    if (iVar3 != 0) {
      FUN_00180740(iVar3);
    }
  }
  return;
}


SUB ESP,0xc
MOV EBX,dword ptr [EBP + -0x1c]
PUSH EAX
CALL 0x0017feb0
MOV EBX,dword ptr [EBP + -0x1c]
ADD ESP,0x10
CALL 0x0017ff50
MOV EDX,dword ptr [ESI + 0x4]
JMP 0x00182d4a
(translation_unit "void __regparm3 FUN_0002f140(undefined4 param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int unaff_EBP;\n  int unaff_ESI;\n  uint unaff_EDI;\n  uint uVar4;\n  int iVar5;\n  \n  FUN_0017feb0(param_1);\n                    /* try { // try from 0002f152 to 0002f156 has its CatchHandler @ 0002f17e */\n  FUN_0017ff50();\n  iVar3 = *(int *)(unaff_ESI + 4);\n  while (unaff_EDI = unaff_EDI + 1, unaff_EDI < *(uint *)(unaff_ESI + 8)) {\n    piVar2 = *(int **)(iVar3 + unaff_EDI * 4);\n    if (piVar2 != (int *)0x0) {\n      if (*(int *)(unaff_EBP + -0x20) == 0) {\n        iVar3 = piVar2[1];\n        piVar2[1] = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*piVar2 + 4))(piVar2);\n      }\n      iVar3 = *(int *)(unaff_ESI + 4);\n    }\n  }\n  if (iVar3 != 0) {\n    FUN_00180740(iVar3);\n  }\n  iVar3 = *(int *)(unaff_ESI + 0xc);\n  if (iVar3 != 0) {\n    if (*(int *)(unaff_ESI + 8) != 0) {\n      uVar4 = 0;\n      *(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc);\n      do {\n        piVar2 = *(int **)(iVar3 + uVar4 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar3 = *(int *)(unaff_ESI + 0xc);\n        }\n        uVar4 = uVar4 + 1;\n      } while (uVar4 < *(uint *)(unaff_ESI + 8));\n      if (iVar3 == 0) goto LAB_00182e13;\n    }\n    FUN_00180740(iVar3);\n  }\nLAB_00182e13:\n  iVar3 = *(int *)(unaff_ESI + 0x10);\n  iVar5 = 0;\n  if (iVar3 != 0) {\n    do {\n      if (*(int *)(iVar3 + iVar5) != 0) {\n        FUN_00180740(*(int *)(iVar3 + iVar5));\n        iVar3 = *(int *)(unaff_ESI + 0x10);\n      }\n      iVar5 = iVar5 + 4;\n    } while (iVar5 != 0x30);\n    if (iVar3 != 0) {\n      FUN_00180740(iVar3);\n    }\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0002f140(undefined4 param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int unaff_EBP;\n  int unaff_ESI;\n  uint unaff_EDI;\n  uint uVar4;\n  int iVar5;\n  \n  FUN_0017feb0(param_1);\n                    /* try { // try from 0002f152 to 0002f156 has its CatchHandler @ 0002f17e */\n  FUN_0017ff50();\n  iVar3 = *(int *)(unaff_ESI + 4);\n  while (unaff_EDI = unaff_EDI + 1, unaff_EDI < *(uint *)(unaff_ESI + 8)) {\n    piVar2 = *(int **)(iVar3 + unaff_EDI * 4);\n    if (piVar2 != (int *)0x0) {\n      if (*(int *)(unaff_EBP + -0x20) == 0) {\n        iVar3 = piVar2[1];\n        piVar2[1] = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*piVar2 + 4))(piVar2);\n      }\n      iVar3 = *(int *)(unaff_ESI + 4);\n    }\n  }\n  if (iVar3 != 0) {\n    FUN_00180740(iVar3);\n  }\n  iVar3 = *(int *)(unaff_ESI + 0xc);\n  if (iVar3 != 0) {\n    if (*(int *)(unaff_ESI + 8) != 0) {\n      uVar4 = 0;\n      *(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc);\n      do {\n        piVar2 = *(int **)(iVar3 + uVar4 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar3 = *(int *)(unaff_ESI + 0xc);\n        }\n        uVar4 = uVar4 + 1;\n      } while (uVar4 < *(uint *)(unaff_ESI + 8));\n      if (iVar3 == 0) goto LAB_00182e13;\n    }\n    FUN_00180740(iVar3);\n  }\nLAB_00182e13:\n  iVar3 = *(int *)(unaff_ESI + 0x10);\n  iVar5 = 0;\n  if (iVar3 != 0) {\n    do {\n      if (*(int *)(iVar3 + iVar5) != 0) {\n        FUN_00180740(*(int *)(iVar3 + iVar5));\n        iVar3 = *(int *)(unaff_ESI + 0x10);\n      }\n      iVar5 = iVar5 + 4;\n    } while (iVar5 != 0x30);\n    if (iVar3 != 0) {\n      FUN_00180740(iVar3);\n    }\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0002f140(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int unaff_EBP;\n  int unaff_ESI;\n  uint unaff_EDI;\n  uint uVar4;\n  int iVar5;\n  \n  FUN_0017feb0(param_1);\n                    /* try { // try from 0002f152 to 0002f156 has its CatchHandler @ 0002f17e */\n  FUN_0017ff50();\n  iVar3 = *(int *)(unaff_ESI + 4);\n  while (unaff_EDI = unaff_EDI + 1, unaff_EDI < *(uint *)(unaff_ESI + 8)) {\n    piVar2 = *(int **)(iVar3 + unaff_EDI * 4);\n    if (piVar2 != (int *)0x0) {\n      if (*(int *)(unaff_EBP + -0x20) == 0) {\n        iVar3 = piVar2[1];\n        piVar2[1] = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*piVar2 + 4))(piVar2);\n      }\n      iVar3 = *(int *)(unaff_ESI + 4);\n    }\n  }\n  if (iVar3 != 0) {\n    FUN_00180740(iVar3);\n  }\n  iVar3 = *(int *)(unaff_ESI + 0xc);\n  if (iVar3 != 0) {\n    if (*(int *)(unaff_ESI + 8) != 0) {\n      uVar4 = 0;\n      *(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc);\n      do {\n        piVar2 = *(int **)(iVar3 + uVar4 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar3 = *(int *)(unaff_ESI + 0xc);\n        }\n        uVar4 = uVar4 + 1;\n      } while (uVar4 < *(uint *)(unaff_ESI + 8));\n      if (iVar3 == 0) goto LAB_00182e13;\n    }\n    FUN_00180740(iVar3);\n  }\nLAB_00182e13:\n  iVar3 = *(int *)(unaff_ESI + 0x10);\n  iVar5 = 0;\n  if (iVar3 != 0) {\n    do {\n      if (*(int *)(iVar3 + iVar5) != 0) {\n        FUN_00180740(*(int *)(iVar3 + iVar5));\n        iVar3 = *(int *)(unaff_ESI + 0x10);\n      }\n      iVar5 = iVar5 + 4;\n    } while (iVar5 != 0x30);\n    if (iVar3 != 0) {\n      FUN_00180740(iVar3);\n    }\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int unaff_EBP;" primitive_type identifier ;) (declaration "int unaff_ESI;" primitive_type identifier ;) (declaration "uint unaff_EDI;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "FUN_0017feb0(param_1);" (call_expression "FUN_0017feb0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) comment (expression_statement "FUN_0017ff50();" (call_expression "FUN_0017ff50()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar3 = *(int *)(unaff_ESI + 4);" (assignment_expression "iVar3 = *(int *)(unaff_ESI + 4)" identifier = (pointer_expression "*(int *)(unaff_ESI + 4)" * (cast_expression "(int *)(unaff_ESI + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_ESI + 4)" ( (binary_expression "unaff_ESI + 4" identifier + number_literal) ))))) ;) (while_statement "while (unaff_EDI = unaff_EDI + 1, unaff_EDI < *(uint *)(unaff_ESI + 8)) {\n    piVar2 = *(int **)(iVar3 + unaff_EDI * 4);\n    if (piVar2 != (int *)0x0) {\n      if (*(int *)(unaff_EBP + -0x20) == 0) {\n        iVar3 = piVar2[1];\n        piVar2[1] = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*piVar2 + 4))(piVar2);\n      }\n      iVar3 = *(int *)(unaff_ESI + 4);\n    }\n  }" while (parenthesized_expression "(unaff_EDI = unaff_EDI + 1, unaff_EDI < *(uint *)(unaff_ESI + 8))" ( (comma_expression "unaff_EDI = unaff_EDI + 1, unaff_EDI < *(uint *)(unaff_ESI + 8)" (assignment_expression "unaff_EDI = unaff_EDI + 1" identifier = (binary_expression "unaff_EDI + 1" identifier + number_literal)) , (binary_expression "unaff_EDI < *(uint *)(unaff_ESI + 8)" identifier < (pointer_expression "*(uint *)(unaff_ESI + 8)" * (cast_expression "(uint *)(unaff_ESI + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_ESI + 8)" ( (binary_expression "unaff_ESI + 8" identifier + number_literal) )))))) )) (compound_statement "{\n    piVar2 = *(int **)(iVar3 + unaff_EDI * 4);\n    if (piVar2 != (int *)0x0) {\n      if (*(int *)(unaff_EBP + -0x20) == 0) {\n        iVar3 = piVar2[1];\n        piVar2[1] = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*piVar2 + 4))(piVar2);\n      }\n      iVar3 = *(int *)(unaff_ESI + 4);\n    }\n  }" { (expression_statement "piVar2 = *(int **)(iVar3 + unaff_EDI * 4);" (assignment_expression "piVar2 = *(int **)(iVar3 + unaff_EDI * 4)" identifier = (pointer_expression "*(int **)(iVar3 + unaff_EDI * 4)" * (cast_expression "(int **)(iVar3 + unaff_EDI * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + unaff_EDI * 4)" ( (binary_expression "iVar3 + unaff_EDI * 4" identifier + (binary_expression "unaff_EDI * 4" identifier * number_literal)) ))))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n      if (*(int *)(unaff_EBP + -0x20) == 0) {\n        iVar3 = piVar2[1];\n        piVar2[1] = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*piVar2 + 4))(piVar2);\n      }\n      iVar3 = *(int *)(unaff_ESI + 4);\n    }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (*(int *)(unaff_EBP + -0x20) == 0) {\n        iVar3 = piVar2[1];\n        piVar2[1] = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*piVar2 + 4))(piVar2);\n      }\n      iVar3 = *(int *)(unaff_ESI + 4);\n    }" { (if_statement "if (*(int *)(unaff_EBP + -0x20) == 0) {\n        iVar3 = piVar2[1];\n        piVar2[1] = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" if (parenthesized_expression "(*(int *)(unaff_EBP + -0x20) == 0)" ( (binary_expression "*(int *)(unaff_EBP + -0x20) == 0" (pointer_expression "*(int *)(unaff_EBP + -0x20)" * (cast_expression "(int *)(unaff_EBP + -0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + -0x20)" ( (binary_expression "unaff_EBP + -0x20" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        iVar3 = piVar2[1];\n        piVar2[1] = iVar3 + -1;\n      }" { (expression_statement "iVar3 = piVar2[1];" (assignment_expression "iVar3 = piVar2[1]" identifier = (subscript_expression "piVar2[1]" identifier [ number_literal ])) ;) (expression_statement "piVar2[1] = iVar3 + -1;" (assignment_expression "piVar2[1] = iVar3 + -1" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" else (compound_statement "{\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = piVar2 + 1;" (assignment_expression "piVar1 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar3 == 1) {\n        (**(code **)(*piVar2 + 4))(piVar2);\n      }" if (parenthesized_expression "(iVar3 == 1)" ( (binary_expression "iVar3 == 1" identifier == number_literal) )) (compound_statement "{\n        (**(code **)(*piVar2 + 4))(piVar2);\n      }" { (expression_statement "(**(code **)(*piVar2 + 4))(piVar2);" (call_expression "(**(code **)(*piVar2 + 4))(piVar2)" (parenthesized_expression "(**(code **)(*piVar2 + 4))" ( (pointer_expression "**(code **)(*piVar2 + 4)" * (pointer_expression "*(code **)(*piVar2 + 4)" * (cast_expression "(code **)(*piVar2 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 4)" ( (binary_expression "*piVar2 + 4" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2)" ( identifier ))) ;) })) (expression_statement "iVar3 = *(int *)(unaff_ESI + 4);" (assignment_expression "iVar3 = *(int *)(unaff_ESI + 4)" identifier = (pointer_expression "*(int *)(unaff_ESI + 4)" * (cast_expression "(int *)(unaff_ESI + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_ESI + 4)" ( (binary_expression "unaff_ESI + 4" identifier + number_literal) ))))) ;) })) })) (if_statement "if (iVar3 != 0) {\n    FUN_00180740(iVar3);\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_00180740(iVar3);\n  }" { (expression_statement "FUN_00180740(iVar3);" (call_expression "FUN_00180740(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) })) (expression_statement "iVar3 = *(int *)(unaff_ESI + 0xc);" (assignment_expression "iVar3 = *(int *)(unaff_ESI + 0xc)" identifier = (pointer_expression "*(int *)(unaff_ESI + 0xc)" * (cast_expression "(int *)(unaff_ESI + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_ESI + 0xc)" ( (binary_expression "unaff_ESI + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (iVar3 != 0) {\n    if (*(int *)(unaff_ESI + 8) != 0) {\n      uVar4 = 0;\n      *(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc);\n      do {\n        piVar2 = *(int **)(iVar3 + uVar4 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar3 = *(int *)(unaff_ESI + 0xc);\n        }\n        uVar4 = uVar4 + 1;\n      } while (uVar4 < *(uint *)(unaff_ESI + 8));\n      if (iVar3 == 0) goto LAB_00182e13;\n    }\n    FUN_00180740(iVar3);\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(int *)(unaff_ESI + 8) != 0) {\n      uVar4 = 0;\n      *(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc);\n      do {\n        piVar2 = *(int **)(iVar3 + uVar4 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar3 = *(int *)(unaff_ESI + 0xc);\n        }\n        uVar4 = uVar4 + 1;\n      } while (uVar4 < *(uint *)(unaff_ESI + 8));\n      if (iVar3 == 0) goto LAB_00182e13;\n    }\n    FUN_00180740(iVar3);\n  }" { (if_statement "if (*(int *)(unaff_ESI + 8) != 0) {\n      uVar4 = 0;\n      *(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc);\n      do {\n        piVar2 = *(int **)(iVar3 + uVar4 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar3 = *(int *)(unaff_ESI + 0xc);\n        }\n        uVar4 = uVar4 + 1;\n      } while (uVar4 < *(uint *)(unaff_ESI + 8));\n      if (iVar3 == 0) goto LAB_00182e13;\n    }" if (parenthesized_expression "(*(int *)(unaff_ESI + 8) != 0)" ( (binary_expression "*(int *)(unaff_ESI + 8) != 0" (pointer_expression "*(int *)(unaff_ESI + 8)" * (cast_expression "(int *)(unaff_ESI + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_ESI + 8)" ( (binary_expression "unaff_ESI + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      uVar4 = 0;\n      *(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc);\n      do {\n        piVar2 = *(int **)(iVar3 + uVar4 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar3 = *(int *)(unaff_ESI + 0xc);\n        }\n        uVar4 = uVar4 + 1;\n      } while (uVar4 < *(uint *)(unaff_ESI + 8));\n      if (iVar3 == 0) goto LAB_00182e13;\n    }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc);" (assignment_expression "*(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc)" (pointer_expression "*(undefined4 *)(unaff_EBP + -0x20)" * (cast_expression "(undefined4 *)(unaff_EBP + -0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + -0x20)" ( (binary_expression "unaff_EBP + -0x20" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc)" * (cast_expression "(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(unaff_EBP + -0x1c) + -0xdc)" ( (binary_expression "*(int *)(unaff_EBP + -0x1c) + -0xdc" (pointer_expression "*(int *)(unaff_EBP + -0x1c)" * (cast_expression "(int *)(unaff_EBP + -0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + -0x1c)" ( (binary_expression "unaff_EBP + -0x1c" identifier + number_literal) )))) + number_literal) ))))) ;) (do_statement "do {\n        piVar2 = *(int **)(iVar3 + uVar4 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar3 = *(int *)(unaff_ESI + 0xc);\n        }\n        uVar4 = uVar4 + 1;\n      } while (uVar4 < *(uint *)(unaff_ESI + 8));" do (compound_statement "{\n        piVar2 = *(int **)(iVar3 + uVar4 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar3 = *(int *)(unaff_ESI + 0xc);\n        }\n        uVar4 = uVar4 + 1;\n      }" { (expression_statement "piVar2 = *(int **)(iVar3 + uVar4 * 4);" (assignment_expression "piVar2 = *(int **)(iVar3 + uVar4 * 4)" identifier = (pointer_expression "*(int **)(iVar3 + uVar4 * 4)" * (cast_expression "(int **)(iVar3 + uVar4 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + uVar4 * 4)" ( (binary_expression "iVar3 + uVar4 * 4" identifier + (binary_expression "uVar4 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar3 = *(int *)(unaff_ESI + 0xc);\n        }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar3 = *(int *)(unaff_ESI + 0xc);\n        }" { (if_statement "if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" if (parenthesized_expression "(*(int *)(unaff_EBP + -0x20) == 0)" ( (binary_expression "*(int *)(unaff_EBP + -0x20) == 0" (pointer_expression "*(int *)(unaff_EBP + -0x20)" * (cast_expression "(int *)(unaff_EBP + -0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + -0x20)" ( (binary_expression "unaff_EBP + -0x20" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }" { (expression_statement "iVar3 = piVar2[1];" (assignment_expression "iVar3 = piVar2[1]" identifier = (subscript_expression "piVar2[1]" identifier [ number_literal ])) ;) (expression_statement "piVar2[1] = iVar3 + -1;" (assignment_expression "piVar2[1] = iVar3 + -1" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" else (compound_statement "{\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = piVar2 + 1;" (assignment_expression "piVar1 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar3 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }" if (parenthesized_expression "(iVar3 == 1)" ( (binary_expression "iVar3 == 1" identifier == number_literal) )) (compound_statement "{\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }" { (expression_statement "(**(code **)(*piVar2 + 4))(piVar2);" (call_expression "(**(code **)(*piVar2 + 4))(piVar2)" (parenthesized_expression "(**(code **)(*piVar2 + 4))" ( (pointer_expression "**(code **)(*piVar2 + 4)" * (pointer_expression "*(code **)(*piVar2 + 4)" * (cast_expression "(code **)(*piVar2 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 4)" ( (binary_expression "*piVar2 + 4" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2)" ( identifier ))) ;) })) (expression_statement "iVar3 = *(int *)(unaff_ESI + 0xc);" (assignment_expression "iVar3 = *(int *)(unaff_ESI + 0xc)" identifier = (pointer_expression "*(int *)(unaff_ESI + 0xc)" * (cast_expression "(int *)(unaff_ESI + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_ESI + 0xc)" ( (binary_expression "unaff_ESI + 0xc" identifier + number_literal) ))))) ;) })) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar4 < *(uint *)(unaff_ESI + 8))" ( (binary_expression "uVar4 < *(uint *)(unaff_ESI + 8)" identifier < (pointer_expression "*(uint *)(unaff_ESI + 8)" * (cast_expression "(uint *)(unaff_ESI + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_ESI + 8)" ( (binary_expression "unaff_ESI + 8" identifier + number_literal) ))))) )) ;) (if_statement "if (iVar3 == 0) goto LAB_00182e13;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00182e13;" goto statement_identifier ;)) })) (expression_statement "FUN_00180740(iVar3);" (call_expression "FUN_00180740(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) })) (labeled_statement "LAB_00182e13:\n  iVar3 = *(int *)(unaff_ESI + 0x10);" statement_identifier : (expression_statement "iVar3 = *(int *)(unaff_ESI + 0x10);" (assignment_expression "iVar3 = *(int *)(unaff_ESI + 0x10)" identifier = (pointer_expression "*(int *)(unaff_ESI + 0x10)" * (cast_expression "(int *)(unaff_ESI + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_ESI + 0x10)" ( (binary_expression "unaff_ESI + 0x10" identifier + number_literal) ))))) ;)) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (if_statement "if (iVar3 != 0) {\n    do {\n      if (*(int *)(iVar3 + iVar5) != 0) {\n        FUN_00180740(*(int *)(iVar3 + iVar5));\n        iVar3 = *(int *)(unaff_ESI + 0x10);\n      }\n      iVar5 = iVar5 + 4;\n    } while (iVar5 != 0x30);\n    if (iVar3 != 0) {\n      FUN_00180740(iVar3);\n    }\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      if (*(int *)(iVar3 + iVar5) != 0) {\n        FUN_00180740(*(int *)(iVar3 + iVar5));\n        iVar3 = *(int *)(unaff_ESI + 0x10);\n      }\n      iVar5 = iVar5 + 4;\n    } while (iVar5 != 0x30);\n    if (iVar3 != 0) {\n      FUN_00180740(iVar3);\n    }\n  }" { (do_statement "do {\n      if (*(int *)(iVar3 + iVar5) != 0) {\n        FUN_00180740(*(int *)(iVar3 + iVar5));\n        iVar3 = *(int *)(unaff_ESI + 0x10);\n      }\n      iVar5 = iVar5 + 4;\n    } while (iVar5 != 0x30);" do (compound_statement "{\n      if (*(int *)(iVar3 + iVar5) != 0) {\n        FUN_00180740(*(int *)(iVar3 + iVar5));\n        iVar3 = *(int *)(unaff_ESI + 0x10);\n      }\n      iVar5 = iVar5 + 4;\n    }" { (if_statement "if (*(int *)(iVar3 + iVar5) != 0) {\n        FUN_00180740(*(int *)(iVar3 + iVar5));\n        iVar3 = *(int *)(unaff_ESI + 0x10);\n      }" if (parenthesized_expression "(*(int *)(iVar3 + iVar5) != 0)" ( (binary_expression "*(int *)(iVar3 + iVar5) != 0" (pointer_expression "*(int *)(iVar3 + iVar5)" * (cast_expression "(int *)(iVar3 + iVar5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar5)" ( (binary_expression "iVar3 + iVar5" identifier + identifier) )))) != number_literal) )) (compound_statement "{\n        FUN_00180740(*(int *)(iVar3 + iVar5));\n        iVar3 = *(int *)(unaff_ESI + 0x10);\n      }" { (expression_statement "FUN_00180740(*(int *)(iVar3 + iVar5));" (call_expression "FUN_00180740(*(int *)(iVar3 + iVar5))" identifier (argument_list "(*(int *)(iVar3 + iVar5))" ( (pointer_expression "*(int *)(iVar3 + iVar5)" * (cast_expression "(int *)(iVar3 + iVar5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar5)" ( (binary_expression "iVar3 + iVar5" identifier + identifier) )))) ))) ;) (expression_statement "iVar3 = *(int *)(unaff_ESI + 0x10);" (assignment_expression "iVar3 = *(int *)(unaff_ESI + 0x10)" identifier = (pointer_expression "*(int *)(unaff_ESI + 0x10)" * (cast_expression "(int *)(unaff_ESI + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_ESI + 0x10)" ( (binary_expression "unaff_ESI + 0x10" identifier + number_literal) ))))) ;) })) (expression_statement "iVar5 = iVar5 + 4;" (assignment_expression "iVar5 = iVar5 + 4" identifier = (binary_expression "iVar5 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 != 0x30)" ( (binary_expression "iVar5 != 0x30" identifier != number_literal) )) ;) (if_statement "if (iVar3 != 0) {\n      FUN_00180740(iVar3);\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      FUN_00180740(iVar3);\n    }" { (expression_statement "FUN_00180740(iVar3);" (call_expression "FUN_00180740(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "/* std::locale::_Impl::~_Impl() [clone .cold.20] */\n\nvoid __thiscall std::locale::_Impl::~_Impl(_Impl *this)\n\n{\n  int *piVar1;\n  int *piVar2;\n  void *pvVar3;\n  int unaff_EBP;\n  int unaff_ESI;\n  uint unaff_EDI;\n  uint uVar4;\n  int iVar5;\n  \n  __cxa_begin_catch();\n                    /* try { // try from 0002f152 to 0002f156 has its CatchHandler @ 0002f17e */\n  __cxa_end_catch();\n  pvVar3 = *(void **)(unaff_ESI + 4);\n  while (unaff_EDI = unaff_EDI + 1, unaff_EDI < *(uint *)(unaff_ESI + 8)) {\n    piVar2 = *(int **)((int)pvVar3 + unaff_EDI * 4);\n    if (piVar2 != (int *)0x0) {\n      if (*(int *)(unaff_EBP + -0x20) == 0) {\n        iVar5 = piVar2[1];\n        piVar2[1] = iVar5 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar5 == 1) {\n        (**(code **)(*piVar2 + 4))(piVar2);\n      }\n      pvVar3 = *(void **)(unaff_ESI + 4);\n    }\n  }\n  if (pvVar3 != (void *)0x0) {\n    operator_delete__(pvVar3);\n  }\n  pvVar3 = *(void **)(unaff_ESI + 0xc);\n  if (pvVar3 != (void *)0x0) {\n    if (*(int *)(unaff_ESI + 8) != 0) {\n      uVar4 = 0;\n      *(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc);\n      do {\n        piVar2 = *(int **)((int)pvVar3 + uVar4 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar5 = piVar2[1];\n            piVar2[1] = iVar5 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar5 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar5 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          pvVar3 = *(void **)(unaff_ESI + 0xc);\n        }\n        uVar4 = uVar4 + 1;\n      } while (uVar4 < *(uint *)(unaff_ESI + 8));\n      if (pvVar3 == (void *)0x0) goto LAB_00182e13;\n    }\n    operator_delete__(pvVar3);\n  }\nLAB_00182e13:\n  pvVar3 = *(void **)(unaff_ESI + 0x10);\n  iVar5 = 0;\n  if (pvVar3 != (void *)0x0) {\n    do {\n      if (*(void **)((int)pvVar3 + iVar5) != (void *)0x0) {\n        operator_delete__(*(void **)((int)pvVar3 + iVar5));\n        pvVar3 = *(void **)(unaff_ESI + 0x10);\n      }\n      iVar5 = iVar5 + 4;\n    } while (iVar5 != 0x30);\n    if (pvVar3 != (void *)0x0) {\n      operator_delete__(pvVar3);\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void __thiscall std::locale::_Impl::~_Impl(_Impl *this)\n\n{\n  int *piVar1;\n  int *piVar2;\n  void *pvVar3;\n  int unaff_EBP;\n  int unaff_ESI;\n  uint unaff_EDI;\n  uint uVar4;\n  int iVar5;\n  \n  __cxa_begin_catch();\n                    /* try { // try from 0002f152 to 0002f156 has its CatchHandler @ 0002f17e */\n  __cxa_end_catch();\n  pvVar3 = *(void **)(unaff_ESI + 4);\n  while (unaff_EDI = unaff_EDI + 1, unaff_EDI < *(uint *)(unaff_ESI + 8)) {\n    piVar2 = *(int **)((int)pvVar3 + unaff_EDI * 4);\n    if (piVar2 != (int *)0x0) {\n      if (*(int *)(unaff_EBP + -0x20) == 0) {\n        iVar5 = piVar2[1];\n        piVar2[1] = iVar5 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar5 == 1) {\n        (**(code **)(*piVar2 + 4))(piVar2);\n      }\n      pvVar3 = *(void **)(unaff_ESI + 4);\n    }\n  }\n  if (pvVar3 != (void *)0x0) {\n    operator_delete__(pvVar3);\n  }\n  pvVar3 = *(void **)(unaff_ESI + 0xc);\n  if (pvVar3 != (void *)0x0) {\n    if (*(int *)(unaff_ESI + 8) != 0) {\n      uVar4 = 0;\n      *(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc);\n      do {\n        piVar2 = *(int **)((int)pvVar3 + uVar4 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar5 = piVar2[1];\n            piVar2[1] = iVar5 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar5 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar5 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          pvVar3 = *(void **)(unaff_ESI + 0xc);\n        }\n        uVar4 = uVar4 + 1;\n      } while (uVar4 < *(uint *)(unaff_ESI + 8));\n      if (pvVar3 == (void *)0x0) goto LAB_00182e13;\n    }\n    operator_delete__(pvVar3);\n  }\nLAB_00182e13:\n  pvVar3 = *(void **)(unaff_ESI + 0x10);\n  iVar5 = 0;\n  if (pvVar3 != (void *)0x0) {\n    do {\n      if (*(void **)((int)pvVar3 + iVar5) != (void *)0x0) {\n        operator_delete__(*(void **)((int)pvVar3 + iVar5));\n        pvVar3 = *(void **)(unaff_ESI + 0x10);\n      }\n      iVar5 = iVar5 + 4;\n    } while (iVar5 != 0x30);\n    if (pvVar3 != (void *)0x0) {\n      operator_delete__(pvVar3);\n    }\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::locale::_Impl::~" identifier : : identifier : : identifier : : ~) (function_declarator "_Impl(_Impl *this)" identifier (parameter_list "(_Impl *this)" ( (parameter_declaration "_Impl *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  void *pvVar3;\n  int unaff_EBP;\n  int unaff_ESI;\n  uint unaff_EDI;\n  uint uVar4;\n  int iVar5;\n  \n  __cxa_begin_catch();\n                    /* try { // try from 0002f152 to 0002f156 has its CatchHandler @ 0002f17e */\n  __cxa_end_catch();\n  pvVar3 = *(void **)(unaff_ESI + 4);\n  while (unaff_EDI = unaff_EDI + 1, unaff_EDI < *(uint *)(unaff_ESI + 8)) {\n    piVar2 = *(int **)((int)pvVar3 + unaff_EDI * 4);\n    if (piVar2 != (int *)0x0) {\n      if (*(int *)(unaff_EBP + -0x20) == 0) {\n        iVar5 = piVar2[1];\n        piVar2[1] = iVar5 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar5 == 1) {\n        (**(code **)(*piVar2 + 4))(piVar2);\n      }\n      pvVar3 = *(void **)(unaff_ESI + 4);\n    }\n  }\n  if (pvVar3 != (void *)0x0) {\n    operator_delete__(pvVar3);\n  }\n  pvVar3 = *(void **)(unaff_ESI + 0xc);\n  if (pvVar3 != (void *)0x0) {\n    if (*(int *)(unaff_ESI + 8) != 0) {\n      uVar4 = 0;\n      *(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc);\n      do {\n        piVar2 = *(int **)((int)pvVar3 + uVar4 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar5 = piVar2[1];\n            piVar2[1] = iVar5 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar5 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar5 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          pvVar3 = *(void **)(unaff_ESI + 0xc);\n        }\n        uVar4 = uVar4 + 1;\n      } while (uVar4 < *(uint *)(unaff_ESI + 8));\n      if (pvVar3 == (void *)0x0) goto LAB_00182e13;\n    }\n    operator_delete__(pvVar3);\n  }\nLAB_00182e13:\n  pvVar3 = *(void **)(unaff_ESI + 0x10);\n  iVar5 = 0;\n  if (pvVar3 != (void *)0x0) {\n    do {\n      if (*(void **)((int)pvVar3 + iVar5) != (void *)0x0) {\n        operator_delete__(*(void **)((int)pvVar3 + iVar5));\n        pvVar3 = *(void **)(unaff_ESI + 0x10);\n      }\n      iVar5 = iVar5 + 4;\n    } while (iVar5 != 0x30);\n    if (pvVar3 != (void *)0x0) {\n      operator_delete__(pvVar3);\n    }\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (declaration "int unaff_EBP;" primitive_type identifier ;) (declaration "int unaff_ESI;" primitive_type identifier ;) (declaration "uint unaff_EDI;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "__cxa_begin_catch();" (call_expression "__cxa_begin_catch()" identifier (argument_list "()" ( ))) ;) comment (expression_statement "__cxa_end_catch();" (call_expression "__cxa_end_catch()" identifier (argument_list "()" ( ))) ;) (expression_statement "pvVar3 = *(void **)(unaff_ESI + 4);" (assignment_expression "pvVar3 = *(void **)(unaff_ESI + 4)" identifier = (pointer_expression "*(void **)(unaff_ESI + 4)" * (cast_expression "(void **)(unaff_ESI + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_ESI + 4)" ( (binary_expression "unaff_ESI + 4" identifier + number_literal) ))))) ;) (while_statement "while (unaff_EDI = unaff_EDI + 1, unaff_EDI < *(uint *)(unaff_ESI + 8)) {\n    piVar2 = *(int **)((int)pvVar3 + unaff_EDI * 4);\n    if (piVar2 != (int *)0x0) {\n      if (*(int *)(unaff_EBP + -0x20) == 0) {\n        iVar5 = piVar2[1];\n        piVar2[1] = iVar5 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar5 == 1) {\n        (**(code **)(*piVar2 + 4))(piVar2);\n      }\n      pvVar3 = *(void **)(unaff_ESI + 4);\n    }\n  }" while (parenthesized_expression "(unaff_EDI = unaff_EDI + 1, unaff_EDI < *(uint *)(unaff_ESI + 8))" ( (comma_expression "unaff_EDI = unaff_EDI + 1, unaff_EDI < *(uint *)(unaff_ESI + 8)" (assignment_expression "unaff_EDI = unaff_EDI + 1" identifier = (binary_expression "unaff_EDI + 1" identifier + number_literal)) , (binary_expression "unaff_EDI < *(uint *)(unaff_ESI + 8)" identifier < (pointer_expression "*(uint *)(unaff_ESI + 8)" * (cast_expression "(uint *)(unaff_ESI + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_ESI + 8)" ( (binary_expression "unaff_ESI + 8" identifier + number_literal) )))))) )) (compound_statement "{\n    piVar2 = *(int **)((int)pvVar3 + unaff_EDI * 4);\n    if (piVar2 != (int *)0x0) {\n      if (*(int *)(unaff_EBP + -0x20) == 0) {\n        iVar5 = piVar2[1];\n        piVar2[1] = iVar5 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar5 == 1) {\n        (**(code **)(*piVar2 + 4))(piVar2);\n      }\n      pvVar3 = *(void **)(unaff_ESI + 4);\n    }\n  }" { (expression_statement "piVar2 = *(int **)((int)pvVar3 + unaff_EDI * 4);" (assignment_expression "piVar2 = *(int **)((int)pvVar3 + unaff_EDI * 4)" identifier = (pointer_expression "*(int **)((int)pvVar3 + unaff_EDI * 4)" * (cast_expression "(int **)((int)pvVar3 + unaff_EDI * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar3 + unaff_EDI * 4)" ( (binary_expression "(int)pvVar3 + unaff_EDI * 4" (cast_expression "(int)pvVar3" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "unaff_EDI * 4" identifier * number_literal)) ))))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n      if (*(int *)(unaff_EBP + -0x20) == 0) {\n        iVar5 = piVar2[1];\n        piVar2[1] = iVar5 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar5 == 1) {\n        (**(code **)(*piVar2 + 4))(piVar2);\n      }\n      pvVar3 = *(void **)(unaff_ESI + 4);\n    }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (*(int *)(unaff_EBP + -0x20) == 0) {\n        iVar5 = piVar2[1];\n        piVar2[1] = iVar5 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar5 == 1) {\n        (**(code **)(*piVar2 + 4))(piVar2);\n      }\n      pvVar3 = *(void **)(unaff_ESI + 4);\n    }" { (if_statement "if (*(int *)(unaff_EBP + -0x20) == 0) {\n        iVar5 = piVar2[1];\n        piVar2[1] = iVar5 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" if (parenthesized_expression "(*(int *)(unaff_EBP + -0x20) == 0)" ( (binary_expression "*(int *)(unaff_EBP + -0x20) == 0" (pointer_expression "*(int *)(unaff_EBP + -0x20)" * (cast_expression "(int *)(unaff_EBP + -0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + -0x20)" ( (binary_expression "unaff_EBP + -0x20" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        iVar5 = piVar2[1];\n        piVar2[1] = iVar5 + -1;\n      }" { (expression_statement "iVar5 = piVar2[1];" (assignment_expression "iVar5 = piVar2[1]" identifier = (subscript_expression "piVar2[1]" identifier [ number_literal ])) ;) (expression_statement "piVar2[1] = iVar5 + -1;" (assignment_expression "piVar2[1] = iVar5 + -1" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" else (compound_statement "{\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = piVar2 + 1;" (assignment_expression "piVar1 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar5 = *piVar1;" (assignment_expression "iVar5 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar5 == 1) {\n        (**(code **)(*piVar2 + 4))(piVar2);\n      }" if (parenthesized_expression "(iVar5 == 1)" ( (binary_expression "iVar5 == 1" identifier == number_literal) )) (compound_statement "{\n        (**(code **)(*piVar2 + 4))(piVar2);\n      }" { (expression_statement "(**(code **)(*piVar2 + 4))(piVar2);" (call_expression "(**(code **)(*piVar2 + 4))(piVar2)" (parenthesized_expression "(**(code **)(*piVar2 + 4))" ( (pointer_expression "**(code **)(*piVar2 + 4)" * (pointer_expression "*(code **)(*piVar2 + 4)" * (cast_expression "(code **)(*piVar2 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 4)" ( (binary_expression "*piVar2 + 4" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2)" ( identifier ))) ;) })) (expression_statement "pvVar3 = *(void **)(unaff_ESI + 4);" (assignment_expression "pvVar3 = *(void **)(unaff_ESI + 4)" identifier = (pointer_expression "*(void **)(unaff_ESI + 4)" * (cast_expression "(void **)(unaff_ESI + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_ESI + 4)" ( (binary_expression "unaff_ESI + 4" identifier + number_literal) ))))) ;) })) })) (if_statement "if (pvVar3 != (void *)0x0) {\n    operator_delete__(pvVar3);\n  }" if (parenthesized_expression "(pvVar3 != (void *)0x0)" ( (binary_expression "pvVar3 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    operator_delete__(pvVar3);\n  }" { (expression_statement "operator_delete__(pvVar3);" (call_expression "operator_delete__(pvVar3)" identifier (argument_list "(pvVar3)" ( identifier ))) ;) })) (expression_statement "pvVar3 = *(void **)(unaff_ESI + 0xc);" (assignment_expression "pvVar3 = *(void **)(unaff_ESI + 0xc)" identifier = (pointer_expression "*(void **)(unaff_ESI + 0xc)" * (cast_expression "(void **)(unaff_ESI + 0xc)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_ESI + 0xc)" ( (binary_expression "unaff_ESI + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (pvVar3 != (void *)0x0) {\n    if (*(int *)(unaff_ESI + 8) != 0) {\n      uVar4 = 0;\n      *(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc);\n      do {\n        piVar2 = *(int **)((int)pvVar3 + uVar4 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar5 = piVar2[1];\n            piVar2[1] = iVar5 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar5 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar5 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          pvVar3 = *(void **)(unaff_ESI + 0xc);\n        }\n        uVar4 = uVar4 + 1;\n      } while (uVar4 < *(uint *)(unaff_ESI + 8));\n      if (pvVar3 == (void *)0x0) goto LAB_00182e13;\n    }\n    operator_delete__(pvVar3);\n  }" if (parenthesized_expression "(pvVar3 != (void *)0x0)" ( (binary_expression "pvVar3 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*(int *)(unaff_ESI + 8) != 0) {\n      uVar4 = 0;\n      *(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc);\n      do {\n        piVar2 = *(int **)((int)pvVar3 + uVar4 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar5 = piVar2[1];\n            piVar2[1] = iVar5 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar5 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar5 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          pvVar3 = *(void **)(unaff_ESI + 0xc);\n        }\n        uVar4 = uVar4 + 1;\n      } while (uVar4 < *(uint *)(unaff_ESI + 8));\n      if (pvVar3 == (void *)0x0) goto LAB_00182e13;\n    }\n    operator_delete__(pvVar3);\n  }" { (if_statement "if (*(int *)(unaff_ESI + 8) != 0) {\n      uVar4 = 0;\n      *(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc);\n      do {\n        piVar2 = *(int **)((int)pvVar3 + uVar4 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar5 = piVar2[1];\n            piVar2[1] = iVar5 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar5 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar5 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          pvVar3 = *(void **)(unaff_ESI + 0xc);\n        }\n        uVar4 = uVar4 + 1;\n      } while (uVar4 < *(uint *)(unaff_ESI + 8));\n      if (pvVar3 == (void *)0x0) goto LAB_00182e13;\n    }" if (parenthesized_expression "(*(int *)(unaff_ESI + 8) != 0)" ( (binary_expression "*(int *)(unaff_ESI + 8) != 0" (pointer_expression "*(int *)(unaff_ESI + 8)" * (cast_expression "(int *)(unaff_ESI + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_ESI + 8)" ( (binary_expression "unaff_ESI + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      uVar4 = 0;\n      *(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc);\n      do {\n        piVar2 = *(int **)((int)pvVar3 + uVar4 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar5 = piVar2[1];\n            piVar2[1] = iVar5 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar5 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar5 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          pvVar3 = *(void **)(unaff_ESI + 0xc);\n        }\n        uVar4 = uVar4 + 1;\n      } while (uVar4 < *(uint *)(unaff_ESI + 8));\n      if (pvVar3 == (void *)0x0) goto LAB_00182e13;\n    }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc);" (assignment_expression "*(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc)" (pointer_expression "*(undefined4 *)(unaff_EBP + -0x20)" * (cast_expression "(undefined4 *)(unaff_EBP + -0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + -0x20)" ( (binary_expression "unaff_EBP + -0x20" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc)" * (cast_expression "(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(unaff_EBP + -0x1c) + -0xdc)" ( (binary_expression "*(int *)(unaff_EBP + -0x1c) + -0xdc" (pointer_expression "*(int *)(unaff_EBP + -0x1c)" * (cast_expression "(int *)(unaff_EBP + -0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + -0x1c)" ( (binary_expression "unaff_EBP + -0x1c" identifier + number_literal) )))) + number_literal) ))))) ;) (do_statement "do {\n        piVar2 = *(int **)((int)pvVar3 + uVar4 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar5 = piVar2[1];\n            piVar2[1] = iVar5 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar5 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar5 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          pvVar3 = *(void **)(unaff_ESI + 0xc);\n        }\n        uVar4 = uVar4 + 1;\n      } while (uVar4 < *(uint *)(unaff_ESI + 8));" do (compound_statement "{\n        piVar2 = *(int **)((int)pvVar3 + uVar4 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar5 = piVar2[1];\n            piVar2[1] = iVar5 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar5 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar5 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          pvVar3 = *(void **)(unaff_ESI + 0xc);\n        }\n        uVar4 = uVar4 + 1;\n      }" { (expression_statement "piVar2 = *(int **)((int)pvVar3 + uVar4 * 4);" (assignment_expression "piVar2 = *(int **)((int)pvVar3 + uVar4 * 4)" identifier = (pointer_expression "*(int **)((int)pvVar3 + uVar4 * 4)" * (cast_expression "(int **)((int)pvVar3 + uVar4 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar3 + uVar4 * 4)" ( (binary_expression "(int)pvVar3 + uVar4 * 4" (cast_expression "(int)pvVar3" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "uVar4 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar5 = piVar2[1];\n            piVar2[1] = iVar5 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar5 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar5 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          pvVar3 = *(void **)(unaff_ESI + 0xc);\n        }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar5 = piVar2[1];\n            piVar2[1] = iVar5 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar5 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar5 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          pvVar3 = *(void **)(unaff_ESI + 0xc);\n        }" { (if_statement "if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar5 = piVar2[1];\n            piVar2[1] = iVar5 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar5 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" if (parenthesized_expression "(*(int *)(unaff_EBP + -0x20) == 0)" ( (binary_expression "*(int *)(unaff_EBP + -0x20) == 0" (pointer_expression "*(int *)(unaff_EBP + -0x20)" * (cast_expression "(int *)(unaff_EBP + -0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + -0x20)" ( (binary_expression "unaff_EBP + -0x20" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n            iVar5 = piVar2[1];\n            piVar2[1] = iVar5 + -1;\n          }" { (expression_statement "iVar5 = piVar2[1];" (assignment_expression "iVar5 = piVar2[1]" identifier = (subscript_expression "piVar2[1]" identifier [ number_literal ])) ;) (expression_statement "piVar2[1] = iVar5 + -1;" (assignment_expression "piVar2[1] = iVar5 + -1" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar5 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" else (compound_statement "{\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar5 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = piVar2 + 1;" (assignment_expression "piVar1 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar5 = *piVar1;" (assignment_expression "iVar5 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar5 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }" if (parenthesized_expression "(iVar5 == 1)" ( (binary_expression "iVar5 == 1" identifier == number_literal) )) (compound_statement "{\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }" { (expression_statement "(**(code **)(*piVar2 + 4))(piVar2);" (call_expression "(**(code **)(*piVar2 + 4))(piVar2)" (parenthesized_expression "(**(code **)(*piVar2 + 4))" ( (pointer_expression "**(code **)(*piVar2 + 4)" * (pointer_expression "*(code **)(*piVar2 + 4)" * (cast_expression "(code **)(*piVar2 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 4)" ( (binary_expression "*piVar2 + 4" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2)" ( identifier ))) ;) })) (expression_statement "pvVar3 = *(void **)(unaff_ESI + 0xc);" (assignment_expression "pvVar3 = *(void **)(unaff_ESI + 0xc)" identifier = (pointer_expression "*(void **)(unaff_ESI + 0xc)" * (cast_expression "(void **)(unaff_ESI + 0xc)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_ESI + 0xc)" ( (binary_expression "unaff_ESI + 0xc" identifier + number_literal) ))))) ;) })) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar4 < *(uint *)(unaff_ESI + 8))" ( (binary_expression "uVar4 < *(uint *)(unaff_ESI + 8)" identifier < (pointer_expression "*(uint *)(unaff_ESI + 8)" * (cast_expression "(uint *)(unaff_ESI + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_ESI + 8)" ( (binary_expression "unaff_ESI + 8" identifier + number_literal) ))))) )) ;) (if_statement "if (pvVar3 == (void *)0x0) goto LAB_00182e13;" if (parenthesized_expression "(pvVar3 == (void *)0x0)" ( (binary_expression "pvVar3 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00182e13;" goto statement_identifier ;)) })) (expression_statement "operator_delete__(pvVar3);" (call_expression "operator_delete__(pvVar3)" identifier (argument_list "(pvVar3)" ( identifier ))) ;) })) (labeled_statement "LAB_00182e13:\n  pvVar3 = *(void **)(unaff_ESI + 0x10);" statement_identifier : (expression_statement "pvVar3 = *(void **)(unaff_ESI + 0x10);" (assignment_expression "pvVar3 = *(void **)(unaff_ESI + 0x10)" identifier = (pointer_expression "*(void **)(unaff_ESI + 0x10)" * (cast_expression "(void **)(unaff_ESI + 0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_ESI + 0x10)" ( (binary_expression "unaff_ESI + 0x10" identifier + number_literal) ))))) ;)) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (if_statement "if (pvVar3 != (void *)0x0) {\n    do {\n      if (*(void **)((int)pvVar3 + iVar5) != (void *)0x0) {\n        operator_delete__(*(void **)((int)pvVar3 + iVar5));\n        pvVar3 = *(void **)(unaff_ESI + 0x10);\n      }\n      iVar5 = iVar5 + 4;\n    } while (iVar5 != 0x30);\n    if (pvVar3 != (void *)0x0) {\n      operator_delete__(pvVar3);\n    }\n  }" if (parenthesized_expression "(pvVar3 != (void *)0x0)" ( (binary_expression "pvVar3 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      if (*(void **)((int)pvVar3 + iVar5) != (void *)0x0) {\n        operator_delete__(*(void **)((int)pvVar3 + iVar5));\n        pvVar3 = *(void **)(unaff_ESI + 0x10);\n      }\n      iVar5 = iVar5 + 4;\n    } while (iVar5 != 0x30);\n    if (pvVar3 != (void *)0x0) {\n      operator_delete__(pvVar3);\n    }\n  }" { (do_statement "do {\n      if (*(void **)((int)pvVar3 + iVar5) != (void *)0x0) {\n        operator_delete__(*(void **)((int)pvVar3 + iVar5));\n        pvVar3 = *(void **)(unaff_ESI + 0x10);\n      }\n      iVar5 = iVar5 + 4;\n    } while (iVar5 != 0x30);" do (compound_statement "{\n      if (*(void **)((int)pvVar3 + iVar5) != (void *)0x0) {\n        operator_delete__(*(void **)((int)pvVar3 + iVar5));\n        pvVar3 = *(void **)(unaff_ESI + 0x10);\n      }\n      iVar5 = iVar5 + 4;\n    }" { (if_statement "if (*(void **)((int)pvVar3 + iVar5) != (void *)0x0) {\n        operator_delete__(*(void **)((int)pvVar3 + iVar5));\n        pvVar3 = *(void **)(unaff_ESI + 0x10);\n      }" if (parenthesized_expression "(*(void **)((int)pvVar3 + iVar5) != (void *)0x0)" ( (binary_expression "*(void **)((int)pvVar3 + iVar5) != (void *)0x0" (pointer_expression "*(void **)((int)pvVar3 + iVar5)" * (cast_expression "(void **)((int)pvVar3 + iVar5)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar3 + iVar5)" ( (binary_expression "(int)pvVar3 + iVar5" (cast_expression "(int)pvVar3" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        operator_delete__(*(void **)((int)pvVar3 + iVar5));\n        pvVar3 = *(void **)(unaff_ESI + 0x10);\n      }" { (expression_statement "operator_delete__(*(void **)((int)pvVar3 + iVar5));" (call_expression "operator_delete__(*(void **)((int)pvVar3 + iVar5))" identifier (argument_list "(*(void **)((int)pvVar3 + iVar5))" ( (pointer_expression "*(void **)((int)pvVar3 + iVar5)" * (cast_expression "(void **)((int)pvVar3 + iVar5)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar3 + iVar5)" ( (binary_expression "(int)pvVar3 + iVar5" (cast_expression "(int)pvVar3" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ))) ;) (expression_statement "pvVar3 = *(void **)(unaff_ESI + 0x10);" (assignment_expression "pvVar3 = *(void **)(unaff_ESI + 0x10)" identifier = (pointer_expression "*(void **)(unaff_ESI + 0x10)" * (cast_expression "(void **)(unaff_ESI + 0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_ESI + 0x10)" ( (binary_expression "unaff_ESI + 0x10" identifier + number_literal) ))))) ;) })) (expression_statement "iVar5 = iVar5 + 4;" (assignment_expression "iVar5 = iVar5 + 4" identifier = (binary_expression "iVar5 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 != 0x30)" ( (binary_expression "iVar5 != 0x30" identifier != number_literal) )) ;) (if_statement "if (pvVar3 != (void *)0x0) {\n      operator_delete__(pvVar3);\n    }" if (parenthesized_expression "(pvVar3 != (void *)0x0)" ( (binary_expression "pvVar3 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      operator_delete__(pvVar3);\n    }" { (expression_statement "operator_delete__(pvVar3);" (call_expression "operator_delete__(pvVar3)" identifier (argument_list "(pvVar3)" ( identifier ))) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_0002f140(undefined4 param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int unaff_EBP;\n  int unaff_ESI;\n  uint unaff_EDI;\n  uint uVar4;\n  int iVar5;\n  \n  FUN_0017feb0(param_1);\n                    \n  FUN_0017ff50();\n  iVar3 = *(int *)(unaff_ESI + 4);\n  while (unaff_EDI = unaff_EDI + 1, unaff_EDI < *(uint *)(unaff_ESI + 8)) {\n    piVar2 = *(int **)(iVar3 + unaff_EDI * 4);\n    if (piVar2 != (int *)0x0) {\n      if (*(int *)(unaff_EBP + -0x20) == 0) {\n        iVar3 = piVar2[1];\n        piVar2[1] = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*piVar2 + 4))(piVar2);\n      }\n      iVar3 = *(int *)(unaff_ESI + 4);\n    }\n  }\n  if (iVar3 != 0) {\n    FUN_00180740(iVar3);\n  }\n  iVar3 = *(int *)(unaff_ESI + 0xc);\n  if (iVar3 != 0) {\n    if (*(int *)(unaff_ESI + 8) != 0) {\n      uVar4 = 0;\n      *(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc);\n      do {\n        piVar2 = *(int **)(iVar3 + uVar4 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar3 = *(int *)(unaff_ESI + 0xc);\n        }\n        uVar4 = uVar4 + 1;\n      } while (uVar4 < *(uint *)(unaff_ESI + 8));\n      if (iVar3 == 0) goto LAB_00182e13;\n    }\n    FUN_00180740(iVar3);\n  }\nLAB_00182e13:\n  iVar3 = *(int *)(unaff_ESI + 0x10);\n  iVar5 = 0;\n  if (iVar3 != 0) {\n    do {\n      if (*(int *)(iVar3 + iVar5) != 0) {\n        FUN_00180740(*(int *)(iVar3 + iVar5));\n        iVar3 = *(int *)(unaff_ESI + 0x10);\n      }\n      iVar5 = iVar5 + 4;\n    } while (iVar5 != 0x30);\n    if (iVar3 != 0) {\n      FUN_00180740(iVar3);\n    }\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0002f140(undefined4 param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int unaff_EBP;\n  int unaff_ESI;\n  uint unaff_EDI;\n  uint uVar4;\n  int iVar5;\n  \n  FUN_0017feb0(param_1);\n                    \n  FUN_0017ff50();\n  iVar3 = *(int *)(unaff_ESI + 4);\n  while (unaff_EDI = unaff_EDI + 1, unaff_EDI < *(uint *)(unaff_ESI + 8)) {\n    piVar2 = *(int **)(iVar3 + unaff_EDI * 4);\n    if (piVar2 != (int *)0x0) {\n      if (*(int *)(unaff_EBP + -0x20) == 0) {\n        iVar3 = piVar2[1];\n        piVar2[1] = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*piVar2 + 4))(piVar2);\n      }\n      iVar3 = *(int *)(unaff_ESI + 4);\n    }\n  }\n  if (iVar3 != 0) {\n    FUN_00180740(iVar3);\n  }\n  iVar3 = *(int *)(unaff_ESI + 0xc);\n  if (iVar3 != 0) {\n    if (*(int *)(unaff_ESI + 8) != 0) {\n      uVar4 = 0;\n      *(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc);\n      do {\n        piVar2 = *(int **)(iVar3 + uVar4 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar3 = *(int *)(unaff_ESI + 0xc);\n        }\n        uVar4 = uVar4 + 1;\n      } while (uVar4 < *(uint *)(unaff_ESI + 8));\n      if (iVar3 == 0) goto LAB_00182e13;\n    }\n    FUN_00180740(iVar3);\n  }\nLAB_00182e13:\n  iVar3 = *(int *)(unaff_ESI + 0x10);\n  iVar5 = 0;\n  if (iVar3 != 0) {\n    do {\n      if (*(int *)(iVar3 + iVar5) != 0) {\n        FUN_00180740(*(int *)(iVar3 + iVar5));\n        iVar3 = *(int *)(unaff_ESI + 0x10);\n      }\n      iVar5 = iVar5 + 4;\n    } while (iVar5 != 0x30);\n    if (iVar3 != 0) {\n      FUN_00180740(iVar3);\n    }\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0002f140(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int unaff_EBP;\n  int unaff_ESI;\n  uint unaff_EDI;\n  uint uVar4;\n  int iVar5;\n  \n  FUN_0017feb0(param_1);\n                    \n  FUN_0017ff50();\n  iVar3 = *(int *)(unaff_ESI + 4);\n  while (unaff_EDI = unaff_EDI + 1, unaff_EDI < *(uint *)(unaff_ESI + 8)) {\n    piVar2 = *(int **)(iVar3 + unaff_EDI * 4);\n    if (piVar2 != (int *)0x0) {\n      if (*(int *)(unaff_EBP + -0x20) == 0) {\n        iVar3 = piVar2[1];\n        piVar2[1] = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*piVar2 + 4))(piVar2);\n      }\n      iVar3 = *(int *)(unaff_ESI + 4);\n    }\n  }\n  if (iVar3 != 0) {\n    FUN_00180740(iVar3);\n  }\n  iVar3 = *(int *)(unaff_ESI + 0xc);\n  if (iVar3 != 0) {\n    if (*(int *)(unaff_ESI + 8) != 0) {\n      uVar4 = 0;\n      *(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc);\n      do {\n        piVar2 = *(int **)(iVar3 + uVar4 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar3 = *(int *)(unaff_ESI + 0xc);\n        }\n        uVar4 = uVar4 + 1;\n      } while (uVar4 < *(uint *)(unaff_ESI + 8));\n      if (iVar3 == 0) goto LAB_00182e13;\n    }\n    FUN_00180740(iVar3);\n  }\nLAB_00182e13:\n  iVar3 = *(int *)(unaff_ESI + 0x10);\n  iVar5 = 0;\n  if (iVar3 != 0) {\n    do {\n      if (*(int *)(iVar3 + iVar5) != 0) {\n        FUN_00180740(*(int *)(iVar3 + iVar5));\n        iVar3 = *(int *)(unaff_ESI + 0x10);\n      }\n      iVar5 = iVar5 + 4;\n    } while (iVar5 != 0x30);\n    if (iVar3 != 0) {\n      FUN_00180740(iVar3);\n    }\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int unaff_EBP;" primitive_type identifier ;) (declaration "int unaff_ESI;" primitive_type identifier ;) (declaration "uint unaff_EDI;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "FUN_0017feb0(param_1);" (call_expression "FUN_0017feb0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "FUN_0017ff50();" (call_expression "FUN_0017ff50()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar3 = *(int *)(unaff_ESI + 4);" (assignment_expression "iVar3 = *(int *)(unaff_ESI + 4)" identifier = (pointer_expression "*(int *)(unaff_ESI + 4)" * (cast_expression "(int *)(unaff_ESI + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_ESI + 4)" ( (binary_expression "unaff_ESI + 4" identifier + number_literal) ))))) ;) (while_statement "while (unaff_EDI = unaff_EDI + 1, unaff_EDI < *(uint *)(unaff_ESI + 8)) {\n    piVar2 = *(int **)(iVar3 + unaff_EDI * 4);\n    if (piVar2 != (int *)0x0) {\n      if (*(int *)(unaff_EBP + -0x20) == 0) {\n        iVar3 = piVar2[1];\n        piVar2[1] = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*piVar2 + 4))(piVar2);\n      }\n      iVar3 = *(int *)(unaff_ESI + 4);\n    }\n  }" while (parenthesized_expression "(unaff_EDI = unaff_EDI + 1, unaff_EDI < *(uint *)(unaff_ESI + 8))" ( (comma_expression "unaff_EDI = unaff_EDI + 1, unaff_EDI < *(uint *)(unaff_ESI + 8)" (assignment_expression "unaff_EDI = unaff_EDI + 1" identifier = (binary_expression "unaff_EDI + 1" identifier + number_literal)) , (binary_expression "unaff_EDI < *(uint *)(unaff_ESI + 8)" identifier < (pointer_expression "*(uint *)(unaff_ESI + 8)" * (cast_expression "(uint *)(unaff_ESI + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_ESI + 8)" ( (binary_expression "unaff_ESI + 8" identifier + number_literal) )))))) )) (compound_statement "{\n    piVar2 = *(int **)(iVar3 + unaff_EDI * 4);\n    if (piVar2 != (int *)0x0) {\n      if (*(int *)(unaff_EBP + -0x20) == 0) {\n        iVar3 = piVar2[1];\n        piVar2[1] = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*piVar2 + 4))(piVar2);\n      }\n      iVar3 = *(int *)(unaff_ESI + 4);\n    }\n  }" { (expression_statement "piVar2 = *(int **)(iVar3 + unaff_EDI * 4);" (assignment_expression "piVar2 = *(int **)(iVar3 + unaff_EDI * 4)" identifier = (pointer_expression "*(int **)(iVar3 + unaff_EDI * 4)" * (cast_expression "(int **)(iVar3 + unaff_EDI * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + unaff_EDI * 4)" ( (binary_expression "iVar3 + unaff_EDI * 4" identifier + (binary_expression "unaff_EDI * 4" identifier * number_literal)) ))))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n      if (*(int *)(unaff_EBP + -0x20) == 0) {\n        iVar3 = piVar2[1];\n        piVar2[1] = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*piVar2 + 4))(piVar2);\n      }\n      iVar3 = *(int *)(unaff_ESI + 4);\n    }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (*(int *)(unaff_EBP + -0x20) == 0) {\n        iVar3 = piVar2[1];\n        piVar2[1] = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*piVar2 + 4))(piVar2);\n      }\n      iVar3 = *(int *)(unaff_ESI + 4);\n    }" { (if_statement "if (*(int *)(unaff_EBP + -0x20) == 0) {\n        iVar3 = piVar2[1];\n        piVar2[1] = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" if (parenthesized_expression "(*(int *)(unaff_EBP + -0x20) == 0)" ( (binary_expression "*(int *)(unaff_EBP + -0x20) == 0" (pointer_expression "*(int *)(unaff_EBP + -0x20)" * (cast_expression "(int *)(unaff_EBP + -0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + -0x20)" ( (binary_expression "unaff_EBP + -0x20" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        iVar3 = piVar2[1];\n        piVar2[1] = iVar3 + -1;\n      }" { (expression_statement "iVar3 = piVar2[1];" (assignment_expression "iVar3 = piVar2[1]" identifier = (subscript_expression "piVar2[1]" identifier [ number_literal ])) ;) (expression_statement "piVar2[1] = iVar3 + -1;" (assignment_expression "piVar2[1] = iVar3 + -1" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" else (compound_statement "{\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = piVar2 + 1;" (assignment_expression "piVar1 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar3 == 1) {\n        (**(code **)(*piVar2 + 4))(piVar2);\n      }" if (parenthesized_expression "(iVar3 == 1)" ( (binary_expression "iVar3 == 1" identifier == number_literal) )) (compound_statement "{\n        (**(code **)(*piVar2 + 4))(piVar2);\n      }" { (expression_statement "(**(code **)(*piVar2 + 4))(piVar2);" (call_expression "(**(code **)(*piVar2 + 4))(piVar2)" (parenthesized_expression "(**(code **)(*piVar2 + 4))" ( (pointer_expression "**(code **)(*piVar2 + 4)" * (pointer_expression "*(code **)(*piVar2 + 4)" * (cast_expression "(code **)(*piVar2 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 4)" ( (binary_expression "*piVar2 + 4" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2)" ( identifier ))) ;) })) (expression_statement "iVar3 = *(int *)(unaff_ESI + 4);" (assignment_expression "iVar3 = *(int *)(unaff_ESI + 4)" identifier = (pointer_expression "*(int *)(unaff_ESI + 4)" * (cast_expression "(int *)(unaff_ESI + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_ESI + 4)" ( (binary_expression "unaff_ESI + 4" identifier + number_literal) ))))) ;) })) })) (if_statement "if (iVar3 != 0) {\n    FUN_00180740(iVar3);\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_00180740(iVar3);\n  }" { (expression_statement "FUN_00180740(iVar3);" (call_expression "FUN_00180740(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) })) (expression_statement "iVar3 = *(int *)(unaff_ESI + 0xc);" (assignment_expression "iVar3 = *(int *)(unaff_ESI + 0xc)" identifier = (pointer_expression "*(int *)(unaff_ESI + 0xc)" * (cast_expression "(int *)(unaff_ESI + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_ESI + 0xc)" ( (binary_expression "unaff_ESI + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (iVar3 != 0) {\n    if (*(int *)(unaff_ESI + 8) != 0) {\n      uVar4 = 0;\n      *(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc);\n      do {\n        piVar2 = *(int **)(iVar3 + uVar4 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar3 = *(int *)(unaff_ESI + 0xc);\n        }\n        uVar4 = uVar4 + 1;\n      } while (uVar4 < *(uint *)(unaff_ESI + 8));\n      if (iVar3 == 0) goto LAB_00182e13;\n    }\n    FUN_00180740(iVar3);\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(int *)(unaff_ESI + 8) != 0) {\n      uVar4 = 0;\n      *(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc);\n      do {\n        piVar2 = *(int **)(iVar3 + uVar4 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar3 = *(int *)(unaff_ESI + 0xc);\n        }\n        uVar4 = uVar4 + 1;\n      } while (uVar4 < *(uint *)(unaff_ESI + 8));\n      if (iVar3 == 0) goto LAB_00182e13;\n    }\n    FUN_00180740(iVar3);\n  }" { (if_statement "if (*(int *)(unaff_ESI + 8) != 0) {\n      uVar4 = 0;\n      *(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc);\n      do {\n        piVar2 = *(int **)(iVar3 + uVar4 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar3 = *(int *)(unaff_ESI + 0xc);\n        }\n        uVar4 = uVar4 + 1;\n      } while (uVar4 < *(uint *)(unaff_ESI + 8));\n      if (iVar3 == 0) goto LAB_00182e13;\n    }" if (parenthesized_expression "(*(int *)(unaff_ESI + 8) != 0)" ( (binary_expression "*(int *)(unaff_ESI + 8) != 0" (pointer_expression "*(int *)(unaff_ESI + 8)" * (cast_expression "(int *)(unaff_ESI + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_ESI + 8)" ( (binary_expression "unaff_ESI + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      uVar4 = 0;\n      *(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc);\n      do {\n        piVar2 = *(int **)(iVar3 + uVar4 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar3 = *(int *)(unaff_ESI + 0xc);\n        }\n        uVar4 = uVar4 + 1;\n      } while (uVar4 < *(uint *)(unaff_ESI + 8));\n      if (iVar3 == 0) goto LAB_00182e13;\n    }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc);" (assignment_expression "*(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc)" (pointer_expression "*(undefined4 *)(unaff_EBP + -0x20)" * (cast_expression "(undefined4 *)(unaff_EBP + -0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + -0x20)" ( (binary_expression "unaff_EBP + -0x20" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc)" * (cast_expression "(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(unaff_EBP + -0x1c) + -0xdc)" ( (binary_expression "*(int *)(unaff_EBP + -0x1c) + -0xdc" (pointer_expression "*(int *)(unaff_EBP + -0x1c)" * (cast_expression "(int *)(unaff_EBP + -0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + -0x1c)" ( (binary_expression "unaff_EBP + -0x1c" identifier + number_literal) )))) + number_literal) ))))) ;) (do_statement "do {\n        piVar2 = *(int **)(iVar3 + uVar4 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar3 = *(int *)(unaff_ESI + 0xc);\n        }\n        uVar4 = uVar4 + 1;\n      } while (uVar4 < *(uint *)(unaff_ESI + 8));" do (compound_statement "{\n        piVar2 = *(int **)(iVar3 + uVar4 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar3 = *(int *)(unaff_ESI + 0xc);\n        }\n        uVar4 = uVar4 + 1;\n      }" { (expression_statement "piVar2 = *(int **)(iVar3 + uVar4 * 4);" (assignment_expression "piVar2 = *(int **)(iVar3 + uVar4 * 4)" identifier = (pointer_expression "*(int **)(iVar3 + uVar4 * 4)" * (cast_expression "(int **)(iVar3 + uVar4 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + uVar4 * 4)" ( (binary_expression "iVar3 + uVar4 * 4" identifier + (binary_expression "uVar4 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar3 = *(int *)(unaff_ESI + 0xc);\n        }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar3 = *(int *)(unaff_ESI + 0xc);\n        }" { (if_statement "if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" if (parenthesized_expression "(*(int *)(unaff_EBP + -0x20) == 0)" ( (binary_expression "*(int *)(unaff_EBP + -0x20) == 0" (pointer_expression "*(int *)(unaff_EBP + -0x20)" * (cast_expression "(int *)(unaff_EBP + -0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + -0x20)" ( (binary_expression "unaff_EBP + -0x20" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }" { (expression_statement "iVar3 = piVar2[1];" (assignment_expression "iVar3 = piVar2[1]" identifier = (subscript_expression "piVar2[1]" identifier [ number_literal ])) ;) (expression_statement "piVar2[1] = iVar3 + -1;" (assignment_expression "piVar2[1] = iVar3 + -1" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" else (compound_statement "{\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = piVar2 + 1;" (assignment_expression "piVar1 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar3 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }" if (parenthesized_expression "(iVar3 == 1)" ( (binary_expression "iVar3 == 1" identifier == number_literal) )) (compound_statement "{\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }" { (expression_statement "(**(code **)(*piVar2 + 4))(piVar2);" (call_expression "(**(code **)(*piVar2 + 4))(piVar2)" (parenthesized_expression "(**(code **)(*piVar2 + 4))" ( (pointer_expression "**(code **)(*piVar2 + 4)" * (pointer_expression "*(code **)(*piVar2 + 4)" * (cast_expression "(code **)(*piVar2 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 4)" ( (binary_expression "*piVar2 + 4" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2)" ( identifier ))) ;) })) (expression_statement "iVar3 = *(int *)(unaff_ESI + 0xc);" (assignment_expression "iVar3 = *(int *)(unaff_ESI + 0xc)" identifier = (pointer_expression "*(int *)(unaff_ESI + 0xc)" * (cast_expression "(int *)(unaff_ESI + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_ESI + 0xc)" ( (binary_expression "unaff_ESI + 0xc" identifier + number_literal) ))))) ;) })) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar4 < *(uint *)(unaff_ESI + 8))" ( (binary_expression "uVar4 < *(uint *)(unaff_ESI + 8)" identifier < (pointer_expression "*(uint *)(unaff_ESI + 8)" * (cast_expression "(uint *)(unaff_ESI + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_ESI + 8)" ( (binary_expression "unaff_ESI + 8" identifier + number_literal) ))))) )) ;) (if_statement "if (iVar3 == 0) goto LAB_00182e13;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00182e13;" goto statement_identifier ;)) })) (expression_statement "FUN_00180740(iVar3);" (call_expression "FUN_00180740(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) })) (labeled_statement "LAB_00182e13:\n  iVar3 = *(int *)(unaff_ESI + 0x10);" statement_identifier : (expression_statement "iVar3 = *(int *)(unaff_ESI + 0x10);" (assignment_expression "iVar3 = *(int *)(unaff_ESI + 0x10)" identifier = (pointer_expression "*(int *)(unaff_ESI + 0x10)" * (cast_expression "(int *)(unaff_ESI + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_ESI + 0x10)" ( (binary_expression "unaff_ESI + 0x10" identifier + number_literal) ))))) ;)) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (if_statement "if (iVar3 != 0) {\n    do {\n      if (*(int *)(iVar3 + iVar5) != 0) {\n        FUN_00180740(*(int *)(iVar3 + iVar5));\n        iVar3 = *(int *)(unaff_ESI + 0x10);\n      }\n      iVar5 = iVar5 + 4;\n    } while (iVar5 != 0x30);\n    if (iVar3 != 0) {\n      FUN_00180740(iVar3);\n    }\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      if (*(int *)(iVar3 + iVar5) != 0) {\n        FUN_00180740(*(int *)(iVar3 + iVar5));\n        iVar3 = *(int *)(unaff_ESI + 0x10);\n      }\n      iVar5 = iVar5 + 4;\n    } while (iVar5 != 0x30);\n    if (iVar3 != 0) {\n      FUN_00180740(iVar3);\n    }\n  }" { (do_statement "do {\n      if (*(int *)(iVar3 + iVar5) != 0) {\n        FUN_00180740(*(int *)(iVar3 + iVar5));\n        iVar3 = *(int *)(unaff_ESI + 0x10);\n      }\n      iVar5 = iVar5 + 4;\n    } while (iVar5 != 0x30);" do (compound_statement "{\n      if (*(int *)(iVar3 + iVar5) != 0) {\n        FUN_00180740(*(int *)(iVar3 + iVar5));\n        iVar3 = *(int *)(unaff_ESI + 0x10);\n      }\n      iVar5 = iVar5 + 4;\n    }" { (if_statement "if (*(int *)(iVar3 + iVar5) != 0) {\n        FUN_00180740(*(int *)(iVar3 + iVar5));\n        iVar3 = *(int *)(unaff_ESI + 0x10);\n      }" if (parenthesized_expression "(*(int *)(iVar3 + iVar5) != 0)" ( (binary_expression "*(int *)(iVar3 + iVar5) != 0" (pointer_expression "*(int *)(iVar3 + iVar5)" * (cast_expression "(int *)(iVar3 + iVar5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar5)" ( (binary_expression "iVar3 + iVar5" identifier + identifier) )))) != number_literal) )) (compound_statement "{\n        FUN_00180740(*(int *)(iVar3 + iVar5));\n        iVar3 = *(int *)(unaff_ESI + 0x10);\n      }" { (expression_statement "FUN_00180740(*(int *)(iVar3 + iVar5));" (call_expression "FUN_00180740(*(int *)(iVar3 + iVar5))" identifier (argument_list "(*(int *)(iVar3 + iVar5))" ( (pointer_expression "*(int *)(iVar3 + iVar5)" * (cast_expression "(int *)(iVar3 + iVar5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar5)" ( (binary_expression "iVar3 + iVar5" identifier + identifier) )))) ))) ;) (expression_statement "iVar3 = *(int *)(unaff_ESI + 0x10);" (assignment_expression "iVar3 = *(int *)(unaff_ESI + 0x10)" identifier = (pointer_expression "*(int *)(unaff_ESI + 0x10)" * (cast_expression "(int *)(unaff_ESI + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_ESI + 0x10)" ( (binary_expression "unaff_ESI + 0x10" identifier + number_literal) ))))) ;) })) (expression_statement "iVar5 = iVar5 + 4;" (assignment_expression "iVar5 = iVar5 + 4" identifier = (binary_expression "iVar5 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 != 0x30)" ( (binary_expression "iVar5 != 0x30" identifier != number_literal) )) ;) (if_statement "if (iVar3 != 0) {\n      FUN_00180740(iVar3);\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      FUN_00180740(iVar3);\n    }" { (expression_statement "FUN_00180740(iVar3);" (call_expression "FUN_00180740(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT + LIT)) , (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (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 ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (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 (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (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 ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0002f140(undefined4 param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int unaff_EBP;\n  int unaff_ESI;\n  uint unaff_EDI;\n  uint uVar4;\n  int iVar5;\n  \n  FUN_0017feb0(param_1);\n                    \n  FUN_0017ff50();\n  iVar3 = *(int *)(unaff_ESI + 4);\n  while (unaff_EDI = unaff_EDI + 1, unaff_EDI < *(uint *)(unaff_ESI + 8)) {\n    piVar2 = *(int **)(iVar3 + unaff_EDI * 4);\n    if (piVar2 != (int *)0x0) {\n      if (*(int *)(unaff_EBP + -0x20) == 0) {\n        iVar3 = piVar2[1];\n        piVar2[1] = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*piVar2 + 4))(piVar2);\n      }\n      iVar3 = *(int *)(unaff_ESI + 4);\n    }\n  }\n  if (iVar3 != 0) {\n    FUN_00180740(iVar3);\n  }\n  iVar3 = *(int *)(unaff_ESI + 0xc);\n  if (iVar3 != 0) {\n    if (*(int *)(unaff_ESI + 8) != 0) {\n      uVar4 = 0;\n      *(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc);\n      do {\n        piVar2 = *(int **)(iVar3 + uVar4 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar3 = *(int *)(unaff_ESI + 0xc);\n        }\n        uVar4 = uVar4 + 1;\n      } while (uVar4 < *(uint *)(unaff_ESI + 8));\n      if (iVar3 == 0) goto LAB_00182e13;\n    }\n    FUN_00180740(iVar3);\n  }\nLAB_00182e13:\n  iVar3 = *(int *)(unaff_ESI + 0x10);\n  iVar5 = 0;\n  if (iVar3 != 0) {\n    do {\n      if (*(int *)(iVar3 + iVar5) != 0) {\n        FUN_00180740(*(int *)(iVar3 + iVar5));\n        iVar3 = *(int *)(unaff_ESI + 0x10);\n      }\n      iVar5 = iVar5 + 4;\n    } while (iVar5 != 0x30);\n    if (iVar3 != 0) {\n      FUN_00180740(iVar3);\n    }\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0002f140(undefined4 param_1)" (identifier "FUN_0002f140") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int unaff_EBP;\n  int unaff_ESI;\n  uint unaff_EDI;\n  uint uVar4;\n  int iVar5;\n  \n  FUN_0017feb0(param_1);\n                    \n  FUN_0017ff50();\n  iVar3 = *(int *)(unaff_ESI + 4);\n  while (unaff_EDI = unaff_EDI + 1, unaff_EDI < *(uint *)(unaff_ESI + 8)) {\n    piVar2 = *(int **)(iVar3 + unaff_EDI * 4);\n    if (piVar2 != (int *)0x0) {\n      if (*(int *)(unaff_EBP + -0x20) == 0) {\n        iVar3 = piVar2[1];\n        piVar2[1] = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*piVar2 + 4))(piVar2);\n      }\n      iVar3 = *(int *)(unaff_ESI + 4);\n    }\n  }\n  if (iVar3 != 0) {\n    FUN_00180740(iVar3);\n  }\n  iVar3 = *(int *)(unaff_ESI + 0xc);\n  if (iVar3 != 0) {\n    if (*(int *)(unaff_ESI + 8) != 0) {\n      uVar4 = 0;\n      *(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc);\n      do {\n        piVar2 = *(int **)(iVar3 + uVar4 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar3 = *(int *)(unaff_ESI + 0xc);\n        }\n        uVar4 = uVar4 + 1;\n      } while (uVar4 < *(uint *)(unaff_ESI + 8));\n      if (iVar3 == 0) goto LAB_00182e13;\n    }\n    FUN_00180740(iVar3);\n  }\nLAB_00182e13:\n  iVar3 = *(int *)(unaff_ESI + 0x10);\n  iVar5 = 0;\n  if (iVar3 != 0) {\n    do {\n      if (*(int *)(iVar3 + iVar5) != 0) {\n        FUN_00180740(*(int *)(iVar3 + iVar5));\n        iVar3 = *(int *)(unaff_ESI + 0x10);\n      }\n      iVar5 = iVar5 + 4;\n    } while (iVar5 != 0x30);\n    if (iVar3 != 0) {\n      FUN_00180740(iVar3);\n    }\n  }\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int unaff_EBP;" (primitive_type "int") (identifier "unaff_EBP") (; ";")) (declaration "int unaff_ESI;" (primitive_type "int") (identifier "unaff_ESI") (; ";")) (declaration "uint unaff_EDI;" (type_identifier "uint") (identifier "unaff_EDI") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (expression_statement "FUN_0017feb0(param_1);" (call_expression "FUN_0017feb0(param_1)" (identifier "FUN_0017feb0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "FUN_0017ff50();" (call_expression "FUN_0017ff50()" (identifier "FUN_0017ff50") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar3 = *(int *)(unaff_ESI + 4);" (assignment_expression "iVar3 = *(int *)(unaff_ESI + 4)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(unaff_ESI + 4)" (* "*") (cast_expression "(int *)(unaff_ESI + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_ESI + 4)" (( "(") (binary_expression "unaff_ESI + 4" (identifier "unaff_ESI") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (while_statement "while (unaff_EDI = unaff_EDI + 1, unaff_EDI < *(uint *)(unaff_ESI + 8)) {\n    piVar2 = *(int **)(iVar3 + unaff_EDI * 4);\n    if (piVar2 != (int *)0x0) {\n      if (*(int *)(unaff_EBP + -0x20) == 0) {\n        iVar3 = piVar2[1];\n        piVar2[1] = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*piVar2 + 4))(piVar2);\n      }\n      iVar3 = *(int *)(unaff_ESI + 4);\n    }\n  }" (while "while") (parenthesized_expression "(unaff_EDI = unaff_EDI + 1, unaff_EDI < *(uint *)(unaff_ESI + 8))" (( "(") (comma_expression "unaff_EDI = unaff_EDI + 1, unaff_EDI < *(uint *)(unaff_ESI + 8)" (assignment_expression "unaff_EDI = unaff_EDI + 1" (identifier "unaff_EDI") (= "=") (binary_expression "unaff_EDI + 1" (identifier "unaff_EDI") (+ "+") (number_literal "1"))) (, ",") (binary_expression "unaff_EDI < *(uint *)(unaff_ESI + 8)" (identifier "unaff_EDI") (< "<") (pointer_expression "*(uint *)(unaff_ESI + 8)" (* "*") (cast_expression "(uint *)(unaff_ESI + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_ESI + 8)" (( "(") (binary_expression "unaff_ESI + 8" (identifier "unaff_ESI") (+ "+") (number_literal "8")) () ")")))))) () ")")) (compound_statement "{\n    piVar2 = *(int **)(iVar3 + unaff_EDI * 4);\n    if (piVar2 != (int *)0x0) {\n      if (*(int *)(unaff_EBP + -0x20) == 0) {\n        iVar3 = piVar2[1];\n        piVar2[1] = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*piVar2 + 4))(piVar2);\n      }\n      iVar3 = *(int *)(unaff_ESI + 4);\n    }\n  }" ({ "{") (expression_statement "piVar2 = *(int **)(iVar3 + unaff_EDI * 4);" (assignment_expression "piVar2 = *(int **)(iVar3 + unaff_EDI * 4)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(iVar3 + unaff_EDI * 4)" (* "*") (cast_expression "(int **)(iVar3 + unaff_EDI * 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar3 + unaff_EDI * 4)" (( "(") (binary_expression "iVar3 + unaff_EDI * 4" (identifier "iVar3") (+ "+") (binary_expression "unaff_EDI * 4" (identifier "unaff_EDI") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (if_statement "if (piVar2 != (int *)0x0) {\n      if (*(int *)(unaff_EBP + -0x20) == 0) {\n        iVar3 = piVar2[1];\n        piVar2[1] = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*piVar2 + 4))(piVar2);\n      }\n      iVar3 = *(int *)(unaff_ESI + 4);\n    }" (if "if") (parenthesized_expression "(piVar2 != (int *)0x0)" (( "(") (binary_expression "piVar2 != (int *)0x0" (identifier "piVar2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      if (*(int *)(unaff_EBP + -0x20) == 0) {\n        iVar3 = piVar2[1];\n        piVar2[1] = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*piVar2 + 4))(piVar2);\n      }\n      iVar3 = *(int *)(unaff_ESI + 4);\n    }" ({ "{") (if_statement "if (*(int *)(unaff_EBP + -0x20) == 0) {\n        iVar3 = piVar2[1];\n        piVar2[1] = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" (if "if") (parenthesized_expression "(*(int *)(unaff_EBP + -0x20) == 0)" (( "(") (binary_expression "*(int *)(unaff_EBP + -0x20) == 0" (pointer_expression "*(int *)(unaff_EBP + -0x20)" (* "*") (cast_expression "(int *)(unaff_EBP + -0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EBP + -0x20)" (( "(") (binary_expression "unaff_EBP + -0x20" (identifier "unaff_EBP") (+ "+") (number_literal "-0x20")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        iVar3 = piVar2[1];\n        piVar2[1] = iVar3 + -1;\n      }" ({ "{") (expression_statement "iVar3 = piVar2[1];" (assignment_expression "iVar3 = piVar2[1]" (identifier "iVar3") (= "=") (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "piVar2[1] = iVar3 + -1;" (assignment_expression "piVar2[1] = iVar3 + -1" (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (else_clause "else {\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" (else "else") (compound_statement "{\n        LOCK();\n        piVar1 = piVar2 + 1;\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" ({ "{") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar1 = piVar2 + 1;" (assignment_expression "piVar1 = piVar2 + 1" (identifier "piVar1") (= "=") (binary_expression "piVar2 + 1" (identifier "piVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" (identifier "iVar3") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" (identifier "UNLOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (if_statement "if (iVar3 == 1) {\n        (**(code **)(*piVar2 + 4))(piVar2);\n      }" (if "if") (parenthesized_expression "(iVar3 == 1)" (( "(") (binary_expression "iVar3 == 1" (identifier "iVar3") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n        (**(code **)(*piVar2 + 4))(piVar2);\n      }" ({ "{") (expression_statement "(**(code **)(*piVar2 + 4))(piVar2);" (call_expression "(**(code **)(*piVar2 + 4))(piVar2)" (parenthesized_expression "(**(code **)(*piVar2 + 4))" (( "(") (pointer_expression "**(code **)(*piVar2 + 4)" (* "*") (pointer_expression "*(code **)(*piVar2 + 4)" (* "*") (cast_expression "(code **)(*piVar2 + 4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar2 + 4)" (( "(") (binary_expression "*piVar2 + 4" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (number_literal "4")) () ")"))))) () ")")) (argument_list "(piVar2)" (( "(") (identifier "piVar2") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar3 = *(int *)(unaff_ESI + 4);" (assignment_expression "iVar3 = *(int *)(unaff_ESI + 4)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(unaff_ESI + 4)" (* "*") (cast_expression "(int *)(unaff_ESI + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_ESI + 4)" (( "(") (binary_expression "unaff_ESI + 4" (identifier "unaff_ESI") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (} "}"))) (} "}"))) (if_statement "if (iVar3 != 0) {\n    FUN_00180740(iVar3);\n  }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00180740(iVar3);\n  }" ({ "{") (expression_statement "FUN_00180740(iVar3);" (call_expression "FUN_00180740(iVar3)" (identifier "FUN_00180740") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar3 = *(int *)(unaff_ESI + 0xc);" (assignment_expression "iVar3 = *(int *)(unaff_ESI + 0xc)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(unaff_ESI + 0xc)" (* "*") (cast_expression "(int *)(unaff_ESI + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_ESI + 0xc)" (( "(") (binary_expression "unaff_ESI + 0xc" (identifier "unaff_ESI") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if (iVar3 != 0) {\n    if (*(int *)(unaff_ESI + 8) != 0) {\n      uVar4 = 0;\n      *(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc);\n      do {\n        piVar2 = *(int **)(iVar3 + uVar4 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar3 = *(int *)(unaff_ESI + 0xc);\n        }\n        uVar4 = uVar4 + 1;\n      } while (uVar4 < *(uint *)(unaff_ESI + 8));\n      if (iVar3 == 0) goto LAB_00182e13;\n    }\n    FUN_00180740(iVar3);\n  }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (*(int *)(unaff_ESI + 8) != 0) {\n      uVar4 = 0;\n      *(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc);\n      do {\n        piVar2 = *(int **)(iVar3 + uVar4 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar3 = *(int *)(unaff_ESI + 0xc);\n        }\n        uVar4 = uVar4 + 1;\n      } while (uVar4 < *(uint *)(unaff_ESI + 8));\n      if (iVar3 == 0) goto LAB_00182e13;\n    }\n    FUN_00180740(iVar3);\n  }" ({ "{") (if_statement "if (*(int *)(unaff_ESI + 8) != 0) {\n      uVar4 = 0;\n      *(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc);\n      do {\n        piVar2 = *(int **)(iVar3 + uVar4 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar3 = *(int *)(unaff_ESI + 0xc);\n        }\n        uVar4 = uVar4 + 1;\n      } while (uVar4 < *(uint *)(unaff_ESI + 8));\n      if (iVar3 == 0) goto LAB_00182e13;\n    }" (if "if") (parenthesized_expression "(*(int *)(unaff_ESI + 8) != 0)" (( "(") (binary_expression "*(int *)(unaff_ESI + 8) != 0" (pointer_expression "*(int *)(unaff_ESI + 8)" (* "*") (cast_expression "(int *)(unaff_ESI + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_ESI + 8)" (( "(") (binary_expression "unaff_ESI + 8" (identifier "unaff_ESI") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar4 = 0;\n      *(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc);\n      do {\n        piVar2 = *(int **)(iVar3 + uVar4 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar3 = *(int *)(unaff_ESI + 0xc);\n        }\n        uVar4 = uVar4 + 1;\n      } while (uVar4 < *(uint *)(unaff_ESI + 8));\n      if (iVar3 == 0) goto LAB_00182e13;\n    }" ({ "{") (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc);" (assignment_expression "*(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc)" (pointer_expression "*(undefined4 *)(unaff_EBP + -0x20)" (* "*") (cast_expression "(undefined4 *)(unaff_EBP + -0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EBP + -0x20)" (( "(") (binary_expression "unaff_EBP + -0x20" (identifier "unaff_EBP") (+ "+") (number_literal "-0x20")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc)" (* "*") (cast_expression "(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(unaff_EBP + -0x1c) + -0xdc)" (( "(") (binary_expression "*(int *)(unaff_EBP + -0x1c) + -0xdc" (pointer_expression "*(int *)(unaff_EBP + -0x1c)" (* "*") (cast_expression "(int *)(unaff_EBP + -0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EBP + -0x1c)" (( "(") (binary_expression "unaff_EBP + -0x1c" (identifier "unaff_EBP") (+ "+") (number_literal "-0x1c")) () ")")))) (+ "+") (number_literal "-0xdc")) () ")"))))) (; ";")) (do_statement "do {\n        piVar2 = *(int **)(iVar3 + uVar4 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar3 = *(int *)(unaff_ESI + 0xc);\n        }\n        uVar4 = uVar4 + 1;\n      } while (uVar4 < *(uint *)(unaff_ESI + 8));" (do "do") (compound_statement "{\n        piVar2 = *(int **)(iVar3 + uVar4 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar3 = *(int *)(unaff_ESI + 0xc);\n        }\n        uVar4 = uVar4 + 1;\n      }" ({ "{") (expression_statement "piVar2 = *(int **)(iVar3 + uVar4 * 4);" (assignment_expression "piVar2 = *(int **)(iVar3 + uVar4 * 4)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(iVar3 + uVar4 * 4)" (* "*") (cast_expression "(int **)(iVar3 + uVar4 * 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar3 + uVar4 * 4)" (( "(") (binary_expression "iVar3 + uVar4 * 4" (identifier "iVar3") (+ "+") (binary_expression "uVar4 * 4" (identifier "uVar4") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (if_statement "if (piVar2 != (int *)0x0) {\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar3 = *(int *)(unaff_ESI + 0xc);\n        }" (if "if") (parenthesized_expression "(piVar2 != (int *)0x0)" (( "(") (binary_expression "piVar2 != (int *)0x0" (identifier "piVar2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar3 = *(int *)(unaff_ESI + 0xc);\n        }" ({ "{") (if_statement "if (*(int *)(unaff_EBP + -0x20) == 0) {\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" (if "if") (parenthesized_expression "(*(int *)(unaff_EBP + -0x20) == 0)" (( "(") (binary_expression "*(int *)(unaff_EBP + -0x20) == 0" (pointer_expression "*(int *)(unaff_EBP + -0x20)" (* "*") (cast_expression "(int *)(unaff_EBP + -0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EBP + -0x20)" (( "(") (binary_expression "unaff_EBP + -0x20" (identifier "unaff_EBP") (+ "+") (number_literal "-0x20")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            iVar3 = piVar2[1];\n            piVar2[1] = iVar3 + -1;\n          }" ({ "{") (expression_statement "iVar3 = piVar2[1];" (assignment_expression "iVar3 = piVar2[1]" (identifier "iVar3") (= "=") (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "piVar2[1] = iVar3 + -1;" (assignment_expression "piVar2[1] = iVar3 + -1" (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (else_clause "else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" (else "else") (compound_statement "{\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar3 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" ({ "{") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar1 = piVar2 + 1;" (assignment_expression "piVar1 = piVar2 + 1" (identifier "piVar1") (= "=") (binary_expression "piVar2 + 1" (identifier "piVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" (identifier "iVar3") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" (identifier "UNLOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (if_statement "if (iVar3 == 1) {\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }" (if "if") (parenthesized_expression "(iVar3 == 1)" (( "(") (binary_expression "iVar3 == 1" (identifier "iVar3") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }" ({ "{") (expression_statement "(**(code **)(*piVar2 + 4))(piVar2);" (call_expression "(**(code **)(*piVar2 + 4))(piVar2)" (parenthesized_expression "(**(code **)(*piVar2 + 4))" (( "(") (pointer_expression "**(code **)(*piVar2 + 4)" (* "*") (pointer_expression "*(code **)(*piVar2 + 4)" (* "*") (cast_expression "(code **)(*piVar2 + 4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar2 + 4)" (( "(") (binary_expression "*piVar2 + 4" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (number_literal "4")) () ")"))))) () ")")) (argument_list "(piVar2)" (( "(") (identifier "piVar2") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar3 = *(int *)(unaff_ESI + 0xc);" (assignment_expression "iVar3 = *(int *)(unaff_ESI + 0xc)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(unaff_ESI + 0xc)" (* "*") (cast_expression "(int *)(unaff_ESI + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_ESI + 0xc)" (( "(") (binary_expression "unaff_ESI + 0xc" (identifier "unaff_ESI") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (} "}"))) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" (identifier "uVar4") (= "=") (binary_expression "uVar4 + 1" (identifier "uVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar4 < *(uint *)(unaff_ESI + 8))" (( "(") (binary_expression "uVar4 < *(uint *)(unaff_ESI + 8)" (identifier "uVar4") (< "<") (pointer_expression "*(uint *)(unaff_ESI + 8)" (* "*") (cast_expression "(uint *)(unaff_ESI + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_ESI + 8)" (( "(") (binary_expression "unaff_ESI + 8" (identifier "unaff_ESI") (+ "+") (number_literal "8")) () ")"))))) () ")")) (; ";")) (if_statement "if (iVar3 == 0) goto LAB_00182e13;" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00182e13;" (goto "goto") (statement_identifier "LAB_00182e13") (; ";"))) (} "}"))) (expression_statement "FUN_00180740(iVar3);" (call_expression "FUN_00180740(iVar3)" (identifier "FUN_00180740") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (} "}"))) (labeled_statement "LAB_00182e13:\n  iVar3 = *(int *)(unaff_ESI + 0x10);" (statement_identifier "LAB_00182e13") (: ":") (expression_statement "iVar3 = *(int *)(unaff_ESI + 0x10);" (assignment_expression "iVar3 = *(int *)(unaff_ESI + 0x10)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(unaff_ESI + 0x10)" (* "*") (cast_expression "(int *)(unaff_ESI + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_ESI + 0x10)" (( "(") (binary_expression "unaff_ESI + 0x10" (identifier "unaff_ESI") (+ "+") (number_literal "0x10")) () ")"))))) (; ";"))) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar3 != 0) {\n    do {\n      if (*(int *)(iVar3 + iVar5) != 0) {\n        FUN_00180740(*(int *)(iVar3 + iVar5));\n        iVar3 = *(int *)(unaff_ESI + 0x10);\n      }\n      iVar5 = iVar5 + 4;\n    } while (iVar5 != 0x30);\n    if (iVar3 != 0) {\n      FUN_00180740(iVar3);\n    }\n  }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    do {\n      if (*(int *)(iVar3 + iVar5) != 0) {\n        FUN_00180740(*(int *)(iVar3 + iVar5));\n        iVar3 = *(int *)(unaff_ESI + 0x10);\n      }\n      iVar5 = iVar5 + 4;\n    } while (iVar5 != 0x30);\n    if (iVar3 != 0) {\n      FUN_00180740(iVar3);\n    }\n  }" ({ "{") (do_statement "do {\n      if (*(int *)(iVar3 + iVar5) != 0) {\n        FUN_00180740(*(int *)(iVar3 + iVar5));\n        iVar3 = *(int *)(unaff_ESI + 0x10);\n      }\n      iVar5 = iVar5 + 4;\n    } while (iVar5 != 0x30);" (do "do") (compound_statement "{\n      if (*(int *)(iVar3 + iVar5) != 0) {\n        FUN_00180740(*(int *)(iVar3 + iVar5));\n        iVar3 = *(int *)(unaff_ESI + 0x10);\n      }\n      iVar5 = iVar5 + 4;\n    }" ({ "{") (if_statement "if (*(int *)(iVar3 + iVar5) != 0) {\n        FUN_00180740(*(int *)(iVar3 + iVar5));\n        iVar3 = *(int *)(unaff_ESI + 0x10);\n      }" (if "if") (parenthesized_expression "(*(int *)(iVar3 + iVar5) != 0)" (( "(") (binary_expression "*(int *)(iVar3 + iVar5) != 0" (pointer_expression "*(int *)(iVar3 + iVar5)" (* "*") (cast_expression "(int *)(iVar3 + iVar5)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + iVar5)" (( "(") (binary_expression "iVar3 + iVar5" (identifier "iVar3") (+ "+") (identifier "iVar5")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_00180740(*(int *)(iVar3 + iVar5));\n        iVar3 = *(int *)(unaff_ESI + 0x10);\n      }" ({ "{") (expression_statement "FUN_00180740(*(int *)(iVar3 + iVar5));" (call_expression "FUN_00180740(*(int *)(iVar3 + iVar5))" (identifier "FUN_00180740") (argument_list "(*(int *)(iVar3 + iVar5))" (( "(") (pointer_expression "*(int *)(iVar3 + iVar5)" (* "*") (cast_expression "(int *)(iVar3 + iVar5)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + iVar5)" (( "(") (binary_expression "iVar3 + iVar5" (identifier "iVar3") (+ "+") (identifier "iVar5")) () ")")))) () ")"))) (; ";")) (expression_statement "iVar3 = *(int *)(unaff_ESI + 0x10);" (assignment_expression "iVar3 = *(int *)(unaff_ESI + 0x10)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(unaff_ESI + 0x10)" (* "*") (cast_expression "(int *)(unaff_ESI + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_ESI + 0x10)" (( "(") (binary_expression "unaff_ESI + 0x10" (identifier "unaff_ESI") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (} "}"))) (expression_statement "iVar5 = iVar5 + 4;" (assignment_expression "iVar5 = iVar5 + 4" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 4" (identifier "iVar5") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar5 != 0x30)" (( "(") (binary_expression "iVar5 != 0x30" (identifier "iVar5") (!= "!=") (number_literal "0x30")) () ")")) (; ";")) (if_statement "if (iVar3 != 0) {\n      FUN_00180740(iVar3);\n    }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00180740(iVar3);\n    }" ({ "{") (expression_statement "FUN_00180740(iVar3);" (call_expression "FUN_00180740(iVar3)" (identifier "FUN_00180740") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::locale::_Impl::~_Impl() [clone .cold.20] */

void __thiscall std::locale::function_1::~function_1(function_1 *this)

{
  int *piVar1;
  int *var_5;
  void *var_10;
  int var_6;
  int var_3;
  type_1 var_4;
  type_1 var_12;
  int var_7;
  
  var_1();
                    /* try { // try from 0002f152 to 0002f156 has its CatchHandler @ 0002f17e */
  var_2();
  var_10 = *(void **)(var_3 + 4);
  while (var_4 = var_4 + 1, var_4 < *(type_1 *)(var_3 + 8)) {
    var_5 = *(int **)((int)var_10 + var_4 * 4);
    if (var_5 != (int *)0x0) {
      if (*(int *)(var_6 + -0x20) == 0) {
        var_7 = var_5[1];
        var_5[1] = var_7 + -1;
      }
      else {
        var_8();
        piVar1 = var_5 + 1;
        var_7 = *piVar1;
        *piVar1 = *piVar1 + -1;
        var_9();
      }
      if (var_7 == 1) {
        (**(type_2 **)(*var_5 + 4))(var_5);
      }
      var_10 = *(void **)(var_3 + 4);
    }
  }
  if (var_10 != (void *)0x0) {
    var_11(var_10);
  }
  var_10 = *(void **)(var_3 + 0xc);
  if (var_10 != (void *)0x0) {
    if (*(int *)(var_3 + 8) != 0) {
      var_12 = 0;
      *(type_3 *)(var_6 + -0x20) = *(type_3 *)(*(int *)(var_6 + -0x1c) + -0xdc);
      do {
        var_5 = *(int **)((int)var_10 + var_12 * 4);
        if (var_5 != (int *)0x0) {
          if (*(int *)(var_6 + -0x20) == 0) {
            var_7 = var_5[1];
            var_5[1] = var_7 + -1;
          }
          else {
            var_8();
            piVar1 = var_5 + 1;
            var_7 = *piVar1;
            *piVar1 = *piVar1 + -1;
            var_9();
          }
          if (var_7 == 1) {
            (**(type_2 **)(*var_5 + 4))(var_5);
          }
          var_10 = *(void **)(var_3 + 0xc);
        }
        var_12 = var_12 + 1;
      } while (var_12 < *(type_1 *)(var_3 + 8));
      if (var_10 == (void *)0x0) goto LAB_00182e13;
    }
    var_11(var_10);
  }
LAB_00182e13:
  var_10 = *(void **)(var_3 + 0x10);
  var_7 = 0;
  if (var_10 != (void *)0x0) {
    do {
      if (*(void **)((int)var_10 + var_7) != (void *)0x0) {
        var_11(*(void **)((int)var_10 + var_7));
        var_10 = *(void **)(var_3 + 0x10);
      }
      var_7 = var_7 + 4;
    } while (var_7 != 0x30);
    if (var_10 != (void *)0x0) {
      var_11(var_10);
    }
  }
  return;
}


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

void __regparm3 MASKED(undefined4 param_1)

{
  int *piVar1;
  int *piVar2;
  int iVar3;
  int unaff_EBP;
  int unaff_ESI;
  uint unaff_EDI;
  uint uVar4;
  int iVar5;
  
  FUN_0017feb0(param_1);
                    /* try { // try from 0002f152 to 0002f156 has its CatchHandler @ 0002f17e */
  FUN_0017ff50();
  iVar3 = *(int *)(unaff_ESI + 4);
  while (unaff_EDI = unaff_EDI + 1, unaff_EDI < *(uint *)(unaff_ESI + 8)) {
    piVar2 = *(int **)(iVar3 + unaff_EDI * 4);
    if (piVar2 != (int *)0x0) {
      if (*(int *)(unaff_EBP + -0x20) == 0) {
        iVar3 = piVar2[1];
        piVar2[1] = iVar3 + -1;
      }
      else {
        LOCK();
        piVar1 = piVar2 + 1;
        iVar3 = *piVar1;
        *piVar1 = *piVar1 + -1;
        UNLOCK();
      }
      if (iVar3 == 1) {
        (**(code **)(*piVar2 + 4))(piVar2);
      }
      iVar3 = *(int *)(unaff_ESI + 4);
    }
  }
  if (iVar3 != 0) {
    FUN_00180740(iVar3);
  }
  iVar3 = *(int *)(unaff_ESI + 0xc);
  if (iVar3 != 0) {
    if (*(int *)(unaff_ESI + 8) != 0) {
      uVar4 = 0;
      *(undefined4 *)(unaff_EBP + -0x20) = *(undefined4 *)(*(int *)(unaff_EBP + -0x1c) + -0xdc);
      do {
        piVar2 = *(int **)(iVar3 + uVar4 * 4);
        if (piVar2 != (int *)0x0) {
          if (*(int *)(unaff_EBP + -0x20) == 0) {
            iVar3 = piVar2[1];
            piVar2[1] = iVar3 + -1;
          }
          else {
            LOCK();
            piVar1 = piVar2 + 1;
            iVar3 = *piVar1;
            *piVar1 = *piVar1 + -1;
            UNLOCK();
          }
          if (iVar3 == 1) {
            (**(code **)(*piVar2 + 4))(piVar2);
          }
          iVar3 = *(int *)(unaff_ESI + 0xc);
        }
        uVar4 = uVar4 + 1;
      } while (uVar4 < *(uint *)(unaff_ESI + 8));
      if (iVar3 == 0) goto LAB_00182e13;
    }
    FUN_00180740(iVar3);
  }
LAB_00182e13:
  iVar3 = *(int *)(unaff_ESI + 0x10);
  iVar5 = 0;
  if (iVar3 != 0) {
    do {
      if (*(int *)(iVar3 + iVar5) != 0) {
        FUN_00180740(*(int *)(iVar3 + iVar5));
        iVar3 = *(int *)(unaff_ESI + 0x10);
      }
      iVar5 = iVar5 + 4;
    } while (iVar5 != 0x30);
    if (iVar3 != 0) {
      FUN_00180740(iVar3);
    }
  }
  return;
}

