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

dc_data dc_makestring(char *s,size_t len)

{
  int iVar1;
  int *piVar2;
  void *__dest;
  anon_union_4_2_78161589_for_v extraout_EDX;
  dc_data dVar3;
  undefined4 *in_stack_00000004;
  
  piVar2 = (int *)dc_malloc(0xc);
  __dest = dc_malloc(len + 1);
  *piVar2 = (int)__dest;
  memcpy(__dest,s,len);
  iVar1 = *piVar2;
  *in_stack_00000004 = 2;
  in_stack_00000004[1] = piVar2;
  *(undefined1 *)(iVar1 + len) = 0;
  piVar2[1] = len;
  piVar2[2] = 1;
  dVar3.v.number = extraout_EDX.number;
  dVar3.dc_type = (dc_value_type)in_stack_00000004;
  return dVar3;
}



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

undefined4 * FUN_00015350(undefined4 *param_1,void *param_2,size_t param_3)

{
  int iVar1;
  int *piVar2;
  void *__dest;
  
  piVar2 = (int *)FUN_00011ad0(0xc);
  __dest = (void *)FUN_00011ad0(param_3 + 1);
  *piVar2 = (int)__dest;
  memcpy(__dest,param_2,param_3);
  iVar1 = *piVar2;
  *param_1 = 2;
  param_1[1] = piVar2;
  *(undefined1 *)(iVar1 + param_3) = 0;
  piVar2[1] = param_3;
  piVar2[2] = 1;
  return param_1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00011640
ADD EBX,0x8b8f
SUB ESP,0x18
MOV EDI,dword ptr [ESP + 0x34]
MOV EBP,dword ptr [ESP + 0x2c]
PUSH 0xc
CALL 0x00011ad0
MOV ESI,EAX
LEA EAX,[EDI + 0x1]
MOV dword ptr [ESP],EAX
CALL 0x00011ad0
ADD ESP,0xc
MOV dword ptr [ESI],EAX
PUSH EDI
PUSH dword ptr [ESP + 0x2c]
PUSH EAX
CALL 0x00011090
MOV EAX,dword ptr [ESI]
MOV dword ptr [EBP],0x2
MOV dword ptr [EBP + 0x4],ESI
MOV byte ptr [EAX + EDI*0x1],0x0
MOV EAX,EBP
MOV dword ptr [ESI + 0x4],EDI
MOV dword ptr [ESI + 0x8],0x1
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 * FUN_00015350(undefined4 *param_1,void *param_2,size_t param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  void *__dest;\n  \n  piVar2 = (int *)FUN_00011ad0(0xc);\n  __dest = (void *)FUN_00011ad0(param_3 + 1);\n  *piVar2 = (int)__dest;\n  memcpy(__dest,param_2,param_3);\n  iVar1 = *piVar2;\n  *param_1 = 2;\n  param_1[1] = piVar2;\n  *(undefined1 *)(iVar1 + param_3) = 0;\n  piVar2[1] = param_3;\n  piVar2[2] = 1;\n  return param_1;\n}\n\n" comment (function_definition "undefined4 * FUN_00015350(undefined4 *param_1,void *param_2,size_t param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  void *__dest;\n  \n  piVar2 = (int *)FUN_00011ad0(0xc);\n  __dest = (void *)FUN_00011ad0(param_3 + 1);\n  *piVar2 = (int)__dest;\n  memcpy(__dest,param_2,param_3);\n  iVar1 = *piVar2;\n  *param_1 = 2;\n  param_1[1] = piVar2;\n  *(undefined1 *)(iVar1 + param_3) = 0;\n  piVar2[1] = param_3;\n  piVar2[2] = 1;\n  return param_1;\n}" type_identifier (pointer_declarator "* FUN_00015350(undefined4 *param_1,void *param_2,size_t param_3)" * (function_declarator "FUN_00015350(undefined4 *param_1,void *param_2,size_t param_3)" identifier (parameter_list "(undefined4 *param_1,void *param_2,size_t param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "size_t param_3" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  void *__dest;\n  \n  piVar2 = (int *)FUN_00011ad0(0xc);\n  __dest = (void *)FUN_00011ad0(param_3 + 1);\n  *piVar2 = (int)__dest;\n  memcpy(__dest,param_2,param_3);\n  iVar1 = *piVar2;\n  *param_1 = 2;\n  param_1[1] = piVar2;\n  *(undefined1 *)(iVar1 + param_3) = 0;\n  piVar2[1] = param_3;\n  piVar2[2] = 1;\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (expression_statement "piVar2 = (int *)FUN_00011ad0(0xc);" (assignment_expression "piVar2 = (int *)FUN_00011ad0(0xc)" identifier = (cast_expression "(int *)FUN_00011ad0(0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00011ad0(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "__dest = (void *)FUN_00011ad0(param_3 + 1);" (assignment_expression "__dest = (void *)FUN_00011ad0(param_3 + 1)" identifier = (cast_expression "(void *)FUN_00011ad0(param_3 + 1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00011ad0(param_3 + 1)" identifier (argument_list "(param_3 + 1)" ( (binary_expression "param_3 + 1" identifier + number_literal) ))))) ;) (expression_statement "*piVar2 = (int)__dest;" (assignment_expression "*piVar2 = (int)__dest" (pointer_expression "*piVar2" * identifier) = (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "memcpy(__dest,param_2,param_3);" (call_expression "memcpy(__dest,param_2,param_3)" identifier (argument_list "(__dest,param_2,param_3)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "*param_1 = 2;" (assignment_expression "*param_1 = 2" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[1] = piVar2;" (assignment_expression "param_1[1] = piVar2" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)(iVar1 + param_3) = 0;" (assignment_expression "*(undefined1 *)(iVar1 + param_3) = 0" (pointer_expression "*(undefined1 *)(iVar1 + param_3)" * (cast_expression "(undefined1 *)(iVar1 + param_3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + param_3)" ( (binary_expression "iVar1 + param_3" identifier + identifier) )))) = number_literal) ;) (expression_statement "piVar2[1] = param_3;" (assignment_expression "piVar2[1] = param_3" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar2[2] = 1;" (assignment_expression "piVar2[2] = 1" (subscript_expression "piVar2[2]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\ndc_data dc_makestring(char *s,size_t len)\n\n{\n  int iVar1;\n  int *piVar2;\n  void *__dest;\n  anon_union_4_2_78161589_for_v extraout_EDX;\n  dc_data dVar3;\n  undefined4 *in_stack_00000004;\n  \n  piVar2 = (int *)dc_malloc(0xc);\n  __dest = dc_malloc(len + 1);\n  *piVar2 = (int)__dest;\n  memcpy(__dest,s,len);\n  iVar1 = *piVar2;\n  *in_stack_00000004 = 2;\n  in_stack_00000004[1] = piVar2;\n  *(undefined1 *)(iVar1 + len) = 0;\n  piVar2[1] = len;\n  piVar2[2] = 1;\n  dVar3.v.number = extraout_EDX.number;\n  dVar3.dc_type = (dc_value_type)in_stack_00000004;\n  return dVar3;\n}\n\n" comment comment (function_definition "dc_data dc_makestring(char *s,size_t len)\n\n{\n  int iVar1;\n  int *piVar2;\n  void *__dest;\n  anon_union_4_2_78161589_for_v extraout_EDX;\n  dc_data dVar3;\n  undefined4 *in_stack_00000004;\n  \n  piVar2 = (int *)dc_malloc(0xc);\n  __dest = dc_malloc(len + 1);\n  *piVar2 = (int)__dest;\n  memcpy(__dest,s,len);\n  iVar1 = *piVar2;\n  *in_stack_00000004 = 2;\n  in_stack_00000004[1] = piVar2;\n  *(undefined1 *)(iVar1 + len) = 0;\n  piVar2[1] = len;\n  piVar2[2] = 1;\n  dVar3.v.number = extraout_EDX.number;\n  dVar3.dc_type = (dc_value_type)in_stack_00000004;\n  return dVar3;\n}" type_identifier (function_declarator "dc_makestring(char *s,size_t len)" identifier (parameter_list "(char *s,size_t len)" ( (parameter_declaration "char *s" primitive_type (pointer_declarator "*s" * identifier)) , (parameter_declaration "size_t len" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  void *__dest;\n  anon_union_4_2_78161589_for_v extraout_EDX;\n  dc_data dVar3;\n  undefined4 *in_stack_00000004;\n  \n  piVar2 = (int *)dc_malloc(0xc);\n  __dest = dc_malloc(len + 1);\n  *piVar2 = (int)__dest;\n  memcpy(__dest,s,len);\n  iVar1 = *piVar2;\n  *in_stack_00000004 = 2;\n  in_stack_00000004[1] = piVar2;\n  *(undefined1 *)(iVar1 + len) = 0;\n  piVar2[1] = len;\n  piVar2[2] = 1;\n  dVar3.v.number = extraout_EDX.number;\n  dVar3.dc_type = (dc_value_type)in_stack_00000004;\n  return dVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "anon_union_4_2_78161589_for_v extraout_EDX;" type_identifier identifier ;) (declaration "dc_data dVar3;" type_identifier identifier ;) (declaration "undefined4 *in_stack_00000004;" type_identifier (pointer_declarator "*in_stack_00000004" * identifier) ;) (expression_statement "piVar2 = (int *)dc_malloc(0xc);" (assignment_expression "piVar2 = (int *)dc_malloc(0xc)" identifier = (cast_expression "(int *)dc_malloc(0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dc_malloc(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "__dest = dc_malloc(len + 1);" (assignment_expression "__dest = dc_malloc(len + 1)" identifier = (call_expression "dc_malloc(len + 1)" identifier (argument_list "(len + 1)" ( (binary_expression "len + 1" identifier + number_literal) )))) ;) (expression_statement "*piVar2 = (int)__dest;" (assignment_expression "*piVar2 = (int)__dest" (pointer_expression "*piVar2" * identifier) = (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "memcpy(__dest,s,len);" (call_expression "memcpy(__dest,s,len)" identifier (argument_list "(__dest,s,len)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "*in_stack_00000004 = 2;" (assignment_expression "*in_stack_00000004 = 2" (pointer_expression "*in_stack_00000004" * identifier) = number_literal) ;) (expression_statement "in_stack_00000004[1] = piVar2;" (assignment_expression "in_stack_00000004[1] = piVar2" (subscript_expression "in_stack_00000004[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)(iVar1 + len) = 0;" (assignment_expression "*(undefined1 *)(iVar1 + len) = 0" (pointer_expression "*(undefined1 *)(iVar1 + len)" * (cast_expression "(undefined1 *)(iVar1 + len)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + len)" ( (binary_expression "iVar1 + len" identifier + identifier) )))) = number_literal) ;) (expression_statement "piVar2[1] = len;" (assignment_expression "piVar2[1] = len" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar2[2] = 1;" (assignment_expression "piVar2[2] = 1" (subscript_expression "piVar2[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "dVar3.v.number = extraout_EDX.number;" (assignment_expression "dVar3.v.number = extraout_EDX.number" (field_expression "dVar3.v.number" (field_expression "dVar3.v" identifier . field_identifier) . field_identifier) = (field_expression "extraout_EDX.number" identifier . field_identifier)) ;) (expression_statement "dVar3.dc_type = (dc_value_type)in_stack_00000004;" (assignment_expression "dVar3.dc_type = (dc_value_type)in_stack_00000004" (field_expression "dVar3.dc_type" identifier . field_identifier) = (cast_expression "(dc_value_type)in_stack_00000004" ( (type_descriptor "dc_value_type" type_identifier) ) identifier)) ;) (return_statement "return dVar3;" return identifier ;) })))
(translation_unit "undefined4 * FUN_00015350(undefined4 *param_1,void *param_2,size_t param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  void *__dest;\n  \n  piVar2 = (int *)FUN_00011ad0(0xc);\n  __dest = (void *)FUN_00011ad0(param_3 + 1);\n  *piVar2 = (int)__dest;\n  memcpy(__dest,param_2,param_3);\n  iVar1 = *piVar2;\n  *param_1 = 2;\n  param_1[1] = piVar2;\n  *(undefined1 *)(iVar1 + param_3) = 0;\n  piVar2[1] = param_3;\n  piVar2[2] = 1;\n  return param_1;\n}\n\n" (function_definition "undefined4 * FUN_00015350(undefined4 *param_1,void *param_2,size_t param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  void *__dest;\n  \n  piVar2 = (int *)FUN_00011ad0(0xc);\n  __dest = (void *)FUN_00011ad0(param_3 + 1);\n  *piVar2 = (int)__dest;\n  memcpy(__dest,param_2,param_3);\n  iVar1 = *piVar2;\n  *param_1 = 2;\n  param_1[1] = piVar2;\n  *(undefined1 *)(iVar1 + param_3) = 0;\n  piVar2[1] = param_3;\n  piVar2[2] = 1;\n  return param_1;\n}" type_identifier (pointer_declarator "* FUN_00015350(undefined4 *param_1,void *param_2,size_t param_3)" * (function_declarator "FUN_00015350(undefined4 *param_1,void *param_2,size_t param_3)" identifier (parameter_list "(undefined4 *param_1,void *param_2,size_t param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "size_t param_3" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  void *__dest;\n  \n  piVar2 = (int *)FUN_00011ad0(0xc);\n  __dest = (void *)FUN_00011ad0(param_3 + 1);\n  *piVar2 = (int)__dest;\n  memcpy(__dest,param_2,param_3);\n  iVar1 = *piVar2;\n  *param_1 = 2;\n  param_1[1] = piVar2;\n  *(undefined1 *)(iVar1 + param_3) = 0;\n  piVar2[1] = param_3;\n  piVar2[2] = 1;\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (expression_statement "piVar2 = (int *)FUN_00011ad0(0xc);" (assignment_expression "piVar2 = (int *)FUN_00011ad0(0xc)" identifier = (cast_expression "(int *)FUN_00011ad0(0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00011ad0(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "__dest = (void *)FUN_00011ad0(param_3 + 1);" (assignment_expression "__dest = (void *)FUN_00011ad0(param_3 + 1)" identifier = (cast_expression "(void *)FUN_00011ad0(param_3 + 1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00011ad0(param_3 + 1)" identifier (argument_list "(param_3 + 1)" ( (binary_expression "param_3 + 1" identifier + number_literal) ))))) ;) (expression_statement "*piVar2 = (int)__dest;" (assignment_expression "*piVar2 = (int)__dest" (pointer_expression "*piVar2" * identifier) = (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "memcpy(__dest,param_2,param_3);" (call_expression "memcpy(__dest,param_2,param_3)" identifier (argument_list "(__dest,param_2,param_3)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "*param_1 = 2;" (assignment_expression "*param_1 = 2" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[1] = piVar2;" (assignment_expression "param_1[1] = piVar2" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)(iVar1 + param_3) = 0;" (assignment_expression "*(undefined1 *)(iVar1 + param_3) = 0" (pointer_expression "*(undefined1 *)(iVar1 + param_3)" * (cast_expression "(undefined1 *)(iVar1 + param_3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + param_3)" ( (binary_expression "iVar1 + param_3" identifier + identifier) )))) = number_literal) ;) (expression_statement "piVar2[1] = param_3;" (assignment_expression "piVar2[1] = param_3" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar2[2] = 1;" (assignment_expression "piVar2[2] = 1" (subscript_expression "piVar2[2]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 * FUN_00015350(undefined4 *param_1,void *param_2,size_t param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  void *__dest;\n  \n  piVar2 = (int *)FUN_00011ad0(0xc);\n  __dest = (void *)FUN_00011ad0(param_3 + 1);\n  *piVar2 = (int)__dest;\n  memcpy(__dest,param_2,param_3);\n  iVar1 = *piVar2;\n  *param_1 = 2;\n  param_1[1] = piVar2;\n  *(undefined1 *)(iVar1 + param_3) = 0;\n  piVar2[1] = param_3;\n  piVar2[2] = 1;\n  return param_1;\n}" (type_identifier "undefined4") (pointer_declarator "* FUN_00015350(undefined4 *param_1,void *param_2,size_t param_3)" (* "*") (function_declarator "FUN_00015350(undefined4 *param_1,void *param_2,size_t param_3)" (identifier "FUN_00015350") (parameter_list "(undefined4 *param_1,void *param_2,size_t param_3)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "void *param_2" (primitive_type "void") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "size_t param_3" (primitive_type "size_t") (identifier "param_3")) () ")")))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  void *__dest;\n  \n  piVar2 = (int *)FUN_00011ad0(0xc);\n  __dest = (void *)FUN_00011ad0(param_3 + 1);\n  *piVar2 = (int)__dest;\n  memcpy(__dest,param_2,param_3);\n  iVar1 = *piVar2;\n  *param_1 = 2;\n  param_1[1] = piVar2;\n  *(undefined1 *)(iVar1 + param_3) = 0;\n  piVar2[1] = param_3;\n  piVar2[2] = 1;\n  return param_1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "void *__dest;" (primitive_type "void") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (expression_statement "piVar2 = (int *)FUN_00011ad0(0xc);" (assignment_expression "piVar2 = (int *)FUN_00011ad0(0xc)" (identifier "piVar2") (= "=") (cast_expression "(int *)FUN_00011ad0(0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00011ad0(0xc)" (identifier "FUN_00011ad0") (argument_list "(0xc)" (( "(") (number_literal "0xc") () ")"))))) (; ";")) (expression_statement "__dest = (void *)FUN_00011ad0(param_3 + 1);" (assignment_expression "__dest = (void *)FUN_00011ad0(param_3 + 1)" (identifier "__dest") (= "=") (cast_expression "(void *)FUN_00011ad0(param_3 + 1)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00011ad0(param_3 + 1)" (identifier "FUN_00011ad0") (argument_list "(param_3 + 1)" (( "(") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (expression_statement "*piVar2 = (int)__dest;" (assignment_expression "*piVar2 = (int)__dest" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest"))) (; ";")) (expression_statement "memcpy(__dest,param_2,param_3);" (call_expression "memcpy(__dest,param_2,param_3)" (identifier "memcpy") (argument_list "(__dest,param_2,param_3)" (( "(") (identifier "__dest") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" (identifier "iVar1") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (expression_statement "*param_1 = 2;" (assignment_expression "*param_1 = 2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "2")) (; ";")) (expression_statement "param_1[1] = piVar2;" (assignment_expression "param_1[1] = piVar2" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "piVar2")) (; ";")) (expression_statement "*(undefined1 *)(iVar1 + param_3) = 0;" (assignment_expression "*(undefined1 *)(iVar1 + param_3) = 0" (pointer_expression "*(undefined1 *)(iVar1 + param_3)" (* "*") (cast_expression "(undefined1 *)(iVar1 + param_3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + param_3)" (( "(") (binary_expression "iVar1 + param_3" (identifier "iVar1") (+ "+") (identifier "param_3")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar2[1] = param_3;" (assignment_expression "piVar2[1] = param_3" (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "piVar2[2] = 1;" (assignment_expression "piVar2[2] = 1" (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "1")) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

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

type_1 function_1(char *s,size_t var_2)

{
  int var_4;
  int *piVar2;
  void *__dest;
  type_2 extraout_EDX;
  type_1 dVar3;
  type_3 *in_stack_00000004;
  
  piVar2 = (int *)var_1(0xc);
  __dest = var_1(var_2 + 1);
  *piVar2 = (int)__dest;
  var_3(__dest,s,var_2);
  var_4 = *piVar2;
  *in_stack_00000004 = 2;
  in_stack_00000004[1] = piVar2;
  *(type_4 *)(var_4 + var_2) = 0;
  piVar2[1] = var_2;
  piVar2[2] = 1;
  dVar3.v.number = extraout_EDX.number;
  dVar3.dc_type = (type_5)in_stack_00000004;
  return dVar3;
}


(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (return_statement (identifier)))))

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

undefined4 * MASKED(undefined4 *param_1,void *param_2,size_t param_3)

{
  int iVar1;
  int *piVar2;
  void *__dest;
  
  piVar2 = (int *)FUN_00011ad0(0xc);
  __dest = (void *)FUN_00011ad0(param_3 + 1);
  *piVar2 = (int)__dest;
  memcpy(__dest,param_2,param_3);
  iVar1 = *piVar2;
  *param_1 = 2;
  param_1[1] = piVar2;
  *(undefined1 *)(iVar1 + param_3) = 0;
  piVar2[1] = param_3;
  piVar2[2] = 1;
  return param_1;
}

