
/* std::__timepunct<char>::_M_put(char*, unsigned long, char const*, tm const*) const */

void __thiscall
std::__timepunct<char>::_M_put
          (__timepunct<char> *this,char *param_1,ulong param_2,char *param_3,tm *param_4)

{
  long lVar1;
  
  lVar1 = __strftime_l(param_1,param_2,param_3,param_4,*(undefined8 *)(this + 0x18));
  if (lVar1 == 0) {
    *param_1 = '\0';
  }
  return;
}



void FUN_004df8c0(long param_1,undefined1 *param_2,undefined8 param_3,undefined8 param_4,
                 undefined8 param_5)

{
  long lVar1;
  
  lVar1 = __strftime_l(param_2,param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x18));
  if (lVar1 == 0) {
    *param_2 = 0;
  }
  return;
}


PUSH RBX
MOV RBX,RSI
MOV RSI,RDX
MOV RDX,RCX
MOV RCX,R8
MOV R8,qword ptr [RDI + 0x18]
MOV RDI,RBX
CALL 0x00177270
TEST RAX,RAX
JNZ 0x004df8e1
MOV byte ptr [RBX],0x0
POP RBX
RET
(translation_unit "void FUN_004df8c0(long param_1,undefined1 *param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5)\n\n{\n  long lVar1;\n  \n  lVar1 = __strftime_l(param_2,param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x18));\n  if (lVar1 == 0) {\n    *param_2 = 0;\n  }\n  return;\n}\n\n" (function_definition "void FUN_004df8c0(long param_1,undefined1 *param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5)\n\n{\n  long lVar1;\n  \n  lVar1 = __strftime_l(param_2,param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x18));\n  if (lVar1 == 0) {\n    *param_2 = 0;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_004df8c0(long param_1,undefined1 *param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5)" identifier (parameter_list "(long param_1,undefined1 *param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "undefined8 param_5" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = __strftime_l(param_2,param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x18));\n  if (lVar1 == 0) {\n    *param_2 = 0;\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = __strftime_l(param_2,param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x18));" (assignment_expression "lVar1 = __strftime_l(param_2,param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x18))" identifier = (call_expression "__strftime_l(param_2,param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x18))" identifier (argument_list "(param_2,param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x18))" ( identifier , identifier , identifier , identifier , (pointer_expression "*(undefined8 *)(param_1 + 0x18)" * (cast_expression "(undefined8 *)(param_1 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) )))) ;) (if_statement "if (lVar1 == 0) {\n    *param_2 = 0;\n  }" if (parenthesized_expression "(lVar1 == 0)" ( (binary_expression "lVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    *param_2 = 0;\n  }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* std::__timepunct<char>::_M_put(char*, unsigned long, char const*, tm const*) const */\n\nvoid __thiscall\nstd::__timepunct<char>::_M_put\n          (__timepunct<char> *this,char *param_1,ulong param_2,char *param_3,tm *param_4)\n\n{\n  long lVar1;\n  \n  lVar1 = __strftime_l(param_1,param_2,param_3,param_4,*(undefined8 *)(this + 0x18));\n  if (lVar1 == 0) {\n    *param_1 = '\0';\n  }\n  return;\n}\n\n" comment (function_definition "void __thiscall\nstd::__timepunct<char>::_M_put\n          (__timepunct<char> *this,char *param_1,ulong param_2,char *param_3,tm *param_4)\n\n{\n  long lVar1;\n  \n  lVar1 = __strftime_l(param_1,param_2,param_3,param_4,*(undefined8 *)(this + 0x18));\n  if (lVar1 == 0) {\n    *param_1 = '\0';\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::__timepunct<char>::" identifier : : identifier < primitive_type > : :) (function_declarator "_M_put\n          (__timepunct<char> *this,char *param_1,ulong param_2,char *param_3,tm *param_4)" identifier (parameter_list "(__timepunct<char> *this,char *param_1,ulong param_2,char *param_3,tm *param_4)" ( (parameter_declaration "__timepunct<char> *this" type_identifier (ERROR "<char>" < primitive_type >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "ulong param_2" type_identifier identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "tm *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = __strftime_l(param_1,param_2,param_3,param_4,*(undefined8 *)(this + 0x18));\n  if (lVar1 == 0) {\n    *param_1 = '\0';\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = __strftime_l(param_1,param_2,param_3,param_4,*(undefined8 *)(this + 0x18));" (assignment_expression "lVar1 = __strftime_l(param_1,param_2,param_3,param_4,*(undefined8 *)(this + 0x18))" identifier = (call_expression "__strftime_l(param_1,param_2,param_3,param_4,*(undefined8 *)(this + 0x18))" identifier (argument_list "(param_1,param_2,param_3,param_4,*(undefined8 *)(this + 0x18))" ( identifier , identifier , identifier , identifier , (pointer_expression "*(undefined8 *)(this + 0x18)" * (cast_expression "(undefined8 *)(this + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x18)" ( (binary_expression "this + 0x18" identifier + number_literal) )))) )))) ;) (if_statement "if (lVar1 == 0) {\n    *param_1 = '\0';\n  }" if (parenthesized_expression "(lVar1 == 0)" ( (binary_expression "lVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    *param_1 = '\0';\n  }" { (expression_statement "*param_1 = '\0';" (assignment_expression "*param_1 = '\0'" (pointer_expression "*param_1" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_004df8c0(long param_1,undefined1 *param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5)\n\n{\n  long lVar1;\n  \n  lVar1 = __strftime_l(param_2,param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x18));\n  if (lVar1 == 0) {\n    *param_2 = 0;\n  }\n  return;\n}\n\n" (function_definition "void FUN_004df8c0(long param_1,undefined1 *param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5)\n\n{\n  long lVar1;\n  \n  lVar1 = __strftime_l(param_2,param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x18));\n  if (lVar1 == 0) {\n    *param_2 = 0;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_004df8c0(long param_1,undefined1 *param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5)" identifier (parameter_list "(long param_1,undefined1 *param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "undefined8 param_5" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = __strftime_l(param_2,param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x18));\n  if (lVar1 == 0) {\n    *param_2 = 0;\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = __strftime_l(param_2,param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x18));" (assignment_expression "lVar1 = __strftime_l(param_2,param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x18))" identifier = (call_expression "__strftime_l(param_2,param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x18))" identifier (argument_list "(param_2,param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x18))" ( identifier , identifier , identifier , identifier , (pointer_expression "*(undefined8 *)(param_1 + 0x18)" * (cast_expression "(undefined8 *)(param_1 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) )))) ;) (if_statement "if (lVar1 == 0) {\n    *param_2 = 0;\n  }" if (parenthesized_expression "(lVar1 == 0)" ( (binary_expression "lVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    *param_2 = 0;\n  }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) (return_statement return ;) })))
(function_definition "void FUN_004df8c0(long param_1,undefined1 *param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5)\n\n{\n  long lVar1;\n  \n  lVar1 = __strftime_l(param_2,param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x18));\n  if (lVar1 == 0) {\n    *param_2 = 0;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_004df8c0(long param_1,undefined1 *param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5)" (identifier "FUN_004df8c0") (parameter_list "(long param_1,undefined1 *param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined1 *param_2" (type_identifier "undefined1") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) (, ",") (parameter_declaration "undefined8 param_4" (type_identifier "undefined8") (identifier "param_4")) (, ",") (parameter_declaration "undefined8 param_5" (type_identifier "undefined8") (identifier "param_5")) () ")"))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = __strftime_l(param_2,param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x18));\n  if (lVar1 == 0) {\n    *param_2 = 0;\n  }\n  return;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (expression_statement "lVar1 = __strftime_l(param_2,param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x18));" (assignment_expression "lVar1 = __strftime_l(param_2,param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x18))" (identifier "lVar1") (= "=") (call_expression "__strftime_l(param_2,param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x18))" (identifier "__strftime_l") (argument_list "(param_2,param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x18))" (( "(") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (pointer_expression "*(undefined8 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) () ")")))) (; ";")) (if_statement "if (lVar1 == 0) {\n    *param_2 = 0;\n  }" (if "if") (parenthesized_expression "(lVar1 == 0)" (( "(") (binary_expression "lVar1 == 0" (identifier "lVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *param_2 = 0;\n  }" ({ "{") (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::__timepunct<char>::_M_put(char*, unsigned long, char const*, tm const*) const */

void __thiscall
std::type_1<char>::function_1
          (type_1<char> *var_2,char *param_1,type_2 param_2,char *param_3,type_3 *param_4)

{
  long var_3;
  
  var_3 = var_1(param_1,param_2,param_3,param_4,*(type_4 *)(var_2 + 0x18));
  if (var_3 == 0) {
    *param_1 = '\0';
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (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))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) (return_statement))))

void MASKED(long param_1,undefined1 *param_2,undefined8 param_3,undefined8 param_4,
                 undefined8 param_5)

{
  long lVar1;
  
  lVar1 = __strftime_l(param_2,param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x18));
  if (lVar1 == 0) {
    *param_2 = 0;
  }
  return;
}

