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

int filename_serialise(Filename *f,void *vdata)

{
  char *__s;
  size_t sVar1;
  
  __s = f->path;
  sVar1 = strlen(__s);
  if (vdata != (void *)0x0) {
    memcpy(vdata,__s,sVar1 + 1);
  }
  return sVar1 + 1;
}



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

size_t FUN_000659b0(undefined4 *param_1,void *param_2)

{
  char *__s;
  size_t sVar1;
  
  __s = (char *)*param_1;
  sVar1 = strlen(__s);
  if (param_2 != (void *)0x0) {
    memcpy(param_2,__s,sVar1 + 1);
  }
  return sVar1 + 1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014980
ADD EBX,0x433b7
SUB ESP,0x18
MOV EAX,dword ptr [ESP + 0x2c]
MOV EDI,dword ptr [ESP + 0x30]
MOV EBP,dword ptr [EAX]
PUSH EBP
CALL 0x00014460
ADD ESP,0x10
LEA ESI,[EAX + 0x1]
TEST EDI,EDI
JZ 0x000659ea
SUB ESP,0x4
PUSH ESI
PUSH EBP
PUSH EDI
CALL 0x00014130
ADD ESP,0x10
ADD ESP,0xc
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nsize_t FUN_000659b0(undefined4 *param_1,void *param_2)\n\n{\n  char *__s;\n  size_t sVar1;\n  \n  __s = (char *)*param_1;\n  sVar1 = strlen(__s);\n  if (param_2 != (void *)0x0) {\n    memcpy(param_2,__s,sVar1 + 1);\n  }\n  return sVar1 + 1;\n}\n\n" comment (function_definition "size_t FUN_000659b0(undefined4 *param_1,void *param_2)\n\n{\n  char *__s;\n  size_t sVar1;\n  \n  __s = (char *)*param_1;\n  sVar1 = strlen(__s);\n  if (param_2 != (void *)0x0) {\n    memcpy(param_2,__s,sVar1 + 1);\n  }\n  return sVar1 + 1;\n}" primitive_type (function_declarator "FUN_000659b0(undefined4 *param_1,void *param_2)" identifier (parameter_list "(undefined4 *param_1,void *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char *__s;\n  size_t sVar1;\n  \n  __s = (char *)*param_1;\n  sVar1 = strlen(__s);\n  if (param_2 != (void *)0x0) {\n    memcpy(param_2,__s,sVar1 + 1);\n  }\n  return sVar1 + 1;\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "size_t sVar1;" primitive_type identifier ;) (expression_statement "__s = (char *)*param_1;" (assignment_expression "__s = (char *)*param_1" identifier = (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "sVar1 = strlen(__s);" (assignment_expression "sVar1 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (if_statement "if (param_2 != (void *)0x0) {\n    memcpy(param_2,__s,sVar1 + 1);\n  }" if (parenthesized_expression "(param_2 != (void *)0x0)" ( (binary_expression "param_2 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    memcpy(param_2,__s,sVar1 + 1);\n  }" { (expression_statement "memcpy(param_2,__s,sVar1 + 1);" (call_expression "memcpy(param_2,__s,sVar1 + 1)" identifier (argument_list "(param_2,__s,sVar1 + 1)" ( identifier , identifier , (binary_expression "sVar1 + 1" identifier + number_literal) ))) ;) })) (return_statement "return sVar1 + 1;" return (binary_expression "sVar1 + 1" identifier + number_literal) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint filename_serialise(Filename *f,void *vdata)\n\n{\n  char *__s;\n  size_t sVar1;\n  \n  __s = f->path;\n  sVar1 = strlen(__s);\n  if (vdata != (void *)0x0) {\n    memcpy(vdata,__s,sVar1 + 1);\n  }\n  return sVar1 + 1;\n}\n\n" comment comment (function_definition "int filename_serialise(Filename *f,void *vdata)\n\n{\n  char *__s;\n  size_t sVar1;\n  \n  __s = f->path;\n  sVar1 = strlen(__s);\n  if (vdata != (void *)0x0) {\n    memcpy(vdata,__s,sVar1 + 1);\n  }\n  return sVar1 + 1;\n}" primitive_type (function_declarator "filename_serialise(Filename *f,void *vdata)" identifier (parameter_list "(Filename *f,void *vdata)" ( (parameter_declaration "Filename *f" type_identifier (pointer_declarator "*f" * identifier)) , (parameter_declaration "void *vdata" primitive_type (pointer_declarator "*vdata" * identifier)) ))) (compound_statement "{\n  char *__s;\n  size_t sVar1;\n  \n  __s = f->path;\n  sVar1 = strlen(__s);\n  if (vdata != (void *)0x0) {\n    memcpy(vdata,__s,sVar1 + 1);\n  }\n  return sVar1 + 1;\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "size_t sVar1;" primitive_type identifier ;) (expression_statement "__s = f->path;" (assignment_expression "__s = f->path" identifier = (field_expression "f->path" identifier -> field_identifier)) ;) (expression_statement "sVar1 = strlen(__s);" (assignment_expression "sVar1 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (if_statement "if (vdata != (void *)0x0) {\n    memcpy(vdata,__s,sVar1 + 1);\n  }" if (parenthesized_expression "(vdata != (void *)0x0)" ( (binary_expression "vdata != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    memcpy(vdata,__s,sVar1 + 1);\n  }" { (expression_statement "memcpy(vdata,__s,sVar1 + 1);" (call_expression "memcpy(vdata,__s,sVar1 + 1)" identifier (argument_list "(vdata,__s,sVar1 + 1)" ( identifier , identifier , (binary_expression "sVar1 + 1" identifier + number_literal) ))) ;) })) (return_statement "return sVar1 + 1;" return (binary_expression "sVar1 + 1" identifier + number_literal) ;) })))
(translation_unit "size_t FUN_000659b0(undefined4 *param_1,void *param_2)\n\n{\n  char *__s;\n  size_t sVar1;\n  \n  __s = (char *)*param_1;\n  sVar1 = strlen(__s);\n  if (param_2 != (void *)0x0) {\n    memcpy(param_2,__s,sVar1 + 1);\n  }\n  return sVar1 + 1;\n}\n\n" (function_definition "size_t FUN_000659b0(undefined4 *param_1,void *param_2)\n\n{\n  char *__s;\n  size_t sVar1;\n  \n  __s = (char *)*param_1;\n  sVar1 = strlen(__s);\n  if (param_2 != (void *)0x0) {\n    memcpy(param_2,__s,sVar1 + 1);\n  }\n  return sVar1 + 1;\n}" primitive_type (function_declarator "FUN_000659b0(undefined4 *param_1,void *param_2)" identifier (parameter_list "(undefined4 *param_1,void *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char *__s;\n  size_t sVar1;\n  \n  __s = (char *)*param_1;\n  sVar1 = strlen(__s);\n  if (param_2 != (void *)0x0) {\n    memcpy(param_2,__s,sVar1 + 1);\n  }\n  return sVar1 + 1;\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "size_t sVar1;" primitive_type identifier ;) (expression_statement "__s = (char *)*param_1;" (assignment_expression "__s = (char *)*param_1" identifier = (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "sVar1 = strlen(__s);" (assignment_expression "sVar1 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (if_statement "if (param_2 != (void *)0x0) {\n    memcpy(param_2,__s,sVar1 + 1);\n  }" if (parenthesized_expression "(param_2 != (void *)0x0)" ( (binary_expression "param_2 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    memcpy(param_2,__s,sVar1 + 1);\n  }" { (expression_statement "memcpy(param_2,__s,sVar1 + 1);" (call_expression "memcpy(param_2,__s,sVar1 + 1)" identifier (argument_list "(param_2,__s,sVar1 + 1)" ( identifier , identifier , (binary_expression "sVar1 + 1" identifier + number_literal) ))) ;) })) (return_statement "return sVar1 + 1;" return (binary_expression "sVar1 + 1" identifier + number_literal) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (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 ( IDENT , IDENT , (binary_expression IDENT + LIT) ))) ;) })) (return_statement return (binary_expression IDENT + LIT) ;) })))
(function_definition "size_t FUN_000659b0(undefined4 *param_1,void *param_2)\n\n{\n  char *__s;\n  size_t sVar1;\n  \n  __s = (char *)*param_1;\n  sVar1 = strlen(__s);\n  if (param_2 != (void *)0x0) {\n    memcpy(param_2,__s,sVar1 + 1);\n  }\n  return sVar1 + 1;\n}" (primitive_type "size_t") (function_declarator "FUN_000659b0(undefined4 *param_1,void *param_2)" (identifier "FUN_000659b0") (parameter_list "(undefined4 *param_1,void *param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "void *param_2" (primitive_type "void") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  char *__s;\n  size_t sVar1;\n  \n  __s = (char *)*param_1;\n  sVar1 = strlen(__s);\n  if (param_2 != (void *)0x0) {\n    memcpy(param_2,__s,sVar1 + 1);\n  }\n  return sVar1 + 1;\n}" ({ "{") (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "size_t sVar1;" (primitive_type "size_t") (identifier "sVar1") (; ";")) (expression_statement "__s = (char *)*param_1;" (assignment_expression "__s = (char *)*param_1" (identifier "__s") (= "=") (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "sVar1 = strlen(__s);" (assignment_expression "sVar1 = strlen(__s)" (identifier "sVar1") (= "=") (call_expression "strlen(__s)" (identifier "strlen") (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";")) (if_statement "if (param_2 != (void *)0x0) {\n    memcpy(param_2,__s,sVar1 + 1);\n  }" (if "if") (parenthesized_expression "(param_2 != (void *)0x0)" (( "(") (binary_expression "param_2 != (void *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    memcpy(param_2,__s,sVar1 + 1);\n  }" ({ "{") (expression_statement "memcpy(param_2,__s,sVar1 + 1);" (call_expression "memcpy(param_2,__s,sVar1 + 1)" (identifier "memcpy") (argument_list "(param_2,__s,sVar1 + 1)" (( "(") (identifier "param_2") (, ",") (identifier "__s") (, ",") (binary_expression "sVar1 + 1" (identifier "sVar1") (+ "+") (number_literal "1")) () ")"))) (; ";")) (} "}"))) (return_statement "return sVar1 + 1;" (return "return") (binary_expression "sVar1 + 1" (identifier "sVar1") (+ "+") (number_literal "1")) (; ";")) (} "}")))

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

int function_1(type_1 *f,void *var_2)

{
  char *__s;
  size_t var_4;
  
  __s = f->path;
  var_4 = var_1(__s);
  if (var_2 != (void *)0x0) {
    var_3(var_2,__s,var_4 + 1);
  }
  return var_4 + 1;
}


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

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

size_t MASKED(undefined4 *param_1,void *param_2)

{
  char *__s;
  size_t sVar1;
  
  __s = (char *)*param_1;
  sVar1 = strlen(__s);
  if (param_2 != (void *)0x0) {
    memcpy(param_2,__s,sVar1 + 1);
  }
  return sVar1 + 1;
}

