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

void sb_new(sb *ptr)

{
  char *pcVar1;
  
  pcVar1 = (char *)xmalloc(0x38);
  ptr->max = 0x37;
  ptr->ptr = pcVar1;
  ptr->len = 0;
  return;
}



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

void FUN_00035790(undefined4 *param_1)

{
  undefined4 uVar1;
  
  uVar1 = xmalloc(0x38);
  param_1[2] = 0x37;
  *param_1 = uVar1;
  param_1[1] = 0;
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00016000
ADD EBX,0x4a869
SUB ESP,0x10
MOV ESI,dword ptr [ESP + 0x1c]
PUSH 0x38
CALL 0x00014790
MOV dword ptr [ESI + 0x8],0x37
MOV dword ptr [ESI],EAX
MOV dword ptr [ESI + 0x4],0x0
ADD ESP,0x14
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00035790(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = xmalloc(0x38);\n  param_1[2] = 0x37;\n  *param_1 = uVar1;\n  param_1[1] = 0;\n  return;\n}\n\n" comment (function_definition "void FUN_00035790(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = xmalloc(0x38);\n  param_1[2] = 0x37;\n  *param_1 = uVar1;\n  param_1[1] = 0;\n  return;\n}" primitive_type (function_declarator "FUN_00035790(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = xmalloc(0x38);\n  param_1[2] = 0x37;\n  *param_1 = uVar1;\n  param_1[1] = 0;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = xmalloc(0x38);" (assignment_expression "uVar1 = xmalloc(0x38)" identifier = (call_expression "xmalloc(0x38)" identifier (argument_list "(0x38)" ( number_literal )))) ;) (expression_statement "param_1[2] = 0x37;" (assignment_expression "param_1[2] = 0x37" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_1 = uVar1;" (assignment_expression "*param_1 = uVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid sb_new(sb *ptr)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = (char *)xmalloc(0x38);\n  ptr->max = 0x37;\n  ptr->ptr = pcVar1;\n  ptr->len = 0;\n  return;\n}\n\n" comment comment (function_definition "void sb_new(sb *ptr)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = (char *)xmalloc(0x38);\n  ptr->max = 0x37;\n  ptr->ptr = pcVar1;\n  ptr->len = 0;\n  return;\n}" primitive_type (function_declarator "sb_new(sb *ptr)" identifier (parameter_list "(sb *ptr)" ( (parameter_declaration "sb *ptr" type_identifier (pointer_declarator "*ptr" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  \n  pcVar1 = (char *)xmalloc(0x38);\n  ptr->max = 0x37;\n  ptr->ptr = pcVar1;\n  ptr->len = 0;\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "pcVar1 = (char *)xmalloc(0x38);" (assignment_expression "pcVar1 = (char *)xmalloc(0x38)" identifier = (cast_expression "(char *)xmalloc(0x38)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x38)" identifier (argument_list "(0x38)" ( number_literal ))))) ;) (expression_statement "ptr->max = 0x37;" (assignment_expression "ptr->max = 0x37" (field_expression "ptr->max" identifier -> field_identifier) = number_literal) ;) (expression_statement "ptr->ptr = pcVar1;" (assignment_expression "ptr->ptr = pcVar1" (field_expression "ptr->ptr" identifier -> field_identifier) = identifier) ;) (expression_statement "ptr->len = 0;" (assignment_expression "ptr->len = 0" (field_expression "ptr->len" identifier -> field_identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00035790(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = xmalloc(0x38);\n  param_1[2] = 0x37;\n  *param_1 = uVar1;\n  param_1[1] = 0;\n  return;\n}\n\n" (function_definition "void FUN_00035790(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = xmalloc(0x38);\n  param_1[2] = 0x37;\n  *param_1 = uVar1;\n  param_1[1] = 0;\n  return;\n}" primitive_type (function_declarator "FUN_00035790(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = xmalloc(0x38);\n  param_1[2] = 0x37;\n  *param_1 = uVar1;\n  param_1[1] = 0;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = xmalloc(0x38);" (assignment_expression "uVar1 = xmalloc(0x38)" identifier = (call_expression "xmalloc(0x38)" identifier (argument_list "(0x38)" ( number_literal )))) ;) (expression_statement "param_1[2] = 0x37;" (assignment_expression "param_1[2] = 0x37" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_1 = uVar1;" (assignment_expression "*param_1 = uVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" 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)) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_00035790(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = xmalloc(0x38);\n  param_1[2] = 0x37;\n  *param_1 = uVar1;\n  param_1[1] = 0;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00035790(undefined4 *param_1)" (identifier "FUN_00035790") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = xmalloc(0x38);\n  param_1[2] = 0x37;\n  *param_1 = uVar1;\n  param_1[1] = 0;\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (expression_statement "uVar1 = xmalloc(0x38);" (assignment_expression "uVar1 = xmalloc(0x38)" (identifier "uVar1") (= "=") (call_expression "xmalloc(0x38)" (identifier "xmalloc") (argument_list "(0x38)" (( "(") (number_literal "0x38") () ")")))) (; ";")) (expression_statement "param_1[2] = 0x37;" (assignment_expression "param_1[2] = 0x37" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0x37")) (; ";")) (expression_statement "*param_1 = uVar1;" (assignment_expression "*param_1 = uVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "uVar1")) (; ";")) (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")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *ptr)

{
  char *pcVar1;
  
  pcVar1 = (char *)var_1(0x38);
  ptr->max = 0x37;
  ptr->ptr = pcVar1;
  ptr->len = 0;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (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: (identifier))) (expression_statement (assignment_expression left: (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(undefined4 *param_1)

{
  undefined4 uVar1;
  
  uVar1 = xmalloc(0x38);
  param_1[2] = 0x37;
  *param_1 = uVar1;
  param_1[1] = 0;
  return;
}

