
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* std::__throw_system_error(int) */

void std::__throw_system_error(int param_1)

{
  runtime_error *this;
  int *piVar1;
  int in_stack_ffffffb4;
  undefined1 *local_34 [2];
  undefined1 local_2c [28];
  
  this = (runtime_error *)__cxa_allocate_exception(0x10);
  piVar1 = (int *)_V2::generic_category();
                    /* try { // try from 003f2ef4 to 003f2ef6 has its CatchHandler @ 003f2f26 */
  (**(code **)(*piVar1 + 0x10))((string *)local_34,piVar1,param_1);
                    /* try { // try from 003f2eff to 003f2f03 has its CatchHandler @ 003f2f2d */
  runtime_error::runtime_error(this,(string *)local_34);
  if (local_34[0] != local_2c) {
    operator_delete(local_34[0]);
    __throw_system_error(in_stack_ffffffb4);
    return;
  }
  *(int **)(this + 0xc) = piVar1;
  *(undefined ***)this = &PTR__system_error_005e85f8;
  *(int *)(this + 8) = param_1;
                    /* WARNING: Subroutine does not return */
  __cxa_throw(this,PTR_PTR_005e9f24,PTR__system_error_005e9c48,param_1);
}



/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

void FUN_003f2ec0(undefined4 param_1)

