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

YY_BUFFER_STATE yy_scan_bytes(char *yybytes,int _yybytes_len)

{
  char *__dest;
  YY_BUFFER_STATE new_buffer;
  
  __dest = (char *)malloc(_yybytes_len + 2U);
  if (__dest == (char *)0x0) {
                    /* WARNING: Subroutine does not return */
    yy_fatal_error("out of dynamic memory in yy_scan_bytes()");
  }
  if (0 < _yybytes_len) {
    memcpy(__dest,yybytes,_yybytes_len);
  }
  __dest[_yybytes_len + 1] = '\0';
  __dest[_yybytes_len] = '\0';
  if (1 < _yybytes_len + 2U) {
    new_buffer = (YY_BUFFER_STATE)malloc(0x30);
    if (new_buffer != (YY_BUFFER_STATE)0x0) {
      new_buffer->yy_buf_size = _yybytes_len;
      new_buffer->yy_ch_buf = __dest;
      new_buffer->yy_buf_pos = __dest;
      new_buffer->yy_n_chars = _yybytes_len;
      new_buffer->yy_is_our_buffer = 0;
      new_buffer->yy_input_file = (FILE *)0x0;
      new_buffer->yy_is_interactive = 0;
      new_buffer->yy_at_bol = 1;
      new_buffer->yy_fill_buffer = 0;
      new_buffer->yy_buffer_status = 0;
      yy_switch_to_buffer(new_buffer);
      new_buffer->yy_is_our_buffer = 1;
      return new_buffer;
    }
                    /* WARNING: Subroutine does not return */
    yy_fatal_error("out of dynamic memory in yy_scan_buffer()");
  }
                    /* WARNING: Subroutine does not return */
  yy_fatal_error("bad buffer in yy_scan_bytes()");
}



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

undefined4 * FUN_00025120(void *param_1,size_t param_2)

