
/* 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 *pcVar1;
  char cVar2;
  char *base;
  YY_BUFFER_STATE pyVar3;
  char *pcVar4;
  
  base = (char *)malloc(_yybytes_len + 2U);
  if (base == (char *)0x0) {
                    /* WARNING: Subroutine does not return */
    yy_fatal_error("out of dynamic memory in yy_scan_bytes()");
  }
  pcVar1 = yybytes + _yybytes_len;
  pcVar4 = base;
  if (0 < _yybytes_len) {
    do {
      cVar2 = *yybytes;
      yybytes = yybytes + 1;
      *pcVar4 = cVar2;
      pcVar4 = pcVar4 + 1;
    } while (yybytes != pcVar1);
  }
  base[_yybytes_len + 1] = '\0';
  base[_yybytes_len] = '\0';
  pyVar3 = yy_scan_buffer(base,_yybytes_len + 2U);
  if (pyVar3 == (YY_BUFFER_STATE)0x0) {
                    /* WARNING: Subroutine does not return */
    yy_fatal_error("bad buffer in yy_scan_bytes()");
  }
  pyVar3->yy_is_our_buffer = 1;
  return pyVar3;
}



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

void FUN_00015040(undefined1 *param_1,int param_2)

{
  undefined1 *puVar1;
  undefined1 uVar2;
  undefined1 *puVar3;
  int iVar4;
  undefined1 *puVar5;
  
  puVar3 = (undefined1 *)malloc(param_2 + 2U);
  if (puVar3 == (undefined1 *)0x0) {
                    /* WARNING: Subroutine does not return */
    FUN_00014020();
  }
  puVar1 = param_1 + param_2;
  puVar5 = puVar3;
  if (0 < param_2) {
    do {
      uVar2 = *param_1;
      param_1 = param_1 + 1;
      *puVar5 = uVar2;
      puVar5 = puVar5 + 1;
    } while (param_1 != puVar1);
  }
  puVar3[param_2 + 1] = 0;
  puVar3[param_2] = 0;
  iVar4 = FUN_00014f90(puVar3,param_2 + 2U);
  if (iVar4 == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_00014020();
  }
  *(undefined4 *)(iVar4 + 0x14) = 1;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00013710
ADD EBX,0xbfb7
SUB ESP,0x28
MOV ESI,dword ptr [ESP + 0x40]
LEA EDI,[ESI + 0x2]
PUSH EDI
CALL 0x000122e0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000150bd
MOV EDX,dword ptr [ESP + 0x30]
MOV ECX,EAX
LEA EBP,[EDX + ESI*0x1]
TEST ESI,ESI
JLE 0x00015094
MOV dword ptr [ESP + 0xc],EAX
LEA ESI,[ESI]
NOP
MOVZX EAX,byte ptr [EDX]
ADD EDX,0x1
ADD ECX,0x1
MOV byte ptr [ECX + -0x1],AL
CMP EDX,EBP
JNZ 0x00015080
MOV EAX,dword ptr [ESP + 0xc]
SUB ESP,0x8
MOV byte ptr [EAX + ESI*0x1 + 0x1],0x0
MOV byte ptr [EAX + ESI*0x1],0x0
PUSH EDI
PUSH EAX
CALL 0x00014f90
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000150c8
MOV dword ptr [EAX + 0x14],0x1
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[EBX + 0xffff9544]
CALL 0x00014020
LEA EAX,[EBX + 0xffff93d1]
CALL 0x00014020
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00015040(undefined1 *param_1,int param_2)\n\n{\n  undefined1 *puVar1;\n  undefined1 uVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  undefined1 *puVar5;\n  \n  puVar3 = (undefined1 *)malloc(param_2 + 2U);\n  if (puVar3 == (undefined1 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00014020();\n  }\n  puVar1 = param_1 + param_2;\n  puVar5 = puVar3;\n  if (0 < param_2) {\n    do {\n      uVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *puVar5 = uVar2;\n      puVar5 = puVar5 + 1;\n    } while (param_1 != puVar1);\n  }\n  puVar3[param_2 + 1] = 0;\n  puVar3[param_2] = 0;\n  iVar4 = FUN_00014f90(puVar3,param_2 + 2U);\n  if (iVar4 == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00014020();\n  }\n  *(undefined4 *)(iVar4 + 0x14) = 1;\n  return;\n}\n\n" comment (function_definition "void FUN_00015040(undefined1 *param_1,int param_2)\n\n{\n  undefined1 *puVar1;\n  undefined1 uVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  undefined1 *puVar5;\n  \n  puVar3 = (undefined1 *)malloc(param_2 + 2U);\n  if (puVar3 == (undefined1 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00014020();\n  }\n  puVar1 = param_1 + param_2;\n  puVar5 = puVar3;\n  if (0 < param_2) {\n    do {\n      uVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *puVar5 = uVar2;\n      puVar5 = puVar5 + 1;\n    } while (param_1 != puVar1);\n  }\n  puVar3[param_2 + 1] = 0;\n  puVar3[param_2] = 0;\n  iVar4 = FUN_00014f90(puVar3,param_2 + 2U);\n  if (iVar4 == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00014020();\n  }\n  *(undefined4 *)(iVar4 + 0x14) = 1;\n  return;\n}" primitive_type (function_declarator "FUN_00015040(undefined1 *param_1,int param_2)" identifier (parameter_list "(undefined1 *param_1,int param_2)" ( (parameter_declaration "undefined1 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined1 *puVar1;\n  undefined1 uVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  undefined1 *puVar5;\n  \n  puVar3 = (undefined1 *)malloc(param_2 + 2U);\n  if (puVar3 == (undefined1 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00014020();\n  }\n  puVar1 = param_1 + param_2;\n  puVar5 = puVar3;\n  if (0 < param_2) {\n    do {\n      uVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *puVar5 = uVar2;\n      puVar5 = puVar5 + 1;\n    } while (param_1 != puVar1);\n  }\n  puVar3[param_2 + 1] = 0;\n  puVar3[param_2] = 0;\n  iVar4 = FUN_00014f90(puVar3,param_2 + 2U);\n  if (iVar4 == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00014020();\n  }\n  *(undefined4 *)(iVar4 + 0x14) = 1;\n  return;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined1 uVar2;" type_identifier identifier ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined1 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (expression_statement "puVar3 = (undefined1 *)malloc(param_2 + 2U);" (assignment_expression "puVar3 = (undefined1 *)malloc(param_2 + 2U)" identifier = (cast_expression "(undefined1 *)malloc(param_2 + 2U)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(param_2 + 2U)" identifier (argument_list "(param_2 + 2U)" ( (binary_expression "param_2 + 2U" identifier + number_literal) ))))) ;) (if_statement "if (puVar3 == (undefined1 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00014020();\n  }" if (parenthesized_expression "(puVar3 == (undefined1 *)0x0)" ( (binary_expression "puVar3 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_00014020();\n  }" { comment (expression_statement "FUN_00014020();" (call_expression "FUN_00014020()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "puVar1 = param_1 + param_2;" (assignment_expression "puVar1 = param_1 + param_2" identifier = (binary_expression "param_1 + param_2" identifier + identifier)) ;) (expression_statement "puVar5 = puVar3;" (assignment_expression "puVar5 = puVar3" identifier = identifier) ;) (if_statement "if (0 < param_2) {\n    do {\n      uVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *puVar5 = uVar2;\n      puVar5 = puVar5 + 1;\n    } while (param_1 != puVar1);\n  }" if (parenthesized_expression "(0 < param_2)" ( (binary_expression "0 < param_2" number_literal < identifier) )) (compound_statement "{\n    do {\n      uVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *puVar5 = uVar2;\n      puVar5 = puVar5 + 1;\n    } while (param_1 != puVar1);\n  }" { (do_statement "do {\n      uVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *puVar5 = uVar2;\n      puVar5 = puVar5 + 1;\n    } while (param_1 != puVar1);" do (compound_statement "{\n      uVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *puVar5 = uVar2;\n      puVar5 = puVar5 + 1;\n    }" { (expression_statement "uVar2 = *param_1;" (assignment_expression "uVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "*puVar5 = uVar2;" (assignment_expression "*puVar5 = uVar2" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_1 != puVar1)" ( (binary_expression "param_1 != puVar1" identifier != identifier) )) ;) })) (expression_statement "puVar3[param_2 + 1] = 0;" (assignment_expression "puVar3[param_2 + 1] = 0" (subscript_expression "puVar3[param_2 + 1]" identifier [ (binary_expression "param_2 + 1" identifier + number_literal) ]) = number_literal) ;) (expression_statement "puVar3[param_2] = 0;" (assignment_expression "puVar3[param_2] = 0" (subscript_expression "puVar3[param_2]" identifier [ identifier ]) = number_literal) ;) (expression_statement "iVar4 = FUN_00014f90(puVar3,param_2 + 2U);" (assignment_expression "iVar4 = FUN_00014f90(puVar3,param_2 + 2U)" identifier = (call_expression "FUN_00014f90(puVar3,param_2 + 2U)" identifier (argument_list "(puVar3,param_2 + 2U)" ( identifier , (binary_expression "param_2 + 2U" identifier + number_literal) )))) ;) (if_statement "if (iVar4 == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00014020();\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_00014020();\n  }" { comment (expression_statement "FUN_00014020();" (call_expression "FUN_00014020()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "*(undefined4 *)(iVar4 + 0x14) = 1;" (assignment_expression "*(undefined4 *)(iVar4 + 0x14) = 1" (pointer_expression "*(undefined4 *)(iVar4 + 0x14)" * (cast_expression "(undefined4 *)(iVar4 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x14)" ( (binary_expression "iVar4 + 0x14" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(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 *pcVar1;\n  char cVar2;\n  char *base;\n  YY_BUFFER_STATE pyVar3;\n  char *pcVar4;\n  \n  base = (char *)malloc(_yybytes_len + 2U);\n  if (base == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    yy_fatal_error("out of dynamic memory in yy_scan_bytes()");\n  }\n  pcVar1 = yybytes + _yybytes_len;\n  pcVar4 = base;\n  if (0 < _yybytes_len) {\n    do {\n      cVar2 = *yybytes;\n      yybytes = yybytes + 1;\n      *pcVar4 = cVar2;\n      pcVar4 = pcVar4 + 1;\n    } while (yybytes != pcVar1);\n  }\n  base[_yybytes_len + 1] = '\0';\n  base[_yybytes_len] = '\0';\n  pyVar3 = yy_scan_buffer(base,_yybytes_len + 2U);\n  if (pyVar3 == (YY_BUFFER_STATE)0x0) {\n                    /* WARNING: Subroutine does not return */\n    yy_fatal_error("bad buffer in yy_scan_bytes()");\n  }\n  pyVar3->yy_is_our_buffer = 1;\n  return pyVar3;\n}\n\n" comment comment (function_definition "YY_BUFFER_STATE yy_scan_bytes(char *yybytes,int _yybytes_len)\n\n{\n  char *pcVar1;\n  char cVar2;\n  char *base;\n  YY_BUFFER_STATE pyVar3;\n  char *pcVar4;\n  \n  base = (char *)malloc(_yybytes_len + 2U);\n  if (base == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    yy_fatal_error("out of dynamic memory in yy_scan_bytes()");\n  }\n  pcVar1 = yybytes + _yybytes_len;\n  pcVar4 = base;\n  if (0 < _yybytes_len) {\n    do {\n      cVar2 = *yybytes;\n      yybytes = yybytes + 1;\n      *pcVar4 = cVar2;\n      pcVar4 = pcVar4 + 1;\n    } while (yybytes != pcVar1);\n  }\n  base[_yybytes_len + 1] = '\0';\n  base[_yybytes_len] = '\0';\n  pyVar3 = yy_scan_buffer(base,_yybytes_len + 2U);\n  if (pyVar3 == (YY_BUFFER_STATE)0x0) {\n                    /* WARNING: Subroutine does not return */\n    yy_fatal_error("bad buffer in yy_scan_bytes()");\n  }\n  pyVar3->yy_is_our_buffer = 1;\n  return pyVar3;\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 *pcVar1;\n  char cVar2;\n  char *base;\n  YY_BUFFER_STATE pyVar3;\n  char *pcVar4;\n  \n  base = (char *)malloc(_yybytes_len + 2U);\n  if (base == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    yy_fatal_error("out of dynamic memory in yy_scan_bytes()");\n  }\n  pcVar1 = yybytes + _yybytes_len;\n  pcVar4 = base;\n  if (0 < _yybytes_len) {\n    do {\n      cVar2 = *yybytes;\n      yybytes = yybytes + 1;\n      *pcVar4 = cVar2;\n      pcVar4 = pcVar4 + 1;\n    } while (yybytes != pcVar1);\n  }\n  base[_yybytes_len + 1] = '\0';\n  base[_yybytes_len] = '\0';\n  pyVar3 = yy_scan_buffer(base,_yybytes_len + 2U);\n  if (pyVar3 == (YY_BUFFER_STATE)0x0) {\n                    /* WARNING: Subroutine does not return */\n    yy_fatal_error("bad buffer in yy_scan_bytes()");\n  }\n  pyVar3->yy_is_our_buffer = 1;\n  return pyVar3;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "char *base;" primitive_type (pointer_declarator "*base" * identifier) ;) (declaration "YY_BUFFER_STATE pyVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (expression_statement "base = (char *)malloc(_yybytes_len + 2U);" (assignment_expression "base = (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 (base == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    yy_fatal_error("out of dynamic memory in yy_scan_bytes()");\n  }" if (parenthesized_expression "(base == (char *)0x0)" ( (binary_expression "base == (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 ") ))) ;) })) (expression_statement "pcVar1 = yybytes + _yybytes_len;" (assignment_expression "pcVar1 = yybytes + _yybytes_len" identifier = (binary_expression "yybytes + _yybytes_len" identifier + identifier)) ;) (expression_statement "pcVar4 = base;" (assignment_expression "pcVar4 = base" identifier = identifier) ;) (if_statement "if (0 < _yybytes_len) {\n    do {\n      cVar2 = *yybytes;\n      yybytes = yybytes + 1;\n      *pcVar4 = cVar2;\n      pcVar4 = pcVar4 + 1;\n    } while (yybytes != pcVar1);\n  }" if (parenthesized_expression "(0 < _yybytes_len)" ( (binary_expression "0 < _yybytes_len" number_literal < identifier) )) (compound_statement "{\n    do {\n      cVar2 = *yybytes;\n      yybytes = yybytes + 1;\n      *pcVar4 = cVar2;\n      pcVar4 = pcVar4 + 1;\n    } while (yybytes != pcVar1);\n  }" { (do_statement "do {\n      cVar2 = *yybytes;\n      yybytes = yybytes + 1;\n      *pcVar4 = cVar2;\n      pcVar4 = pcVar4 + 1;\n    } while (yybytes != pcVar1);" do (compound_statement "{\n      cVar2 = *yybytes;\n      yybytes = yybytes + 1;\n      *pcVar4 = cVar2;\n      pcVar4 = pcVar4 + 1;\n    }" { (expression_statement "cVar2 = *yybytes;" (assignment_expression "cVar2 = *yybytes" identifier = (pointer_expression "*yybytes" * identifier)) ;) (expression_statement "yybytes = yybytes + 1;" (assignment_expression "yybytes = yybytes + 1" identifier = (binary_expression "yybytes + 1" identifier + number_literal)) ;) (expression_statement "*pcVar4 = cVar2;" (assignment_expression "*pcVar4 = cVar2" (pointer_expression "*pcVar4" * identifier) = identifier) ;) (expression_statement "pcVar4 = pcVar4 + 1;" (assignment_expression "pcVar4 = pcVar4 + 1" identifier = (binary_expression "pcVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(yybytes != pcVar1)" ( (binary_expression "yybytes != pcVar1" identifier != identifier) )) ;) })) (expression_statement "base[_yybytes_len + 1] = '\0';" (assignment_expression "base[_yybytes_len + 1] = '\0'" (subscript_expression "base[_yybytes_len + 1]" identifier [ (binary_expression "_yybytes_len + 1" identifier + number_literal) ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "base[_yybytes_len] = '\0';" (assignment_expression "base[_yybytes_len] = '\0'" (subscript_expression "base[_yybytes_len]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pyVar3 = yy_scan_buffer(base,_yybytes_len + 2U);" (assignment_expression "pyVar3 = yy_scan_buffer(base,_yybytes_len + 2U)" identifier = (call_expression "yy_scan_buffer(base,_yybytes_len + 2U)" identifier (argument_list "(base,_yybytes_len + 2U)" ( identifier , (binary_expression "_yybytes_len + 2U" identifier + number_literal) )))) ;) (if_statement "if (pyVar3 == (YY_BUFFER_STATE)0x0) {\n                    /* WARNING: Subroutine does not return */\n    yy_fatal_error("bad buffer in yy_scan_bytes()");\n  }" if (parenthesized_expression "(pyVar3 == (YY_BUFFER_STATE)0x0)" ( (binary_expression "pyVar3 == (YY_BUFFER_STATE)0x0" identifier == (cast_expression "(YY_BUFFER_STATE)0x0" ( (type_descriptor "YY_BUFFER_STATE" type_identifier) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    yy_fatal_error("bad buffer in yy_scan_bytes()");\n  }" { 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 ") ))) ;) })) (expression_statement "pyVar3->yy_is_our_buffer = 1;" (assignment_expression "pyVar3->yy_is_our_buffer = 1" (field_expression "pyVar3->yy_is_our_buffer" identifier -> field_identifier) = number_literal) ;) (return_statement "return pyVar3;" return identifier ;) })))
(translation_unit "void FUN_00015040(undefined1 *param_1,int param_2)\n\n{\n  undefined1 *puVar1;\n  undefined1 uVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  undefined1 *puVar5;\n  \n  puVar3 = (undefined1 *)malloc(param_2 + 2U);\n  if (puVar3 == (undefined1 *)0x0) {\n                    \n    FUN_00014020();\n  }\n  puVar1 = param_1 + param_2;\n  puVar5 = puVar3;\n  if (0 < param_2) {\n    do {\n      uVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *puVar5 = uVar2;\n      puVar5 = puVar5 + 1;\n    } while (param_1 != puVar1);\n  }\n  puVar3[param_2 + 1] = 0;\n  puVar3[param_2] = 0;\n  iVar4 = FUN_00014f90(puVar3,param_2 + 2U);\n  if (iVar4 == 0) {\n                    \n    FUN_00014020();\n  }\n  *(undefined4 *)(iVar4 + 0x14) = 1;\n  return;\n}\n\n" (function_definition "void FUN_00015040(undefined1 *param_1,int param_2)\n\n{\n  undefined1 *puVar1;\n  undefined1 uVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  undefined1 *puVar5;\n  \n  puVar3 = (undefined1 *)malloc(param_2 + 2U);\n  if (puVar3 == (undefined1 *)0x0) {\n                    \n    FUN_00014020();\n  }\n  puVar1 = param_1 + param_2;\n  puVar5 = puVar3;\n  if (0 < param_2) {\n    do {\n      uVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *puVar5 = uVar2;\n      puVar5 = puVar5 + 1;\n    } while (param_1 != puVar1);\n  }\n  puVar3[param_2 + 1] = 0;\n  puVar3[param_2] = 0;\n  iVar4 = FUN_00014f90(puVar3,param_2 + 2U);\n  if (iVar4 == 0) {\n                    \n    FUN_00014020();\n  }\n  *(undefined4 *)(iVar4 + 0x14) = 1;\n  return;\n}" primitive_type (function_declarator "FUN_00015040(undefined1 *param_1,int param_2)" identifier (parameter_list "(undefined1 *param_1,int param_2)" ( (parameter_declaration "undefined1 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined1 *puVar1;\n  undefined1 uVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  undefined1 *puVar5;\n  \n  puVar3 = (undefined1 *)malloc(param_2 + 2U);\n  if (puVar3 == (undefined1 *)0x0) {\n                    \n    FUN_00014020();\n  }\n  puVar1 = param_1 + param_2;\n  puVar5 = puVar3;\n  if (0 < param_2) {\n    do {\n      uVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *puVar5 = uVar2;\n      puVar5 = puVar5 + 1;\n    } while (param_1 != puVar1);\n  }\n  puVar3[param_2 + 1] = 0;\n  puVar3[param_2] = 0;\n  iVar4 = FUN_00014f90(puVar3,param_2 + 2U);\n  if (iVar4 == 0) {\n                    \n    FUN_00014020();\n  }\n  *(undefined4 *)(iVar4 + 0x14) = 1;\n  return;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined1 uVar2;" type_identifier identifier ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined1 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (expression_statement "puVar3 = (undefined1 *)malloc(param_2 + 2U);" (assignment_expression "puVar3 = (undefined1 *)malloc(param_2 + 2U)" identifier = (cast_expression "(undefined1 *)malloc(param_2 + 2U)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(param_2 + 2U)" identifier (argument_list "(param_2 + 2U)" ( (binary_expression "param_2 + 2U" identifier + number_literal) ))))) ;) (if_statement "if (puVar3 == (undefined1 *)0x0) {\n                    \n    FUN_00014020();\n  }" if (parenthesized_expression "(puVar3 == (undefined1 *)0x0)" ( (binary_expression "puVar3 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n    FUN_00014020();\n  }" { (expression_statement "FUN_00014020();" (call_expression "FUN_00014020()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "puVar1 = param_1 + param_2;" (assignment_expression "puVar1 = param_1 + param_2" identifier = (binary_expression "param_1 + param_2" identifier + identifier)) ;) (expression_statement "puVar5 = puVar3;" (assignment_expression "puVar5 = puVar3" identifier = identifier) ;) (if_statement "if (0 < param_2) {\n    do {\n      uVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *puVar5 = uVar2;\n      puVar5 = puVar5 + 1;\n    } while (param_1 != puVar1);\n  }" if (parenthesized_expression "(0 < param_2)" ( (binary_expression "0 < param_2" number_literal < identifier) )) (compound_statement "{\n    do {\n      uVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *puVar5 = uVar2;\n      puVar5 = puVar5 + 1;\n    } while (param_1 != puVar1);\n  }" { (do_statement "do {\n      uVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *puVar5 = uVar2;\n      puVar5 = puVar5 + 1;\n    } while (param_1 != puVar1);" do (compound_statement "{\n      uVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *puVar5 = uVar2;\n      puVar5 = puVar5 + 1;\n    }" { (expression_statement "uVar2 = *param_1;" (assignment_expression "uVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "*puVar5 = uVar2;" (assignment_expression "*puVar5 = uVar2" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_1 != puVar1)" ( (binary_expression "param_1 != puVar1" identifier != identifier) )) ;) })) (expression_statement "puVar3[param_2 + 1] = 0;" (assignment_expression "puVar3[param_2 + 1] = 0" (subscript_expression "puVar3[param_2 + 1]" identifier [ (binary_expression "param_2 + 1" identifier + number_literal) ]) = number_literal) ;) (expression_statement "puVar3[param_2] = 0;" (assignment_expression "puVar3[param_2] = 0" (subscript_expression "puVar3[param_2]" identifier [ identifier ]) = number_literal) ;) (expression_statement "iVar4 = FUN_00014f90(puVar3,param_2 + 2U);" (assignment_expression "iVar4 = FUN_00014f90(puVar3,param_2 + 2U)" identifier = (call_expression "FUN_00014f90(puVar3,param_2 + 2U)" identifier (argument_list "(puVar3,param_2 + 2U)" ( identifier , (binary_expression "param_2 + 2U" identifier + number_literal) )))) ;) (if_statement "if (iVar4 == 0) {\n                    \n    FUN_00014020();\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    FUN_00014020();\n  }" { (expression_statement "FUN_00014020();" (call_expression "FUN_00014020()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "*(undefined4 *)(iVar4 + 0x14) = 1;" (assignment_expression "*(undefined4 *)(iVar4 + 0x14) = 1" (pointer_expression "*(undefined4 *)(iVar4 + 0x14)" * (cast_expression "(undefined4 *)(iVar4 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x14)" ( (binary_expression "iVar4 + 0x14" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (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 ( ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_00015040(undefined1 *param_1,int param_2)\n\n{\n  undefined1 *puVar1;\n  undefined1 uVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  undefined1 *puVar5;\n  \n  puVar3 = (undefined1 *)malloc(param_2 + 2U);\n  if (puVar3 == (undefined1 *)0x0) {\n                    \n    FUN_00014020();\n  }\n  puVar1 = param_1 + param_2;\n  puVar5 = puVar3;\n  if (0 < param_2) {\n    do {\n      uVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *puVar5 = uVar2;\n      puVar5 = puVar5 + 1;\n    } while (param_1 != puVar1);\n  }\n  puVar3[param_2 + 1] = 0;\n  puVar3[param_2] = 0;\n  iVar4 = FUN_00014f90(puVar3,param_2 + 2U);\n  if (iVar4 == 0) {\n                    \n    FUN_00014020();\n  }\n  *(undefined4 *)(iVar4 + 0x14) = 1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00015040(undefined1 *param_1,int param_2)" (identifier "FUN_00015040") (parameter_list "(undefined1 *param_1,int param_2)" (( "(") (parameter_declaration "undefined1 *param_1" (type_identifier "undefined1") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined1 *puVar1;\n  undefined1 uVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  undefined1 *puVar5;\n  \n  puVar3 = (undefined1 *)malloc(param_2 + 2U);\n  if (puVar3 == (undefined1 *)0x0) {\n                    \n    FUN_00014020();\n  }\n  puVar1 = param_1 + param_2;\n  puVar5 = puVar3;\n  if (0 < param_2) {\n    do {\n      uVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *puVar5 = uVar2;\n      puVar5 = puVar5 + 1;\n    } while (param_1 != puVar1);\n  }\n  puVar3[param_2 + 1] = 0;\n  puVar3[param_2] = 0;\n  iVar4 = FUN_00014f90(puVar3,param_2 + 2U);\n  if (iVar4 == 0) {\n                    \n    FUN_00014020();\n  }\n  *(undefined4 *)(iVar4 + 0x14) = 1;\n  return;\n}" ({ "{") (declaration "undefined1 *puVar1;" (type_identifier "undefined1") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined1 uVar2;" (type_identifier "undefined1") (identifier "uVar2") (; ";")) (declaration "undefined1 *puVar3;" (type_identifier "undefined1") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined1 *puVar5;" (type_identifier "undefined1") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (expression_statement "puVar3 = (undefined1 *)malloc(param_2 + 2U);" (assignment_expression "puVar3 = (undefined1 *)malloc(param_2 + 2U)" (identifier "puVar3") (= "=") (cast_expression "(undefined1 *)malloc(param_2 + 2U)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "malloc(param_2 + 2U)" (identifier "malloc") (argument_list "(param_2 + 2U)" (( "(") (binary_expression "param_2 + 2U" (identifier "param_2") (+ "+") (number_literal "2U")) () ")"))))) (; ";")) (if_statement "if (puVar3 == (undefined1 *)0x0) {\n                    \n    FUN_00014020();\n  }" (if "if") (parenthesized_expression "(puVar3 == (undefined1 *)0x0)" (( "(") (binary_expression "puVar3 == (undefined1 *)0x0" (identifier "puVar3") (== "==") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n    FUN_00014020();\n  }" ({ "{") (expression_statement "FUN_00014020();" (call_expression "FUN_00014020()" (identifier "FUN_00014020") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "puVar1 = param_1 + param_2;" (assignment_expression "puVar1 = param_1 + param_2" (identifier "puVar1") (= "=") (binary_expression "param_1 + param_2" (identifier "param_1") (+ "+") (identifier "param_2"))) (; ";")) (expression_statement "puVar5 = puVar3;" (assignment_expression "puVar5 = puVar3" (identifier "puVar5") (= "=") (identifier "puVar3")) (; ";")) (if_statement "if (0 < param_2) {\n    do {\n      uVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *puVar5 = uVar2;\n      puVar5 = puVar5 + 1;\n    } while (param_1 != puVar1);\n  }" (if "if") (parenthesized_expression "(0 < param_2)" (( "(") (binary_expression "0 < param_2" (number_literal "0") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n    do {\n      uVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *puVar5 = uVar2;\n      puVar5 = puVar5 + 1;\n    } while (param_1 != puVar1);\n  }" ({ "{") (do_statement "do {\n      uVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *puVar5 = uVar2;\n      puVar5 = puVar5 + 1;\n    } while (param_1 != puVar1);" (do "do") (compound_statement "{\n      uVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *puVar5 = uVar2;\n      puVar5 = puVar5 + 1;\n    }" ({ "{") (expression_statement "uVar2 = *param_1;" (assignment_expression "uVar2 = *param_1" (identifier "uVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*puVar5 = uVar2;" (assignment_expression "*puVar5 = uVar2" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" (identifier "puVar5") (= "=") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_1 != puVar1)" (( "(") (binary_expression "param_1 != puVar1" (identifier "param_1") (!= "!=") (identifier "puVar1")) () ")")) (; ";")) (} "}"))) (expression_statement "puVar3[param_2 + 1] = 0;" (assignment_expression "puVar3[param_2 + 1] = 0" (subscript_expression "puVar3[param_2 + 1]" (identifier "puVar3") ([ "[") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1")) (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3[param_2] = 0;" (assignment_expression "puVar3[param_2] = 0" (subscript_expression "puVar3[param_2]" (identifier "puVar3") ([ "[") (identifier "param_2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar4 = FUN_00014f90(puVar3,param_2 + 2U);" (assignment_expression "iVar4 = FUN_00014f90(puVar3,param_2 + 2U)" (identifier "iVar4") (= "=") (call_expression "FUN_00014f90(puVar3,param_2 + 2U)" (identifier "FUN_00014f90") (argument_list "(puVar3,param_2 + 2U)" (( "(") (identifier "puVar3") (, ",") (binary_expression "param_2 + 2U" (identifier "param_2") (+ "+") (number_literal "2U")) () ")")))) (; ";")) (if_statement "if (iVar4 == 0) {\n                    \n    FUN_00014020();\n  }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_00014020();\n  }" ({ "{") (expression_statement "FUN_00014020();" (call_expression "FUN_00014020()" (identifier "FUN_00014020") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(iVar4 + 0x14) = 1;" (assignment_expression "*(undefined4 *)(iVar4 + 0x14) = 1" (pointer_expression "*(undefined4 *)(iVar4 + 0x14)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x14)" (( "(") (binary_expression "iVar4 + 0x14" (identifier "iVar4") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (number_literal "1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

type_1 function_1(char *var_5,int var_2)

{
  char *var_7;
  char cVar2;
  char *var_3;
  type_1 var_9;
  char *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()");
  }
  var_7 = var_5 + var_2;
  var_6 = var_3;
  if (0 < var_2) {
    do {
      cVar2 = *var_5;
      var_5 = var_5 + 1;
      *var_6 = cVar2;
      var_6 = var_6 + 1;
    } while (var_5 != var_7);
  }
  var_3[var_2 + 1] = '\0';
  var_3[var_2] = '\0';
  var_9 = var_8(var_3,var_2 + 2U);
  if (var_9 == (type_1)0x0) {
                    /* WARNING: Subroutine does not return */
    var_4("bad buffer in yy_scan_bytes()");
  }
  var_9->yy_is_our_buffer = 1;
  return var_9;
}


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

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

void MASKED(undefined1 *param_1,int param_2)

{
  undefined1 *puVar1;
  undefined1 uVar2;
  undefined1 *puVar3;
  int iVar4;
  undefined1 *puVar5;
  
  puVar3 = (undefined1 *)malloc(param_2 + 2U);
  if (puVar3 == (undefined1 *)0x0) {
                    /* WARNING: Subroutine does not return */
    FUN_00014020();
  }
  puVar1 = param_1 + param_2;
  puVar5 = puVar3;
  if (0 < param_2) {
    do {
      uVar2 = *param_1;
      param_1 = param_1 + 1;
      *puVar5 = uVar2;
      puVar5 = puVar5 + 1;
    } while (param_1 != puVar1);
  }
  puVar3[param_2 + 1] = 0;
  puVar3[param_2] = 0;
  iVar4 = FUN_00014f90(puVar3,param_2 + 2U);
  if (iVar4 == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_00014020();
  }
  *(undefined4 *)(iVar4 + 0x14) = 1;
  return;
}

