
void __regparm3 FUN_00036a75(undefined4 param_1)

{
  int *piVar1;
  int iVar2;
  int *piVar3;
  int unaff_EBP;
  uint unaff_ESI;
  int unaff_EDI;
  
  __cxa_begin_catch(param_1);
                    /* try { // try from 00036a87 to 00036a8b has its CatchHandler @ 00036b0e */
  __cxa_end_catch();
LAB_0024ae9f:
  do {
    iVar2 = *(int *)(unaff_EDI + 0xc);
    *(undefined4 *)(iVar2 + unaff_ESI * 4) = 0;
    do {
      unaff_ESI = unaff_ESI + 1;
      if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {
        return;
      }
      *(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;
      piVar3 = *(int **)(iVar2 + unaff_ESI * 4);
    } while (piVar3 == (int *)0x0);
    if (*(int *)(unaff_EBP + -0x24) != 0) goto LAB_0024ae90;
    iVar2 = piVar3[1];
    piVar3[1] = iVar2 + -1;
  } while (iVar2 != 1);
  goto LAB_0024aede;
LAB_0024ae90:
  LOCK();
  piVar1 = piVar3 + 1;
  iVar2 = *piVar1;
  *piVar1 = *piVar1 + -1;
  UNLOCK();
  if (iVar2 == 1) {
LAB_0024aede:
    (**(code **)(*piVar3 + 4))(piVar3);
  }
  goto LAB_0024ae9f;
}



void __regparm3 FUN_00036a75(undefined4 param_1)

{
  int *piVar1;
  int iVar2;
  int *piVar3;
  int unaff_EBP;
  uint unaff_ESI;
  int unaff_EDI;
  
  FUN_00247930(param_1);
                    /* try { // try from 00036a87 to 00036a8b has its CatchHandler @ 00036b0e */
  FUN_002479d0();
LAB_0024ae9f:
  do {
    iVar2 = *(int *)(unaff_EDI + 0xc);
    *(undefined4 *)(iVar2 + unaff_ESI * 4) = 0;
    do {
      unaff_ESI = unaff_ESI + 1;
      if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {
        return;
      }
      *(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;
      piVar3 = *(int **)(iVar2 + unaff_ESI * 4);
    } while (piVar3 == (int *)0x0);
    if (*(int *)(unaff_EBP + -0x24) != 0) goto LAB_0024ae90;
    iVar2 = piVar3[1];
    piVar3[1] = iVar2 + -1;
  } while (iVar2 != 1);
  goto LAB_0024aede;
LAB_0024ae90:
  LOCK();
  piVar1 = piVar3 + 1;
  iVar2 = *piVar1;
  *piVar1 = *piVar1 + -1;
  UNLOCK();
  if (iVar2 == 1) {
LAB_0024aede:
    (**(code **)(*piVar3 + 4))(piVar3);
  }
  goto LAB_0024ae9f;
}


SUB ESP,0xc
MOV EBX,dword ptr [EBP + -0x1c]
PUSH EAX
CALL 0x00247930
MOV EBX,dword ptr [EBP + -0x1c]
ADD ESP,0x10
CALL 0x002479d0
JMP 0x0024ae9f
(translation_unit "void __regparm3 FUN_00036a75(undefined4 param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  int unaff_EBP;\n  uint unaff_ESI;\n  int unaff_EDI;\n  \n  FUN_00247930(param_1);\n                    /* try { // try from 00036a87 to 00036a8b has its CatchHandler @ 00036b0e */\n  FUN_002479d0();\nLAB_0024ae9f:\n  do {\n    iVar2 = *(int *)(unaff_EDI + 0xc);\n    *(undefined4 *)(iVar2 + unaff_ESI * 4) = 0;\n    do {\n      unaff_ESI = unaff_ESI + 1;\n      if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {\n        return;\n      }\n      *(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;\n      piVar3 = *(int **)(iVar2 + unaff_ESI * 4);\n    } while (piVar3 == (int *)0x0);\n    if (*(int *)(unaff_EBP + -0x24) != 0) goto LAB_0024ae90;\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  } while (iVar2 != 1);\n  goto LAB_0024aede;\nLAB_0024ae90:\n  LOCK();\n  piVar1 = piVar3 + 1;\n  iVar2 = *piVar1;\n  *piVar1 = *piVar1 + -1;\n  UNLOCK();\n  if (iVar2 == 1) {\nLAB_0024aede:\n    (**(code **)(*piVar3 + 4))(piVar3);\n  }\n  goto LAB_0024ae9f;\n}\n\n" (function_definition "void __regparm3 FUN_00036a75(undefined4 param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  int unaff_EBP;\n  uint unaff_ESI;\n  int unaff_EDI;\n  \n  FUN_00247930(param_1);\n                    /* try { // try from 00036a87 to 00036a8b has its CatchHandler @ 00036b0e */\n  FUN_002479d0();\nLAB_0024ae9f:\n  do {\n    iVar2 = *(int *)(unaff_EDI + 0xc);\n    *(undefined4 *)(iVar2 + unaff_ESI * 4) = 0;\n    do {\n      unaff_ESI = unaff_ESI + 1;\n      if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {\n        return;\n      }\n      *(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;\n      piVar3 = *(int **)(iVar2 + unaff_ESI * 4);\n    } while (piVar3 == (int *)0x0);\n    if (*(int *)(unaff_EBP + -0x24) != 0) goto LAB_0024ae90;\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  } while (iVar2 != 1);\n  goto LAB_0024aede;\nLAB_0024ae90:\n  LOCK();\n  piVar1 = piVar3 + 1;\n  iVar2 = *piVar1;\n  *piVar1 = *piVar1 + -1;\n  UNLOCK();\n  if (iVar2 == 1) {\nLAB_0024aede:\n    (**(code **)(*piVar3 + 4))(piVar3);\n  }\n  goto LAB_0024ae9f;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00036a75(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  int unaff_EBP;\n  uint unaff_ESI;\n  int unaff_EDI;\n  \n  FUN_00247930(param_1);\n                    /* try { // try from 00036a87 to 00036a8b has its CatchHandler @ 00036b0e */\n  FUN_002479d0();\nLAB_0024ae9f:\n  do {\n    iVar2 = *(int *)(unaff_EDI + 0xc);\n    *(undefined4 *)(iVar2 + unaff_ESI * 4) = 0;\n    do {\n      unaff_ESI = unaff_ESI + 1;\n      if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {\n        return;\n      }\n      *(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;\n      piVar3 = *(int **)(iVar2 + unaff_ESI * 4);\n    } while (piVar3 == (int *)0x0);\n    if (*(int *)(unaff_EBP + -0x24) != 0) goto LAB_0024ae90;\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  } while (iVar2 != 1);\n  goto LAB_0024aede;\nLAB_0024ae90:\n  LOCK();\n  piVar1 = piVar3 + 1;\n  iVar2 = *piVar1;\n  *piVar1 = *piVar1 + -1;\n  UNLOCK();\n  if (iVar2 == 1) {\nLAB_0024aede:\n    (**(code **)(*piVar3 + 4))(piVar3);\n  }\n  goto LAB_0024ae9f;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int unaff_EBP;" primitive_type identifier ;) (declaration "uint unaff_ESI;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "FUN_00247930(param_1);" (call_expression "FUN_00247930(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) comment (expression_statement "FUN_002479d0();" (call_expression "FUN_002479d0()" identifier (argument_list "()" ( ))) ;) (labeled_statement "LAB_0024ae9f:\n  do {\n    iVar2 = *(int *)(unaff_EDI + 0xc);\n    *(undefined4 *)(iVar2 + unaff_ESI * 4) = 0;\n    do {\n      unaff_ESI = unaff_ESI + 1;\n      if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {\n        return;\n      }\n      *(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;\n      piVar3 = *(int **)(iVar2 + unaff_ESI * 4);\n    } while (piVar3 == (int *)0x0);\n    if (*(int *)(unaff_EBP + -0x24) != 0) goto LAB_0024ae90;\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  } while (iVar2 != 1);" statement_identifier : (do_statement "do {\n    iVar2 = *(int *)(unaff_EDI + 0xc);\n    *(undefined4 *)(iVar2 + unaff_ESI * 4) = 0;\n    do {\n      unaff_ESI = unaff_ESI + 1;\n      if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {\n        return;\n      }\n      *(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;\n      piVar3 = *(int **)(iVar2 + unaff_ESI * 4);\n    } while (piVar3 == (int *)0x0);\n    if (*(int *)(unaff_EBP + -0x24) != 0) goto LAB_0024ae90;\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  } while (iVar2 != 1);" do (compound_statement "{\n    iVar2 = *(int *)(unaff_EDI + 0xc);\n    *(undefined4 *)(iVar2 + unaff_ESI * 4) = 0;\n    do {\n      unaff_ESI = unaff_ESI + 1;\n      if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {\n        return;\n      }\n      *(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;\n      piVar3 = *(int **)(iVar2 + unaff_ESI * 4);\n    } while (piVar3 == (int *)0x0);\n    if (*(int *)(unaff_EBP + -0x24) != 0) goto LAB_0024ae90;\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  }" { (expression_statement "iVar2 = *(int *)(unaff_EDI + 0xc);" (assignment_expression "iVar2 = *(int *)(unaff_EDI + 0xc)" identifier = (pointer_expression "*(int *)(unaff_EDI + 0xc)" * (cast_expression "(int *)(unaff_EDI + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xc)" ( (binary_expression "unaff_EDI + 0xc" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar2 + unaff_ESI * 4) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + unaff_ESI * 4) = 0" (pointer_expression "*(undefined4 *)(iVar2 + unaff_ESI * 4)" * (cast_expression "(undefined4 *)(iVar2 + unaff_ESI * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + unaff_ESI * 4)" ( (binary_expression "iVar2 + unaff_ESI * 4" identifier + (binary_expression "unaff_ESI * 4" identifier * number_literal)) )))) = number_literal) ;) (do_statement "do {\n      unaff_ESI = unaff_ESI + 1;\n      if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {\n        return;\n      }\n      *(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;\n      piVar3 = *(int **)(iVar2 + unaff_ESI * 4);\n    } while (piVar3 == (int *)0x0);" do (compound_statement "{\n      unaff_ESI = unaff_ESI + 1;\n      if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {\n        return;\n      }\n      *(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;\n      piVar3 = *(int **)(iVar2 + unaff_ESI * 4);\n    }" { (expression_statement "unaff_ESI = unaff_ESI + 1;" (assignment_expression "unaff_ESI = unaff_ESI + 1" identifier = (binary_expression "unaff_ESI + 1" identifier + number_literal)) ;) (if_statement "if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {\n        return;\n      }" if (parenthesized_expression "(*(uint *)(unaff_EDI + 8) <= unaff_ESI)" ( (binary_expression "*(uint *)(unaff_EDI + 8) <= unaff_ESI" (pointer_expression "*(uint *)(unaff_EDI + 8)" * (cast_expression "(uint *)(unaff_EDI + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 8)" ( (binary_expression "unaff_EDI + 8" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "*(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;" (assignment_expression "*(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4" (pointer_expression "*(uint *)(unaff_EBP + -0x20)" * (cast_expression "(uint *)(unaff_EBP + -0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + -0x20)" ( (binary_expression "unaff_EBP + -0x20" identifier + number_literal) )))) = (binary_expression "unaff_ESI * 4" identifier * number_literal)) ;) (expression_statement "piVar3 = *(int **)(iVar2 + unaff_ESI * 4);" (assignment_expression "piVar3 = *(int **)(iVar2 + unaff_ESI * 4)" identifier = (pointer_expression "*(int **)(iVar2 + unaff_ESI * 4)" * (cast_expression "(int **)(iVar2 + unaff_ESI * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + unaff_ESI * 4)" ( (binary_expression "iVar2 + unaff_ESI * 4" identifier + (binary_expression "unaff_ESI * 4" identifier * number_literal)) ))))) ;) }) while (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (if_statement "if (*(int *)(unaff_EBP + -0x24) != 0) goto LAB_0024ae90;" if (parenthesized_expression "(*(int *)(unaff_EBP + -0x24) != 0)" ( (binary_expression "*(int *)(unaff_EBP + -0x24) != 0" (pointer_expression "*(int *)(unaff_EBP + -0x24)" * (cast_expression "(int *)(unaff_EBP + -0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + -0x24)" ( (binary_expression "unaff_EBP + -0x24" identifier + number_literal) )))) != number_literal) )) (goto_statement "goto LAB_0024ae90;" goto statement_identifier ;)) (expression_statement "iVar2 = piVar3[1];" (assignment_expression "iVar2 = piVar3[1]" identifier = (subscript_expression "piVar3[1]" identifier [ number_literal ])) ;) (expression_statement "piVar3[1] = iVar2 + -1;" (assignment_expression "piVar3[1] = iVar2 + -1" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 != 1)" ( (binary_expression "iVar2 != 1" identifier != number_literal) )) ;)) (goto_statement "goto LAB_0024aede;" goto statement_identifier ;) (labeled_statement "LAB_0024ae90:\n  LOCK();" statement_identifier : (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;)) (expression_statement "piVar1 = piVar3 + 1;" (assignment_expression "piVar1 = piVar3 + 1" identifier = (binary_expression "piVar3 + 1" identifier + number_literal)) ;) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *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 (iVar2 == 1) {\nLAB_0024aede:\n    (**(code **)(*piVar3 + 4))(piVar3);\n  }" if (parenthesized_expression "(iVar2 == 1)" ( (binary_expression "iVar2 == 1" identifier == number_literal) )) (compound_statement "{\nLAB_0024aede:\n    (**(code **)(*piVar3 + 4))(piVar3);\n  }" { (labeled_statement "LAB_0024aede:\n    (**(code **)(*piVar3 + 4))(piVar3);" statement_identifier : (expression_statement "(**(code **)(*piVar3 + 4))(piVar3);" (call_expression "(**(code **)(*piVar3 + 4))(piVar3)" (parenthesized_expression "(**(code **)(*piVar3 + 4))" ( (pointer_expression "**(code **)(*piVar3 + 4)" * (pointer_expression "*(code **)(*piVar3 + 4)" * (cast_expression "(code **)(*piVar3 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 4)" ( (binary_expression "*piVar3 + 4" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "(piVar3)" ( identifier ))) ;)) })) (goto_statement "goto LAB_0024ae9f;" goto statement_identifier ;) })))
(translation_unit "void __regparm3 FUN_00036a75(undefined4 param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  int unaff_EBP;\n  uint unaff_ESI;\n  int unaff_EDI;\n  \n  __cxa_begin_catch(param_1);\n                    /* try { // try from 00036a87 to 00036a8b has its CatchHandler @ 00036b0e */\n  __cxa_end_catch();\nLAB_0024ae9f:\n  do {\n    iVar2 = *(int *)(unaff_EDI + 0xc);\n    *(undefined4 *)(iVar2 + unaff_ESI * 4) = 0;\n    do {\n      unaff_ESI = unaff_ESI + 1;\n      if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {\n        return;\n      }\n      *(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;\n      piVar3 = *(int **)(iVar2 + unaff_ESI * 4);\n    } while (piVar3 == (int *)0x0);\n    if (*(int *)(unaff_EBP + -0x24) != 0) goto LAB_0024ae90;\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  } while (iVar2 != 1);\n  goto LAB_0024aede;\nLAB_0024ae90:\n  LOCK();\n  piVar1 = piVar3 + 1;\n  iVar2 = *piVar1;\n  *piVar1 = *piVar1 + -1;\n  UNLOCK();\n  if (iVar2 == 1) {\nLAB_0024aede:\n    (**(code **)(*piVar3 + 4))(piVar3);\n  }\n  goto LAB_0024ae9f;\n}\n\n" (function_definition "void __regparm3 FUN_00036a75(undefined4 param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  int unaff_EBP;\n  uint unaff_ESI;\n  int unaff_EDI;\n  \n  __cxa_begin_catch(param_1);\n                    /* try { // try from 00036a87 to 00036a8b has its CatchHandler @ 00036b0e */\n  __cxa_end_catch();\nLAB_0024ae9f:\n  do {\n    iVar2 = *(int *)(unaff_EDI + 0xc);\n    *(undefined4 *)(iVar2 + unaff_ESI * 4) = 0;\n    do {\n      unaff_ESI = unaff_ESI + 1;\n      if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {\n        return;\n      }\n      *(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;\n      piVar3 = *(int **)(iVar2 + unaff_ESI * 4);\n    } while (piVar3 == (int *)0x0);\n    if (*(int *)(unaff_EBP + -0x24) != 0) goto LAB_0024ae90;\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  } while (iVar2 != 1);\n  goto LAB_0024aede;\nLAB_0024ae90:\n  LOCK();\n  piVar1 = piVar3 + 1;\n  iVar2 = *piVar1;\n  *piVar1 = *piVar1 + -1;\n  UNLOCK();\n  if (iVar2 == 1) {\nLAB_0024aede:\n    (**(code **)(*piVar3 + 4))(piVar3);\n  }\n  goto LAB_0024ae9f;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00036a75(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  int unaff_EBP;\n  uint unaff_ESI;\n  int unaff_EDI;\n  \n  __cxa_begin_catch(param_1);\n                    /* try { // try from 00036a87 to 00036a8b has its CatchHandler @ 00036b0e */\n  __cxa_end_catch();\nLAB_0024ae9f:\n  do {\n    iVar2 = *(int *)(unaff_EDI + 0xc);\n    *(undefined4 *)(iVar2 + unaff_ESI * 4) = 0;\n    do {\n      unaff_ESI = unaff_ESI + 1;\n      if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {\n        return;\n      }\n      *(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;\n      piVar3 = *(int **)(iVar2 + unaff_ESI * 4);\n    } while (piVar3 == (int *)0x0);\n    if (*(int *)(unaff_EBP + -0x24) != 0) goto LAB_0024ae90;\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  } while (iVar2 != 1);\n  goto LAB_0024aede;\nLAB_0024ae90:\n  LOCK();\n  piVar1 = piVar3 + 1;\n  iVar2 = *piVar1;\n  *piVar1 = *piVar1 + -1;\n  UNLOCK();\n  if (iVar2 == 1) {\nLAB_0024aede:\n    (**(code **)(*piVar3 + 4))(piVar3);\n  }\n  goto LAB_0024ae9f;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int unaff_EBP;" primitive_type identifier ;) (declaration "uint unaff_ESI;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "__cxa_begin_catch(param_1);" (call_expression "__cxa_begin_catch(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) comment (expression_statement "__cxa_end_catch();" (call_expression "__cxa_end_catch()" identifier (argument_list "()" ( ))) ;) (labeled_statement "LAB_0024ae9f:\n  do {\n    iVar2 = *(int *)(unaff_EDI + 0xc);\n    *(undefined4 *)(iVar2 + unaff_ESI * 4) = 0;\n    do {\n      unaff_ESI = unaff_ESI + 1;\n      if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {\n        return;\n      }\n      *(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;\n      piVar3 = *(int **)(iVar2 + unaff_ESI * 4);\n    } while (piVar3 == (int *)0x0);\n    if (*(int *)(unaff_EBP + -0x24) != 0) goto LAB_0024ae90;\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  } while (iVar2 != 1);" statement_identifier : (do_statement "do {\n    iVar2 = *(int *)(unaff_EDI + 0xc);\n    *(undefined4 *)(iVar2 + unaff_ESI * 4) = 0;\n    do {\n      unaff_ESI = unaff_ESI + 1;\n      if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {\n        return;\n      }\n      *(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;\n      piVar3 = *(int **)(iVar2 + unaff_ESI * 4);\n    } while (piVar3 == (int *)0x0);\n    if (*(int *)(unaff_EBP + -0x24) != 0) goto LAB_0024ae90;\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  } while (iVar2 != 1);" do (compound_statement "{\n    iVar2 = *(int *)(unaff_EDI + 0xc);\n    *(undefined4 *)(iVar2 + unaff_ESI * 4) = 0;\n    do {\n      unaff_ESI = unaff_ESI + 1;\n      if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {\n        return;\n      }\n      *(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;\n      piVar3 = *(int **)(iVar2 + unaff_ESI * 4);\n    } while (piVar3 == (int *)0x0);\n    if (*(int *)(unaff_EBP + -0x24) != 0) goto LAB_0024ae90;\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  }" { (expression_statement "iVar2 = *(int *)(unaff_EDI + 0xc);" (assignment_expression "iVar2 = *(int *)(unaff_EDI + 0xc)" identifier = (pointer_expression "*(int *)(unaff_EDI + 0xc)" * (cast_expression "(int *)(unaff_EDI + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xc)" ( (binary_expression "unaff_EDI + 0xc" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar2 + unaff_ESI * 4) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + unaff_ESI * 4) = 0" (pointer_expression "*(undefined4 *)(iVar2 + unaff_ESI * 4)" * (cast_expression "(undefined4 *)(iVar2 + unaff_ESI * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + unaff_ESI * 4)" ( (binary_expression "iVar2 + unaff_ESI * 4" identifier + (binary_expression "unaff_ESI * 4" identifier * number_literal)) )))) = number_literal) ;) (do_statement "do {\n      unaff_ESI = unaff_ESI + 1;\n      if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {\n        return;\n      }\n      *(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;\n      piVar3 = *(int **)(iVar2 + unaff_ESI * 4);\n    } while (piVar3 == (int *)0x0);" do (compound_statement "{\n      unaff_ESI = unaff_ESI + 1;\n      if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {\n        return;\n      }\n      *(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;\n      piVar3 = *(int **)(iVar2 + unaff_ESI * 4);\n    }" { (expression_statement "unaff_ESI = unaff_ESI + 1;" (assignment_expression "unaff_ESI = unaff_ESI + 1" identifier = (binary_expression "unaff_ESI + 1" identifier + number_literal)) ;) (if_statement "if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {\n        return;\n      }" if (parenthesized_expression "(*(uint *)(unaff_EDI + 8) <= unaff_ESI)" ( (binary_expression "*(uint *)(unaff_EDI + 8) <= unaff_ESI" (pointer_expression "*(uint *)(unaff_EDI + 8)" * (cast_expression "(uint *)(unaff_EDI + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 8)" ( (binary_expression "unaff_EDI + 8" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "*(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;" (assignment_expression "*(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4" (pointer_expression "*(uint *)(unaff_EBP + -0x20)" * (cast_expression "(uint *)(unaff_EBP + -0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + -0x20)" ( (binary_expression "unaff_EBP + -0x20" identifier + number_literal) )))) = (binary_expression "unaff_ESI * 4" identifier * number_literal)) ;) (expression_statement "piVar3 = *(int **)(iVar2 + unaff_ESI * 4);" (assignment_expression "piVar3 = *(int **)(iVar2 + unaff_ESI * 4)" identifier = (pointer_expression "*(int **)(iVar2 + unaff_ESI * 4)" * (cast_expression "(int **)(iVar2 + unaff_ESI * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + unaff_ESI * 4)" ( (binary_expression "iVar2 + unaff_ESI * 4" identifier + (binary_expression "unaff_ESI * 4" identifier * number_literal)) ))))) ;) }) while (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (if_statement "if (*(int *)(unaff_EBP + -0x24) != 0) goto LAB_0024ae90;" if (parenthesized_expression "(*(int *)(unaff_EBP + -0x24) != 0)" ( (binary_expression "*(int *)(unaff_EBP + -0x24) != 0" (pointer_expression "*(int *)(unaff_EBP + -0x24)" * (cast_expression "(int *)(unaff_EBP + -0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + -0x24)" ( (binary_expression "unaff_EBP + -0x24" identifier + number_literal) )))) != number_literal) )) (goto_statement "goto LAB_0024ae90;" goto statement_identifier ;)) (expression_statement "iVar2 = piVar3[1];" (assignment_expression "iVar2 = piVar3[1]" identifier = (subscript_expression "piVar3[1]" identifier [ number_literal ])) ;) (expression_statement "piVar3[1] = iVar2 + -1;" (assignment_expression "piVar3[1] = iVar2 + -1" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 != 1)" ( (binary_expression "iVar2 != 1" identifier != number_literal) )) ;)) (goto_statement "goto LAB_0024aede;" goto statement_identifier ;) (labeled_statement "LAB_0024ae90:\n  LOCK();" statement_identifier : (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;)) (expression_statement "piVar1 = piVar3 + 1;" (assignment_expression "piVar1 = piVar3 + 1" identifier = (binary_expression "piVar3 + 1" identifier + number_literal)) ;) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *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 (iVar2 == 1) {\nLAB_0024aede:\n    (**(code **)(*piVar3 + 4))(piVar3);\n  }" if (parenthesized_expression "(iVar2 == 1)" ( (binary_expression "iVar2 == 1" identifier == number_literal) )) (compound_statement "{\nLAB_0024aede:\n    (**(code **)(*piVar3 + 4))(piVar3);\n  }" { (labeled_statement "LAB_0024aede:\n    (**(code **)(*piVar3 + 4))(piVar3);" statement_identifier : (expression_statement "(**(code **)(*piVar3 + 4))(piVar3);" (call_expression "(**(code **)(*piVar3 + 4))(piVar3)" (parenthesized_expression "(**(code **)(*piVar3 + 4))" ( (pointer_expression "**(code **)(*piVar3 + 4)" * (pointer_expression "*(code **)(*piVar3 + 4)" * (cast_expression "(code **)(*piVar3 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 4)" ( (binary_expression "*piVar3 + 4" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "(piVar3)" ( identifier ))) ;)) })) (goto_statement "goto LAB_0024ae9f;" goto statement_identifier ;) })))
(translation_unit "void __regparm3 FUN_00036a75(undefined4 param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  int unaff_EBP;\n  uint unaff_ESI;\n  int unaff_EDI;\n  \n  FUN_00247930(param_1);\n                    \n  FUN_002479d0();\nLAB_0024ae9f:\n  do {\n    iVar2 = *(int *)(unaff_EDI + 0xc);\n    *(undefined4 *)(iVar2 + unaff_ESI * 4) = 0;\n    do {\n      unaff_ESI = unaff_ESI + 1;\n      if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {\n        return;\n      }\n      *(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;\n      piVar3 = *(int **)(iVar2 + unaff_ESI * 4);\n    } while (piVar3 == (int *)0x0);\n    if (*(int *)(unaff_EBP + -0x24) != 0) goto LAB_0024ae90;\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  } while (iVar2 != 1);\n  goto LAB_0024aede;\nLAB_0024ae90:\n  LOCK();\n  piVar1 = piVar3 + 1;\n  iVar2 = *piVar1;\n  *piVar1 = *piVar1 + -1;\n  UNLOCK();\n  if (iVar2 == 1) {\nLAB_0024aede:\n    (**(code **)(*piVar3 + 4))(piVar3);\n  }\n  goto LAB_0024ae9f;\n}\n\n" (function_definition "void __regparm3 FUN_00036a75(undefined4 param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  int unaff_EBP;\n  uint unaff_ESI;\n  int unaff_EDI;\n  \n  FUN_00247930(param_1);\n                    \n  FUN_002479d0();\nLAB_0024ae9f:\n  do {\n    iVar2 = *(int *)(unaff_EDI + 0xc);\n    *(undefined4 *)(iVar2 + unaff_ESI * 4) = 0;\n    do {\n      unaff_ESI = unaff_ESI + 1;\n      if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {\n        return;\n      }\n      *(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;\n      piVar3 = *(int **)(iVar2 + unaff_ESI * 4);\n    } while (piVar3 == (int *)0x0);\n    if (*(int *)(unaff_EBP + -0x24) != 0) goto LAB_0024ae90;\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  } while (iVar2 != 1);\n  goto LAB_0024aede;\nLAB_0024ae90:\n  LOCK();\n  piVar1 = piVar3 + 1;\n  iVar2 = *piVar1;\n  *piVar1 = *piVar1 + -1;\n  UNLOCK();\n  if (iVar2 == 1) {\nLAB_0024aede:\n    (**(code **)(*piVar3 + 4))(piVar3);\n  }\n  goto LAB_0024ae9f;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00036a75(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  int unaff_EBP;\n  uint unaff_ESI;\n  int unaff_EDI;\n  \n  FUN_00247930(param_1);\n                    \n  FUN_002479d0();\nLAB_0024ae9f:\n  do {\n    iVar2 = *(int *)(unaff_EDI + 0xc);\n    *(undefined4 *)(iVar2 + unaff_ESI * 4) = 0;\n    do {\n      unaff_ESI = unaff_ESI + 1;\n      if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {\n        return;\n      }\n      *(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;\n      piVar3 = *(int **)(iVar2 + unaff_ESI * 4);\n    } while (piVar3 == (int *)0x0);\n    if (*(int *)(unaff_EBP + -0x24) != 0) goto LAB_0024ae90;\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  } while (iVar2 != 1);\n  goto LAB_0024aede;\nLAB_0024ae90:\n  LOCK();\n  piVar1 = piVar3 + 1;\n  iVar2 = *piVar1;\n  *piVar1 = *piVar1 + -1;\n  UNLOCK();\n  if (iVar2 == 1) {\nLAB_0024aede:\n    (**(code **)(*piVar3 + 4))(piVar3);\n  }\n  goto LAB_0024ae9f;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int unaff_EBP;" primitive_type identifier ;) (declaration "uint unaff_ESI;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "FUN_00247930(param_1);" (call_expression "FUN_00247930(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "FUN_002479d0();" (call_expression "FUN_002479d0()" identifier (argument_list "()" ( ))) ;) (labeled_statement "LAB_0024ae9f:\n  do {\n    iVar2 = *(int *)(unaff_EDI + 0xc);\n    *(undefined4 *)(iVar2 + unaff_ESI * 4) = 0;\n    do {\n      unaff_ESI = unaff_ESI + 1;\n      if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {\n        return;\n      }\n      *(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;\n      piVar3 = *(int **)(iVar2 + unaff_ESI * 4);\n    } while (piVar3 == (int *)0x0);\n    if (*(int *)(unaff_EBP + -0x24) != 0) goto LAB_0024ae90;\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  } while (iVar2 != 1);" statement_identifier : (do_statement "do {\n    iVar2 = *(int *)(unaff_EDI + 0xc);\n    *(undefined4 *)(iVar2 + unaff_ESI * 4) = 0;\n    do {\n      unaff_ESI = unaff_ESI + 1;\n      if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {\n        return;\n      }\n      *(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;\n      piVar3 = *(int **)(iVar2 + unaff_ESI * 4);\n    } while (piVar3 == (int *)0x0);\n    if (*(int *)(unaff_EBP + -0x24) != 0) goto LAB_0024ae90;\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  } while (iVar2 != 1);" do (compound_statement "{\n    iVar2 = *(int *)(unaff_EDI + 0xc);\n    *(undefined4 *)(iVar2 + unaff_ESI * 4) = 0;\n    do {\n      unaff_ESI = unaff_ESI + 1;\n      if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {\n        return;\n      }\n      *(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;\n      piVar3 = *(int **)(iVar2 + unaff_ESI * 4);\n    } while (piVar3 == (int *)0x0);\n    if (*(int *)(unaff_EBP + -0x24) != 0) goto LAB_0024ae90;\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  }" { (expression_statement "iVar2 = *(int *)(unaff_EDI + 0xc);" (assignment_expression "iVar2 = *(int *)(unaff_EDI + 0xc)" identifier = (pointer_expression "*(int *)(unaff_EDI + 0xc)" * (cast_expression "(int *)(unaff_EDI + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xc)" ( (binary_expression "unaff_EDI + 0xc" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar2 + unaff_ESI * 4) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + unaff_ESI * 4) = 0" (pointer_expression "*(undefined4 *)(iVar2 + unaff_ESI * 4)" * (cast_expression "(undefined4 *)(iVar2 + unaff_ESI * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + unaff_ESI * 4)" ( (binary_expression "iVar2 + unaff_ESI * 4" identifier + (binary_expression "unaff_ESI * 4" identifier * number_literal)) )))) = number_literal) ;) (do_statement "do {\n      unaff_ESI = unaff_ESI + 1;\n      if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {\n        return;\n      }\n      *(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;\n      piVar3 = *(int **)(iVar2 + unaff_ESI * 4);\n    } while (piVar3 == (int *)0x0);" do (compound_statement "{\n      unaff_ESI = unaff_ESI + 1;\n      if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {\n        return;\n      }\n      *(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;\n      piVar3 = *(int **)(iVar2 + unaff_ESI * 4);\n    }" { (expression_statement "unaff_ESI = unaff_ESI + 1;" (assignment_expression "unaff_ESI = unaff_ESI + 1" identifier = (binary_expression "unaff_ESI + 1" identifier + number_literal)) ;) (if_statement "if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {\n        return;\n      }" if (parenthesized_expression "(*(uint *)(unaff_EDI + 8) <= unaff_ESI)" ( (binary_expression "*(uint *)(unaff_EDI + 8) <= unaff_ESI" (pointer_expression "*(uint *)(unaff_EDI + 8)" * (cast_expression "(uint *)(unaff_EDI + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 8)" ( (binary_expression "unaff_EDI + 8" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "*(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;" (assignment_expression "*(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4" (pointer_expression "*(uint *)(unaff_EBP + -0x20)" * (cast_expression "(uint *)(unaff_EBP + -0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + -0x20)" ( (binary_expression "unaff_EBP + -0x20" identifier + number_literal) )))) = (binary_expression "unaff_ESI * 4" identifier * number_literal)) ;) (expression_statement "piVar3 = *(int **)(iVar2 + unaff_ESI * 4);" (assignment_expression "piVar3 = *(int **)(iVar2 + unaff_ESI * 4)" identifier = (pointer_expression "*(int **)(iVar2 + unaff_ESI * 4)" * (cast_expression "(int **)(iVar2 + unaff_ESI * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + unaff_ESI * 4)" ( (binary_expression "iVar2 + unaff_ESI * 4" identifier + (binary_expression "unaff_ESI * 4" identifier * number_literal)) ))))) ;) }) while (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (if_statement "if (*(int *)(unaff_EBP + -0x24) != 0) goto LAB_0024ae90;" if (parenthesized_expression "(*(int *)(unaff_EBP + -0x24) != 0)" ( (binary_expression "*(int *)(unaff_EBP + -0x24) != 0" (pointer_expression "*(int *)(unaff_EBP + -0x24)" * (cast_expression "(int *)(unaff_EBP + -0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + -0x24)" ( (binary_expression "unaff_EBP + -0x24" identifier + number_literal) )))) != number_literal) )) (goto_statement "goto LAB_0024ae90;" goto statement_identifier ;)) (expression_statement "iVar2 = piVar3[1];" (assignment_expression "iVar2 = piVar3[1]" identifier = (subscript_expression "piVar3[1]" identifier [ number_literal ])) ;) (expression_statement "piVar3[1] = iVar2 + -1;" (assignment_expression "piVar3[1] = iVar2 + -1" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 != 1)" ( (binary_expression "iVar2 != 1" identifier != number_literal) )) ;)) (goto_statement "goto LAB_0024aede;" goto statement_identifier ;) (labeled_statement "LAB_0024ae90:\n  LOCK();" statement_identifier : (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;)) (expression_statement "piVar1 = piVar3 + 1;" (assignment_expression "piVar1 = piVar3 + 1" identifier = (binary_expression "piVar3 + 1" identifier + number_literal)) ;) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *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 (iVar2 == 1) {\nLAB_0024aede:\n    (**(code **)(*piVar3 + 4))(piVar3);\n  }" if (parenthesized_expression "(iVar2 == 1)" ( (binary_expression "iVar2 == 1" identifier == number_literal) )) (compound_statement "{\nLAB_0024aede:\n    (**(code **)(*piVar3 + 4))(piVar3);\n  }" { (labeled_statement "LAB_0024aede:\n    (**(code **)(*piVar3 + 4))(piVar3);" statement_identifier : (expression_statement "(**(code **)(*piVar3 + 4))(piVar3);" (call_expression "(**(code **)(*piVar3 + 4))(piVar3)" (parenthesized_expression "(**(code **)(*piVar3 + 4))" ( (pointer_expression "**(code **)(*piVar3 + 4)" * (pointer_expression "*(code **)(*piVar3 + 4)" * (cast_expression "(code **)(*piVar3 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 4)" ( (binary_expression "*piVar3 + 4" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "(piVar3)" ( identifier ))) ;)) })) (goto_statement "goto LAB_0024ae9f;" goto statement_identifier ;) })))
(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 IDENT ;) (declaration TYPE (pointer_declarator * 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 ( ))) ;) (labeled_statement statement_identifier : (do_statement do (compound_statement { (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= IDENT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT * LIT)) ;) (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)) ))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;)) (goto_statement goto statement_identifier ;) (labeled_statement statement_identifier : (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 { (labeled_statement statement_identifier : (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 ))) ;)) })) (goto_statement goto statement_identifier ;) })))
(function_definition "void __regparm3 FUN_00036a75(undefined4 param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  int unaff_EBP;\n  uint unaff_ESI;\n  int unaff_EDI;\n  \n  FUN_00247930(param_1);\n                    \n  FUN_002479d0();\nLAB_0024ae9f:\n  do {\n    iVar2 = *(int *)(unaff_EDI + 0xc);\n    *(undefined4 *)(iVar2 + unaff_ESI * 4) = 0;\n    do {\n      unaff_ESI = unaff_ESI + 1;\n      if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {\n        return;\n      }\n      *(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;\n      piVar3 = *(int **)(iVar2 + unaff_ESI * 4);\n    } while (piVar3 == (int *)0x0);\n    if (*(int *)(unaff_EBP + -0x24) != 0) goto LAB_0024ae90;\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  } while (iVar2 != 1);\n  goto LAB_0024aede;\nLAB_0024ae90:\n  LOCK();\n  piVar1 = piVar3 + 1;\n  iVar2 = *piVar1;\n  *piVar1 = *piVar1 + -1;\n  UNLOCK();\n  if (iVar2 == 1) {\nLAB_0024aede:\n    (**(code **)(*piVar3 + 4))(piVar3);\n  }\n  goto LAB_0024ae9f;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00036a75(undefined4 param_1)" (identifier "FUN_00036a75") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  int unaff_EBP;\n  uint unaff_ESI;\n  int unaff_EDI;\n  \n  FUN_00247930(param_1);\n                    \n  FUN_002479d0();\nLAB_0024ae9f:\n  do {\n    iVar2 = *(int *)(unaff_EDI + 0xc);\n    *(undefined4 *)(iVar2 + unaff_ESI * 4) = 0;\n    do {\n      unaff_ESI = unaff_ESI + 1;\n      if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {\n        return;\n      }\n      *(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;\n      piVar3 = *(int **)(iVar2 + unaff_ESI * 4);\n    } while (piVar3 == (int *)0x0);\n    if (*(int *)(unaff_EBP + -0x24) != 0) goto LAB_0024ae90;\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  } while (iVar2 != 1);\n  goto LAB_0024aede;\nLAB_0024ae90:\n  LOCK();\n  piVar1 = piVar3 + 1;\n  iVar2 = *piVar1;\n  *piVar1 = *piVar1 + -1;\n  UNLOCK();\n  if (iVar2 == 1) {\nLAB_0024aede:\n    (**(code **)(*piVar3 + 4))(piVar3);\n  }\n  goto LAB_0024ae9f;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int unaff_EBP;" (primitive_type "int") (identifier "unaff_EBP") (; ";")) (declaration "uint unaff_ESI;" (type_identifier "uint") (identifier "unaff_ESI") (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (expression_statement "FUN_00247930(param_1);" (call_expression "FUN_00247930(param_1)" (identifier "FUN_00247930") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "FUN_002479d0();" (call_expression "FUN_002479d0()" (identifier "FUN_002479d0") (argument_list "()" (( "(") () ")"))) (; ";")) (labeled_statement "LAB_0024ae9f:\n  do {\n    iVar2 = *(int *)(unaff_EDI + 0xc);\n    *(undefined4 *)(iVar2 + unaff_ESI * 4) = 0;\n    do {\n      unaff_ESI = unaff_ESI + 1;\n      if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {\n        return;\n      }\n      *(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;\n      piVar3 = *(int **)(iVar2 + unaff_ESI * 4);\n    } while (piVar3 == (int *)0x0);\n    if (*(int *)(unaff_EBP + -0x24) != 0) goto LAB_0024ae90;\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  } while (iVar2 != 1);" (statement_identifier "LAB_0024ae9f") (: ":") (do_statement "do {\n    iVar2 = *(int *)(unaff_EDI + 0xc);\n    *(undefined4 *)(iVar2 + unaff_ESI * 4) = 0;\n    do {\n      unaff_ESI = unaff_ESI + 1;\n      if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {\n        return;\n      }\n      *(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;\n      piVar3 = *(int **)(iVar2 + unaff_ESI * 4);\n    } while (piVar3 == (int *)0x0);\n    if (*(int *)(unaff_EBP + -0x24) != 0) goto LAB_0024ae90;\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  } while (iVar2 != 1);" (do "do") (compound_statement "{\n    iVar2 = *(int *)(unaff_EDI + 0xc);\n    *(undefined4 *)(iVar2 + unaff_ESI * 4) = 0;\n    do {\n      unaff_ESI = unaff_ESI + 1;\n      if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {\n        return;\n      }\n      *(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;\n      piVar3 = *(int **)(iVar2 + unaff_ESI * 4);\n    } while (piVar3 == (int *)0x0);\n    if (*(int *)(unaff_EBP + -0x24) != 0) goto LAB_0024ae90;\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  }" ({ "{") (expression_statement "iVar2 = *(int *)(unaff_EDI + 0xc);" (assignment_expression "iVar2 = *(int *)(unaff_EDI + 0xc)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(unaff_EDI + 0xc)" (* "*") (cast_expression "(int *)(unaff_EDI + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0xc)" (( "(") (binary_expression "unaff_EDI + 0xc" (identifier "unaff_EDI") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + unaff_ESI * 4) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + unaff_ESI * 4) = 0" (pointer_expression "*(undefined4 *)(iVar2 + unaff_ESI * 4)" (* "*") (cast_expression "(undefined4 *)(iVar2 + unaff_ESI * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + unaff_ESI * 4)" (( "(") (binary_expression "iVar2 + unaff_ESI * 4" (identifier "iVar2") (+ "+") (binary_expression "unaff_ESI * 4" (identifier "unaff_ESI") (* "*") (number_literal "4"))) () ")")))) (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      unaff_ESI = unaff_ESI + 1;\n      if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {\n        return;\n      }\n      *(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;\n      piVar3 = *(int **)(iVar2 + unaff_ESI * 4);\n    } while (piVar3 == (int *)0x0);" (do "do") (compound_statement "{\n      unaff_ESI = unaff_ESI + 1;\n      if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {\n        return;\n      }\n      *(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;\n      piVar3 = *(int **)(iVar2 + unaff_ESI * 4);\n    }" ({ "{") (expression_statement "unaff_ESI = unaff_ESI + 1;" (assignment_expression "unaff_ESI = unaff_ESI + 1" (identifier "unaff_ESI") (= "=") (binary_expression "unaff_ESI + 1" (identifier "unaff_ESI") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {\n        return;\n      }" (if "if") (parenthesized_expression "(*(uint *)(unaff_EDI + 8) <= unaff_ESI)" (( "(") (binary_expression "*(uint *)(unaff_EDI + 8) <= unaff_ESI" (pointer_expression "*(uint *)(unaff_EDI + 8)" (* "*") (cast_expression "(uint *)(unaff_EDI + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 8)" (( "(") (binary_expression "unaff_EDI + 8" (identifier "unaff_EDI") (+ "+") (number_literal "8")) () ")")))) (<= "<=") (identifier "unaff_ESI")) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;" (assignment_expression "*(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4" (pointer_expression "*(uint *)(unaff_EBP + -0x20)" (* "*") (cast_expression "(uint *)(unaff_EBP + -0x20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EBP + -0x20)" (( "(") (binary_expression "unaff_EBP + -0x20" (identifier "unaff_EBP") (+ "+") (number_literal "-0x20")) () ")")))) (= "=") (binary_expression "unaff_ESI * 4" (identifier "unaff_ESI") (* "*") (number_literal "4"))) (; ";")) (expression_statement "piVar3 = *(int **)(iVar2 + unaff_ESI * 4);" (assignment_expression "piVar3 = *(int **)(iVar2 + unaff_ESI * 4)" (identifier "piVar3") (= "=") (pointer_expression "*(int **)(iVar2 + unaff_ESI * 4)" (* "*") (cast_expression "(int **)(iVar2 + unaff_ESI * 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar2 + unaff_ESI * 4)" (( "(") (binary_expression "iVar2 + unaff_ESI * 4" (identifier "iVar2") (+ "+") (binary_expression "unaff_ESI * 4" (identifier "unaff_ESI") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar3 == (int *)0x0)" (( "(") (binary_expression "piVar3 == (int *)0x0" (identifier "piVar3") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (if_statement "if (*(int *)(unaff_EBP + -0x24) != 0) goto LAB_0024ae90;" (if "if") (parenthesized_expression "(*(int *)(unaff_EBP + -0x24) != 0)" (( "(") (binary_expression "*(int *)(unaff_EBP + -0x24) != 0" (pointer_expression "*(int *)(unaff_EBP + -0x24)" (* "*") (cast_expression "(int *)(unaff_EBP + -0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EBP + -0x24)" (( "(") (binary_expression "unaff_EBP + -0x24" (identifier "unaff_EBP") (+ "+") (number_literal "-0x24")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0024ae90;" (goto "goto") (statement_identifier "LAB_0024ae90") (; ";"))) (expression_statement "iVar2 = piVar3[1];" (assignment_expression "iVar2 = piVar3[1]" (identifier "iVar2") (= "=") (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "piVar3[1] = iVar2 + -1;" (assignment_expression "piVar3[1] = iVar2 + -1" (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar2 != 1)" (( "(") (binary_expression "iVar2 != 1" (identifier "iVar2") (!= "!=") (number_literal "1")) () ")")) (; ";"))) (goto_statement "goto LAB_0024aede;" (goto "goto") (statement_identifier "LAB_0024aede") (; ";")) (labeled_statement "LAB_0024ae90:\n  LOCK();" (statement_identifier "LAB_0024ae90") (: ":") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";"))) (expression_statement "piVar1 = piVar3 + 1;" (assignment_expression "piVar1 = piVar3 + 1" (identifier "piVar1") (= "=") (binary_expression "piVar3 + 1" (identifier "piVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" (identifier "iVar2") (= "=") (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 (iVar2 == 1) {\nLAB_0024aede:\n    (**(code **)(*piVar3 + 4))(piVar3);\n  }" (if "if") (parenthesized_expression "(iVar2 == 1)" (( "(") (binary_expression "iVar2 == 1" (identifier "iVar2") (== "==") (number_literal "1")) () ")")) (compound_statement "{\nLAB_0024aede:\n    (**(code **)(*piVar3 + 4))(piVar3);\n  }" ({ "{") (labeled_statement "LAB_0024aede:\n    (**(code **)(*piVar3 + 4))(piVar3);" (statement_identifier "LAB_0024aede") (: ":") (expression_statement "(**(code **)(*piVar3 + 4))(piVar3);" (call_expression "(**(code **)(*piVar3 + 4))(piVar3)" (parenthesized_expression "(**(code **)(*piVar3 + 4))" (( "(") (pointer_expression "**(code **)(*piVar3 + 4)" (* "*") (pointer_expression "*(code **)(*piVar3 + 4)" (* "*") (cast_expression "(code **)(*piVar3 + 4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar3 + 4)" (( "(") (binary_expression "*piVar3 + 4" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (+ "+") (number_literal "4")) () ")"))))) () ")")) (argument_list "(piVar3)" (( "(") (identifier "piVar3") () ")"))) (; ";"))) (} "}"))) (goto_statement "goto LAB_0024ae9f;" (goto "goto") (statement_identifier "LAB_0024ae9f") (; ";")) (} "}")))

void __regparm3 function_1(type_1 param_1)

{
  int *piVar1;
  int var_4;
  int *var_7;
  int var_6;
  type_2 var_5;
  int var_3;
  
  var_1(param_1);
                    /* try { // try from 00036a87 to 00036a8b has its CatchHandler @ 00036b0e */
  var_2();
LAB_0024ae9f:
  do {
    var_4 = *(int *)(var_3 + 0xc);
    *(type_1 *)(var_4 + var_5 * 4) = 0;
    do {
      var_5 = var_5 + 1;
      if (*(type_2 *)(var_3 + 8) <= var_5) {
        return;
      }
      *(type_2 *)(var_6 + -0x20) = var_5 * 4;
      var_7 = *(int **)(var_4 + var_5 * 4);
    } while (var_7 == (int *)0x0);
    if (*(int *)(var_6 + -0x24) != 0) goto LAB_0024ae90;
    var_4 = var_7[1];
    var_7[1] = var_4 + -1;
  } while (var_4 != 1);
  goto LAB_0024aede;
LAB_0024ae90:
  var_8();
  piVar1 = var_7 + 1;
  var_4 = *piVar1;
  *piVar1 = *piVar1 + -1;
  var_9();
  if (var_4 == 1) {
LAB_0024aede:
    (**(type_3 **)(*var_7 + 4))(var_7);
  }
  goto LAB_0024ae9f;
}


(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: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) 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))) (labeled_statement label: (statement_identifier) (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)) value: (parenthesized_expression (binary_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: (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))) (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))))))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (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: (goto_statement label: (statement_identifier))) (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))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (goto_statement label: (statement_identifier)) (labeled_statement label: (statement_identifier) (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 (labeled_statement label: (statement_identifier) (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))))))) (goto_statement label: (statement_identifier)))))

void __regparm3 MASKED(undefined4 param_1)

{
  int *piVar1;
  int iVar2;
  int *piVar3;
  int unaff_EBP;
  uint unaff_ESI;
  int unaff_EDI;
  
  FUN_00247930(param_1);
                    /* try { // try from 00036a87 to 00036a8b has its CatchHandler @ 00036b0e */
  FUN_002479d0();
LAB_0024ae9f:
  do {
    iVar2 = *(int *)(unaff_EDI + 0xc);
    *(undefined4 *)(iVar2 + unaff_ESI * 4) = 0;
    do {
      unaff_ESI = unaff_ESI + 1;
      if (*(uint *)(unaff_EDI + 8) <= unaff_ESI) {
        return;
      }
      *(uint *)(unaff_EBP + -0x20) = unaff_ESI * 4;
      piVar3 = *(int **)(iVar2 + unaff_ESI * 4);
    } while (piVar3 == (int *)0x0);
    if (*(int *)(unaff_EBP + -0x24) != 0) goto LAB_0024ae90;
    iVar2 = piVar3[1];
    piVar3[1] = iVar2 + -1;
  } while (iVar2 != 1);
  goto LAB_0024aede;
LAB_0024ae90:
  LOCK();
  piVar1 = piVar3 + 1;
  iVar2 = *piVar1;
  *piVar1 = *piVar1 + -1;
  UNLOCK();
  if (iVar2 == 1) {
LAB_0024aede:
    (**(code **)(*piVar3 + 4))(piVar3);
  }
  goto LAB_0024ae9f;
}