{
  void *__dest;
  undefined4 *puVar1;
  
  __dest = malloc(param_2 + 2);
  if (__dest == (void *)0x0) {
                    /* WARNING: Subroutine does not return */
    FUN_00023a00();
  }
  if (0 < (int)param_2) {
    memcpy(__dest,param_1,param_2);
  }
  *(undefined1 *)((int)__dest + param_2 + 1) = 0;
  *(undefined1 *)((int)__dest + param_2) = 0;
  if (1 < param_2 + 2) {
    puVar1 = (undefined4 *)malloc(0x30);
    if (puVar1 != (undefined4 *)0x0) {
      puVar1[3] = param_2;
      puVar1[1] = __dest;
      puVar1[2] = __dest;
      puVar1[4] = param_2;
      puVar1[5] = 0;
      *puVar1 = 0;
      puVar1[6] = 0;
      puVar1[7] = 1;
      puVar1[10] = 0;
      puVar1[0xb] = 0;
      FUN_00023af0(puVar1);
      puVar1[5] = 1;
      return puVar1;
    }
                    /* WARNING: Subroutine does not return */
    FUN_00023a00();
  }
                    /* WARNING: Subroutine does not return */
  FUN_00023a00();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000190b0
ADD EBX,0x89aa7
SUB ESP,0x18
MOV EDI,dword ptr [ESP + 0x30]
LEA ESI,[EDI + 0x2]
PUSH ESI
CALL 0x00016ab0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000251ee
MOV EBP,EAX
TEST EDI,EDI
JLE 0x00025161
SUB ESP,0x4
PUSH EDI
PUSH dword ptr [ESP + 0x28]
PUSH EAX
CALL 0x000168a0
ADD ESP,0x10
MOV byte ptr [EBP + EDI*0x1 + 0x1],0x0
MOV byte ptr [EBP + EDI*0x1],0x0
CMP ESI,0x1
JBE 0x000251d8
SUB ESP,0xc
PUSH 0x30
CALL 0x00016ab0
ADD ESP,0x10
MOV ESI,EAX
TEST EAX,EAX
JZ 0x000251e3
SUB ESP,0xc
MOV dword ptr [EAX + 0xc],EDI
MOV dword ptr [EAX + 0x4],EBP
MOV dword ptr [EAX + 0x8],EBP
MOV dword ptr [EAX + 0x10],EDI
MOV dword ptr [EAX + 0x14],0x0
MOV dword ptr [EAX],0x0
MOV dword ptr [EAX + 0x18],0x0
MOV dword ptr [EAX + 0x1c],0x1
MOV dword ptr [EAX + 0x28],0x0
MOV dword ptr [EAX + 0x2c],0x0
PUSH EAX
CALL 0x00023af0
MOV dword ptr [ESI + 0x14],0x1
ADD ESP,0x1c
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[EBX + 0xfffcde69]
CALL 0x00023a00
LEA EAX,[EBX + 0xfffcdfb0]
CALL 0x00023a00
LEA EAX,[EBX + 0xfffcdfdc]
CALL 0x00023a00
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 * FUN_00025120(void *param_1,size_t param_2)\n\n{\n  void *__dest;\n  undefined4 *puVar1;\n  \n  __dest = malloc(param_2 + 2);\n  if (__dest == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00023a00();\n  }\n  if (0 < (int)param_2) {\n    memcpy(__dest,param_1,param_2);\n  }\n  *(undefined1 *)((int)__dest + param_2 + 1) = 0;\n  *(undefined1 *)((int)__dest + param_2) = 0;\n  if (1 < param_2 + 2) {\n    puVar1 = (undefined4 *)malloc(0x30);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar1[3] = param_2;\n      puVar1[1] = __dest;\n      puVar1[2] = __dest;\n      puVar1[4] = param_2;\n      puVar1[5] = 0;\n      *puVar1 = 0;\n      puVar1[6] = 0;\n      puVar1[7] = 1;\n      puVar1[10] = 0;\n      puVar1[0xb] = 0;\n      FUN_00023af0(puVar1);\n      puVar1[5] = 1;\n      return puVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_00023a00();\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00023a00();\n}\n\n" comment (function_definition "undefined4 * FUN_00025120(void *param_1,size_t param_2)\n\n{\n  void *__dest;\n  undefined4 *puVar1;\n  \n  __dest = malloc(param_2 + 2);\n  if (__dest == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00023a00();\n  }\n  if (0 < (int)param_2) {\n    memcpy(__dest,param_1,param_2);\n  }\n  *(undefined1 *)((int)__dest + param_2 + 1) = 0;\n  *(undefined1 *)((int)__dest + param_2) = 0;\n  if (1 < param_2 + 2) {\n    puVar1 = (undefined4 *)malloc(0x30);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar1[3] = param_2;\n      puVar1[1] = __dest;\n      puVar1[2] = __dest;\n      puVar1[4] = param_2;\n      puVar1[5] = 0;\n      *puVar1 = 0;\n      puVar1[6] = 0;\n      puVar1[7] = 1;\n      puVar1[10] = 0;\n      puVar1[0xb] = 0;\n      FUN_00023af0(puVar1);\n      puVar1[5] = 1;\n      return puVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_00023a00();\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00023a00();\n}" type_identifier (pointer_declarator "* FUN_00025120(void *param_1,size_t param_2)" * (function_declarator "FUN_00025120(void *param_1,size_t param_2)" identifier (parameter_list "(void *param_1,size_t param_2)" ( (parameter_declaration "void *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "size_t param_2" primitive_type identifier) )))) (compound_statement "{\n  void *__dest;\n  undefined4 *puVar1;\n  \n  __dest = malloc(param_2 + 2);\n  if (__dest == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00023a00();\n  }\n  if (0 < (int)param_2) {\n    memcpy(__dest,param_1,param_2);\n  }\n  *(undefined1 *)((int)__dest + param_2 + 1) = 0;\n  *(undefined1 *)((int)__dest + param_2) = 0;\n  if (1 < param_2 + 2) {\n    puVar1 = (undefined4 *)malloc(0x30);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar1[3] = param_2;\n      puVar1[1] = __dest;\n      puVar1[2] = __dest;\n      puVar1[4] = param_2;\n      puVar1[5] = 0;\n      *puVar1 = 0;\n      puVar1[6] = 0;\n      puVar1[7] = 1;\n      puVar1[10] = 0;\n      puVar1[0xb] = 0;\n      FUN_00023af0(puVar1);\n      puVar1[5] = 1;\n      return puVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_00023a00();\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00023a00();\n}" { (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "__dest = malloc(param_2 + 2);" (assignment_expression "__dest = malloc(param_2 + 2)" identifier = (call_expression "malloc(param_2 + 2)" identifier (argument_list "(param_2 + 2)" ( (binary_expression "param_2 + 2" identifier + number_literal) )))) ;) (if_statement "if (__dest == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00023a00();\n  }" if (parenthesized_expression "(__dest == (void *)0x0)" ( (binary_expression "__dest == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_00023a00();\n  }" { comment (expression_statement "FUN_00023a00();" (call_expression "FUN_00023a00()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (0 < (int)param_2) {\n    memcpy(__dest,param_1,param_2);\n  }" if (parenthesized_expression "(0 < (int)param_2)" ( (binary_expression "0 < (int)param_2" number_literal < (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    memcpy(__dest,param_1,param_2);\n  }" { (expression_statement "memcpy(__dest,param_1,param_2);" (call_expression "memcpy(__dest,param_1,param_2)" identifier (argument_list "(__dest,param_1,param_2)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "*(undefined1 *)((int)__dest + param_2 + 1) = 0;" (assignment_expression "*(undefined1 *)((int)__dest + param_2 + 1) = 0" (pointer_expression "*(undefined1 *)((int)__dest + param_2 + 1)" * (cast_expression "(undefined1 *)((int)__dest + param_2 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + param_2 + 1)" ( (binary_expression "(int)__dest + param_2 + 1" (binary_expression "(int)__dest + param_2" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((int)__dest + param_2) = 0;" (assignment_expression "*(undefined1 *)((int)__dest + param_2) = 0" (pointer_expression "*(undefined1 *)((int)__dest + param_2)" * (cast_expression "(undefined1 *)((int)__dest + param_2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + param_2)" ( (binary_expression "(int)__dest + param_2" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (if_statement "if (1 < param_2 + 2) {\n    puVar1 = (undefined4 *)malloc(0x30);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar1[3] = param_2;\n      puVar1[1] = __dest;\n      puVar1[2] = __dest;\n      puVar1[4] = param_2;\n      puVar1[5] = 0;\n      *puVar1 = 0;\n      puVar1[6] = 0;\n      puVar1[7] = 1;\n      puVar1[10] = 0;\n      puVar1[0xb] = 0;\n      FUN_00023af0(puVar1);\n      puVar1[5] = 1;\n      return puVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_00023a00();\n  }" if (parenthesized_expression "(1 < param_2 + 2)" ( (binary_expression "1 < param_2 + 2" number_literal < (binary_expression "param_2 + 2" identifier + number_literal)) )) (compound_statement "{\n    puVar1 = (undefined4 *)malloc(0x30);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar1[3] = param_2;\n      puVar1[1] = __dest;\n      puVar1[2] = __dest;\n      puVar1[4] = param_2;\n      puVar1[5] = 0;\n      *puVar1 = 0;\n      puVar1[6] = 0;\n      puVar1[7] = 1;\n      puVar1[10] = 0;\n      puVar1[0xb] = 0;\n      FUN_00023af0(puVar1);\n      puVar1[5] = 1;\n      return puVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_00023a00();\n  }" { (expression_statement "puVar1 = (undefined4 *)malloc(0x30);" (assignment_expression "puVar1 = (undefined4 *)malloc(0x30)" identifier = (cast_expression "(undefined4 *)malloc(0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0x30)" identifier (argument_list "(0x30)" ( number_literal ))))) ;) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n      puVar1[3] = param_2;\n      puVar1[1] = __dest;\n      puVar1[2] = __dest;\n      puVar1[4] = param_2;\n      puVar1[5] = 0;\n      *puVar1 = 0;\n      puVar1[6] = 0;\n      puVar1[7] = 1;\n      puVar1[10] = 0;\n      puVar1[0xb] = 0;\n      FUN_00023af0(puVar1);\n      puVar1[5] = 1;\n      return puVar1;\n    }" if (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" ( (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar1[3] = param_2;\n      puVar1[1] = __dest;\n      puVar1[2] = __dest;\n      puVar1[4] = param_2;\n      puVar1[5] = 0;\n      *puVar1 = 0;\n      puVar1[6] = 0;\n      puVar1[7] = 1;\n      puVar1[10] = 0;\n      puVar1[0xb] = 0;\n      FUN_00023af0(puVar1);\n      puVar1[5] = 1;\n      return puVar1;\n    }" { (expression_statement "puVar1[3] = param_2;" (assignment_expression "puVar1[3] = param_2" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[1] = __dest;" (assignment_expression "puVar1[1] = __dest" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[2] = __dest;" (assignment_expression "puVar1[2] = __dest" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[4] = param_2;" (assignment_expression "puVar1[4] = param_2" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[5] = 0;" (assignment_expression "puVar1[5] = 0" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "puVar1[6] = 0;" (assignment_expression "puVar1[6] = 0" (subscript_expression "puVar1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[7] = 1;" (assignment_expression "puVar1[7] = 1" (subscript_expression "puVar1[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[10] = 0;" (assignment_expression "puVar1[10] = 0" (subscript_expression "puVar1[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[0xb] = 0;" (assignment_expression "puVar1[0xb] = 0" (subscript_expression "puVar1[0xb]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_00023af0(puVar1);" (call_expression "FUN_00023af0(puVar1)" identifier (argument_list "(puVar1)" ( identifier ))) ;) (expression_statement "puVar1[5] = 1;" (assignment_expression "puVar1[5] = 1" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return puVar1;" return identifier ;) })) comment (expression_statement "FUN_00023a00();" (call_expression "FUN_00023a00()" identifier (argument_list "()" ( ))) ;) })) comment (expression_statement "FUN_00023a00();" (call_expression "FUN_00023a00()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nYY_BUFFER_STATE yy_scan_bytes(char *yybytes,int _yybytes_len)\n\n{\n  char *__dest;\n  YY_BUFFER_STATE new_buffer;\n  \n  __dest = (char *)malloc(_yybytes_len + 2U);\n  if (__dest == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    yy_fatal_error("out of dynamic memory in yy_scan_bytes()");\n  }\n  if (0 < _yybytes_len) {\n    memcpy(__dest,yybytes,_yybytes_len);\n  }\n  __dest[_yybytes_len + 1] = '\0';\n  __dest[_yybytes_len] = '\0';\n  if (1 < _yybytes_len + 2U) {\n    new_buffer = (YY_BUFFER_STATE)malloc(0x30);\n    if (new_buffer != (YY_BUFFER_STATE)0x0) {\n      new_buffer->yy_buf_size = _yybytes_len;\n      new_buffer->yy_ch_buf = __dest;\n      new_buffer->yy_buf_pos = __dest;\n      new_buffer->yy_n_chars = _yybytes_len;\n      new_buffer->yy_is_our_buffer = 0;\n      new_buffer->yy_input_file = (FILE *)0x0;\n      new_buffer->yy_is_interactive = 0;\n      new_buffer->yy_at_bol = 1;\n      new_buffer->yy_fill_buffer = 0;\n      new_buffer->yy_buffer_status = 0;\n      yy_switch_to_buffer(new_buffer);\n      new_buffer->yy_is_our_buffer = 1;\n      return new_buffer;\n    }\n                    /* WARNING: Subroutine does not return */\n    yy_fatal_error("out of dynamic memory in yy_scan_buffer()");\n  }\n                    /* WARNING: Subroutine does not return */\n  yy_fatal_error("bad buffer in yy_scan_bytes()");\n}\n\n" comment comment (function_definition "YY_BUFFER_STATE yy_scan_bytes(char *yybytes,int _yybytes_len)\n\n{\n  char *__dest;\n  YY_BUFFER_STATE new_buffer;\n  \n  __dest = (char *)malloc(_yybytes_len + 2U);\n  if (__dest == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    yy_fatal_error("out of dynamic memory in yy_scan_bytes()");\n  }\n  if (0 < _yybytes_len) {\n    memcpy(__dest,yybytes,_yybytes_len);\n  }\n  __dest[_yybytes_len + 1] = '\0';\n  __dest[_yybytes_len] = '\0';\n  if (1 < _yybytes_len + 2U) {\n    new_buffer = (YY_BUFFER_STATE)malloc(0x30);\n    if (new_buffer != (YY_BUFFER_STATE)0x0) {\n      new_buffer->yy_buf_size = _yybytes_len;\n      new_buffer->yy_ch_buf = __dest;\n      new_buffer->yy_buf_pos = __dest;\n      new_buffer->yy_n_chars = _yybytes_len;\n      new_buffer->yy_is_our_buffer = 0;\n      new_buffer->yy_input_file = (FILE *)0x0;\n      new_buffer->yy_is_interactive = 0;\n      new_buffer->yy_at_bol = 1;\n      new_buffer->yy_fill_buffer = 0;\n      new_buffer->yy_buffer_status = 0;\n      yy_switch_to_buffer(new_buffer);\n      new_buffer->yy_is_our_buffer = 1;\n      return new_buffer;\n    }\n                    /* WARNING: Subroutine does not return */\n    yy_fatal_error("out of dynamic memory in yy_scan_buffer()");\n  }\n                    /* WARNING: Subroutine does not return */\n  yy_fatal_error("bad buffer in yy_scan_bytes()");\n}" type_identifier (function_declarator "yy_scan_bytes(char *yybytes,int _yybytes_len)" identifier (parameter_list "(char *yybytes,int _yybytes_len)" ( (parameter_declaration "char *yybytes" primitive_type (pointer_declarator "*yybytes" * identifier)) , (parameter_declaration "int _yybytes_len" primitive_type identifier) ))) (compound_statement "{\n  char *__dest;\n  YY_BUFFER_STATE new_buffer;\n  \n  __dest = (char *)malloc(_yybytes_len + 2U);\n  if (__dest == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    yy_fatal_error("out of dynamic memory in yy_scan_bytes()");\n  }\n  if (0 < _yybytes_len) {\n    memcpy(__dest,yybytes,_yybytes_len);\n  }\n  __dest[_yybytes_len + 1] = '\0';\n  __dest[_yybytes_len] = '\0';\n  if (1 < _yybytes_len + 2U) {\n    new_buffer = (YY_BUFFER_STATE)malloc(0x30);\n    if (new_buffer != (YY_BUFFER_STATE)0x0) {\n      new_buffer->yy_buf_size = _yybytes_len;\n      new_buffer->yy_ch_buf = __dest;\n      new_buffer->yy_buf_pos = __dest;\n      new_buffer->yy_n_chars = _yybytes_len;\n      new_buffer->yy_is_our_buffer = 0;\n      new_buffer->yy_input_file = (FILE *)0x0;\n      new_buffer->yy_is_interactive = 0;\n      new_buffer->yy_at_bol = 1;\n      new_buffer->yy_fill_buffer = 0;\n      new_buffer->yy_buffer_status = 0;\n      yy_switch_to_buffer(new_buffer);\n      new_buffer->yy_is_our_buffer = 1;\n      return new_buffer;\n    }\n                    /* WARNING: Subroutine does not return */\n    yy_fatal_error("out of dynamic memory in yy_scan_buffer()");\n  }\n                    /* WARNING: Subroutine does not return */\n  yy_fatal_error("bad buffer in yy_scan_bytes()");\n}" { (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "YY_BUFFER_STATE new_buffer;" type_identifier identifier ;) (expression_statement "__dest = (char *)malloc(_yybytes_len + 2U);" (assignment_expression "__dest = (char *)malloc(_yybytes_len + 2U)" identifier = (cast_expression "(char *)malloc(_yybytes_len + 2U)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(_yybytes_len + 2U)" identifier (argument_list "(_yybytes_len + 2U)" ( (binary_expression "_yybytes_len + 2U" identifier + number_literal) ))))) ;) (if_statement "if (__dest == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    yy_fatal_error("out of dynamic memory in yy_scan_bytes()");\n  }" if (parenthesized_expression "(__dest == (char *)0x0)" ( (binary_expression "__dest == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    yy_fatal_error("out of dynamic memory in yy_scan_bytes()");\n  }" { comment (expression_statement "yy_fatal_error("out of dynamic memory in yy_scan_bytes()");" (call_expression "yy_fatal_error("out of dynamic memory in yy_scan_bytes()")" identifier (argument_list "("out of dynamic memory in yy_scan_bytes()")" ( (string_literal ""out of dynamic memory in yy_scan_bytes()"" " string_content ") ))) ;) })) (if_statement "if (0 < _yybytes_len) {\n    memcpy(__dest,yybytes,_yybytes_len);\n  }" if (parenthesized_expression "(0 < _yybytes_len)" ( (binary_expression "0 < _yybytes_len" number_literal < identifier) )) (compound_statement "{\n    memcpy(__dest,yybytes,_yybytes_len);\n  }" { (expression_statement "memcpy(__dest,yybytes,_yybytes_len);" (call_expression "memcpy(__dest,yybytes,_yybytes_len)" identifier (argument_list "(__dest,yybytes,_yybytes_len)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "__dest[_yybytes_len + 1] = '\0';" (assignment_expression "__dest[_yybytes_len + 1] = '\0'" (subscript_expression "__dest[_yybytes_len + 1]" identifier [ (binary_expression "_yybytes_len + 1" identifier + number_literal) ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "__dest[_yybytes_len] = '\0';" (assignment_expression "__dest[_yybytes_len] = '\0'" (subscript_expression "__dest[_yybytes_len]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (if_statement "if (1 < _yybytes_len + 2U) {\n    new_buffer = (YY_BUFFER_STATE)malloc(0x30);\n    if (new_buffer != (YY_BUFFER_STATE)0x0) {\n      new_buffer->yy_buf_size = _yybytes_len;\n      new_buffer->yy_ch_buf = __dest;\n      new_buffer->yy_buf_pos = __dest;\n      new_buffer->yy_n_chars = _yybytes_len;\n      new_buffer->yy_is_our_buffer = 0;\n      new_buffer->yy_input_file = (FILE *)0x0;\n      new_buffer->yy_is_interactive = 0;\n      new_buffer->yy_at_bol = 1;\n      new_buffer->yy_fill_buffer = 0;\n      new_buffer->yy_buffer_status = 0;\n      yy_switch_to_buffer(new_buffer);\n      new_buffer->yy_is_our_buffer = 1;\n      return new_buffer;\n    }\n                    /* WARNING: Subroutine does not return */\n    yy_fatal_error("out of dynamic memory in yy_scan_buffer()");\n  }" if (parenthesized_expression "(1 < _yybytes_len + 2U)" ( (binary_expression "1 < _yybytes_len + 2U" number_literal < (binary_expression "_yybytes_len + 2U" identifier + number_literal)) )) (compound_statement "{\n    new_buffer = (YY_BUFFER_STATE)malloc(0x30);\n    if (new_buffer != (YY_BUFFER_STATE)0x0) {\n      new_buffer->yy_buf_size = _yybytes_len;\n      new_buffer->yy_ch_buf = __dest;\n      new_buffer->yy_buf_pos = __dest;\n      new_buffer->yy_n_chars = _yybytes_len;\n      new_buffer->yy_is_our_buffer = 0;\n      new_buffer->yy_input_file = (FILE *)0x0;\n      new_buffer->yy_is_interactive = 0;\n      new_buffer->yy_at_bol = 1;\n      new_buffer->yy_fill_buffer = 0;\n      new_buffer->yy_buffer_status = 0;\n      yy_switch_to_buffer(new_buffer);\n      new_buffer->yy_is_our_buffer = 1;\n      return new_buffer;\n    }\n                    /* WARNING: Subroutine does not return */\n    yy_fatal_error("out of dynamic memory in yy_scan_buffer()");\n  }" { (expression_statement "new_buffer = (YY_BUFFER_STATE)malloc(0x30);" (assignment_expression "new_buffer = (YY_BUFFER_STATE)malloc(0x30)" identifier = (cast_expression "(YY_BUFFER_STATE)malloc(0x30)" ( (type_descriptor "YY_BUFFER_STATE" type_identifier) ) (call_expression "malloc(0x30)" identifier (argument_list "(0x30)" ( number_literal ))))) ;) (if_statement "if (new_buffer != (YY_BUFFER_STATE)0x0) {\n      new_buffer->yy_buf_size = _yybytes_len;\n      new_buffer->yy_ch_buf = __dest;\n      new_buffer->yy_buf_pos = __dest;\n      new_buffer->yy_n_chars = _yybytes_len;\n      new_buffer->yy_is_our_buffer = 0;\n      new_buffer->yy_input_file = (FILE *)0x0;\n      new_buffer->yy_is_interactive = 0;\n      new_buffer->yy_at_bol = 1;\n      new_buffer->yy_fill_buffer = 0;\n      new_buffer->yy_buffer_status = 0;\n      yy_switch_to_buffer(new_buffer);\n      new_buffer->yy_is_our_buffer = 1;\n      return new_buffer;\n    }" if (parenthesized_expression "(new_buffer != (YY_BUFFER_STATE)0x0)" ( (binary_expression "new_buffer != (YY_BUFFER_STATE)0x0" identifier != (cast_expression "(YY_BUFFER_STATE)0x0" ( (type_descriptor "YY_BUFFER_STATE" type_identifier) ) number_literal)) )) (compound_statement "{\n      new_buffer->yy_buf_size = _yybytes_len;\n      new_buffer->yy_ch_buf = __dest;\n      new_buffer->yy_buf_pos = __dest;\n      new_buffer->yy_n_chars = _yybytes_len;\n      new_buffer->yy_is_our_buffer = 0;\n      new_buffer->yy_input_file = (FILE *)0x0;\n      new_buffer->yy_is_interactive = 0;\n      new_buffer->yy_at_bol = 1;\n      new_buffer->yy_fill_buffer = 0;\n      new_buffer->yy_buffer_status = 0;\n      yy_switch_to_buffer(new_buffer);\n      new_buffer->yy_is_our_buffer = 1;\n      return new_buffer;\n    }" { (expression_statement "new_buffer->yy_buf_size = _yybytes_len;" (assignment_expression "new_buffer->yy_buf_size = _yybytes_len" (field_expression "new_buffer->yy_buf_size" identifier -> field_identifier) = identifier) ;) (expression_statement "new_buffer->yy_ch_buf = __dest;" (assignment_expression "new_buffer->yy_ch_buf = __dest" (field_expression "new_buffer->yy_ch_buf" identifier -> field_identifier) = identifier) ;) (expression_statement "new_buffer->yy_buf_pos = __dest;" (assignment_expression "new_buffer->yy_buf_pos = __dest" (field_expression "new_buffer->yy_buf_pos" identifier -> field_identifier) = identifier) ;) (expression_statement "new_buffer->yy_n_chars = _yybytes_len;" (assignment_expression "new_buffer->yy_n_chars = _yybytes_len" (field_expression "new_buffer->yy_n_chars" identifier -> field_identifier) = identifier) ;) (expression_statement "new_buffer->yy_is_our_buffer = 0;" (assignment_expression "new_buffer->yy_is_our_buffer = 0" (field_expression "new_buffer->yy_is_our_buffer" identifier -> field_identifier) = number_literal) ;) (expression_statement "new_buffer->yy_input_file = (FILE *)0x0;" (assignment_expression "new_buffer->yy_input_file = (FILE *)0x0" (field_expression "new_buffer->yy_input_file" identifier -> field_identifier) = (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "new_buffer->yy_is_interactive = 0;" (assignment_expression "new_buffer->yy_is_interactive = 0" (field_expression "new_buffer->yy_is_interactive" identifier -> field_identifier) = number_literal) ;) (expression_statement "new_buffer->yy_at_bol = 1;" (assignment_expression "new_buffer->yy_at_bol = 1" (field_expression "new_buffer->yy_at_bol" identifier -> field_identifier) = number_literal) ;) (expression_statement "new_buffer->yy_fill_buffer = 0;" (assignment_expression "new_buffer->yy_fill_buffer = 0" (field_expression "new_buffer->yy_fill_buffer" identifier -> field_identifier) = number_literal) ;) (expression_statement "new_buffer->yy_buffer_status = 0;" (assignment_expression "new_buffer->yy_buffer_status = 0" (field_expression "new_buffer->yy_buffer_status" identifier -> field_identifier) = number_literal) ;) (expression_statement "yy_switch_to_buffer(new_buffer);" (call_expression "yy_switch_to_buffer(new_buffer)" identifier (argument_list "(new_buffer)" ( identifier ))) ;) (expression_statement "new_buffer->yy_is_our_buffer = 1;" (assignment_expression "new_buffer->yy_is_our_buffer = 1" (field_expression "new_buffer->yy_is_our_buffer" identifier -> field_identifier) = number_literal) ;) (return_statement "return new_buffer;" return identifier ;) })) comment (expression_statement "yy_fatal_error("out of dynamic memory in yy_scan_buffer()");" (call_expression "yy_fatal_error("out of dynamic memory in yy_scan_buffer()")" identifier (argument_list "("out of dynamic memory in yy_scan_buffer()")" ( (string_literal ""out of dynamic memory in yy_scan_buffer()"" " string_content ") ))) ;) })) comment (expression_statement "yy_fatal_error("bad buffer in yy_scan_bytes()");" (call_expression "yy_fatal_error("bad buffer in yy_scan_bytes()")" identifier (argument_list "("bad buffer in yy_scan_bytes()")" ( (string_literal ""bad buffer in yy_scan_bytes()"" " string_content ") ))) ;) })))
(translation_unit "undefined4 * FUN_00025120(void *param_1,size_t param_2)\n\n{\n  void *__dest;\n  undefined4 *puVar1;\n  \n  __dest = malloc(param_2 + 2);\n  if (__dest == (void *)0x0) {\n                    \n    FUN_00023a00();\n  }\n  if (0 < (int)param_2) {\n    memcpy(__dest,param_1,param_2);\n  }\n  *(undefined1 *)((int)__dest + param_2 + 1) = 0;\n  *(undefined1 *)((int)__dest + param_2) = 0;\n  if (1 < param_2 + 2) {\n    puVar1 = (undefined4 *)malloc(0x30);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar1[3] = param_2;\n      puVar1[1] = __dest;\n      puVar1[2] = __dest;\n      puVar1[4] = param_2;\n      puVar1[5] = 0;\n      *puVar1 = 0;\n      puVar1[6] = 0;\n      puVar1[7] = 1;\n      puVar1[10] = 0;\n      puVar1[0xb] = 0;\n      FUN_00023af0(puVar1);\n      puVar1[5] = 1;\n      return puVar1;\n    }\n                    \n    FUN_00023a00();\n  }\n                    \n  FUN_00023a00();\n}\n\n" (function_definition "undefined4 * FUN_00025120(void *param_1,size_t param_2)\n\n{\n  void *__dest;\n  undefined4 *puVar1;\n  \n  __dest = malloc(param_2 + 2);\n  if (__dest == (void *)0x0) {\n                    \n    FUN_00023a00();\n  }\n  if (0 < (int)param_2) {\n    memcpy(__dest,param_1,param_2);\n  }\n  *(undefined1 *)((int)__dest + param_2 + 1) = 0;\n  *(undefined1 *)((int)__dest + param_2) = 0;\n  if (1 < param_2 + 2) {\n    puVar1 = (undefined4 *)malloc(0x30);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar1[3] = param_2;\n      puVar1[1] = __dest;\n      puVar1[2] = __dest;\n      puVar1[4] = param_2;\n      puVar1[5] = 0;\n      *puVar1 = 0;\n      puVar1[6] = 0;\n      puVar1[7] = 1;\n      puVar1[10] = 0;\n      puVar1[0xb] = 0;\n      FUN_00023af0(puVar1);\n      puVar1[5] = 1;\n      return puVar1;\n    }\n                    \n    FUN_00023a00();\n  }\n                    \n  FUN_00023a00();\n}" type_identifier (pointer_declarator "* FUN_00025120(void *param_1,size_t param_2)" * (function_declarator "FUN_00025120(void *param_1,size_t param_2)" identifier (parameter_list "(void *param_1,size_t param_2)" ( (parameter_declaration "void *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "size_t param_2" primitive_type identifier) )))) (compound_statement "{\n  void *__dest;\n  undefined4 *puVar1;\n  \n  __dest = malloc(param_2 + 2);\n  if (__dest == (void *)0x0) {\n                    \n    FUN_00023a00();\n  }\n  if (0 < (int)param_2) {\n    memcpy(__dest,param_1,param_2);\n  }\n  *(undefined1 *)((int)__dest + param_2 + 1) = 0;\n  *(undefined1 *)((int)__dest + param_2) = 0;\n  if (1 < param_2 + 2) {\n    puVar1 = (undefined4 *)malloc(0x30);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar1[3] = param_2;\n      puVar1[1] = __dest;\n      puVar1[2] = __dest;\n      puVar1[4] = param_2;\n      puVar1[5] = 0;\n      *puVar1 = 0;\n      puVar1[6] = 0;\n      puVar1[7] = 1;\n      puVar1[10] = 0;\n      puVar1[0xb] = 0;\n      FUN_00023af0(puVar1);\n      puVar1[5] = 1;\n      return puVar1;\n    }\n                    \n    FUN_00023a00();\n  }\n                    \n  FUN_00023a00();\n}" { (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "__dest = malloc(param_2 + 2);" (assignment_expression "__dest = malloc(param_2 + 2)" identifier = (call_expression "malloc(param_2 + 2)" identifier (argument_list "(param_2 + 2)" ( (binary_expression "param_2 + 2" identifier + number_literal) )))) ;) (if_statement "if (__dest == (void *)0x0) {\n                    \n    FUN_00023a00();\n  }" if (parenthesized_expression "(__dest == (void *)0x0)" ( (binary_expression "__dest == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n    FUN_00023a00();\n  }" { (expression_statement "FUN_00023a00();" (call_expression "FUN_00023a00()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (0 < (int)param_2) {\n    memcpy(__dest,param_1,param_2);\n  }" if (parenthesized_expression "(0 < (int)param_2)" ( (binary_expression "0 < (int)param_2" number_literal < (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    memcpy(__dest,param_1,param_2);\n  }" { (expression_statement "memcpy(__dest,param_1,param_2);" (call_expression "memcpy(__dest,param_1,param_2)" identifier (argument_list "(__dest,param_1,param_2)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "*(undefined1 *)((int)__dest + param_2 + 1) = 0;" (assignment_expression "*(undefined1 *)((int)__dest + param_2 + 1) = 0" (pointer_expression "*(undefined1 *)((int)__dest + param_2 + 1)" * (cast_expression "(undefined1 *)((int)__dest + param_2 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + param_2 + 1)" ( (binary_expression "(int)__dest + param_2 + 1" (binary_expression "(int)__dest + param_2" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((int)__dest + param_2) = 0;" (assignment_expression "*(undefined1 *)((int)__dest + param_2) = 0" (pointer_expression "*(undefined1 *)((int)__dest + param_2)" * (cast_expression "(undefined1 *)((int)__dest + param_2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + param_2)" ( (binary_expression "(int)__dest + param_2" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (if_statement "if (1 < param_2 + 2) {\n    puVar1 = (undefined4 *)malloc(0x30);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar1[3] = param_2;\n      puVar1[1] = __dest;\n      puVar1[2] = __dest;\n      puVar1[4] = param_2;\n      puVar1[5] = 0;\n      *puVar1 = 0;\n      puVar1[6] = 0;\n      puVar1[7] = 1;\n      puVar1[10] = 0;\n      puVar1[0xb] = 0;\n      FUN_00023af0(puVar1);\n      puVar1[5] = 1;\n      return puVar1;\n    }\n                    \n    FUN_00023a00();\n  }" if (parenthesized_expression "(1 < param_2 + 2)" ( (binary_expression "1 < param_2 + 2" number_literal < (binary_expression "param_2 + 2" identifier + number_literal)) )) (compound_statement "{\n    puVar1 = (undefined4 *)malloc(0x30);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar1[3] = param_2;\n      puVar1[1] = __dest;\n      puVar1[2] = __dest;\n      puVar1[4] = param_2;\n      puVar1[5] = 0;\n      *puVar1 = 0;\n      puVar1[6] = 0;\n      puVar1[7] = 1;\n      puVar1[10] = 0;\n      puVar1[0xb] = 0;\n      FUN_00023af0(puVar1);\n      puVar1[5] = 1;\n      return puVar1;\n    }\n                    \n    FUN_00023a00();\n  }" { (expression_statement "puVar1 = (undefined4 *)malloc(0x30);" (assignment_expression "puVar1 = (undefined4 *)malloc(0x30)" identifier = (cast_expression "(undefined4 *)malloc(0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0x30)" identifier (argument_list "(0x30)" ( number_literal ))))) ;) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n      puVar1[3] = param_2;\n      puVar1[1] = __dest;\n      puVar1[2] = __dest;\n      puVar1[4] = param_2;\n      puVar1[5] = 0;\n      *puVar1 = 0;\n      puVar1[6] = 0;\n      puVar1[7] = 1;\n      puVar1[10] = 0;\n      puVar1[0xb] = 0;\n      FUN_00023af0(puVar1);\n      puVar1[5] = 1;\n      return puVar1;\n    }" if (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" ( (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar1[3] = param_2;\n      puVar1[1] = __dest;\n      puVar1[2] = __dest;\n      puVar1[4] = param_2;\n      puVar1[5] = 0;\n      *puVar1 = 0;\n      puVar1[6] = 0;\n      puVar1[7] = 1;\n      puVar1[10] = 0;\n      puVar1[0xb] = 0;\n      FUN_00023af0(puVar1);\n      puVar1[5] = 1;\n      return puVar1;\n    }" { (expression_statement "puVar1[3] = param_2;" (assignment_expression "puVar1[3] = param_2" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[1] = __dest;" (assignment_expression "puVar1[1] = __dest" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[2] = __dest;" (assignment_expression "puVar1[2] = __dest" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[4] = param_2;" (assignment_expression "puVar1[4] = param_2" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[5] = 0;" (assignment_expression "puVar1[5] = 0" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "puVar1[6] = 0;" (assignment_expression "puVar1[6] = 0" (subscript_expression "puVar1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[7] = 1;" (assignment_expression "puVar1[7] = 1" (subscript_expression "puVar1[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[10] = 0;" (assignment_expression "puVar1[10] = 0" (subscript_expression "puVar1[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[0xb] = 0;" (assignment_expression "puVar1[0xb] = 0" (subscript_expression "puVar1[0xb]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_00023af0(puVar1);" (call_expression "FUN_00023af0(puVar1)" identifier (argument_list "(puVar1)" ( identifier ))) ;) (expression_statement "puVar1[5] = 1;" (assignment_expression "puVar1[5] = 1" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return puVar1;" return identifier ;) })) (expression_statement "FUN_00023a00();" (call_expression "FUN_00023a00()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_00023a00();" (call_expression "FUN_00023a00()" identifier (argument_list "()" ( ))) ;) })))
(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 (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (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 (call_expression IDENT (argument_list ( ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = 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) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined4 * FUN_00025120(void *param_1,size_t param_2)\n\n{\n  void *__dest;\n  undefined4 *puVar1;\n  \n  __dest = malloc(param_2 + 2);\n  if (__dest == (void *)0x0) {\n                    \n    FUN_00023a00();\n  }\n  if (0 < (int)param_2) {\n    memcpy(__dest,param_1,param_2);\n  }\n  *(undefined1 *)((int)__dest + param_2 + 1) = 0;\n  *(undefined1 *)((int)__dest + param_2) = 0;\n  if (1 < param_2 + 2) {\n    puVar1 = (undefined4 *)malloc(0x30);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar1[3] = param_2;\n      puVar1[1] = __dest;\n      puVar1[2] = __dest;\n      puVar1[4] = param_2;\n      puVar1[5] = 0;\n      *puVar1 = 0;\n      puVar1[6] = 0;\n      puVar1[7] = 1;\n      puVar1[10] = 0;\n      puVar1[0xb] = 0;\n      FUN_00023af0(puVar1);\n      puVar1[5] = 1;\n      return puVar1;\n    }\n                    \n    FUN_00023a00();\n  }\n                    \n  FUN_00023a00();\n}" (type_identifier "undefined4") (pointer_declarator "* FUN_00025120(void *param_1,size_t param_2)" (* "*") (function_declarator "FUN_00025120(void *param_1,size_t param_2)" (identifier "FUN_00025120") (parameter_list "(void *param_1,size_t param_2)" (( "(") (parameter_declaration "void *param_1" (primitive_type "void") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "size_t param_2" (primitive_type "size_t") (identifier "param_2")) () ")")))) (compound_statement "{\n  void *__dest;\n  undefined4 *puVar1;\n  \n  __dest = malloc(param_2 + 2);\n  if (__dest == (void *)0x0) {\n                    \n    FUN_00023a00();\n  }\n  if (0 < (int)param_2) {\n    memcpy(__dest,param_1,param_2);\n  }\n  *(undefined1 *)((int)__dest + param_2 + 1) = 0;\n  *(undefined1 *)((int)__dest + param_2) = 0;\n  if (1 < param_2 + 2) {\n    puVar1 = (undefined4 *)malloc(0x30);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar1[3] = param_2;\n      puVar1[1] = __dest;\n      puVar1[2] = __dest;\n      puVar1[4] = param_2;\n      puVar1[5] = 0;\n      *puVar1 = 0;\n      puVar1[6] = 0;\n      puVar1[7] = 1;\n      puVar1[10] = 0;\n      puVar1[0xb] = 0;\n      FUN_00023af0(puVar1);\n      puVar1[5] = 1;\n      return puVar1;\n    }\n                    \n    FUN_00023a00();\n  }\n                    \n  FUN_00023a00();\n}" ({ "{") (declaration "void *__dest;" (primitive_type "void") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (expression_statement "__dest = malloc(param_2 + 2);" (assignment_expression "__dest = malloc(param_2 + 2)" (identifier "__dest") (= "=") (call_expression "malloc(param_2 + 2)" (identifier "malloc") (argument_list "(param_2 + 2)" (( "(") (binary_expression "param_2 + 2" (identifier "param_2") (+ "+") (number_literal "2")) () ")")))) (; ";")) (if_statement "if (__dest == (void *)0x0) {\n                    \n    FUN_00023a00();\n  }" (if "if") (parenthesized_expression "(__dest == (void *)0x0)" (( "(") (binary_expression "__dest == (void *)0x0" (identifier "__dest") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n    FUN_00023a00();\n  }" ({ "{") (expression_statement "FUN_00023a00();" (call_expression "FUN_00023a00()" (identifier "FUN_00023a00") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if (0 < (int)param_2) {\n    memcpy(__dest,param_1,param_2);\n  }" (if "if") (parenthesized_expression "(0 < (int)param_2)" (( "(") (binary_expression "0 < (int)param_2" (number_literal "0") (< "<") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2"))) () ")")) (compound_statement "{\n    memcpy(__dest,param_1,param_2);\n  }" ({ "{") (expression_statement "memcpy(__dest,param_1,param_2);" (call_expression "memcpy(__dest,param_1,param_2)" (identifier "memcpy") (argument_list "(__dest,param_1,param_2)" (( "(") (identifier "__dest") (, ",") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}"))) (expression_statement "*(undefined1 *)((int)__dest + param_2 + 1) = 0;" (assignment_expression "*(undefined1 *)((int)__dest + param_2 + 1) = 0" (pointer_expression "*(undefined1 *)((int)__dest + param_2 + 1)" (* "*") (cast_expression "(undefined1 *)((int)__dest + param_2 + 1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__dest + param_2 + 1)" (( "(") (binary_expression "(int)__dest + param_2 + 1" (binary_expression "(int)__dest + param_2" (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest")) (+ "+") (identifier "param_2")) (+ "+") (number_literal "1")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)((int)__dest + param_2) = 0;" (assignment_expression "*(undefined1 *)((int)__dest + param_2) = 0" (pointer_expression "*(undefined1 *)((int)__dest + param_2)" (* "*") (cast_expression "(undefined1 *)((int)__dest + param_2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__dest + param_2)" (( "(") (binary_expression "(int)__dest + param_2" (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest")) (+ "+") (identifier "param_2")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if (1 < param_2 + 2) {\n    puVar1 = (undefined4 *)malloc(0x30);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar1[3] = param_2;\n      puVar1[1] = __dest;\n      puVar1[2] = __dest;\n      puVar1[4] = param_2;\n      puVar1[5] = 0;\n      *puVar1 = 0;\n      puVar1[6] = 0;\n      puVar1[7] = 1;\n      puVar1[10] = 0;\n      puVar1[0xb] = 0;\n      FUN_00023af0(puVar1);\n      puVar1[5] = 1;\n      return puVar1;\n    }\n                    \n    FUN_00023a00();\n  }" (if "if") (parenthesized_expression "(1 < param_2 + 2)" (( "(") (binary_expression "1 < param_2 + 2" (number_literal "1") (< "<") (binary_expression "param_2 + 2" (identifier "param_2") (+ "+") (number_literal "2"))) () ")")) (compound_statement "{\n    puVar1 = (undefined4 *)malloc(0x30);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar1[3] = param_2;\n      puVar1[1] = __dest;\n      puVar1[2] = __dest;\n      puVar1[4] = param_2;\n      puVar1[5] = 0;\n      *puVar1 = 0;\n      puVar1[6] = 0;\n      puVar1[7] = 1;\n      puVar1[10] = 0;\n      puVar1[0xb] = 0;\n      FUN_00023af0(puVar1);\n      puVar1[5] = 1;\n      return puVar1;\n    }\n                    \n    FUN_00023a00();\n  }" ({ "{") (expression_statement "puVar1 = (undefined4 *)malloc(0x30);" (assignment_expression "puVar1 = (undefined4 *)malloc(0x30)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)malloc(0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "malloc(0x30)" (identifier "malloc") (argument_list "(0x30)" (( "(") (number_literal "0x30") () ")"))))) (; ";")) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n      puVar1[3] = param_2;\n      puVar1[1] = __dest;\n      puVar1[2] = __dest;\n      puVar1[4] = param_2;\n      puVar1[5] = 0;\n      *puVar1 = 0;\n      puVar1[6] = 0;\n      puVar1[7] = 1;\n      puVar1[10] = 0;\n      puVar1[0xb] = 0;\n      FUN_00023af0(puVar1);\n      puVar1[5] = 1;\n      return puVar1;\n    }" (if "if") (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar1 != (undefined4 *)0x0" (identifier "puVar1") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      puVar1[3] = param_2;\n      puVar1[1] = __dest;\n      puVar1[2] = __dest;\n      puVar1[4] = param_2;\n      puVar1[5] = 0;\n      *puVar1 = 0;\n      puVar1[6] = 0;\n      puVar1[7] = 1;\n      puVar1[10] = 0;\n      puVar1[0xb] = 0;\n      FUN_00023af0(puVar1);\n      puVar1[5] = 1;\n      return puVar1;\n    }" ({ "{") (expression_statement "puVar1[3] = param_2;" (assignment_expression "puVar1[3] = param_2" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "puVar1[1] = __dest;" (assignment_expression "puVar1[1] = __dest" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "__dest")) (; ";")) (expression_statement "puVar1[2] = __dest;" (assignment_expression "puVar1[2] = __dest" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "__dest")) (; ";")) (expression_statement "puVar1[4] = param_2;" (assignment_expression "puVar1[4] = param_2" (subscript_expression "puVar1[4]" (identifier "puVar1") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "puVar1[5] = 0;" (assignment_expression "puVar1[5] = 0" (subscript_expression "puVar1[5]" (identifier "puVar1") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[6] = 0;" (assignment_expression "puVar1[6] = 0" (subscript_expression "puVar1[6]" (identifier "puVar1") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[7] = 1;" (assignment_expression "puVar1[7] = 1" (subscript_expression "puVar1[7]" (identifier "puVar1") ([ "[") (number_literal "7") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "puVar1[10] = 0;" (assignment_expression "puVar1[10] = 0" (subscript_expression "puVar1[10]" (identifier "puVar1") ([ "[") (number_literal "10") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[0xb] = 0;" (assignment_expression "puVar1[0xb] = 0" (subscript_expression "puVar1[0xb]" (identifier "puVar1") ([ "[") (number_literal "0xb") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_00023af0(puVar1);" (call_expression "FUN_00023af0(puVar1)" (identifier "FUN_00023af0") (argument_list "(puVar1)" (( "(") (identifier "puVar1") () ")"))) (; ";")) (expression_statement "puVar1[5] = 1;" (assignment_expression "puVar1[5] = 1" (subscript_expression "puVar1[5]" (identifier "puVar1") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "1")) (; ";")) (return_statement "return puVar1;" (return "return") (identifier "puVar1") (; ";")) (} "}"))) (expression_statement "FUN_00023a00();" (call_expression "FUN_00023a00()" (identifier "FUN_00023a00") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00023a00();" (call_expression "FUN_00023a00()" (identifier "FUN_00023a00") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

type_1 function_1(char *yybytes,int var_2)

{
  char *var_3;
  type_1 var_6;
  
  var_3 = (char *)var_1(var_2 + 2U);
  if (var_3 == (char *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_4("out of dynamic memory in yy_scan_bytes()");
  }
  if (0 < var_2) {
    var_5(var_3,yybytes,var_2);
  }
  var_3[var_2 + 1] = '\0';
  var_3[var_2] = '\0';
  if (1 < var_2 + 2U) {
    var_6 = (type_1)var_1(0x30);
    if (var_6 != (type_1)0x0) {
      var_6->yy_buf_size = var_2;
      var_6->yy_ch_buf = var_3;
      var_6->yy_buf_pos = var_3;
      var_6->yy_n_chars = var_2;
      var_6->yy_is_our_buffer = 0;
      var_6->yy_input_file = (type_2 *)0x0;
      var_6->yy_is_interactive = 0;
      var_6->yy_at_bol = 1;
      var_6->yy_fill_buffer = 0;
      var_6->yy_buffer_status = 0;
      var_7(var_6);
      var_6->yy_is_our_buffer = 1;
      return var_6;
    }
                    /* WARNING: Subroutine does not return */
    var_4("out of dynamic memory in yy_scan_buffer()");
  }
                    /* WARNING: Subroutine does not return */
  var_4("bad buffer in yy_scan_bytes()");
}


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

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

undefined4 * MASKED(void *param_1,size_t param_2)

{
  void *__dest;
  undefined4 *puVar1;
  
  __dest = malloc(param_2 + 2);
  if (__dest == (void *)0x0) {
                    /* WARNING: Subroutine does not return */
    FUN_00023a00();
  }
  if (0 < (int)param_2) {
    memcpy(__dest,param_1,param_2);
  }
  *(undefined1 *)((int)__dest + param_2 + 1) = 0;
  *(undefined1 *)((int)__dest + param_2) = 0;
  if (1 < param_2 + 2) {
    puVar1 = (undefined4 *)malloc(0x30);
    if (puVar1 != (undefined4 *)0x0) {
      puVar1[3] = param_2;
      puVar1[1] = __dest;
      puVar1[2] = __dest;
      puVar1[4] = param_2;
      puVar1[5] = 0;
      *puVar1 = 0;
      puVar1[6] = 0;
      puVar1[7] = 1;
      puVar1[10] = 0;
      puVar1[0xb] = 0;
      FUN_00023af0(puVar1);
      puVar1[5] = 1;
      return puVar1;
    }
                    /* WARNING: Subroutine does not return */
    FUN_00023a00();
  }
                    /* WARNING: Subroutine does not return */
  FUN_00023a00();
}

