
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* void std::string::_M_construct<__normal_iterator<char*, std::string > >(__normal_iterator<char*,
   std::string >, __normal_iterator<char*, std::string >, std::forward_iterator_tag) */

void std::string::_M_construct<__normal_iterator<char*,std::string>>
               (string *param_1,undefined1 *param_2,int param_3)

{
  undefined1 *__dest;
  uint __n;
  uint local_20 [3];
  undefined4 uStack_14;
  
  uStack_14 = 0x1f1599;
  __n = param_3 - (int)param_2;
  local_20[0] = __n;
  if (__n < 0x10) {
    __dest = *(undefined1 **)param_1;
    if (__n == 1) {
      *__dest = *param_2;
      *(undefined4 *)(param_1 + 4) = 1;
      *(undefined1 *)(*(int *)param_1 + 1) = 0;
      return;
    }
    if (__n == 0) {
      *(undefined4 *)(param_1 + 4) = 0;
      *__dest = 0;
      return;
    }
  }
  else {
    __dest = (undefined1 *)_M_create(param_1,local_20,0);
    *(undefined1 **)param_1 = __dest;
    *(uint *)(param_1 + 8) = local_20[0];
  }
  memcpy(__dest,param_2,__n);
  *(uint *)(param_1 + 4) = local_20[0];
  *(undefined1 *)(*(int *)param_1 + local_20[0]) = 0;
  return;
}



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

void FUN_001f1590(int *param_1,undefined1 *param_2,int param_3)

