
/* std::wostream& std::wostream::_M_insert<unsigned long>(unsigned long) */

wostream * __thiscall std::wostream::_M_insert<unsigned_long>(wostream *this,ulong param_1)

{
  int *piVar1;
  int iVar2;
  undefined4 uVar3;
  wostream *pwVar4;
  undefined1 **ppuVar5;
  undefined1 *puStack_50;
  undefined1 auStack_4c [8];
  sentry *local_44;
  int *local_40;
  int local_3c;
  uint local_38;
  undefined1 local_34 [4];
  char local_30;
  sentry local_24 [20];
  
  __x86_get_pc_thunk_di();
  local_44 = local_24;
  sentry::sentry(local_44,this);
  ppuVar5 = (undefined1 **)auStack_4c;
  if (local_24[0] != (sentry)0x0) {
    pwVar4 = this + *(int *)(*(int *)this + -0xc);
    local_40 = *(int **)(pwVar4 + 0x84);
    if (local_40 == (int *)0x0) {
                    /* WARNING: Subroutine does not return */
      puStack_50 = (undefined1 *)0x1bcc44;
      __throw_bad_cast();
    }
    if (pwVar4[0x78] == (wostream)0x0) {
      piVar1 = *(int **)(pwVar4 + 0x80);
      if (piVar1 == (int *)0x0) {
                    /* WARNING: Subroutine does not return */
        puStack_50 = &LAB_001bcc4b;
        __throw_bad_cast();
      }
                    /* try { // try from 001bcc22 to 001bcc4a has its CatchHandler @ 001bcc4b */
      uVar3 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);
      iVar2 = *(int *)this;
      *(undefined4 *)(pwVar4 + 0x74) = uVar3;
      pwVar4[0x78] = (wostream)0x1;
      pwVar4 = this + *(int *)(iVar2 + -0xc);
    }
    else {
      uVar3 = *(undefined4 *)(pwVar4 + 0x74);
    }
    local_3c = *(int *)(pwVar4 + 0x7c);
    local_38 = (uint)(local_3c == 0);
                    /* try { // try from 001bcbcd to 001bcbcf has its CatchHandler @ 001bcc4b */
    (**(code **)(*local_40 + 0x10))(local_34,local_40,local_3c,local_38,pwVar4,uVar3,param_1);
    ppuVar5 = &puStack_50;
    if (local_30 != '\0') {
                    /* try { // try from 001bcbed to 001bcbf1 has its CatchHandler @ 001bcc4d */
      wios::clear((wios *)(this + *(int *)(*(int *)this + -0xc)),
                  *(_Ios_Iostate *)((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) |
                  _S_badbit);
      ppuVar5 = &puStack_50;
    }
  }
  *(sentry **)((int)ppuVar5 + -0x10) = local_44;
  *(undefined4 *)((int)ppuVar5 + -0x14) = 0x1bcc02;
  sentry::~sentry(*(sentry **)((int)ppuVar5 + -0x10));
  return this;
}



int * FUN_001bcb50(int *param_1,undefined4 param_2)

