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

void __regparm3 put_buf(char c)

{
  char *pcVar1;
  
  if (bufptr == buflen) {
    buflen = bufptr + 0x32;
    if (buffer == (char *)0x0) {
      buffer = (char *)xmalloc(bufptr + 0x33);
    }
    else {
      buffer = (char *)xrealloc(buffer,bufptr + 0x33);
    }
  }
  pcVar1 = buffer;
  buffer[bufptr + 1] = '\0';
  pcVar1 = pcVar1 + bufptr;
  bufptr = bufptr + 1;
  *pcVar1 = c;
  return;
}



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

void __regparm3 FUN_00058280(undefined1 param_1)

{
  undefined1 *puVar1;
  int iVar2;
  
  if (DAT_001d1108 == DAT_001d110c) {
    DAT_001d110c = DAT_001d1108 + 0x32;
    if (DAT_001d1110 == 0) {
      DAT_001d1110 = xmalloc(DAT_001d1108 + 0x33);
    }
    else {
      DAT_001d1110 = xrealloc(DAT_001d1110,DAT_001d1108 + 0x33);
    }
  }
  iVar2 = DAT_001d1110;
  *(undefined1 *)(DAT_001d1110 + 1 + DAT_001d1108) = 0;
  puVar1 = (undefined1 *)(iVar2 + DAT_001d1108);
  DAT_001d1108 = DAT_001d1108 + 1;
  *puVar1 = param_1;
  return;
}


PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00017b80
ADD EBX,0x176d77
SUB ESP,0x4
MOV EDX,dword ptr [EBX + 0x2108]
MOV EAX,dword ptr [EBX + 0x2110]
CMP EDX,dword ptr [EBX + 0x210c]
JZ 0x000582c0
LEA ECX,[EDX + 0x1]
MOV byte ptr [EAX + EDX*0x1 + 0x1],0x0
MOV dword ptr [EBX + 0x2108],ECX
MOV ECX,ESI
MOV byte ptr [EAX + EDX*0x1],CL
ADD ESP,0x4
POP EBX
POP ESI
RET
LEA ECX,[EDX + 0x32]
ADD EDX,0x33
MOV dword ptr [EBX + 0x210c],ECX
TEST EAX,EAX
JZ 0x000582f0
SUB ESP,0x8
PUSH EDX
PUSH EAX
CALL 0x000163f0
MOV EDX,dword ptr [EBX + 0x2108]
ADD ESP,0x10
MOV dword ptr [EBX + 0x2110],EAX
JMP 0x000582a6
SUB ESP,0xc
PUSH EDX
CALL 0x00016dc8
MOV EDX,dword ptr [EBX + 0x2108]
ADD ESP,0x10
MOV dword ptr [EBX + 0x2110],EAX
JMP 0x000582a6
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00058280(undefined1 param_1)\n\n{\n  undefined1 *puVar1;\n  int iVar2;\n  \n  if (DAT_001d1108 == DAT_001d110c) {\n    DAT_001d110c = DAT_001d1108 + 0x32;\n    if (DAT_001d1110 == 0) {\n      DAT_001d1110 = xmalloc(DAT_001d1108 + 0x33);\n    }\n    else {\n      DAT_001d1110 = xrealloc(DAT_001d1110,DAT_001d1108 + 0x33);\n    }\n  }\n  iVar2 = DAT_001d1110;\n  *(undefined1 *)(DAT_001d1110 + 1 + DAT_001d1108) = 0;\n  puVar1 = (undefined1 *)(iVar2 + DAT_001d1108);\n  DAT_001d1108 = DAT_001d1108 + 1;\n  *puVar1 = param_1;\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00058280(undefined1 param_1)\n\n{\n  undefined1 *puVar1;\n  int iVar2;\n  \n  if (DAT_001d1108 == DAT_001d110c) {\n    DAT_001d110c = DAT_001d1108 + 0x32;\n    if (DAT_001d1110 == 0) {\n      DAT_001d1110 = xmalloc(DAT_001d1108 + 0x33);\n    }\n    else {\n      DAT_001d1110 = xrealloc(DAT_001d1110,DAT_001d1108 + 0x33);\n    }\n  }\n  iVar2 = DAT_001d1110;\n  *(undefined1 *)(DAT_001d1110 + 1 + DAT_001d1108) = 0;\n  puVar1 = (undefined1 *)(iVar2 + DAT_001d1108);\n  DAT_001d1108 = DAT_001d1108 + 1;\n  *puVar1 = param_1;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00058280(undefined1 param_1)" identifier (parameter_list "(undefined1 param_1)" ( (parameter_declaration "undefined1 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined1 *puVar1;\n  int iVar2;\n  \n  if (DAT_001d1108 == DAT_001d110c) {\n    DAT_001d110c = DAT_001d1108 + 0x32;\n    if (DAT_001d1110 == 0) {\n      DAT_001d1110 = xmalloc(DAT_001d1108 + 0x33);\n    }\n    else {\n      DAT_001d1110 = xrealloc(DAT_001d1110,DAT_001d1108 + 0x33);\n    }\n  }\n  iVar2 = DAT_001d1110;\n  *(undefined1 *)(DAT_001d1110 + 1 + DAT_001d1108) = 0;\n  puVar1 = (undefined1 *)(iVar2 + DAT_001d1108);\n  DAT_001d1108 = DAT_001d1108 + 1;\n  *puVar1 = param_1;\n  return;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (DAT_001d1108 == DAT_001d110c) {\n    DAT_001d110c = DAT_001d1108 + 0x32;\n    if (DAT_001d1110 == 0) {\n      DAT_001d1110 = xmalloc(DAT_001d1108 + 0x33);\n    }\n    else {\n      DAT_001d1110 = xrealloc(DAT_001d1110,DAT_001d1108 + 0x33);\n    }\n  }" if (parenthesized_expression "(DAT_001d1108 == DAT_001d110c)" ( (binary_expression "DAT_001d1108 == DAT_001d110c" identifier == identifier) )) (compound_statement "{\n    DAT_001d110c = DAT_001d1108 + 0x32;\n    if (DAT_001d1110 == 0) {\n      DAT_001d1110 = xmalloc(DAT_001d1108 + 0x33);\n    }\n    else {\n      DAT_001d1110 = xrealloc(DAT_001d1110,DAT_001d1108 + 0x33);\n    }\n  }" { (expression_statement "DAT_001d110c = DAT_001d1108 + 0x32;" (assignment_expression "DAT_001d110c = DAT_001d1108 + 0x32" identifier = (binary_expression "DAT_001d1108 + 0x32" identifier + number_literal)) ;) (if_statement "if (DAT_001d1110 == 0) {\n      DAT_001d1110 = xmalloc(DAT_001d1108 + 0x33);\n    }\n    else {\n      DAT_001d1110 = xrealloc(DAT_001d1110,DAT_001d1108 + 0x33);\n    }" if (parenthesized_expression "(DAT_001d1110 == 0)" ( (binary_expression "DAT_001d1110 == 0" identifier == number_literal) )) (compound_statement "{\n      DAT_001d1110 = xmalloc(DAT_001d1108 + 0x33);\n    }" { (expression_statement "DAT_001d1110 = xmalloc(DAT_001d1108 + 0x33);" (assignment_expression "DAT_001d1110 = xmalloc(DAT_001d1108 + 0x33)" identifier = (call_expression "xmalloc(DAT_001d1108 + 0x33)" identifier (argument_list "(DAT_001d1108 + 0x33)" ( (binary_expression "DAT_001d1108 + 0x33" identifier + number_literal) )))) ;) }) (else_clause "else {\n      DAT_001d1110 = xrealloc(DAT_001d1110,DAT_001d1108 + 0x33);\n    }" else (compound_statement "{\n      DAT_001d1110 = xrealloc(DAT_001d1110,DAT_001d1108 + 0x33);\n    }" { (expression_statement "DAT_001d1110 = xrealloc(DAT_001d1110,DAT_001d1108 + 0x33);" (assignment_expression "DAT_001d1110 = xrealloc(DAT_001d1110,DAT_001d1108 + 0x33)" identifier = (call_expression "xrealloc(DAT_001d1110,DAT_001d1108 + 0x33)" identifier (argument_list "(DAT_001d1110,DAT_001d1108 + 0x33)" ( identifier , (binary_expression "DAT_001d1108 + 0x33" identifier + number_literal) )))) ;) }))) })) (expression_statement "iVar2 = DAT_001d1110;" (assignment_expression "iVar2 = DAT_001d1110" identifier = identifier) ;) (expression_statement "*(undefined1 *)(DAT_001d1110 + 1 + DAT_001d1108) = 0;" (assignment_expression "*(undefined1 *)(DAT_001d1110 + 1 + DAT_001d1108) = 0" (pointer_expression "*(undefined1 *)(DAT_001d1110 + 1 + DAT_001d1108)" * (cast_expression "(undefined1 *)(DAT_001d1110 + 1 + DAT_001d1108)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001d1110 + 1 + DAT_001d1108)" ( (binary_expression "DAT_001d1110 + 1 + DAT_001d1108" (binary_expression "DAT_001d1110 + 1" identifier + number_literal) + identifier) )))) = number_literal) ;) (expression_statement "puVar1 = (undefined1 *)(iVar2 + DAT_001d1108);" (assignment_expression "puVar1 = (undefined1 *)(iVar2 + DAT_001d1108)" identifier = (cast_expression "(undefined1 *)(iVar2 + DAT_001d1108)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + DAT_001d1108)" ( (binary_expression "iVar2 + DAT_001d1108" identifier + identifier) )))) ;) (expression_statement "DAT_001d1108 = DAT_001d1108 + 1;" (assignment_expression "DAT_001d1108 = DAT_001d1108 + 1" identifier = (binary_expression "DAT_001d1108 + 1" identifier + number_literal)) ;) (expression_statement "*puVar1 = param_1;" (assignment_expression "*puVar1 = param_1" (pointer_expression "*puVar1" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 put_buf(char c)\n\n{\n  char *pcVar1;\n  \n  if (bufptr == buflen) {\n    buflen = bufptr + 0x32;\n    if (buffer == (char *)0x0) {\n      buffer = (char *)xmalloc(bufptr + 0x33);\n    }\n    else {\n      buffer = (char *)xrealloc(buffer,bufptr + 0x33);\n    }\n  }\n  pcVar1 = buffer;\n  buffer[bufptr + 1] = '\0';\n  pcVar1 = pcVar1 + bufptr;\n  bufptr = bufptr + 1;\n  *pcVar1 = c;\n  return;\n}\n\n" comment (function_definition "void __regparm3 put_buf(char c)\n\n{\n  char *pcVar1;\n  \n  if (bufptr == buflen) {\n    buflen = bufptr + 0x32;\n    if (buffer == (char *)0x0) {\n      buffer = (char *)xmalloc(bufptr + 0x33);\n    }\n    else {\n      buffer = (char *)xrealloc(buffer,bufptr + 0x33);\n    }\n  }\n  pcVar1 = buffer;\n  buffer[bufptr + 1] = '\0';\n  pcVar1 = pcVar1 + bufptr;\n  bufptr = bufptr + 1;\n  *pcVar1 = c;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "put_buf(char c)" identifier (parameter_list "(char c)" ( (parameter_declaration "char c" primitive_type identifier) ))) (compound_statement "{\n  char *pcVar1;\n  \n  if (bufptr == buflen) {\n    buflen = bufptr + 0x32;\n    if (buffer == (char *)0x0) {\n      buffer = (char *)xmalloc(bufptr + 0x33);\n    }\n    else {\n      buffer = (char *)xrealloc(buffer,bufptr + 0x33);\n    }\n  }\n  pcVar1 = buffer;\n  buffer[bufptr + 1] = '\0';\n  pcVar1 = pcVar1 + bufptr;\n  bufptr = bufptr + 1;\n  *pcVar1 = c;\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (if_statement "if (bufptr == buflen) {\n    buflen = bufptr + 0x32;\n    if (buffer == (char *)0x0) {\n      buffer = (char *)xmalloc(bufptr + 0x33);\n    }\n    else {\n      buffer = (char *)xrealloc(buffer,bufptr + 0x33);\n    }\n  }" if (parenthesized_expression "(bufptr == buflen)" ( (binary_expression "bufptr == buflen" identifier == identifier) )) (compound_statement "{\n    buflen = bufptr + 0x32;\n    if (buffer == (char *)0x0) {\n      buffer = (char *)xmalloc(bufptr + 0x33);\n    }\n    else {\n      buffer = (char *)xrealloc(buffer,bufptr + 0x33);\n    }\n  }" { (expression_statement "buflen = bufptr + 0x32;" (assignment_expression "buflen = bufptr + 0x32" identifier = (binary_expression "bufptr + 0x32" identifier + number_literal)) ;) (if_statement "if (buffer == (char *)0x0) {\n      buffer = (char *)xmalloc(bufptr + 0x33);\n    }\n    else {\n      buffer = (char *)xrealloc(buffer,bufptr + 0x33);\n    }" if (parenthesized_expression "(buffer == (char *)0x0)" ( (binary_expression "buffer == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      buffer = (char *)xmalloc(bufptr + 0x33);\n    }" { (expression_statement "buffer = (char *)xmalloc(bufptr + 0x33);" (assignment_expression "buffer = (char *)xmalloc(bufptr + 0x33)" identifier = (cast_expression "(char *)xmalloc(bufptr + 0x33)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(bufptr + 0x33)" identifier (argument_list "(bufptr + 0x33)" ( (binary_expression "bufptr + 0x33" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      buffer = (char *)xrealloc(buffer,bufptr + 0x33);\n    }" else (compound_statement "{\n      buffer = (char *)xrealloc(buffer,bufptr + 0x33);\n    }" { (expression_statement "buffer = (char *)xrealloc(buffer,bufptr + 0x33);" (assignment_expression "buffer = (char *)xrealloc(buffer,bufptr + 0x33)" identifier = (cast_expression "(char *)xrealloc(buffer,bufptr + 0x33)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(buffer,bufptr + 0x33)" identifier (argument_list "(buffer,bufptr + 0x33)" ( identifier , (binary_expression "bufptr + 0x33" identifier + number_literal) ))))) ;) }))) })) (expression_statement "pcVar1 = buffer;" (assignment_expression "pcVar1 = buffer" identifier = identifier) ;) (expression_statement "buffer[bufptr + 1] = '\0';" (assignment_expression "buffer[bufptr + 1] = '\0'" (subscript_expression "buffer[bufptr + 1]" identifier [ (binary_expression "bufptr + 1" identifier + number_literal) ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar1 = pcVar1 + bufptr;" (assignment_expression "pcVar1 = pcVar1 + bufptr" identifier = (binary_expression "pcVar1 + bufptr" identifier + identifier)) ;) (expression_statement "bufptr = bufptr + 1;" (assignment_expression "bufptr = bufptr + 1" identifier = (binary_expression "bufptr + 1" identifier + number_literal)) ;) (expression_statement "*pcVar1 = c;" (assignment_expression "*pcVar1 = c" (pointer_expression "*pcVar1" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00058280(undefined1 param_1)\n\n{\n  undefined1 *puVar1;\n  int iVar2;\n  \n  if (DAT_001d1108 == DAT_001d110c) {\n    DAT_001d110c = DAT_001d1108 + 0x32;\n    if (DAT_001d1110 == 0) {\n      DAT_001d1110 = xmalloc(DAT_001d1108 + 0x33);\n    }\n    else {\n      DAT_001d1110 = xrealloc(DAT_001d1110,DAT_001d1108 + 0x33);\n    }\n  }\n  iVar2 = DAT_001d1110;\n  *(undefined1 *)(DAT_001d1110 + 1 + DAT_001d1108) = 0;\n  puVar1 = (undefined1 *)(iVar2 + DAT_001d1108);\n  DAT_001d1108 = DAT_001d1108 + 1;\n  *puVar1 = param_1;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00058280(undefined1 param_1)\n\n{\n  undefined1 *puVar1;\n  int iVar2;\n  \n  if (DAT_001d1108 == DAT_001d110c) {\n    DAT_001d110c = DAT_001d1108 + 0x32;\n    if (DAT_001d1110 == 0) {\n      DAT_001d1110 = xmalloc(DAT_001d1108 + 0x33);\n    }\n    else {\n      DAT_001d1110 = xrealloc(DAT_001d1110,DAT_001d1108 + 0x33);\n    }\n  }\n  iVar2 = DAT_001d1110;\n  *(undefined1 *)(DAT_001d1110 + 1 + DAT_001d1108) = 0;\n  puVar1 = (undefined1 *)(iVar2 + DAT_001d1108);\n  DAT_001d1108 = DAT_001d1108 + 1;\n  *puVar1 = param_1;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00058280(undefined1 param_1)" identifier (parameter_list "(undefined1 param_1)" ( (parameter_declaration "undefined1 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined1 *puVar1;\n  int iVar2;\n  \n  if (DAT_001d1108 == DAT_001d110c) {\n    DAT_001d110c = DAT_001d1108 + 0x32;\n    if (DAT_001d1110 == 0) {\n      DAT_001d1110 = xmalloc(DAT_001d1108 + 0x33);\n    }\n    else {\n      DAT_001d1110 = xrealloc(DAT_001d1110,DAT_001d1108 + 0x33);\n    }\n  }\n  iVar2 = DAT_001d1110;\n  *(undefined1 *)(DAT_001d1110 + 1 + DAT_001d1108) = 0;\n  puVar1 = (undefined1 *)(iVar2 + DAT_001d1108);\n  DAT_001d1108 = DAT_001d1108 + 1;\n  *puVar1 = param_1;\n  return;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (DAT_001d1108 == DAT_001d110c) {\n    DAT_001d110c = DAT_001d1108 + 0x32;\n    if (DAT_001d1110 == 0) {\n      DAT_001d1110 = xmalloc(DAT_001d1108 + 0x33);\n    }\n    else {\n      DAT_001d1110 = xrealloc(DAT_001d1110,DAT_001d1108 + 0x33);\n    }\n  }" if (parenthesized_expression "(DAT_001d1108 == DAT_001d110c)" ( (binary_expression "DAT_001d1108 == DAT_001d110c" identifier == identifier) )) (compound_statement "{\n    DAT_001d110c = DAT_001d1108 + 0x32;\n    if (DAT_001d1110 == 0) {\n      DAT_001d1110 = xmalloc(DAT_001d1108 + 0x33);\n    }\n    else {\n      DAT_001d1110 = xrealloc(DAT_001d1110,DAT_001d1108 + 0x33);\n    }\n  }" { (expression_statement "DAT_001d110c = DAT_001d1108 + 0x32;" (assignment_expression "DAT_001d110c = DAT_001d1108 + 0x32" identifier = (binary_expression "DAT_001d1108 + 0x32" identifier + number_literal)) ;) (if_statement "if (DAT_001d1110 == 0) {\n      DAT_001d1110 = xmalloc(DAT_001d1108 + 0x33);\n    }\n    else {\n      DAT_001d1110 = xrealloc(DAT_001d1110,DAT_001d1108 + 0x33);\n    }" if (parenthesized_expression "(DAT_001d1110 == 0)" ( (binary_expression "DAT_001d1110 == 0" identifier == number_literal) )) (compound_statement "{\n      DAT_001d1110 = xmalloc(DAT_001d1108 + 0x33);\n    }" { (expression_statement "DAT_001d1110 = xmalloc(DAT_001d1108 + 0x33);" (assignment_expression "DAT_001d1110 = xmalloc(DAT_001d1108 + 0x33)" identifier = (call_expression "xmalloc(DAT_001d1108 + 0x33)" identifier (argument_list "(DAT_001d1108 + 0x33)" ( (binary_expression "DAT_001d1108 + 0x33" identifier + number_literal) )))) ;) }) (else_clause "else {\n      DAT_001d1110 = xrealloc(DAT_001d1110,DAT_001d1108 + 0x33);\n    }" else (compound_statement "{\n      DAT_001d1110 = xrealloc(DAT_001d1110,DAT_001d1108 + 0x33);\n    }" { (expression_statement "DAT_001d1110 = xrealloc(DAT_001d1110,DAT_001d1108 + 0x33);" (assignment_expression "DAT_001d1110 = xrealloc(DAT_001d1110,DAT_001d1108 + 0x33)" identifier = (call_expression "xrealloc(DAT_001d1110,DAT_001d1108 + 0x33)" identifier (argument_list "(DAT_001d1110,DAT_001d1108 + 0x33)" ( identifier , (binary_expression "DAT_001d1108 + 0x33" identifier + number_literal) )))) ;) }))) })) (expression_statement "iVar2 = DAT_001d1110;" (assignment_expression "iVar2 = DAT_001d1110" identifier = identifier) ;) (expression_statement "*(undefined1 *)(DAT_001d1110 + 1 + DAT_001d1108) = 0;" (assignment_expression "*(undefined1 *)(DAT_001d1110 + 1 + DAT_001d1108) = 0" (pointer_expression "*(undefined1 *)(DAT_001d1110 + 1 + DAT_001d1108)" * (cast_expression "(undefined1 *)(DAT_001d1110 + 1 + DAT_001d1108)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001d1110 + 1 + DAT_001d1108)" ( (binary_expression "DAT_001d1110 + 1 + DAT_001d1108" (binary_expression "DAT_001d1110 + 1" identifier + number_literal) + identifier) )))) = number_literal) ;) (expression_statement "puVar1 = (undefined1 *)(iVar2 + DAT_001d1108);" (assignment_expression "puVar1 = (undefined1 *)(iVar2 + DAT_001d1108)" identifier = (cast_expression "(undefined1 *)(iVar2 + DAT_001d1108)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + DAT_001d1108)" ( (binary_expression "iVar2 + DAT_001d1108" identifier + identifier) )))) ;) (expression_statement "DAT_001d1108 = DAT_001d1108 + 1;" (assignment_expression "DAT_001d1108 = DAT_001d1108 + 1" identifier = (binary_expression "DAT_001d1108 + 1" identifier + number_literal)) ;) (expression_statement "*puVar1 = param_1;" (assignment_expression "*puVar1 = param_1" (pointer_expression "*puVar1" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) }))) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00058280(undefined1 param_1)\n\n{\n  undefined1 *puVar1;\n  int iVar2;\n  \n  if (DAT_001d1108 == DAT_001d110c) {\n    DAT_001d110c = DAT_001d1108 + 0x32;\n    if (DAT_001d1110 == 0) {\n      DAT_001d1110 = xmalloc(DAT_001d1108 + 0x33);\n    }\n    else {\n      DAT_001d1110 = xrealloc(DAT_001d1110,DAT_001d1108 + 0x33);\n    }\n  }\n  iVar2 = DAT_001d1110;\n  *(undefined1 *)(DAT_001d1110 + 1 + DAT_001d1108) = 0;\n  puVar1 = (undefined1 *)(iVar2 + DAT_001d1108);\n  DAT_001d1108 = DAT_001d1108 + 1;\n  *puVar1 = param_1;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00058280(undefined1 param_1)" (identifier "FUN_00058280") (parameter_list "(undefined1 param_1)" (( "(") (parameter_declaration "undefined1 param_1" (type_identifier "undefined1") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined1 *puVar1;\n  int iVar2;\n  \n  if (DAT_001d1108 == DAT_001d110c) {\n    DAT_001d110c = DAT_001d1108 + 0x32;\n    if (DAT_001d1110 == 0) {\n      DAT_001d1110 = xmalloc(DAT_001d1108 + 0x33);\n    }\n    else {\n      DAT_001d1110 = xrealloc(DAT_001d1110,DAT_001d1108 + 0x33);\n    }\n  }\n  iVar2 = DAT_001d1110;\n  *(undefined1 *)(DAT_001d1110 + 1 + DAT_001d1108) = 0;\n  puVar1 = (undefined1 *)(iVar2 + DAT_001d1108);\n  DAT_001d1108 = DAT_001d1108 + 1;\n  *puVar1 = param_1;\n  return;\n}" ({ "{") (declaration "undefined1 *puVar1;" (type_identifier "undefined1") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (if_statement "if (DAT_001d1108 == DAT_001d110c) {\n    DAT_001d110c = DAT_001d1108 + 0x32;\n    if (DAT_001d1110 == 0) {\n      DAT_001d1110 = xmalloc(DAT_001d1108 + 0x33);\n    }\n    else {\n      DAT_001d1110 = xrealloc(DAT_001d1110,DAT_001d1108 + 0x33);\n    }\n  }" (if "if") (parenthesized_expression "(DAT_001d1108 == DAT_001d110c)" (( "(") (binary_expression "DAT_001d1108 == DAT_001d110c" (identifier "DAT_001d1108") (== "==") (identifier "DAT_001d110c")) () ")")) (compound_statement "{\n    DAT_001d110c = DAT_001d1108 + 0x32;\n    if (DAT_001d1110 == 0) {\n      DAT_001d1110 = xmalloc(DAT_001d1108 + 0x33);\n    }\n    else {\n      DAT_001d1110 = xrealloc(DAT_001d1110,DAT_001d1108 + 0x33);\n    }\n  }" ({ "{") (expression_statement "DAT_001d110c = DAT_001d1108 + 0x32;" (assignment_expression "DAT_001d110c = DAT_001d1108 + 0x32" (identifier "DAT_001d110c") (= "=") (binary_expression "DAT_001d1108 + 0x32" (identifier "DAT_001d1108") (+ "+") (number_literal "0x32"))) (; ";")) (if_statement "if (DAT_001d1110 == 0) {\n      DAT_001d1110 = xmalloc(DAT_001d1108 + 0x33);\n    }\n    else {\n      DAT_001d1110 = xrealloc(DAT_001d1110,DAT_001d1108 + 0x33);\n    }" (if "if") (parenthesized_expression "(DAT_001d1110 == 0)" (( "(") (binary_expression "DAT_001d1110 == 0" (identifier "DAT_001d1110") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      DAT_001d1110 = xmalloc(DAT_001d1108 + 0x33);\n    }" ({ "{") (expression_statement "DAT_001d1110 = xmalloc(DAT_001d1108 + 0x33);" (assignment_expression "DAT_001d1110 = xmalloc(DAT_001d1108 + 0x33)" (identifier "DAT_001d1110") (= "=") (call_expression "xmalloc(DAT_001d1108 + 0x33)" (identifier "xmalloc") (argument_list "(DAT_001d1108 + 0x33)" (( "(") (binary_expression "DAT_001d1108 + 0x33" (identifier "DAT_001d1108") (+ "+") (number_literal "0x33")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n      DAT_001d1110 = xrealloc(DAT_001d1110,DAT_001d1108 + 0x33);\n    }" (else "else") (compound_statement "{\n      DAT_001d1110 = xrealloc(DAT_001d1110,DAT_001d1108 + 0x33);\n    }" ({ "{") (expression_statement "DAT_001d1110 = xrealloc(DAT_001d1110,DAT_001d1108 + 0x33);" (assignment_expression "DAT_001d1110 = xrealloc(DAT_001d1110,DAT_001d1108 + 0x33)" (identifier "DAT_001d1110") (= "=") (call_expression "xrealloc(DAT_001d1110,DAT_001d1108 + 0x33)" (identifier "xrealloc") (argument_list "(DAT_001d1110,DAT_001d1108 + 0x33)" (( "(") (identifier "DAT_001d1110") (, ",") (binary_expression "DAT_001d1108 + 0x33" (identifier "DAT_001d1108") (+ "+") (number_literal "0x33")) () ")")))) (; ";")) (} "}")))) (} "}"))) (expression_statement "iVar2 = DAT_001d1110;" (assignment_expression "iVar2 = DAT_001d1110" (identifier "iVar2") (= "=") (identifier "DAT_001d1110")) (; ";")) (expression_statement "*(undefined1 *)(DAT_001d1110 + 1 + DAT_001d1108) = 0;" (assignment_expression "*(undefined1 *)(DAT_001d1110 + 1 + DAT_001d1108) = 0" (pointer_expression "*(undefined1 *)(DAT_001d1110 + 1 + DAT_001d1108)" (* "*") (cast_expression "(undefined1 *)(DAT_001d1110 + 1 + DAT_001d1108)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_001d1110 + 1 + DAT_001d1108)" (( "(") (binary_expression "DAT_001d1110 + 1 + DAT_001d1108" (binary_expression "DAT_001d1110 + 1" (identifier "DAT_001d1110") (+ "+") (number_literal "1")) (+ "+") (identifier "DAT_001d1108")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1 = (undefined1 *)(iVar2 + DAT_001d1108);" (assignment_expression "puVar1 = (undefined1 *)(iVar2 + DAT_001d1108)" (identifier "puVar1") (= "=") (cast_expression "(undefined1 *)(iVar2 + DAT_001d1108)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + DAT_001d1108)" (( "(") (binary_expression "iVar2 + DAT_001d1108" (identifier "iVar2") (+ "+") (identifier "DAT_001d1108")) () ")")))) (; ";")) (expression_statement "DAT_001d1108 = DAT_001d1108 + 1;" (assignment_expression "DAT_001d1108 = DAT_001d1108 + 1" (identifier "DAT_001d1108") (= "=") (binary_expression "DAT_001d1108 + 1" (identifier "DAT_001d1108") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*puVar1 = param_1;" (assignment_expression "*puVar1 = param_1" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "param_1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(char c)

{
  char *var_6;
  
  if (var_1 == var_2) {
    var_2 = var_1 + 0x32;
    if (var_3 == (char *)0x0) {
      var_3 = (char *)var_4(var_1 + 0x33);
    }
    else {
      var_3 = (char *)var_5(var_3,var_1 + 0x33);
    }
  }
  var_6 = var_3;
  var_3[var_1 + 1] = '\0';
  var_6 = var_6 + var_1;
  var_1 = var_1 + 1;
  *var_6 = c;
  return;
}


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

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

void __regparm3 MASKED(undefined1 param_1)

{
  undefined1 *puVar1;
  int iVar2;
  
  if (DAT_001d1108 == DAT_001d110c) {
    DAT_001d110c = DAT_001d1108 + 0x32;
    if (DAT_001d1110 == 0) {
      DAT_001d1110 = xmalloc(DAT_001d1108 + 0x33);
    }
    else {
      DAT_001d1110 = xrealloc(DAT_001d1110,DAT_001d1108 + 0x33);
    }
  }
  iVar2 = DAT_001d1110;
  *(undefined1 *)(DAT_001d1110 + 1 + DAT_001d1108) = 0;
  puVar1 = (undefined1 *)(iVar2 + DAT_001d1108);
  DAT_001d1108 = DAT_001d1108 + 1;
  *puVar1 = param_1;
  return;
}

