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

void __regparm3 smemclr(void *b,size_t n)

{
  char cVar1;
  
  memset(b,0,n);
                    /* WARNING: Load size is inaccurate */
  cVar1 = *b;
  while (cVar1 != '\0') {
    b = (void *)((int)b + 1);
                    /* WARNING: Load size is inaccurate */
    cVar1 = *b;
  }
  return;
}



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

void __regparm3 FUN_00018f30(char *param_1,size_t param_2)

{
  char cVar1;
  
  memset(param_1,0,param_2);
  cVar1 = *param_1;
  while (cVar1 != '\0') {
    param_1 = param_1 + 1;
    cVar1 = *param_1;
  }
  return;
}


PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x000152d0
ADD EBX,0x55daf
SUB ESP,0x8
PUSH EDX
PUSH 0x0
PUSH EAX
CALL 0x00014900
MOVZX EAX,byte ptr [ESI]
ADD ESP,0x10
TEST AL,AL
JZ 0x00018f62
LEA ESI,[ESI]
ADD ESI,0x1
MOVZX EAX,byte ptr [ESI]
TEST AL,AL
JNZ 0x00018f58
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00018f30(char *param_1,size_t param_2)\n\n{\n  char cVar1;\n  \n  memset(param_1,0,param_2);\n  cVar1 = *param_1;\n  while (cVar1 != '\0') {\n    param_1 = param_1 + 1;\n    cVar1 = *param_1;\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00018f30(char *param_1,size_t param_2)\n\n{\n  char cVar1;\n  \n  memset(param_1,0,param_2);\n  cVar1 = *param_1;\n  while (cVar1 != '\0') {\n    param_1 = param_1 + 1;\n    cVar1 = *param_1;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00018f30(char *param_1,size_t param_2)" identifier (parameter_list "(char *param_1,size_t param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "size_t param_2" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  \n  memset(param_1,0,param_2);\n  cVar1 = *param_1;\n  while (cVar1 != '\0') {\n    param_1 = param_1 + 1;\n    cVar1 = *param_1;\n  }\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (expression_statement "memset(param_1,0,param_2);" (call_expression "memset(param_1,0,param_2)" identifier (argument_list "(param_1,0,param_2)" ( identifier , number_literal , identifier ))) ;) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (while_statement "while (cVar1 != '\0') {\n    param_1 = param_1 + 1;\n    cVar1 = *param_1;\n  }" while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    param_1 = param_1 + 1;\n    cVar1 = *param_1;\n  }" { (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 smemclr(void *b,size_t n)\n\n{\n  char cVar1;\n  \n  memset(b,0,n);\n                    /* WARNING: Load size is inaccurate */\n  cVar1 = *b;\n  while (cVar1 != '\0') {\n    b = (void *)((int)b + 1);\n                    /* WARNING: Load size is inaccurate */\n    cVar1 = *b;\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 smemclr(void *b,size_t n)\n\n{\n  char cVar1;\n  \n  memset(b,0,n);\n                    /* WARNING: Load size is inaccurate */\n  cVar1 = *b;\n  while (cVar1 != '\0') {\n    b = (void *)((int)b + 1);\n                    /* WARNING: Load size is inaccurate */\n    cVar1 = *b;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "smemclr(void *b,size_t n)" identifier (parameter_list "(void *b,size_t n)" ( (parameter_declaration "void *b" primitive_type (pointer_declarator "*b" * identifier)) , (parameter_declaration "size_t n" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  \n  memset(b,0,n);\n                    /* WARNING: Load size is inaccurate */\n  cVar1 = *b;\n  while (cVar1 != '\0') {\n    b = (void *)((int)b + 1);\n                    /* WARNING: Load size is inaccurate */\n    cVar1 = *b;\n  }\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (expression_statement "memset(b,0,n);" (call_expression "memset(b,0,n)" identifier (argument_list "(b,0,n)" ( identifier , number_literal , identifier ))) ;) comment (expression_statement "cVar1 = *b;" (assignment_expression "cVar1 = *b" identifier = (pointer_expression "*b" * identifier)) ;) (while_statement "while (cVar1 != '\0') {\n    b = (void *)((int)b + 1);\n                    /* WARNING: Load size is inaccurate */\n    cVar1 = *b;\n  }" while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    b = (void *)((int)b + 1);\n                    /* WARNING: Load size is inaccurate */\n    cVar1 = *b;\n  }" { (expression_statement "b = (void *)((int)b + 1);" (assignment_expression "b = (void *)((int)b + 1)" identifier = (cast_expression "(void *)((int)b + 1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)b + 1)" ( (binary_expression "(int)b + 1" (cast_expression "(int)b" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) comment (expression_statement "cVar1 = *b;" (assignment_expression "cVar1 = *b" identifier = (pointer_expression "*b" * identifier)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00018f30(char *param_1,size_t param_2)\n\n{\n  char cVar1;\n  \n  memset(param_1,0,param_2);\n  cVar1 = *param_1;\n  while (cVar1 != '\0') {\n    param_1 = param_1 + 1;\n    cVar1 = *param_1;\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00018f30(char *param_1,size_t param_2)\n\n{\n  char cVar1;\n  \n  memset(param_1,0,param_2);\n  cVar1 = *param_1;\n  while (cVar1 != '\0') {\n    param_1 = param_1 + 1;\n    cVar1 = *param_1;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00018f30(char *param_1,size_t param_2)" identifier (parameter_list "(char *param_1,size_t param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "size_t param_2" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  \n  memset(param_1,0,param_2);\n  cVar1 = *param_1;\n  while (cVar1 != '\0') {\n    param_1 = param_1 + 1;\n    cVar1 = *param_1;\n  }\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (expression_statement "memset(param_1,0,param_2);" (call_expression "memset(param_1,0,param_2)" identifier (argument_list "(param_1,0,param_2)" ( identifier , number_literal , identifier ))) ;) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (while_statement "while (cVar1 != '\0') {\n    param_1 = param_1 + 1;\n    cVar1 = *param_1;\n  }" while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    param_1 = param_1 + 1;\n    cVar1 = *param_1;\n  }" { (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00018f30(char *param_1,size_t param_2)\n\n{\n  char cVar1;\n  \n  memset(param_1,0,param_2);\n  cVar1 = *param_1;\n  while (cVar1 != '\0') {\n    param_1 = param_1 + 1;\n    cVar1 = *param_1;\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00018f30(char *param_1,size_t param_2)" (identifier "FUN_00018f30") (parameter_list "(char *param_1,size_t param_2)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "size_t param_2" (primitive_type "size_t") (identifier "param_2")) () ")"))) (compound_statement "{\n  char cVar1;\n  \n  memset(param_1,0,param_2);\n  cVar1 = *param_1;\n  while (cVar1 != '\0') {\n    param_1 = param_1 + 1;\n    cVar1 = *param_1;\n  }\n  return;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (expression_statement "memset(param_1,0,param_2);" (call_expression "memset(param_1,0,param_2)" (identifier "memset") (argument_list "(param_1,0,param_2)" (( "(") (identifier "param_1") (, ",") (number_literal "0") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" (identifier "cVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (while_statement "while (cVar1 != '\0') {\n    param_1 = param_1 + 1;\n    cVar1 = *param_1;\n  }" (while "while") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    param_1 = param_1 + 1;\n    cVar1 = *param_1;\n  }" ({ "{") (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" (identifier "cVar1") (= "=") (pointer_expression "*param_1" (* "*") (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(void *b,size_t n)

{
  char var_2;
  
  var_1(b,0,n);
                    /* WARNING: Load size is inaccurate */
  var_2 = *b;
  while (var_2 != '\0') {
    b = (void *)((int)b + 1);
                    /* WARNING: Load size is inaccurate */
    var_2 = *b;
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (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)) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))))) (return_statement))))

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

void __regparm3 MASKED(char *param_1,size_t param_2)

{
  char cVar1;
  
  memset(param_1,0,param_2);
  cVar1 = *param_1;
  while (cVar1 != '\0') {
    param_1 = param_1 + 1;
    cVar1 = *param_1;
  }
  return;
}

