
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void logprintf(LogContext *ctx,char *fmt,...)

{
  char *__s;
  size_t len;
  
  __s = dupvprintf(fmt,&stack0x0000000c);
  len = strlen(__s);
  logwrite(ctx,__s,len);
  safefree(__s);
  return;
}



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

void FUN_00018fa0(undefined4 param_1,undefined4 param_2)

{
  char *__s;
  undefined4 uVar1;
  
  uVar1 = 0x18fa7;
  __s = (char *)FUN_0001afe0(param_2,&stack0x0000000c);
  strlen(__s);
  FUN_00018ec0(uVar1);
  FUN_0001b250(__s);
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00014980
ADD EBX,0x8fdc9
SUB ESP,0x4
LEA EAX,[ESP + 0x18]
SUB ESP,0x8
PUSH EAX
PUSH dword ptr [ESP + 0x20]
CALL 0x0001afe0
MOV ESI,EAX
MOV dword ptr [ESP],EAX
CALL 0x00014460
ADD ESP,0x10
MOV EDX,ESI
MOV ECX,EAX
MOV EAX,dword ptr [ESP + 0x10]
CALL 0x00018ec0
SUB ESP,0xc
PUSH ESI
CALL 0x0001b250
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_00018fa0(undefined4 param_1,undefined4 param_2)\n\n{\n  char *__s;\n  undefined4 uVar1;\n  \n  uVar1 = 0x18fa7;\n  __s = (char *)FUN_0001afe0(param_2,&stack0x0000000c);\n  strlen(__s);\n  FUN_00018ec0(uVar1);\n  FUN_0001b250(__s);\n  return;\n}\n\n" comment (function_definition "void FUN_00018fa0(undefined4 param_1,undefined4 param_2)\n\n{\n  char *__s;\n  undefined4 uVar1;\n  \n  uVar1 = 0x18fa7;\n  __s = (char *)FUN_0001afe0(param_2,&stack0x0000000c);\n  strlen(__s);\n  FUN_00018ec0(uVar1);\n  FUN_0001b250(__s);\n  return;\n}" primitive_type (function_declarator "FUN_00018fa0(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  char *__s;\n  undefined4 uVar1;\n  \n  uVar1 = 0x18fa7;\n  __s = (char *)FUN_0001afe0(param_2,&stack0x0000000c);\n  strlen(__s);\n  FUN_00018ec0(uVar1);\n  FUN_0001b250(__s);\n  return;\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = 0x18fa7;" (assignment_expression "uVar1 = 0x18fa7" identifier = number_literal) ;) (expression_statement "__s = (char *)FUN_0001afe0(param_2,&stack0x0000000c);" (assignment_expression "__s = (char *)FUN_0001afe0(param_2,&stack0x0000000c)" identifier = (cast_expression "(char *)FUN_0001afe0(param_2,&stack0x0000000c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001afe0(param_2,&stack0x0000000c)" identifier (argument_list "(param_2,&stack0x0000000c)" ( identifier , (pointer_expression "&stack0x0000000c" & identifier) ))))) ;) (expression_statement "strlen(__s);" (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "FUN_00018ec0(uVar1);" (call_expression "FUN_00018ec0(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (expression_statement "FUN_0001b250(__s);" (call_expression "FUN_0001b250(__s)" identifier (argument_list "(__s)" ( 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/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid logprintf(LogContext *ctx,char *fmt,...)\n\n{\n  char *__s;\n  size_t len;\n  \n  __s = dupvprintf(fmt,&stack0x0000000c);\n  len = strlen(__s);\n  logwrite(ctx,__s,len);\n  safefree(__s);\n  return;\n}\n\n" comment comment comment (function_definition "void logprintf(LogContext *ctx,char *fmt,...)\n\n{\n  char *__s;\n  size_t len;\n  \n  __s = dupvprintf(fmt,&stack0x0000000c);\n  len = strlen(__s);\n  logwrite(ctx,__s,len);\n  safefree(__s);\n  return;\n}" primitive_type (function_declarator "logprintf(LogContext *ctx,char *fmt,...)" identifier (parameter_list "(LogContext *ctx,char *fmt,...)" ( (parameter_declaration "LogContext *ctx" type_identifier (pointer_declarator "*ctx" * identifier)) , (parameter_declaration "char *fmt" primitive_type (pointer_declarator "*fmt" * identifier)) , (variadic_parameter "..." ...) ))) (compound_statement "{\n  char *__s;\n  size_t len;\n  \n  __s = dupvprintf(fmt,&stack0x0000000c);\n  len = strlen(__s);\n  logwrite(ctx,__s,len);\n  safefree(__s);\n  return;\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "size_t len;" primitive_type identifier ;) (expression_statement "__s = dupvprintf(fmt,&stack0x0000000c);" (assignment_expression "__s = dupvprintf(fmt,&stack0x0000000c)" identifier = (call_expression "dupvprintf(fmt,&stack0x0000000c)" identifier (argument_list "(fmt,&stack0x0000000c)" ( identifier , (pointer_expression "&stack0x0000000c" & identifier) )))) ;) (expression_statement "len = strlen(__s);" (assignment_expression "len = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "logwrite(ctx,__s,len);" (call_expression "logwrite(ctx,__s,len)" identifier (argument_list "(ctx,__s,len)" ( identifier , identifier , identifier ))) ;) (expression_statement "safefree(__s);" (call_expression "safefree(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00018fa0(undefined4 param_1,undefined4 param_2)\n\n{\n  char *__s;\n  undefined4 uVar1;\n  \n  uVar1 = 0x18fa7;\n  __s = (char *)FUN_0001afe0(param_2,&stack0x0000000c);\n  strlen(__s);\n  FUN_00018ec0(uVar1);\n  FUN_0001b250(__s);\n  return;\n}\n\n" (function_definition "void FUN_00018fa0(undefined4 param_1,undefined4 param_2)\n\n{\n  char *__s;\n  undefined4 uVar1;\n  \n  uVar1 = 0x18fa7;\n  __s = (char *)FUN_0001afe0(param_2,&stack0x0000000c);\n  strlen(__s);\n  FUN_00018ec0(uVar1);\n  FUN_0001b250(__s);\n  return;\n}" primitive_type (function_declarator "FUN_00018fa0(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  char *__s;\n  undefined4 uVar1;\n  \n  uVar1 = 0x18fa7;\n  __s = (char *)FUN_0001afe0(param_2,&stack0x0000000c);\n  strlen(__s);\n  FUN_00018ec0(uVar1);\n  FUN_0001b250(__s);\n  return;\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = 0x18fa7;" (assignment_expression "uVar1 = 0x18fa7" identifier = number_literal) ;) (expression_statement "__s = (char *)FUN_0001afe0(param_2,&stack0x0000000c);" (assignment_expression "__s = (char *)FUN_0001afe0(param_2,&stack0x0000000c)" identifier = (cast_expression "(char *)FUN_0001afe0(param_2,&stack0x0000000c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001afe0(param_2,&stack0x0000000c)" identifier (argument_list "(param_2,&stack0x0000000c)" ( identifier , (pointer_expression "&stack0x0000000c" & identifier) ))))) ;) (expression_statement "strlen(__s);" (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "FUN_00018ec0(uVar1);" (call_expression "FUN_00018ec0(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (expression_statement "FUN_0001b250(__s);" (call_expression "FUN_0001b250(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00018fa0(undefined4 param_1,undefined4 param_2)\n\n{\n  char *__s;\n  undefined4 uVar1;\n  \n  uVar1 = 0x18fa7;\n  __s = (char *)FUN_0001afe0(param_2,&stack0x0000000c);\n  strlen(__s);\n  FUN_00018ec0(uVar1);\n  FUN_0001b250(__s);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00018fa0(undefined4 param_1,undefined4 param_2)" (identifier "FUN_00018fa0") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  char *__s;\n  undefined4 uVar1;\n  \n  uVar1 = 0x18fa7;\n  __s = (char *)FUN_0001afe0(param_2,&stack0x0000000c);\n  strlen(__s);\n  FUN_00018ec0(uVar1);\n  FUN_0001b250(__s);\n  return;\n}" ({ "{") (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (expression_statement "uVar1 = 0x18fa7;" (assignment_expression "uVar1 = 0x18fa7" (identifier "uVar1") (= "=") (number_literal "0x18fa7")) (; ";")) (expression_statement "__s = (char *)FUN_0001afe0(param_2,&stack0x0000000c);" (assignment_expression "__s = (char *)FUN_0001afe0(param_2,&stack0x0000000c)" (identifier "__s") (= "=") (cast_expression "(char *)FUN_0001afe0(param_2,&stack0x0000000c)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001afe0(param_2,&stack0x0000000c)" (identifier "FUN_0001afe0") (argument_list "(param_2,&stack0x0000000c)" (( "(") (identifier "param_2") (, ",") (pointer_expression "&stack0x0000000c" (& "&") (identifier "stack0x0000000c")) () ")"))))) (; ";")) (expression_statement "strlen(__s);" (call_expression "strlen(__s)" (identifier "strlen") (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (expression_statement "FUN_00018ec0(uVar1);" (call_expression "FUN_00018ec0(uVar1)" (identifier "FUN_00018ec0") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (expression_statement "FUN_0001b250(__s);" (call_expression "FUN_0001b250(__s)" (identifier "FUN_0001b250") (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void function_1(type_1 *ctx,char *fmt,...)

{
  char *__s;
  size_t len;
  
  __s = var_1(fmt,&stack0x0000000c);
  len = var_2(__s);
  var_3(ctx,__s,len);
  var_4(__s);
  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)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (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(undefined4 param_1,undefined4 param_2)

{
  char *__s;
  undefined4 uVar1;
  
  uVar1 = 0x18fa7;
  __s = (char *)FUN_0001afe0(param_2,&stack0x0000000c);
  strlen(__s);
  FUN_00018ec0(uVar1);
  FUN_0001b250(__s);
  return;
}

