
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void cmd_init(void)

{
  wdcache.data = xmalloc(0x200);
  wdcache.cs = 0x80;
  wdcache.nc = 0;
  wlcache.data = xmalloc(0x200);
  wlcache.cs = 0x80;
  wlcache.nc = 0;
  return;
}



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

void cmd_init(void)

{
  wdcache = xmalloc(0x200);
  DAT_00177c30 = 0x80;
  DAT_00177c34 = 0;
  wlcache = xmalloc(0x200);
  DAT_00177c24 = 0x80;
  DAT_00177c28 = 0;
  return;
}


PUSH EBX
CALL 0x000312b0
ADD EBX,0x12ecaa
SUB ESP,0x14
PUSH 0x200
CALL 0x000ad700
MOV dword ptr [ESP],0x200
MOV dword ptr [EBX + 0x5c2c],EAX
MOV dword ptr [EBX + 0x5c30],0x80
MOV dword ptr [EBX + 0x5c34],0x0
CALL 0x000ad700
MOV dword ptr [EBX + 0x5c24],0x80
MOV dword ptr [EBX + 0x5c20],EAX
MOV dword ptr [EBX + 0x5c28],0x0
ADD ESP,0x18
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid cmd_init(void)\n\n{\n  wdcache = xmalloc(0x200);\n  DAT_00177c30 = 0x80;\n  DAT_00177c34 = 0;\n  wlcache = xmalloc(0x200);\n  DAT_00177c24 = 0x80;\n  DAT_00177c28 = 0;\n  return;\n}\n\n" comment (function_definition "void cmd_init(void)\n\n{\n  wdcache = xmalloc(0x200);\n  DAT_00177c30 = 0x80;\n  DAT_00177c34 = 0;\n  wlcache = xmalloc(0x200);\n  DAT_00177c24 = 0x80;\n  DAT_00177c28 = 0;\n  return;\n}" primitive_type (function_declarator "cmd_init(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  wdcache = xmalloc(0x200);\n  DAT_00177c30 = 0x80;\n  DAT_00177c34 = 0;\n  wlcache = xmalloc(0x200);\n  DAT_00177c24 = 0x80;\n  DAT_00177c28 = 0;\n  return;\n}" { (expression_statement "wdcache = xmalloc(0x200);" (assignment_expression "wdcache = xmalloc(0x200)" identifier = (call_expression "xmalloc(0x200)" identifier (argument_list "(0x200)" ( number_literal )))) ;) (expression_statement "DAT_00177c30 = 0x80;" (assignment_expression "DAT_00177c30 = 0x80" identifier = number_literal) ;) (expression_statement "DAT_00177c34 = 0;" (assignment_expression "DAT_00177c34 = 0" identifier = number_literal) ;) (expression_statement "wlcache = xmalloc(0x200);" (assignment_expression "wlcache = xmalloc(0x200)" identifier = (call_expression "xmalloc(0x200)" identifier (argument_list "(0x200)" ( number_literal )))) ;) (expression_statement "DAT_00177c24 = 0x80;" (assignment_expression "DAT_00177c24 = 0x80" identifier = number_literal) ;) (expression_statement "DAT_00177c28 = 0;" (assignment_expression "DAT_00177c28 = 0" identifier = 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 -- yet parameter storage is locked */\n\nvoid cmd_init(void)\n\n{\n  wdcache.data = xmalloc(0x200);\n  wdcache.cs = 0x80;\n  wdcache.nc = 0;\n  wlcache.data = xmalloc(0x200);\n  wlcache.cs = 0x80;\n  wlcache.nc = 0;\n  return;\n}\n\n" comment comment (function_definition "void cmd_init(void)\n\n{\n  wdcache.data = xmalloc(0x200);\n  wdcache.cs = 0x80;\n  wdcache.nc = 0;\n  wlcache.data = xmalloc(0x200);\n  wlcache.cs = 0x80;\n  wlcache.nc = 0;\n  return;\n}" primitive_type (function_declarator "cmd_init(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  wdcache.data = xmalloc(0x200);\n  wdcache.cs = 0x80;\n  wdcache.nc = 0;\n  wlcache.data = xmalloc(0x200);\n  wlcache.cs = 0x80;\n  wlcache.nc = 0;\n  return;\n}" { (expression_statement "wdcache.data = xmalloc(0x200);" (assignment_expression "wdcache.data = xmalloc(0x200)" (field_expression "wdcache.data" identifier . field_identifier) = (call_expression "xmalloc(0x200)" identifier (argument_list "(0x200)" ( number_literal )))) ;) (expression_statement "wdcache.cs = 0x80;" (assignment_expression "wdcache.cs = 0x80" (field_expression "wdcache.cs" identifier . field_identifier) = number_literal) ;) (expression_statement "wdcache.nc = 0;" (assignment_expression "wdcache.nc = 0" (field_expression "wdcache.nc" identifier . field_identifier) = number_literal) ;) (expression_statement "wlcache.data = xmalloc(0x200);" (assignment_expression "wlcache.data = xmalloc(0x200)" (field_expression "wlcache.data" identifier . field_identifier) = (call_expression "xmalloc(0x200)" identifier (argument_list "(0x200)" ( number_literal )))) ;) (expression_statement "wlcache.cs = 0x80;" (assignment_expression "wlcache.cs = 0x80" (field_expression "wlcache.cs" identifier . field_identifier) = number_literal) ;) (expression_statement "wlcache.nc = 0;" (assignment_expression "wlcache.nc = 0" (field_expression "wlcache.nc" identifier . field_identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void cmd_init(void)\n\n{\n  wdcache = xmalloc(0x200);\n  DAT_00177c30 = 0x80;\n  DAT_00177c34 = 0;\n  wlcache = xmalloc(0x200);\n  DAT_00177c24 = 0x80;\n  DAT_00177c28 = 0;\n  return;\n}\n\n" (function_definition "void cmd_init(void)\n\n{\n  wdcache = xmalloc(0x200);\n  DAT_00177c30 = 0x80;\n  DAT_00177c34 = 0;\n  wlcache = xmalloc(0x200);\n  DAT_00177c24 = 0x80;\n  DAT_00177c28 = 0;\n  return;\n}" primitive_type (function_declarator "cmd_init(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  wdcache = xmalloc(0x200);\n  DAT_00177c30 = 0x80;\n  DAT_00177c34 = 0;\n  wlcache = xmalloc(0x200);\n  DAT_00177c24 = 0x80;\n  DAT_00177c28 = 0;\n  return;\n}" { (expression_statement "wdcache = xmalloc(0x200);" (assignment_expression "wdcache = xmalloc(0x200)" identifier = (call_expression "xmalloc(0x200)" identifier (argument_list "(0x200)" ( number_literal )))) ;) (expression_statement "DAT_00177c30 = 0x80;" (assignment_expression "DAT_00177c30 = 0x80" identifier = number_literal) ;) (expression_statement "DAT_00177c34 = 0;" (assignment_expression "DAT_00177c34 = 0" identifier = number_literal) ;) (expression_statement "wlcache = xmalloc(0x200);" (assignment_expression "wlcache = xmalloc(0x200)" identifier = (call_expression "xmalloc(0x200)" identifier (argument_list "(0x200)" ( number_literal )))) ;) (expression_statement "DAT_00177c24 = 0x80;" (assignment_expression "DAT_00177c24 = 0x80" identifier = number_literal) ;) (expression_statement "DAT_00177c28 = 0;" (assignment_expression "DAT_00177c28 = 0" identifier = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (return_statement return ;) })))
(function_definition "void cmd_init(void)\n\n{\n  wdcache = xmalloc(0x200);\n  DAT_00177c30 = 0x80;\n  DAT_00177c34 = 0;\n  wlcache = xmalloc(0x200);\n  DAT_00177c24 = 0x80;\n  DAT_00177c28 = 0;\n  return;\n}" (primitive_type "void") (function_declarator "cmd_init(void)" (identifier "cmd_init") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  wdcache = xmalloc(0x200);\n  DAT_00177c30 = 0x80;\n  DAT_00177c34 = 0;\n  wlcache = xmalloc(0x200);\n  DAT_00177c24 = 0x80;\n  DAT_00177c28 = 0;\n  return;\n}" ({ "{") (expression_statement "wdcache = xmalloc(0x200);" (assignment_expression "wdcache = xmalloc(0x200)" (identifier "wdcache") (= "=") (call_expression "xmalloc(0x200)" (identifier "xmalloc") (argument_list "(0x200)" (( "(") (number_literal "0x200") () ")")))) (; ";")) (expression_statement "DAT_00177c30 = 0x80;" (assignment_expression "DAT_00177c30 = 0x80" (identifier "DAT_00177c30") (= "=") (number_literal "0x80")) (; ";")) (expression_statement "DAT_00177c34 = 0;" (assignment_expression "DAT_00177c34 = 0" (identifier "DAT_00177c34") (= "=") (number_literal "0")) (; ";")) (expression_statement "wlcache = xmalloc(0x200);" (assignment_expression "wlcache = xmalloc(0x200)" (identifier "wlcache") (= "=") (call_expression "xmalloc(0x200)" (identifier "xmalloc") (argument_list "(0x200)" (( "(") (number_literal "0x200") () ")")))) (; ";")) (expression_statement "DAT_00177c24 = 0x80;" (assignment_expression "DAT_00177c24 = 0x80" (identifier "DAT_00177c24") (= "=") (number_literal "0x80")) (; ";")) (expression_statement "DAT_00177c28 = 0;" (assignment_expression "DAT_00177c28 = 0" (identifier "DAT_00177c28") (= "=") (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 -- yet parameter storage is locked */

void function_1(void)

{
  wdcache.data = var_1(0x200);
  wdcache.cs = 0x80;
  wdcache.nc = 0;
  wlcache.data = var_1(0x200);
  wlcache.cs = 0x80;
  wlcache.nc = 0;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (return_statement))))

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

void MASKED(void)

{
  wdcache = xmalloc(0x200);
  DAT_00177c30 = 0x80;
  DAT_00177c34 = 0;
  wlcache = xmalloc(0x200);
  DAT_00177c24 = 0x80;
  DAT_00177c28 = 0;
  return;
}

