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

void pageant_conn_log(void *logctx,char *fmt,va_list ap)

{
  char *ptr;
  
  ptr = dupvprintf(fmt,ap);
  plog(*(void **)((int)logctx + 8),*(pageant_logfn_t *)((int)logctx + 0xc),"%p: %s",logctx,ptr);
  safefree(ptr);
  return;
}



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

void FUN_0001ac00(int param_1,undefined4 param_2,undefined4 param_3)

{
  undefined4 uVar1;
  
  uVar1 = FUN_00019ea0(param_2,param_3);
  FUN_0001a980(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),"%p: %s",param_1,uVar1);
  FUN_0001a110(uVar1);
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x10]
CALL 0x000152d0
ADD EBX,0x540dc
SUB ESP,0x8
PUSH dword ptr [ESP + 0x20]
PUSH dword ptr [ESP + 0x20]
CALL 0x00019ea0
MOV dword ptr [ESP],EAX
MOV EDI,EAX
LEA EAX,[EBX + 0xfffdd2b6]
PUSH ESI
PUSH EAX
PUSH dword ptr [ESI + 0xc]
PUSH dword ptr [ESI + 0x8]
CALL 0x0001a980
ADD ESP,0x14
PUSH EDI
CALL 0x0001a110
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0001ac00(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = FUN_00019ea0(param_2,param_3);\n  FUN_0001a980(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),"%p: %s",param_1,uVar1);\n  FUN_0001a110(uVar1);\n  return;\n}\n\n" comment (function_definition "void FUN_0001ac00(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = FUN_00019ea0(param_2,param_3);\n  FUN_0001a980(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),"%p: %s",param_1,uVar1);\n  FUN_0001a110(uVar1);\n  return;\n}" primitive_type (function_declarator "FUN_0001ac00(int param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = FUN_00019ea0(param_2,param_3);\n  FUN_0001a980(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),"%p: %s",param_1,uVar1);\n  FUN_0001a110(uVar1);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = FUN_00019ea0(param_2,param_3);" (assignment_expression "uVar1 = FUN_00019ea0(param_2,param_3)" identifier = (call_expression "FUN_00019ea0(param_2,param_3)" identifier (argument_list "(param_2,param_3)" ( identifier , identifier )))) ;) (expression_statement "FUN_0001a980(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),"%p: %s",param_1,uVar1);" (call_expression "FUN_0001a980(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),"%p: %s",param_1,uVar1)" identifier (argument_list "(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),"%p: %s",param_1,uVar1)" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , (string_literal ""%p: %s"" " string_content ") , identifier , identifier ))) ;) (expression_statement "FUN_0001a110(uVar1);" (call_expression "FUN_0001a110(uVar1)" identifier (argument_list "(uVar1)" ( 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_conn_log(void *logctx,char *fmt,va_list ap)\n\n{\n  char *ptr;\n  \n  ptr = dupvprintf(fmt,ap);\n  plog(*(void **)((int)logctx + 8),*(pageant_logfn_t *)((int)logctx + 0xc),"%p: %s",logctx,ptr);\n  safefree(ptr);\n  return;\n}\n\n" comment comment (function_definition "void pageant_conn_log(void *logctx,char *fmt,va_list ap)\n\n{\n  char *ptr;\n  \n  ptr = dupvprintf(fmt,ap);\n  plog(*(void **)((int)logctx + 8),*(pageant_logfn_t *)((int)logctx + 0xc),"%p: %s",logctx,ptr);\n  safefree(ptr);\n  return;\n}" primitive_type (function_declarator "pageant_conn_log(void *logctx,char *fmt,va_list ap)" identifier (parameter_list "(void *logctx,char *fmt,va_list ap)" ( (parameter_declaration "void *logctx" primitive_type (pointer_declarator "*logctx" * identifier)) , (parameter_declaration "char *fmt" primitive_type (pointer_declarator "*fmt" * identifier)) , (parameter_declaration "va_list ap" type_identifier identifier) ))) (compound_statement "{\n  char *ptr;\n  \n  ptr = dupvprintf(fmt,ap);\n  plog(*(void **)((int)logctx + 8),*(pageant_logfn_t *)((int)logctx + 0xc),"%p: %s",logctx,ptr);\n  safefree(ptr);\n  return;\n}" { (declaration "char *ptr;" primitive_type (pointer_declarator "*ptr" * identifier) ;) (expression_statement "ptr = dupvprintf(fmt,ap);" (assignment_expression "ptr = dupvprintf(fmt,ap)" identifier = (call_expression "dupvprintf(fmt,ap)" identifier (argument_list "(fmt,ap)" ( identifier , identifier )))) ;) (expression_statement "plog(*(void **)((int)logctx + 8),*(pageant_logfn_t *)((int)logctx + 0xc),"%p: %s",logctx,ptr);" (call_expression "plog(*(void **)((int)logctx + 8),*(pageant_logfn_t *)((int)logctx + 0xc),"%p: %s",logctx,ptr)" identifier (argument_list "(*(void **)((int)logctx + 8),*(pageant_logfn_t *)((int)logctx + 0xc),"%p: %s",logctx,ptr)" ( (pointer_expression "*(void **)((int)logctx + 8)" * (cast_expression "(void **)((int)logctx + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)logctx + 8)" ( (binary_expression "(int)logctx + 8" (cast_expression "(int)logctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , (pointer_expression "*(pageant_logfn_t *)((int)logctx + 0xc)" * (cast_expression "(pageant_logfn_t *)((int)logctx + 0xc)" ( (type_descriptor "pageant_logfn_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)logctx + 0xc)" ( (binary_expression "(int)logctx + 0xc" (cast_expression "(int)logctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , (string_literal ""%p: %s"" " string_content ") , identifier , identifier ))) ;) (expression_statement "safefree(ptr);" (call_expression "safefree(ptr)" identifier (argument_list "(ptr)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0001ac00(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = FUN_00019ea0(param_2,param_3);\n  FUN_0001a980(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),"%p: %s",param_1,uVar1);\n  FUN_0001a110(uVar1);\n  return;\n}\n\n" (function_definition "void FUN_0001ac00(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = FUN_00019ea0(param_2,param_3);\n  FUN_0001a980(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),"%p: %s",param_1,uVar1);\n  FUN_0001a110(uVar1);\n  return;\n}" primitive_type (function_declarator "FUN_0001ac00(int param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = FUN_00019ea0(param_2,param_3);\n  FUN_0001a980(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),"%p: %s",param_1,uVar1);\n  FUN_0001a110(uVar1);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = FUN_00019ea0(param_2,param_3);" (assignment_expression "uVar1 = FUN_00019ea0(param_2,param_3)" identifier = (call_expression "FUN_00019ea0(param_2,param_3)" identifier (argument_list "(param_2,param_3)" ( identifier , identifier )))) ;) (expression_statement "FUN_0001a980(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),"%p: %s",param_1,uVar1);" (call_expression "FUN_0001a980(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),"%p: %s",param_1,uVar1)" identifier (argument_list "(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),"%p: %s",param_1,uVar1)" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , (string_literal ""%p: %s"" " string_content ") , identifier , identifier ))) ;) (expression_statement "FUN_0001a110(uVar1);" (call_expression "FUN_0001a110(uVar1)" identifier (argument_list "(uVar1)" ( 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 { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (string_literal " string_content ") , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0001ac00(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = FUN_00019ea0(param_2,param_3);\n  FUN_0001a980(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),"%p: %s",param_1,uVar1);\n  FUN_0001a110(uVar1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0001ac00(int param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_0001ac00") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (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  undefined4 uVar1;\n  \n  uVar1 = FUN_00019ea0(param_2,param_3);\n  FUN_0001a980(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),"%p: %s",param_1,uVar1);\n  FUN_0001a110(uVar1);\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (expression_statement "uVar1 = FUN_00019ea0(param_2,param_3);" (assignment_expression "uVar1 = FUN_00019ea0(param_2,param_3)" (identifier "uVar1") (= "=") (call_expression "FUN_00019ea0(param_2,param_3)" (identifier "FUN_00019ea0") (argument_list "(param_2,param_3)" (( "(") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (expression_statement "FUN_0001a980(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),"%p: %s",param_1,uVar1);" (call_expression "FUN_0001a980(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),"%p: %s",param_1,uVar1)" (identifier "FUN_0001a980") (argument_list "(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),"%p: %s",param_1,uVar1)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (, ",") (string_literal ""%p: %s"" (" """) (string_content "%p: %s") (" """)) (, ",") (identifier "param_1") (, ",") (identifier "uVar1") () ")"))) (; ";")) (expression_statement "FUN_0001a110(uVar1);" (call_expression "FUN_0001a110(uVar1)" (identifier "FUN_0001a110") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (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 *logctx,char *fmt,type_1 ap)

{
  char *ptr;
  
  ptr = var_1(fmt,ap);
  var_2(*(void **)((int)logctx + 8),*(type_2 *)((int)logctx + 0xc),"%p: %s",logctx,ptr);
  var_3(ptr);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (string_literal (string_content)) (identifier) (identifier)))) (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(int param_1,undefined4 param_2,undefined4 param_3)

{
  undefined4 uVar1;
  
  uVar1 = FUN_00019ea0(param_2,param_3);
  FUN_0001a980(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),"%p: %s",param_1,uVar1);
  FUN_0001a110(uVar1);
  return;
}

