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

void input_file_pop(char *arg)

{
  f_in = *(FILE **)arg;
  file_name = *(char **)(arg + 4);
  preprocess = *(int *)(arg + 8);
  if (preprocess == 0) {
    free(arg);
    return;
  }
  app_pop(*(char **)(arg + 0xc));
  free(arg);
  return;
}



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

void FUN_00027150(undefined4 *param_1)

{
  DAT_000837f4 = *param_1;
  DAT_000837f0 = param_1[1];
  DAT_000837ec = param_1[2];
  if (DAT_000837ec == 0) {
    free(param_1);
    return;
  }
  FUN_00019360(param_1[3]);
  free(param_1);
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00019010
ADD EBX,0x53ea9
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [ESI]
MOV dword ptr [EBX + 0x87f4],EAX
MOV EAX,dword ptr [ESI + 0x4]
MOV dword ptr [EBX + 0x87f0],EAX
MOV EAX,dword ptr [ESI + 0x8]
MOV dword ptr [EBX + 0x87ec],EAX
TEST EAX,EAX
JNZ 0x00027198
SUB ESP,0xc
PUSH ESI
CALL 0x00017770
ADD ESP,0x14
POP EBX
POP ESI
RET
SUB ESP,0xc
PUSH dword ptr [ESI + 0xc]
CALL 0x00019360
ADD ESP,0x10
SUB ESP,0xc
PUSH ESI
CALL 0x00017770
ADD ESP,0x14
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00027150(undefined4 *param_1)\n\n{\n  DAT_000837f4 = *param_1;\n  DAT_000837f0 = param_1[1];\n  DAT_000837ec = param_1[2];\n  if (DAT_000837ec == 0) {\n    free(param_1);\n    return;\n  }\n  FUN_00019360(param_1[3]);\n  free(param_1);\n  return;\n}\n\n" comment (function_definition "void FUN_00027150(undefined4 *param_1)\n\n{\n  DAT_000837f4 = *param_1;\n  DAT_000837f0 = param_1[1];\n  DAT_000837ec = param_1[2];\n  if (DAT_000837ec == 0) {\n    free(param_1);\n    return;\n  }\n  FUN_00019360(param_1[3]);\n  free(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_00027150(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  DAT_000837f4 = *param_1;\n  DAT_000837f0 = param_1[1];\n  DAT_000837ec = param_1[2];\n  if (DAT_000837ec == 0) {\n    free(param_1);\n    return;\n  }\n  FUN_00019360(param_1[3]);\n  free(param_1);\n  return;\n}" { (expression_statement "DAT_000837f4 = *param_1;" (assignment_expression "DAT_000837f4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "DAT_000837f0 = param_1[1];" (assignment_expression "DAT_000837f0 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "DAT_000837ec = param_1[2];" (assignment_expression "DAT_000837ec = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (if_statement "if (DAT_000837ec == 0) {\n    free(param_1);\n    return;\n  }" if (parenthesized_expression "(DAT_000837ec == 0)" ( (binary_expression "DAT_000837ec == 0" identifier == number_literal) )) (compound_statement "{\n    free(param_1);\n    return;\n  }" { (expression_statement "free(param_1);" (call_expression "free(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00019360(param_1[3]);" (call_expression "FUN_00019360(param_1[3])" identifier (argument_list "(param_1[3])" ( (subscript_expression "param_1[3]" identifier [ number_literal ]) ))) ;) (expression_statement "free(param_1);" (call_expression "free(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (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 */\n\nvoid input_file_pop(char *arg)\n\n{\n  f_in = *(FILE **)arg;\n  file_name = *(char **)(arg + 4);\n  preprocess = *(int *)(arg + 8);\n  if (preprocess == 0) {\n    free(arg);\n    return;\n  }\n  app_pop(*(char **)(arg + 0xc));\n  free(arg);\n  return;\n}\n\n" comment comment (function_definition "void input_file_pop(char *arg)\n\n{\n  f_in = *(FILE **)arg;\n  file_name = *(char **)(arg + 4);\n  preprocess = *(int *)(arg + 8);\n  if (preprocess == 0) {\n    free(arg);\n    return;\n  }\n  app_pop(*(char **)(arg + 0xc));\n  free(arg);\n  return;\n}" primitive_type (function_declarator "input_file_pop(char *arg)" identifier (parameter_list "(char *arg)" ( (parameter_declaration "char *arg" primitive_type (pointer_declarator "*arg" * identifier)) ))) (compound_statement "{\n  f_in = *(FILE **)arg;\n  file_name = *(char **)(arg + 4);\n  preprocess = *(int *)(arg + 8);\n  if (preprocess == 0) {\n    free(arg);\n    return;\n  }\n  app_pop(*(char **)(arg + 0xc));\n  free(arg);\n  return;\n}" { (expression_statement "f_in = *(FILE **)arg;" (assignment_expression "f_in = *(FILE **)arg" identifier = (pointer_expression "*(FILE **)arg" * (cast_expression "(FILE **)arg" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "file_name = *(char **)(arg + 4);" (assignment_expression "file_name = *(char **)(arg + 4)" identifier = (pointer_expression "*(char **)(arg + 4)" * (cast_expression "(char **)(arg + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(arg + 4)" ( (binary_expression "arg + 4" identifier + number_literal) ))))) ;) (expression_statement "preprocess = *(int *)(arg + 8);" (assignment_expression "preprocess = *(int *)(arg + 8)" identifier = (pointer_expression "*(int *)(arg + 8)" * (cast_expression "(int *)(arg + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(arg + 8)" ( (binary_expression "arg + 8" identifier + number_literal) ))))) ;) (if_statement "if (preprocess == 0) {\n    free(arg);\n    return;\n  }" if (parenthesized_expression "(preprocess == 0)" ( (binary_expression "preprocess == 0" identifier == number_literal) )) (compound_statement "{\n    free(arg);\n    return;\n  }" { (expression_statement "free(arg);" (call_expression "free(arg)" identifier (argument_list "(arg)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "app_pop(*(char **)(arg + 0xc));" (call_expression "app_pop(*(char **)(arg + 0xc))" identifier (argument_list "(*(char **)(arg + 0xc))" ( (pointer_expression "*(char **)(arg + 0xc)" * (cast_expression "(char **)(arg + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(arg + 0xc)" ( (binary_expression "arg + 0xc" identifier + number_literal) )))) ))) ;) (expression_statement "free(arg);" (call_expression "free(arg)" identifier (argument_list "(arg)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00027150(undefined4 *param_1)\n\n{\n  DAT_000837f4 = *param_1;\n  DAT_000837f0 = param_1[1];\n  DAT_000837ec = param_1[2];\n  if (DAT_000837ec == 0) {\n    free(param_1);\n    return;\n  }\n  FUN_00019360(param_1[3]);\n  free(param_1);\n  return;\n}\n\n" (function_definition "void FUN_00027150(undefined4 *param_1)\n\n{\n  DAT_000837f4 = *param_1;\n  DAT_000837f0 = param_1[1];\n  DAT_000837ec = param_1[2];\n  if (DAT_000837ec == 0) {\n    free(param_1);\n    return;\n  }\n  FUN_00019360(param_1[3]);\n  free(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_00027150(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  DAT_000837f4 = *param_1;\n  DAT_000837f0 = param_1[1];\n  DAT_000837ec = param_1[2];\n  if (DAT_000837ec == 0) {\n    free(param_1);\n    return;\n  }\n  FUN_00019360(param_1[3]);\n  free(param_1);\n  return;\n}" { (expression_statement "DAT_000837f4 = *param_1;" (assignment_expression "DAT_000837f4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "DAT_000837f0 = param_1[1];" (assignment_expression "DAT_000837f0 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "DAT_000837ec = param_1[2];" (assignment_expression "DAT_000837ec = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (if_statement "if (DAT_000837ec == 0) {\n    free(param_1);\n    return;\n  }" if (parenthesized_expression "(DAT_000837ec == 0)" ( (binary_expression "DAT_000837ec == 0" identifier == number_literal) )) (compound_statement "{\n    free(param_1);\n    return;\n  }" { (expression_statement "free(param_1);" (call_expression "free(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00019360(param_1[3]);" (call_expression "FUN_00019360(param_1[3])" identifier (argument_list "(param_1[3])" ( (subscript_expression "param_1[3]" identifier [ number_literal ]) ))) ;) (expression_statement "free(param_1);" (call_expression "free(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (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 ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00027150(undefined4 *param_1)\n\n{\n  DAT_000837f4 = *param_1;\n  DAT_000837f0 = param_1[1];\n  DAT_000837ec = param_1[2];\n  if (DAT_000837ec == 0) {\n    free(param_1);\n    return;\n  }\n  FUN_00019360(param_1[3]);\n  free(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00027150(undefined4 *param_1)" (identifier "FUN_00027150") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  DAT_000837f4 = *param_1;\n  DAT_000837f0 = param_1[1];\n  DAT_000837ec = param_1[2];\n  if (DAT_000837ec == 0) {\n    free(param_1);\n    return;\n  }\n  FUN_00019360(param_1[3]);\n  free(param_1);\n  return;\n}" ({ "{") (expression_statement "DAT_000837f4 = *param_1;" (assignment_expression "DAT_000837f4 = *param_1" (identifier "DAT_000837f4") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "DAT_000837f0 = param_1[1];" (assignment_expression "DAT_000837f0 = param_1[1]" (identifier "DAT_000837f0") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "DAT_000837ec = param_1[2];" (assignment_expression "DAT_000837ec = param_1[2]" (identifier "DAT_000837ec") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (if_statement "if (DAT_000837ec == 0) {\n    free(param_1);\n    return;\n  }" (if "if") (parenthesized_expression "(DAT_000837ec == 0)" (( "(") (binary_expression "DAT_000837ec == 0" (identifier "DAT_000837ec") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    free(param_1);\n    return;\n  }" ({ "{") (expression_statement "free(param_1);" (call_expression "free(param_1)" (identifier "free") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00019360(param_1[3]);" (call_expression "FUN_00019360(param_1[3])" (identifier "FUN_00019360") (argument_list "(param_1[3])" (( "(") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) () ")"))) (; ";")) (expression_statement "free(param_1);" (call_expression "free(param_1)" (identifier "free") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(char *var_1)

{
  f_in = *(type_1 **)var_1;
  file_name = *(char **)(var_1 + 4);
  var_2 = *(int *)(var_1 + 8);
  if (var_2 == 0) {
    var_3(var_1);
    return;
  }
  var_4(*(char **)(var_1 + 0xc));
  var_3(var_1);
  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 (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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))))

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

void MASKED(undefined4 *param_1)

{
  DAT_000837f4 = *param_1;
  DAT_000837f0 = param_1[1];
  DAT_000837ec = param_1[2];
  if (DAT_000837ec == 0) {
    free(param_1);
    return;
  }
  FUN_00019360(param_1[3]);
  free(param_1);
  return;
}

