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

void pageant_log(void *ctx,char *fmt,va_list ap)

{
  if (pageant_logfp != (FILE *)0x0) {
    fwrite("pageant: ",1,9,(FILE *)pageant_logfp);
    __vfprintf_chk(pageant_logfp,1,fmt,ap);
    fputc(10,(FILE *)pageant_logfp);
  }
  return;
}



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

void FUN_00055010(undefined4 param_1,undefined4 param_2,undefined4 param_3)

{
  if (DAT_000852b8 != (FILE *)0x0) {
    fwrite("pageant: ",1,9,DAT_000852b8);
    __vfprintf_chk(DAT_000852b8,1,param_2,param_3);
    fputc(10,DAT_000852b8);
  }
  return;
}


PUSH EBX
CALL 0x00015340
ADD EBX,0x2fcd2
SUB ESP,0x8
MOV EAX,dword ptr [EBX + 0x5d0]
TEST EAX,EAX
JZ 0x00055062
PUSH EAX
LEA EAX,[EBX + 0xfffe0c50]
PUSH 0x9
PUSH 0x1
PUSH EAX
CALL 0x000142b0
PUSH dword ptr [ESP + 0x28]
PUSH dword ptr [ESP + 0x28]
PUSH 0x1
PUSH dword ptr [EBX + 0x5d0]
CALL 0x00014180
ADD ESP,0x18
PUSH dword ptr [EBX + 0x5d0]
PUSH 0xa
CALL 0x00014290
ADD ESP,0x10
ADD ESP,0x8
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00055010(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  if (DAT_000852b8 != (FILE *)0x0) {\n    fwrite("pageant: ",1,9,DAT_000852b8);\n    __vfprintf_chk(DAT_000852b8,1,param_2,param_3);\n    fputc(10,DAT_000852b8);\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00055010(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  if (DAT_000852b8 != (FILE *)0x0) {\n    fwrite("pageant: ",1,9,DAT_000852b8);\n    __vfprintf_chk(DAT_000852b8,1,param_2,param_3);\n    fputc(10,DAT_000852b8);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00055010(undefined4 param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  if (DAT_000852b8 != (FILE *)0x0) {\n    fwrite("pageant: ",1,9,DAT_000852b8);\n    __vfprintf_chk(DAT_000852b8,1,param_2,param_3);\n    fputc(10,DAT_000852b8);\n  }\n  return;\n}" { (if_statement "if (DAT_000852b8 != (FILE *)0x0) {\n    fwrite("pageant: ",1,9,DAT_000852b8);\n    __vfprintf_chk(DAT_000852b8,1,param_2,param_3);\n    fputc(10,DAT_000852b8);\n  }" if (parenthesized_expression "(DAT_000852b8 != (FILE *)0x0)" ( (binary_expression "DAT_000852b8 != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    fwrite("pageant: ",1,9,DAT_000852b8);\n    __vfprintf_chk(DAT_000852b8,1,param_2,param_3);\n    fputc(10,DAT_000852b8);\n  }" { (expression_statement "fwrite("pageant: ",1,9,DAT_000852b8);" (call_expression "fwrite("pageant: ",1,9,DAT_000852b8)" identifier (argument_list "("pageant: ",1,9,DAT_000852b8)" ( (string_literal ""pageant: "" " string_content ") , number_literal , number_literal , identifier ))) ;) (expression_statement "__vfprintf_chk(DAT_000852b8,1,param_2,param_3);" (call_expression "__vfprintf_chk(DAT_000852b8,1,param_2,param_3)" identifier (argument_list "(DAT_000852b8,1,param_2,param_3)" ( identifier , number_literal , identifier , identifier ))) ;) (expression_statement "fputc(10,DAT_000852b8);" (call_expression "fputc(10,DAT_000852b8)" identifier (argument_list "(10,DAT_000852b8)" ( number_literal , 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 pageant_log(void *ctx,char *fmt,va_list ap)\n\n{\n  if (pageant_logfp != (FILE *)0x0) {\n    fwrite("pageant: ",1,9,(FILE *)pageant_logfp);\n    __vfprintf_chk(pageant_logfp,1,fmt,ap);\n    fputc(10,(FILE *)pageant_logfp);\n  }\n  return;\n}\n\n" comment comment (function_definition "void pageant_log(void *ctx,char *fmt,va_list ap)\n\n{\n  if (pageant_logfp != (FILE *)0x0) {\n    fwrite("pageant: ",1,9,(FILE *)pageant_logfp);\n    __vfprintf_chk(pageant_logfp,1,fmt,ap);\n    fputc(10,(FILE *)pageant_logfp);\n  }\n  return;\n}" primitive_type (function_declarator "pageant_log(void *ctx,char *fmt,va_list ap)" identifier (parameter_list "(void *ctx,char *fmt,va_list ap)" ( (parameter_declaration "void *ctx" primitive_type (pointer_declarator "*ctx" * identifier)) , (parameter_declaration "char *fmt" primitive_type (pointer_declarator "*fmt" * identifier)) , (parameter_declaration "va_list ap" type_identifier identifier) ))) (compound_statement "{\n  if (pageant_logfp != (FILE *)0x0) {\n    fwrite("pageant: ",1,9,(FILE *)pageant_logfp);\n    __vfprintf_chk(pageant_logfp,1,fmt,ap);\n    fputc(10,(FILE *)pageant_logfp);\n  }\n  return;\n}" { (if_statement "if (pageant_logfp != (FILE *)0x0) {\n    fwrite("pageant: ",1,9,(FILE *)pageant_logfp);\n    __vfprintf_chk(pageant_logfp,1,fmt,ap);\n    fputc(10,(FILE *)pageant_logfp);\n  }" if (parenthesized_expression "(pageant_logfp != (FILE *)0x0)" ( (binary_expression "pageant_logfp != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    fwrite("pageant: ",1,9,(FILE *)pageant_logfp);\n    __vfprintf_chk(pageant_logfp,1,fmt,ap);\n    fputc(10,(FILE *)pageant_logfp);\n  }" { (expression_statement "fwrite("pageant: ",1,9,(FILE *)pageant_logfp);" (call_expression "fwrite("pageant: ",1,9,(FILE *)pageant_logfp)" identifier (argument_list "("pageant: ",1,9,(FILE *)pageant_logfp)" ( (string_literal ""pageant: "" " string_content ") , number_literal , number_literal , (cast_expression "(FILE *)pageant_logfp" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (expression_statement "__vfprintf_chk(pageant_logfp,1,fmt,ap);" (call_expression "__vfprintf_chk(pageant_logfp,1,fmt,ap)" identifier (argument_list "(pageant_logfp,1,fmt,ap)" ( identifier , number_literal , identifier , identifier ))) ;) (expression_statement "fputc(10,(FILE *)pageant_logfp);" (call_expression "fputc(10,(FILE *)pageant_logfp)" identifier (argument_list "(10,(FILE *)pageant_logfp)" ( number_literal , (cast_expression "(FILE *)pageant_logfp" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00055010(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  if (DAT_000852b8 != (FILE *)0x0) {\n    fwrite("pageant: ",1,9,DAT_000852b8);\n    __vfprintf_chk(DAT_000852b8,1,param_2,param_3);\n    fputc(10,DAT_000852b8);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00055010(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  if (DAT_000852b8 != (FILE *)0x0) {\n    fwrite("pageant: ",1,9,DAT_000852b8);\n    __vfprintf_chk(DAT_000852b8,1,param_2,param_3);\n    fputc(10,DAT_000852b8);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00055010(undefined4 param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  if (DAT_000852b8 != (FILE *)0x0) {\n    fwrite("pageant: ",1,9,DAT_000852b8);\n    __vfprintf_chk(DAT_000852b8,1,param_2,param_3);\n    fputc(10,DAT_000852b8);\n  }\n  return;\n}" { (if_statement "if (DAT_000852b8 != (FILE *)0x0) {\n    fwrite("pageant: ",1,9,DAT_000852b8);\n    __vfprintf_chk(DAT_000852b8,1,param_2,param_3);\n    fputc(10,DAT_000852b8);\n  }" if (parenthesized_expression "(DAT_000852b8 != (FILE *)0x0)" ( (binary_expression "DAT_000852b8 != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    fwrite("pageant: ",1,9,DAT_000852b8);\n    __vfprintf_chk(DAT_000852b8,1,param_2,param_3);\n    fputc(10,DAT_000852b8);\n  }" { (expression_statement "fwrite("pageant: ",1,9,DAT_000852b8);" (call_expression "fwrite("pageant: ",1,9,DAT_000852b8)" identifier (argument_list "("pageant: ",1,9,DAT_000852b8)" ( (string_literal ""pageant: "" " string_content ") , number_literal , number_literal , identifier ))) ;) (expression_statement "__vfprintf_chk(DAT_000852b8,1,param_2,param_3);" (call_expression "__vfprintf_chk(DAT_000852b8,1,param_2,param_3)" identifier (argument_list "(DAT_000852b8,1,param_2,param_3)" ( identifier , number_literal , identifier , identifier ))) ;) (expression_statement "fputc(10,DAT_000852b8);" (call_expression "fputc(10,DAT_000852b8)" identifier (argument_list "(10,DAT_000852b8)" ( number_literal , identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , LIT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00055010(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  if (DAT_000852b8 != (FILE *)0x0) {\n    fwrite("pageant: ",1,9,DAT_000852b8);\n    __vfprintf_chk(DAT_000852b8,1,param_2,param_3);\n    fputc(10,DAT_000852b8);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00055010(undefined4 param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_00055010") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  if (DAT_000852b8 != (FILE *)0x0) {\n    fwrite("pageant: ",1,9,DAT_000852b8);\n    __vfprintf_chk(DAT_000852b8,1,param_2,param_3);\n    fputc(10,DAT_000852b8);\n  }\n  return;\n}" ({ "{") (if_statement "if (DAT_000852b8 != (FILE *)0x0) {\n    fwrite("pageant: ",1,9,DAT_000852b8);\n    __vfprintf_chk(DAT_000852b8,1,param_2,param_3);\n    fputc(10,DAT_000852b8);\n  }" (if "if") (parenthesized_expression "(DAT_000852b8 != (FILE *)0x0)" (( "(") (binary_expression "DAT_000852b8 != (FILE *)0x0" (identifier "DAT_000852b8") (!= "!=") (cast_expression "(FILE *)0x0" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    fwrite("pageant: ",1,9,DAT_000852b8);\n    __vfprintf_chk(DAT_000852b8,1,param_2,param_3);\n    fputc(10,DAT_000852b8);\n  }" ({ "{") (expression_statement "fwrite("pageant: ",1,9,DAT_000852b8);" (call_expression "fwrite("pageant: ",1,9,DAT_000852b8)" (identifier "fwrite") (argument_list "("pageant: ",1,9,DAT_000852b8)" (( "(") (string_literal ""pageant: "" (" """) (string_content "pageant: ") (" """)) (, ",") (number_literal "1") (, ",") (number_literal "9") (, ",") (identifier "DAT_000852b8") () ")"))) (; ";")) (expression_statement "__vfprintf_chk(DAT_000852b8,1,param_2,param_3);" (call_expression "__vfprintf_chk(DAT_000852b8,1,param_2,param_3)" (identifier "__vfprintf_chk") (argument_list "(DAT_000852b8,1,param_2,param_3)" (( "(") (identifier "DAT_000852b8") (, ",") (number_literal "1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "fputc(10,DAT_000852b8);" (call_expression "fputc(10,DAT_000852b8)" (identifier "fputc") (argument_list "(10,DAT_000852b8)" (( "(") (number_literal "10") (, ",") (identifier "DAT_000852b8") () ")"))) (; ";")) (} "}"))) (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(void *ctx,char *fmt,type_1 ap)

{
  if (var_1 != (type_2 *)0x0) {
    var_2("pageant: ",1,9,(type_2 *)var_1);
    var_3(var_1,1,fmt,ap);
    var_4(10,(type_2 *)var_1);
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) 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 (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (number_literal) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier)))))) (return_statement))))

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

void MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3)

{
  if (DAT_000852b8 != (FILE *)0x0) {
    fwrite("pageant: ",1,9,DAT_000852b8);
    __vfprintf_chk(DAT_000852b8,1,param_2,param_3);
    fputc(10,DAT_000852b8);
  }
  return;
}

