
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::wstring::_S_copy_chars(wchar_t*, __normal_iterator<wchar_t*, std::wstring >,
   __normal_iterator<wchar_t*, std::wstring >) */

void std::wstring::_S_copy_chars(void)

{
}



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

void FUN_003b2100(wchar_t *param_1,wchar_t *param_2,int param_3)

{
  size_t __n;
  
  __n = param_3 - (int)param_2 >> 2;
  if (__n == 1) {
    *param_1 = *param_2;
    return;
  }
  if (__n == 0) {
    return;
  }
  wmemcpy(param_1,param_2,__n);
  return;
}


PUSH EBX
CALL 0x00050b50
ADD EBX,0x237efa
SUB ESP,0x8
MOV EDX,dword ptr [ESP + 0x14]
MOV EAX,dword ptr [ESP + 0x18]
SUB EAX,EDX
SAR EAX,0x2
CMP EAX,0x1
JZ 0x003b2150
TEST EAX,EAX
JNZ 0x003b2130
ADD ESP,0x8
POP EBX
RET
SUB ESP,0x4
PUSH EAX
PUSH EDX
PUSH dword ptr [ESP + 0x1c]
CALL 0x00039880
ADD ESP,0x10
ADD ESP,0x8
POP EBX
RET
MOV EAX,dword ptr [EDX]
MOV ECX,dword ptr [ESP + 0x10]
MOV dword ptr [ECX],EAX
ADD ESP,0x8
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_003b2100(wchar_t *param_1,wchar_t *param_2,int param_3)\n\n{\n  size_t __n;\n  \n  __n = param_3 - (int)param_2 >> 2;\n  if (__n == 1) {\n    *param_1 = *param_2;\n    return;\n  }\n  if (__n == 0) {\n    return;\n  }\n  wmemcpy(param_1,param_2,__n);\n  return;\n}\n\n" comment (function_definition "void FUN_003b2100(wchar_t *param_1,wchar_t *param_2,int param_3)\n\n{\n  size_t __n;\n  \n  __n = param_3 - (int)param_2 >> 2;\n  if (__n == 1) {\n    *param_1 = *param_2;\n    return;\n  }\n  if (__n == 0) {\n    return;\n  }\n  wmemcpy(param_1,param_2,__n);\n  return;\n}" primitive_type (function_declarator "FUN_003b2100(wchar_t *param_1,wchar_t *param_2,int param_3)" identifier (parameter_list "(wchar_t *param_1,wchar_t *param_2,int param_3)" ( (parameter_declaration "wchar_t *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "wchar_t *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  size_t __n;\n  \n  __n = param_3 - (int)param_2 >> 2;\n  if (__n == 1) {\n    *param_1 = *param_2;\n    return;\n  }\n  if (__n == 0) {\n    return;\n  }\n  wmemcpy(param_1,param_2,__n);\n  return;\n}" { (declaration "size_t __n;" primitive_type identifier ;) (expression_statement "__n = param_3 - (int)param_2 >> 2;" (assignment_expression "__n = param_3 - (int)param_2 >> 2" identifier = (binary_expression "param_3 - (int)param_2 >> 2" (binary_expression "param_3 - (int)param_2" identifier - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal)) ;) (if_statement "if (__n == 1) {\n    *param_1 = *param_2;\n    return;\n  }" if (parenthesized_expression "(__n == 1)" ( (binary_expression "__n == 1" identifier == number_literal) )) (compound_statement "{\n    *param_1 = *param_2;\n    return;\n  }" { (expression_statement "*param_1 = *param_2;" (assignment_expression "*param_1 = *param_2" (pointer_expression "*param_1" * identifier) = (pointer_expression "*param_2" * identifier)) ;) (return_statement "return;" return ;) })) (if_statement "if (__n == 0) {\n    return;\n  }" if (parenthesized_expression "(__n == 0)" ( (binary_expression "__n == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "wmemcpy(param_1,param_2,__n);" (call_expression "wmemcpy(param_1,param_2,__n)" identifier (argument_list "(param_1,param_2,__n)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::wstring::_S_copy_chars(wchar_t*, __normal_iterator<wchar_t*, std::wstring >,\n   __normal_iterator<wchar_t*, std::wstring >) */\n\nvoid std::wstring::_S_copy_chars(void)\n\n{\n}\n\n" comment comment (function_definition "void std::wstring::_S_copy_chars(void)\n\n{\n}" primitive_type (ERROR "std::wstring::" identifier : : identifier : :) (function_declarator "_S_copy_chars(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n}" { })))
(translation_unit "void FUN_003b2100(wchar_t *param_1,wchar_t *param_2,int param_3)\n\n{\n  size_t __n;\n  \n  __n = param_3 - (int)param_2 >> 2;\n  if (__n == 1) {\n    *param_1 = *param_2;\n    return;\n  }\n  if (__n == 0) {\n    return;\n  }\n  wmemcpy(param_1,param_2,__n);\n  return;\n}\n\n" (function_definition "void FUN_003b2100(wchar_t *param_1,wchar_t *param_2,int param_3)\n\n{\n  size_t __n;\n  \n  __n = param_3 - (int)param_2 >> 2;\n  if (__n == 1) {\n    *param_1 = *param_2;\n    return;\n  }\n  if (__n == 0) {\n    return;\n  }\n  wmemcpy(param_1,param_2,__n);\n  return;\n}" primitive_type (function_declarator "FUN_003b2100(wchar_t *param_1,wchar_t *param_2,int param_3)" identifier (parameter_list "(wchar_t *param_1,wchar_t *param_2,int param_3)" ( (parameter_declaration "wchar_t *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "wchar_t *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  size_t __n;\n  \n  __n = param_3 - (int)param_2 >> 2;\n  if (__n == 1) {\n    *param_1 = *param_2;\n    return;\n  }\n  if (__n == 0) {\n    return;\n  }\n  wmemcpy(param_1,param_2,__n);\n  return;\n}" { (declaration "size_t __n;" primitive_type identifier ;) (expression_statement "__n = param_3 - (int)param_2 >> 2;" (assignment_expression "__n = param_3 - (int)param_2 >> 2" identifier = (binary_expression "param_3 - (int)param_2 >> 2" (binary_expression "param_3 - (int)param_2" identifier - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal)) ;) (if_statement "if (__n == 1) {\n    *param_1 = *param_2;\n    return;\n  }" if (parenthesized_expression "(__n == 1)" ( (binary_expression "__n == 1" identifier == number_literal) )) (compound_statement "{\n    *param_1 = *param_2;\n    return;\n  }" { (expression_statement "*param_1 = *param_2;" (assignment_expression "*param_1 = *param_2" (pointer_expression "*param_1" * identifier) = (pointer_expression "*param_2" * identifier)) ;) (return_statement "return;" return ;) })) (if_statement "if (__n == 0) {\n    return;\n  }" if (parenthesized_expression "(__n == 0)" ( (binary_expression "__n == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "wmemcpy(param_1,param_2,__n);" (call_expression "wmemcpy(param_1,param_2,__n)" identifier (argument_list "(param_1,param_2,__n)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT - (cast_expression ( (type_descriptor TYPE) ) IDENT)) >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_003b2100(wchar_t *param_1,wchar_t *param_2,int param_3)\n\n{\n  size_t __n;\n  \n  __n = param_3 - (int)param_2 >> 2;\n  if (__n == 1) {\n    *param_1 = *param_2;\n    return;\n  }\n  if (__n == 0) {\n    return;\n  }\n  wmemcpy(param_1,param_2,__n);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_003b2100(wchar_t *param_1,wchar_t *param_2,int param_3)" (identifier "FUN_003b2100") (parameter_list "(wchar_t *param_1,wchar_t *param_2,int param_3)" (( "(") (parameter_declaration "wchar_t *param_1" (type_identifier "wchar_t") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "wchar_t *param_2" (type_identifier "wchar_t") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  size_t __n;\n  \n  __n = param_3 - (int)param_2 >> 2;\n  if (__n == 1) {\n    *param_1 = *param_2;\n    return;\n  }\n  if (__n == 0) {\n    return;\n  }\n  wmemcpy(param_1,param_2,__n);\n  return;\n}" ({ "{") (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (expression_statement "__n = param_3 - (int)param_2 >> 2;" (assignment_expression "__n = param_3 - (int)param_2 >> 2" (identifier "__n") (= "=") (binary_expression "param_3 - (int)param_2 >> 2" (binary_expression "param_3 - (int)param_2" (identifier "param_3") (- "-") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2"))) (>> ">>") (number_literal "2"))) (; ";")) (if_statement "if (__n == 1) {\n    *param_1 = *param_2;\n    return;\n  }" (if "if") (parenthesized_expression "(__n == 1)" (( "(") (binary_expression "__n == 1" (identifier "__n") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    *param_1 = *param_2;\n    return;\n  }" ({ "{") (expression_statement "*param_1 = *param_2;" (assignment_expression "*param_1 = *param_2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (__n == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(__n == 0)" (( "(") (binary_expression "__n == 0" (identifier "__n") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "wmemcpy(param_1,param_2,__n);" (call_expression "wmemcpy(param_1,param_2,__n)" (identifier "wmemcpy") (argument_list "(param_1,param_2,__n)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "__n") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::wstring::_S_copy_chars(wchar_t*, __normal_iterator<wchar_t*, std::wstring >,
   __normal_iterator<wchar_t*, std::wstring >) */

void std::wstring::function_1(void)

{
}


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

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

void MASKED(wchar_t *param_1,wchar_t *param_2,int param_3)

{
  size_t __n;
  
  __n = param_3 - (int)param_2 >> 2;
  if (__n == 1) {
    *param_1 = *param_2;
    return;
  }
  if (__n == 0) {
    return;
  }
  wmemcpy(param_1,param_2,__n);
  return;
}

