
void * stzalloc(size_t nbytes)

{
  undefined4 *puVar1;
  int iVar2;
  undefined4 *puVar3;
  byte bVar4;
  size_t in_stack_fffffff4;
  
  bVar4 = 0;
  puVar1 = (undefined4 *)stalloc(in_stack_fffffff4);
  puVar3 = puVar1;
  for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {
    *puVar3 = 0;
    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;
  }
  return puVar1;
}



undefined4 * FUN_0005cb83(void)

{
  undefined4 *puVar1;
  int iVar2;
  undefined4 *puVar3;
  byte bVar4;
  
  bVar4 = 0;
  puVar1 = (undefined4 *)FUN_000577a5();
  puVar3 = puVar1;
  for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {
    *puVar3 = 0;
    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;
  }
  return puVar1;
}


PUSH EDI
SUB ESP,0x8
MOV EAX,0x10
CALL 0x000577a5
MOV EDX,EAX
MOV ECX,0x4
XOR EAX,EAX
MOV EDI,EDX
STOSD.REP ES:EDI
MOV EAX,EDX
ADD ESP,0x8
POP EDI
RET
(translation_unit "undefined4 * FUN_0005cb83(void)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  byte bVar4;\n  \n  bVar4 = 0;\n  puVar1 = (undefined4 *)FUN_000577a5();\n  puVar3 = puVar1;\n  for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;\n  }\n  return puVar1;\n}\n\n" (function_definition "undefined4 * FUN_0005cb83(void)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  byte bVar4;\n  \n  bVar4 = 0;\n  puVar1 = (undefined4 *)FUN_000577a5();\n  puVar3 = puVar1;\n  for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;\n  }\n  return puVar1;\n}" type_identifier (pointer_declarator "* FUN_0005cb83(void)" * (function_declarator "FUN_0005cb83(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  byte bVar4;\n  \n  bVar4 = 0;\n  puVar1 = (undefined4 *)FUN_000577a5();\n  puVar3 = puVar1;\n  for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;\n  }\n  return puVar1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "byte bVar4;" type_identifier identifier ;) (expression_statement "bVar4 = 0;" (assignment_expression "bVar4 = 0" identifier = number_literal) ;) (expression_statement "puVar1 = (undefined4 *)FUN_000577a5();" (assignment_expression "puVar1 = (undefined4 *)FUN_000577a5()" identifier = (cast_expression "(undefined4 *)FUN_000577a5()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000577a5()" identifier (argument_list "()" ( ))))) ;) (expression_statement "puVar3 = puVar1;" (assignment_expression "puVar3 = puVar1" identifier = identifier) ;) (for_statement "for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;\n  }" for ( (assignment_expression "iVar2 = 4" identifier = number_literal) ; (binary_expression "iVar2 != 0" identifier != number_literal) ; (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;\n  }" { (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3 = puVar3 + (uint)bVar4 * -2 + 1;" (assignment_expression "puVar3 = puVar3 + (uint)bVar4 * -2 + 1" identifier = (binary_expression "puVar3 + (uint)bVar4 * -2 + 1" (binary_expression "puVar3 + (uint)bVar4 * -2" identifier + (binary_expression "(uint)bVar4 * -2" (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (return_statement "return puVar1;" return identifier ;) })))
(translation_unit "void * stzalloc(size_t nbytes)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  byte bVar4;\n  size_t in_stack_fffffff4;\n  \n  bVar4 = 0;\n  puVar1 = (undefined4 *)stalloc(in_stack_fffffff4);\n  puVar3 = puVar1;\n  for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;\n  }\n  return puVar1;\n}\n\n" (function_definition "void * stzalloc(size_t nbytes)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  byte bVar4;\n  size_t in_stack_fffffff4;\n  \n  bVar4 = 0;\n  puVar1 = (undefined4 *)stalloc(in_stack_fffffff4);\n  puVar3 = puVar1;\n  for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;\n  }\n  return puVar1;\n}" primitive_type (pointer_declarator "* stzalloc(size_t nbytes)" * (function_declarator "stzalloc(size_t nbytes)" identifier (parameter_list "(size_t nbytes)" ( (parameter_declaration "size_t nbytes" primitive_type identifier) )))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  byte bVar4;\n  size_t in_stack_fffffff4;\n  \n  bVar4 = 0;\n  puVar1 = (undefined4 *)stalloc(in_stack_fffffff4);\n  puVar3 = puVar1;\n  for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;\n  }\n  return puVar1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "byte bVar4;" type_identifier identifier ;) (declaration "size_t in_stack_fffffff4;" primitive_type identifier ;) (expression_statement "bVar4 = 0;" (assignment_expression "bVar4 = 0" identifier = number_literal) ;) (expression_statement "puVar1 = (undefined4 *)stalloc(in_stack_fffffff4);" (assignment_expression "puVar1 = (undefined4 *)stalloc(in_stack_fffffff4)" identifier = (cast_expression "(undefined4 *)stalloc(in_stack_fffffff4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "stalloc(in_stack_fffffff4)" identifier (argument_list "(in_stack_fffffff4)" ( identifier ))))) ;) (expression_statement "puVar3 = puVar1;" (assignment_expression "puVar3 = puVar1" identifier = identifier) ;) (for_statement "for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;\n  }" for ( (assignment_expression "iVar2 = 4" identifier = number_literal) ; (binary_expression "iVar2 != 0" identifier != number_literal) ; (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;\n  }" { (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3 = puVar3 + (uint)bVar4 * -2 + 1;" (assignment_expression "puVar3 = puVar3 + (uint)bVar4 * -2 + 1" identifier = (binary_expression "puVar3 + (uint)bVar4 * -2 + 1" (binary_expression "puVar3 + (uint)bVar4 * -2" identifier + (binary_expression "(uint)bVar4 * -2" (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (return_statement "return puVar1;" return identifier ;) })))
(translation_unit "undefined4 * FUN_0005cb83(void)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  byte bVar4;\n  \n  bVar4 = 0;\n  puVar1 = (undefined4 *)FUN_000577a5();\n  puVar3 = puVar1;\n  for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;\n  }\n  return puVar1;\n}\n\n" (function_definition "undefined4 * FUN_0005cb83(void)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  byte bVar4;\n  \n  bVar4 = 0;\n  puVar1 = (undefined4 *)FUN_000577a5();\n  puVar3 = puVar1;\n  for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;\n  }\n  return puVar1;\n}" type_identifier (pointer_declarator "* FUN_0005cb83(void)" * (function_declarator "FUN_0005cb83(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  byte bVar4;\n  \n  bVar4 = 0;\n  puVar1 = (undefined4 *)FUN_000577a5();\n  puVar3 = puVar1;\n  for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;\n  }\n  return puVar1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "byte bVar4;" type_identifier identifier ;) (expression_statement "bVar4 = 0;" (assignment_expression "bVar4 = 0" identifier = number_literal) ;) (expression_statement "puVar1 = (undefined4 *)FUN_000577a5();" (assignment_expression "puVar1 = (undefined4 *)FUN_000577a5()" identifier = (cast_expression "(undefined4 *)FUN_000577a5()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000577a5()" identifier (argument_list "()" ( ))))) ;) (expression_statement "puVar3 = puVar1;" (assignment_expression "puVar3 = puVar1" identifier = identifier) ;) (for_statement "for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;\n  }" for ( (assignment_expression "iVar2 = 4" identifier = number_literal) ; (binary_expression "iVar2 != 0" identifier != number_literal) ; (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;\n  }" { (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3 = puVar3 + (uint)bVar4 * -2 + 1;" (assignment_expression "puVar3 = puVar3 + (uint)bVar4 * -2 + 1" identifier = (binary_expression "puVar3 + (uint)bVar4 * -2 + 1" (binary_expression "puVar3 + (uint)bVar4 * -2" identifier + (binary_expression "(uint)bVar4 * -2" (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (return_statement "return puVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (for_statement for ( (assignment_expression IDENT = LIT) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 * FUN_0005cb83(void)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  byte bVar4;\n  \n  bVar4 = 0;\n  puVar1 = (undefined4 *)FUN_000577a5();\n  puVar3 = puVar1;\n  for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;\n  }\n  return puVar1;\n}" (type_identifier "undefined4") (pointer_declarator "* FUN_0005cb83(void)" (* "*") (function_declarator "FUN_0005cb83(void)" (identifier "FUN_0005cb83") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")")))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  byte bVar4;\n  \n  bVar4 = 0;\n  puVar1 = (undefined4 *)FUN_000577a5();\n  puVar3 = puVar1;\n  for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;\n  }\n  return puVar1;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "byte bVar4;" (type_identifier "byte") (identifier "bVar4") (; ";")) (expression_statement "bVar4 = 0;" (assignment_expression "bVar4 = 0" (identifier "bVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1 = (undefined4 *)FUN_000577a5();" (assignment_expression "puVar1 = (undefined4 *)FUN_000577a5()" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)FUN_000577a5()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_000577a5()" (identifier "FUN_000577a5") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "puVar3 = puVar1;" (assignment_expression "puVar3 = puVar1" (identifier "puVar3") (= "=") (identifier "puVar1")) (; ";")) (for_statement "for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;\n  }" (for "for") (( "(") (assignment_expression "iVar2 = 4" (identifier "iVar2") (= "=") (number_literal "4")) (; ";") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar2 = iVar2 + -1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;\n  }" ({ "{") (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3 = puVar3 + (uint)bVar4 * -2 + 1;" (assignment_expression "puVar3 = puVar3 + (uint)bVar4 * -2 + 1" (identifier "puVar3") (= "=") (binary_expression "puVar3 + (uint)bVar4 * -2 + 1" (binary_expression "puVar3 + (uint)bVar4 * -2" (identifier "puVar3") (+ "+") (binary_expression "(uint)bVar4 * -2" (cast_expression "(uint)bVar4" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar4")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (return_statement "return puVar1;" (return "return") (identifier "puVar1") (; ";")) (} "}")))

void * function_1(size_t nbytes)

{
  type_1 *puVar1;
  int var_2;
  type_1 *var_3;
  type_2 bVar4;
  size_t in_stack_fffffff4;
  
  bVar4 = 0;
  puVar1 = (type_1 *)var_1(in_stack_fffffff4);
  var_3 = puVar1;
  for (var_2 = 4; var_2 != 0; var_2 = var_2 + -1) {
    *var_3 = 0;
    var_3 = var_3 + (type_3)bVar4 * -2 + 1;
  }
  return puVar1;
}


(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (for_statement initializer: (assignment_expression left: (identifier) right: (number_literal)) condition: (binary_expression left: (identifier) right: (number_literal)) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal)))))) (return_statement (identifier)))))

undefined4 * MASKED(void)

{
  undefined4 *puVar1;
  int iVar2;
  undefined4 *puVar3;
  byte bVar4;
  
  bVar4 = 0;
  puVar1 = (undefined4 *)FUN_000577a5();
  puVar3 = puVar1;
  for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {
    *puVar3 = 0;
    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;
  }
  return puVar1;
}

