
/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */
/* WARNING: Unknown calling convention */

void restore_token_state(int *ts)

{
  if (ts != (int *)0x0) {
    last_read_token = *ts;
    token_before_that = ts[1];
    two_tokens_ago = ts[2];
    current_token = ts[3];
  }
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

void restore_token_state(undefined4 *param_1)

{
  if (param_1 != (undefined4 *)0x0) {
    DAT_00176b50 = *param_1;
    DAT_00176b4c = param_1[1];
    DAT_00176b48 = param_1[2];
    current_token = param_1[3];
  }
  return;
}


CALL 0x000313e5
ADD EDX,0x13e35b
MOV EAX,dword ptr [ESP + 0x4]
TEST EAX,EAX
JZ 0x00033cd8
MOV ECX,dword ptr [EAX]
MOV dword ptr [EDX + 0x4b50],ECX
MOV ECX,dword ptr [EAX + 0x4]
MOV dword ptr [EDX + 0x4b4c],ECX
MOV ECX,dword ptr [EAX + 0x8]
MOV dword ptr [EDX + 0x4b48],ECX
MOV ECX,dword ptr [EAX + 0xc]
LEA EAX,[EDX + 0x8c74]
MOV dword ptr [EAX],ECX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nvoid restore_token_state(undefined4 *param_1)\n\n{\n  if (param_1 != (undefined4 *)0x0) {\n    DAT_00176b50 = *param_1;\n    DAT_00176b4c = param_1[1];\n    DAT_00176b48 = param_1[2];\n    current_token = param_1[3];\n  }\n  return;\n}\n\n" comment (function_definition "void restore_token_state(undefined4 *param_1)\n\n{\n  if (param_1 != (undefined4 *)0x0) {\n    DAT_00176b50 = *param_1;\n    DAT_00176b4c = param_1[1];\n    DAT_00176b48 = param_1[2];\n    current_token = param_1[3];\n  }\n  return;\n}" primitive_type (function_declarator "restore_token_state(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  if (param_1 != (undefined4 *)0x0) {\n    DAT_00176b50 = *param_1;\n    DAT_00176b4c = param_1[1];\n    DAT_00176b48 = param_1[2];\n    current_token = param_1[3];\n  }\n  return;\n}" { (if_statement "if (param_1 != (undefined4 *)0x0) {\n    DAT_00176b50 = *param_1;\n    DAT_00176b4c = param_1[1];\n    DAT_00176b48 = param_1[2];\n    current_token = param_1[3];\n  }" if (parenthesized_expression "(param_1 != (undefined4 *)0x0)" ( (binary_expression "param_1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    DAT_00176b50 = *param_1;\n    DAT_00176b4c = param_1[1];\n    DAT_00176b48 = param_1[2];\n    current_token = param_1[3];\n  }" { (expression_statement "DAT_00176b50 = *param_1;" (assignment_expression "DAT_00176b50 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "DAT_00176b4c = param_1[1];" (assignment_expression "DAT_00176b4c = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "DAT_00176b48 = param_1[2];" (assignment_expression "DAT_00176b48 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "current_token = param_1[3];" (assignment_expression "current_token = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n/* WARNING: Unknown calling convention */\n\nvoid restore_token_state(int *ts)\n\n{\n  if (ts != (int *)0x0) {\n    last_read_token = *ts;\n    token_before_that = ts[1];\n    two_tokens_ago = ts[2];\n    current_token = ts[3];\n  }\n  return;\n}\n\n" comment comment (function_definition "void restore_token_state(int *ts)\n\n{\n  if (ts != (int *)0x0) {\n    last_read_token = *ts;\n    token_before_that = ts[1];\n    two_tokens_ago = ts[2];\n    current_token = ts[3];\n  }\n  return;\n}" primitive_type (function_declarator "restore_token_state(int *ts)" identifier (parameter_list "(int *ts)" ( (parameter_declaration "int *ts" primitive_type (pointer_declarator "*ts" * identifier)) ))) (compound_statement "{\n  if (ts != (int *)0x0) {\n    last_read_token = *ts;\n    token_before_that = ts[1];\n    two_tokens_ago = ts[2];\n    current_token = ts[3];\n  }\n  return;\n}" { (if_statement "if (ts != (int *)0x0) {\n    last_read_token = *ts;\n    token_before_that = ts[1];\n    two_tokens_ago = ts[2];\n    current_token = ts[3];\n  }" if (parenthesized_expression "(ts != (int *)0x0)" ( (binary_expression "ts != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    last_read_token = *ts;\n    token_before_that = ts[1];\n    two_tokens_ago = ts[2];\n    current_token = ts[3];\n  }" { (expression_statement "last_read_token = *ts;" (assignment_expression "last_read_token = *ts" identifier = (pointer_expression "*ts" * identifier)) ;) (expression_statement "token_before_that = ts[1];" (assignment_expression "token_before_that = ts[1]" identifier = (subscript_expression "ts[1]" identifier [ number_literal ])) ;) (expression_statement "two_tokens_ago = ts[2];" (assignment_expression "two_tokens_ago = ts[2]" identifier = (subscript_expression "ts[2]" identifier [ number_literal ])) ;) (expression_statement "current_token = ts[3];" (assignment_expression "current_token = ts[3]" identifier = (subscript_expression "ts[3]" identifier [ number_literal ])) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void restore_token_state(undefined4 *param_1)\n\n{\n  if (param_1 != (undefined4 *)0x0) {\n    DAT_00176b50 = *param_1;\n    DAT_00176b4c = param_1[1];\n    DAT_00176b48 = param_1[2];\n    current_token = param_1[3];\n  }\n  return;\n}\n\n" (function_definition "void restore_token_state(undefined4 *param_1)\n\n{\n  if (param_1 != (undefined4 *)0x0) {\n    DAT_00176b50 = *param_1;\n    DAT_00176b4c = param_1[1];\n    DAT_00176b48 = param_1[2];\n    current_token = param_1[3];\n  }\n  return;\n}" primitive_type (function_declarator "restore_token_state(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  if (param_1 != (undefined4 *)0x0) {\n    DAT_00176b50 = *param_1;\n    DAT_00176b4c = param_1[1];\n    DAT_00176b48 = param_1[2];\n    current_token = param_1[3];\n  }\n  return;\n}" { (if_statement "if (param_1 != (undefined4 *)0x0) {\n    DAT_00176b50 = *param_1;\n    DAT_00176b4c = param_1[1];\n    DAT_00176b48 = param_1[2];\n    current_token = param_1[3];\n  }" if (parenthesized_expression "(param_1 != (undefined4 *)0x0)" ( (binary_expression "param_1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    DAT_00176b50 = *param_1;\n    DAT_00176b4c = param_1[1];\n    DAT_00176b48 = param_1[2];\n    current_token = param_1[3];\n  }" { (expression_statement "DAT_00176b50 = *param_1;" (assignment_expression "DAT_00176b50 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "DAT_00176b4c = param_1[1];" (assignment_expression "DAT_00176b4c = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "DAT_00176b48 = param_1[2];" (assignment_expression "DAT_00176b48 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "current_token = param_1[3];" (assignment_expression "current_token = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) (return_statement return ;) })))
(function_definition "void restore_token_state(undefined4 *param_1)\n\n{\n  if (param_1 != (undefined4 *)0x0) {\n    DAT_00176b50 = *param_1;\n    DAT_00176b4c = param_1[1];\n    DAT_00176b48 = param_1[2];\n    current_token = param_1[3];\n  }\n  return;\n}" (primitive_type "void") (function_declarator "restore_token_state(undefined4 *param_1)" (identifier "restore_token_state") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  if (param_1 != (undefined4 *)0x0) {\n    DAT_00176b50 = *param_1;\n    DAT_00176b4c = param_1[1];\n    DAT_00176b48 = param_1[2];\n    current_token = param_1[3];\n  }\n  return;\n}" ({ "{") (if_statement "if (param_1 != (undefined4 *)0x0) {\n    DAT_00176b50 = *param_1;\n    DAT_00176b4c = param_1[1];\n    DAT_00176b48 = param_1[2];\n    current_token = param_1[3];\n  }" (if "if") (parenthesized_expression "(param_1 != (undefined4 *)0x0)" (( "(") (binary_expression "param_1 != (undefined4 *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    DAT_00176b50 = *param_1;\n    DAT_00176b4c = param_1[1];\n    DAT_00176b48 = param_1[2];\n    current_token = param_1[3];\n  }" ({ "{") (expression_statement "DAT_00176b50 = *param_1;" (assignment_expression "DAT_00176b50 = *param_1" (identifier "DAT_00176b50") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "DAT_00176b4c = param_1[1];" (assignment_expression "DAT_00176b4c = param_1[1]" (identifier "DAT_00176b4c") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "DAT_00176b48 = param_1[2];" (assignment_expression "DAT_00176b48 = param_1[2]" (identifier "DAT_00176b48") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "current_token = param_1[3];" (assignment_expression "current_token = param_1[3]" (identifier "current_token") (= "=") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */
/* WARNING: Unknown calling convention */

void function_1(int *var_1)

{
  if (var_1 != (int *)0x0) {
    last_read_token = *var_1;
    token_before_that = var_1[1];
    two_tokens_ago = var_1[2];
    current_token = var_1[3];
  }
  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 (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

void MASKED(undefined4 *param_1)

{
  if (param_1 != (undefined4 *)0x0) {
    DAT_00176b50 = *param_1;
    DAT_00176b4c = param_1[1];
    DAT_00176b48 = param_1[2];
    current_token = param_1[3];
  }
  return;
}