{
  undefined1 *__dest;
  uint __n;
  uint local_20 [3];
  undefined4 uStack_14;
  
  uStack_14 = 0x1f1599;
  __n = param_3 - (int)param_2;
  local_20[0] = __n;
  if (__n < 0x10) {
    __dest = (undefined1 *)*param_1;
    if (__n == 1) {
      *__dest = *param_2;
      param_1[1] = 1;
      *(undefined1 *)(*param_1 + 1) = 0;
      return;
    }
    if (__n == 0) {
      param_1[1] = 0;
      *__dest = 0;
      return;
    }
  }
  else {
    __dest = (undefined1 *)FUN_001ee4c0(param_1,local_20,0);
    *param_1 = (int)__dest;
    param_1[2] = local_20[0];
  }
  memcpy(__dest,param_2,__n);
  param_1[1] = local_20[0];
  *(undefined1 *)(*param_1 + local_20[0]) = 0;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x19da67
SUB ESP,0x1c
MOV EBP,dword ptr [ESP + 0x34]
MOV ESI,dword ptr [ESP + 0x38]
MOV EDI,dword ptr [ESP + 0x30]
SUB ESI,EBP
MOV dword ptr [ESP + 0xc],ESI
CMP ESI,0xf
JA 0x001f15f8
MOV EAX,dword ptr [EDI]
CMP ESI,0x1
JNZ 0x001f15e0
MOVZX EDX,byte ptr [EBP]
MOV byte ptr [EAX],DL
MOV ESI,dword ptr [ESP + 0xc]
MOV EAX,dword ptr [EDI]
MOV dword ptr [EDI + 0x4],ESI
MOV byte ptr [EAX + ESI*0x1],0x0
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
TEST ESI,ESI
JNZ 0x001f1614
MOV dword ptr [EDI + 0x4],ESI
MOV byte ptr [EAX + ESI*0x1],0x0
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
PUSH 0x0
LEA EAX,[ESP + 0x14]
PUSH EAX
PUSH EDI
CALL 0x001ee4c0
MOV EDX,dword ptr [ESP + 0x1c]
ADD ESP,0x10
MOV dword ptr [EDI],EAX
MOV dword ptr [EDI + 0x8],EDX
SUB ESP,0x4
PUSH ESI
PUSH EBP
PUSH EAX
CALL 0x000295c0
MOV ESI,dword ptr [ESP + 0x1c]
MOV EAX,dword ptr [EDI]
ADD ESP,0x10
MOV dword ptr [EDI + 0x4],ESI
MOV byte ptr [EAX + ESI*0x1],0x0
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_001f1590(int *param_1,undefined1 *param_2,int param_3)\n\n{\n  undefined1 *__dest;\n  uint __n;\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1f1599;\n  __n = param_3 - (int)param_2;\n  local_20[0] = __n;\n  if (__n < 0x10) {\n    __dest = (undefined1 *)*param_1;\n    if (__n == 1) {\n      *__dest = *param_2;\n      param_1[1] = 1;\n      *(undefined1 *)(*param_1 + 1) = 0;\n      return;\n    }\n    if (__n == 0) {\n      param_1[1] = 0;\n      *__dest = 0;\n      return;\n    }\n  }\n  else {\n    __dest = (undefined1 *)FUN_001ee4c0(param_1,local_20,0);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }\n  memcpy(__dest,param_2,__n);\n  param_1[1] = local_20[0];\n  *(undefined1 *)(*param_1 + local_20[0]) = 0;\n  return;\n}\n\n" comment (function_definition "void FUN_001f1590(int *param_1,undefined1 *param_2,int param_3)\n\n{\n  undefined1 *__dest;\n  uint __n;\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1f1599;\n  __n = param_3 - (int)param_2;\n  local_20[0] = __n;\n  if (__n < 0x10) {\n    __dest = (undefined1 *)*param_1;\n    if (__n == 1) {\n      *__dest = *param_2;\n      param_1[1] = 1;\n      *(undefined1 *)(*param_1 + 1) = 0;\n      return;\n    }\n    if (__n == 0) {\n      param_1[1] = 0;\n      *__dest = 0;\n      return;\n    }\n  }\n  else {\n    __dest = (undefined1 *)FUN_001ee4c0(param_1,local_20,0);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }\n  memcpy(__dest,param_2,__n);\n  param_1[1] = local_20[0];\n  *(undefined1 *)(*param_1 + local_20[0]) = 0;\n  return;\n}" primitive_type (function_declarator "FUN_001f1590(int *param_1,undefined1 *param_2,int param_3)" identifier (parameter_list "(int *param_1,undefined1 *param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined1 *__dest;\n  uint __n;\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1f1599;\n  __n = param_3 - (int)param_2;\n  local_20[0] = __n;\n  if (__n < 0x10) {\n    __dest = (undefined1 *)*param_1;\n    if (__n == 1) {\n      *__dest = *param_2;\n      param_1[1] = 1;\n      *(undefined1 *)(*param_1 + 1) = 0;\n      return;\n    }\n    if (__n == 0) {\n      param_1[1] = 0;\n      *__dest = 0;\n      return;\n    }\n  }\n  else {\n    __dest = (undefined1 *)FUN_001ee4c0(param_1,local_20,0);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }\n  memcpy(__dest,param_2,__n);\n  param_1[1] = local_20[0];\n  *(undefined1 *)(*param_1 + local_20[0]) = 0;\n  return;\n}" { (declaration "undefined1 *__dest;" type_identifier (pointer_declarator "*__dest" * identifier) ;) (declaration "uint __n;" type_identifier identifier ;) (declaration "uint local_20 [3];" type_identifier (array_declarator "local_20 [3]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1f1599;" (assignment_expression "uStack_14 = 0x1f1599" identifier = number_literal) ;) (expression_statement "__n = param_3 - (int)param_2;" (assignment_expression "__n = param_3 - (int)param_2" identifier = (binary_expression "param_3 - (int)param_2" identifier - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "local_20[0] = __n;" (assignment_expression "local_20[0] = __n" (subscript_expression "local_20[0]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (__n < 0x10) {\n    __dest = (undefined1 *)*param_1;\n    if (__n == 1) {\n      *__dest = *param_2;\n      param_1[1] = 1;\n      *(undefined1 *)(*param_1 + 1) = 0;\n      return;\n    }\n    if (__n == 0) {\n      param_1[1] = 0;\n      *__dest = 0;\n      return;\n    }\n  }\n  else {\n    __dest = (undefined1 *)FUN_001ee4c0(param_1,local_20,0);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }" if (parenthesized_expression "(__n < 0x10)" ( (binary_expression "__n < 0x10" identifier < number_literal) )) (compound_statement "{\n    __dest = (undefined1 *)*param_1;\n    if (__n == 1) {\n      *__dest = *param_2;\n      param_1[1] = 1;\n      *(undefined1 *)(*param_1 + 1) = 0;\n      return;\n    }\n    if (__n == 0) {\n      param_1[1] = 0;\n      *__dest = 0;\n      return;\n    }\n  }" { (expression_statement "__dest = (undefined1 *)*param_1;" (assignment_expression "__dest = (undefined1 *)*param_1" identifier = (cast_expression "(undefined1 *)*param_1" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (__n == 1) {\n      *__dest = *param_2;\n      param_1[1] = 1;\n      *(undefined1 *)(*param_1 + 1) = 0;\n      return;\n    }" if (parenthesized_expression "(__n == 1)" ( (binary_expression "__n == 1" identifier == number_literal) )) (compound_statement "{\n      *__dest = *param_2;\n      param_1[1] = 1;\n      *(undefined1 *)(*param_1 + 1) = 0;\n      return;\n    }" { (expression_statement "*__dest = *param_2;" (assignment_expression "*__dest = *param_2" (pointer_expression "*__dest" * identifier) = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "param_1[1] = 1;" (assignment_expression "param_1[1] = 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)(*param_1 + 1) = 0;" (assignment_expression "*(undefined1 *)(*param_1 + 1) = 0" (pointer_expression "*(undefined1 *)(*param_1 + 1)" * (cast_expression "(undefined1 *)(*param_1 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 1)" ( (binary_expression "*param_1 + 1" (pointer_expression "*param_1" * identifier) + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) (if_statement "if (__n == 0) {\n      param_1[1] = 0;\n      *__dest = 0;\n      return;\n    }" if (parenthesized_expression "(__n == 0)" ( (binary_expression "__n == 0" identifier == number_literal) )) (compound_statement "{\n      param_1[1] = 0;\n      *__dest = 0;\n      return;\n    }" { (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*__dest = 0;" (assignment_expression "*__dest = 0" (pointer_expression "*__dest" * identifier) = number_literal) ;) (return_statement "return;" return ;) })) }) (else_clause "else {\n    __dest = (undefined1 *)FUN_001ee4c0(param_1,local_20,0);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }" else (compound_statement "{\n    __dest = (undefined1 *)FUN_001ee4c0(param_1,local_20,0);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }" { (expression_statement "__dest = (undefined1 *)FUN_001ee4c0(param_1,local_20,0);" (assignment_expression "__dest = (undefined1 *)FUN_001ee4c0(param_1,local_20,0)" identifier = (cast_expression "(undefined1 *)FUN_001ee4c0(param_1,local_20,0)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001ee4c0(param_1,local_20,0)" identifier (argument_list "(param_1,local_20,0)" ( identifier , identifier , number_literal ))))) ;) (expression_statement "*param_1 = (int)__dest;" (assignment_expression "*param_1 = (int)__dest" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_1[2] = local_20[0];" (assignment_expression "param_1[2] = local_20[0]" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (subscript_expression "local_20[0]" identifier [ number_literal ])) ;) }))) (expression_statement "memcpy(__dest,param_2,__n);" (call_expression "memcpy(__dest,param_2,__n)" identifier (argument_list "(__dest,param_2,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "param_1[1] = local_20[0];" (assignment_expression "param_1[1] = local_20[0]" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (subscript_expression "local_20[0]" identifier [ number_literal ])) ;) (expression_statement "*(undefined1 *)(*param_1 + local_20[0]) = 0;" (assignment_expression "*(undefined1 *)(*param_1 + local_20[0]) = 0" (pointer_expression "*(undefined1 *)(*param_1 + local_20[0])" * (cast_expression "(undefined1 *)(*param_1 + local_20[0])" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + local_20[0])" ( (binary_expression "*param_1 + local_20[0]" (pointer_expression "*param_1" * identifier) + (subscript_expression "local_20[0]" 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/* void std::string::_M_construct<__normal_iterator<char*, std::string > >(__normal_iterator<char*,\n   std::string >, __normal_iterator<char*, std::string >, std::forward_iterator_tag) */\n\nvoid std::string::_M_construct<__normal_iterator<char*,std::string>>\n               (string *param_1,undefined1 *param_2,int param_3)\n\n{\n  undefined1 *__dest;\n  uint __n;\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1f1599;\n  __n = param_3 - (int)param_2;\n  local_20[0] = __n;\n  if (__n < 0x10) {\n    __dest = *(undefined1 **)param_1;\n    if (__n == 1) {\n      *__dest = *param_2;\n      *(undefined4 *)(param_1 + 4) = 1;\n      *(undefined1 *)(*(int *)param_1 + 1) = 0;\n      return;\n    }\n    if (__n == 0) {\n      *(undefined4 *)(param_1 + 4) = 0;\n      *__dest = 0;\n      return;\n    }\n  }\n  else {\n    __dest = (undefined1 *)_M_create(param_1,local_20,0);\n    *(undefined1 **)param_1 = __dest;\n    *(uint *)(param_1 + 8) = local_20[0];\n  }\n  memcpy(__dest,param_2,__n);\n  *(uint *)(param_1 + 4) = local_20[0];\n  *(undefined1 *)(*(int *)param_1 + local_20[0]) = 0;\n  return;\n}\n\n" comment comment (function_definition "void std::string::_M_construct<__normal_iterator<char*,std::string>>\n               (string *param_1,undefined1 *param_2,int param_3)\n\n{\n  undefined1 *__dest;\n  uint __n;\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1f1599;\n  __n = param_3 - (int)param_2;\n  local_20[0] = __n;\n  if (__n < 0x10) {\n    __dest = *(undefined1 **)param_1;\n    if (__n == 1) {\n      *__dest = *param_2;\n      *(undefined4 *)(param_1 + 4) = 1;\n      *(undefined1 *)(*(int *)param_1 + 1) = 0;\n      return;\n    }\n    if (__n == 0) {\n      *(undefined4 *)(param_1 + 4) = 0;\n      *__dest = 0;\n      return;\n    }\n  }\n  else {\n    __dest = (undefined1 *)_M_create(param_1,local_20,0);\n    *(undefined1 **)param_1 = __dest;\n    *(uint *)(param_1 + 8) = local_20[0];\n  }\n  memcpy(__dest,param_2,__n);\n  *(uint *)(param_1 + 4) = local_20[0];\n  *(undefined1 *)(*(int *)param_1 + local_20[0]) = 0;\n  return;\n}" primitive_type (ERROR "std::string::_M_construct<__normal_iterator<char" identifier : : identifier : : identifier < identifier < primitive_type) (pointer_declarator "*,std::string>>\n               (string *param_1,undefined1 *param_2,int param_3)" * (ERROR ",std::" , identifier : :) (function_declarator "string>>\n               (string *param_1,undefined1 *param_2,int param_3)" identifier (ERROR ">>" >>) (parameter_list "(string *param_1,undefined1 *param_2,int param_3)" ( (parameter_declaration "string *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) )))) (compound_statement "{\n  undefined1 *__dest;\n  uint __n;\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1f1599;\n  __n = param_3 - (int)param_2;\n  local_20[0] = __n;\n  if (__n < 0x10) {\n    __dest = *(undefined1 **)param_1;\n    if (__n == 1) {\n      *__dest = *param_2;\n      *(undefined4 *)(param_1 + 4) = 1;\n      *(undefined1 *)(*(int *)param_1 + 1) = 0;\n      return;\n    }\n    if (__n == 0) {\n      *(undefined4 *)(param_1 + 4) = 0;\n      *__dest = 0;\n      return;\n    }\n  }\n  else {\n    __dest = (undefined1 *)_M_create(param_1,local_20,0);\n    *(undefined1 **)param_1 = __dest;\n    *(uint *)(param_1 + 8) = local_20[0];\n  }\n  memcpy(__dest,param_2,__n);\n  *(uint *)(param_1 + 4) = local_20[0];\n  *(undefined1 *)(*(int *)param_1 + local_20[0]) = 0;\n  return;\n}" { (declaration "undefined1 *__dest;" type_identifier (pointer_declarator "*__dest" * identifier) ;) (declaration "uint __n;" type_identifier identifier ;) (declaration "uint local_20 [3];" type_identifier (array_declarator "local_20 [3]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1f1599;" (assignment_expression "uStack_14 = 0x1f1599" identifier = number_literal) ;) (expression_statement "__n = param_3 - (int)param_2;" (assignment_expression "__n = param_3 - (int)param_2" identifier = (binary_expression "param_3 - (int)param_2" identifier - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "local_20[0] = __n;" (assignment_expression "local_20[0] = __n" (subscript_expression "local_20[0]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (__n < 0x10) {\n    __dest = *(undefined1 **)param_1;\n    if (__n == 1) {\n      *__dest = *param_2;\n      *(undefined4 *)(param_1 + 4) = 1;\n      *(undefined1 *)(*(int *)param_1 + 1) = 0;\n      return;\n    }\n    if (__n == 0) {\n      *(undefined4 *)(param_1 + 4) = 0;\n      *__dest = 0;\n      return;\n    }\n  }\n  else {\n    __dest = (undefined1 *)_M_create(param_1,local_20,0);\n    *(undefined1 **)param_1 = __dest;\n    *(uint *)(param_1 + 8) = local_20[0];\n  }" if (parenthesized_expression "(__n < 0x10)" ( (binary_expression "__n < 0x10" identifier < number_literal) )) (compound_statement "{\n    __dest = *(undefined1 **)param_1;\n    if (__n == 1) {\n      *__dest = *param_2;\n      *(undefined4 *)(param_1 + 4) = 1;\n      *(undefined1 *)(*(int *)param_1 + 1) = 0;\n      return;\n    }\n    if (__n == 0) {\n      *(undefined4 *)(param_1 + 4) = 0;\n      *__dest = 0;\n      return;\n    }\n  }" { (expression_statement "__dest = *(undefined1 **)param_1;" (assignment_expression "__dest = *(undefined1 **)param_1" identifier = (pointer_expression "*(undefined1 **)param_1" * (cast_expression "(undefined1 **)param_1" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (__n == 1) {\n      *__dest = *param_2;\n      *(undefined4 *)(param_1 + 4) = 1;\n      *(undefined1 *)(*(int *)param_1 + 1) = 0;\n      return;\n    }" if (parenthesized_expression "(__n == 1)" ( (binary_expression "__n == 1" identifier == number_literal) )) (compound_statement "{\n      *__dest = *param_2;\n      *(undefined4 *)(param_1 + 4) = 1;\n      *(undefined1 *)(*(int *)param_1 + 1) = 0;\n      return;\n    }" { (expression_statement "*__dest = *param_2;" (assignment_expression "*__dest = *param_2" (pointer_expression "*__dest" * identifier) = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*(undefined4 *)(param_1 + 4) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 4) = 1" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)(*(int *)param_1 + 1) = 0;" (assignment_expression "*(undefined1 *)(*(int *)param_1 + 1) = 0" (pointer_expression "*(undefined1 *)(*(int *)param_1 + 1)" * (cast_expression "(undefined1 *)(*(int *)param_1 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + 1)" ( (binary_expression "*(int *)param_1 + 1" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) (if_statement "if (__n == 0) {\n      *(undefined4 *)(param_1 + 4) = 0;\n      *__dest = 0;\n      return;\n    }" if (parenthesized_expression "(__n == 0)" ( (binary_expression "__n == 0" identifier == number_literal) )) (compound_statement "{\n      *(undefined4 *)(param_1 + 4) = 0;\n      *__dest = 0;\n      return;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 4) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 4) = 0" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*__dest = 0;" (assignment_expression "*__dest = 0" (pointer_expression "*__dest" * identifier) = number_literal) ;) (return_statement "return;" return ;) })) }) (else_clause "else {\n    __dest = (undefined1 *)_M_create(param_1,local_20,0);\n    *(undefined1 **)param_1 = __dest;\n    *(uint *)(param_1 + 8) = local_20[0];\n  }" else (compound_statement "{\n    __dest = (undefined1 *)_M_create(param_1,local_20,0);\n    *(undefined1 **)param_1 = __dest;\n    *(uint *)(param_1 + 8) = local_20[0];\n  }" { (expression_statement "__dest = (undefined1 *)_M_create(param_1,local_20,0);" (assignment_expression "__dest = (undefined1 *)_M_create(param_1,local_20,0)" identifier = (cast_expression "(undefined1 *)_M_create(param_1,local_20,0)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "_M_create(param_1,local_20,0)" identifier (argument_list "(param_1,local_20,0)" ( identifier , identifier , number_literal ))))) ;) (expression_statement "*(undefined1 **)param_1 = __dest;" (assignment_expression "*(undefined1 **)param_1 = __dest" (pointer_expression "*(undefined1 **)param_1" * (cast_expression "(undefined1 **)param_1" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "*(uint *)(param_1 + 8) = local_20[0];" (assignment_expression "*(uint *)(param_1 + 8) = local_20[0]" (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = (subscript_expression "local_20[0]" identifier [ number_literal ])) ;) }))) (expression_statement "memcpy(__dest,param_2,__n);" (call_expression "memcpy(__dest,param_2,__n)" identifier (argument_list "(__dest,param_2,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(uint *)(param_1 + 4) = local_20[0];" (assignment_expression "*(uint *)(param_1 + 4) = local_20[0]" (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = (subscript_expression "local_20[0]" identifier [ number_literal ])) ;) (expression_statement "*(undefined1 *)(*(int *)param_1 + local_20[0]) = 0;" (assignment_expression "*(undefined1 *)(*(int *)param_1 + local_20[0]) = 0" (pointer_expression "*(undefined1 *)(*(int *)param_1 + local_20[0])" * (cast_expression "(undefined1 *)(*(int *)param_1 + local_20[0])" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + local_20[0])" ( (binary_expression "*(int *)param_1 + local_20[0]" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + (subscript_expression "local_20[0]" identifier [ number_literal ])) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001f1590(int *param_1,undefined1 *param_2,int param_3)\n\n{\n  undefined1 *__dest;\n  uint __n;\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1f1599;\n  __n = param_3 - (int)param_2;\n  local_20[0] = __n;\n  if (__n < 0x10) {\n    __dest = (undefined1 *)*param_1;\n    if (__n == 1) {\n      *__dest = *param_2;\n      param_1[1] = 1;\n      *(undefined1 *)(*param_1 + 1) = 0;\n      return;\n    }\n    if (__n == 0) {\n      param_1[1] = 0;\n      *__dest = 0;\n      return;\n    }\n  }\n  else {\n    __dest = (undefined1 *)FUN_001ee4c0(param_1,local_20,0);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }\n  memcpy(__dest,param_2,__n);\n  param_1[1] = local_20[0];\n  *(undefined1 *)(*param_1 + local_20[0]) = 0;\n  return;\n}\n\n" (function_definition "void FUN_001f1590(int *param_1,undefined1 *param_2,int param_3)\n\n{\n  undefined1 *__dest;\n  uint __n;\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1f1599;\n  __n = param_3 - (int)param_2;\n  local_20[0] = __n;\n  if (__n < 0x10) {\n    __dest = (undefined1 *)*param_1;\n    if (__n == 1) {\n      *__dest = *param_2;\n      param_1[1] = 1;\n      *(undefined1 *)(*param_1 + 1) = 0;\n      return;\n    }\n    if (__n == 0) {\n      param_1[1] = 0;\n      *__dest = 0;\n      return;\n    }\n  }\n  else {\n    __dest = (undefined1 *)FUN_001ee4c0(param_1,local_20,0);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }\n  memcpy(__dest,param_2,__n);\n  param_1[1] = local_20[0];\n  *(undefined1 *)(*param_1 + local_20[0]) = 0;\n  return;\n}" primitive_type (function_declarator "FUN_001f1590(int *param_1,undefined1 *param_2,int param_3)" identifier (parameter_list "(int *param_1,undefined1 *param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined1 *__dest;\n  uint __n;\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1f1599;\n  __n = param_3 - (int)param_2;\n  local_20[0] = __n;\n  if (__n < 0x10) {\n    __dest = (undefined1 *)*param_1;\n    if (__n == 1) {\n      *__dest = *param_2;\n      param_1[1] = 1;\n      *(undefined1 *)(*param_1 + 1) = 0;\n      return;\n    }\n    if (__n == 0) {\n      param_1[1] = 0;\n      *__dest = 0;\n      return;\n    }\n  }\n  else {\n    __dest = (undefined1 *)FUN_001ee4c0(param_1,local_20,0);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }\n  memcpy(__dest,param_2,__n);\n  param_1[1] = local_20[0];\n  *(undefined1 *)(*param_1 + local_20[0]) = 0;\n  return;\n}" { (declaration "undefined1 *__dest;" type_identifier (pointer_declarator "*__dest" * identifier) ;) (declaration "uint __n;" type_identifier identifier ;) (declaration "uint local_20 [3];" type_identifier (array_declarator "local_20 [3]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1f1599;" (assignment_expression "uStack_14 = 0x1f1599" identifier = number_literal) ;) (expression_statement "__n = param_3 - (int)param_2;" (assignment_expression "__n = param_3 - (int)param_2" identifier = (binary_expression "param_3 - (int)param_2" identifier - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "local_20[0] = __n;" (assignment_expression "local_20[0] = __n" (subscript_expression "local_20[0]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (__n < 0x10) {\n    __dest = (undefined1 *)*param_1;\n    if (__n == 1) {\n      *__dest = *param_2;\n      param_1[1] = 1;\n      *(undefined1 *)(*param_1 + 1) = 0;\n      return;\n    }\n    if (__n == 0) {\n      param_1[1] = 0;\n      *__dest = 0;\n      return;\n    }\n  }\n  else {\n    __dest = (undefined1 *)FUN_001ee4c0(param_1,local_20,0);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }" if (parenthesized_expression "(__n < 0x10)" ( (binary_expression "__n < 0x10" identifier < number_literal) )) (compound_statement "{\n    __dest = (undefined1 *)*param_1;\n    if (__n == 1) {\n      *__dest = *param_2;\n      param_1[1] = 1;\n      *(undefined1 *)(*param_1 + 1) = 0;\n      return;\n    }\n    if (__n == 0) {\n      param_1[1] = 0;\n      *__dest = 0;\n      return;\n    }\n  }" { (expression_statement "__dest = (undefined1 *)*param_1;" (assignment_expression "__dest = (undefined1 *)*param_1" identifier = (cast_expression "(undefined1 *)*param_1" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (__n == 1) {\n      *__dest = *param_2;\n      param_1[1] = 1;\n      *(undefined1 *)(*param_1 + 1) = 0;\n      return;\n    }" if (parenthesized_expression "(__n == 1)" ( (binary_expression "__n == 1" identifier == number_literal) )) (compound_statement "{\n      *__dest = *param_2;\n      param_1[1] = 1;\n      *(undefined1 *)(*param_1 + 1) = 0;\n      return;\n    }" { (expression_statement "*__dest = *param_2;" (assignment_expression "*__dest = *param_2" (pointer_expression "*__dest" * identifier) = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "param_1[1] = 1;" (assignment_expression "param_1[1] = 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)(*param_1 + 1) = 0;" (assignment_expression "*(undefined1 *)(*param_1 + 1) = 0" (pointer_expression "*(undefined1 *)(*param_1 + 1)" * (cast_expression "(undefined1 *)(*param_1 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 1)" ( (binary_expression "*param_1 + 1" (pointer_expression "*param_1" * identifier) + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) (if_statement "if (__n == 0) {\n      param_1[1] = 0;\n      *__dest = 0;\n      return;\n    }" if (parenthesized_expression "(__n == 0)" ( (binary_expression "__n == 0" identifier == number_literal) )) (compound_statement "{\n      param_1[1] = 0;\n      *__dest = 0;\n      return;\n    }" { (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*__dest = 0;" (assignment_expression "*__dest = 0" (pointer_expression "*__dest" * identifier) = number_literal) ;) (return_statement "return;" return ;) })) }) (else_clause "else {\n    __dest = (undefined1 *)FUN_001ee4c0(param_1,local_20,0);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }" else (compound_statement "{\n    __dest = (undefined1 *)FUN_001ee4c0(param_1,local_20,0);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }" { (expression_statement "__dest = (undefined1 *)FUN_001ee4c0(param_1,local_20,0);" (assignment_expression "__dest = (undefined1 *)FUN_001ee4c0(param_1,local_20,0)" identifier = (cast_expression "(undefined1 *)FUN_001ee4c0(param_1,local_20,0)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001ee4c0(param_1,local_20,0)" identifier (argument_list "(param_1,local_20,0)" ( identifier , identifier , number_literal ))))) ;) (expression_statement "*param_1 = (int)__dest;" (assignment_expression "*param_1 = (int)__dest" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_1[2] = local_20[0];" (assignment_expression "param_1[2] = local_20[0]" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (subscript_expression "local_20[0]" identifier [ number_literal ])) ;) }))) (expression_statement "memcpy(__dest,param_2,__n);" (call_expression "memcpy(__dest,param_2,__n)" identifier (argument_list "(__dest,param_2,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "param_1[1] = local_20[0];" (assignment_expression "param_1[1] = local_20[0]" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (subscript_expression "local_20[0]" identifier [ number_literal ])) ;) (expression_statement "*(undefined1 *)(*param_1 + local_20[0]) = 0;" (assignment_expression "*(undefined1 *)(*param_1 + local_20[0]) = 0" (pointer_expression "*(undefined1 *)(*param_1 + local_20[0])" * (cast_expression "(undefined1 *)(*param_1 + local_20[0])" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + local_20[0])" ( (binary_expression "*param_1 + local_20[0]" (pointer_expression "*param_1" * identifier) + (subscript_expression "local_20[0]" 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 (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) = LIT) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + (subscript_expression IDENT [ LIT ])) )))) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_001f1590(int *param_1,undefined1 *param_2,int param_3)\n\n{\n  undefined1 *__dest;\n  uint __n;\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1f1599;\n  __n = param_3 - (int)param_2;\n  local_20[0] = __n;\n  if (__n < 0x10) {\n    __dest = (undefined1 *)*param_1;\n    if (__n == 1) {\n      *__dest = *param_2;\n      param_1[1] = 1;\n      *(undefined1 *)(*param_1 + 1) = 0;\n      return;\n    }\n    if (__n == 0) {\n      param_1[1] = 0;\n      *__dest = 0;\n      return;\n    }\n  }\n  else {\n    __dest = (undefined1 *)FUN_001ee4c0(param_1,local_20,0);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }\n  memcpy(__dest,param_2,__n);\n  param_1[1] = local_20[0];\n  *(undefined1 *)(*param_1 + local_20[0]) = 0;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001f1590(int *param_1,undefined1 *param_2,int param_3)" (identifier "FUN_001f1590") (parameter_list "(int *param_1,undefined1 *param_2,int param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined1 *param_2" (type_identifier "undefined1") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined1 *__dest;\n  uint __n;\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1f1599;\n  __n = param_3 - (int)param_2;\n  local_20[0] = __n;\n  if (__n < 0x10) {\n    __dest = (undefined1 *)*param_1;\n    if (__n == 1) {\n      *__dest = *param_2;\n      param_1[1] = 1;\n      *(undefined1 *)(*param_1 + 1) = 0;\n      return;\n    }\n    if (__n == 0) {\n      param_1[1] = 0;\n      *__dest = 0;\n      return;\n    }\n  }\n  else {\n    __dest = (undefined1 *)FUN_001ee4c0(param_1,local_20,0);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }\n  memcpy(__dest,param_2,__n);\n  param_1[1] = local_20[0];\n  *(undefined1 *)(*param_1 + local_20[0]) = 0;\n  return;\n}" ({ "{") (declaration "undefined1 *__dest;" (type_identifier "undefined1") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "uint __n;" (type_identifier "uint") (identifier "__n") (; ";")) (declaration "uint local_20 [3];" (type_identifier "uint") (array_declarator "local_20 [3]" (identifier "local_20") ([ "[") (number_literal "3") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x1f1599;" (assignment_expression "uStack_14 = 0x1f1599" (identifier "uStack_14") (= "=") (number_literal "0x1f1599")) (; ";")) (expression_statement "__n = param_3 - (int)param_2;" (assignment_expression "__n = param_3 - (int)param_2" (identifier "__n") (= "=") (binary_expression "param_3 - (int)param_2" (identifier "param_3") (- "-") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")))) (; ";")) (expression_statement "local_20[0] = __n;" (assignment_expression "local_20[0] = __n" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "__n")) (; ";")) (if_statement "if (__n < 0x10) {\n    __dest = (undefined1 *)*param_1;\n    if (__n == 1) {\n      *__dest = *param_2;\n      param_1[1] = 1;\n      *(undefined1 *)(*param_1 + 1) = 0;\n      return;\n    }\n    if (__n == 0) {\n      param_1[1] = 0;\n      *__dest = 0;\n      return;\n    }\n  }\n  else {\n    __dest = (undefined1 *)FUN_001ee4c0(param_1,local_20,0);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }" (if "if") (parenthesized_expression "(__n < 0x10)" (( "(") (binary_expression "__n < 0x10" (identifier "__n") (< "<") (number_literal "0x10")) () ")")) (compound_statement "{\n    __dest = (undefined1 *)*param_1;\n    if (__n == 1) {\n      *__dest = *param_2;\n      param_1[1] = 1;\n      *(undefined1 *)(*param_1 + 1) = 0;\n      return;\n    }\n    if (__n == 0) {\n      param_1[1] = 0;\n      *__dest = 0;\n      return;\n    }\n  }" ({ "{") (expression_statement "__dest = (undefined1 *)*param_1;" (assignment_expression "__dest = (undefined1 *)*param_1" (identifier "__dest") (= "=") (cast_expression "(undefined1 *)*param_1" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if (__n == 1) {\n      *__dest = *param_2;\n      param_1[1] = 1;\n      *(undefined1 *)(*param_1 + 1) = 0;\n      return;\n    }" (if "if") (parenthesized_expression "(__n == 1)" (( "(") (binary_expression "__n == 1" (identifier "__n") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      *__dest = *param_2;\n      param_1[1] = 1;\n      *(undefined1 *)(*param_1 + 1) = 0;\n      return;\n    }" ({ "{") (expression_statement "*__dest = *param_2;" (assignment_expression "*__dest = *param_2" (pointer_expression "*__dest" (* "*") (identifier "__dest")) (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "param_1[1] = 1;" (assignment_expression "param_1[1] = 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "*(undefined1 *)(*param_1 + 1) = 0;" (assignment_expression "*(undefined1 *)(*param_1 + 1) = 0" (pointer_expression "*(undefined1 *)(*param_1 + 1)" (* "*") (cast_expression "(undefined1 *)(*param_1 + 1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 1)" (( "(") (binary_expression "*param_1 + 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "1")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (__n == 0) {\n      param_1[1] = 0;\n      *__dest = 0;\n      return;\n    }" (if "if") (parenthesized_expression "(__n == 0)" (( "(") (binary_expression "__n == 0" (identifier "__n") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      param_1[1] = 0;\n      *__dest = 0;\n      return;\n    }" ({ "{") (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*__dest = 0;" (assignment_expression "*__dest = 0" (pointer_expression "*__dest" (* "*") (identifier "__dest")) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    __dest = (undefined1 *)FUN_001ee4c0(param_1,local_20,0);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }" (else "else") (compound_statement "{\n    __dest = (undefined1 *)FUN_001ee4c0(param_1,local_20,0);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }" ({ "{") (expression_statement "__dest = (undefined1 *)FUN_001ee4c0(param_1,local_20,0);" (assignment_expression "__dest = (undefined1 *)FUN_001ee4c0(param_1,local_20,0)" (identifier "__dest") (= "=") (cast_expression "(undefined1 *)FUN_001ee4c0(param_1,local_20,0)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001ee4c0(param_1,local_20,0)" (identifier "FUN_001ee4c0") (argument_list "(param_1,local_20,0)" (( "(") (identifier "param_1") (, ",") (identifier "local_20") (, ",") (number_literal "0") () ")"))))) (; ";")) (expression_statement "*param_1 = (int)__dest;" (assignment_expression "*param_1 = (int)__dest" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest"))) (; ";")) (expression_statement "param_1[2] = local_20[0];" (assignment_expression "param_1[2] = local_20[0]" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]"))) (; ";")) (} "}")))) (expression_statement "memcpy(__dest,param_2,__n);" (call_expression "memcpy(__dest,param_2,__n)" (identifier "memcpy") (argument_list "(__dest,param_2,__n)" (( "(") (identifier "__dest") (, ",") (identifier "param_2") (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "param_1[1] = local_20[0];" (assignment_expression "param_1[1] = local_20[0]" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]"))) (; ";")) (expression_statement "*(undefined1 *)(*param_1 + local_20[0]) = 0;" (assignment_expression "*(undefined1 *)(*param_1 + local_20[0]) = 0" (pointer_expression "*(undefined1 *)(*param_1 + local_20[0])" (* "*") (cast_expression "(undefined1 *)(*param_1 + local_20[0])" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + local_20[0])" (( "(") (binary_expression "*param_1 + local_20[0]" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]"))) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* void std::string::_M_construct<__normal_iterator<char*, std::string > >(__normal_iterator<char*,
   std::string >, __normal_iterator<char*, std::string >, std::forward_iterator_tag) */

void std::function_1::_M_construct<__normal_iterator<char*,std::function_1>>
               (function_1 *var_3,type_1 *param_2,int var_1)

{
  type_1 *__dest;
  type_2 var_2;
  type_2 local_20 [3];
  type_3 uStack_14;
  
  uStack_14 = 0x1f1599;
  var_2 = var_1 - (int)param_2;
  local_20[0] = var_2;
  if (var_2 < 0x10) {
    __dest = *(type_1 **)var_3;
    if (var_2 == 1) {
      *__dest = *param_2;
      *(type_3 *)(var_3 + 4) = 1;
      *(type_1 *)(*(int *)var_3 + 1) = 0;
      return;
    }
    if (var_2 == 0) {
      *(type_3 *)(var_3 + 4) = 0;
      *__dest = 0;
      return;
    }
  }
  else {
    __dest = (type_1 *)var_4(var_3,local_20,0);
    *(type_1 **)var_3 = __dest;
    *(type_2 *)(var_3 + 8) = local_20[0];
  }
  var_5(__dest,param_2,var_2);
  *(type_2 *)(var_3 + 4) = local_20[0];
  *(type_1 *)(*(int *)var_3 + local_20[0]) = 0;
  return;
}


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

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

void MASKED(int *param_1,undefined1 *param_2,int param_3)

{
  undefined1 *__dest;
  uint __n;
  uint local_20 [3];
  undefined4 uStack_14;
  
  uStack_14 = 0x1f1599;
  __n = param_3 - (int)param_2;
  local_20[0] = __n;
  if (__n < 0x10) {
    __dest = (undefined1 *)*param_1;
    if (__n == 1) {
      *__dest = *param_2;
      param_1[1] = 1;
      *(undefined1 *)(*param_1 + 1) = 0;
      return;
    }
    if (__n == 0) {
      param_1[1] = 0;
      *__dest = 0;
      return;
    }
  }
  else {
    __dest = (undefined1 *)FUN_001ee4c0(param_1,local_20,0);
    *param_1 = (int)__dest;
    param_1[2] = local_20[0];
  }
  memcpy(__dest,param_2,__n);
  param_1[1] = local_20[0];
  *(undefined1 *)(*param_1 + local_20[0]) = 0;
  return;
}