{
  int *piVar1;
  int iVar2;
  undefined4 uVar3;
  int iVar4;
  undefined1 **ppuVar5;
  undefined1 *puStack_50;
  undefined1 auStack_4c [8];
  char *local_44;
  int *local_40;
  int local_3c;
  uint local_38;
  undefined1 local_34 [4];
  char local_30;
  char local_24 [20];
  
  FUN_00058c4a();
  local_44 = local_24;
  FUN_001bbc60(local_44,param_1);
  ppuVar5 = (undefined1 **)auStack_4c;
  if (local_24[0] != '\0') {
    iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;
    local_40 = *(int **)(iVar4 + 0x84);
    if (local_40 == (int *)0x0) {
                    /* WARNING: Subroutine does not return */
      puStack_50 = (undefined1 *)0x1bcc44;
      FUN_001f1cf0();
    }
    if (*(char *)(iVar4 + 0x78) == '\0') {
      piVar1 = *(int **)(iVar4 + 0x80);
      if (piVar1 == (int *)0x0) {
                    /* WARNING: Subroutine does not return */
        puStack_50 = &LAB_001bcc4b;
        FUN_001f1cf0();
      }
                    /* try { // try from 001bcc22 to 001bcc4a has its CatchHandler @ 001bcc4b */
      uVar3 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);
      iVar2 = *param_1;
      *(undefined4 *)(iVar4 + 0x74) = uVar3;
      *(undefined1 *)(iVar4 + 0x78) = 1;
      iVar4 = *(int *)(iVar2 + -0xc) + (int)param_1;
    }
    else {
      uVar3 = *(undefined4 *)(iVar4 + 0x74);
    }
    local_3c = *(int *)(iVar4 + 0x7c);
    local_38 = (uint)(local_3c == 0);
                    /* try { // try from 001bcbcd to 001bcbcf has its CatchHandler @ 001bcc4b */
    (**(code **)(*local_40 + 0x10))(local_34,local_40,local_3c,local_38,iVar4,uVar3,param_2);
    ppuVar5 = &puStack_50;
    if (local_30 != '\0') {
      iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;
                    /* try { // try from 001bcbed to 001bcbf1 has its CatchHandler @ 001bcc4d */
      FUN_001d6d60(iVar4,*(uint *)(iVar4 + 0x14) | 1);
      ppuVar5 = &puStack_50;
    }
  }
  *(char **)((int)ppuVar5 + -0x10) = local_44;
  *(undefined4 *)((int)ppuVar5 + -0x14) = 0x1bcc02;
  FUN_001bbce0();
  return param_1;
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
CALL 0x00058c4a
ADD EDI,0x1824a7
PUSH ESI
LEA EAX,[EBP + -0x20]
PUSH EBX
SUB ESP,0x44
MOV ESI,dword ptr [EBP + 0x8]
MOV dword ptr [EBP + -0x40],EAX
PUSH ESI
MOV EBX,EDI
PUSH EAX
CALL 0x001bbc60
ADD ESP,0x10
CMP byte ptr [EBP + -0x20],0x0
JZ 0x001bcbf5
MOV EAX,dword ptr [ESI]
MOV EBX,dword ptr [EAX + -0xc]
ADD EBX,ESI
MOV EAX,dword ptr [EBX + 0x84]
MOV dword ptr [EBP + -0x3c],EAX
TEST EAX,EAX
JZ 0x001bcc3d
CMP byte ptr [EBX + 0x78],0x0
JZ 0x001bcc10
MOV ECX,dword ptr [EBX + 0x74]
MOV EAX,dword ptr [EBX + 0x7c]
MOV dword ptr [EBP + -0x34],0x0
LEA EDX,[EBP + -0x30]
TEST EAX,EAX
MOV dword ptr [EBP + -0x38],EAX
MOV EAX,dword ptr [EBP + -0x3c]
SETZ byte ptr [EBP + -0x34]
SUB ESP,0x4
MOV EAX,dword ptr [EAX]
PUSH dword ptr [EBP + 0xc]
PUSH ECX
PUSH EBX
PUSH dword ptr [EBP + -0x34]
PUSH dword ptr [EBP + -0x38]
PUSH dword ptr [EBP + -0x3c]
PUSH EDX
CALL dword ptr [EAX + 0x10]
ADD ESP,0x1c
CMP byte ptr [EBP + -0x2c],0x0
JZ 0x001bcbf5
MOV EAX,dword ptr [ESI]
SUB ESP,0x8
MOV EBX,EDI
MOV EDX,dword ptr [EAX + -0xc]
ADD EDX,ESI
MOV EAX,dword ptr [EDX + 0x14]
OR EAX,0x1
PUSH EAX
PUSH EDX
CALL 0x001d6d60
ADD ESP,0x10
SUB ESP,0xc
PUSH dword ptr [EBP + -0x40]
MOV EBX,EDI
CALL 0x001bbce0
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [EBX + 0x80]
TEST EAX,EAX
JZ 0x001bcc44
MOV EDX,dword ptr [EAX]
SUB ESP,0x8
PUSH 0x20
PUSH EAX
CALL dword ptr [EDX + 0x28]
MOV EDX,dword ptr [ESI]
MOV dword ptr [EBX + 0x74],EAX
MOV ECX,EAX
ADD ESP,0x10
MOV byte ptr [EBX + 0x78],0x1
MOV EBX,dword ptr [EDX + -0xc]
ADD EBX,ESI
JMP 0x001bcba0
MOV EBX,EDI
CALL 0x001f1cf0
MOV EBX,EDI
CALL 0x001f1cf0
(translation_unit "int * FUN_001bcb50(int *param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined1 **ppuVar5;\n  undefined1 *puStack_50;\n  undefined1 auStack_4c [8];\n  char *local_44;\n  int *local_40;\n  int local_3c;\n  uint local_38;\n  undefined1 local_34 [4];\n  char local_30;\n  char local_24 [20];\n  \n  FUN_00058c4a();\n  local_44 = local_24;\n  FUN_001bbc60(local_44,param_1);\n  ppuVar5 = (undefined1 **)auStack_4c;\n  if (local_24[0] != '\0') {\n    iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    local_40 = *(int **)(iVar4 + 0x84);\n    if (local_40 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      puStack_50 = (undefined1 *)0x1bcc44;\n      FUN_001f1cf0();\n    }\n    if (*(char *)(iVar4 + 0x78) == '\0') {\n      piVar1 = *(int **)(iVar4 + 0x80);\n      if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        puStack_50 = &LAB_001bcc4b;\n        FUN_001f1cf0();\n      }\n                    /* try { // try from 001bcc22 to 001bcc4a has its CatchHandler @ 001bcc4b */\n      uVar3 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n      iVar2 = *param_1;\n      *(undefined4 *)(iVar4 + 0x74) = uVar3;\n      *(undefined1 *)(iVar4 + 0x78) = 1;\n      iVar4 = *(int *)(iVar2 + -0xc) + (int)param_1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(iVar4 + 0x74);\n    }\n    local_3c = *(int *)(iVar4 + 0x7c);\n    local_38 = (uint)(local_3c == 0);\n                    /* try { // try from 001bcbcd to 001bcbcf has its CatchHandler @ 001bcc4b */\n    (**(code **)(*local_40 + 0x10))(local_34,local_40,local_3c,local_38,iVar4,uVar3,param_2);\n    ppuVar5 = &puStack_50;\n    if (local_30 != '\0') {\n      iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    /* try { // try from 001bcbed to 001bcbf1 has its CatchHandler @ 001bcc4d */\n      FUN_001d6d60(iVar4,*(uint *)(iVar4 + 0x14) | 1);\n      ppuVar5 = &puStack_50;\n    }\n  }\n  *(char **)((int)ppuVar5 + -0x10) = local_44;\n  *(undefined4 *)((int)ppuVar5 + -0x14) = 0x1bcc02;\n  FUN_001bbce0();\n  return param_1;\n}\n\n" (function_definition "int * FUN_001bcb50(int *param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined1 **ppuVar5;\n  undefined1 *puStack_50;\n  undefined1 auStack_4c [8];\n  char *local_44;\n  int *local_40;\n  int local_3c;\n  uint local_38;\n  undefined1 local_34 [4];\n  char local_30;\n  char local_24 [20];\n  \n  FUN_00058c4a();\n  local_44 = local_24;\n  FUN_001bbc60(local_44,param_1);\n  ppuVar5 = (undefined1 **)auStack_4c;\n  if (local_24[0] != '\0') {\n    iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    local_40 = *(int **)(iVar4 + 0x84);\n    if (local_40 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      puStack_50 = (undefined1 *)0x1bcc44;\n      FUN_001f1cf0();\n    }\n    if (*(char *)(iVar4 + 0x78) == '\0') {\n      piVar1 = *(int **)(iVar4 + 0x80);\n      if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        puStack_50 = &LAB_001bcc4b;\n        FUN_001f1cf0();\n      }\n                    /* try { // try from 001bcc22 to 001bcc4a has its CatchHandler @ 001bcc4b */\n      uVar3 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n      iVar2 = *param_1;\n      *(undefined4 *)(iVar4 + 0x74) = uVar3;\n      *(undefined1 *)(iVar4 + 0x78) = 1;\n      iVar4 = *(int *)(iVar2 + -0xc) + (int)param_1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(iVar4 + 0x74);\n    }\n    local_3c = *(int *)(iVar4 + 0x7c);\n    local_38 = (uint)(local_3c == 0);\n                    /* try { // try from 001bcbcd to 001bcbcf has its CatchHandler @ 001bcc4b */\n    (**(code **)(*local_40 + 0x10))(local_34,local_40,local_3c,local_38,iVar4,uVar3,param_2);\n    ppuVar5 = &puStack_50;\n    if (local_30 != '\0') {\n      iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    /* try { // try from 001bcbed to 001bcbf1 has its CatchHandler @ 001bcc4d */\n      FUN_001d6d60(iVar4,*(uint *)(iVar4 + 0x14) | 1);\n      ppuVar5 = &puStack_50;\n    }\n  }\n  *(char **)((int)ppuVar5 + -0x10) = local_44;\n  *(undefined4 *)((int)ppuVar5 + -0x14) = 0x1bcc02;\n  FUN_001bbce0();\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_001bcb50(int *param_1,undefined4 param_2)" * (function_declarator "FUN_001bcb50(int *param_1,undefined4 param_2)" identifier (parameter_list "(int *param_1,undefined4 param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) )))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined1 **ppuVar5;\n  undefined1 *puStack_50;\n  undefined1 auStack_4c [8];\n  char *local_44;\n  int *local_40;\n  int local_3c;\n  uint local_38;\n  undefined1 local_34 [4];\n  char local_30;\n  char local_24 [20];\n  \n  FUN_00058c4a();\n  local_44 = local_24;\n  FUN_001bbc60(local_44,param_1);\n  ppuVar5 = (undefined1 **)auStack_4c;\n  if (local_24[0] != '\0') {\n    iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    local_40 = *(int **)(iVar4 + 0x84);\n    if (local_40 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      puStack_50 = (undefined1 *)0x1bcc44;\n      FUN_001f1cf0();\n    }\n    if (*(char *)(iVar4 + 0x78) == '\0') {\n      piVar1 = *(int **)(iVar4 + 0x80);\n      if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        puStack_50 = &LAB_001bcc4b;\n        FUN_001f1cf0();\n      }\n                    /* try { // try from 001bcc22 to 001bcc4a has its CatchHandler @ 001bcc4b */\n      uVar3 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n      iVar2 = *param_1;\n      *(undefined4 *)(iVar4 + 0x74) = uVar3;\n      *(undefined1 *)(iVar4 + 0x78) = 1;\n      iVar4 = *(int *)(iVar2 + -0xc) + (int)param_1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(iVar4 + 0x74);\n    }\n    local_3c = *(int *)(iVar4 + 0x7c);\n    local_38 = (uint)(local_3c == 0);\n                    /* try { // try from 001bcbcd to 001bcbcf has its CatchHandler @ 001bcc4b */\n    (**(code **)(*local_40 + 0x10))(local_34,local_40,local_3c,local_38,iVar4,uVar3,param_2);\n    ppuVar5 = &puStack_50;\n    if (local_30 != '\0') {\n      iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    /* try { // try from 001bcbed to 001bcbf1 has its CatchHandler @ 001bcc4d */\n      FUN_001d6d60(iVar4,*(uint *)(iVar4 + 0x14) | 1);\n      ppuVar5 = &puStack_50;\n    }\n  }\n  *(char **)((int)ppuVar5 + -0x10) = local_44;\n  *(undefined4 *)((int)ppuVar5 + -0x14) = 0x1bcc02;\n  FUN_001bbce0();\n  return param_1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined1 **ppuVar5;" type_identifier (pointer_declarator "**ppuVar5" * (pointer_declarator "*ppuVar5" * identifier)) ;) (declaration "undefined1 *puStack_50;" type_identifier (pointer_declarator "*puStack_50" * identifier) ;) (declaration "undefined1 auStack_4c [8];" type_identifier (array_declarator "auStack_4c [8]" identifier [ number_literal ]) ;) (declaration "char *local_44;" primitive_type (pointer_declarator "*local_44" * identifier) ;) (declaration "int *local_40;" primitive_type (pointer_declarator "*local_40" * identifier) ;) (declaration "int local_3c;" primitive_type identifier ;) (declaration "uint local_38;" type_identifier identifier ;) (declaration "undefined1 local_34 [4];" type_identifier (array_declarator "local_34 [4]" identifier [ number_literal ]) ;) (declaration "char local_30;" primitive_type identifier ;) (declaration "char local_24 [20];" primitive_type (array_declarator "local_24 [20]" identifier [ number_literal ]) ;) (expression_statement "FUN_00058c4a();" (call_expression "FUN_00058c4a()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_44 = local_24;" (assignment_expression "local_44 = local_24" identifier = identifier) ;) (expression_statement "FUN_001bbc60(local_44,param_1);" (call_expression "FUN_001bbc60(local_44,param_1)" identifier (argument_list "(local_44,param_1)" ( identifier , identifier ))) ;) (expression_statement "ppuVar5 = (undefined1 **)auStack_4c;" (assignment_expression "ppuVar5 = (undefined1 **)auStack_4c" identifier = (cast_expression "(undefined1 **)auStack_4c" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ;) (if_statement "if (local_24[0] != '\0') {\n    iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    local_40 = *(int **)(iVar4 + 0x84);\n    if (local_40 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      puStack_50 = (undefined1 *)0x1bcc44;\n      FUN_001f1cf0();\n    }\n    if (*(char *)(iVar4 + 0x78) == '\0') {\n      piVar1 = *(int **)(iVar4 + 0x80);\n      if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        puStack_50 = &LAB_001bcc4b;\n        FUN_001f1cf0();\n      }\n                    /* try { // try from 001bcc22 to 001bcc4a has its CatchHandler @ 001bcc4b */\n      uVar3 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n      iVar2 = *param_1;\n      *(undefined4 *)(iVar4 + 0x74) = uVar3;\n      *(undefined1 *)(iVar4 + 0x78) = 1;\n      iVar4 = *(int *)(iVar2 + -0xc) + (int)param_1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(iVar4 + 0x74);\n    }\n    local_3c = *(int *)(iVar4 + 0x7c);\n    local_38 = (uint)(local_3c == 0);\n                    /* try { // try from 001bcbcd to 001bcbcf has its CatchHandler @ 001bcc4b */\n    (**(code **)(*local_40 + 0x10))(local_34,local_40,local_3c,local_38,iVar4,uVar3,param_2);\n    ppuVar5 = &puStack_50;\n    if (local_30 != '\0') {\n      iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    /* try { // try from 001bcbed to 001bcbf1 has its CatchHandler @ 001bcc4d */\n      FUN_001d6d60(iVar4,*(uint *)(iVar4 + 0x14) | 1);\n      ppuVar5 = &puStack_50;\n    }\n  }" if (parenthesized_expression "(local_24[0] != '\0')" ( (binary_expression "local_24[0] != '\0'" (subscript_expression "local_24[0]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    local_40 = *(int **)(iVar4 + 0x84);\n    if (local_40 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      puStack_50 = (undefined1 *)0x1bcc44;\n      FUN_001f1cf0();\n    }\n    if (*(char *)(iVar4 + 0x78) == '\0') {\n      piVar1 = *(int **)(iVar4 + 0x80);\n      if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        puStack_50 = &LAB_001bcc4b;\n        FUN_001f1cf0();\n      }\n                    /* try { // try from 001bcc22 to 001bcc4a has its CatchHandler @ 001bcc4b */\n      uVar3 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n      iVar2 = *param_1;\n      *(undefined4 *)(iVar4 + 0x74) = uVar3;\n      *(undefined1 *)(iVar4 + 0x78) = 1;\n      iVar4 = *(int *)(iVar2 + -0xc) + (int)param_1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(iVar4 + 0x74);\n    }\n    local_3c = *(int *)(iVar4 + 0x7c);\n    local_38 = (uint)(local_3c == 0);\n                    /* try { // try from 001bcbcd to 001bcbcf has its CatchHandler @ 001bcc4b */\n    (**(code **)(*local_40 + 0x10))(local_34,local_40,local_3c,local_38,iVar4,uVar3,param_2);\n    ppuVar5 = &puStack_50;\n    if (local_30 != '\0') {\n      iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    /* try { // try from 001bcbed to 001bcbf1 has its CatchHandler @ 001bcc4d */\n      FUN_001d6d60(iVar4,*(uint *)(iVar4 + 0x14) | 1);\n      ppuVar5 = &puStack_50;\n    }\n  }" { (expression_statement "iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1" identifier = (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "local_40 = *(int **)(iVar4 + 0x84);" (assignment_expression "local_40 = *(int **)(iVar4 + 0x84)" identifier = (pointer_expression "*(int **)(iVar4 + 0x84)" * (cast_expression "(int **)(iVar4 + 0x84)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0x84)" ( (binary_expression "iVar4 + 0x84" identifier + number_literal) ))))) ;) (if_statement "if (local_40 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      puStack_50 = (undefined1 *)0x1bcc44;\n      FUN_001f1cf0();\n    }" if (parenthesized_expression "(local_40 == (int *)0x0)" ( (binary_expression "local_40 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      puStack_50 = (undefined1 *)0x1bcc44;\n      FUN_001f1cf0();\n    }" { comment (expression_statement "puStack_50 = (undefined1 *)0x1bcc44;" (assignment_expression "puStack_50 = (undefined1 *)0x1bcc44" identifier = (cast_expression "(undefined1 *)0x1bcc44" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "FUN_001f1cf0();" (call_expression "FUN_001f1cf0()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (*(char *)(iVar4 + 0x78) == '\0') {\n      piVar1 = *(int **)(iVar4 + 0x80);\n      if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        puStack_50 = &LAB_001bcc4b;\n        FUN_001f1cf0();\n      }\n                    /* try { // try from 001bcc22 to 001bcc4a has its CatchHandler @ 001bcc4b */\n      uVar3 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n      iVar2 = *param_1;\n      *(undefined4 *)(iVar4 + 0x74) = uVar3;\n      *(undefined1 *)(iVar4 + 0x78) = 1;\n      iVar4 = *(int *)(iVar2 + -0xc) + (int)param_1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(iVar4 + 0x74);\n    }" if (parenthesized_expression "(*(char *)(iVar4 + 0x78) == '\0')" ( (binary_expression "*(char *)(iVar4 + 0x78) == '\0'" (pointer_expression "*(char *)(iVar4 + 0x78)" * (cast_expression "(char *)(iVar4 + 0x78)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x78)" ( (binary_expression "iVar4 + 0x78" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      piVar1 = *(int **)(iVar4 + 0x80);\n      if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        puStack_50 = &LAB_001bcc4b;\n        FUN_001f1cf0();\n      }\n                    /* try { // try from 001bcc22 to 001bcc4a has its CatchHandler @ 001bcc4b */\n      uVar3 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n      iVar2 = *param_1;\n      *(undefined4 *)(iVar4 + 0x74) = uVar3;\n      *(undefined1 *)(iVar4 + 0x78) = 1;\n      iVar4 = *(int *)(iVar2 + -0xc) + (int)param_1;\n    }" { (expression_statement "piVar1 = *(int **)(iVar4 + 0x80);" (assignment_expression "piVar1 = *(int **)(iVar4 + 0x80)" identifier = (pointer_expression "*(int **)(iVar4 + 0x80)" * (cast_expression "(int **)(iVar4 + 0x80)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0x80)" ( (binary_expression "iVar4 + 0x80" identifier + number_literal) ))))) ;) (if_statement "if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        puStack_50 = &LAB_001bcc4b;\n        FUN_001f1cf0();\n      }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        puStack_50 = &LAB_001bcc4b;\n        FUN_001f1cf0();\n      }" { comment (expression_statement "puStack_50 = &LAB_001bcc4b;" (assignment_expression "puStack_50 = &LAB_001bcc4b" identifier = (pointer_expression "&LAB_001bcc4b" & identifier)) ;) (expression_statement "FUN_001f1cf0();" (call_expression "FUN_001f1cf0()" identifier (argument_list "()" ( ))) ;) })) comment (expression_statement "uVar3 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);" (assignment_expression "uVar3 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20)" identifier = (call_expression "(**(code **)(*piVar1 + 0x28))(piVar1,0x20)" (parenthesized_expression "(**(code **)(*piVar1 + 0x28))" ( (pointer_expression "**(code **)(*piVar1 + 0x28)" * (pointer_expression "*(code **)(*piVar1 + 0x28)" * (cast_expression "(code **)(*piVar1 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x28)" ( (binary_expression "*piVar1 + 0x28" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1,0x20)" ( identifier , number_literal )))) ;) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "*(undefined4 *)(iVar4 + 0x74) = uVar3;" (assignment_expression "*(undefined4 *)(iVar4 + 0x74) = uVar3" (pointer_expression "*(undefined4 *)(iVar4 + 0x74)" * (cast_expression "(undefined4 *)(iVar4 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x74)" ( (binary_expression "iVar4 + 0x74" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined1 *)(iVar4 + 0x78) = 1;" (assignment_expression "*(undefined1 *)(iVar4 + 0x78) = 1" (pointer_expression "*(undefined1 *)(iVar4 + 0x78)" * (cast_expression "(undefined1 *)(iVar4 + 0x78)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x78)" ( (binary_expression "iVar4 + 0x78" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar4 = *(int *)(iVar2 + -0xc) + (int)param_1;" (assignment_expression "iVar4 = *(int *)(iVar2 + -0xc) + (int)param_1" identifier = (binary_expression "*(int *)(iVar2 + -0xc) + (int)param_1" (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) }) (else_clause "else {\n      uVar3 = *(undefined4 *)(iVar4 + 0x74);\n    }" else (compound_statement "{\n      uVar3 = *(undefined4 *)(iVar4 + 0x74);\n    }" { (expression_statement "uVar3 = *(undefined4 *)(iVar4 + 0x74);" (assignment_expression "uVar3 = *(undefined4 *)(iVar4 + 0x74)" identifier = (pointer_expression "*(undefined4 *)(iVar4 + 0x74)" * (cast_expression "(undefined4 *)(iVar4 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x74)" ( (binary_expression "iVar4 + 0x74" identifier + number_literal) ))))) ;) }))) (expression_statement "local_3c = *(int *)(iVar4 + 0x7c);" (assignment_expression "local_3c = *(int *)(iVar4 + 0x7c)" identifier = (pointer_expression "*(int *)(iVar4 + 0x7c)" * (cast_expression "(int *)(iVar4 + 0x7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x7c)" ( (binary_expression "iVar4 + 0x7c" identifier + number_literal) ))))) ;) (expression_statement "local_38 = (uint)(local_3c == 0);" (assignment_expression "local_38 = (uint)(local_3c == 0)" identifier = (call_expression "(uint)(local_3c == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(local_3c == 0)" ( (binary_expression "local_3c == 0" identifier == number_literal) )))) ;) comment (expression_statement "(**(code **)(*local_40 + 0x10))(local_34,local_40,local_3c,local_38,iVar4,uVar3,param_2);" (call_expression "(**(code **)(*local_40 + 0x10))(local_34,local_40,local_3c,local_38,iVar4,uVar3,param_2)" (parenthesized_expression "(**(code **)(*local_40 + 0x10))" ( (pointer_expression "**(code **)(*local_40 + 0x10)" * (pointer_expression "*(code **)(*local_40 + 0x10)" * (cast_expression "(code **)(*local_40 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*local_40 + 0x10)" ( (binary_expression "*local_40 + 0x10" (pointer_expression "*local_40" * identifier) + number_literal) ))))) )) (argument_list "(local_34,local_40,local_3c,local_38,iVar4,uVar3,param_2)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier ))) ;) (expression_statement "ppuVar5 = &puStack_50;" (assignment_expression "ppuVar5 = &puStack_50" identifier = (pointer_expression "&puStack_50" & identifier)) ;) (if_statement "if (local_30 != '\0') {\n      iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    /* try { // try from 001bcbed to 001bcbf1 has its CatchHandler @ 001bcc4d */\n      FUN_001d6d60(iVar4,*(uint *)(iVar4 + 0x14) | 1);\n      ppuVar5 = &puStack_50;\n    }" if (parenthesized_expression "(local_30 != '\0')" ( (binary_expression "local_30 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    /* try { // try from 001bcbed to 001bcbf1 has its CatchHandler @ 001bcc4d */\n      FUN_001d6d60(iVar4,*(uint *)(iVar4 + 0x14) | 1);\n      ppuVar5 = &puStack_50;\n    }" { (expression_statement "iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1" identifier = (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) comment (expression_statement "FUN_001d6d60(iVar4,*(uint *)(iVar4 + 0x14) | 1);" (call_expression "FUN_001d6d60(iVar4,*(uint *)(iVar4 + 0x14) | 1)" identifier (argument_list "(iVar4,*(uint *)(iVar4 + 0x14) | 1)" ( identifier , (binary_expression "*(uint *)(iVar4 + 0x14) | 1" (pointer_expression "*(uint *)(iVar4 + 0x14)" * (cast_expression "(uint *)(iVar4 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x14)" ( (binary_expression "iVar4 + 0x14" identifier + number_literal) )))) | number_literal) ))) ;) (expression_statement "ppuVar5 = &puStack_50;" (assignment_expression "ppuVar5 = &puStack_50" identifier = (pointer_expression "&puStack_50" & identifier)) ;) })) })) (expression_statement "*(char **)((int)ppuVar5 + -0x10) = local_44;" (assignment_expression "*(char **)((int)ppuVar5 + -0x10) = local_44" (pointer_expression "*(char **)((int)ppuVar5 + -0x10)" * (cast_expression "(char **)((int)ppuVar5 + -0x10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)ppuVar5 + -0x10)" ( (binary_expression "(int)ppuVar5 + -0x10" (cast_expression "(int)ppuVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)ppuVar5 + -0x14) = 0x1bcc02;" (assignment_expression "*(undefined4 *)((int)ppuVar5 + -0x14) = 0x1bcc02" (pointer_expression "*(undefined4 *)((int)ppuVar5 + -0x14)" * (cast_expression "(undefined4 *)((int)ppuVar5 + -0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ppuVar5 + -0x14)" ( (binary_expression "(int)ppuVar5 + -0x14" (cast_expression "(int)ppuVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "FUN_001bbce0();" (call_expression "FUN_001bbce0()" identifier (argument_list "()" ( ))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* std::wostream& std::wostream::_M_insert<unsigned long>(unsigned long) */\n\nwostream * __thiscall std::wostream::_M_insert<unsigned_long>(wostream *this,ulong param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  wostream *pwVar4;\n  undefined1 **ppuVar5;\n  undefined1 *puStack_50;\n  undefined1 auStack_4c [8];\n  sentry *local_44;\n  int *local_40;\n  int local_3c;\n  uint local_38;\n  undefined1 local_34 [4];\n  char local_30;\n  sentry local_24 [20];\n  \n  __x86_get_pc_thunk_di();\n  local_44 = local_24;\n  sentry::sentry(local_44,this);\n  ppuVar5 = (undefined1 **)auStack_4c;\n  if (local_24[0] != (sentry)0x0) {\n    pwVar4 = this + *(int *)(*(int *)this + -0xc);\n    local_40 = *(int **)(pwVar4 + 0x84);\n    if (local_40 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      puStack_50 = (undefined1 *)0x1bcc44;\n      __throw_bad_cast();\n    }\n    if (pwVar4[0x78] == (wostream)0x0) {\n      piVar1 = *(int **)(pwVar4 + 0x80);\n      if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        puStack_50 = &LAB_001bcc4b;\n        __throw_bad_cast();\n      }\n                    /* try { // try from 001bcc22 to 001bcc4a has its CatchHandler @ 001bcc4b */\n      uVar3 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n      iVar2 = *(int *)this;\n      *(undefined4 *)(pwVar4 + 0x74) = uVar3;\n      pwVar4[0x78] = (wostream)0x1;\n      pwVar4 = this + *(int *)(iVar2 + -0xc);\n    }\n    else {\n      uVar3 = *(undefined4 *)(pwVar4 + 0x74);\n    }\n    local_3c = *(int *)(pwVar4 + 0x7c);\n    local_38 = (uint)(local_3c == 0);\n                    /* try { // try from 001bcbcd to 001bcbcf has its CatchHandler @ 001bcc4b */\n    (**(code **)(*local_40 + 0x10))(local_34,local_40,local_3c,local_38,pwVar4,uVar3,param_1);\n    ppuVar5 = &puStack_50;\n    if (local_30 != '\0') {\n                    /* try { // try from 001bcbed to 001bcbf1 has its CatchHandler @ 001bcc4d */\n      wios::clear((wios *)(this + *(int *)(*(int *)this + -0xc)),\n                  *(_Ios_Iostate *)((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) |\n                  _S_badbit);\n      ppuVar5 = &puStack_50;\n    }\n  }\n  *(sentry **)((int)ppuVar5 + -0x10) = local_44;\n  *(undefined4 *)((int)ppuVar5 + -0x14) = 0x1bcc02;\n  sentry::~sentry(*(sentry **)((int)ppuVar5 + -0x10));\n  return this;\n}\n\n" comment (ERROR "wostream * __thiscall std::wostream::_M_insert<unsigned_long>(wostream *this,ulong param_1)" (binary_expression "wostream * __thiscall std::wostream::_M_insert<unsigned_long>(wostream *this,ulong param_1)" (binary_expression "wostream * __thiscall std::wostream::_M_insert<unsigned_long" (binary_expression "wostream * __thiscall" identifier * identifier) (ERROR "std::wostream::_M_insert" identifier : : identifier : : identifier) < identifier) > (parenthesized_expression "(wostream *this,ulong param_1)" ( (comma_expression "wostream *this,ulong param_1" (binary_expression "wostream *this" identifier * identifier) , (ERROR "ulong" identifier) identifier) )))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  wostream *pwVar4;\n  undefined1 **ppuVar5;\n  undefined1 *puStack_50;\n  undefined1 auStack_4c [8];\n  sentry *local_44;\n  int *local_40;\n  int local_3c;\n  uint local_38;\n  undefined1 local_34 [4];\n  char local_30;\n  sentry local_24 [20];\n  \n  __x86_get_pc_thunk_di();\n  local_44 = local_24;\n  sentry::sentry(local_44,this);\n  ppuVar5 = (undefined1 **)auStack_4c;\n  if (local_24[0] != (sentry)0x0) {\n    pwVar4 = this + *(int *)(*(int *)this + -0xc);\n    local_40 = *(int **)(pwVar4 + 0x84);\n    if (local_40 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      puStack_50 = (undefined1 *)0x1bcc44;\n      __throw_bad_cast();\n    }\n    if (pwVar4[0x78] == (wostream)0x0) {\n      piVar1 = *(int **)(pwVar4 + 0x80);\n      if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        puStack_50 = &LAB_001bcc4b;\n        __throw_bad_cast();\n      }\n                    /* try { // try from 001bcc22 to 001bcc4a has its CatchHandler @ 001bcc4b */\n      uVar3 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n      iVar2 = *(int *)this;\n      *(undefined4 *)(pwVar4 + 0x74) = uVar3;\n      pwVar4[0x78] = (wostream)0x1;\n      pwVar4 = this + *(int *)(iVar2 + -0xc);\n    }\n    else {\n      uVar3 = *(undefined4 *)(pwVar4 + 0x74);\n    }\n    local_3c = *(int *)(pwVar4 + 0x7c);\n    local_38 = (uint)(local_3c == 0);\n                    /* try { // try from 001bcbcd to 001bcbcf has its CatchHandler @ 001bcc4b */\n    (**(code **)(*local_40 + 0x10))(local_34,local_40,local_3c,local_38,pwVar4,uVar3,param_1);\n    ppuVar5 = &puStack_50;\n    if (local_30 != '\0') {\n                    /* try { // try from 001bcbed to 001bcbf1 has its CatchHandler @ 001bcc4d */\n      wios::clear((wios *)(this + *(int *)(*(int *)this + -0xc)),\n                  *(_Ios_Iostate *)((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) |\n                  _S_badbit);\n      ppuVar5 = &puStack_50;\n    }\n  }\n  *(sentry **)((int)ppuVar5 + -0x10) = local_44;\n  *(undefined4 *)((int)ppuVar5 + -0x14) = 0x1bcc02;\n  sentry::~sentry(*(sentry **)((int)ppuVar5 + -0x10));\n  return this;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "wostream *pwVar4;" type_identifier (pointer_declarator "*pwVar4" * identifier) ;) (declaration "undefined1 **ppuVar5;" type_identifier (pointer_declarator "**ppuVar5" * (pointer_declarator "*ppuVar5" * identifier)) ;) (declaration "undefined1 *puStack_50;" type_identifier (pointer_declarator "*puStack_50" * identifier) ;) (declaration "undefined1 auStack_4c [8];" type_identifier (array_declarator "auStack_4c [8]" identifier [ number_literal ]) ;) (declaration "sentry *local_44;" type_identifier (pointer_declarator "*local_44" * identifier) ;) (declaration "int *local_40;" primitive_type (pointer_declarator "*local_40" * identifier) ;) (declaration "int local_3c;" primitive_type identifier ;) (declaration "uint local_38;" type_identifier identifier ;) (declaration "undefined1 local_34 [4];" type_identifier (array_declarator "local_34 [4]" identifier [ number_literal ]) ;) (declaration "char local_30;" primitive_type identifier ;) (declaration "sentry local_24 [20];" type_identifier (array_declarator "local_24 [20]" identifier [ number_literal ]) ;) (expression_statement "__x86_get_pc_thunk_di();" (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_44 = local_24;" (assignment_expression "local_44 = local_24" identifier = identifier) ;) (labeled_statement "sentry::sentry(local_44,this);" statement_identifier : (ERROR ":" :) (expression_statement "sentry(local_44,this);" (call_expression "sentry(local_44,this)" identifier (argument_list "(local_44,this)" ( identifier , identifier ))) ;)) (expression_statement "ppuVar5 = (undefined1 **)auStack_4c;" (assignment_expression "ppuVar5 = (undefined1 **)auStack_4c" identifier = (cast_expression "(undefined1 **)auStack_4c" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ;) (if_statement "if (local_24[0] != (sentry)0x0) {\n    pwVar4 = this + *(int *)(*(int *)this + -0xc);\n    local_40 = *(int **)(pwVar4 + 0x84);\n    if (local_40 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      puStack_50 = (undefined1 *)0x1bcc44;\n      __throw_bad_cast();\n    }\n    if (pwVar4[0x78] == (wostream)0x0) {\n      piVar1 = *(int **)(pwVar4 + 0x80);\n      if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        puStack_50 = &LAB_001bcc4b;\n        __throw_bad_cast();\n      }\n                    /* try { // try from 001bcc22 to 001bcc4a has its CatchHandler @ 001bcc4b */\n      uVar3 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n      iVar2 = *(int *)this;\n      *(undefined4 *)(pwVar4 + 0x74) = uVar3;\n      pwVar4[0x78] = (wostream)0x1;\n      pwVar4 = this + *(int *)(iVar2 + -0xc);\n    }\n    else {\n      uVar3 = *(undefined4 *)(pwVar4 + 0x74);\n    }\n    local_3c = *(int *)(pwVar4 + 0x7c);\n    local_38 = (uint)(local_3c == 0);\n                    /* try { // try from 001bcbcd to 001bcbcf has its CatchHandler @ 001bcc4b */\n    (**(code **)(*local_40 + 0x10))(local_34,local_40,local_3c,local_38,pwVar4,uVar3,param_1);\n    ppuVar5 = &puStack_50;\n    if (local_30 != '\0') {\n                    /* try { // try from 001bcbed to 001bcbf1 has its CatchHandler @ 001bcc4d */\n      wios::clear((wios *)(this + *(int *)(*(int *)this + -0xc)),\n                  *(_Ios_Iostate *)((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) |\n                  _S_badbit);\n      ppuVar5 = &puStack_50;\n    }\n  }" if (parenthesized_expression "(local_24[0] != (sentry)0x0)" ( (binary_expression "local_24[0] != (sentry)0x0" (subscript_expression "local_24[0]" identifier [ number_literal ]) != (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (compound_statement "{\n    pwVar4 = this + *(int *)(*(int *)this + -0xc);\n    local_40 = *(int **)(pwVar4 + 0x84);\n    if (local_40 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      puStack_50 = (undefined1 *)0x1bcc44;\n      __throw_bad_cast();\n    }\n    if (pwVar4[0x78] == (wostream)0x0) {\n      piVar1 = *(int **)(pwVar4 + 0x80);\n      if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        puStack_50 = &LAB_001bcc4b;\n        __throw_bad_cast();\n      }\n                    /* try { // try from 001bcc22 to 001bcc4a has its CatchHandler @ 001bcc4b */\n      uVar3 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n      iVar2 = *(int *)this;\n      *(undefined4 *)(pwVar4 + 0x74) = uVar3;\n      pwVar4[0x78] = (wostream)0x1;\n      pwVar4 = this + *(int *)(iVar2 + -0xc);\n    }\n    else {\n      uVar3 = *(undefined4 *)(pwVar4 + 0x74);\n    }\n    local_3c = *(int *)(pwVar4 + 0x7c);\n    local_38 = (uint)(local_3c == 0);\n                    /* try { // try from 001bcbcd to 001bcbcf has its CatchHandler @ 001bcc4b */\n    (**(code **)(*local_40 + 0x10))(local_34,local_40,local_3c,local_38,pwVar4,uVar3,param_1);\n    ppuVar5 = &puStack_50;\n    if (local_30 != '\0') {\n                    /* try { // try from 001bcbed to 001bcbf1 has its CatchHandler @ 001bcc4d */\n      wios::clear((wios *)(this + *(int *)(*(int *)this + -0xc)),\n                  *(_Ios_Iostate *)((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) |\n                  _S_badbit);\n      ppuVar5 = &puStack_50;\n    }\n  }" { (expression_statement "pwVar4 = this + *(int *)(*(int *)this + -0xc);" (assignment_expression "pwVar4 = this + *(int *)(*(int *)this + -0xc)" identifier = (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))))) ;) (expression_statement "local_40 = *(int **)(pwVar4 + 0x84);" (assignment_expression "local_40 = *(int **)(pwVar4 + 0x84)" identifier = (pointer_expression "*(int **)(pwVar4 + 0x84)" * (cast_expression "(int **)(pwVar4 + 0x84)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pwVar4 + 0x84)" ( (binary_expression "pwVar4 + 0x84" identifier + number_literal) ))))) ;) (if_statement "if (local_40 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      puStack_50 = (undefined1 *)0x1bcc44;\n      __throw_bad_cast();\n    }" if (parenthesized_expression "(local_40 == (int *)0x0)" ( (binary_expression "local_40 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      puStack_50 = (undefined1 *)0x1bcc44;\n      __throw_bad_cast();\n    }" { comment (expression_statement "puStack_50 = (undefined1 *)0x1bcc44;" (assignment_expression "puStack_50 = (undefined1 *)0x1bcc44" identifier = (cast_expression "(undefined1 *)0x1bcc44" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "__throw_bad_cast();" (call_expression "__throw_bad_cast()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (pwVar4[0x78] == (wostream)0x0) {\n      piVar1 = *(int **)(pwVar4 + 0x80);\n      if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        puStack_50 = &LAB_001bcc4b;\n        __throw_bad_cast();\n      }\n                    /* try { // try from 001bcc22 to 001bcc4a has its CatchHandler @ 001bcc4b */\n      uVar3 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n      iVar2 = *(int *)this;\n      *(undefined4 *)(pwVar4 + 0x74) = uVar3;\n      pwVar4[0x78] = (wostream)0x1;\n      pwVar4 = this + *(int *)(iVar2 + -0xc);\n    }\n    else {\n      uVar3 = *(undefined4 *)(pwVar4 + 0x74);\n    }" if (parenthesized_expression "(pwVar4[0x78] == (wostream)0x0)" ( (binary_expression "pwVar4[0x78] == (wostream)0x0" (subscript_expression "pwVar4[0x78]" identifier [ number_literal ]) == (cast_expression "(wostream)0x0" ( (type_descriptor "wostream" type_identifier) ) number_literal)) )) (compound_statement "{\n      piVar1 = *(int **)(pwVar4 + 0x80);\n      if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        puStack_50 = &LAB_001bcc4b;\n        __throw_bad_cast();\n      }\n                    /* try { // try from 001bcc22 to 001bcc4a has its CatchHandler @ 001bcc4b */\n      uVar3 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n      iVar2 = *(int *)this;\n      *(undefined4 *)(pwVar4 + 0x74) = uVar3;\n      pwVar4[0x78] = (wostream)0x1;\n      pwVar4 = this + *(int *)(iVar2 + -0xc);\n    }" { (expression_statement "piVar1 = *(int **)(pwVar4 + 0x80);" (assignment_expression "piVar1 = *(int **)(pwVar4 + 0x80)" identifier = (pointer_expression "*(int **)(pwVar4 + 0x80)" * (cast_expression "(int **)(pwVar4 + 0x80)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pwVar4 + 0x80)" ( (binary_expression "pwVar4 + 0x80" identifier + number_literal) ))))) ;) (if_statement "if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        puStack_50 = &LAB_001bcc4b;\n        __throw_bad_cast();\n      }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        puStack_50 = &LAB_001bcc4b;\n        __throw_bad_cast();\n      }" { comment (expression_statement "puStack_50 = &LAB_001bcc4b;" (assignment_expression "puStack_50 = &LAB_001bcc4b" identifier = (pointer_expression "&LAB_001bcc4b" & identifier)) ;) (expression_statement "__throw_bad_cast();" (call_expression "__throw_bad_cast()" identifier (argument_list "()" ( ))) ;) })) comment (expression_statement "uVar3 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);" (assignment_expression "uVar3 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20)" identifier = (call_expression "(**(code **)(*piVar1 + 0x28))(piVar1,0x20)" (parenthesized_expression "(**(code **)(*piVar1 + 0x28))" ( (pointer_expression "**(code **)(*piVar1 + 0x28)" * (pointer_expression "*(code **)(*piVar1 + 0x28)" * (cast_expression "(code **)(*piVar1 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x28)" ( (binary_expression "*piVar1 + 0x28" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1,0x20)" ( identifier , number_literal )))) ;) (expression_statement "iVar2 = *(int *)this;" (assignment_expression "iVar2 = *(int *)this" identifier = (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(undefined4 *)(pwVar4 + 0x74) = uVar3;" (assignment_expression "*(undefined4 *)(pwVar4 + 0x74) = uVar3" (pointer_expression "*(undefined4 *)(pwVar4 + 0x74)" * (cast_expression "(undefined4 *)(pwVar4 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar4 + 0x74)" ( (binary_expression "pwVar4 + 0x74" identifier + number_literal) )))) = identifier) ;) (expression_statement "pwVar4[0x78] = (wostream)0x1;" (assignment_expression "pwVar4[0x78] = (wostream)0x1" (subscript_expression "pwVar4[0x78]" identifier [ number_literal ]) = (cast_expression "(wostream)0x1" ( (type_descriptor "wostream" type_identifier) ) number_literal)) ;) (expression_statement "pwVar4 = this + *(int *)(iVar2 + -0xc);" (assignment_expression "pwVar4 = this + *(int *)(iVar2 + -0xc)" identifier = (binary_expression "this + *(int *)(iVar2 + -0xc)" identifier + (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) )))))) ;) }) (else_clause "else {\n      uVar3 = *(undefined4 *)(pwVar4 + 0x74);\n    }" else (compound_statement "{\n      uVar3 = *(undefined4 *)(pwVar4 + 0x74);\n    }" { (expression_statement "uVar3 = *(undefined4 *)(pwVar4 + 0x74);" (assignment_expression "uVar3 = *(undefined4 *)(pwVar4 + 0x74)" identifier = (pointer_expression "*(undefined4 *)(pwVar4 + 0x74)" * (cast_expression "(undefined4 *)(pwVar4 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar4 + 0x74)" ( (binary_expression "pwVar4 + 0x74" identifier + number_literal) ))))) ;) }))) (expression_statement "local_3c = *(int *)(pwVar4 + 0x7c);" (assignment_expression "local_3c = *(int *)(pwVar4 + 0x7c)" identifier = (pointer_expression "*(int *)(pwVar4 + 0x7c)" * (cast_expression "(int *)(pwVar4 + 0x7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar4 + 0x7c)" ( (binary_expression "pwVar4 + 0x7c" identifier + number_literal) ))))) ;) (expression_statement "local_38 = (uint)(local_3c == 0);" (assignment_expression "local_38 = (uint)(local_3c == 0)" identifier = (call_expression "(uint)(local_3c == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(local_3c == 0)" ( (binary_expression "local_3c == 0" identifier == number_literal) )))) ;) comment (expression_statement "(**(code **)(*local_40 + 0x10))(local_34,local_40,local_3c,local_38,pwVar4,uVar3,param_1);" (call_expression "(**(code **)(*local_40 + 0x10))(local_34,local_40,local_3c,local_38,pwVar4,uVar3,param_1)" (parenthesized_expression "(**(code **)(*local_40 + 0x10))" ( (pointer_expression "**(code **)(*local_40 + 0x10)" * (pointer_expression "*(code **)(*local_40 + 0x10)" * (cast_expression "(code **)(*local_40 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*local_40 + 0x10)" ( (binary_expression "*local_40 + 0x10" (pointer_expression "*local_40" * identifier) + number_literal) ))))) )) (argument_list "(local_34,local_40,local_3c,local_38,pwVar4,uVar3,param_1)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier ))) ;) (expression_statement "ppuVar5 = &puStack_50;" (assignment_expression "ppuVar5 = &puStack_50" identifier = (pointer_expression "&puStack_50" & identifier)) ;) (if_statement "if (local_30 != '\0') {\n                    /* try { // try from 001bcbed to 001bcbf1 has its CatchHandler @ 001bcc4d */\n      wios::clear((wios *)(this + *(int *)(*(int *)this + -0xc)),\n                  *(_Ios_Iostate *)((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) |\n                  _S_badbit);\n      ppuVar5 = &puStack_50;\n    }" if (parenthesized_expression "(local_30 != '\0')" ( (binary_expression "local_30 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                    /* try { // try from 001bcbed to 001bcbf1 has its CatchHandler @ 001bcc4d */\n      wios::clear((wios *)(this + *(int *)(*(int *)this + -0xc)),\n                  *(_Ios_Iostate *)((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) |\n                  _S_badbit);\n      ppuVar5 = &puStack_50;\n    }" { comment (labeled_statement "wios::clear((wios *)(this + *(int *)(*(int *)this + -0xc)),\n                  *(_Ios_Iostate *)((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) |\n                  _S_badbit);" statement_identifier : (ERROR ":" :) (expression_statement "clear((wios *)(this + *(int *)(*(int *)this + -0xc)),\n                  *(_Ios_Iostate *)((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) |\n                  _S_badbit);" (call_expression "clear((wios *)(this + *(int *)(*(int *)this + -0xc)),\n                  *(_Ios_Iostate *)((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) |\n                  _S_badbit)" identifier (argument_list "((wios *)(this + *(int *)(*(int *)this + -0xc)),\n                  *(_Ios_Iostate *)((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) |\n                  _S_badbit)" ( (cast_expression "(wios *)(this + *(int *)(*(int *)this + -0xc))" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc))" ( (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) , (binary_expression "*(_Ios_Iostate *)((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) |\n                  _S_badbit" (pointer_expression "*(_Ios_Iostate *)((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14)" * (cast_expression "(_Ios_Iostate *)((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14)" ( (binary_expression "(wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14" (cast_expression "(wios *)(this + *(int *)(*(int *)this + -0xc))" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc))" ( (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) + number_literal) )))) | identifier) ))) ;)) (expression_statement "ppuVar5 = &puStack_50;" (assignment_expression "ppuVar5 = &puStack_50" identifier = (pointer_expression "&puStack_50" & identifier)) ;) })) })) (expression_statement "*(sentry **)((int)ppuVar5 + -0x10) = local_44;" (assignment_expression "*(sentry **)((int)ppuVar5 + -0x10) = local_44" (pointer_expression "*(sentry **)((int)ppuVar5 + -0x10)" * (cast_expression "(sentry **)((int)ppuVar5 + -0x10)" ( (type_descriptor "sentry **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)ppuVar5 + -0x10)" ( (binary_expression "(int)ppuVar5 + -0x10" (cast_expression "(int)ppuVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)ppuVar5 + -0x14) = 0x1bcc02;" (assignment_expression "*(undefined4 *)((int)ppuVar5 + -0x14) = 0x1bcc02" (pointer_expression "*(undefined4 *)((int)ppuVar5 + -0x14)" * (cast_expression "(undefined4 *)((int)ppuVar5 + -0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ppuVar5 + -0x14)" ( (binary_expression "(int)ppuVar5 + -0x14" (cast_expression "(int)ppuVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (labeled_statement "sentry::~sentry(*(sentry **)((int)ppuVar5 + -0x10));" statement_identifier : (ERROR ":" :) (expression_statement "~sentry(*(sentry **)((int)ppuVar5 + -0x10));" (unary_expression "~sentry(*(sentry **)((int)ppuVar5 + -0x10))" ~ (call_expression "sentry(*(sentry **)((int)ppuVar5 + -0x10))" identifier (argument_list "(*(sentry **)((int)ppuVar5 + -0x10))" ( (pointer_expression "*(sentry **)((int)ppuVar5 + -0x10)" * (cast_expression "(sentry **)((int)ppuVar5 + -0x10)" ( (type_descriptor "sentry **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)ppuVar5 + -0x10)" ( (binary_expression "(int)ppuVar5 + -0x10" (cast_expression "(int)ppuVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) )))) ;)) (return_statement "return this;" return identifier ;) }))
(translation_unit "int * FUN_001bcb50(int *param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined1 **ppuVar5;\n  undefined1 *puStack_50;\n  undefined1 auStack_4c [8];\n  char *local_44;\n  int *local_40;\n  int local_3c;\n  uint local_38;\n  undefined1 local_34 [4];\n  char local_30;\n  char local_24 [20];\n  \n  FUN_00058c4a();\n  local_44 = local_24;\n  FUN_001bbc60(local_44,param_1);\n  ppuVar5 = (undefined1 **)auStack_4c;\n  if (local_24[0] != '\0') {\n    iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    local_40 = *(int **)(iVar4 + 0x84);\n    if (local_40 == (int *)0x0) {\n                    \n      puStack_50 = (undefined1 *)0x1bcc44;\n      FUN_001f1cf0();\n    }\n    if (*(char *)(iVar4 + 0x78) == '\0') {\n      piVar1 = *(int **)(iVar4 + 0x80);\n      if (piVar1 == (int *)0x0) {\n                    \n        puStack_50 = &LAB_001bcc4b;\n        FUN_001f1cf0();\n      }\n                    \n      uVar3 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n      iVar2 = *param_1;\n      *(undefined4 *)(iVar4 + 0x74) = uVar3;\n      *(undefined1 *)(iVar4 + 0x78) = 1;\n      iVar4 = *(int *)(iVar2 + -0xc) + (int)param_1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(iVar4 + 0x74);\n    }\n    local_3c = *(int *)(iVar4 + 0x7c);\n    local_38 = (uint)(local_3c == 0);\n                    \n    (**(code **)(*local_40 + 0x10))(local_34,local_40,local_3c,local_38,iVar4,uVar3,param_2);\n    ppuVar5 = &puStack_50;\n    if (local_30 != '\0') {\n      iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    \n      FUN_001d6d60(iVar4,*(uint *)(iVar4 + 0x14) | 1);\n      ppuVar5 = &puStack_50;\n    }\n  }\n  *(char **)((int)ppuVar5 + -0x10) = local_44;\n  *(undefined4 *)((int)ppuVar5 + -0x14) = 0x1bcc02;\n  FUN_001bbce0();\n  return param_1;\n}\n\n" (function_definition "int * FUN_001bcb50(int *param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined1 **ppuVar5;\n  undefined1 *puStack_50;\n  undefined1 auStack_4c [8];\n  char *local_44;\n  int *local_40;\n  int local_3c;\n  uint local_38;\n  undefined1 local_34 [4];\n  char local_30;\n  char local_24 [20];\n  \n  FUN_00058c4a();\n  local_44 = local_24;\n  FUN_001bbc60(local_44,param_1);\n  ppuVar5 = (undefined1 **)auStack_4c;\n  if (local_24[0] != '\0') {\n    iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    local_40 = *(int **)(iVar4 + 0x84);\n    if (local_40 == (int *)0x0) {\n                    \n      puStack_50 = (undefined1 *)0x1bcc44;\n      FUN_001f1cf0();\n    }\n    if (*(char *)(iVar4 + 0x78) == '\0') {\n      piVar1 = *(int **)(iVar4 + 0x80);\n      if (piVar1 == (int *)0x0) {\n                    \n        puStack_50 = &LAB_001bcc4b;\n        FUN_001f1cf0();\n      }\n                    \n      uVar3 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n      iVar2 = *param_1;\n      *(undefined4 *)(iVar4 + 0x74) = uVar3;\n      *(undefined1 *)(iVar4 + 0x78) = 1;\n      iVar4 = *(int *)(iVar2 + -0xc) + (int)param_1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(iVar4 + 0x74);\n    }\n    local_3c = *(int *)(iVar4 + 0x7c);\n    local_38 = (uint)(local_3c == 0);\n                    \n    (**(code **)(*local_40 + 0x10))(local_34,local_40,local_3c,local_38,iVar4,uVar3,param_2);\n    ppuVar5 = &puStack_50;\n    if (local_30 != '\0') {\n      iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    \n      FUN_001d6d60(iVar4,*(uint *)(iVar4 + 0x14) | 1);\n      ppuVar5 = &puStack_50;\n    }\n  }\n  *(char **)((int)ppuVar5 + -0x10) = local_44;\n  *(undefined4 *)((int)ppuVar5 + -0x14) = 0x1bcc02;\n  FUN_001bbce0();\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_001bcb50(int *param_1,undefined4 param_2)" * (function_declarator "FUN_001bcb50(int *param_1,undefined4 param_2)" identifier (parameter_list "(int *param_1,undefined4 param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) )))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined1 **ppuVar5;\n  undefined1 *puStack_50;\n  undefined1 auStack_4c [8];\n  char *local_44;\n  int *local_40;\n  int local_3c;\n  uint local_38;\n  undefined1 local_34 [4];\n  char local_30;\n  char local_24 [20];\n  \n  FUN_00058c4a();\n  local_44 = local_24;\n  FUN_001bbc60(local_44,param_1);\n  ppuVar5 = (undefined1 **)auStack_4c;\n  if (local_24[0] != '\0') {\n    iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    local_40 = *(int **)(iVar4 + 0x84);\n    if (local_40 == (int *)0x0) {\n                    \n      puStack_50 = (undefined1 *)0x1bcc44;\n      FUN_001f1cf0();\n    }\n    if (*(char *)(iVar4 + 0x78) == '\0') {\n      piVar1 = *(int **)(iVar4 + 0x80);\n      if (piVar1 == (int *)0x0) {\n                    \n        puStack_50 = &LAB_001bcc4b;\n        FUN_001f1cf0();\n      }\n                    \n      uVar3 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n      iVar2 = *param_1;\n      *(undefined4 *)(iVar4 + 0x74) = uVar3;\n      *(undefined1 *)(iVar4 + 0x78) = 1;\n      iVar4 = *(int *)(iVar2 + -0xc) + (int)param_1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(iVar4 + 0x74);\n    }\n    local_3c = *(int *)(iVar4 + 0x7c);\n    local_38 = (uint)(local_3c == 0);\n                    \n    (**(code **)(*local_40 + 0x10))(local_34,local_40,local_3c,local_38,iVar4,uVar3,param_2);\n    ppuVar5 = &puStack_50;\n    if (local_30 != '\0') {\n      iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    \n      FUN_001d6d60(iVar4,*(uint *)(iVar4 + 0x14) | 1);\n      ppuVar5 = &puStack_50;\n    }\n  }\n  *(char **)((int)ppuVar5 + -0x10) = local_44;\n  *(undefined4 *)((int)ppuVar5 + -0x14) = 0x1bcc02;\n  FUN_001bbce0();\n  return param_1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined1 **ppuVar5;" type_identifier (pointer_declarator "**ppuVar5" * (pointer_declarator "*ppuVar5" * identifier)) ;) (declaration "undefined1 *puStack_50;" type_identifier (pointer_declarator "*puStack_50" * identifier) ;) (declaration "undefined1 auStack_4c [8];" type_identifier (array_declarator "auStack_4c [8]" identifier [ number_literal ]) ;) (declaration "char *local_44;" primitive_type (pointer_declarator "*local_44" * identifier) ;) (declaration "int *local_40;" primitive_type (pointer_declarator "*local_40" * identifier) ;) (declaration "int local_3c;" primitive_type identifier ;) (declaration "uint local_38;" type_identifier identifier ;) (declaration "undefined1 local_34 [4];" type_identifier (array_declarator "local_34 [4]" identifier [ number_literal ]) ;) (declaration "char local_30;" primitive_type identifier ;) (declaration "char local_24 [20];" primitive_type (array_declarator "local_24 [20]" identifier [ number_literal ]) ;) (expression_statement "FUN_00058c4a();" (call_expression "FUN_00058c4a()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_44 = local_24;" (assignment_expression "local_44 = local_24" identifier = identifier) ;) (expression_statement "FUN_001bbc60(local_44,param_1);" (call_expression "FUN_001bbc60(local_44,param_1)" identifier (argument_list "(local_44,param_1)" ( identifier , identifier ))) ;) (expression_statement "ppuVar5 = (undefined1 **)auStack_4c;" (assignment_expression "ppuVar5 = (undefined1 **)auStack_4c" identifier = (cast_expression "(undefined1 **)auStack_4c" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ;) (if_statement "if (local_24[0] != '\0') {\n    iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    local_40 = *(int **)(iVar4 + 0x84);\n    if (local_40 == (int *)0x0) {\n                    \n      puStack_50 = (undefined1 *)0x1bcc44;\n      FUN_001f1cf0();\n    }\n    if (*(char *)(iVar4 + 0x78) == '\0') {\n      piVar1 = *(int **)(iVar4 + 0x80);\n      if (piVar1 == (int *)0x0) {\n                    \n        puStack_50 = &LAB_001bcc4b;\n        FUN_001f1cf0();\n      }\n                    \n      uVar3 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n      iVar2 = *param_1;\n      *(undefined4 *)(iVar4 + 0x74) = uVar3;\n      *(undefined1 *)(iVar4 + 0x78) = 1;\n      iVar4 = *(int *)(iVar2 + -0xc) + (int)param_1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(iVar4 + 0x74);\n    }\n    local_3c = *(int *)(iVar4 + 0x7c);\n    local_38 = (uint)(local_3c == 0);\n                    \n    (**(code **)(*local_40 + 0x10))(local_34,local_40,local_3c,local_38,iVar4,uVar3,param_2);\n    ppuVar5 = &puStack_50;\n    if (local_30 != '\0') {\n      iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    \n      FUN_001d6d60(iVar4,*(uint *)(iVar4 + 0x14) | 1);\n      ppuVar5 = &puStack_50;\n    }\n  }" if (parenthesized_expression "(local_24[0] != '\0')" ( (binary_expression "local_24[0] != '\0'" (subscript_expression "local_24[0]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    local_40 = *(int **)(iVar4 + 0x84);\n    if (local_40 == (int *)0x0) {\n                    \n      puStack_50 = (undefined1 *)0x1bcc44;\n      FUN_001f1cf0();\n    }\n    if (*(char *)(iVar4 + 0x78) == '\0') {\n      piVar1 = *(int **)(iVar4 + 0x80);\n      if (piVar1 == (int *)0x0) {\n                    \n        puStack_50 = &LAB_001bcc4b;\n        FUN_001f1cf0();\n      }\n                    \n      uVar3 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n      iVar2 = *param_1;\n      *(undefined4 *)(iVar4 + 0x74) = uVar3;\n      *(undefined1 *)(iVar4 + 0x78) = 1;\n      iVar4 = *(int *)(iVar2 + -0xc) + (int)param_1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(iVar4 + 0x74);\n    }\n    local_3c = *(int *)(iVar4 + 0x7c);\n    local_38 = (uint)(local_3c == 0);\n                    \n    (**(code **)(*local_40 + 0x10))(local_34,local_40,local_3c,local_38,iVar4,uVar3,param_2);\n    ppuVar5 = &puStack_50;\n    if (local_30 != '\0') {\n      iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    \n      FUN_001d6d60(iVar4,*(uint *)(iVar4 + 0x14) | 1);\n      ppuVar5 = &puStack_50;\n    }\n  }" { (expression_statement "iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1" identifier = (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "local_40 = *(int **)(iVar4 + 0x84);" (assignment_expression "local_40 = *(int **)(iVar4 + 0x84)" identifier = (pointer_expression "*(int **)(iVar4 + 0x84)" * (cast_expression "(int **)(iVar4 + 0x84)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0x84)" ( (binary_expression "iVar4 + 0x84" identifier + number_literal) ))))) ;) (if_statement "if (local_40 == (int *)0x0) {\n                    \n      puStack_50 = (undefined1 *)0x1bcc44;\n      FUN_001f1cf0();\n    }" if (parenthesized_expression "(local_40 == (int *)0x0)" ( (binary_expression "local_40 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n      puStack_50 = (undefined1 *)0x1bcc44;\n      FUN_001f1cf0();\n    }" { (expression_statement "puStack_50 = (undefined1 *)0x1bcc44;" (assignment_expression "puStack_50 = (undefined1 *)0x1bcc44" identifier = (cast_expression "(undefined1 *)0x1bcc44" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "FUN_001f1cf0();" (call_expression "FUN_001f1cf0()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (*(char *)(iVar4 + 0x78) == '\0') {\n      piVar1 = *(int **)(iVar4 + 0x80);\n      if (piVar1 == (int *)0x0) {\n                    \n        puStack_50 = &LAB_001bcc4b;\n        FUN_001f1cf0();\n      }\n                    \n      uVar3 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n      iVar2 = *param_1;\n      *(undefined4 *)(iVar4 + 0x74) = uVar3;\n      *(undefined1 *)(iVar4 + 0x78) = 1;\n      iVar4 = *(int *)(iVar2 + -0xc) + (int)param_1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(iVar4 + 0x74);\n    }" if (parenthesized_expression "(*(char *)(iVar4 + 0x78) == '\0')" ( (binary_expression "*(char *)(iVar4 + 0x78) == '\0'" (pointer_expression "*(char *)(iVar4 + 0x78)" * (cast_expression "(char *)(iVar4 + 0x78)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x78)" ( (binary_expression "iVar4 + 0x78" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      piVar1 = *(int **)(iVar4 + 0x80);\n      if (piVar1 == (int *)0x0) {\n                    \n        puStack_50 = &LAB_001bcc4b;\n        FUN_001f1cf0();\n      }\n                    \n      uVar3 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n      iVar2 = *param_1;\n      *(undefined4 *)(iVar4 + 0x74) = uVar3;\n      *(undefined1 *)(iVar4 + 0x78) = 1;\n      iVar4 = *(int *)(iVar2 + -0xc) + (int)param_1;\n    }" { (expression_statement "piVar1 = *(int **)(iVar4 + 0x80);" (assignment_expression "piVar1 = *(int **)(iVar4 + 0x80)" identifier = (pointer_expression "*(int **)(iVar4 + 0x80)" * (cast_expression "(int **)(iVar4 + 0x80)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0x80)" ( (binary_expression "iVar4 + 0x80" identifier + number_literal) ))))) ;) (if_statement "if (piVar1 == (int *)0x0) {\n                    \n        puStack_50 = &LAB_001bcc4b;\n        FUN_001f1cf0();\n      }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n        puStack_50 = &LAB_001bcc4b;\n        FUN_001f1cf0();\n      }" { (expression_statement "puStack_50 = &LAB_001bcc4b;" (assignment_expression "puStack_50 = &LAB_001bcc4b" identifier = (pointer_expression "&LAB_001bcc4b" & identifier)) ;) (expression_statement "FUN_001f1cf0();" (call_expression "FUN_001f1cf0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "uVar3 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);" (assignment_expression "uVar3 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20)" identifier = (call_expression "(**(code **)(*piVar1 + 0x28))(piVar1,0x20)" (parenthesized_expression "(**(code **)(*piVar1 + 0x28))" ( (pointer_expression "**(code **)(*piVar1 + 0x28)" * (pointer_expression "*(code **)(*piVar1 + 0x28)" * (cast_expression "(code **)(*piVar1 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x28)" ( (binary_expression "*piVar1 + 0x28" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1,0x20)" ( identifier , number_literal )))) ;) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "*(undefined4 *)(iVar4 + 0x74) = uVar3;" (assignment_expression "*(undefined4 *)(iVar4 + 0x74) = uVar3" (pointer_expression "*(undefined4 *)(iVar4 + 0x74)" * (cast_expression "(undefined4 *)(iVar4 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x74)" ( (binary_expression "iVar4 + 0x74" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined1 *)(iVar4 + 0x78) = 1;" (assignment_expression "*(undefined1 *)(iVar4 + 0x78) = 1" (pointer_expression "*(undefined1 *)(iVar4 + 0x78)" * (cast_expression "(undefined1 *)(iVar4 + 0x78)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x78)" ( (binary_expression "iVar4 + 0x78" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar4 = *(int *)(iVar2 + -0xc) + (int)param_1;" (assignment_expression "iVar4 = *(int *)(iVar2 + -0xc) + (int)param_1" identifier = (binary_expression "*(int *)(iVar2 + -0xc) + (int)param_1" (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) }) (else_clause "else {\n      uVar3 = *(undefined4 *)(iVar4 + 0x74);\n    }" else (compound_statement "{\n      uVar3 = *(undefined4 *)(iVar4 + 0x74);\n    }" { (expression_statement "uVar3 = *(undefined4 *)(iVar4 + 0x74);" (assignment_expression "uVar3 = *(undefined4 *)(iVar4 + 0x74)" identifier = (pointer_expression "*(undefined4 *)(iVar4 + 0x74)" * (cast_expression "(undefined4 *)(iVar4 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x74)" ( (binary_expression "iVar4 + 0x74" identifier + number_literal) ))))) ;) }))) (expression_statement "local_3c = *(int *)(iVar4 + 0x7c);" (assignment_expression "local_3c = *(int *)(iVar4 + 0x7c)" identifier = (pointer_expression "*(int *)(iVar4 + 0x7c)" * (cast_expression "(int *)(iVar4 + 0x7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x7c)" ( (binary_expression "iVar4 + 0x7c" identifier + number_literal) ))))) ;) (expression_statement "local_38 = (uint)(local_3c == 0);" (assignment_expression "local_38 = (uint)(local_3c == 0)" identifier = (call_expression "(uint)(local_3c == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(local_3c == 0)" ( (binary_expression "local_3c == 0" identifier == number_literal) )))) ;) (expression_statement "(**(code **)(*local_40 + 0x10))(local_34,local_40,local_3c,local_38,iVar4,uVar3,param_2);" (call_expression "(**(code **)(*local_40 + 0x10))(local_34,local_40,local_3c,local_38,iVar4,uVar3,param_2)" (parenthesized_expression "(**(code **)(*local_40 + 0x10))" ( (pointer_expression "**(code **)(*local_40 + 0x10)" * (pointer_expression "*(code **)(*local_40 + 0x10)" * (cast_expression "(code **)(*local_40 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*local_40 + 0x10)" ( (binary_expression "*local_40 + 0x10" (pointer_expression "*local_40" * identifier) + number_literal) ))))) )) (argument_list "(local_34,local_40,local_3c,local_38,iVar4,uVar3,param_2)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier ))) ;) (expression_statement "ppuVar5 = &puStack_50;" (assignment_expression "ppuVar5 = &puStack_50" identifier = (pointer_expression "&puStack_50" & identifier)) ;) (if_statement "if (local_30 != '\0') {\n      iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    \n      FUN_001d6d60(iVar4,*(uint *)(iVar4 + 0x14) | 1);\n      ppuVar5 = &puStack_50;\n    }" if (parenthesized_expression "(local_30 != '\0')" ( (binary_expression "local_30 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    \n      FUN_001d6d60(iVar4,*(uint *)(iVar4 + 0x14) | 1);\n      ppuVar5 = &puStack_50;\n    }" { (expression_statement "iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1" identifier = (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "FUN_001d6d60(iVar4,*(uint *)(iVar4 + 0x14) | 1);" (call_expression "FUN_001d6d60(iVar4,*(uint *)(iVar4 + 0x14) | 1)" identifier (argument_list "(iVar4,*(uint *)(iVar4 + 0x14) | 1)" ( identifier , (binary_expression "*(uint *)(iVar4 + 0x14) | 1" (pointer_expression "*(uint *)(iVar4 + 0x14)" * (cast_expression "(uint *)(iVar4 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x14)" ( (binary_expression "iVar4 + 0x14" identifier + number_literal) )))) | number_literal) ))) ;) (expression_statement "ppuVar5 = &puStack_50;" (assignment_expression "ppuVar5 = &puStack_50" identifier = (pointer_expression "&puStack_50" & identifier)) ;) })) })) (expression_statement "*(char **)((int)ppuVar5 + -0x10) = local_44;" (assignment_expression "*(char **)((int)ppuVar5 + -0x10) = local_44" (pointer_expression "*(char **)((int)ppuVar5 + -0x10)" * (cast_expression "(char **)((int)ppuVar5 + -0x10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)ppuVar5 + -0x10)" ( (binary_expression "(int)ppuVar5 + -0x10" (cast_expression "(int)ppuVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)ppuVar5 + -0x14) = 0x1bcc02;" (assignment_expression "*(undefined4 *)((int)ppuVar5 + -0x14) = 0x1bcc02" (pointer_expression "*(undefined4 *)((int)ppuVar5 + -0x14)" * (cast_expression "(undefined4 *)((int)ppuVar5 + -0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ppuVar5 + -0x14)" ( (binary_expression "(int)ppuVar5 + -0x14" (cast_expression "(int)ppuVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "FUN_001bbce0();" (call_expression "FUN_001bbce0()" identifier (argument_list "()" ( ))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) }) (else_clause else (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 IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == LIT) )))) ;) (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 , IDENT , IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) })) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return IDENT ;) })))
(function_definition "int * FUN_001bcb50(int *param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined1 **ppuVar5;\n  undefined1 *puStack_50;\n  undefined1 auStack_4c [8];\n  char *local_44;\n  int *local_40;\n  int local_3c;\n  uint local_38;\n  undefined1 local_34 [4];\n  char local_30;\n  char local_24 [20];\n  \n  FUN_00058c4a();\n  local_44 = local_24;\n  FUN_001bbc60(local_44,param_1);\n  ppuVar5 = (undefined1 **)auStack_4c;\n  if (local_24[0] != '\0') {\n    iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    local_40 = *(int **)(iVar4 + 0x84);\n    if (local_40 == (int *)0x0) {\n                    \n      puStack_50 = (undefined1 *)0x1bcc44;\n      FUN_001f1cf0();\n    }\n    if (*(char *)(iVar4 + 0x78) == '\0') {\n      piVar1 = *(int **)(iVar4 + 0x80);\n      if (piVar1 == (int *)0x0) {\n                    \n        puStack_50 = &LAB_001bcc4b;\n        FUN_001f1cf0();\n      }\n                    \n      uVar3 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n      iVar2 = *param_1;\n      *(undefined4 *)(iVar4 + 0x74) = uVar3;\n      *(undefined1 *)(iVar4 + 0x78) = 1;\n      iVar4 = *(int *)(iVar2 + -0xc) + (int)param_1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(iVar4 + 0x74);\n    }\n    local_3c = *(int *)(iVar4 + 0x7c);\n    local_38 = (uint)(local_3c == 0);\n                    \n    (**(code **)(*local_40 + 0x10))(local_34,local_40,local_3c,local_38,iVar4,uVar3,param_2);\n    ppuVar5 = &puStack_50;\n    if (local_30 != '\0') {\n      iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    \n      FUN_001d6d60(iVar4,*(uint *)(iVar4 + 0x14) | 1);\n      ppuVar5 = &puStack_50;\n    }\n  }\n  *(char **)((int)ppuVar5 + -0x10) = local_44;\n  *(undefined4 *)((int)ppuVar5 + -0x14) = 0x1bcc02;\n  FUN_001bbce0();\n  return param_1;\n}" (primitive_type "int") (pointer_declarator "* FUN_001bcb50(int *param_1,undefined4 param_2)" (* "*") (function_declarator "FUN_001bcb50(int *param_1,undefined4 param_2)" (identifier "FUN_001bcb50") (parameter_list "(int *param_1,undefined4 param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")")))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined1 **ppuVar5;\n  undefined1 *puStack_50;\n  undefined1 auStack_4c [8];\n  char *local_44;\n  int *local_40;\n  int local_3c;\n  uint local_38;\n  undefined1 local_34 [4];\n  char local_30;\n  char local_24 [20];\n  \n  FUN_00058c4a();\n  local_44 = local_24;\n  FUN_001bbc60(local_44,param_1);\n  ppuVar5 = (undefined1 **)auStack_4c;\n  if (local_24[0] != '\0') {\n    iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    local_40 = *(int **)(iVar4 + 0x84);\n    if (local_40 == (int *)0x0) {\n                    \n      puStack_50 = (undefined1 *)0x1bcc44;\n      FUN_001f1cf0();\n    }\n    if (*(char *)(iVar4 + 0x78) == '\0') {\n      piVar1 = *(int **)(iVar4 + 0x80);\n      if (piVar1 == (int *)0x0) {\n                    \n        puStack_50 = &LAB_001bcc4b;\n        FUN_001f1cf0();\n      }\n                    \n      uVar3 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n      iVar2 = *param_1;\n      *(undefined4 *)(iVar4 + 0x74) = uVar3;\n      *(undefined1 *)(iVar4 + 0x78) = 1;\n      iVar4 = *(int *)(iVar2 + -0xc) + (int)param_1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(iVar4 + 0x74);\n    }\n    local_3c = *(int *)(iVar4 + 0x7c);\n    local_38 = (uint)(local_3c == 0);\n                    \n    (**(code **)(*local_40 + 0x10))(local_34,local_40,local_3c,local_38,iVar4,uVar3,param_2);\n    ppuVar5 = &puStack_50;\n    if (local_30 != '\0') {\n      iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    \n      FUN_001d6d60(iVar4,*(uint *)(iVar4 + 0x14) | 1);\n      ppuVar5 = &puStack_50;\n    }\n  }\n  *(char **)((int)ppuVar5 + -0x10) = local_44;\n  *(undefined4 *)((int)ppuVar5 + -0x14) = 0x1bcc02;\n  FUN_001bbce0();\n  return param_1;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined1 **ppuVar5;" (type_identifier "undefined1") (pointer_declarator "**ppuVar5" (* "*") (pointer_declarator "*ppuVar5" (* "*") (identifier "ppuVar5"))) (; ";")) (declaration "undefined1 *puStack_50;" (type_identifier "undefined1") (pointer_declarator "*puStack_50" (* "*") (identifier "puStack_50")) (; ";")) (declaration "undefined1 auStack_4c [8];" (type_identifier "undefined1") (array_declarator "auStack_4c [8]" (identifier "auStack_4c") ([ "[") (number_literal "8") (] "]")) (; ";")) (declaration "char *local_44;" (primitive_type "char") (pointer_declarator "*local_44" (* "*") (identifier "local_44")) (; ";")) (declaration "int *local_40;" (primitive_type "int") (pointer_declarator "*local_40" (* "*") (identifier "local_40")) (; ";")) (declaration "int local_3c;" (primitive_type "int") (identifier "local_3c") (; ";")) (declaration "uint local_38;" (type_identifier "uint") (identifier "local_38") (; ";")) (declaration "undefined1 local_34 [4];" (type_identifier "undefined1") (array_declarator "local_34 [4]" (identifier "local_34") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "char local_30;" (primitive_type "char") (identifier "local_30") (; ";")) (declaration "char local_24 [20];" (primitive_type "char") (array_declarator "local_24 [20]" (identifier "local_24") ([ "[") (number_literal "20") (] "]")) (; ";")) (expression_statement "FUN_00058c4a();" (call_expression "FUN_00058c4a()" (identifier "FUN_00058c4a") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "local_44 = local_24;" (assignment_expression "local_44 = local_24" (identifier "local_44") (= "=") (identifier "local_24")) (; ";")) (expression_statement "FUN_001bbc60(local_44,param_1);" (call_expression "FUN_001bbc60(local_44,param_1)" (identifier "FUN_001bbc60") (argument_list "(local_44,param_1)" (( "(") (identifier "local_44") (, ",") (identifier "param_1") () ")"))) (; ";")) (expression_statement "ppuVar5 = (undefined1 **)auStack_4c;" (assignment_expression "ppuVar5 = (undefined1 **)auStack_4c" (identifier "ppuVar5") (= "=") (cast_expression "(undefined1 **)auStack_4c" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "auStack_4c"))) (; ";")) (if_statement "if (local_24[0] != '\0') {\n    iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    local_40 = *(int **)(iVar4 + 0x84);\n    if (local_40 == (int *)0x0) {\n                    \n      puStack_50 = (undefined1 *)0x1bcc44;\n      FUN_001f1cf0();\n    }\n    if (*(char *)(iVar4 + 0x78) == '\0') {\n      piVar1 = *(int **)(iVar4 + 0x80);\n      if (piVar1 == (int *)0x0) {\n                    \n        puStack_50 = &LAB_001bcc4b;\n        FUN_001f1cf0();\n      }\n                    \n      uVar3 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n      iVar2 = *param_1;\n      *(undefined4 *)(iVar4 + 0x74) = uVar3;\n      *(undefined1 *)(iVar4 + 0x78) = 1;\n      iVar4 = *(int *)(iVar2 + -0xc) + (int)param_1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(iVar4 + 0x74);\n    }\n    local_3c = *(int *)(iVar4 + 0x7c);\n    local_38 = (uint)(local_3c == 0);\n                    \n    (**(code **)(*local_40 + 0x10))(local_34,local_40,local_3c,local_38,iVar4,uVar3,param_2);\n    ppuVar5 = &puStack_50;\n    if (local_30 != '\0') {\n      iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    \n      FUN_001d6d60(iVar4,*(uint *)(iVar4 + 0x14) | 1);\n      ppuVar5 = &puStack_50;\n    }\n  }" (if "if") (parenthesized_expression "(local_24[0] != '\0')" (( "(") (binary_expression "local_24[0] != '\0'" (subscript_expression "local_24[0]" (identifier "local_24") ([ "[") (number_literal "0") (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    local_40 = *(int **)(iVar4 + 0x84);\n    if (local_40 == (int *)0x0) {\n                    \n      puStack_50 = (undefined1 *)0x1bcc44;\n      FUN_001f1cf0();\n    }\n    if (*(char *)(iVar4 + 0x78) == '\0') {\n      piVar1 = *(int **)(iVar4 + 0x80);\n      if (piVar1 == (int *)0x0) {\n                    \n        puStack_50 = &LAB_001bcc4b;\n        FUN_001f1cf0();\n      }\n                    \n      uVar3 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n      iVar2 = *param_1;\n      *(undefined4 *)(iVar4 + 0x74) = uVar3;\n      *(undefined1 *)(iVar4 + 0x78) = 1;\n      iVar4 = *(int *)(iVar2 + -0xc) + (int)param_1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(iVar4 + 0x74);\n    }\n    local_3c = *(int *)(iVar4 + 0x7c);\n    local_38 = (uint)(local_3c == 0);\n                    \n    (**(code **)(*local_40 + 0x10))(local_34,local_40,local_3c,local_38,iVar4,uVar3,param_2);\n    ppuVar5 = &puStack_50;\n    if (local_30 != '\0') {\n      iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    \n      FUN_001d6d60(iVar4,*(uint *)(iVar4 + 0x14) | 1);\n      ppuVar5 = &puStack_50;\n    }\n  }" ({ "{") (expression_statement "iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1" (identifier "iVar4") (= "=") (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -0xc)" (* "*") (cast_expression "(int *)(*param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0xc)" (( "(") (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0xc")) () ")")))) (+ "+") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")))) (; ";")) (expression_statement "local_40 = *(int **)(iVar4 + 0x84);" (assignment_expression "local_40 = *(int **)(iVar4 + 0x84)" (identifier "local_40") (= "=") (pointer_expression "*(int **)(iVar4 + 0x84)" (* "*") (cast_expression "(int **)(iVar4 + 0x84)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar4 + 0x84)" (( "(") (binary_expression "iVar4 + 0x84" (identifier "iVar4") (+ "+") (number_literal "0x84")) () ")"))))) (; ";")) (if_statement "if (local_40 == (int *)0x0) {\n                    \n      puStack_50 = (undefined1 *)0x1bcc44;\n      FUN_001f1cf0();\n    }" (if "if") (parenthesized_expression "(local_40 == (int *)0x0)" (( "(") (binary_expression "local_40 == (int *)0x0" (identifier "local_40") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n      puStack_50 = (undefined1 *)0x1bcc44;\n      FUN_001f1cf0();\n    }" ({ "{") (expression_statement "puStack_50 = (undefined1 *)0x1bcc44;" (assignment_expression "puStack_50 = (undefined1 *)0x1bcc44" (identifier "puStack_50") (= "=") (cast_expression "(undefined1 *)0x1bcc44" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x1bcc44"))) (; ";")) (expression_statement "FUN_001f1cf0();" (call_expression "FUN_001f1cf0()" (identifier "FUN_001f1cf0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if (*(char *)(iVar4 + 0x78) == '\0') {\n      piVar1 = *(int **)(iVar4 + 0x80);\n      if (piVar1 == (int *)0x0) {\n                    \n        puStack_50 = &LAB_001bcc4b;\n        FUN_001f1cf0();\n      }\n                    \n      uVar3 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n      iVar2 = *param_1;\n      *(undefined4 *)(iVar4 + 0x74) = uVar3;\n      *(undefined1 *)(iVar4 + 0x78) = 1;\n      iVar4 = *(int *)(iVar2 + -0xc) + (int)param_1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(iVar4 + 0x74);\n    }" (if "if") (parenthesized_expression "(*(char *)(iVar4 + 0x78) == '\0')" (( "(") (binary_expression "*(char *)(iVar4 + 0x78) == '\0'" (pointer_expression "*(char *)(iVar4 + 0x78)" (* "*") (cast_expression "(char *)(iVar4 + 0x78)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x78)" (( "(") (binary_expression "iVar4 + 0x78" (identifier "iVar4") (+ "+") (number_literal "0x78")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      piVar1 = *(int **)(iVar4 + 0x80);\n      if (piVar1 == (int *)0x0) {\n                    \n        puStack_50 = &LAB_001bcc4b;\n        FUN_001f1cf0();\n      }\n                    \n      uVar3 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n      iVar2 = *param_1;\n      *(undefined4 *)(iVar4 + 0x74) = uVar3;\n      *(undefined1 *)(iVar4 + 0x78) = 1;\n      iVar4 = *(int *)(iVar2 + -0xc) + (int)param_1;\n    }" ({ "{") (expression_statement "piVar1 = *(int **)(iVar4 + 0x80);" (assignment_expression "piVar1 = *(int **)(iVar4 + 0x80)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(iVar4 + 0x80)" (* "*") (cast_expression "(int **)(iVar4 + 0x80)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar4 + 0x80)" (( "(") (binary_expression "iVar4 + 0x80" (identifier "iVar4") (+ "+") (number_literal "0x80")) () ")"))))) (; ";")) (if_statement "if (piVar1 == (int *)0x0) {\n                    \n        puStack_50 = &LAB_001bcc4b;\n        FUN_001f1cf0();\n      }" (if "if") (parenthesized_expression "(piVar1 == (int *)0x0)" (( "(") (binary_expression "piVar1 == (int *)0x0" (identifier "piVar1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n        puStack_50 = &LAB_001bcc4b;\n        FUN_001f1cf0();\n      }" ({ "{") (expression_statement "puStack_50 = &LAB_001bcc4b;" (assignment_expression "puStack_50 = &LAB_001bcc4b" (identifier "puStack_50") (= "=") (pointer_expression "&LAB_001bcc4b" (& "&") (identifier "LAB_001bcc4b"))) (; ";")) (expression_statement "FUN_001f1cf0();" (call_expression "FUN_001f1cf0()" (identifier "FUN_001f1cf0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar3 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);" (assignment_expression "uVar3 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20)" (identifier "uVar3") (= "=") (call_expression "(**(code **)(*piVar1 + 0x28))(piVar1,0x20)" (parenthesized_expression "(**(code **)(*piVar1 + 0x28))" (( "(") (pointer_expression "**(code **)(*piVar1 + 0x28)" (* "*") (pointer_expression "*(code **)(*piVar1 + 0x28)" (* "*") (cast_expression "(code **)(*piVar1 + 0x28)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0x28)" (( "(") (binary_expression "*piVar1 + 0x28" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (argument_list "(piVar1,0x20)" (( "(") (identifier "piVar1") (, ",") (number_literal "0x20") () ")")))) (; ";")) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" (identifier "iVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "*(undefined4 *)(iVar4 + 0x74) = uVar3;" (assignment_expression "*(undefined4 *)(iVar4 + 0x74) = uVar3" (pointer_expression "*(undefined4 *)(iVar4 + 0x74)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0x74)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x74)" (( "(") (binary_expression "iVar4 + 0x74" (identifier "iVar4") (+ "+") (number_literal "0x74")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "*(undefined1 *)(iVar4 + 0x78) = 1;" (assignment_expression "*(undefined1 *)(iVar4 + 0x78) = 1" (pointer_expression "*(undefined1 *)(iVar4 + 0x78)" (* "*") (cast_expression "(undefined1 *)(iVar4 + 0x78)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x78)" (( "(") (binary_expression "iVar4 + 0x78" (identifier "iVar4") (+ "+") (number_literal "0x78")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar4 = *(int *)(iVar2 + -0xc) + (int)param_1;" (assignment_expression "iVar4 = *(int *)(iVar2 + -0xc) + (int)param_1" (identifier "iVar4") (= "=") (binary_expression "*(int *)(iVar2 + -0xc) + (int)param_1" (pointer_expression "*(int *)(iVar2 + -0xc)" (* "*") (cast_expression "(int *)(iVar2 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -0xc)" (( "(") (binary_expression "iVar2 + -0xc" (identifier "iVar2") (+ "+") (number_literal "-0xc")) () ")")))) (+ "+") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")))) (; ";")) (} "}")) (else_clause "else {\n      uVar3 = *(undefined4 *)(iVar4 + 0x74);\n    }" (else "else") (compound_statement "{\n      uVar3 = *(undefined4 *)(iVar4 + 0x74);\n    }" ({ "{") (expression_statement "uVar3 = *(undefined4 *)(iVar4 + 0x74);" (assignment_expression "uVar3 = *(undefined4 *)(iVar4 + 0x74)" (identifier "uVar3") (= "=") (pointer_expression "*(undefined4 *)(iVar4 + 0x74)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0x74)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x74)" (( "(") (binary_expression "iVar4 + 0x74" (identifier "iVar4") (+ "+") (number_literal "0x74")) () ")"))))) (; ";")) (} "}")))) (expression_statement "local_3c = *(int *)(iVar4 + 0x7c);" (assignment_expression "local_3c = *(int *)(iVar4 + 0x7c)" (identifier "local_3c") (= "=") (pointer_expression "*(int *)(iVar4 + 0x7c)" (* "*") (cast_expression "(int *)(iVar4 + 0x7c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x7c)" (( "(") (binary_expression "iVar4 + 0x7c" (identifier "iVar4") (+ "+") (number_literal "0x7c")) () ")"))))) (; ";")) (expression_statement "local_38 = (uint)(local_3c == 0);" (assignment_expression "local_38 = (uint)(local_3c == 0)" (identifier "local_38") (= "=") (call_expression "(uint)(local_3c == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(local_3c == 0)" (( "(") (binary_expression "local_3c == 0" (identifier "local_3c") (== "==") (number_literal "0")) () ")")))) (; ";")) (expression_statement "(**(code **)(*local_40 + 0x10))(local_34,local_40,local_3c,local_38,iVar4,uVar3,param_2);" (call_expression "(**(code **)(*local_40 + 0x10))(local_34,local_40,local_3c,local_38,iVar4,uVar3,param_2)" (parenthesized_expression "(**(code **)(*local_40 + 0x10))" (( "(") (pointer_expression "**(code **)(*local_40 + 0x10)" (* "*") (pointer_expression "*(code **)(*local_40 + 0x10)" (* "*") (cast_expression "(code **)(*local_40 + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*local_40 + 0x10)" (( "(") (binary_expression "*local_40 + 0x10" (pointer_expression "*local_40" (* "*") (identifier "local_40")) (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (argument_list "(local_34,local_40,local_3c,local_38,iVar4,uVar3,param_2)" (( "(") (identifier "local_34") (, ",") (identifier "local_40") (, ",") (identifier "local_3c") (, ",") (identifier "local_38") (, ",") (identifier "iVar4") (, ",") (identifier "uVar3") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "ppuVar5 = &puStack_50;" (assignment_expression "ppuVar5 = &puStack_50" (identifier "ppuVar5") (= "=") (pointer_expression "&puStack_50" (& "&") (identifier "puStack_50"))) (; ";")) (if_statement "if (local_30 != '\0') {\n      iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    \n      FUN_001d6d60(iVar4,*(uint *)(iVar4 + 0x14) | 1);\n      ppuVar5 = &puStack_50;\n    }" (if "if") (parenthesized_expression "(local_30 != '\0')" (( "(") (binary_expression "local_30 != '\0'" (identifier "local_30") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    \n      FUN_001d6d60(iVar4,*(uint *)(iVar4 + 0x14) | 1);\n      ppuVar5 = &puStack_50;\n    }" ({ "{") (expression_statement "iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1" (identifier "iVar4") (= "=") (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -0xc)" (* "*") (cast_expression "(int *)(*param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0xc)" (( "(") (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0xc")) () ")")))) (+ "+") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")))) (; ";")) (expression_statement "FUN_001d6d60(iVar4,*(uint *)(iVar4 + 0x14) | 1);" (call_expression "FUN_001d6d60(iVar4,*(uint *)(iVar4 + 0x14) | 1)" (identifier "FUN_001d6d60") (argument_list "(iVar4,*(uint *)(iVar4 + 0x14) | 1)" (( "(") (identifier "iVar4") (, ",") (binary_expression "*(uint *)(iVar4 + 0x14) | 1" (pointer_expression "*(uint *)(iVar4 + 0x14)" (* "*") (cast_expression "(uint *)(iVar4 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x14)" (( "(") (binary_expression "iVar4 + 0x14" (identifier "iVar4") (+ "+") (number_literal "0x14")) () ")")))) (| "|") (number_literal "1")) () ")"))) (; ";")) (expression_statement "ppuVar5 = &puStack_50;" (assignment_expression "ppuVar5 = &puStack_50" (identifier "ppuVar5") (= "=") (pointer_expression "&puStack_50" (& "&") (identifier "puStack_50"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "*(char **)((int)ppuVar5 + -0x10) = local_44;" (assignment_expression "*(char **)((int)ppuVar5 + -0x10) = local_44" (pointer_expression "*(char **)((int)ppuVar5 + -0x10)" (* "*") (cast_expression "(char **)((int)ppuVar5 + -0x10)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)ppuVar5 + -0x10)" (( "(") (binary_expression "(int)ppuVar5 + -0x10" (cast_expression "(int)ppuVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "ppuVar5")) (+ "+") (number_literal "-0x10")) () ")")))) (= "=") (identifier "local_44")) (; ";")) (expression_statement "*(undefined4 *)((int)ppuVar5 + -0x14) = 0x1bcc02;" (assignment_expression "*(undefined4 *)((int)ppuVar5 + -0x14) = 0x1bcc02" (pointer_expression "*(undefined4 *)((int)ppuVar5 + -0x14)" (* "*") (cast_expression "(undefined4 *)((int)ppuVar5 + -0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)ppuVar5 + -0x14)" (( "(") (binary_expression "(int)ppuVar5 + -0x14" (cast_expression "(int)ppuVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "ppuVar5")) (+ "+") (number_literal "-0x14")) () ")")))) (= "=") (number_literal "0x1bcc02")) (; ";")) (expression_statement "FUN_001bbce0();" (call_expression "FUN_001bbce0()" (identifier "FUN_001bbce0") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* std::wostream& std::wostream::_M_insert<unsigned long>(unsigned long) */

type_2 * __thiscall std::type_2::_M_insert<unsigned_long>(type_2 *var_2,ulong param_1)

{
  int *var_6;
  int var_7;
  type_1 uVar3;
  type_2 *var_3;
  type_3 **ppuVar5;
  type_3 *puStack_50;
  type_3 auStack_4c [8];
  type_4 *local_44;
  int *var_4;
  int var_8;
  type_5 local_38;
  type_3 local_34 [4];
  char var_9;
  type_4 local_24 [20];
  
  var_1();
  local_44 = local_24;
  sentry::type_4(local_44,var_2);
  ppuVar5 = (type_3 **)auStack_4c;
  if (local_24[0] != (type_4)0x0) {
    var_3 = var_2 + *(int *)(*(int *)var_2 + -0xc);
    var_4 = *(int **)(var_3 + 0x84);
    if (var_4 == (int *)0x0) {
                    /* WARNING: Subroutine does not return */
      puStack_50 = (type_3 *)0x1bcc44;
      var_5();
    }
    if (var_3[0x78] == (type_2)0x0) {
      var_6 = *(int **)(var_3 + 0x80);
      if (var_6 == (int *)0x0) {
                    /* WARNING: Subroutine does not return */
        puStack_50 = &LAB_001bcc4b;
        var_5();
      }
                    /* try { // try from 001bcc22 to 001bcc4a has its CatchHandler @ 001bcc4b */
      uVar3 = (**(type_6 **)(*var_6 + 0x28))(var_6,0x20);
      var_7 = *(int *)var_2;
      *(type_1 *)(var_3 + 0x74) = uVar3;
      var_3[0x78] = (type_2)0x1;
      var_3 = var_2 + *(int *)(var_7 + -0xc);
    }
    else {
      uVar3 = *(type_1 *)(var_3 + 0x74);
    }
    var_8 = *(int *)(var_3 + 0x7c);
    local_38 = (type_5)(var_8 == 0);
                    /* try { // try from 001bcbcd to 001bcbcf has its CatchHandler @ 001bcc4b */
    (**(type_6 **)(*var_4 + 0x10))(local_34,var_4,var_8,local_38,var_3,uVar3,param_1);
    ppuVar5 = &puStack_50;
    if (var_9 != '\0') {
                    /* try { // try from 001bcbed to 001bcbf1 has its CatchHandler @ 001bcc4d */
      wios::var_10((type_7 *)(var_2 + *(int *)(*(int *)var_2 + -0xc)),
                  *(type_8 *)((type_7 *)(var_2 + *(int *)(*(int *)var_2 + -0xc)) + 0x14) |
                  var_11);
      ppuVar5 = &puStack_50;
    }
  }
  *(type_4 **)((int)ppuVar5 + -0x10) = local_44;
  *(type_1 *)((int)ppuVar5 + -0x14) = 0x1bcc02;
  sentry::~type_4(*(type_4 **)((int)ppuVar5 + -0x10));
  return var_2;
}


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

int * MASKED(int *param_1,undefined4 param_2)

{
  int *piVar1;
  int iVar2;
  undefined4 uVar3;
  int iVar4;
  undefined1 **ppuVar5;
  undefined1 *puStack_50;
  undefined1 auStack_4c [8];
  char *local_44;
  int *local_40;
  int local_3c;
  uint local_38;
  undefined1 local_34 [4];
  char local_30;
  char local_24 [20];
  
  FUN_00058c4a();
  local_44 = local_24;
  FUN_001bbc60(local_44,param_1);
  ppuVar5 = (undefined1 **)auStack_4c;
  if (local_24[0] != '\0') {
    iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;
    local_40 = *(int **)(iVar4 + 0x84);
    if (local_40 == (int *)0x0) {
                    /* WARNING: Subroutine does not return */
      puStack_50 = (undefined1 *)0x1bcc44;
      FUN_001f1cf0();
    }
    if (*(char *)(iVar4 + 0x78) == '\0') {
      piVar1 = *(int **)(iVar4 + 0x80);
      if (piVar1 == (int *)0x0) {
                    /* WARNING: Subroutine does not return */
        puStack_50 = &LAB_001bcc4b;
        FUN_001f1cf0();
      }
                    /* try { // try from 001bcc22 to 001bcc4a has its CatchHandler @ 001bcc4b */
      uVar3 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);
      iVar2 = *param_1;
      *(undefined4 *)(iVar4 + 0x74) = uVar3;
      *(undefined1 *)(iVar4 + 0x78) = 1;
      iVar4 = *(int *)(iVar2 + -0xc) + (int)param_1;
    }
    else {
      uVar3 = *(undefined4 *)(iVar4 + 0x74);
    }
    local_3c = *(int *)(iVar4 + 0x7c);
    local_38 = (uint)(local_3c == 0);
                    /* try { // try from 001bcbcd to 001bcbcf has its CatchHandler @ 001bcc4b */
    (**(code **)(*local_40 + 0x10))(local_34,local_40,local_3c,local_38,iVar4,uVar3,param_2);
    ppuVar5 = &puStack_50;
    if (local_30 != '\0') {
      iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;
                    /* try { // try from 001bcbed to 001bcbf1 has its CatchHandler @ 001bcc4d */
      FUN_001d6d60(iVar4,*(uint *)(iVar4 + 0x14) | 1);
      ppuVar5 = &puStack_50;
    }
  }
  *(char **)((int)ppuVar5 + -0x10) = local_44;
  *(undefined4 *)((int)ppuVar5 + -0x14) = 0x1bcc02;
  FUN_001bbce0();
  return param_1;
}

