
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Unknown calling convention */

void push_stat_ptr(lang_statement_list_type *new_ptr)

{
  lang_statement_list_type **pplVar1;
  lang_statement_list_type *in_stack_fffffff4;
  
  if (stat_save_ptr < &statement_list) {
    pplVar1 = stat_save_ptr + 1;
    *stat_save_ptr = stat_ptr;
    stat_save_ptr = pplVar1;
    stat_ptr = new_ptr;
    return;
  }
                    /* WARNING: Subroutine does not return */
  push_stat_ptr(in_stack_fffffff4);
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void FUN_00021ca0(undefined *param_1)

{
  undefined *puVar1;
  
  if (PTR_DAT_0009833c < &DAT_00098828) {
    puVar1 = PTR_DAT_0009833c + 4;
    *(undefined **)PTR_DAT_0009833c = PTR_DAT_00098338;
    PTR_DAT_0009833c = puVar1;
    PTR_DAT_00098338 = param_1;
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00021540();
}


CALL 0x0001b1a2
ADD EAX,0x7635b
SUB ESP,0xc
MOV EDX,dword ptr [EAX + 0x33c]
LEA ECX,[EAX + 0x828]
CMP EDX,ECX
JNC 0x00021cdc
LEA ECX,[EDX + 0x4]
MOV dword ptr [EAX + 0x33c],ECX
MOV ECX,dword ptr [EAX + 0x338]
MOV dword ptr [EDX],ECX
MOV EDX,dword ptr [ESP + 0x10]
MOV dword ptr [EAX + 0x338],EDX
ADD ESP,0xc
RET
CALL 0x00021540
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nvoid FUN_00021ca0(undefined *param_1)\n\n{\n  undefined *puVar1;\n  \n  if (PTR_DAT_0009833c < &DAT_00098828) {\n    puVar1 = PTR_DAT_0009833c + 4;\n    *(undefined **)PTR_DAT_0009833c = PTR_DAT_00098338;\n    PTR_DAT_0009833c = puVar1;\n    PTR_DAT_00098338 = param_1;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00021540();\n}\n\n" comment (function_definition "void FUN_00021ca0(undefined *param_1)\n\n{\n  undefined *puVar1;\n  \n  if (PTR_DAT_0009833c < &DAT_00098828) {\n    puVar1 = PTR_DAT_0009833c + 4;\n    *(undefined **)PTR_DAT_0009833c = PTR_DAT_00098338;\n    PTR_DAT_0009833c = puVar1;\n    PTR_DAT_00098338 = param_1;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00021540();\n}" primitive_type (function_declarator "FUN_00021ca0(undefined *param_1)" identifier (parameter_list "(undefined *param_1)" ( (parameter_declaration "undefined *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  \n  if (PTR_DAT_0009833c < &DAT_00098828) {\n    puVar1 = PTR_DAT_0009833c + 4;\n    *(undefined **)PTR_DAT_0009833c = PTR_DAT_00098338;\n    PTR_DAT_0009833c = puVar1;\n    PTR_DAT_00098338 = param_1;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00021540();\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (if_statement "if (PTR_DAT_0009833c < &DAT_00098828) {\n    puVar1 = PTR_DAT_0009833c + 4;\n    *(undefined **)PTR_DAT_0009833c = PTR_DAT_00098338;\n    PTR_DAT_0009833c = puVar1;\n    PTR_DAT_00098338 = param_1;\n    return;\n  }" if (parenthesized_expression "(PTR_DAT_0009833c < &DAT_00098828)" ( (binary_expression "PTR_DAT_0009833c < &DAT_00098828" identifier < (pointer_expression "&DAT_00098828" & identifier)) )) (compound_statement "{\n    puVar1 = PTR_DAT_0009833c + 4;\n    *(undefined **)PTR_DAT_0009833c = PTR_DAT_00098338;\n    PTR_DAT_0009833c = puVar1;\n    PTR_DAT_00098338 = param_1;\n    return;\n  }" { (expression_statement "puVar1 = PTR_DAT_0009833c + 4;" (assignment_expression "puVar1 = PTR_DAT_0009833c + 4" identifier = (binary_expression "PTR_DAT_0009833c + 4" identifier + number_literal)) ;) (expression_statement "*(undefined **)PTR_DAT_0009833c = PTR_DAT_00098338;" (assignment_expression "*(undefined **)PTR_DAT_0009833c = PTR_DAT_00098338" (pointer_expression "*(undefined **)PTR_DAT_0009833c" * (cast_expression "(undefined **)PTR_DAT_0009833c" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "PTR_DAT_0009833c = puVar1;" (assignment_expression "PTR_DAT_0009833c = puVar1" identifier = identifier) ;) (expression_statement "PTR_DAT_00098338 = param_1;" (assignment_expression "PTR_DAT_00098338 = param_1" identifier = identifier) ;) (return_statement "return;" return ;) })) comment (expression_statement "FUN_00021540();" (call_expression "FUN_00021540()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* WARNING: Unknown calling convention */\n\nvoid push_stat_ptr(lang_statement_list_type *new_ptr)\n\n{\n  lang_statement_list_type **pplVar1;\n  lang_statement_list_type *in_stack_fffffff4;\n  \n  if (stat_save_ptr < &statement_list) {\n    pplVar1 = stat_save_ptr + 1;\n    *stat_save_ptr = stat_ptr;\n    stat_save_ptr = pplVar1;\n    stat_ptr = new_ptr;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  push_stat_ptr(in_stack_fffffff4);\n}\n\n" comment comment (function_definition "void push_stat_ptr(lang_statement_list_type *new_ptr)\n\n{\n  lang_statement_list_type **pplVar1;\n  lang_statement_list_type *in_stack_fffffff4;\n  \n  if (stat_save_ptr < &statement_list) {\n    pplVar1 = stat_save_ptr + 1;\n    *stat_save_ptr = stat_ptr;\n    stat_save_ptr = pplVar1;\n    stat_ptr = new_ptr;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  push_stat_ptr(in_stack_fffffff4);\n}" primitive_type (function_declarator "push_stat_ptr(lang_statement_list_type *new_ptr)" identifier (parameter_list "(lang_statement_list_type *new_ptr)" ( (parameter_declaration "lang_statement_list_type *new_ptr" type_identifier (pointer_declarator "*new_ptr" * identifier)) ))) (compound_statement "{\n  lang_statement_list_type **pplVar1;\n  lang_statement_list_type *in_stack_fffffff4;\n  \n  if (stat_save_ptr < &statement_list) {\n    pplVar1 = stat_save_ptr + 1;\n    *stat_save_ptr = stat_ptr;\n    stat_save_ptr = pplVar1;\n    stat_ptr = new_ptr;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  push_stat_ptr(in_stack_fffffff4);\n}" { (declaration "lang_statement_list_type **pplVar1;" type_identifier (pointer_declarator "**pplVar1" * (pointer_declarator "*pplVar1" * identifier)) ;) (declaration "lang_statement_list_type *in_stack_fffffff4;" type_identifier (pointer_declarator "*in_stack_fffffff4" * identifier) ;) (if_statement "if (stat_save_ptr < &statement_list) {\n    pplVar1 = stat_save_ptr + 1;\n    *stat_save_ptr = stat_ptr;\n    stat_save_ptr = pplVar1;\n    stat_ptr = new_ptr;\n    return;\n  }" if (parenthesized_expression "(stat_save_ptr < &statement_list)" ( (binary_expression "stat_save_ptr < &statement_list" identifier < (pointer_expression "&statement_list" & identifier)) )) (compound_statement "{\n    pplVar1 = stat_save_ptr + 1;\n    *stat_save_ptr = stat_ptr;\n    stat_save_ptr = pplVar1;\n    stat_ptr = new_ptr;\n    return;\n  }" { (expression_statement "pplVar1 = stat_save_ptr + 1;" (assignment_expression "pplVar1 = stat_save_ptr + 1" identifier = (binary_expression "stat_save_ptr + 1" identifier + number_literal)) ;) (expression_statement "*stat_save_ptr = stat_ptr;" (assignment_expression "*stat_save_ptr = stat_ptr" (pointer_expression "*stat_save_ptr" * identifier) = identifier) ;) (expression_statement "stat_save_ptr = pplVar1;" (assignment_expression "stat_save_ptr = pplVar1" identifier = identifier) ;) (expression_statement "stat_ptr = new_ptr;" (assignment_expression "stat_ptr = new_ptr" identifier = identifier) ;) (return_statement "return;" return ;) })) comment (expression_statement "push_stat_ptr(in_stack_fffffff4);" (call_expression "push_stat_ptr(in_stack_fffffff4)" identifier (argument_list "(in_stack_fffffff4)" ( identifier ))) ;) })))
(translation_unit "void FUN_00021ca0(undefined *param_1)\n\n{\n  undefined *puVar1;\n  \n  if (PTR_DAT_0009833c < &DAT_00098828) {\n    puVar1 = PTR_DAT_0009833c + 4;\n    *(undefined **)PTR_DAT_0009833c = PTR_DAT_00098338;\n    PTR_DAT_0009833c = puVar1;\n    PTR_DAT_00098338 = param_1;\n    return;\n  }\n                    \n  FUN_00021540();\n}\n\n" (function_definition "void FUN_00021ca0(undefined *param_1)\n\n{\n  undefined *puVar1;\n  \n  if (PTR_DAT_0009833c < &DAT_00098828) {\n    puVar1 = PTR_DAT_0009833c + 4;\n    *(undefined **)PTR_DAT_0009833c = PTR_DAT_00098338;\n    PTR_DAT_0009833c = puVar1;\n    PTR_DAT_00098338 = param_1;\n    return;\n  }\n                    \n  FUN_00021540();\n}" primitive_type (function_declarator "FUN_00021ca0(undefined *param_1)" identifier (parameter_list "(undefined *param_1)" ( (parameter_declaration "undefined *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  \n  if (PTR_DAT_0009833c < &DAT_00098828) {\n    puVar1 = PTR_DAT_0009833c + 4;\n    *(undefined **)PTR_DAT_0009833c = PTR_DAT_00098338;\n    PTR_DAT_0009833c = puVar1;\n    PTR_DAT_00098338 = param_1;\n    return;\n  }\n                    \n  FUN_00021540();\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (if_statement "if (PTR_DAT_0009833c < &DAT_00098828) {\n    puVar1 = PTR_DAT_0009833c + 4;\n    *(undefined **)PTR_DAT_0009833c = PTR_DAT_00098338;\n    PTR_DAT_0009833c = puVar1;\n    PTR_DAT_00098338 = param_1;\n    return;\n  }" if (parenthesized_expression "(PTR_DAT_0009833c < &DAT_00098828)" ( (binary_expression "PTR_DAT_0009833c < &DAT_00098828" identifier < (pointer_expression "&DAT_00098828" & identifier)) )) (compound_statement "{\n    puVar1 = PTR_DAT_0009833c + 4;\n    *(undefined **)PTR_DAT_0009833c = PTR_DAT_00098338;\n    PTR_DAT_0009833c = puVar1;\n    PTR_DAT_00098338 = param_1;\n    return;\n  }" { (expression_statement "puVar1 = PTR_DAT_0009833c + 4;" (assignment_expression "puVar1 = PTR_DAT_0009833c + 4" identifier = (binary_expression "PTR_DAT_0009833c + 4" identifier + number_literal)) ;) (expression_statement "*(undefined **)PTR_DAT_0009833c = PTR_DAT_00098338;" (assignment_expression "*(undefined **)PTR_DAT_0009833c = PTR_DAT_00098338" (pointer_expression "*(undefined **)PTR_DAT_0009833c" * (cast_expression "(undefined **)PTR_DAT_0009833c" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "PTR_DAT_0009833c = puVar1;" (assignment_expression "PTR_DAT_0009833c = puVar1" identifier = identifier) ;) (expression_statement "PTR_DAT_00098338 = param_1;" (assignment_expression "PTR_DAT_00098338 = param_1" identifier = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00021540();" (call_expression "FUN_00021540()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression & IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_00021ca0(undefined *param_1)\n\n{\n  undefined *puVar1;\n  \n  if (PTR_DAT_0009833c < &DAT_00098828) {\n    puVar1 = PTR_DAT_0009833c + 4;\n    *(undefined **)PTR_DAT_0009833c = PTR_DAT_00098338;\n    PTR_DAT_0009833c = puVar1;\n    PTR_DAT_00098338 = param_1;\n    return;\n  }\n                    \n  FUN_00021540();\n}" (primitive_type "void") (function_declarator "FUN_00021ca0(undefined *param_1)" (identifier "FUN_00021ca0") (parameter_list "(undefined *param_1)" (( "(") (parameter_declaration "undefined *param_1" (type_identifier "undefined") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  \n  if (PTR_DAT_0009833c < &DAT_00098828) {\n    puVar1 = PTR_DAT_0009833c + 4;\n    *(undefined **)PTR_DAT_0009833c = PTR_DAT_00098338;\n    PTR_DAT_0009833c = puVar1;\n    PTR_DAT_00098338 = param_1;\n    return;\n  }\n                    \n  FUN_00021540();\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (if_statement "if (PTR_DAT_0009833c < &DAT_00098828) {\n    puVar1 = PTR_DAT_0009833c + 4;\n    *(undefined **)PTR_DAT_0009833c = PTR_DAT_00098338;\n    PTR_DAT_0009833c = puVar1;\n    PTR_DAT_00098338 = param_1;\n    return;\n  }" (if "if") (parenthesized_expression "(PTR_DAT_0009833c < &DAT_00098828)" (( "(") (binary_expression "PTR_DAT_0009833c < &DAT_00098828" (identifier "PTR_DAT_0009833c") (< "<") (pointer_expression "&DAT_00098828" (& "&") (identifier "DAT_00098828"))) () ")")) (compound_statement "{\n    puVar1 = PTR_DAT_0009833c + 4;\n    *(undefined **)PTR_DAT_0009833c = PTR_DAT_00098338;\n    PTR_DAT_0009833c = puVar1;\n    PTR_DAT_00098338 = param_1;\n    return;\n  }" ({ "{") (expression_statement "puVar1 = PTR_DAT_0009833c + 4;" (assignment_expression "puVar1 = PTR_DAT_0009833c + 4" (identifier "puVar1") (= "=") (binary_expression "PTR_DAT_0009833c + 4" (identifier "PTR_DAT_0009833c") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "*(undefined **)PTR_DAT_0009833c = PTR_DAT_00098338;" (assignment_expression "*(undefined **)PTR_DAT_0009833c = PTR_DAT_00098338" (pointer_expression "*(undefined **)PTR_DAT_0009833c" (* "*") (cast_expression "(undefined **)PTR_DAT_0009833c" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_DAT_0009833c"))) (= "=") (identifier "PTR_DAT_00098338")) (; ";")) (expression_statement "PTR_DAT_0009833c = puVar1;" (assignment_expression "PTR_DAT_0009833c = puVar1" (identifier "PTR_DAT_0009833c") (= "=") (identifier "puVar1")) (; ";")) (expression_statement "PTR_DAT_00098338 = param_1;" (assignment_expression "PTR_DAT_00098338 = param_1" (identifier "PTR_DAT_00098338") (= "=") (identifier "param_1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00021540();" (call_expression "FUN_00021540()" (identifier "FUN_00021540") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Unknown calling convention */

void function_1(type_1 *new_ptr)

{
  type_1 **pplVar1;
  type_1 *in_stack_fffffff4;
  
  if (var_1 < &statement_list) {
    pplVar1 = var_1 + 1;
    *var_1 = stat_ptr;
    var_1 = pplVar1;
    stat_ptr = new_ptr;
    return;
  }
                    /* WARNING: Subroutine does not return */
  function_1(in_stack_fffffff4);
}


(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: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void MASKED(undefined *param_1)

{
  undefined *puVar1;
  
  if (PTR_DAT_0009833c < &DAT_00098828) {
    puVar1 = PTR_DAT_0009833c + 4;
    *(undefined **)PTR_DAT_0009833c = PTR_DAT_00098338;
    PTR_DAT_0009833c = puVar1;
    PTR_DAT_00098338 = param_1;
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00021540();
}

