
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 remember_type(work_stuff *work,char *start,int len)

{
  int iVar1;
  char **ppcVar2;
  char *__dest;
  
  if (work->forgetting_types == 0) {
    iVar1 = work->typevec_size;
    if (iVar1 <= work->ntypes) {
      if (iVar1 == 0) {
        work->typevec_size = 3;
        ppcVar2 = (char **)xmalloc(0xc);
        work->typevec = ppcVar2;
      }
      else {
        if (0x3fffffff < iVar1) {
                    /* WARNING: Subroutine does not return */
          xmalloc_failed(0x7fffffff);
        }
        work->typevec_size = iVar1 * 2;
        ppcVar2 = (char **)xrealloc(work->typevec,iVar1 << 3);
        work->typevec = ppcVar2;
      }
    }
    __dest = (char *)xmalloc(len + 1);
    memcpy(__dest,start,len);
    iVar1 = work->ntypes;
    ppcVar2 = work->typevec;
    __dest[len] = '\0';
    work->ntypes = iVar1 + 1;
    ppcVar2[iVar1] = __dest;
  }
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 FUN_001ce6c0(int param_1,void *param_2,size_t param_3)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  void *__dest;
  
  if (*(int *)(param_1 + 0x48) == 0) {
    iVar1 = *(int *)(param_1 + 0x24);
    if (iVar1 <= *(int *)(param_1 + 0x20)) {
      if (iVar1 == 0) {
        *(undefined4 *)(param_1 + 0x24) = 3;
        uVar3 = FUN_001e4cc0(0xc);
        *(undefined4 *)(param_1 + 4) = uVar3;
      }
      else {
        if (0x3fffffff < iVar1) {
                    /* WARNING: Subroutine does not return */
          FUN_001e4c40(0x7fffffff);
        }
        *(int *)(param_1 + 0x24) = iVar1 * 2;
        uVar3 = FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3);
        *(undefined4 *)(param_1 + 4) = uVar3;
      }
    }
    __dest = (void *)FUN_001e4cc0(param_3 + 1);
    memcpy(__dest,param_2,param_3);
    iVar1 = *(int *)(param_1 + 0x20);
    iVar2 = *(int *)(param_1 + 4);
    *(undefined1 *)((int)__dest + param_3) = 0;
    *(int *)(param_1 + 0x20) = iVar1 + 1;
    *(void **)(iVar2 + iVar1 * 4) = __dest;
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x1c0937
SUB ESP,0x1c
MOV ESI,dword ptr [EAX + 0x48]
TEST ESI,ESI
JNZ 0x001ce742
MOV ESI,EAX
MOV EDI,ECX
MOV EBP,EDX
MOV EAX,dword ptr [EAX + 0x24]
CMP dword ptr [ESI + 0x20],EAX
JL 0x001ce70d
TEST EAX,EAX
JZ 0x001ce750
CMP EAX,0x3fffffff
JG 0x001ce769
SUB ESP,0x8
LEA EDX,[EAX + EAX*0x1]
SHL EAX,0x3
MOV dword ptr [ESI + 0x24],EDX
PUSH EAX
PUSH dword ptr [ESI + 0x4]
CALL 0x001e4d50
ADD ESP,0x10
MOV dword ptr [ESI + 0x4],EAX
SUB ESP,0xc
LEA EAX,[EDI + 0x1]
PUSH EAX
CALL 0x001e4cc0
ADD ESP,0xc
PUSH EDI
PUSH EBP
PUSH EAX
MOV dword ptr [ESP + 0x1c],EAX
CALL 0x000295c0
MOV EAX,dword ptr [ESI + 0x20]
MOV EDX,dword ptr [ESP + 0x1c]
ADD ESP,0x10
MOV ECX,dword ptr [ESI + 0x4]
LEA EBX,[EAX + 0x1]
MOV byte ptr [EDX + EDI*0x1],0x0
MOV dword ptr [ESI + 0x20],EBX
MOV dword ptr [ECX + EAX*0x4],EDX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
MOV dword ptr [ESI + 0x24],0x3
PUSH 0xc
CALL 0x001e4cc0
ADD ESP,0x10
MOV dword ptr [ESI + 0x4],EAX
JMP 0x001ce70d
SUB ESP,0xc
PUSH 0x7fffffff
CALL 0x001e4c40
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_001ce6c0(int param_1,void *param_2,size_t param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  void *__dest;\n  \n  if (*(int *)(param_1 + 0x48) == 0) {\n    iVar1 = *(int *)(param_1 + 0x24);\n    if (iVar1 <= *(int *)(param_1 + 0x20)) {\n      if (iVar1 == 0) {\n        *(undefined4 *)(param_1 + 0x24) = 3;\n        uVar3 = FUN_001e4cc0(0xc);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n      else {\n        if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n          FUN_001e4c40(0x7fffffff);\n        }\n        *(int *)(param_1 + 0x24) = iVar1 * 2;\n        uVar3 = FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n    }\n    __dest = (void *)FUN_001e4cc0(param_3 + 1);\n    memcpy(__dest,param_2,param_3);\n    iVar1 = *(int *)(param_1 + 0x20);\n    iVar2 = *(int *)(param_1 + 4);\n    *(undefined1 *)((int)__dest + param_3) = 0;\n    *(int *)(param_1 + 0x20) = iVar1 + 1;\n    *(void **)(iVar2 + iVar1 * 4) = __dest;\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_001ce6c0(int param_1,void *param_2,size_t param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  void *__dest;\n  \n  if (*(int *)(param_1 + 0x48) == 0) {\n    iVar1 = *(int *)(param_1 + 0x24);\n    if (iVar1 <= *(int *)(param_1 + 0x20)) {\n      if (iVar1 == 0) {\n        *(undefined4 *)(param_1 + 0x24) = 3;\n        uVar3 = FUN_001e4cc0(0xc);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n      else {\n        if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n          FUN_001e4c40(0x7fffffff);\n        }\n        *(int *)(param_1 + 0x24) = iVar1 * 2;\n        uVar3 = FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n    }\n    __dest = (void *)FUN_001e4cc0(param_3 + 1);\n    memcpy(__dest,param_2,param_3);\n    iVar1 = *(int *)(param_1 + 0x20);\n    iVar2 = *(int *)(param_1 + 4);\n    *(undefined1 *)((int)__dest + param_3) = 0;\n    *(int *)(param_1 + 0x20) = iVar1 + 1;\n    *(void **)(iVar2 + iVar1 * 4) = __dest;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_001ce6c0(int param_1,void *param_2,size_t param_3)" identifier (parameter_list "(int param_1,void *param_2,size_t param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "size_t param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  void *__dest;\n  \n  if (*(int *)(param_1 + 0x48) == 0) {\n    iVar1 = *(int *)(param_1 + 0x24);\n    if (iVar1 <= *(int *)(param_1 + 0x20)) {\n      if (iVar1 == 0) {\n        *(undefined4 *)(param_1 + 0x24) = 3;\n        uVar3 = FUN_001e4cc0(0xc);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n      else {\n        if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n          FUN_001e4c40(0x7fffffff);\n        }\n        *(int *)(param_1 + 0x24) = iVar1 * 2;\n        uVar3 = FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n    }\n    __dest = (void *)FUN_001e4cc0(param_3 + 1);\n    memcpy(__dest,param_2,param_3);\n    iVar1 = *(int *)(param_1 + 0x20);\n    iVar2 = *(int *)(param_1 + 4);\n    *(undefined1 *)((int)__dest + param_3) = 0;\n    *(int *)(param_1 + 0x20) = iVar1 + 1;\n    *(void **)(iVar2 + iVar1 * 4) = __dest;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (if_statement "if (*(int *)(param_1 + 0x48) == 0) {\n    iVar1 = *(int *)(param_1 + 0x24);\n    if (iVar1 <= *(int *)(param_1 + 0x20)) {\n      if (iVar1 == 0) {\n        *(undefined4 *)(param_1 + 0x24) = 3;\n        uVar3 = FUN_001e4cc0(0xc);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n      else {\n        if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n          FUN_001e4c40(0x7fffffff);\n        }\n        *(int *)(param_1 + 0x24) = iVar1 * 2;\n        uVar3 = FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n    }\n    __dest = (void *)FUN_001e4cc0(param_3 + 1);\n    memcpy(__dest,param_2,param_3);\n    iVar1 = *(int *)(param_1 + 0x20);\n    iVar2 = *(int *)(param_1 + 4);\n    *(undefined1 *)((int)__dest + param_3) = 0;\n    *(int *)(param_1 + 0x20) = iVar1 + 1;\n    *(void **)(iVar2 + iVar1 * 4) = __dest;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x48) == 0)" ( (binary_expression "*(int *)(param_1 + 0x48) == 0" (pointer_expression "*(int *)(param_1 + 0x48)" * (cast_expression "(int *)(param_1 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x24);\n    if (iVar1 <= *(int *)(param_1 + 0x20)) {\n      if (iVar1 == 0) {\n        *(undefined4 *)(param_1 + 0x24) = 3;\n        uVar3 = FUN_001e4cc0(0xc);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n      else {\n        if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n          FUN_001e4c40(0x7fffffff);\n        }\n        *(int *)(param_1 + 0x24) = iVar1 * 2;\n        uVar3 = FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n    }\n    __dest = (void *)FUN_001e4cc0(param_3 + 1);\n    memcpy(__dest,param_2,param_3);\n    iVar1 = *(int *)(param_1 + 0x20);\n    iVar2 = *(int *)(param_1 + 4);\n    *(undefined1 *)((int)__dest + param_3) = 0;\n    *(int *)(param_1 + 0x20) = iVar1 + 1;\n    *(void **)(iVar2 + iVar1 * 4) = __dest;\n  }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x24)" identifier = (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 <= *(int *)(param_1 + 0x20)) {\n      if (iVar1 == 0) {\n        *(undefined4 *)(param_1 + 0x24) = 3;\n        uVar3 = FUN_001e4cc0(0xc);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n      else {\n        if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n          FUN_001e4c40(0x7fffffff);\n        }\n        *(int *)(param_1 + 0x24) = iVar1 * 2;\n        uVar3 = FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n    }" if (parenthesized_expression "(iVar1 <= *(int *)(param_1 + 0x20))" ( (binary_expression "iVar1 <= *(int *)(param_1 + 0x20)" identifier <= (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) )) (compound_statement "{\n      if (iVar1 == 0) {\n        *(undefined4 *)(param_1 + 0x24) = 3;\n        uVar3 = FUN_001e4cc0(0xc);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n      else {\n        if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n          FUN_001e4c40(0x7fffffff);\n        }\n        *(int *)(param_1 + 0x24) = iVar1 * 2;\n        uVar3 = FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n    }" { (if_statement "if (iVar1 == 0) {\n        *(undefined4 *)(param_1 + 0x24) = 3;\n        uVar3 = FUN_001e4cc0(0xc);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n      else {\n        if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n          FUN_001e4c40(0x7fffffff);\n        }\n        *(int *)(param_1 + 0x24) = iVar1 * 2;\n        uVar3 = FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        *(undefined4 *)(param_1 + 0x24) = 3;\n        uVar3 = FUN_001e4cc0(0xc);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }" { (expression_statement "*(undefined4 *)(param_1 + 0x24) = 3;" (assignment_expression "*(undefined4 *)(param_1 + 0x24) = 3" (pointer_expression "*(undefined4 *)(param_1 + 0x24)" * (cast_expression "(undefined4 *)(param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar3 = FUN_001e4cc0(0xc);" (assignment_expression "uVar3 = FUN_001e4cc0(0xc)" identifier = (call_expression "FUN_001e4cc0(0xc)" identifier (argument_list "(0xc)" ( number_literal )))) ;) (expression_statement "*(undefined4 *)(param_1 + 4) = uVar3;" (assignment_expression "*(undefined4 *)(param_1 + 4) = uVar3" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n        if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n          FUN_001e4c40(0x7fffffff);\n        }\n        *(int *)(param_1 + 0x24) = iVar1 * 2;\n        uVar3 = FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }" else (compound_statement "{\n        if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n          FUN_001e4c40(0x7fffffff);\n        }\n        *(int *)(param_1 + 0x24) = iVar1 * 2;\n        uVar3 = FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }" { (if_statement "if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n          FUN_001e4c40(0x7fffffff);\n        }" if (parenthesized_expression "(0x3fffffff < iVar1)" ( (binary_expression "0x3fffffff < iVar1" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n          FUN_001e4c40(0x7fffffff);\n        }" { comment (expression_statement "FUN_001e4c40(0x7fffffff);" (call_expression "FUN_001e4c40(0x7fffffff)" identifier (argument_list "(0x7fffffff)" ( number_literal ))) ;) })) (expression_statement "*(int *)(param_1 + 0x24) = iVar1 * 2;" (assignment_expression "*(int *)(param_1 + 0x24) = iVar1 * 2" (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = (binary_expression "iVar1 * 2" identifier * number_literal)) ;) (expression_statement "uVar3 = FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3);" (assignment_expression "uVar3 = FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3)" identifier = (call_expression "FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3)" identifier (argument_list "(*(undefined4 *)(param_1 + 4),iVar1 << 3)" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) , (binary_expression "iVar1 << 3" identifier << number_literal) )))) ;) (expression_statement "*(undefined4 *)(param_1 + 4) = uVar3;" (assignment_expression "*(undefined4 *)(param_1 + 4) = uVar3" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) }))) })) (expression_statement "__dest = (void *)FUN_001e4cc0(param_3 + 1);" (assignment_expression "__dest = (void *)FUN_001e4cc0(param_3 + 1)" identifier = (cast_expression "(void *)FUN_001e4cc0(param_3 + 1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e4cc0(param_3 + 1)" identifier (argument_list "(param_3 + 1)" ( (binary_expression "param_3 + 1" identifier + number_literal) ))))) ;) (expression_statement "memcpy(__dest,param_2,param_3);" (call_expression "memcpy(__dest,param_2,param_3)" identifier (argument_list "(__dest,param_2,param_3)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x20);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x20)" identifier = (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 4);" (assignment_expression "iVar2 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(undefined1 *)((int)__dest + param_3) = 0;" (assignment_expression "*(undefined1 *)((int)__dest + param_3) = 0" (pointer_expression "*(undefined1 *)((int)__dest + param_3)" * (cast_expression "(undefined1 *)((int)__dest + param_3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + param_3)" ( (binary_expression "(int)__dest + param_3" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "*(int *)(param_1 + 0x20) = iVar1 + 1;" (assignment_expression "*(int *)(param_1 + 0x20) = iVar1 + 1" (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "*(void **)(iVar2 + iVar1 * 4) = __dest;" (assignment_expression "*(void **)(iVar2 + iVar1 * 4) = __dest" (pointer_expression "*(void **)(iVar2 + iVar1 * 4)" * (cast_expression "(void **)(iVar2 + iVar1 * 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + iVar1 * 4)" ( (binary_expression "iVar2 + iVar1 * 4" identifier + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 remember_type(work_stuff *work,char *start,int len)\n\n{\n  int iVar1;\n  char **ppcVar2;\n  char *__dest;\n  \n  if (work->forgetting_types == 0) {\n    iVar1 = work->typevec_size;\n    if (iVar1 <= work->ntypes) {\n      if (iVar1 == 0) {\n        work->typevec_size = 3;\n        ppcVar2 = (char **)xmalloc(0xc);\n        work->typevec = ppcVar2;\n      }\n      else {\n        if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n          xmalloc_failed(0x7fffffff);\n        }\n        work->typevec_size = iVar1 * 2;\n        ppcVar2 = (char **)xrealloc(work->typevec,iVar1 << 3);\n        work->typevec = ppcVar2;\n      }\n    }\n    __dest = (char *)xmalloc(len + 1);\n    memcpy(__dest,start,len);\n    iVar1 = work->ntypes;\n    ppcVar2 = work->typevec;\n    __dest[len] = '\0';\n    work->ntypes = iVar1 + 1;\n    ppcVar2[iVar1] = __dest;\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 remember_type(work_stuff *work,char *start,int len)\n\n{\n  int iVar1;\n  char **ppcVar2;\n  char *__dest;\n  \n  if (work->forgetting_types == 0) {\n    iVar1 = work->typevec_size;\n    if (iVar1 <= work->ntypes) {\n      if (iVar1 == 0) {\n        work->typevec_size = 3;\n        ppcVar2 = (char **)xmalloc(0xc);\n        work->typevec = ppcVar2;\n      }\n      else {\n        if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n          xmalloc_failed(0x7fffffff);\n        }\n        work->typevec_size = iVar1 * 2;\n        ppcVar2 = (char **)xrealloc(work->typevec,iVar1 << 3);\n        work->typevec = ppcVar2;\n      }\n    }\n    __dest = (char *)xmalloc(len + 1);\n    memcpy(__dest,start,len);\n    iVar1 = work->ntypes;\n    ppcVar2 = work->typevec;\n    __dest[len] = '\0';\n    work->ntypes = iVar1 + 1;\n    ppcVar2[iVar1] = __dest;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "remember_type(work_stuff *work,char *start,int len)" identifier (parameter_list "(work_stuff *work,char *start,int len)" ( (parameter_declaration "work_stuff *work" type_identifier (pointer_declarator "*work" * identifier)) , (parameter_declaration "char *start" primitive_type (pointer_declarator "*start" * identifier)) , (parameter_declaration "int len" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  char **ppcVar2;\n  char *__dest;\n  \n  if (work->forgetting_types == 0) {\n    iVar1 = work->typevec_size;\n    if (iVar1 <= work->ntypes) {\n      if (iVar1 == 0) {\n        work->typevec_size = 3;\n        ppcVar2 = (char **)xmalloc(0xc);\n        work->typevec = ppcVar2;\n      }\n      else {\n        if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n          xmalloc_failed(0x7fffffff);\n        }\n        work->typevec_size = iVar1 * 2;\n        ppcVar2 = (char **)xrealloc(work->typevec,iVar1 << 3);\n        work->typevec = ppcVar2;\n      }\n    }\n    __dest = (char *)xmalloc(len + 1);\n    memcpy(__dest,start,len);\n    iVar1 = work->ntypes;\n    ppcVar2 = work->typevec;\n    __dest[len] = '\0';\n    work->ntypes = iVar1 + 1;\n    ppcVar2[iVar1] = __dest;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char **ppcVar2;" primitive_type (pointer_declarator "**ppcVar2" * (pointer_declarator "*ppcVar2" * identifier)) ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (if_statement "if (work->forgetting_types == 0) {\n    iVar1 = work->typevec_size;\n    if (iVar1 <= work->ntypes) {\n      if (iVar1 == 0) {\n        work->typevec_size = 3;\n        ppcVar2 = (char **)xmalloc(0xc);\n        work->typevec = ppcVar2;\n      }\n      else {\n        if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n          xmalloc_failed(0x7fffffff);\n        }\n        work->typevec_size = iVar1 * 2;\n        ppcVar2 = (char **)xrealloc(work->typevec,iVar1 << 3);\n        work->typevec = ppcVar2;\n      }\n    }\n    __dest = (char *)xmalloc(len + 1);\n    memcpy(__dest,start,len);\n    iVar1 = work->ntypes;\n    ppcVar2 = work->typevec;\n    __dest[len] = '\0';\n    work->ntypes = iVar1 + 1;\n    ppcVar2[iVar1] = __dest;\n  }" if (parenthesized_expression "(work->forgetting_types == 0)" ( (binary_expression "work->forgetting_types == 0" (field_expression "work->forgetting_types" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    iVar1 = work->typevec_size;\n    if (iVar1 <= work->ntypes) {\n      if (iVar1 == 0) {\n        work->typevec_size = 3;\n        ppcVar2 = (char **)xmalloc(0xc);\n        work->typevec = ppcVar2;\n      }\n      else {\n        if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n          xmalloc_failed(0x7fffffff);\n        }\n        work->typevec_size = iVar1 * 2;\n        ppcVar2 = (char **)xrealloc(work->typevec,iVar1 << 3);\n        work->typevec = ppcVar2;\n      }\n    }\n    __dest = (char *)xmalloc(len + 1);\n    memcpy(__dest,start,len);\n    iVar1 = work->ntypes;\n    ppcVar2 = work->typevec;\n    __dest[len] = '\0';\n    work->ntypes = iVar1 + 1;\n    ppcVar2[iVar1] = __dest;\n  }" { (expression_statement "iVar1 = work->typevec_size;" (assignment_expression "iVar1 = work->typevec_size" identifier = (field_expression "work->typevec_size" identifier -> field_identifier)) ;) (if_statement "if (iVar1 <= work->ntypes) {\n      if (iVar1 == 0) {\n        work->typevec_size = 3;\n        ppcVar2 = (char **)xmalloc(0xc);\n        work->typevec = ppcVar2;\n      }\n      else {\n        if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n          xmalloc_failed(0x7fffffff);\n        }\n        work->typevec_size = iVar1 * 2;\n        ppcVar2 = (char **)xrealloc(work->typevec,iVar1 << 3);\n        work->typevec = ppcVar2;\n      }\n    }" if (parenthesized_expression "(iVar1 <= work->ntypes)" ( (binary_expression "iVar1 <= work->ntypes" identifier <= (field_expression "work->ntypes" identifier -> field_identifier)) )) (compound_statement "{\n      if (iVar1 == 0) {\n        work->typevec_size = 3;\n        ppcVar2 = (char **)xmalloc(0xc);\n        work->typevec = ppcVar2;\n      }\n      else {\n        if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n          xmalloc_failed(0x7fffffff);\n        }\n        work->typevec_size = iVar1 * 2;\n        ppcVar2 = (char **)xrealloc(work->typevec,iVar1 << 3);\n        work->typevec = ppcVar2;\n      }\n    }" { (if_statement "if (iVar1 == 0) {\n        work->typevec_size = 3;\n        ppcVar2 = (char **)xmalloc(0xc);\n        work->typevec = ppcVar2;\n      }\n      else {\n        if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n          xmalloc_failed(0x7fffffff);\n        }\n        work->typevec_size = iVar1 * 2;\n        ppcVar2 = (char **)xrealloc(work->typevec,iVar1 << 3);\n        work->typevec = ppcVar2;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        work->typevec_size = 3;\n        ppcVar2 = (char **)xmalloc(0xc);\n        work->typevec = ppcVar2;\n      }" { (expression_statement "work->typevec_size = 3;" (assignment_expression "work->typevec_size = 3" (field_expression "work->typevec_size" identifier -> field_identifier) = number_literal) ;) (expression_statement "ppcVar2 = (char **)xmalloc(0xc);" (assignment_expression "ppcVar2 = (char **)xmalloc(0xc)" identifier = (cast_expression "(char **)xmalloc(0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "xmalloc(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "work->typevec = ppcVar2;" (assignment_expression "work->typevec = ppcVar2" (field_expression "work->typevec" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n        if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n          xmalloc_failed(0x7fffffff);\n        }\n        work->typevec_size = iVar1 * 2;\n        ppcVar2 = (char **)xrealloc(work->typevec,iVar1 << 3);\n        work->typevec = ppcVar2;\n      }" else (compound_statement "{\n        if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n          xmalloc_failed(0x7fffffff);\n        }\n        work->typevec_size = iVar1 * 2;\n        ppcVar2 = (char **)xrealloc(work->typevec,iVar1 << 3);\n        work->typevec = ppcVar2;\n      }" { (if_statement "if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n          xmalloc_failed(0x7fffffff);\n        }" if (parenthesized_expression "(0x3fffffff < iVar1)" ( (binary_expression "0x3fffffff < iVar1" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n          xmalloc_failed(0x7fffffff);\n        }" { comment (expression_statement "xmalloc_failed(0x7fffffff);" (call_expression "xmalloc_failed(0x7fffffff)" identifier (argument_list "(0x7fffffff)" ( number_literal ))) ;) })) (expression_statement "work->typevec_size = iVar1 * 2;" (assignment_expression "work->typevec_size = iVar1 * 2" (field_expression "work->typevec_size" identifier -> field_identifier) = (binary_expression "iVar1 * 2" identifier * number_literal)) ;) (expression_statement "ppcVar2 = (char **)xrealloc(work->typevec,iVar1 << 3);" (assignment_expression "ppcVar2 = (char **)xrealloc(work->typevec,iVar1 << 3)" identifier = (cast_expression "(char **)xrealloc(work->typevec,iVar1 << 3)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "xrealloc(work->typevec,iVar1 << 3)" identifier (argument_list "(work->typevec,iVar1 << 3)" ( (field_expression "work->typevec" identifier -> field_identifier) , (binary_expression "iVar1 << 3" identifier << number_literal) ))))) ;) (expression_statement "work->typevec = ppcVar2;" (assignment_expression "work->typevec = ppcVar2" (field_expression "work->typevec" identifier -> field_identifier) = identifier) ;) }))) })) (expression_statement "__dest = (char *)xmalloc(len + 1);" (assignment_expression "__dest = (char *)xmalloc(len + 1)" identifier = (cast_expression "(char *)xmalloc(len + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(len + 1)" identifier (argument_list "(len + 1)" ( (binary_expression "len + 1" identifier + number_literal) ))))) ;) (expression_statement "memcpy(__dest,start,len);" (call_expression "memcpy(__dest,start,len)" identifier (argument_list "(__dest,start,len)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar1 = work->ntypes;" (assignment_expression "iVar1 = work->ntypes" identifier = (field_expression "work->ntypes" identifier -> field_identifier)) ;) (expression_statement "ppcVar2 = work->typevec;" (assignment_expression "ppcVar2 = work->typevec" identifier = (field_expression "work->typevec" identifier -> field_identifier)) ;) (expression_statement "__dest[len] = '\0';" (assignment_expression "__dest[len] = '\0'" (subscript_expression "__dest[len]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "work->ntypes = iVar1 + 1;" (assignment_expression "work->ntypes = iVar1 + 1" (field_expression "work->ntypes" identifier -> field_identifier) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "ppcVar2[iVar1] = __dest;" (assignment_expression "ppcVar2[iVar1] = __dest" (subscript_expression "ppcVar2[iVar1]" identifier [ identifier ]) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_001ce6c0(int param_1,void *param_2,size_t param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  void *__dest;\n  \n  if (*(int *)(param_1 + 0x48) == 0) {\n    iVar1 = *(int *)(param_1 + 0x24);\n    if (iVar1 <= *(int *)(param_1 + 0x20)) {\n      if (iVar1 == 0) {\n        *(undefined4 *)(param_1 + 0x24) = 3;\n        uVar3 = FUN_001e4cc0(0xc);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n      else {\n        if (0x3fffffff < iVar1) {\n                    \n          FUN_001e4c40(0x7fffffff);\n        }\n        *(int *)(param_1 + 0x24) = iVar1 * 2;\n        uVar3 = FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n    }\n    __dest = (void *)FUN_001e4cc0(param_3 + 1);\n    memcpy(__dest,param_2,param_3);\n    iVar1 = *(int *)(param_1 + 0x20);\n    iVar2 = *(int *)(param_1 + 4);\n    *(undefined1 *)((int)__dest + param_3) = 0;\n    *(int *)(param_1 + 0x20) = iVar1 + 1;\n    *(void **)(iVar2 + iVar1 * 4) = __dest;\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_001ce6c0(int param_1,void *param_2,size_t param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  void *__dest;\n  \n  if (*(int *)(param_1 + 0x48) == 0) {\n    iVar1 = *(int *)(param_1 + 0x24);\n    if (iVar1 <= *(int *)(param_1 + 0x20)) {\n      if (iVar1 == 0) {\n        *(undefined4 *)(param_1 + 0x24) = 3;\n        uVar3 = FUN_001e4cc0(0xc);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n      else {\n        if (0x3fffffff < iVar1) {\n                    \n          FUN_001e4c40(0x7fffffff);\n        }\n        *(int *)(param_1 + 0x24) = iVar1 * 2;\n        uVar3 = FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n    }\n    __dest = (void *)FUN_001e4cc0(param_3 + 1);\n    memcpy(__dest,param_2,param_3);\n    iVar1 = *(int *)(param_1 + 0x20);\n    iVar2 = *(int *)(param_1 + 4);\n    *(undefined1 *)((int)__dest + param_3) = 0;\n    *(int *)(param_1 + 0x20) = iVar1 + 1;\n    *(void **)(iVar2 + iVar1 * 4) = __dest;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_001ce6c0(int param_1,void *param_2,size_t param_3)" identifier (parameter_list "(int param_1,void *param_2,size_t param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "size_t param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  void *__dest;\n  \n  if (*(int *)(param_1 + 0x48) == 0) {\n    iVar1 = *(int *)(param_1 + 0x24);\n    if (iVar1 <= *(int *)(param_1 + 0x20)) {\n      if (iVar1 == 0) {\n        *(undefined4 *)(param_1 + 0x24) = 3;\n        uVar3 = FUN_001e4cc0(0xc);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n      else {\n        if (0x3fffffff < iVar1) {\n                    \n          FUN_001e4c40(0x7fffffff);\n        }\n        *(int *)(param_1 + 0x24) = iVar1 * 2;\n        uVar3 = FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n    }\n    __dest = (void *)FUN_001e4cc0(param_3 + 1);\n    memcpy(__dest,param_2,param_3);\n    iVar1 = *(int *)(param_1 + 0x20);\n    iVar2 = *(int *)(param_1 + 4);\n    *(undefined1 *)((int)__dest + param_3) = 0;\n    *(int *)(param_1 + 0x20) = iVar1 + 1;\n    *(void **)(iVar2 + iVar1 * 4) = __dest;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (if_statement "if (*(int *)(param_1 + 0x48) == 0) {\n    iVar1 = *(int *)(param_1 + 0x24);\n    if (iVar1 <= *(int *)(param_1 + 0x20)) {\n      if (iVar1 == 0) {\n        *(undefined4 *)(param_1 + 0x24) = 3;\n        uVar3 = FUN_001e4cc0(0xc);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n      else {\n        if (0x3fffffff < iVar1) {\n                    \n          FUN_001e4c40(0x7fffffff);\n        }\n        *(int *)(param_1 + 0x24) = iVar1 * 2;\n        uVar3 = FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n    }\n    __dest = (void *)FUN_001e4cc0(param_3 + 1);\n    memcpy(__dest,param_2,param_3);\n    iVar1 = *(int *)(param_1 + 0x20);\n    iVar2 = *(int *)(param_1 + 4);\n    *(undefined1 *)((int)__dest + param_3) = 0;\n    *(int *)(param_1 + 0x20) = iVar1 + 1;\n    *(void **)(iVar2 + iVar1 * 4) = __dest;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x48) == 0)" ( (binary_expression "*(int *)(param_1 + 0x48) == 0" (pointer_expression "*(int *)(param_1 + 0x48)" * (cast_expression "(int *)(param_1 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x24);\n    if (iVar1 <= *(int *)(param_1 + 0x20)) {\n      if (iVar1 == 0) {\n        *(undefined4 *)(param_1 + 0x24) = 3;\n        uVar3 = FUN_001e4cc0(0xc);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n      else {\n        if (0x3fffffff < iVar1) {\n                    \n          FUN_001e4c40(0x7fffffff);\n        }\n        *(int *)(param_1 + 0x24) = iVar1 * 2;\n        uVar3 = FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n    }\n    __dest = (void *)FUN_001e4cc0(param_3 + 1);\n    memcpy(__dest,param_2,param_3);\n    iVar1 = *(int *)(param_1 + 0x20);\n    iVar2 = *(int *)(param_1 + 4);\n    *(undefined1 *)((int)__dest + param_3) = 0;\n    *(int *)(param_1 + 0x20) = iVar1 + 1;\n    *(void **)(iVar2 + iVar1 * 4) = __dest;\n  }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x24)" identifier = (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 <= *(int *)(param_1 + 0x20)) {\n      if (iVar1 == 0) {\n        *(undefined4 *)(param_1 + 0x24) = 3;\n        uVar3 = FUN_001e4cc0(0xc);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n      else {\n        if (0x3fffffff < iVar1) {\n                    \n          FUN_001e4c40(0x7fffffff);\n        }\n        *(int *)(param_1 + 0x24) = iVar1 * 2;\n        uVar3 = FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n    }" if (parenthesized_expression "(iVar1 <= *(int *)(param_1 + 0x20))" ( (binary_expression "iVar1 <= *(int *)(param_1 + 0x20)" identifier <= (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) )) (compound_statement "{\n      if (iVar1 == 0) {\n        *(undefined4 *)(param_1 + 0x24) = 3;\n        uVar3 = FUN_001e4cc0(0xc);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n      else {\n        if (0x3fffffff < iVar1) {\n                    \n          FUN_001e4c40(0x7fffffff);\n        }\n        *(int *)(param_1 + 0x24) = iVar1 * 2;\n        uVar3 = FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n    }" { (if_statement "if (iVar1 == 0) {\n        *(undefined4 *)(param_1 + 0x24) = 3;\n        uVar3 = FUN_001e4cc0(0xc);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n      else {\n        if (0x3fffffff < iVar1) {\n                    \n          FUN_001e4c40(0x7fffffff);\n        }\n        *(int *)(param_1 + 0x24) = iVar1 * 2;\n        uVar3 = FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        *(undefined4 *)(param_1 + 0x24) = 3;\n        uVar3 = FUN_001e4cc0(0xc);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }" { (expression_statement "*(undefined4 *)(param_1 + 0x24) = 3;" (assignment_expression "*(undefined4 *)(param_1 + 0x24) = 3" (pointer_expression "*(undefined4 *)(param_1 + 0x24)" * (cast_expression "(undefined4 *)(param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar3 = FUN_001e4cc0(0xc);" (assignment_expression "uVar3 = FUN_001e4cc0(0xc)" identifier = (call_expression "FUN_001e4cc0(0xc)" identifier (argument_list "(0xc)" ( number_literal )))) ;) (expression_statement "*(undefined4 *)(param_1 + 4) = uVar3;" (assignment_expression "*(undefined4 *)(param_1 + 4) = uVar3" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n        if (0x3fffffff < iVar1) {\n                    \n          FUN_001e4c40(0x7fffffff);\n        }\n        *(int *)(param_1 + 0x24) = iVar1 * 2;\n        uVar3 = FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }" else (compound_statement "{\n        if (0x3fffffff < iVar1) {\n                    \n          FUN_001e4c40(0x7fffffff);\n        }\n        *(int *)(param_1 + 0x24) = iVar1 * 2;\n        uVar3 = FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }" { (if_statement "if (0x3fffffff < iVar1) {\n                    \n          FUN_001e4c40(0x7fffffff);\n        }" if (parenthesized_expression "(0x3fffffff < iVar1)" ( (binary_expression "0x3fffffff < iVar1" number_literal < identifier) )) (compound_statement "{\n                    \n          FUN_001e4c40(0x7fffffff);\n        }" { (expression_statement "FUN_001e4c40(0x7fffffff);" (call_expression "FUN_001e4c40(0x7fffffff)" identifier (argument_list "(0x7fffffff)" ( number_literal ))) ;) })) (expression_statement "*(int *)(param_1 + 0x24) = iVar1 * 2;" (assignment_expression "*(int *)(param_1 + 0x24) = iVar1 * 2" (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = (binary_expression "iVar1 * 2" identifier * number_literal)) ;) (expression_statement "uVar3 = FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3);" (assignment_expression "uVar3 = FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3)" identifier = (call_expression "FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3)" identifier (argument_list "(*(undefined4 *)(param_1 + 4),iVar1 << 3)" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) , (binary_expression "iVar1 << 3" identifier << number_literal) )))) ;) (expression_statement "*(undefined4 *)(param_1 + 4) = uVar3;" (assignment_expression "*(undefined4 *)(param_1 + 4) = uVar3" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) }))) })) (expression_statement "__dest = (void *)FUN_001e4cc0(param_3 + 1);" (assignment_expression "__dest = (void *)FUN_001e4cc0(param_3 + 1)" identifier = (cast_expression "(void *)FUN_001e4cc0(param_3 + 1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e4cc0(param_3 + 1)" identifier (argument_list "(param_3 + 1)" ( (binary_expression "param_3 + 1" identifier + number_literal) ))))) ;) (expression_statement "memcpy(__dest,param_2,param_3);" (call_expression "memcpy(__dest,param_2,param_3)" identifier (argument_list "(__dest,param_2,param_3)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x20);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x20)" identifier = (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 4);" (assignment_expression "iVar2 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(undefined1 *)((int)__dest + param_3) = 0;" (assignment_expression "*(undefined1 *)((int)__dest + param_3) = 0" (pointer_expression "*(undefined1 *)((int)__dest + param_3)" * (cast_expression "(undefined1 *)((int)__dest + param_3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + param_3)" ( (binary_expression "(int)__dest + param_3" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "*(int *)(param_1 + 0x20) = iVar1 + 1;" (assignment_expression "*(int *)(param_1 + 0x20) = iVar1 + 1" (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "*(void **)(iVar2 + iVar1 * 4) = __dest;" (assignment_expression "*(void **)(iVar2 + iVar1 * 4) = __dest" (pointer_expression "*(void **)(iVar2 + iVar1 * 4)" * (cast_expression "(void **)(iVar2 + iVar1 * 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + iVar1 * 4)" ( (binary_expression "iVar2 + iVar1 * 4" identifier + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (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 = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (binary_expression IDENT << LIT) )))) ;) (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 IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = IDENT) ;) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_001ce6c0(int param_1,void *param_2,size_t param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  void *__dest;\n  \n  if (*(int *)(param_1 + 0x48) == 0) {\n    iVar1 = *(int *)(param_1 + 0x24);\n    if (iVar1 <= *(int *)(param_1 + 0x20)) {\n      if (iVar1 == 0) {\n        *(undefined4 *)(param_1 + 0x24) = 3;\n        uVar3 = FUN_001e4cc0(0xc);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n      else {\n        if (0x3fffffff < iVar1) {\n                    \n          FUN_001e4c40(0x7fffffff);\n        }\n        *(int *)(param_1 + 0x24) = iVar1 * 2;\n        uVar3 = FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n    }\n    __dest = (void *)FUN_001e4cc0(param_3 + 1);\n    memcpy(__dest,param_2,param_3);\n    iVar1 = *(int *)(param_1 + 0x20);\n    iVar2 = *(int *)(param_1 + 4);\n    *(undefined1 *)((int)__dest + param_3) = 0;\n    *(int *)(param_1 + 0x20) = iVar1 + 1;\n    *(void **)(iVar2 + iVar1 * 4) = __dest;\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_001ce6c0(int param_1,void *param_2,size_t param_3)" (identifier "FUN_001ce6c0") (parameter_list "(int param_1,void *param_2,size_t param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "void *param_2" (primitive_type "void") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "size_t param_3" (primitive_type "size_t") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  void *__dest;\n  \n  if (*(int *)(param_1 + 0x48) == 0) {\n    iVar1 = *(int *)(param_1 + 0x24);\n    if (iVar1 <= *(int *)(param_1 + 0x20)) {\n      if (iVar1 == 0) {\n        *(undefined4 *)(param_1 + 0x24) = 3;\n        uVar3 = FUN_001e4cc0(0xc);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n      else {\n        if (0x3fffffff < iVar1) {\n                    \n          FUN_001e4c40(0x7fffffff);\n        }\n        *(int *)(param_1 + 0x24) = iVar1 * 2;\n        uVar3 = FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n    }\n    __dest = (void *)FUN_001e4cc0(param_3 + 1);\n    memcpy(__dest,param_2,param_3);\n    iVar1 = *(int *)(param_1 + 0x20);\n    iVar2 = *(int *)(param_1 + 4);\n    *(undefined1 *)((int)__dest + param_3) = 0;\n    *(int *)(param_1 + 0x20) = iVar1 + 1;\n    *(void **)(iVar2 + iVar1 * 4) = __dest;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "void *__dest;" (primitive_type "void") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (if_statement "if (*(int *)(param_1 + 0x48) == 0) {\n    iVar1 = *(int *)(param_1 + 0x24);\n    if (iVar1 <= *(int *)(param_1 + 0x20)) {\n      if (iVar1 == 0) {\n        *(undefined4 *)(param_1 + 0x24) = 3;\n        uVar3 = FUN_001e4cc0(0xc);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n      else {\n        if (0x3fffffff < iVar1) {\n                    \n          FUN_001e4c40(0x7fffffff);\n        }\n        *(int *)(param_1 + 0x24) = iVar1 * 2;\n        uVar3 = FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n    }\n    __dest = (void *)FUN_001e4cc0(param_3 + 1);\n    memcpy(__dest,param_2,param_3);\n    iVar1 = *(int *)(param_1 + 0x20);\n    iVar2 = *(int *)(param_1 + 4);\n    *(undefined1 *)((int)__dest + param_3) = 0;\n    *(int *)(param_1 + 0x20) = iVar1 + 1;\n    *(void **)(iVar2 + iVar1 * 4) = __dest;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x48) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x48) == 0" (pointer_expression "*(int *)(param_1 + 0x48)" (* "*") (cast_expression "(int *)(param_1 + 0x48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x24);\n    if (iVar1 <= *(int *)(param_1 + 0x20)) {\n      if (iVar1 == 0) {\n        *(undefined4 *)(param_1 + 0x24) = 3;\n        uVar3 = FUN_001e4cc0(0xc);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n      else {\n        if (0x3fffffff < iVar1) {\n                    \n          FUN_001e4c40(0x7fffffff);\n        }\n        *(int *)(param_1 + 0x24) = iVar1 * 2;\n        uVar3 = FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n    }\n    __dest = (void *)FUN_001e4cc0(param_3 + 1);\n    memcpy(__dest,param_2,param_3);\n    iVar1 = *(int *)(param_1 + 0x20);\n    iVar2 = *(int *)(param_1 + 4);\n    *(undefined1 *)((int)__dest + param_3) = 0;\n    *(int *)(param_1 + 0x20) = iVar1 + 1;\n    *(void **)(iVar2 + iVar1 * 4) = __dest;\n  }" ({ "{") (expression_statement "iVar1 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x24)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x24)" (* "*") (cast_expression "(int *)(param_1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (if_statement "if (iVar1 <= *(int *)(param_1 + 0x20)) {\n      if (iVar1 == 0) {\n        *(undefined4 *)(param_1 + 0x24) = 3;\n        uVar3 = FUN_001e4cc0(0xc);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n      else {\n        if (0x3fffffff < iVar1) {\n                    \n          FUN_001e4c40(0x7fffffff);\n        }\n        *(int *)(param_1 + 0x24) = iVar1 * 2;\n        uVar3 = FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n    }" (if "if") (parenthesized_expression "(iVar1 <= *(int *)(param_1 + 0x20))" (( "(") (binary_expression "iVar1 <= *(int *)(param_1 + 0x20)" (identifier "iVar1") (<= "<=") (pointer_expression "*(int *)(param_1 + 0x20)" (* "*") (cast_expression "(int *)(param_1 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")"))))) () ")")) (compound_statement "{\n      if (iVar1 == 0) {\n        *(undefined4 *)(param_1 + 0x24) = 3;\n        uVar3 = FUN_001e4cc0(0xc);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n      else {\n        if (0x3fffffff < iVar1) {\n                    \n          FUN_001e4c40(0x7fffffff);\n        }\n        *(int *)(param_1 + 0x24) = iVar1 * 2;\n        uVar3 = FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n    }" ({ "{") (if_statement "if (iVar1 == 0) {\n        *(undefined4 *)(param_1 + 0x24) = 3;\n        uVar3 = FUN_001e4cc0(0xc);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }\n      else {\n        if (0x3fffffff < iVar1) {\n                    \n          FUN_001e4c40(0x7fffffff);\n        }\n        *(int *)(param_1 + 0x24) = iVar1 * 2;\n        uVar3 = FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        *(undefined4 *)(param_1 + 0x24) = 3;\n        uVar3 = FUN_001e4cc0(0xc);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x24) = 3;" (assignment_expression "*(undefined4 *)(param_1 + 0x24) = 3" (pointer_expression "*(undefined4 *)(param_1 + 0x24)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (number_literal "3")) (; ";")) (expression_statement "uVar3 = FUN_001e4cc0(0xc);" (assignment_expression "uVar3 = FUN_001e4cc0(0xc)" (identifier "uVar3") (= "=") (call_expression "FUN_001e4cc0(0xc)" (identifier "FUN_001e4cc0") (argument_list "(0xc)" (( "(") (number_literal "0xc") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 4) = uVar3;" (assignment_expression "*(undefined4 *)(param_1 + 4) = uVar3" (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (} "}")) (else_clause "else {\n        if (0x3fffffff < iVar1) {\n                    \n          FUN_001e4c40(0x7fffffff);\n        }\n        *(int *)(param_1 + 0x24) = iVar1 * 2;\n        uVar3 = FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }" (else "else") (compound_statement "{\n        if (0x3fffffff < iVar1) {\n                    \n          FUN_001e4c40(0x7fffffff);\n        }\n        *(int *)(param_1 + 0x24) = iVar1 * 2;\n        uVar3 = FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3);\n        *(undefined4 *)(param_1 + 4) = uVar3;\n      }" ({ "{") (if_statement "if (0x3fffffff < iVar1) {\n                    \n          FUN_001e4c40(0x7fffffff);\n        }" (if "if") (parenthesized_expression "(0x3fffffff < iVar1)" (( "(") (binary_expression "0x3fffffff < iVar1" (number_literal "0x3fffffff") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n                    \n          FUN_001e4c40(0x7fffffff);\n        }" ({ "{") (expression_statement "FUN_001e4c40(0x7fffffff);" (call_expression "FUN_001e4c40(0x7fffffff)" (identifier "FUN_001e4c40") (argument_list "(0x7fffffff)" (( "(") (number_literal "0x7fffffff") () ")"))) (; ";")) (} "}"))) (expression_statement "*(int *)(param_1 + 0x24) = iVar1 * 2;" (assignment_expression "*(int *)(param_1 + 0x24) = iVar1 * 2" (pointer_expression "*(int *)(param_1 + 0x24)" (* "*") (cast_expression "(int *)(param_1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (binary_expression "iVar1 * 2" (identifier "iVar1") (* "*") (number_literal "2"))) (; ";")) (expression_statement "uVar3 = FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3);" (assignment_expression "uVar3 = FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3)" (identifier "uVar3") (= "=") (call_expression "FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3)" (identifier "FUN_001e4d50") (argument_list "(*(undefined4 *)(param_1 + 4),iVar1 << 3)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (, ",") (binary_expression "iVar1 << 3" (identifier "iVar1") (<< "<<") (number_literal "3")) () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 4) = uVar3;" (assignment_expression "*(undefined4 *)(param_1 + 4) = uVar3" (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (} "}")))) (} "}"))) (expression_statement "__dest = (void *)FUN_001e4cc0(param_3 + 1);" (assignment_expression "__dest = (void *)FUN_001e4cc0(param_3 + 1)" (identifier "__dest") (= "=") (cast_expression "(void *)FUN_001e4cc0(param_3 + 1)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001e4cc0(param_3 + 1)" (identifier "FUN_001e4cc0") (argument_list "(param_3 + 1)" (( "(") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (expression_statement "memcpy(__dest,param_2,param_3);" (call_expression "memcpy(__dest,param_2,param_3)" (identifier "memcpy") (argument_list "(__dest,param_2,param_3)" (( "(") (identifier "__dest") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x20);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x20)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x20)" (* "*") (cast_expression "(int *)(param_1 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 4);" (assignment_expression "iVar2 = *(int *)(param_1 + 4)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "*(undefined1 *)((int)__dest + param_3) = 0;" (assignment_expression "*(undefined1 *)((int)__dest + param_3) = 0" (pointer_expression "*(undefined1 *)((int)__dest + param_3)" (* "*") (cast_expression "(undefined1 *)((int)__dest + param_3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__dest + param_3)" (( "(") (binary_expression "(int)__dest + param_3" (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest")) (+ "+") (identifier "param_3")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(int *)(param_1 + 0x20) = iVar1 + 1;" (assignment_expression "*(int *)(param_1 + 0x20) = iVar1 + 1" (pointer_expression "*(int *)(param_1 + 0x20)" (* "*") (cast_expression "(int *)(param_1 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(void **)(iVar2 + iVar1 * 4) = __dest;" (assignment_expression "*(void **)(iVar2 + iVar1 * 4) = __dest" (pointer_expression "*(void **)(iVar2 + iVar1 * 4)" (* "*") (cast_expression "(void **)(iVar2 + iVar1 * 4)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar2 + iVar1 * 4)" (( "(") (binary_expression "iVar2 + iVar1 * 4" (identifier "iVar2") (+ "+") (binary_expression "iVar1 * 4" (identifier "iVar1") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "__dest")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 function_1(type_1 *work,char *start,int var_5)

{
  int var_1;
  char **ppcVar2;
  char *__dest;
  
  if (work->forgetting_types == 0) {
    var_1 = work->typevec_size;
    if (var_1 <= work->ntypes) {
      if (var_1 == 0) {
        work->typevec_size = 3;
        ppcVar2 = (char **)var_2(0xc);
        work->typevec = ppcVar2;
      }
      else {
        if (0x3fffffff < var_1) {
                    /* WARNING: Subroutine does not return */
          var_3(0x7fffffff);
        }
        work->typevec_size = var_1 * 2;
        ppcVar2 = (char **)var_4(work->typevec,var_1 << 3);
        work->typevec = ppcVar2;
      }
    }
    __dest = (char *)var_2(var_5 + 1);
    var_6(__dest,start,var_5);
    var_1 = work->ntypes;
    ppcVar2 = work->typevec;
    __dest[var_5] = '\0';
    work->ntypes = var_1 + 1;
    ppcVar2[var_1] = __dest;
  }
  return;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 MASKED(int param_1,void *param_2,size_t param_3)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  void *__dest;
  
  if (*(int *)(param_1 + 0x48) == 0) {
    iVar1 = *(int *)(param_1 + 0x24);
    if (iVar1 <= *(int *)(param_1 + 0x20)) {
      if (iVar1 == 0) {
        *(undefined4 *)(param_1 + 0x24) = 3;
        uVar3 = FUN_001e4cc0(0xc);
        *(undefined4 *)(param_1 + 4) = uVar3;
      }
      else {
        if (0x3fffffff < iVar1) {
                    /* WARNING: Subroutine does not return */
          FUN_001e4c40(0x7fffffff);
        }
        *(int *)(param_1 + 0x24) = iVar1 * 2;
        uVar3 = FUN_001e4d50(*(undefined4 *)(param_1 + 4),iVar1 << 3);
        *(undefined4 *)(param_1 + 4) = uVar3;
      }
    }
    __dest = (void *)FUN_001e4cc0(param_3 + 1);
    memcpy(__dest,param_2,param_3);
    iVar1 = *(int *)(param_1 + 0x20);
    iVar2 = *(int *)(param_1 + 4);
    *(undefined1 *)((int)__dest + param_3) = 0;
    *(int *)(param_1 + 0x20) = iVar1 + 1;
    *(void **)(iVar2 + iVar1 * 4) = __dest;
  }
  return;
}

