
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::__timepunct<wchar_t>::_M_put(wchar_t*, unsigned int, wchar_t const*, tm const*) const */

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

{
  int iVar1;
  
  iVar1 = __wcsftime_l(param_1,param_2,param_3,param_4,*(undefined4 *)(this + 0xc));
  if (iVar1 == 0) {
    *param_1 = L'\0';
  }
  return;
}



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

void FUN_001c9bc0(int param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,
                 undefined4 param_5)

{
  int iVar1;
  
  iVar1 = __wcsftime_l(param_2,param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc));
  if (iVar1 == 0) {
    *param_2 = 0;
  }
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00032730
ADD EBX,0x138439
SUB ESP,0x10
MOV ESI,dword ptr [ESP + 0x20]
MOV EAX,dword ptr [ESP + 0x1c]
PUSH dword ptr [EAX + 0xc]
PUSH dword ptr [ESP + 0x30]
PUSH dword ptr [ESP + 0x30]
PUSH dword ptr [ESP + 0x30]
PUSH ESI
CALL 0x00026560
ADD ESP,0x20
TEST EAX,EAX
JNZ 0x001c9bfa
MOV dword ptr [ESI],0x0
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_001c9bc0(int param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5)\n\n{\n  int iVar1;\n  \n  iVar1 = __wcsftime_l(param_2,param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc));\n  if (iVar1 == 0) {\n    *param_2 = 0;\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_001c9bc0(int param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5)\n\n{\n  int iVar1;\n  \n  iVar1 = __wcsftime_l(param_2,param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc));\n  if (iVar1 == 0) {\n    *param_2 = 0;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001c9bc0(int param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5)" identifier (parameter_list "(int param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = __wcsftime_l(param_2,param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc));\n  if (iVar1 == 0) {\n    *param_2 = 0;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = __wcsftime_l(param_2,param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc));" (assignment_expression "iVar1 = __wcsftime_l(param_2,param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc))" identifier = (call_expression "__wcsftime_l(param_2,param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc))" identifier (argument_list "(param_2,param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc))" ( identifier , identifier , identifier , identifier , (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) )))) )))) ;) (if_statement "if (iVar1 == 0) {\n    *param_2 = 0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 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 "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::__timepunct<wchar_t>::_M_put(wchar_t*, unsigned int, wchar_t const*, tm const*) const */\n\nvoid __thiscall\nstd::__timepunct<wchar_t>::_M_put\n          (__timepunct<wchar_t> *this,wchar_t *param_1,uint param_2,wchar_t *param_3,tm *param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = __wcsftime_l(param_1,param_2,param_3,param_4,*(undefined4 *)(this + 0xc));\n  if (iVar1 == 0) {\n    *param_1 = L'\0';\n  }\n  return;\n}\n\n" comment comment (function_definition "void __thiscall\nstd::__timepunct<wchar_t>::_M_put\n          (__timepunct<wchar_t> *this,wchar_t *param_1,uint param_2,wchar_t *param_3,tm *param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = __wcsftime_l(param_1,param_2,param_3,param_4,*(undefined4 *)(this + 0xc));\n  if (iVar1 == 0) {\n    *param_1 = L'\0';\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::__timepunct<wchar_t>::" identifier : : identifier < identifier > : :) (function_declarator "_M_put\n          (__timepunct<wchar_t> *this,wchar_t *param_1,uint param_2,wchar_t *param_3,tm *param_4)" identifier (parameter_list "(__timepunct<wchar_t> *this,wchar_t *param_1,uint param_2,wchar_t *param_3,tm *param_4)" ( (parameter_declaration "__timepunct<wchar_t> *this" type_identifier (ERROR "<wchar_t>" < identifier >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "wchar_t *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "wchar_t *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "tm *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = __wcsftime_l(param_1,param_2,param_3,param_4,*(undefined4 *)(this + 0xc));\n  if (iVar1 == 0) {\n    *param_1 = L'\0';\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = __wcsftime_l(param_1,param_2,param_3,param_4,*(undefined4 *)(this + 0xc));" (assignment_expression "iVar1 = __wcsftime_l(param_1,param_2,param_3,param_4,*(undefined4 *)(this + 0xc))" identifier = (call_expression "__wcsftime_l(param_1,param_2,param_3,param_4,*(undefined4 *)(this + 0xc))" identifier (argument_list "(param_1,param_2,param_3,param_4,*(undefined4 *)(this + 0xc))" ( identifier , identifier , identifier , identifier , (pointer_expression "*(undefined4 *)(this + 0xc)" * (cast_expression "(undefined4 *)(this + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar1 == 0) {\n    *param_1 = L'\0';\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    *param_1 = L'\0';\n  }" { (expression_statement "*param_1 = L'\0';" (assignment_expression "*param_1 = L'\0'" (pointer_expression "*param_1" * identifier) = (char_literal "L'\0'" L' escape_sequence ')) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001c9bc0(int param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5)\n\n{\n  int iVar1;\n  \n  iVar1 = __wcsftime_l(param_2,param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc));\n  if (iVar1 == 0) {\n    *param_2 = 0;\n  }\n  return;\n}\n\n" (function_definition "void FUN_001c9bc0(int param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5)\n\n{\n  int iVar1;\n  \n  iVar1 = __wcsftime_l(param_2,param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc));\n  if (iVar1 == 0) {\n    *param_2 = 0;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001c9bc0(int param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5)" identifier (parameter_list "(int param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = __wcsftime_l(param_2,param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc));\n  if (iVar1 == 0) {\n    *param_2 = 0;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = __wcsftime_l(param_2,param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc));" (assignment_expression "iVar1 = __wcsftime_l(param_2,param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc))" identifier = (call_expression "__wcsftime_l(param_2,param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc))" identifier (argument_list "(param_2,param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc))" ( identifier , identifier , identifier , identifier , (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) )))) )))) ;) (if_statement "if (iVar1 == 0) {\n    *param_2 = 0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 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 TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (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 , 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_001c9bc0(int param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5)\n\n{\n  int iVar1;\n  \n  iVar1 = __wcsftime_l(param_2,param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc));\n  if (iVar1 == 0) {\n    *param_2 = 0;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001c9bc0(int param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5)" (identifier "FUN_001c9bc0") (parameter_list "(int param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = __wcsftime_l(param_2,param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc));\n  if (iVar1 == 0) {\n    *param_2 = 0;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = __wcsftime_l(param_2,param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc));" (assignment_expression "iVar1 = __wcsftime_l(param_2,param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc))" (identifier "iVar1") (= "=") (call_expression "__wcsftime_l(param_2,param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc))" (identifier "__wcsftime_l") (argument_list "(param_2,param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc))" (( "(") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (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")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    *param_2 = 0;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (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") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::__timepunct<wchar_t>::_M_put(wchar_t*, unsigned int, wchar_t const*, tm const*) const */

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

{
  int var_3;
  
  var_3 = var_1(param_1,param_2,param_3,param_4,*(type_5 *)(var_2 + 0xc));
  if (var_3 == 0) {
    *param_1 = L'\0';
  }
  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: (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: (primitive_type) 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))))

/* 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 param_4,
                 undefined4 param_5)

{
  int iVar1;
  
  iVar1 = __wcsftime_l(param_2,param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc));
  if (iVar1 == 0) {
    *param_2 = 0;
  }
  return;
}