{
  undefined4 *puVar1;
  int *piVar2;
  undefined1 *local_34 [2];
  undefined1 local_2c [28];
  
  puVar1 = (undefined4 *)FUN_003adeb0(0x10);
  piVar2 = (int *)FUN_003f2e40();
                    /* try { // try from 003f2ef4 to 003f2ef6 has its CatchHandler @ 003f2f26 */
  (**(code **)(*piVar2 + 0x10))(local_34,piVar2,param_1);
                    /* try { // try from 003f2eff to 003f2f03 has its CatchHandler @ 003f2f2d */
  FUN_00433600(puVar1,local_34);
  if (local_34[0] != local_2c) {
    FUN_003ae080(local_34[0]);
    FUN_0004d3c1();
    return;
  }
  puVar1[3] = piVar2;
  *puVar1 = &DAT_005e85f8;
  puVar1[2] = param_1;
                    /* WARNING: Subroutine does not return */
  FUN_003ac900(puVar1,PTR_PTR_005e9f24,PTR_FUN_005e9c48,param_1);
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
CALL 0x00063c76
ADD ESI,0x1f7136
PUSH EBX
SUB ESP,0x48
PUSH 0x10
MOV EBX,ESI
CALL 0x003adeb0
MOV dword ptr [EBP + -0x3c],EAX
CALL 0x003f2e40
ADD ESP,0xc
LEA EBX,[EBP + -0x30]
MOV EDI,EAX
MOV EAX,dword ptr [EAX]
PUSH dword ptr [EBP + 0x8]
PUSH EDI
PUSH EBX
CALL dword ptr [EAX + 0x10]
MOV dword ptr [ESP],EBX
MOV EBX,ESI
PUSH dword ptr [EBP + -0x3c]
CALL 0x00433600
MOV EAX,dword ptr [EBP + -0x30]
LEA EDX,[EBP + -0x28]
ADD ESP,0x10
CMP EAX,EDX
JZ 0x0004d3c1
SUB ESP,0xc
PUSH EAX
CALL 0x003ae080
ADD ESP,0x10
JMP 0x0004d3c1
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nvoid FUN_003f2ec0(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  undefined1 *local_34 [2];\n  undefined1 local_2c [28];\n  \n  puVar1 = (undefined4 *)FUN_003adeb0(0x10);\n  piVar2 = (int *)FUN_003f2e40();\n                    /* try { // try from 003f2ef4 to 003f2ef6 has its CatchHandler @ 003f2f26 */\n  (**(code **)(*piVar2 + 0x10))(local_34,piVar2,param_1);\n                    /* try { // try from 003f2eff to 003f2f03 has its CatchHandler @ 003f2f2d */\n  FUN_00433600(puVar1,local_34);\n  if (local_34[0] != local_2c) {\n    FUN_003ae080(local_34[0]);\n    FUN_0004d3c1();\n    return;\n  }\n  puVar1[3] = piVar2;\n  *puVar1 = &DAT_005e85f8;\n  puVar1[2] = param_1;\n                    /* WARNING: Subroutine does not return */\n  FUN_003ac900(puVar1,PTR_PTR_005e9f24,PTR_FUN_005e9c48,param_1);\n}\n\n" comment (function_definition "void FUN_003f2ec0(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  undefined1 *local_34 [2];\n  undefined1 local_2c [28];\n  \n  puVar1 = (undefined4 *)FUN_003adeb0(0x10);\n  piVar2 = (int *)FUN_003f2e40();\n                    /* try { // try from 003f2ef4 to 003f2ef6 has its CatchHandler @ 003f2f26 */\n  (**(code **)(*piVar2 + 0x10))(local_34,piVar2,param_1);\n                    /* try { // try from 003f2eff to 003f2f03 has its CatchHandler @ 003f2f2d */\n  FUN_00433600(puVar1,local_34);\n  if (local_34[0] != local_2c) {\n    FUN_003ae080(local_34[0]);\n    FUN_0004d3c1();\n    return;\n  }\n  puVar1[3] = piVar2;\n  *puVar1 = &DAT_005e85f8;\n  puVar1[2] = param_1;\n                    /* WARNING: Subroutine does not return */\n  FUN_003ac900(puVar1,PTR_PTR_005e9f24,PTR_FUN_005e9c48,param_1);\n}" primitive_type (function_declarator "FUN_003f2ec0(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int *piVar2;\n  undefined1 *local_34 [2];\n  undefined1 local_2c [28];\n  \n  puVar1 = (undefined4 *)FUN_003adeb0(0x10);\n  piVar2 = (int *)FUN_003f2e40();\n                    /* try { // try from 003f2ef4 to 003f2ef6 has its CatchHandler @ 003f2f26 */\n  (**(code **)(*piVar2 + 0x10))(local_34,piVar2,param_1);\n                    /* try { // try from 003f2eff to 003f2f03 has its CatchHandler @ 003f2f2d */\n  FUN_00433600(puVar1,local_34);\n  if (local_34[0] != local_2c) {\n    FUN_003ae080(local_34[0]);\n    FUN_0004d3c1();\n    return;\n  }\n  puVar1[3] = piVar2;\n  *puVar1 = &DAT_005e85f8;\n  puVar1[2] = param_1;\n                    /* WARNING: Subroutine does not return */\n  FUN_003ac900(puVar1,PTR_PTR_005e9f24,PTR_FUN_005e9c48,param_1);\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined1 *local_34 [2];" type_identifier (pointer_declarator "*local_34 [2]" * (array_declarator "local_34 [2]" identifier [ number_literal ])) ;) (declaration "undefined1 local_2c [28];" type_identifier (array_declarator "local_2c [28]" identifier [ number_literal ]) ;) (expression_statement "puVar1 = (undefined4 *)FUN_003adeb0(0x10);" (assignment_expression "puVar1 = (undefined4 *)FUN_003adeb0(0x10)" identifier = (cast_expression "(undefined4 *)FUN_003adeb0(0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_003adeb0(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (expression_statement "piVar2 = (int *)FUN_003f2e40();" (assignment_expression "piVar2 = (int *)FUN_003f2e40()" identifier = (cast_expression "(int *)FUN_003f2e40()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_003f2e40()" identifier (argument_list "()" ( ))))) ;) comment (expression_statement "(**(code **)(*piVar2 + 0x10))(local_34,piVar2,param_1);" (call_expression "(**(code **)(*piVar2 + 0x10))(local_34,piVar2,param_1)" (parenthesized_expression "(**(code **)(*piVar2 + 0x10))" ( (pointer_expression "**(code **)(*piVar2 + 0x10)" * (pointer_expression "*(code **)(*piVar2 + 0x10)" * (cast_expression "(code **)(*piVar2 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 0x10)" ( (binary_expression "*piVar2 + 0x10" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(local_34,piVar2,param_1)" ( identifier , identifier , identifier ))) ;) comment (expression_statement "FUN_00433600(puVar1,local_34);" (call_expression "FUN_00433600(puVar1,local_34)" identifier (argument_list "(puVar1,local_34)" ( identifier , identifier ))) ;) (if_statement "if (local_34[0] != local_2c) {\n    FUN_003ae080(local_34[0]);\n    FUN_0004d3c1();\n    return;\n  }" if (parenthesized_expression "(local_34[0] != local_2c)" ( (binary_expression "local_34[0] != local_2c" (subscript_expression "local_34[0]" identifier [ number_literal ]) != identifier) )) (compound_statement "{\n    FUN_003ae080(local_34[0]);\n    FUN_0004d3c1();\n    return;\n  }" { (expression_statement "FUN_003ae080(local_34[0]);" (call_expression "FUN_003ae080(local_34[0])" identifier (argument_list "(local_34[0])" ( (subscript_expression "local_34[0]" identifier [ number_literal ]) ))) ;) (expression_statement "FUN_0004d3c1();" (call_expression "FUN_0004d3c1()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "puVar1[3] = piVar2;" (assignment_expression "puVar1[3] = piVar2" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar1 = &DAT_005e85f8;" (assignment_expression "*puVar1 = &DAT_005e85f8" (pointer_expression "*puVar1" * identifier) = (pointer_expression "&DAT_005e85f8" & identifier)) ;) (expression_statement "puVar1[2] = param_1;" (assignment_expression "puVar1[2] = param_1" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) comment (expression_statement "FUN_003ac900(puVar1,PTR_PTR_005e9f24,PTR_FUN_005e9c48,param_1);" (call_expression "FUN_003ac900(puVar1,PTR_PTR_005e9f24,PTR_FUN_005e9c48,param_1)" identifier (argument_list "(puVar1,PTR_PTR_005e9f24,PTR_FUN_005e9c48,param_1)" ( identifier , identifier , identifier , identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n/* std::__throw_system_error(int) */\n\nvoid std::__throw_system_error(int param_1)\n\n{\n  runtime_error *this;\n  int *piVar1;\n  int in_stack_ffffffb4;\n  undefined1 *local_34 [2];\n  undefined1 local_2c [28];\n  \n  this = (runtime_error *)__cxa_allocate_exception(0x10);\n  piVar1 = (int *)_V2::generic_category();\n                    /* try { // try from 003f2ef4 to 003f2ef6 has its CatchHandler @ 003f2f26 */\n  (**(code **)(*piVar1 + 0x10))((string *)local_34,piVar1,param_1);\n                    /* try { // try from 003f2eff to 003f2f03 has its CatchHandler @ 003f2f2d */\n  runtime_error::runtime_error(this,(string *)local_34);\n  if (local_34[0] != local_2c) {\n    operator_delete(local_34[0]);\n    __throw_system_error(in_stack_ffffffb4);\n    return;\n  }\n  *(int **)(this + 0xc) = piVar1;\n  *(undefined ***)this = &PTR__system_error_005e85f8;\n  *(int *)(this + 8) = param_1;\n                    /* WARNING: Subroutine does not return */\n  __cxa_throw(this,PTR_PTR_005e9f24,PTR__system_error_005e9c48,param_1);\n}\n\n" comment comment comment (function_definition "void std::__throw_system_error(int param_1)\n\n{\n  runtime_error *this;\n  int *piVar1;\n  int in_stack_ffffffb4;\n  undefined1 *local_34 [2];\n  undefined1 local_2c [28];\n  \n  this = (runtime_error *)__cxa_allocate_exception(0x10);\n  piVar1 = (int *)_V2::generic_category();\n                    /* try { // try from 003f2ef4 to 003f2ef6 has its CatchHandler @ 003f2f26 */\n  (**(code **)(*piVar1 + 0x10))((string *)local_34,piVar1,param_1);\n                    /* try { // try from 003f2eff to 003f2f03 has its CatchHandler @ 003f2f2d */\n  runtime_error::runtime_error(this,(string *)local_34);\n  if (local_34[0] != local_2c) {\n    operator_delete(local_34[0]);\n    __throw_system_error(in_stack_ffffffb4);\n    return;\n  }\n  *(int **)(this + 0xc) = piVar1;\n  *(undefined ***)this = &PTR__system_error_005e85f8;\n  *(int *)(this + 8) = param_1;\n                    /* WARNING: Subroutine does not return */\n  __cxa_throw(this,PTR_PTR_005e9f24,PTR__system_error_005e9c48,param_1);\n}" primitive_type (ERROR "std::" identifier : :) (function_declarator "__throw_system_error(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  runtime_error *this;\n  int *piVar1;\n  int in_stack_ffffffb4;\n  undefined1 *local_34 [2];\n  undefined1 local_2c [28];\n  \n  this = (runtime_error *)__cxa_allocate_exception(0x10);\n  piVar1 = (int *)_V2::generic_category();\n                    /* try { // try from 003f2ef4 to 003f2ef6 has its CatchHandler @ 003f2f26 */\n  (**(code **)(*piVar1 + 0x10))((string *)local_34,piVar1,param_1);\n                    /* try { // try from 003f2eff to 003f2f03 has its CatchHandler @ 003f2f2d */\n  runtime_error::runtime_error(this,(string *)local_34);\n  if (local_34[0] != local_2c) {\n    operator_delete(local_34[0]);\n    __throw_system_error(in_stack_ffffffb4);\n    return;\n  }\n  *(int **)(this + 0xc) = piVar1;\n  *(undefined ***)this = &PTR__system_error_005e85f8;\n  *(int *)(this + 8) = param_1;\n                    /* WARNING: Subroutine does not return */\n  __cxa_throw(this,PTR_PTR_005e9f24,PTR__system_error_005e9c48,param_1);\n}" { (declaration "runtime_error *this;" type_identifier (pointer_declarator "*this" * identifier) ;) (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int in_stack_ffffffb4;" primitive_type identifier ;) (declaration "undefined1 *local_34 [2];" type_identifier (pointer_declarator "*local_34 [2]" * (array_declarator "local_34 [2]" identifier [ number_literal ])) ;) (declaration "undefined1 local_2c [28];" type_identifier (array_declarator "local_2c [28]" identifier [ number_literal ]) ;) (expression_statement "this = (runtime_error *)__cxa_allocate_exception(0x10);" (assignment_expression "this = (runtime_error *)__cxa_allocate_exception(0x10)" identifier = (cast_expression "(runtime_error *)__cxa_allocate_exception(0x10)" ( (type_descriptor "runtime_error *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "__cxa_allocate_exception(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (ERROR "piVar1 = (int *)_V2::" (assignment_expression "piVar1 = (int *)_V2" identifier = (cast_expression "(int *)_V2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) : :) (expression_statement "generic_category();" (call_expression "generic_category()" identifier (argument_list "()" ( ))) ;) comment (expression_statement "(**(code **)(*piVar1 + 0x10))((string *)local_34,piVar1,param_1);" (call_expression "(**(code **)(*piVar1 + 0x10))((string *)local_34,piVar1,param_1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x10))" ( (pointer_expression "**(code **)(*piVar1 + 0x10)" * (pointer_expression "*(code **)(*piVar1 + 0x10)" * (cast_expression "(code **)(*piVar1 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x10)" ( (binary_expression "*piVar1 + 0x10" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "((string *)local_34,piVar1,param_1)" ( (cast_expression "(string *)local_34" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier ))) ;) comment (labeled_statement "runtime_error::runtime_error(this,(string *)local_34);" statement_identifier : (ERROR ":" :) (expression_statement "runtime_error(this,(string *)local_34);" (call_expression "runtime_error(this,(string *)local_34)" identifier (argument_list "(this,(string *)local_34)" ( identifier , (cast_expression "(string *)local_34" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;)) (if_statement "if (local_34[0] != local_2c) {\n    operator_delete(local_34[0]);\n    __throw_system_error(in_stack_ffffffb4);\n    return;\n  }" if (parenthesized_expression "(local_34[0] != local_2c)" ( (binary_expression "local_34[0] != local_2c" (subscript_expression "local_34[0]" identifier [ number_literal ]) != identifier) )) (compound_statement "{\n    operator_delete(local_34[0]);\n    __throw_system_error(in_stack_ffffffb4);\n    return;\n  }" { (expression_statement "operator_delete(local_34[0]);" (call_expression "operator_delete(local_34[0])" identifier (argument_list "(local_34[0])" ( (subscript_expression "local_34[0]" identifier [ number_literal ]) ))) ;) (expression_statement "__throw_system_error(in_stack_ffffffb4);" (call_expression "__throw_system_error(in_stack_ffffffb4)" identifier (argument_list "(in_stack_ffffffb4)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "*(int **)(this + 0xc) = piVar1;" (assignment_expression "*(int **)(this + 0xc) = piVar1" (pointer_expression "*(int **)(this + 0xc)" * (cast_expression "(int **)(this + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined ***)this = &PTR__system_error_005e85f8;" (assignment_expression "*(undefined ***)this = &PTR__system_error_005e85f8" (pointer_expression "*(undefined ***)this" * (cast_expression "(undefined ***)this" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) identifier)) = (pointer_expression "&PTR__system_error_005e85f8" & identifier)) ;) (expression_statement "*(int *)(this + 8) = param_1;" (assignment_expression "*(int *)(this + 8) = param_1" (pointer_expression "*(int *)(this + 8)" * (cast_expression "(int *)(this + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = identifier) ;) comment (expression_statement "__cxa_throw(this,PTR_PTR_005e9f24,PTR__system_error_005e9c48,param_1);" (call_expression "__cxa_throw(this,PTR_PTR_005e9f24,PTR__system_error_005e9c48,param_1)" identifier (argument_list "(this,PTR_PTR_005e9f24,PTR__system_error_005e9c48,param_1)" ( identifier , identifier , identifier , identifier ))) ;) })))
(translation_unit "void FUN_003f2ec0(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  undefined1 *local_34 [2];\n  undefined1 local_2c [28];\n  \n  puVar1 = (undefined4 *)FUN_003adeb0(0x10);\n  piVar2 = (int *)FUN_003f2e40();\n                    \n  (**(code **)(*piVar2 + 0x10))(local_34,piVar2,param_1);\n                    \n  FUN_00433600(puVar1,local_34);\n  if (local_34[0] != local_2c) {\n    FUN_003ae080(local_34[0]);\n    FUN_0004d3c1();\n    return;\n  }\n  puVar1[3] = piVar2;\n  *puVar1 = &DAT_005e85f8;\n  puVar1[2] = param_1;\n                    \n  FUN_003ac900(puVar1,PTR_PTR_005e9f24,PTR_FUN_005e9c48,param_1);\n}\n\n" (function_definition "void FUN_003f2ec0(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  undefined1 *local_34 [2];\n  undefined1 local_2c [28];\n  \n  puVar1 = (undefined4 *)FUN_003adeb0(0x10);\n  piVar2 = (int *)FUN_003f2e40();\n                    \n  (**(code **)(*piVar2 + 0x10))(local_34,piVar2,param_1);\n                    \n  FUN_00433600(puVar1,local_34);\n  if (local_34[0] != local_2c) {\n    FUN_003ae080(local_34[0]);\n    FUN_0004d3c1();\n    return;\n  }\n  puVar1[3] = piVar2;\n  *puVar1 = &DAT_005e85f8;\n  puVar1[2] = param_1;\n                    \n  FUN_003ac900(puVar1,PTR_PTR_005e9f24,PTR_FUN_005e9c48,param_1);\n}" primitive_type (function_declarator "FUN_003f2ec0(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int *piVar2;\n  undefined1 *local_34 [2];\n  undefined1 local_2c [28];\n  \n  puVar1 = (undefined4 *)FUN_003adeb0(0x10);\n  piVar2 = (int *)FUN_003f2e40();\n                    \n  (**(code **)(*piVar2 + 0x10))(local_34,piVar2,param_1);\n                    \n  FUN_00433600(puVar1,local_34);\n  if (local_34[0] != local_2c) {\n    FUN_003ae080(local_34[0]);\n    FUN_0004d3c1();\n    return;\n  }\n  puVar1[3] = piVar2;\n  *puVar1 = &DAT_005e85f8;\n  puVar1[2] = param_1;\n                    \n  FUN_003ac900(puVar1,PTR_PTR_005e9f24,PTR_FUN_005e9c48,param_1);\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined1 *local_34 [2];" type_identifier (pointer_declarator "*local_34 [2]" * (array_declarator "local_34 [2]" identifier [ number_literal ])) ;) (declaration "undefined1 local_2c [28];" type_identifier (array_declarator "local_2c [28]" identifier [ number_literal ]) ;) (expression_statement "puVar1 = (undefined4 *)FUN_003adeb0(0x10);" (assignment_expression "puVar1 = (undefined4 *)FUN_003adeb0(0x10)" identifier = (cast_expression "(undefined4 *)FUN_003adeb0(0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_003adeb0(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (expression_statement "piVar2 = (int *)FUN_003f2e40();" (assignment_expression "piVar2 = (int *)FUN_003f2e40()" identifier = (cast_expression "(int *)FUN_003f2e40()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_003f2e40()" identifier (argument_list "()" ( ))))) ;) (expression_statement "(**(code **)(*piVar2 + 0x10))(local_34,piVar2,param_1);" (call_expression "(**(code **)(*piVar2 + 0x10))(local_34,piVar2,param_1)" (parenthesized_expression "(**(code **)(*piVar2 + 0x10))" ( (pointer_expression "**(code **)(*piVar2 + 0x10)" * (pointer_expression "*(code **)(*piVar2 + 0x10)" * (cast_expression "(code **)(*piVar2 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 0x10)" ( (binary_expression "*piVar2 + 0x10" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(local_34,piVar2,param_1)" ( identifier , identifier , identifier ))) ;) (expression_statement "FUN_00433600(puVar1,local_34);" (call_expression "FUN_00433600(puVar1,local_34)" identifier (argument_list "(puVar1,local_34)" ( identifier , identifier ))) ;) (if_statement "if (local_34[0] != local_2c) {\n    FUN_003ae080(local_34[0]);\n    FUN_0004d3c1();\n    return;\n  }" if (parenthesized_expression "(local_34[0] != local_2c)" ( (binary_expression "local_34[0] != local_2c" (subscript_expression "local_34[0]" identifier [ number_literal ]) != identifier) )) (compound_statement "{\n    FUN_003ae080(local_34[0]);\n    FUN_0004d3c1();\n    return;\n  }" { (expression_statement "FUN_003ae080(local_34[0]);" (call_expression "FUN_003ae080(local_34[0])" identifier (argument_list "(local_34[0])" ( (subscript_expression "local_34[0]" identifier [ number_literal ]) ))) ;) (expression_statement "FUN_0004d3c1();" (call_expression "FUN_0004d3c1()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "puVar1[3] = piVar2;" (assignment_expression "puVar1[3] = piVar2" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar1 = &DAT_005e85f8;" (assignment_expression "*puVar1 = &DAT_005e85f8" (pointer_expression "*puVar1" * identifier) = (pointer_expression "&DAT_005e85f8" & identifier)) ;) (expression_statement "puVar1[2] = param_1;" (assignment_expression "puVar1[2] = param_1" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_003ac900(puVar1,PTR_PTR_005e9f24,PTR_FUN_005e9c48,param_1);" (call_expression "FUN_003ac900(puVar1,PTR_PTR_005e9f24,PTR_FUN_005e9c48,param_1)" identifier (argument_list "(puVar1,PTR_PTR_005e9f24,PTR_FUN_005e9c48,param_1)" ( identifier , identifier , identifier , identifier ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * (array_declarator IDENT [ LIT ])) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (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 , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) })))
(function_definition "void FUN_003f2ec0(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  undefined1 *local_34 [2];\n  undefined1 local_2c [28];\n  \n  puVar1 = (undefined4 *)FUN_003adeb0(0x10);\n  piVar2 = (int *)FUN_003f2e40();\n                    \n  (**(code **)(*piVar2 + 0x10))(local_34,piVar2,param_1);\n                    \n  FUN_00433600(puVar1,local_34);\n  if (local_34[0] != local_2c) {\n    FUN_003ae080(local_34[0]);\n    FUN_0004d3c1();\n    return;\n  }\n  puVar1[3] = piVar2;\n  *puVar1 = &DAT_005e85f8;\n  puVar1[2] = param_1;\n                    \n  FUN_003ac900(puVar1,PTR_PTR_005e9f24,PTR_FUN_005e9c48,param_1);\n}" (primitive_type "void") (function_declarator "FUN_003f2ec0(undefined4 param_1)" (identifier "FUN_003f2ec0") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  int *piVar2;\n  undefined1 *local_34 [2];\n  undefined1 local_2c [28];\n  \n  puVar1 = (undefined4 *)FUN_003adeb0(0x10);\n  piVar2 = (int *)FUN_003f2e40();\n                    \n  (**(code **)(*piVar2 + 0x10))(local_34,piVar2,param_1);\n                    \n  FUN_00433600(puVar1,local_34);\n  if (local_34[0] != local_2c) {\n    FUN_003ae080(local_34[0]);\n    FUN_0004d3c1();\n    return;\n  }\n  puVar1[3] = piVar2;\n  *puVar1 = &DAT_005e85f8;\n  puVar1[2] = param_1;\n                    \n  FUN_003ac900(puVar1,PTR_PTR_005e9f24,PTR_FUN_005e9c48,param_1);\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "undefined1 *local_34 [2];" (type_identifier "undefined1") (pointer_declarator "*local_34 [2]" (* "*") (array_declarator "local_34 [2]" (identifier "local_34") ([ "[") (number_literal "2") (] "]"))) (; ";")) (declaration "undefined1 local_2c [28];" (type_identifier "undefined1") (array_declarator "local_2c [28]" (identifier "local_2c") ([ "[") (number_literal "28") (] "]")) (; ";")) (expression_statement "puVar1 = (undefined4 *)FUN_003adeb0(0x10);" (assignment_expression "puVar1 = (undefined4 *)FUN_003adeb0(0x10)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)FUN_003adeb0(0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_003adeb0(0x10)" (identifier "FUN_003adeb0") (argument_list "(0x10)" (( "(") (number_literal "0x10") () ")"))))) (; ";")) (expression_statement "piVar2 = (int *)FUN_003f2e40();" (assignment_expression "piVar2 = (int *)FUN_003f2e40()" (identifier "piVar2") (= "=") (cast_expression "(int *)FUN_003f2e40()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_003f2e40()" (identifier "FUN_003f2e40") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "(**(code **)(*piVar2 + 0x10))(local_34,piVar2,param_1);" (call_expression "(**(code **)(*piVar2 + 0x10))(local_34,piVar2,param_1)" (parenthesized_expression "(**(code **)(*piVar2 + 0x10))" (( "(") (pointer_expression "**(code **)(*piVar2 + 0x10)" (* "*") (pointer_expression "*(code **)(*piVar2 + 0x10)" (* "*") (cast_expression "(code **)(*piVar2 + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar2 + 0x10)" (( "(") (binary_expression "*piVar2 + 0x10" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (argument_list "(local_34,piVar2,param_1)" (( "(") (identifier "local_34") (, ",") (identifier "piVar2") (, ",") (identifier "param_1") () ")"))) (; ";")) (expression_statement "FUN_00433600(puVar1,local_34);" (call_expression "FUN_00433600(puVar1,local_34)" (identifier "FUN_00433600") (argument_list "(puVar1,local_34)" (( "(") (identifier "puVar1") (, ",") (identifier "local_34") () ")"))) (; ";")) (if_statement "if (local_34[0] != local_2c) {\n    FUN_003ae080(local_34[0]);\n    FUN_0004d3c1();\n    return;\n  }" (if "if") (parenthesized_expression "(local_34[0] != local_2c)" (( "(") (binary_expression "local_34[0] != local_2c" (subscript_expression "local_34[0]" (identifier "local_34") ([ "[") (number_literal "0") (] "]")) (!= "!=") (identifier "local_2c")) () ")")) (compound_statement "{\n    FUN_003ae080(local_34[0]);\n    FUN_0004d3c1();\n    return;\n  }" ({ "{") (expression_statement "FUN_003ae080(local_34[0]);" (call_expression "FUN_003ae080(local_34[0])" (identifier "FUN_003ae080") (argument_list "(local_34[0])" (( "(") (subscript_expression "local_34[0]" (identifier "local_34") ([ "[") (number_literal "0") (] "]")) () ")"))) (; ";")) (expression_statement "FUN_0004d3c1();" (call_expression "FUN_0004d3c1()" (identifier "FUN_0004d3c1") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "puVar1[3] = piVar2;" (assignment_expression "puVar1[3] = piVar2" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "piVar2")) (; ";")) (expression_statement "*puVar1 = &DAT_005e85f8;" (assignment_expression "*puVar1 = &DAT_005e85f8" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (pointer_expression "&DAT_005e85f8" (& "&") (identifier "DAT_005e85f8"))) (; ";")) (expression_statement "puVar1[2] = param_1;" (assignment_expression "puVar1[2] = param_1" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "FUN_003ac900(puVar1,PTR_PTR_005e9f24,PTR_FUN_005e9c48,param_1);" (call_expression "FUN_003ac900(puVar1,PTR_PTR_005e9f24,PTR_FUN_005e9c48,param_1)" (identifier "FUN_003ac900") (argument_list "(puVar1,PTR_PTR_005e9f24,PTR_FUN_005e9c48,param_1)" (( "(") (identifier "puVar1") (, ",") (identifier "PTR_PTR_005e9f24") (, ",") (identifier "PTR_FUN_005e9c48") (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* std::__throw_system_error(int) */

void std::function_1(int param_1)

{
  type_1 *var_5;
  int *piVar1;
  int in_stack_ffffffb4;
  type_2 *local_34 [2];
  type_2 var_3 [28];
  
  var_5 = (type_1 *)var_1(0x10);
  piVar1 = (int *)_V2::var_2();
                    /* try { // try from 003f2ef4 to 003f2ef6 has its CatchHandler @ 003f2f26 */
  (**(type_3 **)(*piVar1 + 0x10))((type_4 *)local_34,piVar1,param_1);
                    /* try { // try from 003f2eff to 003f2f03 has its CatchHandler @ 003f2f2d */
  runtime_error::type_1(var_5,(type_4 *)local_34);
  if (local_34[0] != var_3) {
    var_4(local_34[0]);
    function_1(in_stack_ffffffb4);
    return;
  }
  *(int **)(var_5 + 0xc) = piVar1;
  *(type_5 ***)var_5 = &PTR__system_error_005e85f8;
  *(int *)(var_5 + 8) = param_1;
                    /* WARNING: Subroutine does not return */
  var_6(var_5,PTR_PTR_005e9f24,PTR__system_error_005e9c48,param_1);
}


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

/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

void MASKED(undefined4 param_1)

{
  undefined4 *puVar1;
  int *piVar2;
  undefined1 *local_34 [2];
  undefined1 local_2c [28];
  
  puVar1 = (undefined4 *)FUN_003adeb0(0x10);
  piVar2 = (int *)FUN_003f2e40();
                    /* try { // try from 003f2ef4 to 003f2ef6 has its CatchHandler @ 003f2f26 */
  (**(code **)(*piVar2 + 0x10))(local_34,piVar2,param_1);
                    /* try { // try from 003f2eff to 003f2f03 has its CatchHandler @ 003f2f2d */
  FUN_00433600(puVar1,local_34);
  if (local_34[0] != local_2c) {
    FUN_003ae080(local_34[0]);
    FUN_0004d3c1();
    return;
  }
  puVar1[3] = piVar2;
  *puVar1 = &DAT_005e85f8;
  puVar1[2] = param_1;
                    /* WARNING: Subroutine does not return */
  FUN_003ac900(puVar1,PTR_PTR_005e9f24,PTR_FUN_005e9c48,param_1);
}

